@pnp/cli-microsoft365 7.3.0-beta.73848f3 → 7.3.0-beta.9479ed4

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 (444) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/Auth.js +7 -5
  4. package/dist/Command.js +10 -13
  5. package/dist/api.js +2 -3
  6. package/dist/appInsights.js +2 -1
  7. package/dist/autocomplete.js +4 -6
  8. package/dist/chili/chili.js +1 -2
  9. package/dist/cli/cli.js +880 -0
  10. package/dist/index.js +2 -10
  11. package/dist/m365/aad/commands/administrativeunit/administrativeunit-member-add.js +137 -0
  12. package/dist/m365/aad/commands/administrativeunit/administrativeunit-member-get.js +112 -0
  13. package/dist/m365/aad/commands/administrativeunit/administrativeunit-member-list.js +138 -0
  14. package/dist/m365/aad/commands/administrativeunit/administrativeunit-remove.js +2 -2
  15. package/dist/m365/aad/commands/app/app-get.js +2 -2
  16. package/dist/m365/aad/commands/app/app-permission-add.js +237 -0
  17. package/dist/m365/aad/commands/app/app-remove.js +3 -3
  18. package/dist/m365/aad/commands/app/app-role-add.js +2 -2
  19. package/dist/m365/aad/commands/app/app-role-list.js +2 -2
  20. package/dist/m365/aad/commands/app/app-role-remove.js +4 -4
  21. package/dist/m365/aad/commands/app/app-set.js +2 -2
  22. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +2 -2
  23. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +2 -2
  24. package/dist/m365/aad/commands/group/group-list.js +71 -3
  25. package/dist/m365/aad/commands/group/group-remove.js +2 -2
  26. package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +2 -2
  27. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-clear.js +2 -2
  28. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-remove.js +3 -3
  29. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-restore.js +2 -2
  30. package/dist/m365/aad/commands/m365group/m365group-remove.js +2 -2
  31. package/dist/m365/aad/commands/m365group/m365group-teamify.js +2 -2
  32. package/dist/m365/aad/commands/m365group/m365group-user-remove.js +2 -2
  33. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -2
  34. package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +2 -2
  35. package/dist/m365/aad/commands/sp/sp-add.js +2 -2
  36. package/dist/m365/aad/commands/sp/sp-get.js +2 -2
  37. package/dist/m365/aad/commands/user/user-get.js +2 -2
  38. package/dist/m365/aad/commands/user/user-license-remove.js +2 -2
  39. package/dist/m365/aad/commands/user/user-recyclebinitem-clear.js +2 -2
  40. package/dist/m365/aad/commands/user/user-recyclebinitem-remove.js +2 -2
  41. package/dist/m365/aad/commands/user/user-remove.js +2 -2
  42. package/dist/m365/aad/commands.js +5 -1
  43. package/dist/m365/app/commands/app-get.js +2 -2
  44. package/dist/m365/app/commands/app-open.js +2 -2
  45. package/dist/m365/app/commands/permission/permission-list.js +2 -2
  46. package/dist/m365/base/AppCommand.js +2 -2
  47. package/dist/m365/base/PowerAutomateCommand.js +18 -0
  48. package/dist/m365/booking/commands/business/business-get.js +2 -2
  49. package/dist/m365/cli/commands/cli-doctor.js +2 -2
  50. package/dist/m365/cli/commands/cli-reconsent.js +2 -2
  51. package/dist/m365/cli/commands/config/config-get.js +2 -2
  52. package/dist/m365/cli/commands/config/config-list.js +2 -2
  53. package/dist/m365/cli/commands/config/config-reset.js +3 -3
  54. package/dist/m365/cli/commands/config/config-set.js +4 -4
  55. package/dist/m365/commands/docs.js +2 -2
  56. package/dist/m365/commands/login.js +4 -4
  57. package/dist/m365/commands/setup.js +8 -8
  58. package/dist/m365/context/commands/context-remove.js +2 -2
  59. package/dist/m365/context/commands/option/option-remove.js +2 -2
  60. package/dist/m365/external/commands/connection/connection-doctor.js +423 -0
  61. package/dist/m365/external/commands/connection/connection-remove.js +3 -3
  62. package/dist/m365/external/commands/connection/connection-schema-add.js +36 -3
  63. package/dist/m365/external/commands/item/item-add.js +144 -0
  64. package/dist/m365/external/commands.js +3 -1
  65. package/dist/m365/flow/commands/environment/environment-get.js +3 -3
  66. package/dist/m365/flow/commands/environment/environment-list.js +3 -3
  67. package/dist/m365/flow/commands/flow-disable.js +3 -3
  68. package/dist/m365/flow/commands/flow-enable.js +3 -3
  69. package/dist/m365/flow/commands/flow-get.js +3 -3
  70. package/dist/m365/flow/commands/flow-list.js +14 -12
  71. package/dist/m365/flow/commands/flow-remove.js +5 -5
  72. package/dist/m365/flow/commands/owner/owner-ensure.js +3 -3
  73. package/dist/m365/flow/commands/owner/owner-list.js +5 -5
  74. package/dist/m365/flow/commands/owner/owner-remove.js +5 -5
  75. package/dist/m365/flow/commands/run/run-cancel.js +5 -5
  76. package/dist/m365/flow/commands/run/run-get.js +3 -3
  77. package/dist/m365/flow/commands/run/run-list.js +8 -7
  78. package/dist/m365/flow/commands/run/run-resubmit.js +6 -6
  79. package/dist/m365/graph/commands/changelog/changelog-list.js +3 -3
  80. package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +2 -2
  81. package/dist/m365/outlook/commands/message/message-list.js +2 -2
  82. package/dist/m365/outlook/commands/message/message-move.js +2 -2
  83. package/dist/m365/pa/commands/app/app-consent-set.js +2 -2
  84. package/dist/m365/pa/commands/app/app-get.js +2 -2
  85. package/dist/m365/pa/commands/app/app-permission-remove.js +2 -2
  86. package/dist/m365/pa/commands/app/app-remove.js +2 -2
  87. package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
  88. package/dist/m365/planner/commands/bucket/bucket-remove.js +3 -3
  89. package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
  90. package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
  91. package/dist/m365/planner/commands/roster/roster-member-remove.js +3 -3
  92. package/dist/m365/planner/commands/roster/roster-remove.js +2 -2
  93. package/dist/m365/planner/commands/task/task-checklistitem-add.js +2 -2
  94. package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -2
  95. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -2
  96. package/dist/m365/planner/commands/task/task-get.js +3 -3
  97. package/dist/m365/planner/commands/task/task-reference-remove.js +2 -2
  98. package/dist/m365/planner/commands/task/task-remove.js +4 -4
  99. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +2 -2
  100. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-remove.js +3 -3
  101. package/dist/m365/pp/commands/card/card-clone.js +2 -2
  102. package/dist/m365/pp/commands/card/card-get.js +2 -2
  103. package/dist/m365/pp/commands/card/card-remove.js +3 -3
  104. package/dist/m365/pp/commands/chatbot/chatbot-get.js +2 -2
  105. package/dist/m365/pp/commands/chatbot/chatbot-remove.js +3 -3
  106. package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +2 -2
  107. package/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +2 -2
  108. package/dist/m365/pp/commands/managementapp/managementapp-add.js +2 -2
  109. package/dist/m365/pp/commands/solution/solution-get.js +2 -2
  110. package/dist/m365/pp/commands/solution/solution-list.js +2 -2
  111. package/dist/m365/pp/commands/solution/solution-publish.js +2 -2
  112. package/dist/m365/pp/commands/solution/solution-publisher-remove.js +3 -3
  113. package/dist/m365/pp/commands/solution/solution-remove.js +3 -3
  114. package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +2 -2
  115. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-remove.js +2 -2
  116. package/dist/m365/purview/commands/retentionlabel/retentionlabel-remove.js +2 -2
  117. package/dist/m365/spfx/commands/project/project-permissions-grant.js +2 -2
  118. package/dist/m365/spo/commands/app/app-add.js +2 -2
  119. package/dist/m365/spo/commands/app/app-remove.js +2 -2
  120. package/dist/m365/spo/commands/app/app-retract.js +2 -2
  121. package/dist/m365/spo/commands/app/app-uninstall.js +2 -2
  122. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +2 -2
  123. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +3 -3
  124. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +2 -2
  125. package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +2 -2
  126. package/dist/m365/spo/commands/commandset/commandset-get.js +2 -2
  127. package/dist/m365/spo/commands/commandset/commandset-remove.js +3 -3
  128. package/dist/m365/spo/commands/commandset/commandset-set.js +2 -2
  129. package/dist/m365/spo/commands/contenttype/contenttype-add.js +2 -2
  130. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +2 -2
  131. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +2 -2
  132. package/dist/m365/spo/commands/customaction/customaction-add.js +1 -1
  133. package/dist/m365/spo/commands/customaction/customaction-clear.js +2 -2
  134. package/dist/m365/spo/commands/customaction/customaction-get.js +3 -3
  135. package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -3
  136. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +2 -2
  137. package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +3 -3
  138. package/dist/m365/spo/commands/field/field-remove.js +2 -2
  139. package/dist/m365/spo/commands/file/file-add.js +1 -1
  140. package/dist/m365/spo/commands/file/file-checkout-undo.js +2 -2
  141. package/dist/m365/spo/commands/file/file-remove.js +2 -2
  142. package/dist/m365/spo/commands/file/file-rename.js +2 -2
  143. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +2 -2
  144. package/dist/m365/spo/commands/file/file-roleassignment-add.js +5 -5
  145. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +5 -5
  146. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +3 -3
  147. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +3 -3
  148. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +2 -2
  149. package/dist/m365/spo/commands/file/file-sharinglink-clear.js +3 -3
  150. package/dist/m365/spo/commands/file/file-sharinglink-list.js +2 -2
  151. package/dist/m365/spo/commands/file/file-sharinglink-remove.js +2 -2
  152. package/dist/m365/spo/commands/file/file-version-clear.js +2 -2
  153. package/dist/m365/spo/commands/file/file-version-remove.js +2 -2
  154. package/dist/m365/spo/commands/file/file-version-restore.js +2 -2
  155. package/dist/m365/spo/commands/folder/folder-remove.js +2 -2
  156. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +2 -2
  157. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +4 -4
  158. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +4 -4
  159. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +2 -2
  160. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +2 -2
  161. package/dist/m365/spo/commands/group/group-list.js +2 -2
  162. package/dist/m365/spo/commands/group/group-member-remove.js +9 -9
  163. package/dist/m365/spo/commands/group/group-remove.js +2 -2
  164. package/dist/m365/spo/commands/group/group-set.js +2 -2
  165. package/dist/m365/spo/commands/homesite/homesite-remove.js +2 -2
  166. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +2 -2
  167. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +3 -3
  168. package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -4
  169. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +2 -2
  170. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +2 -2
  171. package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +2 -2
  172. package/dist/m365/spo/commands/list/list-contenttype-remove.js +2 -2
  173. package/dist/m365/spo/commands/list/list-remove.js +2 -2
  174. package/dist/m365/spo/commands/list/list-retentionlabel-remove.js +2 -2
  175. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +4 -4
  176. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +2 -2
  177. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +2 -2
  178. package/dist/m365/spo/commands/list/list-view-field-remove.js +2 -2
  179. package/dist/m365/spo/commands/list/list-view-remove.js +2 -2
  180. package/dist/m365/spo/commands/list/list-webhook-remove.js +2 -2
  181. package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +2 -2
  182. package/dist/m365/spo/commands/listitem/listitem-batch-add.js +18 -7
  183. package/dist/m365/spo/commands/listitem/listitem-list.js +2 -2
  184. package/dist/m365/spo/commands/listitem/listitem-remove.js +2 -2
  185. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +2 -2
  186. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +4 -4
  187. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +4 -4
  188. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +2 -2
  189. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +2 -2
  190. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +2 -2
  191. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +2 -2
  192. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +2 -2
  193. package/dist/m365/spo/commands/page/page-add.js +10 -31
  194. package/dist/m365/spo/commands/page/page-column-get.js +2 -2
  195. package/dist/m365/spo/commands/page/page-column-list.js +2 -2
  196. package/dist/m365/spo/commands/page/page-remove.js +2 -2
  197. package/dist/m365/spo/commands/page/page-section-get.js +2 -2
  198. package/dist/m365/spo/commands/page/page-section-list.js +2 -2
  199. package/dist/m365/spo/commands/page/page-set.js +5 -5
  200. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +2 -2
  201. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +2 -2
  202. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +2 -2
  203. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +2 -2
  204. package/dist/m365/spo/commands/site/site-apppermission-remove.js +2 -2
  205. package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +2 -2
  206. package/dist/m365/spo/commands/site/site-recyclebinitem-clear.js +2 -2
  207. package/dist/m365/spo/commands/site/site-recyclebinitem-move.js +2 -2
  208. package/dist/m365/spo/commands/site/site-recyclebinitem-remove.js +2 -2
  209. package/dist/m365/spo/commands/site/site-remove.js +2 -2
  210. package/dist/m365/spo/commands/site/site-set.js +3 -3
  211. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +2 -2
  212. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +2 -2
  213. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +2 -2
  214. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +2 -2
  215. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +2 -2
  216. package/dist/m365/spo/commands/spo-search.js +2 -2
  217. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +2 -2
  218. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +5 -5
  219. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +5 -5
  220. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +2 -2
  221. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +3 -3
  222. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +4 -4
  223. package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +5 -5
  224. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +2 -2
  225. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -3
  226. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +2 -2
  227. package/dist/m365/spo/commands/term/term-get.js +2 -2
  228. package/dist/m365/spo/commands/term/term-list.js +2 -2
  229. package/dist/m365/spo/commands/theme/theme-remove.js +2 -2
  230. package/dist/m365/spo/commands/user/user-remove.js +2 -2
  231. package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -2
  232. package/dist/m365/spo/commands/web/web-remove.js +2 -2
  233. package/dist/m365/spo/commands/web/web-roleassignment-add.js +4 -4
  234. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +4 -4
  235. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +2 -2
  236. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +2 -2
  237. package/dist/m365/teams/commands/app/app-install.js +32 -5
  238. package/dist/m365/teams/commands/app/app-remove.js +3 -3
  239. package/dist/m365/teams/commands/app/app-uninstall.js +2 -2
  240. package/dist/m365/teams/commands/app/app-update.js +2 -2
  241. package/dist/m365/teams/commands/cache/cache-remove.js +2 -2
  242. package/dist/m365/teams/commands/channel/channel-add.js +2 -2
  243. package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
  244. package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -3
  245. package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
  246. package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
  247. package/dist/m365/teams/commands/chat/chat-get.js +3 -3
  248. package/dist/m365/teams/commands/chat/chat-member-remove.js +2 -2
  249. package/dist/m365/teams/commands/chat/chat-message-send.js +3 -3
  250. package/dist/m365/teams/commands/meeting/meeting-add.js +151 -0
  251. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +2 -2
  252. package/dist/m365/teams/commands/tab/tab-remove.js +2 -2
  253. package/dist/m365/teams/commands/team/team-app-list.js +3 -3
  254. package/dist/m365/teams/commands/team/team-remove.js +2 -2
  255. package/dist/m365/teams/commands/user/user-app-add.js +23 -5
  256. package/dist/m365/teams/commands/user/user-app-list.js +2 -2
  257. package/dist/m365/teams/commands/user/user-app-remove.js +35 -4
  258. package/dist/m365/teams/commands.js +2 -1
  259. package/dist/m365/tenant/commands/people/people-profilecardproperty-remove.js +2 -2
  260. package/dist/m365/todo/commands/list/list-remove.js +2 -2
  261. package/dist/m365/todo/commands/task/task-get.js +2 -2
  262. package/dist/m365/todo/commands/task/task-list.js +2 -2
  263. package/dist/m365/todo/commands/task/task-remove.js +2 -2
  264. package/dist/m365/viva/commands/connections/connections-app-create.js +2 -2
  265. package/dist/m365/yammer/commands/group/group-user-remove.js +2 -2
  266. package/dist/m365/yammer/commands/message/message-like-set.js +2 -2
  267. package/dist/m365/yammer/commands/message/message-remove.js +2 -2
  268. package/dist/m365/yammer/commands/yammer-search.js +2 -2
  269. package/dist/telemetry.js +2 -10
  270. package/dist/utils/aadAdministrativeUnit.js +5 -5
  271. package/dist/utils/aadDevice.js +25 -0
  272. package/dist/utils/aadGroup.js +3 -3
  273. package/dist/utils/prompt.js +4 -7
  274. package/dist/utils/validation.js +5 -2
  275. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-member-add.mdx +93 -0
  276. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-member-get.mdx +130 -0
  277. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-member-list.mdx +312 -0
  278. package/docs/docs/cmd/aad/app/app-permission-add.mdx +62 -0
  279. package/docs/docs/cmd/aad/group/group-list.mdx +11 -0
  280. package/docs/docs/cmd/aad/user/user-password-validate.mdx +2 -2
  281. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  282. package/docs/docs/cmd/external/connection/connection-doctor.mdx +182 -0
  283. package/docs/docs/cmd/external/connection/connection-schema-add.mdx +14 -1
  284. package/docs/docs/cmd/external/item/item-add.mdx +145 -0
  285. package/docs/docs/cmd/flow/environment/environment-get.mdx +1 -1
  286. package/docs/docs/cmd/flow/environment/environment-list.mdx +1 -1
  287. package/docs/docs/cmd/flow/flow-disable.mdx +1 -1
  288. package/docs/docs/cmd/flow/flow-enable.mdx +1 -1
  289. package/docs/docs/cmd/flow/flow-export.mdx +1 -1
  290. package/docs/docs/cmd/flow/flow-get.mdx +1 -1
  291. package/docs/docs/cmd/flow/flow-list.mdx +1 -1
  292. package/docs/docs/cmd/flow/run/run-cancel.mdx +1 -1
  293. package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
  294. package/docs/docs/cmd/flow/run/run-list.mdx +1 -1
  295. package/docs/docs/cmd/flow/run/run-resubmit.mdx +1 -1
  296. package/docs/docs/cmd/graph/changelog/changelog-list.mdx +1 -1
  297. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  298. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  299. package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +0 -3
  300. package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +0 -3
  301. package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +0 -3
  302. package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +0 -3
  303. package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +0 -3
  304. package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +0 -3
  305. package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +0 -3
  306. package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +0 -3
  307. package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +0 -3
  308. package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +0 -3
  309. package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +0 -3
  310. package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +0 -3
  311. package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +0 -3
  312. package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +0 -3
  313. package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +0 -3
  314. package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +0 -3
  315. package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +0 -3
  316. package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +0 -3
  317. package/docs/docs/cmd/pa/app/app-get.mdx +1 -1
  318. package/docs/docs/cmd/pa/app/app-list.mdx +1 -1
  319. package/docs/docs/cmd/pa/connector/connector-export.mdx +1 -1
  320. package/docs/docs/cmd/pa/connector/connector-list.mdx +1 -1
  321. package/docs/docs/cmd/pa/environment/environment-get.mdx +1 -1
  322. package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -1
  323. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +1 -1
  324. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +1 -1
  325. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +1 -1
  326. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +1 -1
  327. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +1 -1
  328. package/docs/docs/cmd/planner/plan/plan-get.mdx +1 -1
  329. package/docs/docs/cmd/planner/plan/plan-list.mdx +1 -1
  330. package/docs/docs/cmd/planner/plan/plan-set.mdx +1 -1
  331. package/docs/docs/cmd/planner/roster/roster-add.mdx +2 -2
  332. package/docs/docs/cmd/planner/roster/roster-get.mdx +1 -1
  333. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +1 -1
  334. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +1 -1
  335. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -1
  336. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +2 -2
  337. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
  338. package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
  339. package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
  340. package/docs/docs/cmd/planner/task/task-list.mdx +2 -2
  341. package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
  342. package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
  343. package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
  344. package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
  345. package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +1 -1
  346. package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +1 -1
  347. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +1 -1
  348. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -1
  349. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -1
  350. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +1 -1
  351. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +1 -1
  352. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -1
  353. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -1
  354. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +1 -1
  355. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +1 -1
  356. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +1 -1
  357. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +1 -1
  358. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +1 -1
  359. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +1 -1
  360. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +1 -1
  361. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +2 -2
  362. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +2 -2
  363. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +2 -2
  364. package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -2
  365. package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -3
  366. package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -3
  367. package/docs/docs/cmd/spfx/project/project-externalize.mdx +1 -1
  368. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  369. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  370. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  371. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  372. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  373. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  374. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  375. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +1 -1
  376. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  377. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +1 -1
  378. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  379. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  380. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +26 -4
  381. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  382. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  383. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  384. package/docs/docs/cmd/spo/page/page-set.mdx +1 -1
  385. package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +0 -3
  386. package/docs/docs/cmd/spo/report/report-activitypages.mdx +0 -3
  387. package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +0 -3
  388. package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +0 -3
  389. package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +0 -3
  390. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +0 -3
  391. package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +0 -3
  392. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +0 -3
  393. package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +0 -3
  394. package/docs/docs/cmd/spo/site/site-groupify.mdx +1 -1
  395. package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +1 -1
  396. package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +1 -1
  397. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  398. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  399. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  400. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  401. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  402. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  403. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  404. package/docs/docs/cmd/teams/app/app-install.mdx +11 -2
  405. package/docs/docs/cmd/teams/meeting/meeting-add.mdx +283 -0
  406. package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +2 -2
  407. package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +0 -3
  408. package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +0 -3
  409. package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +0 -3
  410. package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +0 -3
  411. package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +0 -3
  412. package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +0 -3
  413. package/docs/docs/cmd/teams/user/user-app-add.mdx +12 -3
  414. package/docs/docs/cmd/teams/user/user-app-remove.mdx +15 -6
  415. package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +1 -1
  416. package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +1 -1
  417. package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +1 -1
  418. package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +0 -3
  419. package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +0 -3
  420. package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +0 -3
  421. package/docs/docs/cmd/yammer/group/group-list.mdx +1 -1
  422. package/docs/docs/cmd/yammer/group/group-user-add.mdx +1 -1
  423. package/docs/docs/cmd/yammer/group/group-user-remove.mdx +1 -1
  424. package/docs/docs/cmd/yammer/message/message-add.mdx +1 -1
  425. package/docs/docs/cmd/yammer/message/message-get.mdx +1 -1
  426. package/docs/docs/cmd/yammer/message/message-like-set.mdx +1 -1
  427. package/docs/docs/cmd/yammer/message/message-list.mdx +1 -1
  428. package/docs/docs/cmd/yammer/message/message-remove.mdx +1 -1
  429. package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
  430. package/docs/docs/cmd/yammer/report/report-activitycounts.mdx +0 -3
  431. package/docs/docs/cmd/yammer/report/report-activityusercounts.mdx +0 -3
  432. package/docs/docs/cmd/yammer/report/report-activityuserdetail.mdx +0 -3
  433. package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.mdx +0 -3
  434. package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.mdx +0 -3
  435. package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.mdx +0 -3
  436. package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.mdx +0 -3
  437. package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.mdx +0 -3
  438. package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.mdx +0 -3
  439. package/docs/docs/cmd/yammer/user/user-get.mdx +1 -1
  440. package/docs/docs/cmd/yammer/user/user-list.mdx +1 -1
  441. package/docs/docs/cmd/yammer/yammer-search.mdx +1 -1
  442. package/npm-shrinkwrap.json +1012 -410
  443. package/package.json +26 -25
  444. 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 _SpoTenantAppCatalogAddCommand_instances, _SpoTenantAppCatalogAddCommand_initTelemetry, _SpoTenantAppCatalogAddCommand_initOptions, _SpoTenantAppCatalogAddCommand_initValidators;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import { CommandError } from '../../../../Command.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -31,7 +31,7 @@ class SpoTenantAppCatalogAddCommand extends SpoCommand {
