@pnp/cli-microsoft365 7.3.0-beta.01256d2 → 7.3.0-beta.38bb1d7

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 (372) 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-add.js +137 -0
  11. package/dist/m365/aad/commands/administrativeunit/administrativeunit-member-list.js +138 -0
  12. package/dist/m365/aad/commands/administrativeunit/administrativeunit-remove.js +2 -2
  13. package/dist/m365/aad/commands/app/app-get.js +2 -2
  14. package/dist/m365/aad/commands/app/app-permission-add.js +237 -0
  15. package/dist/m365/aad/commands/app/app-remove.js +3 -3
  16. package/dist/m365/aad/commands/app/app-role-add.js +2 -2
  17. package/dist/m365/aad/commands/app/app-role-list.js +2 -2
  18. package/dist/m365/aad/commands/app/app-role-remove.js +4 -4
  19. package/dist/m365/aad/commands/app/app-set.js +2 -2
  20. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +2 -2
  21. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +2 -2
  22. package/dist/m365/aad/commands/group/group-list.js +2 -2
  23. package/dist/m365/aad/commands/group/group-remove.js +2 -2
  24. package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +2 -2
  25. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-clear.js +2 -2
  26. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-remove.js +3 -3
  27. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-restore.js +2 -2
  28. package/dist/m365/aad/commands/m365group/m365group-remove.js +2 -2
  29. package/dist/m365/aad/commands/m365group/m365group-teamify.js +2 -2
  30. package/dist/m365/aad/commands/m365group/m365group-user-remove.js +2 -2
  31. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -2
  32. package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +2 -2
  33. package/dist/m365/aad/commands/sp/sp-add.js +2 -2
  34. package/dist/m365/aad/commands/sp/sp-get.js +2 -2
  35. package/dist/m365/aad/commands/user/user-get.js +2 -2
  36. package/dist/m365/aad/commands/user/user-license-remove.js +2 -2
  37. package/dist/m365/aad/commands/user/user-recyclebinitem-clear.js +2 -2
  38. package/dist/m365/aad/commands/user/user-recyclebinitem-remove.js +2 -2
  39. package/dist/m365/aad/commands/user/user-remove.js +2 -2
  40. package/dist/m365/aad/commands.js +4 -1
  41. package/dist/m365/app/commands/app-get.js +2 -2
  42. package/dist/m365/app/commands/app-open.js +2 -2
  43. package/dist/m365/app/commands/permission/permission-list.js +2 -2
  44. package/dist/m365/base/AppCommand.js +2 -2
  45. package/dist/m365/booking/commands/business/business-get.js +2 -2
  46. package/dist/m365/cli/commands/cli-doctor.js +2 -2
  47. package/dist/m365/cli/commands/cli-reconsent.js +2 -2
  48. package/dist/m365/cli/commands/config/config-get.js +2 -2
  49. package/dist/m365/cli/commands/config/config-list.js +2 -2
  50. package/dist/m365/cli/commands/config/config-reset.js +3 -3
  51. package/dist/m365/cli/commands/config/config-set.js +4 -4
  52. package/dist/m365/commands/docs.js +2 -2
  53. package/dist/m365/commands/login.js +4 -4
  54. package/dist/m365/commands/setup.js +8 -8
  55. package/dist/m365/context/commands/context-remove.js +2 -2
  56. package/dist/m365/context/commands/option/option-remove.js +2 -2
  57. package/dist/m365/external/commands/connection/connection-doctor.js +1 -2
  58. package/dist/m365/external/commands/connection/connection-remove.js +3 -3
  59. package/dist/m365/flow/commands/flow-remove.js +2 -2
  60. package/dist/m365/flow/commands/owner/owner-list.js +2 -2
  61. package/dist/m365/flow/commands/owner/owner-remove.js +2 -2
  62. package/dist/m365/flow/commands/run/run-cancel.js +2 -2
  63. package/dist/m365/flow/commands/run/run-resubmit.js +2 -2
  64. package/dist/m365/graph/commands/changelog/changelog-list.js +3 -3
  65. package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +2 -2
  66. package/dist/m365/outlook/commands/message/message-list.js +2 -2
  67. package/dist/m365/outlook/commands/message/message-move.js +2 -2
  68. package/dist/m365/pa/commands/app/app-consent-set.js +2 -2
  69. package/dist/m365/pa/commands/app/app-get.js +2 -2
  70. package/dist/m365/pa/commands/app/app-permission-remove.js +2 -2
  71. package/dist/m365/pa/commands/app/app-remove.js +2 -2
  72. package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
  73. package/dist/m365/planner/commands/bucket/bucket-remove.js +3 -3
  74. package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
  75. package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
  76. package/dist/m365/planner/commands/roster/roster-member-remove.js +3 -3
  77. package/dist/m365/planner/commands/roster/roster-remove.js +2 -2
  78. package/dist/m365/planner/commands/task/task-checklistitem-add.js +2 -2
  79. package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -2
  80. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -2
  81. package/dist/m365/planner/commands/task/task-get.js +3 -3
  82. package/dist/m365/planner/commands/task/task-reference-remove.js +2 -2
  83. package/dist/m365/planner/commands/task/task-remove.js +4 -4
  84. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +2 -2
  85. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-remove.js +3 -3
  86. package/dist/m365/pp/commands/card/card-clone.js +2 -2
  87. package/dist/m365/pp/commands/card/card-get.js +2 -2
  88. package/dist/m365/pp/commands/card/card-remove.js +3 -3
  89. package/dist/m365/pp/commands/chatbot/chatbot-get.js +2 -2
  90. package/dist/m365/pp/commands/chatbot/chatbot-remove.js +3 -3
  91. package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +2 -2
  92. package/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +2 -2
  93. package/dist/m365/pp/commands/managementapp/managementapp-add.js +2 -2
  94. package/dist/m365/pp/commands/solution/solution-get.js +2 -2
  95. package/dist/m365/pp/commands/solution/solution-list.js +2 -2
  96. package/dist/m365/pp/commands/solution/solution-publish.js +2 -2
  97. package/dist/m365/pp/commands/solution/solution-publisher-remove.js +3 -3
  98. package/dist/m365/pp/commands/solution/solution-remove.js +3 -3
  99. package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +2 -2
  100. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-remove.js +2 -2
  101. package/dist/m365/purview/commands/retentionlabel/retentionlabel-remove.js +2 -2
  102. package/dist/m365/spfx/commands/project/project-permissions-grant.js +2 -2
  103. package/dist/m365/spo/commands/app/app-add.js +2 -2
  104. package/dist/m365/spo/commands/app/app-remove.js +2 -2
  105. package/dist/m365/spo/commands/app/app-retract.js +2 -2
  106. package/dist/m365/spo/commands/app/app-uninstall.js +2 -2
  107. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +2 -2
  108. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +3 -3
  109. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +2 -2
  110. package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +2 -2
  111. package/dist/m365/spo/commands/commandset/commandset-get.js +2 -2
  112. package/dist/m365/spo/commands/commandset/commandset-remove.js +3 -3
  113. package/dist/m365/spo/commands/commandset/commandset-set.js +2 -2
  114. package/dist/m365/spo/commands/contenttype/contenttype-add.js +2 -2
  115. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +2 -2
  116. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +2 -2
  117. package/dist/m365/spo/commands/customaction/customaction-add.js +1 -1
  118. package/dist/m365/spo/commands/customaction/customaction-clear.js +2 -2
  119. package/dist/m365/spo/commands/customaction/customaction-get.js +3 -3
  120. package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -3
  121. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +2 -2
  122. package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +3 -3
  123. package/dist/m365/spo/commands/field/field-remove.js +2 -2
  124. package/dist/m365/spo/commands/file/file-add.js +1 -1
  125. package/dist/m365/spo/commands/file/file-checkout-undo.js +2 -2
  126. package/dist/m365/spo/commands/file/file-remove.js +2 -2
  127. package/dist/m365/spo/commands/file/file-rename.js +2 -2
  128. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +2 -2
  129. package/dist/m365/spo/commands/file/file-roleassignment-add.js +5 -5
  130. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +5 -5
  131. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +3 -3
  132. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +3 -3
  133. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +2 -2
  134. package/dist/m365/spo/commands/file/file-sharinglink-clear.js +3 -3
  135. package/dist/m365/spo/commands/file/file-sharinglink-list.js +2 -2
  136. package/dist/m365/spo/commands/file/file-sharinglink-remove.js +2 -2
  137. package/dist/m365/spo/commands/file/file-version-clear.js +2 -2
  138. package/dist/m365/spo/commands/file/file-version-remove.js +2 -2
  139. package/dist/m365/spo/commands/file/file-version-restore.js +2 -2
  140. package/dist/m365/spo/commands/folder/folder-remove.js +2 -2
  141. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +2 -2
  142. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +4 -4
  143. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +4 -4
  144. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +2 -2
  145. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +2 -2
  146. package/dist/m365/spo/commands/group/group-list.js +2 -2
  147. package/dist/m365/spo/commands/group/group-member-remove.js +9 -9
  148. package/dist/m365/spo/commands/group/group-remove.js +2 -2
  149. package/dist/m365/spo/commands/group/group-set.js +2 -2
  150. package/dist/m365/spo/commands/homesite/homesite-remove.js +2 -2
  151. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +2 -2
  152. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +3 -3
  153. package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -4
  154. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +2 -2
  155. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +2 -2
  156. package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +2 -2
  157. package/dist/m365/spo/commands/list/list-contenttype-remove.js +2 -2
  158. package/dist/m365/spo/commands/list/list-remove.js +2 -2
  159. package/dist/m365/spo/commands/list/list-retentionlabel-remove.js +2 -2
  160. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +4 -4
  161. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +2 -2
  162. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +2 -2
  163. package/dist/m365/spo/commands/list/list-view-field-remove.js +2 -2
  164. package/dist/m365/spo/commands/list/list-view-remove.js +2 -2
  165. package/dist/m365/spo/commands/list/list-webhook-remove.js +2 -2
  166. package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +2 -2
  167. package/dist/m365/spo/commands/listitem/listitem-list.js +2 -2
  168. package/dist/m365/spo/commands/listitem/listitem-remove.js +2 -2
  169. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +2 -2
  170. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +4 -4
  171. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +4 -4
  172. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +2 -2
  173. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +2 -2
  174. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +2 -2
  175. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +2 -2
  176. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +2 -2
  177. package/dist/m365/spo/commands/page/page-add.js +4 -4
  178. package/dist/m365/spo/commands/page/page-column-get.js +2 -2
  179. package/dist/m365/spo/commands/page/page-column-list.js +2 -2
  180. package/dist/m365/spo/commands/page/page-remove.js +2 -2
  181. package/dist/m365/spo/commands/page/page-section-get.js +2 -2
  182. package/dist/m365/spo/commands/page/page-section-list.js +2 -2
  183. package/dist/m365/spo/commands/page/page-set.js +5 -5
  184. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +2 -2
  185. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +2 -2
  186. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +2 -2
  187. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +2 -2
  188. package/dist/m365/spo/commands/site/site-apppermission-remove.js +2 -2
  189. package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +2 -2
  190. package/dist/m365/spo/commands/site/site-recyclebinitem-clear.js +2 -2
  191. package/dist/m365/spo/commands/site/site-recyclebinitem-move.js +2 -2
  192. package/dist/m365/spo/commands/site/site-recyclebinitem-remove.js +2 -2
  193. package/dist/m365/spo/commands/site/site-remove.js +2 -2
  194. package/dist/m365/spo/commands/site/site-set.js +3 -3
  195. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +2 -2
  196. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +2 -2
  197. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +2 -2
  198. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +2 -2
  199. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +2 -2
  200. package/dist/m365/spo/commands/spo-search.js +2 -2
  201. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +2 -2
  202. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +5 -5
  203. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +5 -5
  204. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +2 -2
  205. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +3 -3
  206. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +4 -4
  207. package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +5 -5
  208. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +2 -2
  209. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -3
  210. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +2 -2
  211. package/dist/m365/spo/commands/term/term-get.js +2 -2
  212. package/dist/m365/spo/commands/term/term-list.js +2 -2
  213. package/dist/m365/spo/commands/theme/theme-remove.js +2 -2
  214. package/dist/m365/spo/commands/user/user-remove.js +2 -2
  215. package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -2
  216. package/dist/m365/spo/commands/web/web-remove.js +2 -2
  217. package/dist/m365/spo/commands/web/web-roleassignment-add.js +4 -4
  218. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +4 -4
  219. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +2 -2
  220. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +2 -2
  221. package/dist/m365/teams/commands/app/app-install.js +32 -5
  222. package/dist/m365/teams/commands/app/app-remove.js +3 -3
  223. package/dist/m365/teams/commands/app/app-uninstall.js +2 -2
  224. package/dist/m365/teams/commands/app/app-update.js +2 -2
  225. package/dist/m365/teams/commands/cache/cache-remove.js +2 -2
  226. package/dist/m365/teams/commands/channel/channel-add.js +2 -2
  227. package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
  228. package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -3
  229. package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
  230. package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
  231. package/dist/m365/teams/commands/chat/chat-get.js +3 -3
  232. package/dist/m365/teams/commands/chat/chat-member-remove.js +2 -2
  233. package/dist/m365/teams/commands/chat/chat-message-send.js +3 -3
  234. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +2 -2
  235. package/dist/m365/teams/commands/tab/tab-remove.js +2 -2
  236. package/dist/m365/teams/commands/team/team-app-list.js +3 -3
  237. package/dist/m365/teams/commands/team/team-remove.js +2 -2
  238. package/dist/m365/teams/commands/user/user-app-add.js +23 -5
  239. package/dist/m365/teams/commands/user/user-app-list.js +2 -2
  240. package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
  241. package/dist/m365/tenant/commands/people/people-profilecardproperty-remove.js +2 -2
  242. package/dist/m365/todo/commands/list/list-remove.js +2 -2
  243. package/dist/m365/todo/commands/task/task-get.js +2 -2
  244. package/dist/m365/todo/commands/task/task-list.js +2 -2
  245. package/dist/m365/todo/commands/task/task-remove.js +2 -2
  246. package/dist/m365/viva/commands/connections/connections-app-create.js +2 -2
  247. package/dist/m365/yammer/commands/group/group-user-remove.js +2 -2
  248. package/dist/m365/yammer/commands/message/message-like-set.js +2 -2
  249. package/dist/m365/yammer/commands/message/message-remove.js +2 -2
  250. package/dist/m365/yammer/commands/yammer-search.js +2 -2
  251. package/dist/telemetry.js +2 -2
  252. package/dist/utils/aadAdministrativeUnit.js +2 -2
  253. package/dist/utils/aadDevice.js +25 -0
  254. package/dist/utils/aadGroup.js +3 -3
  255. package/dist/utils/prompt.js +4 -7
  256. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-member-add.mdx +93 -0
  257. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-member-list.mdx +312 -0
  258. package/docs/docs/cmd/aad/app/app-permission-add.mdx +62 -0
  259. package/docs/docs/cmd/aad/user/user-password-validate.mdx +2 -2
  260. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  261. package/docs/docs/cmd/external/connection/connection-doctor.mdx +3 -0
  262. package/docs/docs/cmd/flow/environment/environment-get.mdx +1 -1
  263. package/docs/docs/cmd/flow/environment/environment-list.mdx +1 -1
  264. package/docs/docs/cmd/flow/flow-disable.mdx +1 -1
  265. package/docs/docs/cmd/flow/flow-enable.mdx +1 -1
  266. package/docs/docs/cmd/flow/flow-export.mdx +1 -1
  267. package/docs/docs/cmd/flow/flow-get.mdx +1 -1
  268. package/docs/docs/cmd/flow/flow-list.mdx +1 -1
  269. package/docs/docs/cmd/flow/run/run-cancel.mdx +1 -1
  270. package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
  271. package/docs/docs/cmd/flow/run/run-list.mdx +1 -1
  272. package/docs/docs/cmd/flow/run/run-resubmit.mdx +1 -1
  273. package/docs/docs/cmd/graph/changelog/changelog-list.mdx +1 -1
  274. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  275. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  276. package/docs/docs/cmd/pa/app/app-get.mdx +1 -1
  277. package/docs/docs/cmd/pa/app/app-list.mdx +1 -1
  278. package/docs/docs/cmd/pa/connector/connector-export.mdx +1 -1
  279. package/docs/docs/cmd/pa/connector/connector-list.mdx +1 -1
  280. package/docs/docs/cmd/pa/environment/environment-get.mdx +1 -1
  281. package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -1
  282. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +1 -1
  283. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +1 -1
  284. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +1 -1
  285. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +1 -1
  286. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +1 -1
  287. package/docs/docs/cmd/planner/plan/plan-get.mdx +1 -1
  288. package/docs/docs/cmd/planner/plan/plan-list.mdx +1 -1
  289. package/docs/docs/cmd/planner/plan/plan-set.mdx +1 -1
  290. package/docs/docs/cmd/planner/roster/roster-add.mdx +2 -2
  291. package/docs/docs/cmd/planner/roster/roster-get.mdx +1 -1
  292. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +1 -1
  293. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +1 -1
  294. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -1
  295. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +2 -2
  296. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
  297. package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
  298. package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
  299. package/docs/docs/cmd/planner/task/task-list.mdx +2 -2
  300. package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
  301. package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
  302. package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
  303. package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
  304. package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +1 -1
  305. package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +1 -1
  306. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +1 -1
  307. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -1
  308. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -1
  309. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +1 -1
  310. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +1 -1
  311. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -1
  312. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -1
  313. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +1 -1
  314. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +1 -1
  315. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +1 -1
  316. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +1 -1
  317. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +1 -1
  318. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +1 -1
  319. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +1 -1
  320. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +2 -2
  321. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +2 -2
  322. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +2 -2
  323. package/docs/docs/cmd/spfx/project/project-externalize.mdx +1 -1
  324. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  325. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  326. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  327. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  328. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  329. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  330. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  331. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +1 -1
  332. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  333. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +1 -1
  334. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  335. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  336. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
  337. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  338. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  339. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  340. package/docs/docs/cmd/spo/page/page-set.mdx +1 -1
  341. package/docs/docs/cmd/spo/site/site-groupify.mdx +1 -1
  342. package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +1 -1
  343. package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +1 -1
  344. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  345. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  346. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  347. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  348. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  349. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  350. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  351. package/docs/docs/cmd/teams/app/app-install.mdx +11 -2
  352. package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +2 -2
  353. package/docs/docs/cmd/teams/user/user-app-add.mdx +12 -3
  354. package/docs/docs/cmd/teams/user/user-app-remove.mdx +2 -2
  355. package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +1 -1
  356. package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +1 -1
  357. package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +1 -1
  358. package/docs/docs/cmd/yammer/group/group-list.mdx +1 -1
  359. package/docs/docs/cmd/yammer/group/group-user-add.mdx +1 -1
  360. package/docs/docs/cmd/yammer/group/group-user-remove.mdx +1 -1
  361. package/docs/docs/cmd/yammer/message/message-add.mdx +1 -1
  362. package/docs/docs/cmd/yammer/message/message-get.mdx +1 -1
  363. package/docs/docs/cmd/yammer/message/message-like-set.mdx +1 -1
  364. package/docs/docs/cmd/yammer/message/message-list.mdx +1 -1
  365. package/docs/docs/cmd/yammer/message/message-remove.mdx +1 -1
  366. package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
  367. package/docs/docs/cmd/yammer/user/user-get.mdx +1 -1
  368. package/docs/docs/cmd/yammer/user/user-list.mdx +1 -1
  369. package/docs/docs/cmd/yammer/yammer-search.mdx +1 -1
  370. package/npm-shrinkwrap.json +1008 -406
  371. package/package.json +24 -24
  372. package/dist/cli/Cli.js +0 -858
