@pnp/cli-microsoft365 7.3.0-beta.16c6462 → 7.3.0-beta.4df0638

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/Auth.js +4 -5
  4. package/dist/Command.js +10 -13
  5. package/dist/api.js +2 -3
  6. package/dist/autocomplete.js +4 -6
  7. package/dist/chili/chili.js +1 -2
  8. package/dist/cli/cli.js +880 -0
  9. package/dist/index.js +2 -2
  10. package/dist/m365/aad/commands/administrativeunit/administrativeunit-member-list.js +138 -0
  11. package/dist/m365/aad/commands/administrativeunit/administrativeunit-remove.js +2 -2
  12. package/dist/m365/aad/commands/app/app-get.js +2 -2
  13. package/dist/m365/aad/commands/app/app-remove.js +3 -3
  14. package/dist/m365/aad/commands/app/app-role-add.js +2 -2
  15. package/dist/m365/aad/commands/app/app-role-list.js +2 -2
  16. package/dist/m365/aad/commands/app/app-role-remove.js +4 -4
  17. package/dist/m365/aad/commands/app/app-set.js +2 -2
  18. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +2 -2
  19. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +2 -2
  20. package/dist/m365/aad/commands/group/group-list.js +71 -3
  21. package/dist/m365/aad/commands/group/group-remove.js +2 -2
  22. package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +2 -2
  23. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-clear.js +2 -2
  24. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-remove.js +3 -3
  25. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-restore.js +2 -2
  26. package/dist/m365/aad/commands/m365group/m365group-remove.js +2 -2
  27. package/dist/m365/aad/commands/m365group/m365group-teamify.js +2 -2
  28. package/dist/m365/aad/commands/m365group/m365group-user-remove.js +2 -2
  29. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -2
  30. package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +2 -2
  31. package/dist/m365/aad/commands/sp/sp-add.js +2 -2
  32. package/dist/m365/aad/commands/sp/sp-get.js +2 -2
  33. package/dist/m365/aad/commands/user/user-get.js +2 -2
  34. package/dist/m365/aad/commands/user/user-license-remove.js +2 -2
  35. package/dist/m365/aad/commands/user/user-recyclebinitem-clear.js +2 -2
  36. package/dist/m365/aad/commands/user/user-recyclebinitem-remove.js +2 -2
  37. package/dist/m365/aad/commands/user/user-remove.js +2 -2
  38. package/dist/m365/aad/commands.js +1 -0
  39. package/dist/m365/app/commands/app-get.js +2 -2
  40. package/dist/m365/app/commands/app-open.js +2 -2
  41. package/dist/m365/app/commands/permission/permission-list.js +2 -2
  42. package/dist/m365/base/AppCommand.js +2 -2
  43. package/dist/m365/booking/commands/business/business-get.js +2 -2
  44. package/dist/m365/cli/commands/cli-doctor.js +2 -2
  45. package/dist/m365/cli/commands/cli-reconsent.js +2 -2
  46. package/dist/m365/cli/commands/config/config-get.js +2 -2
  47. package/dist/m365/cli/commands/config/config-list.js +2 -2
  48. package/dist/m365/cli/commands/config/config-reset.js +3 -3
  49. package/dist/m365/cli/commands/config/config-set.js +4 -4
  50. package/dist/m365/commands/docs.js +2 -2
  51. package/dist/m365/commands/login.js +4 -4
  52. package/dist/m365/commands/setup.js +8 -8
  53. package/dist/m365/context/commands/context-remove.js +2 -2
  54. package/dist/m365/context/commands/option/option-remove.js +2 -2
  55. package/dist/m365/external/commands/connection/connection-doctor.js +1 -2
  56. package/dist/m365/external/commands/connection/connection-remove.js +3 -3
  57. package/dist/m365/flow/commands/flow-remove.js +2 -2
  58. package/dist/m365/flow/commands/owner/owner-list.js +2 -2
  59. package/dist/m365/flow/commands/owner/owner-remove.js +2 -2
  60. package/dist/m365/flow/commands/run/run-cancel.js +2 -2
  61. package/dist/m365/flow/commands/run/run-resubmit.js +2 -2
  62. package/dist/m365/graph/commands/changelog/changelog-list.js +3 -3
  63. package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +2 -2
  64. package/dist/m365/outlook/commands/message/message-list.js +2 -2
  65. package/dist/m365/outlook/commands/message/message-move.js +2 -2
  66. package/dist/m365/pa/commands/app/app-consent-set.js +2 -2
  67. package/dist/m365/pa/commands/app/app-get.js +2 -2
  68. package/dist/m365/pa/commands/app/app-permission-remove.js +2 -2
  69. package/dist/m365/pa/commands/app/app-remove.js +2 -2
  70. package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
  71. package/dist/m365/planner/commands/bucket/bucket-remove.js +3 -3
  72. package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
  73. package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
  74. package/dist/m365/planner/commands/roster/roster-member-remove.js +3 -3
  75. package/dist/m365/planner/commands/roster/roster-remove.js +2 -2
  76. package/dist/m365/planner/commands/task/task-checklistitem-add.js +2 -2
  77. package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -2
  78. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -2
  79. package/dist/m365/planner/commands/task/task-get.js +3 -3
  80. package/dist/m365/planner/commands/task/task-reference-remove.js +2 -2
  81. package/dist/m365/planner/commands/task/task-remove.js +4 -4
  82. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +2 -2
  83. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-remove.js +3 -3
  84. package/dist/m365/pp/commands/card/card-clone.js +2 -2
  85. package/dist/m365/pp/commands/card/card-get.js +2 -2
  86. package/dist/m365/pp/commands/card/card-remove.js +3 -3
  87. package/dist/m365/pp/commands/chatbot/chatbot-get.js +2 -2
  88. package/dist/m365/pp/commands/chatbot/chatbot-remove.js +3 -3
  89. package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +2 -2
  90. package/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +2 -2
  91. package/dist/m365/pp/commands/managementapp/managementapp-add.js +2 -2
  92. package/dist/m365/pp/commands/solution/solution-get.js +2 -2
  93. package/dist/m365/pp/commands/solution/solution-list.js +2 -2
  94. package/dist/m365/pp/commands/solution/solution-publish.js +2 -2
  95. package/dist/m365/pp/commands/solution/solution-publisher-remove.js +3 -3
  96. package/dist/m365/pp/commands/solution/solution-remove.js +3 -3
  97. package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +2 -2
  98. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-remove.js +2 -2
  99. package/dist/m365/purview/commands/retentionlabel/retentionlabel-remove.js +2 -2
  100. package/dist/m365/spfx/commands/project/project-permissions-grant.js +2 -2
  101. package/dist/m365/spo/commands/app/app-add.js +2 -2
  102. package/dist/m365/spo/commands/app/app-remove.js +2 -2
  103. package/dist/m365/spo/commands/app/app-retract.js +2 -2
  104. package/dist/m365/spo/commands/app/app-uninstall.js +2 -2
  105. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +2 -2
  106. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +3 -3
  107. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +2 -2
  108. package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +2 -2
  109. package/dist/m365/spo/commands/commandset/commandset-get.js +2 -2
  110. package/dist/m365/spo/commands/commandset/commandset-remove.js +3 -3
  111. package/dist/m365/spo/commands/commandset/commandset-set.js +2 -2
  112. package/dist/m365/spo/commands/contenttype/contenttype-add.js +2 -2
  113. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +2 -2
  114. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +2 -2
  115. package/dist/m365/spo/commands/customaction/customaction-add.js +1 -1
  116. package/dist/m365/spo/commands/customaction/customaction-clear.js +2 -2
  117. package/dist/m365/spo/commands/customaction/customaction-get.js +3 -3
  118. package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -3
  119. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +2 -2
  120. package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +3 -3
  121. package/dist/m365/spo/commands/field/field-remove.js +2 -2
  122. package/dist/m365/spo/commands/file/file-add.js +1 -1
  123. package/dist/m365/spo/commands/file/file-checkout-undo.js +2 -2
  124. package/dist/m365/spo/commands/file/file-remove.js +2 -2
  125. package/dist/m365/spo/commands/file/file-rename.js +2 -2
  126. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +2 -2
  127. package/dist/m365/spo/commands/file/file-roleassignment-add.js +5 -5
  128. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +5 -5
  129. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +3 -3
  130. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +3 -3
  131. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +2 -2
  132. package/dist/m365/spo/commands/file/file-sharinglink-clear.js +3 -3
  133. package/dist/m365/spo/commands/file/file-sharinglink-list.js +2 -2
  134. package/dist/m365/spo/commands/file/file-sharinglink-remove.js +2 -2
  135. package/dist/m365/spo/commands/file/file-version-clear.js +2 -2
  136. package/dist/m365/spo/commands/file/file-version-remove.js +2 -2
  137. package/dist/m365/spo/commands/file/file-version-restore.js +2 -2
  138. package/dist/m365/spo/commands/folder/folder-remove.js +2 -2
  139. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +2 -2
  140. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +4 -4
  141. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +4 -4
  142. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +2 -2
  143. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +2 -2
  144. package/dist/m365/spo/commands/group/group-list.js +2 -2
  145. package/dist/m365/spo/commands/group/group-member-remove.js +9 -9
  146. package/dist/m365/spo/commands/group/group-remove.js +2 -2
  147. package/dist/m365/spo/commands/group/group-set.js +2 -2
  148. package/dist/m365/spo/commands/homesite/homesite-remove.js +2 -2
  149. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +2 -2
  150. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +3 -3
  151. package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -4
  152. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +2 -2
  153. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +2 -2
  154. package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +2 -2
  155. package/dist/m365/spo/commands/list/list-contenttype-remove.js +2 -2
  156. package/dist/m365/spo/commands/list/list-remove.js +2 -2
  157. package/dist/m365/spo/commands/list/list-retentionlabel-remove.js +2 -2
  158. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +4 -4
  159. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +2 -2
  160. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +2 -2
  161. package/dist/m365/spo/commands/list/list-view-field-remove.js +2 -2
  162. package/dist/m365/spo/commands/list/list-view-remove.js +2 -2
  163. package/dist/m365/spo/commands/list/list-webhook-remove.js +2 -2
  164. package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +2 -2
  165. package/dist/m365/spo/commands/listitem/listitem-list.js +2 -2
  166. package/dist/m365/spo/commands/listitem/listitem-remove.js +2 -2
  167. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +2 -2
  168. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +4 -4
  169. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +4 -4
  170. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +2 -2
  171. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +2 -2
  172. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +2 -2
  173. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +2 -2
  174. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +2 -2
  175. package/dist/m365/spo/commands/page/page-add.js +4 -4
  176. package/dist/m365/spo/commands/page/page-column-get.js +2 -2
  177. package/dist/m365/spo/commands/page/page-column-list.js +2 -2
  178. package/dist/m365/spo/commands/page/page-remove.js +2 -2
  179. package/dist/m365/spo/commands/page/page-section-get.js +2 -2
  180. package/dist/m365/spo/commands/page/page-section-list.js +2 -2
  181. package/dist/m365/spo/commands/page/page-set.js +5 -5
  182. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +2 -2
  183. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +2 -2
  184. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +2 -2
  185. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +2 -2
  186. package/dist/m365/spo/commands/site/site-apppermission-remove.js +2 -2
  187. package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +2 -2
  188. package/dist/m365/spo/commands/site/site-recyclebinitem-clear.js +2 -2
  189. package/dist/m365/spo/commands/site/site-recyclebinitem-move.js +2 -2
  190. package/dist/m365/spo/commands/site/site-recyclebinitem-remove.js +2 -2
  191. package/dist/m365/spo/commands/site/site-remove.js +2 -2
  192. package/dist/m365/spo/commands/site/site-set.js +3 -3
  193. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +2 -2
  194. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +2 -2
  195. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +2 -2
  196. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +2 -2
  197. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +2 -2
  198. package/dist/m365/spo/commands/spo-search.js +2 -2
  199. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +2 -2
  200. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +5 -5
  201. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +5 -5
  202. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +2 -2
  203. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +3 -3
  204. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +4 -4
  205. package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +5 -5
  206. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +2 -2
  207. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -3
  208. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +2 -2
  209. package/dist/m365/spo/commands/term/term-get.js +2 -2
  210. package/dist/m365/spo/commands/term/term-list.js +2 -2
  211. package/dist/m365/spo/commands/theme/theme-remove.js +2 -2
  212. package/dist/m365/spo/commands/user/user-remove.js +2 -2
  213. package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -2
  214. package/dist/m365/spo/commands/web/web-remove.js +2 -2
  215. package/dist/m365/spo/commands/web/web-roleassignment-add.js +4 -4
  216. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +4 -4
  217. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +2 -2
  218. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +2 -2
  219. package/dist/m365/teams/commands/app/app-install.js +2 -2
  220. package/dist/m365/teams/commands/app/app-remove.js +3 -3
  221. package/dist/m365/teams/commands/app/app-uninstall.js +2 -2
  222. package/dist/m365/teams/commands/app/app-update.js +2 -2
  223. package/dist/m365/teams/commands/cache/cache-remove.js +2 -2
  224. package/dist/m365/teams/commands/channel/channel-add.js +2 -2
  225. package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
  226. package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -3
  227. package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
  228. package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
  229. package/dist/m365/teams/commands/chat/chat-get.js +3 -3
  230. package/dist/m365/teams/commands/chat/chat-member-remove.js +2 -2
  231. package/dist/m365/teams/commands/chat/chat-message-send.js +3 -3
  232. package/dist/m365/teams/commands/meeting/meeting-add.js +151 -0
  233. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +2 -2
  234. package/dist/m365/teams/commands/tab/tab-remove.js +2 -2
  235. package/dist/m365/teams/commands/team/team-app-list.js +3 -3
  236. package/dist/m365/teams/commands/team/team-remove.js +2 -2
  237. package/dist/m365/teams/commands/user/user-app-list.js +2 -2
  238. package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
  239. package/dist/m365/teams/commands.js +2 -1
  240. package/dist/m365/tenant/commands/people/people-profilecardproperty-remove.js +2 -2
  241. package/dist/m365/todo/commands/list/list-remove.js +2 -2
  242. package/dist/m365/todo/commands/task/task-get.js +2 -2
  243. package/dist/m365/todo/commands/task/task-list.js +2 -2
  244. package/dist/m365/todo/commands/task/task-remove.js +2 -2
  245. package/dist/m365/viva/commands/connections/connections-app-create.js +2 -2
  246. package/dist/m365/yammer/commands/group/group-user-remove.js +2 -2
  247. package/dist/m365/yammer/commands/message/message-like-set.js +2 -2
  248. package/dist/m365/yammer/commands/message/message-remove.js +2 -2
  249. package/dist/m365/yammer/commands/yammer-search.js +2 -2
  250. package/dist/telemetry.js +2 -2
  251. package/dist/utils/aadAdministrativeUnit.js +2 -2
  252. package/dist/utils/aadGroup.js +3 -3
  253. package/dist/utils/prompt.js +4 -7
  254. package/dist/utils/validation.js +5 -2
  255. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-member-list.mdx +312 -0
  256. package/docs/docs/cmd/aad/group/group-list.mdx +11 -0
  257. package/docs/docs/cmd/aad/user/user-password-validate.mdx +2 -2
  258. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  259. package/docs/docs/cmd/external/connection/connection-doctor.mdx +3 -0
  260. package/docs/docs/cmd/flow/environment/environment-get.mdx +1 -1
  261. package/docs/docs/cmd/flow/environment/environment-list.mdx +1 -1
  262. package/docs/docs/cmd/flow/flow-disable.mdx +1 -1
  263. package/docs/docs/cmd/flow/flow-enable.mdx +1 -1
  264. package/docs/docs/cmd/flow/flow-export.mdx +1 -1
  265. package/docs/docs/cmd/flow/flow-get.mdx +1 -1
  266. package/docs/docs/cmd/flow/flow-list.mdx +1 -1
  267. package/docs/docs/cmd/flow/run/run-cancel.mdx +1 -1
  268. package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
  269. package/docs/docs/cmd/flow/run/run-list.mdx +1 -1
  270. package/docs/docs/cmd/flow/run/run-resubmit.mdx +1 -1
  271. package/docs/docs/cmd/graph/changelog/changelog-list.mdx +1 -1
  272. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  273. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  274. package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +0 -3
  275. package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +0 -3
  276. package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +0 -3
  277. package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +0 -3
  278. package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +0 -3
  279. package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +0 -3
  280. package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +0 -3
  281. package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +0 -3
  282. package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +0 -3
  283. package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +0 -3
  284. package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +0 -3
  285. package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +0 -3
  286. package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +0 -3
  287. package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +0 -3
  288. package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +0 -3
  289. package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +0 -3
  290. package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +0 -3
  291. package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +0 -3
  292. package/docs/docs/cmd/pa/app/app-get.mdx +1 -1
  293. package/docs/docs/cmd/pa/app/app-list.mdx +1 -1
  294. package/docs/docs/cmd/pa/connector/connector-export.mdx +1 -1
  295. package/docs/docs/cmd/pa/connector/connector-list.mdx +1 -1
  296. package/docs/docs/cmd/pa/environment/environment-get.mdx +1 -1
  297. package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -1
  298. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +1 -1
  299. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +1 -1
  300. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +1 -1
  301. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +1 -1
  302. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +1 -1
  303. package/docs/docs/cmd/planner/plan/plan-get.mdx +1 -1
  304. package/docs/docs/cmd/planner/plan/plan-list.mdx +1 -1
  305. package/docs/docs/cmd/planner/plan/plan-set.mdx +1 -1
  306. package/docs/docs/cmd/planner/roster/roster-add.mdx +2 -2
  307. package/docs/docs/cmd/planner/roster/roster-get.mdx +1 -1
  308. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +1 -1
  309. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +1 -1
  310. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -1
  311. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +2 -2
  312. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
  313. package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
  314. package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
  315. package/docs/docs/cmd/planner/task/task-list.mdx +2 -2
  316. package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
  317. package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
  318. package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
  319. package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
  320. package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +1 -1
  321. package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +1 -1
  322. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +1 -1
  323. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -1
  324. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -1
  325. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +1 -1
  326. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +1 -1
  327. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -1
  328. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -1
  329. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +1 -1
  330. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +1 -1
  331. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +1 -1
  332. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +1 -1
  333. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +1 -1
  334. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +1 -1
  335. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +1 -1
  336. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +2 -2
  337. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +2 -2
  338. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +2 -2
  339. package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -2
  340. package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -3
  341. package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -3
  342. package/docs/docs/cmd/spfx/project/project-externalize.mdx +1 -1
  343. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  344. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  345. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  346. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  347. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  348. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  349. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  350. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +1 -1
  351. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  352. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +1 -1
  353. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  354. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  355. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
  356. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  357. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  358. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  359. package/docs/docs/cmd/spo/page/page-set.mdx +1 -1
  360. package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +0 -3
  361. package/docs/docs/cmd/spo/report/report-activitypages.mdx +0 -3
  362. package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +0 -3
  363. package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +0 -3
  364. package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +0 -3
  365. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +0 -3
  366. package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +0 -3
  367. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +0 -3
  368. package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +0 -3
  369. package/docs/docs/cmd/spo/site/site-groupify.mdx +1 -1
  370. package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +1 -1
  371. package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +1 -1
  372. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  373. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  374. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  375. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  376. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  377. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  378. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  379. package/docs/docs/cmd/teams/meeting/meeting-add.mdx +283 -0
  380. package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +2 -2
  381. package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +0 -3
  382. package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +0 -3
  383. package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +0 -3
  384. package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +0 -3
  385. package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +0 -3
  386. package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +0 -3
  387. package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +1 -1
  388. package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +1 -1
  389. package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +1 -1
  390. package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +0 -3
  391. package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +0 -3
  392. package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +0 -3
  393. package/docs/docs/cmd/yammer/group/group-list.mdx +1 -1
  394. package/docs/docs/cmd/yammer/group/group-user-add.mdx +1 -1
  395. package/docs/docs/cmd/yammer/group/group-user-remove.mdx +1 -1
  396. package/docs/docs/cmd/yammer/message/message-add.mdx +1 -1
  397. package/docs/docs/cmd/yammer/message/message-get.mdx +1 -1
  398. package/docs/docs/cmd/yammer/message/message-like-set.mdx +1 -1
  399. package/docs/docs/cmd/yammer/message/message-list.mdx +1 -1
  400. package/docs/docs/cmd/yammer/message/message-remove.mdx +1 -1
  401. package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
  402. package/docs/docs/cmd/yammer/report/report-activitycounts.mdx +0 -3
  403. package/docs/docs/cmd/yammer/report/report-activityusercounts.mdx +0 -3
  404. package/docs/docs/cmd/yammer/report/report-activityuserdetail.mdx +0 -3
  405. package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.mdx +0 -3
  406. package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.mdx +0 -3
  407. package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.mdx +0 -3
  408. package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.mdx +0 -3
  409. package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.mdx +0 -3
  410. package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.mdx +0 -3
  411. package/docs/docs/cmd/yammer/user/user-get.mdx +1 -1
  412. package/docs/docs/cmd/yammer/user/user-list.mdx +1 -1
  413. package/docs/docs/cmd/yammer/yammer-search.mdx +1 -1
  414. package/npm-shrinkwrap.json +1008 -406
  415. package/package.json +25 -24
  416. package/dist/cli/Cli.js +0 -857
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _TodoTaskGetCommand_instances, _TodoTaskGetCommand_initTelemetry, _TodoTaskGetCommand_initOptions, _TodoTaskGetCommand_initOptionSets;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import GraphCommand from '../../../base/GraphCommand.js';
10
10
  import commands from '../../commands.js';