31
31
  if (this.verbose) {
32
32
  await logger.logToStderr('Checking for existing app catalog URL...');
33
33
  }
34
- const spoTenantAppCatalogUrlGetCommandOutput = await Cli.executeCommandWithOutput(spoTenantAppCatalogUrlGetCommand, { options: { output: 'text', _: [] } });
34
+ const spoTenantAppCatalogUrlGetCommandOutput = await cli.executeCommandWithOutput(spoTenantAppCatalogUrlGetCommand, { options: { output: 'text', _: [] } });
35
35
  const appCatalogUrl = spoTenantAppCatalogUrlGetCommandOutput.stdout;
36
36
  if (!appCatalogUrl) {
37
37
  if (this.verbose) {
@@ -61,7 +61,7 @@ class SpoTenantAppCatalogAddCommand extends SpoCommand {
61
61
  }
62
62
  };
63
63
  try {
64
- await Cli.executeCommandWithOutput(spoSiteGetCommand, siteGetOptions);
64
+ await cli.executeCommandWithOutput(spoSiteGetCommand, siteGetOptions);
65
65
  if (this.verbose) {
66
66
  await logger.logToStderr(`Found site ${url}`);
67
67
  }
@@ -79,7 +79,7 @@ class SpoTenantAppCatalogAddCommand extends SpoCommand {
79
79
  verbose: this.verbose,
80
80
  debug: this.debug
81
81
  };
82
- await Cli.executeCommand(spoSiteRemoveCommand, { options: { ...siteRemoveOptions, _: [] } });
82
+ await cli.executeCommand(spoSiteRemoveCommand, { options: { ...siteRemoveOptions, _: [] } });
83
83
  }
84
84
  catch (err) {
85
85
  if (err.error?.message !== 'File not Found' && err.error?.message !== '404 FILE NOT FOUND') {
@@ -107,7 +107,7 @@ class SpoTenantAppCatalogAddCommand extends SpoCommand {
107
107
  debug: this.debug,
108
108
  removeDeletedSite: false
109
109
  };
110
- return Cli.executeCommand(spoSiteAddCommand, { options: { ...siteAddOptions, _: [] } });
110
+ return cli.executeCommand(spoSiteAddCommand, { options: { ...siteAddOptions, _: [] } });
111
111
  }
112
112
  }
113
113
  _SpoTenantAppCatalogAddCommand_instances = new WeakSet(), _SpoTenantAppCatalogAddCommand_initTelemetry = function _SpoTenantAppCatalogAddCommand_initTelemetry() {
@@ -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 _SpoTenantApplicationCustomizerAddCommand_instances, _SpoTenantApplicationCustomizerAddCommand_initTelemetry, _SpoTenantApplicationCustomizerAddCommand_initOptions, _SpoTenantApplicationCustomizerAddCommand_initValidators;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import { urlUtil } from '../../../../utils/urlUtil.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -48,7 +48,7 @@ class SpoTenantApplicationCustomizerAddCommand extends SpoCommand {
48
48
  }
49
49
  }