@@ -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 _SpoAppRemoveCommand_instances, _SpoAppRemoveCommand_initTelemetry, _SpoAppRemoveCommand_initOptions, _SpoAppRemoveCommand_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';
@@ -50,7 +50,7 @@ class SpoAppRemoveCommand extends SpoAppBaseCommand {
50
50
  await removeApp();
51
51
  }
52
52
  else {
53
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the app ${args.options.id} from the app catalog?` });
53
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the app ${args.options.id} from the app catalog?` });
54
54
  if (result) {
55
55
  await removeApp();
56
56
  }
@@ -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 _SpoAppRetractCommand_instances, _SpoAppRetractCommand_initTelemetry, _SpoAppRetractCommand_initOptions, _SpoAppRetractCommand_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';
@@ -50,7 +50,7 @@ class SpoAppRetractCommand extends SpoAppBaseCommand {
50
50
  await retractApp();
51
51
  }
52
52
  else {
53
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to retract the app ${args.options.id} from the app catalog?` });
53
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to retract the app ${args.options.id} from the app catalog?` });
54
54
  if (result) {
55
55
  await retractApp();
56
56
  }
@@ -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 _SpoAppUninstallCommand_instances, _SpoAppUninstallCommand_initTelemetry, _SpoAppUninstallCommand_initOptions, _SpoAppUninstallCommand_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 { validation } from '../../../../utils/validation.js';
@@ -47,7 +47,7 @@ class SpoAppUninstallCommand extends SpoCommand {
47
47
  await uninstallApp();
48
48
  }