@@ -54,7 +54,7 @@ class TodoTaskGetCommand extends GraphCommand {
54
54
  responseType: 'json'
55
55
  };
56
56
  const item = await request.get(requestOptions);
57
- if (!Cli.shouldTrimOutput(args.options.output)) {
57
+ if (!cli.shouldTrimOutput(args.options.output)) {
58
58
  await logger.log(item);
59
59
  }
60
60
  else {
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _TodoTaskListCommand_instances, _TodoTaskListCommand_initTelemetry, _TodoTaskListCommand_initOptions, _TodoTaskListCommand_initOptionSets;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import { odata } from '../../../../utils/odata.js';
10
10
  import GraphCommand from '../../../base/GraphCommand.js';
@@ -49,7 +49,7 @@ class TodoTaskListCommand extends GraphCommand {
49
49
  const listId = await this.getTodoListId(args);
50
50
  const endpoint = `${this.resource}/v1.0/me/todo/lists/${listId}/tasks`;
51
51
  const items = await odata.getAllItems(endpoint);
52
- if (!Cli.shouldTrimOutput(args.options.output)) {
52
+ if (!cli.shouldTrimOutput(args.options.output)) {
53
53
  await logger.log(items);
54
54
  }
55
55
  else {
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _TodoTaskRemoveCommand_instances, _TodoTaskRemoveCommand_initTelemetry, _TodoTaskRemoveCommand_initOptions, _TodoTaskRemoveCommand_initOptionSets;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import GraphCommand from '../../../base/GraphCommand.js';
10
10
  import commands from '../../commands.js';
@@ -27,7 +27,7 @@ class TodoTaskRemoveCommand extends GraphCommand {
27
27
  await this.removeToDoTask(args.options);
28
28
  }
29
29
  else {
30
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the task ${args.options.id} from list ${args.options.listId || args.options.listName}?` });
30
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the task ${args.options.id} from list ${args.options.listId || args.options.listName}?` });
31
31
  if (result) {
32
32
  await this.removeToDoTask(args.options);
33
33
  }
@@ -8,7 +8,7 @@ import AdmZip from 'adm-zip';
8
8
  import fs from 'fs';
9
9
  import path from 'path';
10
10
  import { v4 } from 'uuid';
11
- import { Cli } from '../../../../cli/Cli.js';
11
+ import { cli } from '../../../../cli/cli.js';
12
12
  import AnonymousCommand from '../../../base/AnonymousCommand.js';
13
13
  import spoWebGetCommand from '../../../spo/commands/web/web-get.js';
14
14
  import commands from '../../commands.js';
@@ -143,7 +143,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand {
143
143
  debug: this.debug,
144
144
  verbose: this.verbose
145
145
  };
146
- return Cli.executeCommandWithOutput(spoWebGetCommand, { options: { ...options, _: [] } });
146
+ return cli.executeCommandWithOutput(spoWebGetCommand, { options: { ...options, _: [] } });
147
147
  }
148
148
  }
149
149
  _VivaConnectionsAppCreateCommand_instances = new WeakSet(), _VivaConnectionsAppCreateCommand_initOptions = function _VivaConnectionsAppCreateCommand_initOptions() {
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _YammerGroupUserRemoveCommand_instances, _YammerGroupUserRemoveCommand_initTelemetry, _YammerGroupUserRemoveCommand_initOptions, _YammerGroupUserRemoveCommand_initValidators;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import YammerCommand from "../../../base/YammerCommand.js";
10
10
  import commands from '../../commands.js';
@@ -31,7 +31,7 @@ class YammerGroupUserRemoveCommand extends YammerCommand {
31
31
  if (args.options.id) {
32
32
  messagePrompt = `Are you sure you want to remove the user ${args.options.id} from the group ${args.options.groupId}?`;
33
33
  }
34
- const result = await Cli.promptForConfirmation({ message: messagePrompt });
34
+ const result = await cli.promptForConfirmation({ message: messagePrompt });
35
35
  if (result) {
36
36
  await this.executeRemoveAction(args.options);
37
37
  }
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _YammerMessageLikeSetCommand_instances, _YammerMessageLikeSetCommand_initTelemetry, _YammerMessageLikeSetCommand_initOptions, _YammerMessageLikeSetCommand_initTypes, _YammerMessageLikeSetCommand_initValidators;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import YammerCommand from '../../../base/YammerCommand.js';
10
10
  import commands from '../../commands.js';
@@ -30,7 +30,7 @@ class YammerMessageLikeSetCommand extends YammerCommand {
30
30
  }
31
31
  else {
32
32
  const message = `Are you sure you want to unlike message ${args.options.messageId}?`;
33
- const result = await Cli.promptForConfirmation({ message });
33
+ const result = await cli.promptForConfirmation({ message });
34
34
  if (result) {
35
35
  await this.executeLikeAction(args.options);
36
36
  }
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _YammerMessageRemoveCommand_instances, _YammerMessageRemoveCommand_initTelemetry, _YammerMessageRemoveCommand_initOptions, _YammerMessageRemoveCommand_initValidators;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import YammerCommand from '../../../base/YammerCommand.js';
10
10
  import commands from '../../commands.js';
@@ -27,7 +27,7 @@ class YammerMessageRemoveCommand extends YammerCommand {
27
27
  await this.removeMessage(args.options);
28
28
  }
29
29
  else {
30
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the Yammer message ${args.options.id}?` });
30
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the Yammer message ${args.options.id}?` });
31
31
  if (result) {
32
32
  await this.removeMessage(args.options);
33
33
  }
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _YammerSearchCommand_instances, _a, _YammerSearchCommand_initTelemetry, _YammerSearchCommand_initOptions, _YammerSearchCommand_initValidators;
7
- import { Cli } from '../../../cli/Cli.js';
7
+ import { cli } from '../../../cli/cli.js';
8
8
  import request from '../../../request.js';
9
9
  import { formatting } from '../../../utils/formatting.js';
10
10
  import YammerCommand from '../../base/YammerCommand.js';
@@ -101,7 +101,7 @@ class YammerSearchCommand extends YammerCommand {
101
101
  this.users = [];
102
102
  try {
103
103
  await this.getAllItems(logger, args, 1);
104
- if (!Cli.shouldTrimOutput(args.options.output)) {
104
+ if (!cli.shouldTrimOutput(args.options.output)) {
105
105
  await logger.log({
106
106
  summary: this.summary,
107
107
  messages: this.messages,
package/dist/telemetry.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import child_process from 'child_process';
2
2
  import path from 'path';
3
3
  import url from 'url';
4
- import { Cli } from './cli/Cli.js';
4
+ import { cli } from './cli/cli.js';
5
5
  import { settingsNames } from './settingsNames.js';
6
6
  import { pid } from './utils/pid.js';
7
7
  import { session } from './utils/session.js';
@@ -22,7 +22,7 @@ function trackTelemetry(object) {
22
22
  }
23
23
  export const telemetry = {
24
24
  trackEvent: (commandName, properties) => {
25
- if (Cli.getInstance().getSettingWithDefaultValue(settingsNames.disableTelemetry, false)) {
25
+ if (cli.getSettingWithDefaultValue(settingsNames.disableTelemetry, false)) {
26
26
  return;
27
27
  }
28
28
  trackTelemetry({
@@ -1,6 +1,6 @@
1
1
  import { odata } from "./odata.js";
2
2
  import { formatting } from "./formatting.js";
3
- import { Cli } from "../cli/Cli.js";
3
+ import { cli } from "../cli/cli.js";
4
4
  const graphResource = 'https://graph.microsoft.com';
5
5
  export const aadAdministrativeUnit = {
6
6
  /**
@@ -16,7 +16,7 @@ export const aadAdministrativeUnit = {
16
16
  }
17
17
  if (administrativeUnits.length > 1) {
18
18
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', administrativeUnits);
19
- const selectedAdministrativeUnit = await Cli.handleMultipleResultsFound(`Multiple administrative units with name '${displayName}' found.`, resultAsKeyValuePair);
19
+ const selectedAdministrativeUnit = await cli.handleMultipleResultsFound(`Multiple administrative units with name '${displayName}' found.`, resultAsKeyValuePair);
20
20
  return selectedAdministrativeUnit;
21
21
  }
22
22
  return administrativeUnits[0];
@@ -1,7 +1,7 @@
1
1
  import request from "../request.js";
2
2
  import { formatting } from "./formatting.js";
3
3
  import { odata } from "./odata.js";
4
- import { Cli } from '../cli/Cli.js';
4
+ import { cli } from '../cli/cli.js';
5
5
  const graphResource = 'https://graph.microsoft.com';
6
6
  export const aadGroup = {
7
7
  /**
@@ -38,7 +38,7 @@ export const aadGroup = {
38
38
  }
39
39
  if (groups.length > 1) {
40
40
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', groups);
41
- return await Cli.handleMultipleResultsFound(`Multiple groups with name '${displayName}' found.`, resultAsKeyValuePair);
41
+ return await cli.handleMultipleResultsFound(`Multiple groups with name '${displayName}' found.`, resultAsKeyValuePair);
42
42
  }
43
43
  return groups[0];
44
44
  },
@@ -55,7 +55,7 @@ export const aadGroup = {
55
55
  }
56
56
  if (groups.length > 1) {
57
57
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', groups);
58
- const result = await Cli.handleMultipleResultsFound(`Multiple groups with name '${displayName}' found.`, resultAsKeyValuePair);
58
+ const result = await cli.handleMultipleResultsFound(`Multiple groups with name '${displayName}' found.`, resultAsKeyValuePair);
59
59
  return result.id;
60
60
  }
61
61
  return groups[0].id;
@@ -1,33 +1,30 @@
1
1
  import { settingsNames } from '../settingsNames.js';
2
- import { Cli } from '../cli/Cli.js';
2
+ import { cli } from '../cli/cli.js';
3
3
  let inquirerInput;
4
4
  let inquirerConfirm;
5
5
  let inquirerSelect;
6
6
  export const prompt = {
7
- /* c8 ignore next 10 */
7
+ /* c8 ignore next 9 */
8
8
  async forInput(config) {
9
9
  if (!inquirerInput) {
10
10
  inquirerInput = await import('@inquirer/input');
11
11
  }
12
- const cli = Cli.getInstance();
13
12
  const errorOutput = cli.getSettingWithDefaultValue(settingsNames.errorOutput, 'stderr');
14
13
  return inquirerInput.default(config, { output: errorOutput === 'stderr' ? process.stderr : process.stdout });
15
14
  },
16
- /* c8 ignore next 10 */
15
+ /* c8 ignore next 9 */
17
16
  async forConfirmation(config) {
18
17
  if (!inquirerConfirm) {
19
18
  inquirerConfirm = await import('@inquirer/confirm');
20
19
  }
21
- const cli = Cli.getInstance();
22
20
  const errorOutput = cli.getSettingWithDefaultValue(settingsNames.errorOutput, 'stderr');
23
21
  return inquirerConfirm.default(config, { output: errorOutput === 'stderr' ? process.stderr : process.stdout });
24
22
  },
25
- /* c8 ignore next 15 */
23
+ /* c8 ignore next 14 */
26
24
  async forSelection(config) {
27
25
  if (!inquirerSelect) {
28
26
  inquirerSelect = await import('@inquirer/select');
29
27
  }
30
- const cli = Cli.getInstance();
31
28
  const errorOutput = cli.getSettingWithDefaultValue(settingsNames.errorOutput, 'stderr');
32
29
  const promptPageSizeCap = cli.getSettingWithDefaultValue(settingsNames.promptListPageSize, 7);
33
30
  if (!config.pageSize) {
@@ -7,8 +7,11 @@ export const validation = {
7
7
  return false;
8
8
  }
9
9
  const guidRegEx = new RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i);
10
- // verify if the guid is a valid guid. @meid will be replaced in a later stage with the actual user id of the logged in user
11
- return guidRegEx.test(guid) || guid.toLowerCase().trim() === '@meid';
10
+ // verify if the guid is a valid guid. @meid will be replaced in a later
11
+ // stage with the actual user id of the logged in user
12
+ // we also need to make it toString in case the args is resolved as number
13
+ // or boolean
14
+ return guidRegEx.test(guid) || guid.toString().toLowerCase().trim() === '@meid';
12
15
  },
13
16
  isValidTeamsChannelId(guid) {
14
17
  const guidRegEx = new RegExp(/^19:[0-9a-zA-Z-_]+@thread\.(skype|tacv2)$/i);
@@ -0,0 +1,312 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # aad administrativeunit member list
6
+
7
+ Retrieves members (users, groups, or devices) of an administrative unit
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 aad administrativeunit member list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --administrativeUnitId [administrativeUnitId]`
19
+ : The id of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName`.
20
+
21
+ `-n, --administrativeUnitName [administrativeUnitName]`
22
+ : The name of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName`.
23
+
24
+ `-t, --type [type]`
25
+ : When specified, the command returns only objects of specified type. Allowed values are `user`, `group` and `device`.
26
+
27
+ `-p, --properties [properties]`
28
+ : Comma-separated list of properties to retrieve.
29
+
30
+ `-f, --filter [filter]`
31
+ : OData filter to use to query the list of members with. Applied only when `type` is specified.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Remarks
37
+
38
+ To list the members of a hidden membership in an administrative unit, the `Member.Read.Hidden` permission is required.
39
+
40
+ When the `properties` option includes values with a `/`, for example: `manager/displayName`, an additional `$expand` query parameter will be included on manager.
41
+
42
+ ## Examples
43
+
44
+ List members of an administrative unit specified by id
45
+
46
+ ```sh
47
+ m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
48
+ ```
49
+
50
+ List members of an administrative unit specified by id. For each one return the `id` and the `displayName`
51
+
52
+ ```sh
53
+ m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --properties 'id,displayName'
54
+ ```
55
+
56
+ List members of an administrative unit specified by name
57
+
58
+ ```sh
59
+ m365 aad administrativeunit member list --administrativeUnitName 'Marketing Division'
60
+ ```
61
+
62
+ List users of an administrative unit specified by id
63
+
64
+ ```sh
65
+ m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type user
66
+ ```
67
+
68
+ List users of an administrative unit specified by id that are guest users
69
+
70
+ ```sh
71
+ m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type user --filter "userType eq 'Guest'"
72
+ ```
73
+
74
+ List groups of an administrative unit specified by id
75
+
76
+ ```sh
77
+ m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type group
78
+ ```
79
+
80
+ List groups of an administrative unit specified by id and include owners names, for each member return the `id` and the `displayName`
81
+
82
+ ```sh
83
+ m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type group --properties 'id,displayName,owners/displayName'
84
+ ```
85
+
86
+ List devices of an administrative unit specified by id
87
+
88
+ ```sh
89
+ m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type device
90
+ ```
91
+
92
+ List devices with linux operating system of an administrative unit specified by id
93
+
94
+ ```sh
95
+ m365 aad administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type device --filter "operatingSystem eq 'linux'"
96
+ ```
97
+
98
+ ## Response
99
+
100
+ <Tabs>
101
+ <TabItem value="JSON">
102
+
103
+ ```json
104
+ [
105
+ {
106
+ "id": "64131a70-beb9-4ccb-b590-4401e58446ec",
107
+ "businessPhones": [
108
+ "+20 255501070"
109
+ ],
110
+ "displayName": "Pradeep Gupta",
111
+ "givenName": "Pradeep",
112
+ "jobTitle": "Accountant",
113
+ "mail": "PradeepG@contoso.com",
114
+ "mobilePhone": null,
115
+ "officeLocation": "98/2202",
116
+ "preferredLanguage": "en-US",
117
+ "surname": "Gupta",
118
+ "userPrincipalName": "PradeepG@contoso.com",
119
+ "type": "user"
120
+ },
121
+ {
122
+ "id": "c121c70b-deb1-43f7-8298-9111bf3036b4",
123
+ "deletedDateTime": null,
124
+ "classification": null,
125
+ "createdDateTime": "2023-02-22T06:39:13Z",
126
+ "creationOptions": [
127
+ "Team",
128
+ "ExchangeProvisioningFlags:3552"
129
+ ],
130
+ "description": "Welcome to the team that we've assembled to create the Mark 8.",
131
+ "displayName": "Mark 8 Project Team",
132
+ "expirationDateTime": null,
133
+ "groupTypes": [
134
+ "Unified"
135
+ ],
136
+ "isAssignableToRole": null,
137
+ "mail": "Mark8ProjectTeam@contoso.com",
138
+ "mailEnabled": true,
139
+ "mailNickname": "Mark8ProjectTeam",
140
+ "membershipRule": null,
141
+ "membershipRuleProcessingState": null,
142
+ "onPremisesDomainName": null,
143
+ "onPremisesLastSyncDateTime": null,
144
+ "onPremisesNetBiosName": null,
145
+ "onPremisesSamAccountName": null,
146
+ "onPremisesSecurityIdentifier": null,
147
+ "onPremisesSyncEnabled": null,
148
+ "preferredDataLocation": null,
149
+ "preferredLanguage": null,
150
+ "proxyAddresses": [
151
+ "SPO:SPO_e9b87117-c271-4ea9-8bf8-ec0a52253c50@SPO_70cf0eca-e1e8-4d78-9d03-62ecf811dfc2",
152
+ "SMTP:Mark8ProjectTeam@contoso.com"
153
+ ],
154
+ "renewedDateTime": "2023-02-22T06:39:13Z",
155
+ "resourceBehaviorOptions": [
156
+ "HideGroupInOutlook",
157
+ "SubscribeMembersToCalendarEventsDisabled",
158
+ "WelcomeEmailDisabled"
159
+ ],
160
+ "resourceProvisioningOptions": [
161
+ "Team"
162
+ ],
163
+ "securityEnabled": false,
164
+ "securityIdentifier": "S-1-12-1-3240216331-1140317873-294754434-3023450303",
165
+ "theme": null,
166
+ "visibility": "Public",
167
+ "onPremisesProvisioningErrors": [],
168
+ "serviceProvisioningErrors": [],
169
+ "type": "group"
170
+ },
171
+ {
172
+ "id": "3f9fd7c3-73ad-4ce3-b053-76bb8252964d",
173
+ "deletedDateTime": null,
174
+ "accountEnabled": true,
175
+ "approximateLastSignInDateTime": null,
176
+ "complianceExpirationDateTime": null,
177
+ "createdDateTime": "2023-11-06T06:18:26Z",
178
+ "deviceCategory": null,
179
+ "deviceId": "4c299165-6e8f-4b45-a5ba-c5d250a707ff",
180
+ "deviceMetadata": null,
181
+ "deviceOwnership": null,
182
+ "deviceVersion": null,
183
+ "displayName": "AdeleVence-PC",
184
+ "domainName": null,
185
+ "enrollmentProfileName": null,
186
+ "enrollmentType": null,
187
+ "externalSourceName": null,
188
+ "isCompliant": null,
189
+ "isManaged": null,
190
+ "isRooted": null,
191
+ "managementType": null,
192
+ "manufacturer": null,
193
+ "mdmAppId": null,
194
+ "model": null,
195
+ "onPremisesLastSyncDateTime": null,
196
+ "onPremisesSyncEnabled": null,
197
+ "operatingSystem": "windows",
198
+ "operatingSystemVersion": "10",
199
+ "physicalIds": [],
200
+ "profileType": null,
201
+ "registrationDateTime": null,
202
+ "sourceType": null,
203
+ "systemLabels": [],
204
+ "trustType": null,
205
+ "extensionAttributes": {
206
+ "extensionAttribute1": null,
207
+ "extensionAttribute2": null,
208
+ "extensionAttribute3": null,
209
+ "extensionAttribute4": null,
210
+ "extensionAttribute5": null,
211
+ "extensionAttribute6": null,
212
+ "extensionAttribute7": null,
213
+ "extensionAttribute8": null,
214
+ "extensionAttribute9": null,
215
+ "extensionAttribute10": null,
216
+ "extensionAttribute11": null,
217
+ "extensionAttribute12": null,
218
+ "extensionAttribute13": null,
219
+ "extensionAttribute14": null,
220
+ "extensionAttribute15": null
221
+ },
222
+ "alternativeSecurityIds": [
223
+ {
224
+ "type": 2,
225
+ "identityProvider": null,
226
+ "key": "Y3YxN2E1MWFlYw=="
227
+ }
228
+ ],
229
+ "type": "device"
230
+ }
231
+ ]
232
+ ```
233
+
234
+ </TabItem>
235
+ <TabItem value="Text">
236
+
237
+ ```text
238
+ id displayName
239
+ ------------------------------------ -------------------
240
+ 64131a70-beb9-4ccb-b590-4401e58446ec Pradeep Gupta
241
+ c121c70b-deb1-43f7-8298-9111bf3036b4 Mark 8 Project Team
242
+ 3f9fd7c3-73ad-4ce3-b053-76bb8252964d AdeleVence-PC
243
+ ```
244
+
245
+ </TabItem>
246
+ <TabItem value="CSV">
247
+
248
+ ```csv
249
+ id,displayName,givenName,jobTitle,mail,officeLocation,preferredLanguage,surname,userPrincipalName,type
250
+ 64131a70-beb9-4ccb-b590-4401e58446ec,Pradeep Gupta,Pradeep,Accountant,PradeepG@contoso.com,98/2202,en-US,Gupta,PradeepG@contoso.com,user
251
+ c121c70b-deb1-43f7-8298-9111bf3036b4,Mark 8 Project Team,,,Mark8ProjectTeam@contoso.com,,,,,group
252
+ 3f9fd7c3-73ad-4ce3-b053-76bb8252964d,AdeleVence-PC,,,,,,,,device
253
+ ```
254
+
255
+ </TabItem>
256
+ <TabItem value="Markdown">
257
+
258
+ ```md
259
+ Date: 11/9/2023
260
+
261
+ ## Pradeep Gupta (64131a70-beb9-4ccb-b590-4401e58446ec)
262
+
263
+ Property | Value
264
+ ---------|-------
265
+ id | 64131a70-beb9-4ccb-b590-4401e58446ec
266
+ displayName | Pradeep Gupta
267
+ givenName | Pradeep
268
+ jobTitle | Accountant
269
+ mail | PradeepG@contoso.com
270
+ officeLocation | 98/2202
271
+ preferredLanguage | en-US
272
+ surname | Gupta
273
+ userPrincipalName | PradeepG@contoso.com
274
+ type | user
275
+
276
+ ## Mark 8 Project Team (c121c70b-deb1-43f7-8298-9111bf3036b4)
277
+
278
+ Property | Value
279
+ ---------|-------
280
+ id | c121c70b-deb1-43f7-8298-9111bf3036b4
281
+ createdDateTime | 2023-02-22T06:39:13Z
282
+ description | Welcome to the team that we've assembled to create the Mark 8.
283
+ displayName | Mark 8 Project Team
284
+ mail | Mark8ProjectTeam@contoso.com
285
+ mailEnabled | true
286
+ mailNickname | Mark8ProjectTeam
287
+ renewedDateTime | 2023-02-22T06:39:13Z
288
+ securityEnabled | false
289
+ securityIdentifier | S-1-12-1-3240216331-1140317873-294754434-3023450303
290
+ visibility | Public
291
+ type | group
292
+
293
+ ## AdeleVence-PC (3f9fd7c3-73ad-4ce3-b053-76bb8252964d)
294
+
295
+ Property | Value
296
+ ---------|-------
297
+ id | 3f9fd7c3-73ad-4ce3-b053-76bb8252964d
298
+ accountEnabled | true
299
+ createdDateTime | 2023-11-09T06:18:26Z
300
+ deviceId | 4c299165-6e8f-4b45-a5ba-c5d250a707ff
301
+ displayName | AdeleVence-PC
302
+ operatingSystem | windows
303
+ operatingSystemVersion | 10
304
+ type | device
305
+ ```
306
+
307
+ </TabItem>
308
+ </Tabs>
309
+
310
+ ## More information
311
+
312
+ - Administrative units: https://learn.microsoft.com/entra/identity/role-based-access-control/administrative-units
@@ -14,6 +14,11 @@ m365 aad group list [options]
14
14
 
15
15
  ## Options
16
16
 
17
+ ```md definition-list
18
+ `--type [type]`
19
+ : Filter the results to only groups of a given type. Allowed values: `microsoft365`, `security`, `distribution`, `mailEnabledSecurity`. By default, all groups are listed.
20
+ ```
21
+
17
22
  <Global />
18
23
 
19
24
  ## Examples
@@ -24,6 +29,12 @@ Lists all groups defined in Azure Active Directory.
24
29
  m365 aad group list
25
30
  ```
26
31
 
32
+ List all security groups defined in Azure Active Directory.
33
+
34
+ ```sh
35
+ m365 aad group list --type security
36
+ ```
37
+
27
38
  ## Response
28
39
 
29
40
  <Tabs>
@@ -23,7 +23,7 @@ m365 aad user password validate [options]
23
23
 
24
24
  ## Remarks
25
25
 
26
- :::caution
26
+ :::warning
27
27
 
28
28
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
29
29
 
@@ -100,4 +100,4 @@ m365 aad user password validate --password "cli365P@ssW0rd"
100
100
  ```
101
101
 
102
102
  </TabItem>
103
- </Tabs>
103
+ </Tabs>
@@ -47,7 +47,7 @@ The predefined card is automatically adjusted based on which options have been s
47
47
 
48
48
  If your custom card is a card template (card with placeholders like `${title}`), you can fill it with data either by specifying the complete data object using the `cardData` option, or by passing any number of arbitrary options that will be mapped onto the card. The arbitrary properties should not match any of the global options like `output`, `query`, `debug`, etc. Data options like `title`, `description`, `imageUrl` and `actionUrl` will be mapped onto the card as well.
49
49
 
50
- :::caution Escaping JSON in PowerShell
50
+ :::warning Escaping JSON in PowerShell
51
51
 
52
52
  When using the `--card` and `--cardData` options it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
53
53
 
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # external connection doctor
4
6
 
@@ -18,6 +20,7 @@ m365 external connection doctor [options]
18
20
 
19
21
  `--ux [ux]`
20
22
  : Microsoft 365 experience for which to check compatibility. Allowed values `copilot`, `search`, `all` (default)
23
+ ```
21
24
 
22
25
  <Global />
23
26
 
@@ -23,7 +23,7 @@ m365 flow environment get [options]
23
23
 
24
24
  ## Remarks
25
25
 
26
- :::caution
26
+ :::warning
27
27
 
28
28
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
29
29