50
50
  async getAppCatalogUrl(logger) {
51
- const spoTenantAppCatalogUrlGetCommandOutput = await Cli.executeCommandWithOutput(spoTenantAppCatalogUrlGetCommand, { options: { output: 'text', _: [] } });
51
+ const spoTenantAppCatalogUrlGetCommandOutput = await cli.executeCommandWithOutput(spoTenantAppCatalogUrlGetCommand, { options: { output: 'text', _: [] } });
52
52
  if (this.verbose) {
53
53
  await logger.logToStderr(spoTenantAppCatalogUrlGetCommandOutput.stderr);
54
54
  }
@@ -74,7 +74,7 @@ class SpoTenantApplicationCustomizerAddCommand extends SpoCommand {
74
74
  debug: this.debug,
75
75
  output: 'json'
76
76
  };
77
- const output = await Cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
77
+ const output = await cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
78
78
  if (this.verbose) {
79
79
  await logger.logToStderr(output.stderr);
80
80
  }
@@ -97,7 +97,7 @@ class SpoTenantApplicationCustomizerAddCommand extends SpoCommand {
97
97
  debug: this.debug,
98
98
  output: 'json'
99
99
  };
100
- const output = await Cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
100
+ const output = await cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
101
101
  if (this.verbose) {
102
102
  await logger.logToStderr(output.stderr);
103
103
  }
@@ -126,7 +126,7 @@ class SpoTenantApplicationCustomizerAddCommand extends SpoCommand {
126
126
  debug: this.debug,
127
127
  output: options.output
128
128
  };
129
- await Cli.executeCommand(spoListItemAddCommand, { options: { ...commandOptions, _: [] } });
129
+ await cli.executeCommand(spoListItemAddCommand, { options: { ...commandOptions, _: [] } });
130
130
  }