49
49
  else {
50
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to uninstall the app ${args.options.id} from site ${args.options.siteUrl}?` });
50
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to uninstall the app ${args.options.id} from site ${args.options.siteUrl}?` });
51
51
  if (result) {
52
52
  await uninstallApp();
53
53
  }
@@ -9,7 +9,7 @@ import { spo } from '../../../../utils/spo.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
11
11
  import commands from '../../commands.js';
12
- import { Cli } from '../../../../cli/Cli.js';
12
+ import { cli } from '../../../../cli/cli.js';
13
13
  class SpoApplicationCustomizerGetCommand extends SpoCommand {
14
14
  get name() {
15
15
  return commands.APPLICATIONCUSTOMIZER_GET;
@@ -76,7 +76,7 @@ class SpoApplicationCustomizerGetCommand extends SpoCommand {
76
76
  }
77
77
  else {
78
78
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', customActions);
79
- return await Cli.handleMultipleResultsFound(`Multiple application customizers with ${identifier} found.`, resultAsKeyValuePair);
79
+ return await cli.handleMultipleResultsFound(`Multiple application customizers with ${identifier} found.`, resultAsKeyValuePair);
80
80
  }
81
81
  }
82
82
  humanizeScope(scope) {
@@ -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 _SpoApplicationCustomizerRemoveCommand_instances, _SpoApplicationCustomizerRemoveCommand_initOptions, _SpoApplicationCustomizerRemoveCommand_initTelemetry, _SpoApplicationCustomizerRemoveCommand_initValidators, _SpoApplicationCustomizerRemoveCommand_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';
@@ -32,7 +32,7 @@ class SpoApplicationCustomizerRemoveCommand extends SpoCommand {
32
32
  if (args.options.force) {
33
33
  return await this.removeApplicationCustomizer(logger, args.options);
34
34
  }
35
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the application customizer '${args.options.clientSideComponentId || args.options.title || args.options.id}'?` });
35
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the application customizer '${args.options.clientSideComponentId || args.options.title || args.options.id}'?` });
36
36
  if (result) {
37
37
  await this.removeApplicationCustomizer(logger, args.options);
38
38
  }
@@ -75,7 +75,7 @@ class SpoApplicationCustomizerRemoveCommand extends SpoCommand {
75
75
  }
76
76
  if (appCustomizers.length > 1) {
77
77
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', appCustomizers);
78
- return await Cli.handleMultipleResultsFound(`Multiple application customizer with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
78
+ return await cli.handleMultipleResultsFound(`Multiple application customizer with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
79
79
  }
80
80
  return appCustomizers[0];
81
81
  }
@@ -10,7 +10,7 @@ import SpoCommand from '../../../base/SpoCommand.js';
10
10
  import commands from '../../commands.js';
11
11
  import { spo } from '../../../../utils/spo.js';
12
12
  import { formatting } from '../../../../utils/formatting.js';
13
- import { Cli } from '../../../../cli/Cli.js';
13
+ import { cli } from '../../../../cli/cli.js';
14
14
  class SpoApplicationCustomizerSetCommand extends SpoCommand {
15
15
  get name() {
16
16
  return commands.APPLICATIONCUSTOMIZER_SET;
@@ -83,7 +83,7 @@ class SpoApplicationCustomizerSetCommand extends SpoCommand {
83
83
  }
84
84
  if (appCustomizers.length > 1) {
85
85
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', appCustomizers);
86
- return await Cli.handleMultipleResultsFound(`Multiple application customizer with ${title ? `title '${title}'` : `ClientSideComponentId '${clientSideComponentId}'`} found.`, resultAsKeyValuePair);
86
+ return await cli.handleMultipleResultsFound(`Multiple application customizer with ${title ? `title '${title}'` : `ClientSideComponentId '${clientSideComponentId}'`} found.`, resultAsKeyValuePair);
87
87
  }
88
88
  return appCustomizers[0];
89
89
  }
@@ -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 _SpoCdnOriginRemoveCommand_instances, _SpoCdnOriginRemoveCommand_initTelemetry, _SpoCdnOriginRemoveCommand_initOptions, _SpoCdnOriginRemoveCommand_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';
@@ -61,7 +61,7 @@ class SpoCdnOriginRemoveCommand extends SpoCommand {
61
61
  await removeCdnOrigin();
62
62
  }
63
63
  else {
64
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to delete the ${args.options.origin} CDN origin?` });
64
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to delete the ${args.options.origin} CDN origin?` });
65
65
  if (result) {
66
66
  await removeCdnOrigin();
67
67
  }
@@ -9,7 +9,7 @@ import { spo } from '../../../../utils/spo.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
11
11
  import commands from '../../commands.js';
12
- import { Cli } from '../../../../cli/Cli.js';
12
+ import { cli } from '../../../../cli/cli.js';
13
13
  class SpoCommandSetGetCommand extends SpoCommand {
14
14
  get name() {
15
15
  return commands.COMMANDSET_GET;
@@ -59,7 +59,7 @@ class SpoCommandSetGetCommand extends SpoCommand {
59
59
  }
60
60
  else {
61
61
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', commandSets);
62
- const commandSet = await Cli.handleMultipleResultsFound(`Multiple command sets with title '${args.options.title}' found.`, resultAsKeyValuePair);
62
+ const commandSet = await cli.handleMultipleResultsFound(`Multiple command sets with title '${args.options.title}' found.`, resultAsKeyValuePair);
63
63
  logger.log(commandSet);
64
64
  }
65
65
  }
@@ -10,7 +10,7 @@ import SpoCommand from '../../../base/SpoCommand.js';
10
10
  import request from '../../../../request.js';
11
11
  import { formatting } from '../../../../utils/formatting.js';
12
12
  import { spo } from '../../../../utils/spo.js';
13
- import { Cli } from '../../../../cli/Cli.js';
13
+ import { cli } from '../../../../cli/cli.js';
14
14
  class SpoCommandSetRemoveCommand extends SpoCommand {
15
15
  get name() {
16
16
  return commands.COMMANDSET_REMOVE;
@@ -34,7 +34,7 @@ class SpoCommandSetRemoveCommand extends SpoCommand {
34
34
  await this.deleteCommandset(args);
35
35
  }
36
36
  else {
37
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove command set '${args.options.clientSideComponentId || args.options.title || args.options.id}'?` });
37
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove command set '${args.options.clientSideComponentId || args.options.title || args.options.id}'?` });
38
38
  if (result) {
39
39
  await this.deleteCommandset(args);
40
40
  }
@@ -59,7 +59,7 @@ class SpoCommandSetRemoveCommand extends SpoCommand {
59
59
  }
60
60
  if (commandSets.length > 1) {
61
61
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', commandSets);
62
- return await Cli.handleMultipleResultsFound(`Multiple user commandsets with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
62
+ return await cli.handleMultipleResultsFound(`Multiple user commandsets with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
63
63
  }
64
64
  return commandSets[0];
65
65
  }
@@ -10,7 +10,7 @@ import SpoCommand from '../../../base/SpoCommand.js';
10
10
  import request from '../../../../request.js';
11
11
  import { formatting } from '../../../../utils/formatting.js';
12
12
  import { spo } from '../../../../utils/spo.js';
13
- import { Cli } from '../../../../cli/Cli.js';
13
+ import { cli } from '../../../../cli/cli.js';
14
14
  class SpoCommandSetSetCommand extends SpoCommand {
15
15
  get name() {
16
16
  return commands.COMMANDSET_SET;
@@ -86,7 +86,7 @@ class SpoCommandSetSetCommand extends SpoCommand {
86
86
  }
87
87
  if (commandSets.length > 1) {
88
88
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', commandSets);
89
- return await Cli.handleMultipleResultsFound(`Multiple user commandsets with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
89
+ return await cli.handleMultipleResultsFound(`Multiple user commandsets with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
90
90
  }
91
91
  return commandSets[0];
92
92
  }
@@ -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 _SpoContentTypeAddCommand_instances, _SpoContentTypeAddCommand_initTelemetry, _SpoContentTypeAddCommand_initOptions, _SpoContentTypeAddCommand_initValidators, _SpoContentTypeAddCommand_initTypes;
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';
@@ -72,7 +72,7 @@ class SpoContentTypeAddCommand extends SpoCommand {
72
72
  verbose: this.verbose
73
73
  };
74
74
  try {
75
- const output = await Cli.executeCommandWithOutput(spoContentTypeGetCommand, { options: { ...options, _: [] } });
75
+ const output = await cli.executeCommandWithOutput(spoContentTypeGetCommand, { options: { ...options, _: [] } });
76
76
  if (this.debug) {
77
77
  await logger.logToStderr(output.stderr);
78
78
  }
@@ -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 _SpoContentTypeFieldRemoveCommand_instances, _SpoContentTypeFieldRemoveCommand_initTelemetry, _SpoContentTypeFieldRemoveCommand_initOptions, _SpoContentTypeFieldRemoveCommand_initValidators, _SpoContentTypeFieldRemoveCommand_initTypes;
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';
@@ -110,7 +110,7 @@ class SpoContentTypeFieldRemoveCommand extends SpoCommand {
110
110
  await removeFieldLink();
111
111
  }
112
112
  else {
113
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the column ${args.options.fieldLinkId} from content type ${args.options.contentTypeId}?` });
113
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the column ${args.options.fieldLinkId} from content type ${args.options.contentTypeId}?` });
114
114
  if (result) {
115
115
  await removeFieldLink();
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 _SpoContentTypeRemoveCommand_instances, _SpoContentTypeRemoveCommand_initTelemetry, _SpoContentTypeRemoveCommand_initOptions, _SpoContentTypeRemoveCommand_initValidators, _SpoContentTypeRemoveCommand_initTypes, _SpoContentTypeRemoveCommand_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';
@@ -85,7 +85,7 @@ class SpoContentTypeRemoveCommand extends SpoCommand {
85
85
  await removeContentType();
86
86
  }
87
87
  else {
88
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the content type ${args.options.id || args.options.name}?` });
88
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the content type ${args.options.id || args.options.name}?` });
89
89
  if (result) {
90
90
  await removeContentType();
91
91
  }
@@ -65,7 +65,7 @@ class SpoCustomActionAddCommand extends SpoCommand {
65
65
  RegistrationId: customAction.RegistrationId,
66
66
  RegistrationType: customAction.RegistrationType,
67
67
  Rights: JSON.stringify(customAction.Rights),
68
- Scope: args.options.scope,
68
+ Scope: args.options.scope, // because it is more human readable
69
69
  ScriptBlock: customAction.ScriptBlock,
70
70
  ScriptSrc: customAction.ScriptSrc,
71
71
  Sequence: customAction.Sequence,
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
5
5
  };
6
6
  var _SpoCustomActionClearCommand_instances, _SpoCustomActionClearCommand_initTelemetry, _SpoCustomActionClearCommand_initOptions, _SpoCustomActionClearCommand_initValidators;
7
7
  import chalk from 'chalk';
8
- import { Cli } from '../../../../cli/Cli.js';
8
+ import { cli } from '../../../../cli/cli.js';
9
9
  import request from '../../../../request.js';
10
10
  import { validation } from '../../../../utils/validation.js';
11
11
  import SpoCommand from '../../../base/SpoCommand.js';
@@ -42,7 +42,7 @@ class SpoCustomActionClearCommand extends SpoCommand {
42
42
  await clearCustomActions();
43
43
  }
44
44
  else {
45
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to clear all the user custom actions with scope ${chalk.yellow(args.options.scope || 'All')}?` });
45
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to clear all the user custom actions with scope ${chalk.yellow(args.options.scope || 'All')}?` });
46
46
  if (result) {
47
47
  await clearCustomActions();
48
48
  }
@@ -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 _SpoCustomActionGetCommand_instances, _SpoCustomActionGetCommand_initTelemetry, _SpoCustomActionGetCommand_initOptions, _SpoCustomActionGetCommand_initValidators, _SpoCustomActionGetCommand_initOptionSets;
7
- import { Cli } from '../../../../cli/Cli.js';
7
+ import { cli } from '../../../../cli/cli.js';
8
8
  import { formatting } from '../../../../utils/formatting.js';
9
9
  import { spo } from '../../../../utils/spo.js';
10
10
  import { validation } from '../../../../utils/validation.js';
@@ -73,7 +73,7 @@ class SpoCustomActionGetCommand extends SpoCommand {
73
73
  throw `No user custom action with title '${options.title}' found`;
74
74
  }
75
75
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', customActions);
76
- return await Cli.handleMultipleResultsFound(`Multiple user custom actions with title '${options.title}' found.`, resultAsKeyValuePair);
76
+ return await cli.handleMultipleResultsFound(`Multiple user custom actions with title '${options.title}' found.`, resultAsKeyValuePair);
77
77
  }
78
78
  else {
79
79
  const customActions = await spo.getCustomActions(options.webUrl, options.scope, `ClientSideComponentId eq guid'${options.clientSideComponentId}'`);
@@ -82,7 +82,7 @@ class SpoCustomActionGetCommand extends SpoCommand {
82
82
  }
83
83
  if (customActions.length > 1) {
84
84
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', customActions);
85
- return await Cli.handleMultipleResultsFound(`Multiple user custom actions with ClientSideComponentId '${options.clientSideComponentId}' found.`, resultAsKeyValuePair);
85
+ return await cli.handleMultipleResultsFound(`Multiple user custom actions with ClientSideComponentId '${options.clientSideComponentId}' found.`, resultAsKeyValuePair);
86
86
  }
87
87
  return customActions[0];
88
88
  }
@@ -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 _SpoCustomActionRemoveCommand_instances, _SpoCustomActionRemoveCommand_initTelemetry, _SpoCustomActionRemoveCommand_initOptions, _SpoCustomActionRemoveCommand_initValidators, _SpoCustomActionRemoveCommand_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 { spo } from '../../../../utils/spo.js';
@@ -50,7 +50,7 @@ class SpoCustomActionRemoveCommand extends SpoCommand {
50
50
  await removeCustomAction();
51
51
  }
52
52
  else {
53
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the ${args.options.id} user custom action?` });
53
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the ${args.options.id} user custom action?` });
54
54
  if (result) {
55
55
  await removeCustomAction();
56
56
  }
@@ -68,7 +68,7 @@ class SpoCustomActionRemoveCommand extends SpoCommand {
68
68
  throw `No user custom action with title '${options.title}' found`;
69
69
  }
70
70
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', customActions);
71
- const result = await Cli.handleMultipleResultsFound(`Multiple user custom actions with title '${options.title}' found.`, resultAsKeyValuePair);
71
+ const result = await cli.handleMultipleResultsFound(`Multiple user custom actions with title '${options.title}' found.`, resultAsKeyValuePair);
72
72
  return result.Id;
73
73
  }
74
74
  async removeScopedCustomAction(options) {
@@ -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 _SpoEventreceiverGetCommand_instances, _SpoEventreceiverGetCommand_initTelemetry, _SpoEventreceiverGetCommand_initOptions, _SpoEventreceiverGetCommand_initValidators, _SpoEventreceiverGetCommand_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 { urlUtil } from '../../../../utils/urlUtil.js';
@@ -77,7 +77,7 @@ class SpoEventreceiverGetCommand extends SpoCommand {
77
77
  }
78
78
  if (res.value && res.value.length > 1) {
79
79
  const resultAsKeyValuePair = formatting.convertArrayToHashTable('ReceiverId', res.value);
80
- return await Cli.handleMultipleResultsFound(`Multiple event receivers with name '${args.options.name}' found.`, resultAsKeyValuePair);
80
+ return await cli.handleMultipleResultsFound(`Multiple event receivers with name '${args.options.name}' found.`, resultAsKeyValuePair);
81
81
  }
82
82
  return res.value[0];
83
83
  }
@@ -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 _SpoEventreceiverRemoveCommand_instances, _SpoEventreceiverRemoveCommand_initTelemetry, _SpoEventreceiverRemoveCommand_initOptions, _SpoEventreceiverRemoveCommand_initValidators, _SpoEventreceiverRemoveCommand_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 { urlUtil } from '../../../../utils/urlUtil.js';
@@ -32,7 +32,7 @@ class SpoEventreceiverRemoveCommand extends SpoCommand {
32
32
  await this.removeEventReceiver(args.options);
33
33
  }
34
34
  else {
35
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove event receiver with ${args.options.id ? `id ${args.options.id}` : `name ${args.options.name}`}?` });
35
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove event receiver with ${args.options.id ? `id ${args.options.id}` : `name ${args.options.name}`}?` });
36
36
  if (result) {
37
37
  await this.removeEventReceiver(args.options);
38
38
  }
@@ -81,7 +81,7 @@ class SpoEventreceiverRemoveCommand extends SpoCommand {
81
81
  debug: this.debug,
82
82
  verbose: this.verbose
83
83
  };
84
- const commandOutput = await Cli.executeCommandWithOutput(getCommand, { options: { ...getOptions, _: [] } });
84
+ const commandOutput = await cli.executeCommandWithOutput(getCommand, { options: { ...getOptions, _: [] } });
85
85
  const eventReceiver = JSON.parse(commandOutput.stdout);
86
86
  return eventReceiver.ReceiverId;
87
87
  }
@@ -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 _SpoFieldRemoveCommand_instances, _SpoFieldRemoveCommand_initTelemetry, _SpoFieldRemoveCommand_initOptions, _SpoFieldRemoveCommand_initValidators, _SpoFieldRemoveCommand_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 { urlUtil } from '../../../../utils/urlUtil.js';
@@ -111,7 +111,7 @@ class SpoFieldRemoveCommand extends SpoCommand {
111
111
  }
112
112
  else {
113
113
  const confirmMessage = `Are you sure you want to remove the ${args.options.group ? 'fields' : 'field'} ${args.options.id || args.options.title || 'from group ' + args.options.group} ${messageEnd}?`;
114
- const result = await Cli.promptForConfirmation({ message: confirmMessage });
114
+ const result = await cli.promptForConfirmation({ message: confirmMessage });
115
115
  if (result) {
116
116
  await prepareRemoval();
117
117
  }
@@ -352,7 +352,7 @@ class SpoFileAddCommand extends SpoCommand {
352
352
  }
353
353
  const requestBody = {
354
354
  formValues: fieldsToUpdate,
355
- bNewDocumentUpdate: true,
355
+ bNewDocumentUpdate: true, // true = will automatically checkin the item, but we will use it to perform system update and also do a checkin
356
356
  checkInComment: checkInComment || ''
357
357
  };
358
358
  if (this.debug) {
@@ -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 _SpoFileCheckoutUndoCommand_instances, _SpoFileCheckoutUndoCommand_initTelemetry, _SpoFileCheckoutUndoCommand_initOptions, _SpoFileCheckoutUndoCommand_initValidators, _SpoFileCheckoutUndoCommand_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 { urlUtil } from '../../../../utils/urlUtil.js';
@@ -58,7 +58,7 @@ class SpoFileCheckoutUndoCommand extends SpoCommand {
58
58
  await undoCheckout();
59
59
  }
60
60
  else {
61
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to undo the checkout for file ${args.options.fileId || args.options.fileUrl}?` });
61
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to undo the checkout for file ${args.options.fileId || args.options.fileUrl}?` });
62
62
  if (result) {
63
63
  await undoCheckout();
64
64
  }
@@ -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 _SpoFileRemoveCommand_instances, _SpoFileRemoveCommand_initTelemetry, _SpoFileRemoveCommand_initOptions, _SpoFileRemoveCommand_initValidators, _SpoFileRemoveCommand_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 { urlUtil } from '../../../../utils/urlUtil.js';
@@ -69,7 +69,7 @@ class SpoFileRemoveCommand extends SpoCommand {
69
69
  await removeFile();
70
70
  }
71
71
  else {
72
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to ${args.options.recycle ? 'recycle' : 'remove'} the file ${args.options.id || args.options.url} located in site ${args.options.webUrl}?` });
72
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to ${args.options.recycle ? 'recycle' : 'remove'} the file ${args.options.id || args.options.url} located in site ${args.options.webUrl}?` });
73
73
  if (result) {
74
74
  await removeFile();
75
75
  }