131
131
  }
132
132
  _SpoTenantApplicationCustomizerAddCommand_instances = new WeakSet(), _SpoTenantApplicationCustomizerAddCommand_initTelemetry = function _SpoTenantApplicationCustomizerAddCommand_initTelemetry() {
@@ -11,7 +11,7 @@ import { urlUtil } from '../../../../utils/urlUtil.js';
11
11
  import { validation } from '../../../../utils/validation.js';
12
12
  import SpoCommand from '../../../base/SpoCommand.js';
13
13
  import commands from '../../commands.js';
14
- import { Cli } from '../../../../cli/Cli.js';
14
+ import { cli } from '../../../../cli/cli.js';
15
15
  class SpoTenantApplicationCustomizerGetCommand extends SpoCommand {
16
16
  get name() {
17
17
  return commands.TENANT_APPLICATIONCUSTOMIZER_GET;
@@ -52,7 +52,7 @@ class SpoTenantApplicationCustomizerGetCommand extends SpoCommand {
52
52
  listItemInstances.forEach(v => delete v['ID']);
53
53
  if (listItemInstances.length > 1) {
54
54
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', listItemInstances);
55
- const result = await Cli.handleMultipleResultsFound(`Multiple application customizers with ${args.options.title || args.options.clientSideComponentId} were found.`, resultAsKeyValuePair);
55
+ const result = await cli.handleMultipleResultsFound(`Multiple application customizers with ${args.options.title || args.options.clientSideComponentId} were found.`, resultAsKeyValuePair);
56
56
  await logger.log(result);
57
57
  }
58
58
  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 _SpoTenantApplicationCustomizerRemoveCommand_instances, _SpoTenantApplicationCustomizerRemoveCommand_initTelemetry, _SpoTenantApplicationCustomizerRemoveCommand_initOptions, _SpoTenantApplicationCustomizerRemoveCommand_initValidators, _SpoTenantApplicationCustomizerRemoveCommand_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 { formatting } from '../../../../utils/formatting.js';
10
10
  import { odata } from '../../../../utils/odata.js';
@@ -33,7 +33,7 @@ class SpoTenantApplicationCustomizerRemoveCommand extends SpoCommand {
33
33
  if (args.options.force) {
34
34
  return await this.removeTenantApplicationCustomizer(logger, args);
35
35
  }
36
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the tenant applicationcustomizer ${args.options.id || args.options.title || args.options.clientSideComponentId}?` });
36
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the tenant applicationcustomizer ${args.options.id || args.options.title || args.options.clientSideComponentId}?` });
37
37
  if (result) {
38
38
  await this.removeTenantApplicationCustomizer(logger, args);
39
39
  }
@@ -62,7 +62,7 @@ class SpoTenantApplicationCustomizerRemoveCommand extends SpoCommand {
62
62
  }
63
63
  if (listItemInstances.length > 1) {
64
64
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', listItemInstances);
65
- listItemInstances[0] = await Cli.handleMultipleResultsFound(`Multiple application customizers with ${args.options.title || args.options.clientSideComponentId} were found.`, resultAsKeyValuePair);
65
+ listItemInstances[0] = await cli.handleMultipleResultsFound(`Multiple application customizers with ${args.options.title || args.options.clientSideComponentId} were found.`, resultAsKeyValuePair);
66
66
  }
67
67
  return listItemInstances[0].Id;
68
68
  }
@@ -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 _SpoTenantApplicationCustomizerSetCommand_instances, _SpoTenantApplicationCustomizerSetCommand_initTelemetry, _SpoTenantApplicationCustomizerSetCommand_initOptions, _SpoTenantApplicationCustomizerSetCommand_initValidators, _SpoTenantApplicationCustomizerSetCommand_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 { formatting } from '../../../../utils/formatting.js';
10
10
  import { odata } from '../../../../utils/odata.js';
@@ -69,7 +69,7 @@ class SpoTenantApplicationCustomizerSetCommand extends SpoCommand {
69
69
  }
70
70
  if (listItemInstances.length > 1) {
71
71
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', listItemInstances);
72
- const result = await Cli.handleMultipleResultsFound(`Multiple application customizers with ${title ? `title '${title}'` : `ClientSideComponentId '${clientSideComponentId}'`} found.`, resultAsKeyValuePair);
72
+ const result = await cli.handleMultipleResultsFound(`Multiple application customizers with ${title ? `title '${title}'` : `ClientSideComponentId '${clientSideComponentId}'`} found.`, resultAsKeyValuePair);
73
73
  return result.Id;
74
74
  }
75
75
  return listItemInstances[0].Id;
@@ -87,7 +87,7 @@ class SpoTenantApplicationCustomizerSetCommand extends SpoCommand {
87
87
  debug: this.debug,
88
88
  output: 'json'
89
89
  };
90
- const output = await Cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
90
+ const output = await cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
91
91
  if (this.verbose) {
92
92
  logger.logToStderr(output.stderr);
93
93
  }
@@ -110,7 +110,7 @@ class SpoTenantApplicationCustomizerSetCommand extends SpoCommand {
110
110
  debug: this.debug,
111
111
  output: 'json'
112
112
  };
113
- const output = await Cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
113
+ const output = await cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
114
114
  if (this.verbose) {
115
115
  logger.logToStderr(output.stderr);
116
116
  }
@@ -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 _SpoTenantCommandSetAddCommand_instances, _a, _SpoTenantCommandSetAddCommand_initTelemetry, _SpoTenantCommandSetAddCommand_initOptions, _SpoTenantCommandSetAddCommand_initValidators;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import { urlUtil } from '../../../../utils/urlUtil.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -48,7 +48,7 @@ class SpoTenantCommandSetAddCommand extends SpoCommand {
48
48
  }
49
49
  }