@@ -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 _SpoFileRenameCommand_instances, _SpoFileRenameCommand_initTelemetry, _SpoFileRenameCommand_initOptions, _SpoFileRenameCommand_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 { urlUtil } from '../../../../utils/urlUtil.js';
@@ -77,7 +77,7 @@ class SpoFileRenameCommand extends SpoCommand {
77
77
  verbose: this.verbose
78
78
  };
79
79
  try {
80
- await Cli.executeCommand(removeCommand, { options: { ...removeOptions, _: [] } });
80
+ await cli.executeCommand(removeCommand, { options: { ...removeOptions, _: [] } });
81
81
  }
82
82
  catch (err) {
83
83
  if (err.error !== undefined && err.error.message !== undefined && err.error.message.includes('does not exist')) {
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
5
5
  };
6
6
  var _SpoFileRetentionLabelRemoveCommand_instances, _SpoFileRetentionLabelRemoveCommand_initTelemetry, _SpoFileRetentionLabelRemoveCommand_initOptions, _SpoFileRetentionLabelRemoveCommand_initValidators, _SpoFileRetentionLabelRemoveCommand_initOptionSets;
7
7
  import * as url from 'url';
8
- import { Cli } from '../../../../cli/Cli.js';
8
+ import { cli } from '../../../../cli/cli.js';
9
9
  import request from '../../../../request.js';
10
10
  import { formatting } from '../../../../utils/formatting.js';
11
11
  import { spo } from '../../../../utils/spo.js';
@@ -33,7 +33,7 @@ class SpoFileRetentionLabelRemoveCommand extends SpoCommand {
33
33
  await this.removeFileRetentionLabel(logger, args);
34
34
  }
35
35
  else {
36
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove the retentionlabel from file ${args.options.fileId || args.options.fileUrl} located in site ${args.options.webUrl}?` });
36
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove the retentionlabel from file ${args.options.fileId || args.options.fileUrl} located in site ${args.options.webUrl}?` });
37
37
  if (result) {
38
38
  await this.removeFileRetentionLabel(logger, args);
39
39
  }
@@ -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 _SpoFileRoleAssignmentAddCommand_instances, _SpoFileRoleAssignmentAddCommand_initTelemetry, _SpoFileRoleAssignmentAddCommand_initOptions, _SpoFileRoleAssignmentAddCommand_initValidators, _SpoFileRoleAssignmentAddCommand_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 { urlUtil } from '../../../../utils/urlUtil.js';
@@ -75,7 +75,7 @@ class SpoFileRoleAssignmentAddCommand extends SpoCommand {
75
75
  debug: this.debug,
76
76
  verbose: this.verbose
77
77
  };
78
- const output = await Cli.executeCommandWithOutput(spoRoleDefinitionListCommand, { options: { ...roleDefinitionListCommandOptions, _: [] } });
78
+ const output = await cli.executeCommandWithOutput(spoRoleDefinitionListCommand, { options: { ...roleDefinitionListCommandOptions, _: [] } });
79
79
  const getRoleDefinitionListOutput = JSON.parse(output.stdout);
80
80
  const roleDefinitionId = getRoleDefinitionListOutput.find((role) => role.Name === options.roleDefinitionName).Id;
81
81
  return roleDefinitionId;
@@ -88,7 +88,7 @@ class SpoFileRoleAssignmentAddCommand extends SpoCommand {
88
88
  debug: this.debug,
89
89
  verbose: this.verbose
90
90
  };