50
50
  async getAppCatalogUrl(logger) {
51
- const spoTenantAppCatalogUrlGetCommandOutput = await Cli.executeCommandWithOutput(spoTenantAppCatalogUrlGetCommand, { options: { output: 'text', _: [] } });
51
+ const spoTenantAppCatalogUrlGetCommandOutput = await cli.executeCommandWithOutput(spoTenantAppCatalogUrlGetCommand, { options: { output: 'text', _: [] } });
52
52
  if (this.verbose) {
53
53
  await logger.logToStderr(spoTenantAppCatalogUrlGetCommandOutput.stderr);
54
54
  }
@@ -74,7 +74,7 @@ class SpoTenantCommandSetAddCommand extends SpoCommand {
74
74
  debug: this.debug,
75
75
  output: 'json'
76
76
  };
77
- const output = await Cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
77
+ const output = await cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
78
78
  if (this.verbose) {
79
79
  await logger.logToStderr(output.stderr);
80
80
  }
@@ -97,7 +97,7 @@ class SpoTenantCommandSetAddCommand extends SpoCommand {
97
97
  debug: this.debug,
98
98
  output: 'json'
99
99
  };
100
- const output = await Cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
100
+ const output = await cli.executeCommandWithOutput(spoListItemListCommand, { options: { ...commandOptions, _: [] } });
101
101
  if (this.verbose) {
102
102
  await logger.logToStderr(output.stderr);
103
103
  }
@@ -126,7 +126,7 @@ class SpoTenantCommandSetAddCommand extends SpoCommand {
126
126
  debug: this.debug,
127
127
  output: options.output
128
128
  };
129
- await Cli.executeCommand(spoListItemAddCommand, { options: { ...commandOptions, _: [] } });
129
+ await cli.executeCommand(spoListItemAddCommand, { options: { ...commandOptions, _: [] } });
130
130
  }