91
- const output = await Cli.executeCommandWithOutput(spoGroupGetCommand, { options: { ...groupGetCommandOptions, _: [] } });
91
+ const output = await cli.executeCommandWithOutput(spoGroupGetCommand, { options: { ...groupGetCommandOptions, _: [] } });
92
92
  const getGroupOutput = JSON.parse(output.stdout);
93
93
  return getGroupOutput.Id;
94
94
  }
@@ -101,7 +101,7 @@ class SpoFileRoleAssignmentAddCommand extends SpoCommand {
101
101
  debug: this.debug,
102
102
  verbose: this.verbose
103
103
  };
104
- const output = await Cli.executeCommandWithOutput(spoUserGetCommand, { options: { ...userGetCommandOptions, _: [] } });
104
+ const output = await cli.executeCommandWithOutput(spoUserGetCommand, { options: { ...userGetCommandOptions, _: [] } });
105
105
  const getUserOutput = JSON.parse(output.stdout);
106
106
  return getUserOutput.Id;
107
107
  }
@@ -116,7 +116,7 @@ class SpoFileRoleAssignmentAddCommand extends SpoCommand {
116
116
  debug: this.debug,
117
117
  verbose: this.verbose
118
118
  };
119
- const output = await Cli.executeCommandWithOutput(spoFileGetCommand, { options: { ...options, _: [] } });
119
+ const output = await cli.executeCommandWithOutput(spoFileGetCommand, { options: { ...options, _: [] } });
120
120
  const getFileOutput = JSON.parse(output.stdout);
121
121
  return getFileOutput.ServerRelativeUrl;
122
122
  }
@@ -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 _SpoFileRoleAssignmentRemoveCommand_instances, _SpoFileRoleAssignmentRemoveCommand_initTelemetry, _SpoFileRoleAssignmentRemoveCommand_initOptions, _SpoFileRoleAssignmentRemoveCommand_initValidators, _SpoFileRoleAssignmentRemoveCommand_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 { urlUtil } from '../../../../utils/urlUtil.js';
@@ -64,7 +64,7 @@ class SpoFileRoleAssignmentRemoveCommand extends SpoCommand {
64
64
  await removeRoleAssignment();
65
65
  }
66
66
  else {
67
- const result = await Cli.promptForConfirmation({ message: `Are you sure you want to remove role assignment from file ${args.options.fileUrl || args.options.fileId} from site ${args.options.webUrl}?` });
67
+ const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove role assignment from file ${args.options.fileUrl || args.options.fileId} from site ${args.options.webUrl}?` });
68
68
  if (result) {
69
69
  await removeRoleAssignment();
70
70
  }
@@ -81,7 +81,7 @@ class SpoFileRoleAssignmentRemoveCommand extends SpoCommand {
81
81
  debug: this.debug,
82
82
  verbose: this.verbose
83
83
  };
84
- const output = await Cli.executeCommandWithOutput(spoFileGetCommand, { options: { ...options, _: [] } });
84
+ const output = await cli.executeCommandWithOutput(spoFileGetCommand, { options: { ...options, _: [] } });
85
85
  const getFileOutput = JSON.parse(output.stdout);
86
86
  return getFileOutput.ServerRelativeUrl;
87
87
  }
@@ -94,7 +94,7 @@ class SpoFileRoleAssignmentRemoveCommand extends SpoCommand {
94
94
  debug: this.debug,
95
95
  verbose: this.verbose
96
96
  };
97
- const output = await Cli.executeCommandWithOutput(spoUserGetCommand, { options: { ...userGetCommandOptions, _: [] } });
97
+ const output = await cli.executeCommandWithOutput(spoUserGetCommand, { options: { ...userGetCommandOptions, _: [] } });
98
98
  const getUserOutput = JSON.parse(output.stdout);
99
99
  return getUserOutput.Id;
100
100
  }
@@ -106,7 +106,7 @@ class SpoFileRoleAssignmentRemoveCommand extends SpoCommand {
106
106
  debug: this.debug,
107
107
  verbose: this.verbose
108
108
  };
109
- const output = await Cli.executeCommandWithOutput(spoGroupGetCommand, { options: { ...groupGetCommandOptions, _: [] } });
109
+ const output = await cli.executeCommandWithOutput(spoGroupGetCommand, { options: { ...groupGetCommandOptions, _: [] } });
110
110
  const getGroupOutput = JSON.parse(output.stdout);
111
111
  return getGroupOutput.Id;
112
112
  }