131
131
  getLocation(location) {
132
132
  switch (location) {
@@ -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 _SpoTenantCommandSetGetCommand_instances, _SpoTenantCommandSetGetCommand_initTelemetry, _SpoTenantCommandSetGetCommand_initOptions, _SpoTenantCommandSetGetCommand_initValidators, _SpoTenantCommandSetGetCommand_initOptionSets;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import { CommandError } from '../../../../Command.js';
9
9
  import request from '../../../../request.js';
10
10
  import { formatting } from '../../../../utils/formatting.js';
@@ -57,7 +57,7 @@ class SpoTenantCommandSetGetCommand extends SpoCommand {
57
57
  listItemInstances.value.forEach(v => delete v['ID']);
58
58
  if (listItemInstances.value.length > 1) {
59
59
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', listItemInstances.value);
60
- const result = await Cli.handleMultipleResultsFound(`Multiple ListView Command Sets with ${args.options.title || args.options.clientSideComponentId} were found.`, resultAsKeyValuePair);
60
+ const result = await cli.handleMultipleResultsFound(`Multiple ListView Command Sets with ${args.options.title || args.options.clientSideComponentId} were found.`, resultAsKeyValuePair);
61
61
  await logger.log(result);
62
62
  }
63
63
  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 _SpoTenantCommandSetRemoveCommand_instances, _SpoTenantCommandSetRemoveCommand_initTelemetry, _SpoTenantCommandSetRemoveCommand_initOptions, _SpoTenantCommandSetRemoveCommand_initValidators, _SpoTenantCommandSetRemoveCommand_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 { formatting } from '../../../../utils/formatting.js';
10
10
  import { odata } from '../../../../utils/odata.js';
@@ -33,7 +33,7 @@ class SpoTenantCommandSetRemoveCommand extends SpoCommand {
33
33
  if (args.options.force) {
34
34
  return await this.removeTenantCommandSet(logger, args);
35
35
  }
36
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the tenant commandset ${args.options.id || args.options.title || args.options.clientSideComponentId}?` });
36
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the tenant commandset ${args.options.id || args.options.title || args.options.clientSideComponentId}?` });
37
37
  if (result) {
38
38
  await this.removeTenantCommandSet(logger, args);
39
39
  }
@@ -86,7 +86,7 @@ class SpoTenantCommandSetRemoveCommand extends SpoCommand {
86
86
  }
87
87
  if (listItemInstances.length > 1) {
88
88
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', listItemInstances);
89
- const result = await Cli.handleMultipleResultsFound(`Multiple command sets with ${args.options.title || args.options.clientSideComponentId} were found.`, resultAsKeyValuePair);
89
+ const result = await cli.handleMultipleResultsFound(`Multiple command sets with ${args.options.title || args.options.clientSideComponentId} were found.`, resultAsKeyValuePair);
90
90
  return result.Id;
91
91
  }
92
92
  return listItemInstances[0].Id;
@@ -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 _SpoTenantRecycleBinItemRemoveCommand_instances, _SpoTenantRecycleBinItemRemoveCommand_initTelemetry, _SpoTenantRecycleBinItemRemoveCommand_initOptions, _SpoTenantRecycleBinItemRemoveCommand_initValidators;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import config from '../../../../config.js';
9
9
  import request from '../../../../request.js';
10
10
  import { formatting } from '../../../../utils/formatting.js';
@@ -31,7 +31,7 @@ class SpoTenantRecycleBinItemRemoveCommand extends SpoCommand {
31
31
  await this.removeDeletedSite(logger, args);
32
32
  }
33
33
  else {
34
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the deleted site collection ${args.options.siteUrl} from tenant recycle bin?` });
34
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the deleted site collection ${args.options.siteUrl} from tenant recycle bin?` });
35
35
  if (result) {
36
36
  await this.removeDeletedSite(logger, args);
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 _SpoTermGetCommand_instances, _SpoTermGetCommand_initTelemetry, _SpoTermGetCommand_initOptions, _SpoTermGetCommand_initValidators, _SpoTermGetCommand_initOptionSets;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import config from '../../../../config.js';
9
9
  import request from '../../../../request.js';
10
10
  import { formatting } from '../../../../utils/formatting.js';
@@ -53,7 +53,7 @@ class SpoTermGetCommand extends SpoCommand {
53
53
  }
54
54
  if (terms._Child_Items_.length > 1) {
55
55
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', terms._Child_Items_);
56
- term = await Cli.handleMultipleResultsFound(`Multiple terms with the specific term name found.`, resultAsKeyValuePair);
56
+ term = await cli.handleMultipleResultsFound(`Multiple terms with the specific term name found.`, resultAsKeyValuePair);
57
57
  }
58
58
  else {
59
59
  term = terms._Child_Items_[0];
@@ -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 _SpoTermListCommand_instances, _SpoTermListCommand_initTelemetry, _SpoTermListCommand_initOptions, _SpoTermListCommand_initValidators, _SpoTermListCommand_initOptionSets;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import config from '../../../../config.js';
9
9
  import request from '../../../../request.js';
10
10
  import { formatting } from '../../../../utils/formatting.js';
@@ -51,7 +51,7 @@ class SpoTermListCommand extends SpoCommand {
51
51
  }
52
52
  }
53
53
  }
54
- if (!args.options.output || !Cli.shouldTrimOutput(args.options.output)) {
54
+ if (!args.options.output || !cli.shouldTrimOutput(args.options.output)) {
55
55
  await logger.log(terms);
56
56
  }
57
57
  else if (!args.options.includeChildTerms) {
@@ -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 _SpoThemeRemoveCommand_instances, _SpoThemeRemoveCommand_initTelemetry, _SpoThemeRemoveCommand_initOptions;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import { spo } from '../../../../utils/spo.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -27,7 +27,7 @@ class SpoThemeRemoveCommand extends SpoCommand {
27
27
  await this.removeTheme(logger, args.options);
28
28
  }
29
29
  else {
30
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the theme` });
30
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the theme` });
31
31
  if (result) {
32
32
  await this.removeTheme(logger, 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 _SpoUserRemoveCommand_instances, _SpoUserRemoveCommand_initTelemetry, _SpoUserRemoveCommand_initOptions, _SpoUserRemoveCommand_initValidators, _SpoUserRemoveCommand_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 { formatting } from '../../../../utils/formatting.js';
10
10
  import { validation } from '../../../../utils/validation.js';
@@ -30,7 +30,7 @@ class SpoUserRemoveCommand extends SpoCommand {
30
30
  await this.removeUser(logger, args.options);
31
31
  }
32
32
  else {
33
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove specified user from the site ${args.options.webUrl}?` });
33
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove specified user from the site ${args.options.webUrl}?` });
34
34
  if (result) {
35
35
  await this.removeUser(logger, 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 _SpoUserProfileGetCommand_instances, _SpoUserProfileGetCommand_initOptions, _SpoUserProfileGetCommand_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 { spo } from '../../../../utils/spo.js';
@@ -36,7 +36,7 @@ class SpoUserProfileGetCommand extends SpoCommand {
36
36
  responseType: 'json'
37
37
  };
38
38
  const res = await request.get(requestOptions);
39
- if (!args.options.output || Cli.shouldTrimOutput(args.options.output)) {
39
+ if (!args.options.output || cli.shouldTrimOutput(args.options.output)) {
40
40
  res.UserProfileProperties = JSON.stringify(res.UserProfileProperties);
41
41
  }
42
42
  await logger.log(res);
@@ -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 _SpoWebRemoveCommand_instances, _SpoWebRemoveCommand_initTelemetry, _SpoWebRemoveCommand_initOptions, _SpoWebRemoveCommand_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 { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -28,7 +28,7 @@ class SpoWebRemoveCommand extends SpoCommand {
28
28
  await this.removeWeb(logger, args.options.url);
29
29
  }
30
30
  else {
31
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the subsite ${args.options.url}?` });
31
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the subsite ${args.options.url}?` });
32
32
  if (result) {
33
33
  await this.removeWeb(logger, args.options.url);
34
34
  }
@@ -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 _SpoWebRoleAssignmentAddCommand_instances, _SpoWebRoleAssignmentAddCommand_initTelemetry, _SpoWebRoleAssignmentAddCommand_initOptions, _SpoWebRoleAssignmentAddCommand_initValidators, _SpoWebRoleAssignmentAddCommand_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 { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -71,7 +71,7 @@ class SpoWebRoleAssignmentAddCommand extends SpoCommand {
71
71
  debug: this.debug,
72
72
  verbose: this.verbose
73
73
  };
74
- const output = await Cli.executeCommandWithOutput(spoRoleDefinitionListCommand, { options: { ...roleDefinitionListCommandOptions, _: [] } });
74
+ const output = await cli.executeCommandWithOutput(spoRoleDefinitionListCommand, { options: { ...roleDefinitionListCommandOptions, _: [] } });
75
75
  const getRoleDefinitionListOutput = JSON.parse(output.stdout);
76
76
  const roleDefinitionId = getRoleDefinitionListOutput.find((role) => role.Name === options.roleDefinitionName).Id;
77
77
  return roleDefinitionId;
@@ -84,7 +84,7 @@ class SpoWebRoleAssignmentAddCommand extends SpoCommand {
84
84
  debug: this.debug,
85
85
  verbose: this.verbose
86
86
  };
87
- const output = await Cli.executeCommandWithOutput(spoGroupGetCommand, { options: { ...groupGetCommandOptions, _: [] } });
87
+ const output = await cli.executeCommandWithOutput(spoGroupGetCommand, { options: { ...groupGetCommandOptions, _: [] } });
88
88
  const getGroupOutput = JSON.parse(output.stdout);
89
89
  return getGroupOutput.Id;
90
90
  }
@@ -97,7 +97,7 @@ class SpoWebRoleAssignmentAddCommand extends SpoCommand {
97
97
  debug: this.debug,
98
98
  verbose: this.verbose
99
99
  };
100
- const output = await Cli.executeCommandWithOutput(spoUserGetCommand, { options: { ...userGetCommandOptions, _: [] } });
100
+ const output = await cli.executeCommandWithOutput(spoUserGetCommand, { options: { ...userGetCommandOptions, _: [] } });
101
101
  const getUserOutput = JSON.parse(output.stdout);
102
102
  return getUserOutput.Id;
103
103
  }
@@ -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 _SpoWebRoleAssignmentRemoveCommand_instances, _SpoWebRoleAssignmentRemoveCommand_initTelemetry, _SpoWebRoleAssignmentRemoveCommand_initOptions, _SpoWebRoleAssignmentRemoveCommand_initValidators, _SpoWebRoleAssignmentRemoveCommand_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 { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -31,7 +31,7 @@ class SpoWebRoleAssignmentRemoveCommand extends SpoCommand {
31
31
  await this.removeRoleAssignment(logger, args.options);
32
32
  }
33
33
  else {
34
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove role assignment from web ${args.options.webUrl}?` });
34
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove role assignment from web ${args.options.webUrl}?` });
35
35
  if (result) {
36
36
  await this.removeRoleAssignment(logger, args.options);
37
37
  }
@@ -78,7 +78,7 @@ class SpoWebRoleAssignmentRemoveCommand extends SpoCommand {
78
78
  debug: this.debug,
79
79
  verbose: this.verbose
80
80
  };
81
- const output = await Cli.executeCommandWithOutput(spoGroupGetCommand, { options: { ...groupGetCommandOptions, _: [] } });
81
+ const output = await cli.executeCommandWithOutput(spoGroupGetCommand, { options: { ...groupGetCommandOptions, _: [] } });
82
82
  const getGroupOutput = JSON.parse(output.stdout);
83
83
  return getGroupOutput.Id;
84
84
  }
@@ -91,7 +91,7 @@ class SpoWebRoleAssignmentRemoveCommand extends SpoCommand {
91
91
  debug: this.debug,
92
92
  verbose: this.verbose
93
93
  };
94
- const output = await Cli.executeCommandWithOutput(spoUserGetCommand, { options: { ...userGetCommandOptions, _: [] } });
94
+ const output = await cli.executeCommandWithOutput(spoUserGetCommand, { options: { ...userGetCommandOptions, _: [] } });
95
95
  const getUserOutput = JSON.parse(output.stdout);
96
96
  return getUserOutput.Id;
97
97
  }
@@ -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 _SpoWebRoleInheritanceBreakCommand_instances, _SpoWebRoleInheritanceBreakCommand_initTelemetry, _SpoWebRoleInheritanceBreakCommand_initOptions, _SpoWebRoleInheritanceBreakCommand_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 { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -31,7 +31,7 @@ class SpoWebRoleInheritanceBreakCommand extends SpoCommand {
31
31
  await this.breakRoleInheritance(args.options);
32
32
  }
33
33
  else {
34
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to break the role inheritance of subsite ${args.options.webUrl}?` });
34
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to break the role inheritance of subsite ${args.options.webUrl}?` });
35
35
  if (result) {
36
36
  await this.breakRoleInheritance(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 _SpoWebRoleInheritanceResetCommand_instances, _SpoWebRoleInheritanceResetCommand_initTelemetry, _SpoWebRoleInheritanceResetCommand_initOptions, _SpoWebRoleInheritanceResetCommand_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 { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -31,7 +31,7 @@ class SpoWebRoleInheritanceResetCommand extends SpoCommand {
31
31
  await this.resetWebRoleInheritance(args.options);
32
32
  }
33
33
  else {
34
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to reset the role inheritance of ${args.options.webUrl}?` });
34
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to reset the role inheritance of ${args.options.webUrl}?` });
35
35
  if (result) {
36
36
  await this.resetWebRoleInheritance(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 _TeamsAppInstallCommand_instances, _TeamsAppInstallCommand_initTelemetry, _TeamsAppInstallCommand_initOptions, _TeamsAppInstallCommand_initValidators, _TeamsAppInstallCommand_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 { formatting } from '../../../../utils/formatting.js';
10
10
  import { validation } from '../../../../utils/validation.js';
@@ -29,6 +29,7 @@ class TeamsAppInstallCommand extends GraphCommand {
29
29
  async commandAction(logger, args) {
30
30
  try {
31
31
  await this.validateUser(args, logger);
32
+ const appId = await this.getAppId(args.options);
32
33
  let url = `${this.resource}/v1.0`;
33
34
  if (args.options.teamId) {
34
35
  url += `/teams/${formatting.encodeQueryParameter(args.options.teamId)}/installedApps`;
@@ -44,7 +45,7 @@ class TeamsAppInstallCommand extends GraphCommand {
44
45
  },
45
46
  responseType: 'json',
46
47
  data: {
47
- 'teamsApp@odata.bind': `${this.resource}/v1.0/appCatalogs/teamsApps/${args.options.id}`
48
+ 'teamsApp@odata.bind': `${this.resource}/v1.0/appCatalogs/teamsApps/${appId}`
48
49
  }
49
50
  };
50
51
  await request.post(requestOptions);
@@ -69,7 +70,7 @@ class TeamsAppInstallCommand extends GraphCommand {
69
70
  verbose: args.options.verbose
70
71
  };
71
72
  try {
72
- const res = await Cli.executeCommandWithOutput(aadUserGetCommand, { options: { ...options, _: [] } });
73
+ const res = await cli.executeCommandWithOutput(aadUserGetCommand, { options: { ...options, _: [] } });
73
74
  if (this.verbose) {
74
75
  await logger.logToStderr(res.stderr);
75
76
  }
@@ -82,20 +83,45 @@ class TeamsAppInstallCommand extends GraphCommand {
82
83
  throw `User with ID ${args.options.userId} not found. Original error: ${err.error.message}`;
83
84
  }
84
85
  }
86
+ async getAppId(options) {
87
+ if (options.id) {
88
+ return options.id;
89
+ }
90
+ const requestOptions = {
91
+ url: `${this.resource}/v1.0/appCatalogs/teamsApps?$filter=displayName eq '${formatting.encodeQueryParameter(options.name)}'`,
92
+ headers: {
93
+ accept: 'application/json;odata.metadata=none'
94
+ },
95
+ responseType: 'json'
96
+ };
97
+ const response = await request.get(requestOptions);
98
+ const app = response.value[0];
99
+ if (!app) {
100
+ throw `The specified Teams app does not exist`;
101
+ }
102
+ if (response.value.length > 1) {
103
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', response.value);
104
+ const result = await cli.handleMultipleResultsFound(`Multiple Teams apps with name ${options.name} found.`, resultAsKeyValuePair);
105
+ return result.id;
106
+ }
107
+ return app.id;
108
+ }
85
109
  }
86
110
  _TeamsAppInstallCommand_instances = new WeakSet(), _TeamsAppInstallCommand_initTelemetry = function _TeamsAppInstallCommand_initTelemetry() {
87
111
  this.telemetry.push((args) => {
88
112
  Object.assign(this.telemetryProperties, {
113
+ id: typeof args.options.id !== 'undefined',
114
+ name: typeof args.options.name !== 'undefined',
89
115
  teamId: typeof args.options.teamId !== 'undefined',
90
116
  userId: typeof args.options.userId !== 'undefined',
91
117
  userName: typeof args.options.userName !== 'undefined'
92
118
  });
93
119
  });
94
120
  }, _TeamsAppInstallCommand_initOptions = function _TeamsAppInstallCommand_initOptions() {
95
- this.options.unshift({ option: '--id <id>' }, { option: '--teamId [teamId]' }, { option: '--userId [userId]' }, { option: '--userName [userName]' });
121
+ this.options.unshift({ option: '-i, --id [id]' }, { option: '-n, --name [name]' }, { option: '--teamId [teamId]' }, { option: '--userId [userId]' }, { option: '--userName [userName]' });
96
122
  }, _TeamsAppInstallCommand_initValidators = function _TeamsAppInstallCommand_initValidators() {
97
123
  this.validators.push(async (args) => {
98
- if (!validation.isValidGuid(args.options.id)) {
124
+ if (args.options.id && !validation.isValidGuid(args.options.id)) {
99
125
  return `${args.options.id} is not a valid GUID`;
100
126
  }
101
127
  if (args.options.teamId &&
@@ -110,6 +136,7 @@ _TeamsAppInstallCommand_instances = new WeakSet(), _TeamsAppInstallCommand_initT
110
136
  });
111
137
  }, _TeamsAppInstallCommand_initOptionSets = function _TeamsAppInstallCommand_initOptionSets() {
112
138
  this.optionSets.push({ options: ['teamId', 'userId', 'userName'] });
139
+ this.optionSets.push({ options: ['id', 'name'] });
113
140
  };
114
141
  export default new TeamsAppInstallCommand();
115
142
  //# sourceMappingURL=app-install.js.map
@@ -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 _TeamsAppRemoveCommand_instances, _TeamsAppRemoveCommand_initTelemetry, _TeamsAppRemoveCommand_initOptions, _TeamsAppRemoveCommand_initValidators, _TeamsAppRemoveCommand_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 { formatting } from '../../../../utils/formatting.js';
10
10
  import { validation } from '../../../../utils/validation.js';
@@ -48,7 +48,7 @@ class TeamsAppRemoveCommand extends GraphCommand {
48
48
  await removeApp();
49
49
  }
50
50
  else {
51
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the Teams app ${args.options.id || args.options.name} from the app catalog?` });
51
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the Teams app ${args.options.id || args.options.name} from the app catalog?` });
52
52
  if (result) {
53
53
  await removeApp();
54
54
  }
@@ -75,7 +75,7 @@ class TeamsAppRemoveCommand extends GraphCommand {
75
75
  }
76
76
  if (response.value.length > 1) {
77
77
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', response.value);
78
- const result = await Cli.handleMultipleResultsFound(`Multiple Teams apps with name '${options.name}' found.`, resultAsKeyValuePair);
78
+ const result = await cli.handleMultipleResultsFound(`Multiple Teams apps with name '${options.name}' found.`, resultAsKeyValuePair);
79
79
  return result.id;
80
80
  }
81
81
  return app.id;