@pnp/cli-microsoft365 5.9.0 → 6.0.0-beta.01ba480

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 (335) hide show
  1. package/dist/Auth.js +1 -2
  2. package/dist/m365/aad/commands/app/app-add.js +4 -5
  3. package/dist/m365/aad/commands/app/app-remove.js +0 -4
  4. package/dist/m365/aad/commands/app/app-role-remove.js +0 -4
  5. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -11
  6. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +10 -10
  7. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +10 -10
  8. package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
  9. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
  10. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +0 -3
  11. package/dist/m365/aad/commands/o365group/o365group-teamify.js +7 -7
  12. package/dist/m365/aad/commands/policy/policy-list.js +6 -6
  13. package/dist/m365/aad/commands/sp/sp-get.js +12 -12
  14. package/dist/m365/aad/commands/user/user-guest-add.js +103 -0
  15. package/dist/m365/aad/commands.js +1 -3
  16. package/dist/m365/cli/commands/config/config-set.js +0 -1
  17. package/dist/m365/flow/commands/flow-disable.js +2 -2
  18. package/dist/m365/flow/commands/flow-enable.js +2 -2
  19. package/dist/m365/flow/commands/flow-export.js +5 -5
  20. package/dist/m365/flow/commands/flow-get.js +2 -2
  21. package/dist/m365/flow/commands/flow-list.js +2 -2
  22. package/dist/m365/flow/commands/flow-remove.js +3 -3
  23. package/dist/m365/flow/commands/run/run-cancel.js +6 -6
  24. package/dist/m365/flow/commands/run/run-get.js +4 -4
  25. package/dist/m365/flow/commands/run/run-list.js +4 -4
  26. package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
  27. package/dist/m365/outlook/commands/mail/mail-send.js +0 -3
  28. package/dist/m365/outlook/commands/message/message-get.js +97 -0
  29. package/dist/m365/outlook/commands/message/message-move.js +2 -2
  30. package/dist/m365/outlook/commands.js +2 -2
  31. package/dist/m365/pa/commands/connector/connector-export.js +3 -3
  32. package/dist/m365/pa/commands/connector/connector-list.js +2 -2
  33. package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
  34. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -9
  35. package/dist/m365/planner/commands/bucket/bucket-get.js +4 -11
  36. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -9
  37. package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -11
  38. package/dist/m365/planner/commands/bucket/bucket-set.js +4 -11
  39. package/dist/m365/planner/commands/plan/plan-get.js +5 -24
  40. package/dist/m365/planner/commands/task/task-add.js +3 -8
  41. package/dist/m365/planner/commands/task/task-get.js +5 -19
  42. package/dist/m365/planner/commands/task/task-list.js +4 -11
  43. package/dist/m365/planner/commands/task/task-set.js +5 -10
  44. package/dist/m365/planner/commands.js +0 -2
  45. package/dist/m365/spfx/commands/package/package-generate.js +2 -2
  46. package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
  47. package/dist/m365/spo/commands/app/app-add.js +7 -7
  48. package/dist/m365/spo/commands/app/app-deploy.js +7 -7
  49. package/dist/m365/spo/commands/app/app-get.js +7 -7
  50. package/dist/m365/spo/commands/app/app-install.js +6 -6
  51. package/dist/m365/spo/commands/app/app-list.js +7 -7
  52. package/dist/m365/spo/commands/app/app-remove.js +7 -7
  53. package/dist/m365/spo/commands/app/app-retract.js +7 -7
  54. package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
  55. package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
  56. package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
  57. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
  58. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
  59. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
  60. package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
  61. package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
  62. package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
  63. package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
  64. package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
  65. package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
  66. package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
  67. package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
  68. package/dist/m365/spo/commands/feature/feature-list.js +3 -3
  69. package/dist/m365/spo/commands/field/field-get.js +1 -7
  70. package/dist/m365/spo/commands/field/field-remove.js +1 -7
  71. package/dist/m365/spo/commands/field/field-set.js +1 -8
  72. package/dist/m365/spo/commands/file/file-checkin.js +5 -5
  73. package/dist/m365/spo/commands/file/file-checkout.js +5 -5
  74. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +13 -13
  75. package/dist/m365/spo/commands/folder/folder-get.js +6 -6
  76. package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
  77. package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
  78. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +11 -1
  79. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +12 -1
  80. package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
  81. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
  82. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
  83. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
  84. package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -4
  85. package/dist/m365/spo/commands/list/list-contenttype-remove.js +5 -5
  86. package/dist/m365/spo/commands/list/list-list.js +3 -13
  87. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +50 -29
  88. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +46 -25
  89. package/dist/m365/spo/commands/list/list-view-field-add.js +20 -20
  90. package/dist/m365/spo/commands/list/list-view-field-remove.js +11 -11
  91. package/dist/m365/spo/commands/list/list-view-field-set.js +15 -15
  92. package/dist/m365/spo/commands/list/list-view-get.js +9 -9
  93. package/dist/m365/spo/commands/list/list-view-remove.js +11 -11
  94. package/dist/m365/spo/commands/list/list-view-set.js +11 -11
  95. package/dist/m365/spo/commands/list/list-webhook-list.js +4 -28
  96. package/dist/m365/spo/commands/listitem/listitem-list.js +3 -28
  97. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -4
  98. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -4
  99. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +50 -29
  100. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +48 -24
  101. package/dist/m365/spo/commands/page/page-column-get.js +2 -2
  102. package/dist/m365/spo/commands/page/page-column-list.js +2 -2
  103. package/dist/m365/spo/commands/page/page-control-get.js +4 -4
  104. package/dist/m365/spo/commands/page/page-control-list.js +3 -3
  105. package/dist/m365/spo/commands/page/page-control-set.js +3 -3
  106. package/dist/m365/spo/commands/page/page-section-add.js +2 -2
  107. package/dist/m365/spo/commands/page/page-section-get.js +2 -2
  108. package/dist/m365/spo/commands/page/page-section-list.js +2 -2
  109. package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +15 -2
  110. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
  111. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
  112. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
  113. package/dist/m365/spo/commands/site/site-add.js +4 -11
  114. package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
  115. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
  116. package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
  117. package/dist/m365/spo/commands/site/site-apppermission-remove.js +5 -5
  118. package/dist/m365/spo/commands/site/site-apppermission-set.js +5 -5
  119. package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
  120. package/dist/m365/spo/commands/site/site-ensure.js +1 -1
  121. package/dist/m365/spo/commands/site/site-groupify.js +3 -3
  122. package/dist/m365/spo/commands/{hubsite/hubsite-connect.js → site/site-hubsite-connect.js} +17 -17
  123. package/dist/m365/spo/commands/{hubsite/hubsite-disconnect.js → site/site-hubsite-disconnect.js} +18 -18
  124. package/dist/m365/spo/commands/{hubsite/hubsite-theme-sync.js → site/site-hubsite-theme-sync.js} +11 -11
  125. package/dist/m365/spo/commands/site/site-list.js +6 -17
  126. package/dist/m365/spo/commands/site/site-rename.js +9 -9
  127. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
  128. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
  129. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
  130. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
  131. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
  132. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
  133. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
  134. package/dist/m365/spo/commands/web/web-add.js +4 -4
  135. package/dist/m365/spo/commands/web/web-get.js +3 -3
  136. package/dist/m365/spo/commands/web/web-list.js +4 -4
  137. package/dist/m365/spo/commands/web/web-reindex.js +8 -8
  138. package/dist/m365/spo/commands/web/web-remove.js +5 -5
  139. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +41 -15
  140. package/dist/m365/spo/commands/web/web-set.js +4 -4
  141. package/dist/m365/spo/commands.js +3 -6
  142. package/dist/m365/teams/commands/app/app-install.js +4 -4
  143. package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
  144. package/dist/m365/teams/commands/channel/channel-get.js +10 -10
  145. package/dist/m365/teams/commands/channel/channel-member-add.js +0 -4
  146. package/dist/m365/teams/commands/channel/channel-member-list.js +0 -4
  147. package/dist/m365/teams/commands/channel/channel-member-remove.js +0 -4
  148. package/dist/m365/teams/commands/channel/channel-remove.js +16 -16
  149. package/dist/m365/teams/commands/channel/channel-set.js +7 -7
  150. package/dist/m365/teams/commands/message/message-get.js +3 -3
  151. package/dist/m365/teams/commands/tab/tab-get.js +10 -10
  152. package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
  153. package/dist/m365/teams/commands/team/team-archive.js +3 -13
  154. package/dist/m365/teams/commands/team/team-clone.js +3 -20
  155. package/dist/m365/teams/commands/team/team-remove.js +5 -17
  156. package/dist/m365/teams/commands/team/team-set.js +1 -20
  157. package/dist/m365/teams/commands/team/team-unarchive.js +4 -16
  158. package/dist/m365/teams/commands/user/user-app-add.js +4 -4
  159. package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
  160. package/dist/m365/teams/commands.js +0 -3
  161. package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
  162. package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
  163. package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
  164. package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
  165. package/dist/m365/yammer/commands/user/user-get.js +5 -5
  166. package/dist/settingsNames.js +0 -1
  167. package/docs/docs/_clisettings.md +1 -2
  168. package/docs/docs/cmd/aad/app/app-remove.md +0 -6
  169. package/docs/docs/cmd/aad/app/app-role-remove.md +0 -6
  170. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
  171. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
  172. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
  173. package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
  174. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
  175. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +0 -6
  176. package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
  177. package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
  178. package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
  179. package/docs/docs/cmd/aad/user/user-guest-add.md +107 -0
  180. package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +3 -0
  181. package/docs/docs/cmd/flow/flow-disable.md +3 -3
  182. package/docs/docs/cmd/flow/flow-enable.md +1 -1
  183. package/docs/docs/cmd/flow/flow-export.md +5 -5
  184. package/docs/docs/cmd/flow/flow-get.md +3 -3
  185. package/docs/docs/cmd/flow/flow-list.md +3 -3
  186. package/docs/docs/cmd/flow/flow-remove.md +5 -5
  187. package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
  188. package/docs/docs/cmd/flow/run/run-get.md +3 -3
  189. package/docs/docs/cmd/flow/run/run-list.md +3 -3
  190. package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
  191. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.md +4 -11
  192. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.md +4 -10
  193. package/docs/docs/cmd/outlook/mail/mail-send.md +0 -6
  194. package/docs/docs/cmd/outlook/message/message-get.md +48 -0
  195. package/docs/docs/cmd/outlook/message/message-move.md +4 -4
  196. package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
  197. package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
  198. package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
  199. package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
  200. package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
  201. package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
  202. package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
  203. package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
  204. package/docs/docs/cmd/planner/plan/plan-get.md +0 -12
  205. package/docs/docs/cmd/planner/task/task-add.md +0 -3
  206. package/docs/docs/cmd/planner/task/task-get.md +0 -6
  207. package/docs/docs/cmd/planner/task/task-list.md +0 -3
  208. package/docs/docs/cmd/planner/task/task-set.md +0 -3
  209. package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
  210. package/docs/docs/cmd/spo/app/app-add.md +2 -2
  211. package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
  212. package/docs/docs/cmd/spo/app/app-get.md +2 -2
  213. package/docs/docs/cmd/spo/app/app-install.md +2 -2
  214. package/docs/docs/cmd/spo/app/app-list.md +2 -2
  215. package/docs/docs/cmd/spo/app/app-remove.md +2 -2
  216. package/docs/docs/cmd/spo/app/app-retract.md +2 -2
  217. package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
  218. package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
  219. package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
  220. package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
  221. package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
  222. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
  223. package/docs/docs/cmd/spo/customaction/customaction-add.md +13 -10
  224. package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
  225. package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
  226. package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
  227. package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
  228. package/docs/docs/cmd/spo/customaction/customaction-set.md +10 -9
  229. package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
  230. package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
  231. package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
  232. package/docs/docs/cmd/spo/field/field-get.md +0 -3
  233. package/docs/docs/cmd/spo/field/field-remove.md +0 -3
  234. package/docs/docs/cmd/spo/field/field-set.md +4 -4
  235. package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
  236. package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
  237. package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
  238. package/docs/docs/cmd/spo/folder/folder-get.md +3 -3
  239. package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
  240. package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
  241. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.md +6 -0
  242. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +6 -0
  243. package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
  244. package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
  245. package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
  246. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
  247. package/docs/docs/cmd/spo/list/list-contenttype-add.md +4 -4
  248. package/docs/docs/cmd/spo/list/list-contenttype-remove.md +4 -4
  249. package/docs/docs/cmd/spo/list/list-list.md +0 -3
  250. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +9 -0
  251. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +9 -0
  252. package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
  253. package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
  254. package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
  255. package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
  256. package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
  257. package/docs/docs/cmd/spo/list/list-view-set.md +20 -9
  258. package/docs/docs/cmd/spo/list/list-webhook-list.md +3 -9
  259. package/docs/docs/cmd/spo/listitem/listitem-list.md +0 -6
  260. package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +5 -5
  261. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +3 -3
  262. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +9 -0
  263. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +5 -2
  264. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +5 -10
  265. package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
  266. package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
  267. package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
  268. package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
  269. package/docs/docs/cmd/spo/page/page-control-set.md +6 -5
  270. package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
  271. package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
  272. package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
  273. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
  274. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
  275. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
  276. package/docs/docs/cmd/spo/site/site-add.md +2 -5
  277. package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
  278. package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
  279. package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
  280. package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
  281. package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
  282. package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
  283. package/docs/docs/cmd/spo/site/site-groupify.md +5 -11
  284. package/docs/docs/cmd/spo/{hubsite/hubsite-connect.md → site/site-hubsite-connect.md} +7 -7
  285. package/docs/docs/cmd/spo/{hubsite/hubsite-disconnect.md → site/site-hubsite-disconnect.md} +8 -8
  286. package/docs/docs/cmd/spo/{hubsite/hubsite-theme-sync.md → site/site-hubsite-theme-sync.md} +5 -5
  287. package/docs/docs/cmd/spo/site/site-list.md +6 -6
  288. package/docs/docs/cmd/spo/site/site-rename.md +6 -6
  289. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
  290. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
  291. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
  292. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
  293. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
  294. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
  295. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
  296. package/docs/docs/cmd/spo/term/term-add.md +5 -0
  297. package/docs/docs/cmd/spo/term/term-set-add.md +6 -1
  298. package/docs/docs/cmd/spo/web/web-add.md +4 -4
  299. package/docs/docs/cmd/spo/web/web-get.md +3 -3
  300. package/docs/docs/cmd/spo/web/web-list.md +2 -2
  301. package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
  302. package/docs/docs/cmd/spo/web/web-remove.md +2 -2
  303. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +9 -0
  304. package/docs/docs/cmd/spo/web/web-set.md +9 -9
  305. package/docs/docs/cmd/teams/app/app-install.md +5 -5
  306. package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
  307. package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
  308. package/docs/docs/cmd/teams/channel/channel-member-add.md +0 -6
  309. package/docs/docs/cmd/teams/channel/channel-member-list.md +0 -6
  310. package/docs/docs/cmd/teams/channel/channel-member-remove.md +0 -6
  311. package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
  312. package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
  313. package/docs/docs/cmd/teams/message/message-get.md +3 -3
  314. package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
  315. package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
  316. package/docs/docs/cmd/teams/team/team-archive.md +0 -3
  317. package/docs/docs/cmd/teams/team/team-clone.md +0 -6
  318. package/docs/docs/cmd/teams/team/team-remove.md +0 -3
  319. package/docs/docs/cmd/teams/team/team-set.md +0 -6
  320. package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
  321. package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
  322. package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
  323. package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
  324. package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
  325. package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
  326. package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
  327. package/docs/docs/cmd/yammer/user/user-get.md +2 -2
  328. package/npm-shrinkwrap.json +2 -2
  329. package/package.json +1 -1
  330. package/dist/m365/spo/commands/site/site-classic-add.js +0 -328
  331. package/dist/m365/spo/commands/site/site-classic-list.js +0 -115
  332. package/dist/m365/spo/commands/site/site-classic-set.js +0 -351
  333. package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
  334. package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
  335. package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
@@ -38,7 +38,7 @@ class SpoWebRemoveCommand extends SpoCommand_1.default {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
39
  const removeWeb = () => __awaiter(this, void 0, void 0, function* () {
40
40
  const requestOptions = {
41
- url: `${encodeURI(args.options.webUrl)}/_api/web`,
41
+ url: `${encodeURI(args.options.url)}/_api/web`,
42
42
  headers: {
43
43
  accept: 'application/json;odata=nometadata',
44
44
  'X-HTTP-Method': 'DELETE'
@@ -46,7 +46,7 @@ class SpoWebRemoveCommand extends SpoCommand_1.default {
46
46
  responseType: 'json'
47
47
  };
48
48
  if (this.verbose) {
49
- logger.logToStderr(`Deleting subsite ${args.options.webUrl} ...`);
49
+ logger.logToStderr(`Deleting subsite ${args.options.url} ...`);
50
50
  }
51
51
  try {
52
52
  yield request_1.default.post(requestOptions);
@@ -63,7 +63,7 @@ class SpoWebRemoveCommand extends SpoCommand_1.default {
63
63
  type: 'confirm',
64
64
  name: 'continue',
65
65
  default: false,
66
- message: `Are you sure you want to remove the subsite ${args.options.webUrl}`
66
+ message: `Are you sure you want to remove the subsite ${args.options.url}`
67
67
  });
68
68
  if (result.continue) {
69
69
  yield removeWeb();
@@ -80,12 +80,12 @@ _SpoWebRemoveCommand_instances = new WeakSet(), _SpoWebRemoveCommand_initTelemet
80
80
  });
81
81
  }, _SpoWebRemoveCommand_initOptions = function _SpoWebRemoveCommand_initOptions() {
82
82
  this.options.unshift({
83
- option: '-u, --webUrl <webUrl>'
83
+ option: '-u, --url <url>'
84
84
  }, {
85
85
  option: '--confirm'
86
86
  });
87
87
  }, _SpoWebRemoveCommand_initValidators = function _SpoWebRemoveCommand_initValidators() {
88
- this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.webUrl); }));
88
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.url); }));
89
89
  };
90
90
  module.exports = new SpoWebRemoveCommand();
91
91
  //# sourceMappingURL=web-remove.js.map
@@ -13,8 +13,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
13
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
14
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
15
  };
16
- var _SpoWebRoleInheritanceResetCommand_instances, _SpoWebRoleInheritanceResetCommand_initOptions, _SpoWebRoleInheritanceResetCommand_initValidators;
16
+ var _SpoWebRoleInheritanceResetCommand_instances, _SpoWebRoleInheritanceResetCommand_initTelemetry, _SpoWebRoleInheritanceResetCommand_initOptions, _SpoWebRoleInheritanceResetCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ const Cli_1 = require("../../../../cli/Cli");
18
19
  const request_1 = require("../../../../request");
19
20
  const validation_1 = require("../../../../utils/validation");
20
21
  const SpoCommand_1 = require("../../../base/SpoCommand");
@@ -23,6 +24,7 @@ class SpoWebRoleInheritanceResetCommand extends SpoCommand_1.default {
23
24
  constructor() {
24
25
  super();
25
26
  _SpoWebRoleInheritanceResetCommand_instances.add(this);
27
+ __classPrivateFieldGet(this, _SpoWebRoleInheritanceResetCommand_instances, "m", _SpoWebRoleInheritanceResetCommand_initTelemetry).call(this);
26
28
  __classPrivateFieldGet(this, _SpoWebRoleInheritanceResetCommand_instances, "m", _SpoWebRoleInheritanceResetCommand_initOptions).call(this);
27
29
  __classPrivateFieldGet(this, _SpoWebRoleInheritanceResetCommand_instances, "m", _SpoWebRoleInheritanceResetCommand_initValidators).call(this);
28
30
  }
@@ -37,27 +39,51 @@ class SpoWebRoleInheritanceResetCommand extends SpoCommand_1.default {
37
39
  if (this.verbose) {
38
40
  logger.logToStderr(`Restore role inheritance of subsite at ${args.options.webUrl}...`);
39
41
  }
40
- const requestOptions = {
41
- url: `${args.options.webUrl}/_api/web/resetroleinheritance`,
42
- method: 'POST',
43
- headers: {
44
- 'accept': 'application/json;odata=nometadata',
45
- 'content-type': 'application/json'
46
- },
47
- responseType: 'json'
48
- };
49
- try {
50
- yield request_1.default.post(requestOptions);
42
+ const resetWebRoleInheritance = () => __awaiter(this, void 0, void 0, function* () {
43
+ try {
44
+ const requestOptions = {
45
+ url: `${args.options.webUrl}/_api/web/resetroleinheritance`,
46
+ method: 'POST',
47
+ headers: {
48
+ 'accept': 'application/json;odata=nometadata',
49
+ 'content-type': 'application/json'
50
+ },
51
+ responseType: 'json'
52
+ };
53
+ yield request_1.default.post(requestOptions);
54
+ }
55
+ catch (err) {
56
+ this.handleRejectedODataJsonPromise(err);
57
+ }
58
+ });
59
+ if (args.options.confirm) {
60
+ yield resetWebRoleInheritance();
51
61
  }
52
- catch (err) {
53
- this.handleRejectedODataJsonPromise(err);
62
+ else {
63
+ const result = yield Cli_1.Cli.prompt({
64
+ type: 'confirm',
65
+ name: 'continue',
66
+ default: false,
67
+ message: `Are you sure you want to reset the role inheritance of ${args.options.webUrl}`
68
+ });
69
+ if (result.continue) {
70
+ yield resetWebRoleInheritance();
71
+ }
54
72
  }
55
73
  });
56
74
  }
57
75
  }
58
- _SpoWebRoleInheritanceResetCommand_instances = new WeakSet(), _SpoWebRoleInheritanceResetCommand_initOptions = function _SpoWebRoleInheritanceResetCommand_initOptions() {
76
+ _SpoWebRoleInheritanceResetCommand_instances = new WeakSet(), _SpoWebRoleInheritanceResetCommand_initTelemetry = function _SpoWebRoleInheritanceResetCommand_initTelemetry() {
77
+ this.telemetry.push((args) => {
78
+ Object.assign(this.telemetryProperties, {
79
+ confirm: (!(!args.options.confirm)).toString()
80
+ });
81
+ });
82
+ }, _SpoWebRoleInheritanceResetCommand_initOptions = function _SpoWebRoleInheritanceResetCommand_initOptions() {
59
83
  this.options.unshift({
60
84
  option: '-u, --webUrl <webUrl>'
85
+ }, {
86
+ option: '--confirm'
61
87
  });
62
88
  }, _SpoWebRoleInheritanceResetCommand_initValidators = function _SpoWebRoleInheritanceResetCommand_initValidators() {
63
89
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
@@ -66,7 +66,7 @@ class SpoWebSetCommand extends SpoCommand_1.default {
66
66
  payload.SearchScope = SpoWebSetCommand.searchScopeOptions.indexOf(searchScope);
67
67
  }
68
68
  const requestOptions = {
69
- url: `${args.options.webUrl}/_api/web`,
69
+ url: `${args.options.url}/_api/web`,
70
70
  headers: {
71
71
  'content-type': 'application/json;odata=nometadata',
72
72
  accept: 'application/json;odata=nometadata'
@@ -75,7 +75,7 @@ class SpoWebSetCommand extends SpoCommand_1.default {
75
75
  data: payload
76
76
  };
77
77
  if (this.verbose) {
78
- logger.logToStderr(`Updating properties of subsite ${args.options.webUrl}...`);
78
+ logger.logToStderr(`Updating properties of subsite ${args.options.url}...`);
79
79
  }
80
80
  try {
81
81
  yield request_1.default.patch(requestOptions);
@@ -106,7 +106,7 @@ _SpoWebSetCommand_instances = new WeakSet(), _SpoWebSetCommand_initTelemetry = f
106
106
  });
107
107
  }, _SpoWebSetCommand_initOptions = function _SpoWebSetCommand_initOptions() {
108
108
  this.options.unshift({
109
- option: '-u, --webUrl <webUrl>'
109
+ option: '-u, --url <url>'
110
110
  }, {
111
111
  option: '-t, --title [title]'
112
112
  }, {
@@ -133,7 +133,7 @@ _SpoWebSetCommand_instances = new WeakSet(), _SpoWebSetCommand_initTelemetry = f
133
133
  });
134
134
  }, _SpoWebSetCommand_initValidators = function _SpoWebSetCommand_initValidators() {
135
135
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
136
- const isValidSharePointUrl = validation_1.validation.isValidSharePointUrl(args.options.webUrl);
136
+ const isValidSharePointUrl = validation_1.validation.isValidSharePointUrl(args.options.url);
137
137
  if (isValidSharePointUrl !== true) {
138
138
  return isValidSharePointUrl;
139
139
  }
@@ -86,16 +86,13 @@ exports.default = {
86
86
  HOMESITE_GET: `${prefix} homesite get`,
87
87
  HOMESITE_REMOVE: `${prefix} homesite remove`,
88
88
  HOMESITE_SET: `${prefix} homesite set`,
89
- HUBSITE_CONNECT: `${prefix} hubsite connect`,
90
89
  HUBSITE_DATA_GET: `${prefix} hubsite data get`,
91
- HUBSITE_DISCONNECT: `${prefix} hubsite disconnect`,
92
90
  HUBSITE_GET: `${prefix} hubsite get`,
93
91
  HUBSITE_LIST: `${prefix} hubsite list`,
94
92
  HUBSITE_REGISTER: `${prefix} hubsite register`,
95
93
  HUBSITE_RIGHTS_GRANT: `${prefix} hubsite rights grant`,
96
94
  HUBSITE_RIGHTS_REVOKE: `${prefix} hubsite rights revoke`,
97
95
  HUBSITE_SET: `${prefix} hubsite set`,
98
- HUBSITE_THEME_SYNC: `${prefix} hubsite theme sync`,
99
96
  HUBSITE_UNREGISTER: `${prefix} hubsite unregister`,
100
97
  KNOWLEDGEHUB_GET: `${prefix} knowledgehub get`,
101
98
  KNOWLEDGEHUB_REMOVE: `${prefix} knowledgehub remove`,
@@ -204,13 +201,13 @@ exports.default = {
204
201
  SITE_APPPERMISSION_LIST: `${prefix} site apppermission list`,
205
202
  SITE_APPPERMISSION_REMOVE: `${prefix} site apppermission remove`,
206
203
  SITE_APPPERMISSION_SET: `${prefix} site apppermission set`,
207
- SITE_CLASSIC_ADD: `${prefix} site classic add`,
208
- SITE_CLASSIC_LIST: `${prefix} site classic list`,
209
- SITE_CLASSIC_SET: `${prefix} site classic set`,
210
204
  SITE_COMMSITE_ENABLE: `${prefix} site commsite enable`,
211
205
  SITE_ENSURE: `${prefix} site ensure`,
212
206
  SITE_GET: `${prefix} site get`,
213
207
  SITE_GROUPIFY: `${prefix} site groupify`,
208
+ SITE_HUBSITE_CONNECT: `${prefix} site hubsite connect`,
209
+ SITE_HUBSITE_DISCONNECT: `${prefix} site hubsite disconnect`,
210
+ SITE_HUBSITE_THEME_SYNC: `${prefix} site hubsite theme sync`,
214
211
  SITE_LIST: `${prefix} site list`,
215
212
  SITE_INPLACERECORDSMANAGEMENT_SET: `${prefix} site inplacerecordsmanagement set`,
216
213
  SITE_RECYCLEBINITEM_LIST: `${prefix} site recyclebinitem list`,
@@ -56,7 +56,7 @@ class TeamsAppInstallCommand extends GraphCommand_1.default {
56
56
  },
57
57
  responseType: 'json',
58
58
  data: {
59
- 'teamsApp@odata.bind': `${this.resource}/v1.0/appCatalogs/teamsApps/${args.options.appId}`
59
+ 'teamsApp@odata.bind': `${this.resource}/v1.0/appCatalogs/teamsApps/${args.options.id}`
60
60
  }
61
61
  };
62
62
  yield request_1.default.post(requestOptions);
@@ -105,11 +105,11 @@ _TeamsAppInstallCommand_instances = new WeakSet(), _TeamsAppInstallCommand_initT
105
105
  });
106
106
  });
107
107
  }, _TeamsAppInstallCommand_initOptions = function _TeamsAppInstallCommand_initOptions() {
108
- this.options.unshift({ option: '--appId <appId>' }, { option: '--teamId [teamId]' }, { option: '--userId [userId]' }, { option: '--userName [userName]' });
108
+ this.options.unshift({ option: '--id <id>' }, { option: '--teamId [teamId]' }, { option: '--userId [userId]' }, { option: '--userName [userName]' });
109
109
  }, _TeamsAppInstallCommand_initValidators = function _TeamsAppInstallCommand_initValidators() {
110
110
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
111
- if (!validation_1.validation.isValidGuid(args.options.appId)) {
112
- return `${args.options.appId} is not a valid GUID`;
111
+ if (!validation_1.validation.isValidGuid(args.options.id)) {
112
+ return `${args.options.id} is not a valid GUID`;
113
113
  }
114
114
  if (args.options.teamId &&
115
115
  !validation_1.validation.isValidGuid(args.options.teamId)) {
@@ -38,7 +38,7 @@ class TeamsAppUninstallCommand extends GraphCommand_1.default {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
39
  const uninstallApp = () => __awaiter(this, void 0, void 0, function* () {
40
40
  const requestOptions = {
41
- url: `${this.resource}/v1.0/teams/${args.options.teamId}/installedApps/${args.options.appId}`,
41
+ url: `${this.resource}/v1.0/teams/${args.options.teamId}/installedApps/${args.options.id}`,
42
42
  headers: {
43
43
  accept: 'application/json;odata.metadata=none'
44
44
  }
@@ -58,7 +58,7 @@ class TeamsAppUninstallCommand extends GraphCommand_1.default {
58
58
  type: 'confirm',
59
59
  name: 'continue',
60
60
  default: false,
61
- message: `Are you sure you want to uninstall the app with id ${args.options.appId} from the Microsoft Teams team ${args.options.teamId}?`
61
+ message: `Are you sure you want to uninstall the app with id ${args.options.id} from the Microsoft Teams team ${args.options.teamId}?`
62
62
  });
63
63
  if (result.continue) {
64
64
  yield uninstallApp();
@@ -75,7 +75,7 @@ _TeamsAppUninstallCommand_instances = new WeakSet(), _TeamsAppUninstallCommand_i
75
75
  });
76
76
  }, _TeamsAppUninstallCommand_initOptions = function _TeamsAppUninstallCommand_initOptions() {
77
77
  this.options.unshift({
78
- option: '--appId <appId>'
78
+ option: '--id <id>'
79
79
  }, {
80
80
  option: '--teamId <teamId>'
81
81
  }, {
@@ -50,14 +50,14 @@ class TeamsChannelGetCommand extends GraphCommand_1.default {
50
50
  });
51
51
  }
52
52
  getChannelId(args) {
53
- if (args.options.channelId) {
54
- return Promise.resolve(args.options.channelId);
53
+ if (args.options.id) {
54
+ return Promise.resolve(args.options.id);
55
55
  }
56
56
  if (args.options.primary) {
57
57
  return Promise.resolve('');
58
58
  }
59
59
  const channelRequestOptions = {
60
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.channelName)}'`,
60
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
61
61
  headers: {
62
62
  accept: 'application/json;odata.metadata=none'
63
63
  },
@@ -106,8 +106,8 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
106
106
  Object.assign(this.telemetryProperties, {
107
107
  teamId: typeof args.options.teamId !== 'undefined',
108
108
  teamName: typeof args.options.teamName !== 'undefined',
109
- channelId: typeof args.options.channelId !== 'undefined',
110
- channelName: typeof args.options.channelName !== 'undefined',
109
+ id: typeof args.options.id !== 'undefined',
110
+ name: typeof args.options.name !== 'undefined',
111
111
  primary: (!(!args.options.primary)).toString()
112
112
  });
113
113
  });
@@ -117,9 +117,9 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
117
117
  }, {
118
118
  option: '--teamName [teamName]'
119
119
  }, {
120
- option: '-c, --channelId [channelId]'
120
+ option: '-c, --id [id]'
121
121
  }, {
122
- option: '--channelName [channelName]'
122
+ option: '--name [name]'
123
123
  }, {
124
124
  option: '--primary'
125
125
  });
@@ -128,13 +128,13 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
128
128
  if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
129
129
  return `${args.options.teamId} is not a valid GUID`;
130
130
  }
131
- if (args.options.channelId && !validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
132
- return `${args.options.channelId} is not a valid Teams ChannelId`;
131
+ if (args.options.id && !validation_1.validation.isValidTeamsChannelId(args.options.id)) {
132
+ return `${args.options.id} is not a valid Teams channel id`;
133
133
  }
134
134
  return true;
135
135
  }));
136
136
  }, _TeamsChannelGetCommand_initOptionSets = function _TeamsChannelGetCommand_initOptionSets() {
137
- this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName', 'primary']);
137
+ this.optionSets.push(['teamId', 'teamName'], ['id', 'name', 'primary']);
138
138
  };
139
139
  module.exports = new TeamsChannelGetCommand();
140
140
  //# sourceMappingURL=channel-get.js.map
@@ -36,12 +36,8 @@ class TeamsChannelMemberAddCommand extends GraphCommand_1.default {
36
36
  get description() {
37
37
  return 'Adds a specified member in the specified Microsoft Teams private or shared team channel';
38
38
  }
39
- alias() {
40
- return [commands_1.default.CONVERSATIONMEMBER_ADD];
41
- }
42
39
  commandAction(logger, args) {
43
40
  return __awaiter(this, void 0, void 0, function* () {
44
- this.showDeprecationWarning(logger, commands_1.default.CONVERSATIONMEMBER_ADD, commands_1.default.CHANNEL_MEMBER_ADD);
45
41
  try {
46
42
  const teamId = yield this.getTeamId(args);
47
43
  const channelId = yield this.getChannelId(teamId, args);
@@ -37,15 +37,11 @@ class TeamsChannelMemberListCommand extends GraphCommand_1.default {
37
37
  get description() {
38
38
  return 'Lists members of the specified Microsoft Teams team channel';
39
39
  }
40
- alias() {
41
- return [commands_1.default.CONVERSATIONMEMBER_LIST];
42
- }
43
40
  defaultProperties() {
44
41
  return ['id', 'roles', 'displayName', 'userId', 'email'];
45
42
  }
46
43
  commandAction(logger, args) {
47
44
  return __awaiter(this, void 0, void 0, function* () {
48
- this.showDeprecationWarning(logger, commands_1.default.CONVERSATIONMEMBER_LIST, commands_1.default.CHANNEL_MEMBER_LIST);
49
45
  try {
50
46
  this.teamId = yield this.getTeamId(args);
51
47
  const channelId = yield this.getChannelId(args);
@@ -38,12 +38,8 @@ class TeamsChannelMemberRemoveCommand extends GraphCommand_1.default {
38
38
  get description() {
39
39
  return 'Remove the specified member from the specified Microsoft Teams private or shared team channel';
40
40
  }
41
- alias() {
42
- return [commands_1.default.CONVERSATIONMEMBER_REMOVE];
43
- }
44
41
  commandAction(logger, args) {
45
42
  return __awaiter(this, void 0, void 0, function* () {
46
- this.showDeprecationWarning(logger, commands_1.default.CONVERSATIONMEMBER_REMOVE, commands_1.default.CHANNEL_MEMBER_REMOVE);
47
43
  const removeMember = () => __awaiter(this, void 0, void 0, function* () {
48
44
  try {
49
45
  yield this.removeMemberFromChannel(args);
@@ -39,32 +39,32 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  const removeChannel = () => __awaiter(this, void 0, void 0, function* () {
41
41
  try {
42
- if (args.options.channelName) {
43
- const requestOptions = {
44
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.channelName)}'`,
42
+ if (args.options.name) {
43
+ const getRequestOptions = {
44
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
45
45
  headers: {
46
46
  accept: 'application/json;odata.metadata=none'
47
47
  },
48
48
  responseType: 'json'
49
49
  };
50
- const res = yield request_1.default.get(requestOptions);
50
+ const res = yield request_1.default.get(getRequestOptions);
51
51
  const channelItem = res.value[0];
52
52
  if (!channelItem) {
53
53
  return Promise.reject(`The specified channel does not exist in the Microsoft Teams team`);
54
54
  }
55
55
  const channelId = res.value[0].id;
56
- const requestOptionsDelete = {
56
+ const deleteRequestOptions = {
57
57
  url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${encodeURIComponent(channelId)}`,
58
58
  headers: {
59
59
  accept: 'application/json;odata.metadata=none'
60
60
  },
61
61
  responseType: 'json'
62
62
  };
63
- yield request_1.default.delete(requestOptionsDelete);
63
+ yield request_1.default.delete(deleteRequestOptions);
64
64
  }
65
- if (args.options.channelId) {
65
+ else {
66
66
  const requestOptions = {
67
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${encodeURIComponent(args.options.channelId)}`,
67
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${encodeURIComponent(args.options.id)}`,
68
68
  headers: {
69
69
  accept: 'application/json;odata.metadata=none'
70
70
  },
@@ -81,7 +81,7 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
81
81
  yield removeChannel();
82
82
  }
83
83
  else {
84
- const channelName = args.options.channelName ? args.options.channelName : args.options.channelId;
84
+ const channelName = args.options.name ? args.options.name : args.options.id;
85
85
  const result = yield Cli_1.Cli.prompt({
86
86
  type: 'confirm',
87
87
  name: 'continue',
@@ -98,16 +98,16 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
98
98
  _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand_initTelemetry = function _TeamsChannelRemoveCommand_initTelemetry() {
99
99
  this.telemetry.push((args) => {
100
100
  Object.assign(this.telemetryProperties, {
101
- channelId: typeof args.options.channelId !== 'undefined',
102
- channelName: typeof args.options.channelName !== 'undefined',
101
+ id: typeof args.options.id !== 'undefined',
102
+ name: typeof args.options.name !== 'undefined',
103
103
  confirm: (!(!args.options.confirm)).toString()
104
104
  });
105
105
  });
106
106
  }, _TeamsChannelRemoveCommand_initOptions = function _TeamsChannelRemoveCommand_initOptions() {
107
107
  this.options.unshift({
108
- option: '-c, --channelId [channelId]'
108
+ option: '-c, --id [id]'
109
109
  }, {
110
- option: '-n, --channelName [channelName]'
110
+ option: '-n, --name [name]'
111
111
  }, {
112
112
  option: '-i, --teamId <teamId>'
113
113
  }, {
@@ -115,8 +115,8 @@ _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand
115
115
  });
116
116
  }, _TeamsChannelRemoveCommand_initValidators = function _TeamsChannelRemoveCommand_initValidators() {
117
117
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
118
- if (args.options.channelId && !validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
119
- return `${args.options.channelId} is not a valid Teams Channel Id`;
118
+ if (args.options.id && !validation_1.validation.isValidTeamsChannelId(args.options.id)) {
119
+ return `${args.options.id} is not a valid Teams channel id`;
120
120
  }
121
121
  if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
122
122
  return `${args.options.teamId} is not a valid GUID`;
@@ -124,7 +124,7 @@ _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand
124
124
  return true;
125
125
  }));
126
126
  }, _TeamsChannelRemoveCommand_initOptionSets = function _TeamsChannelRemoveCommand_initOptionSets() {
127
- this.optionSets.push(['channelId', 'channelName']);
127
+ this.optionSets.push(['id', 'name']);
128
128
  };
129
129
  module.exports = new TeamsChannelRemoveCommand();
130
130
  //# sourceMappingURL=channel-remove.js.map
@@ -36,7 +36,7 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
36
36
  commandAction(logger, args) {
37
37
  return __awaiter(this, void 0, void 0, function* () {
38
38
  const requestOptions = {
39
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.channelName)}'`,
39
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
40
40
  headers: {
41
41
  accept: 'application/json;odata.metadata=none'
42
42
  },
@@ -67,8 +67,8 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
67
67
  }
68
68
  mapRequestBody(options) {
69
69
  const requestBody = {};
70
- if (options.newChannelName) {
71
- requestBody.displayName = options.newChannelName;
70
+ if (options.newName) {
71
+ requestBody.displayName = options.newName;
72
72
  }
73
73
  if (options.description) {
74
74
  requestBody.description = options.description;
@@ -79,7 +79,7 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
79
79
  _TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initTelemetry = function _TeamsChannelSetCommand_initTelemetry() {
80
80
  this.telemetry.push((args) => {
81
81
  Object.assign(this.telemetryProperties, {
82
- newChannelName: typeof args.options.newChannelName !== 'undefined',
82
+ newName: typeof args.options.newName !== 'undefined',
83
83
  description: typeof args.options.description !== 'undefined'
84
84
  });
85
85
  });
@@ -87,9 +87,9 @@ _TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initT
87
87
  this.options.unshift({
88
88
  option: '-i, --teamId <teamId>'
89
89
  }, {
90
- option: '--channelName <channelName>'
90
+ option: '--name <name>'
91
91
  }, {
92
- option: '--newChannelName [newChannelName]'
92
+ option: '--newName [newName]'
93
93
  }, {
94
94
  option: '--description [description]'
95
95
  });
@@ -98,7 +98,7 @@ _TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initT
98
98
  if (!validation_1.validation.isValidGuid(args.options.teamId)) {
99
99
  return `${args.options.teamId} is not a valid GUID`;
100
100
  }
101
- if (args.options.channelName.toLowerCase() === "general") {
101
+ if (args.options.name.toLowerCase() === "general") {
102
102
  return 'General channel cannot be updated';
103
103
  }
104
104
  return true;
@@ -35,7 +35,7 @@ class TeamsMessageGetCommand extends GraphCommand_1.default {
35
35
  commandAction(logger, args) {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
37
  const requestOptions = {
38
- url: `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages/${args.options.messageId}`,
38
+ url: `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages/${args.options.id}`,
39
39
  headers: {
40
40
  accept: 'application/json;odata.metadata=none'
41
41
  },
@@ -53,11 +53,11 @@ class TeamsMessageGetCommand extends GraphCommand_1.default {
53
53
  }
54
54
  _TeamsMessageGetCommand_instances = new WeakSet(), _TeamsMessageGetCommand_initOptions = function _TeamsMessageGetCommand_initOptions() {
55
55
  this.options.unshift({
56
- option: '-i, --teamId <teamId>'
56
+ option: '-t, --teamId <teamId>'
57
57
  }, {
58
58
  option: '-c, --channelId <channelId>'
59
59
  }, {
60
- option: '-m, --messageId <messageId>'
60
+ option: '-i, --id <id>'
61
61
  });
62
62
  }, _TeamsMessageGetCommand_initValidators = function _TeamsMessageGetCommand_initValidators() {
63
63
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
@@ -72,11 +72,11 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
72
72
  });
73
73
  }
74
74
  getTabId(args) {
75
- if (args.options.tabId) {
76
- return Promise.resolve(args.options.tabId);
75
+ if (args.options.id) {
76
+ return Promise.resolve(args.options.id);
77
77
  }
78
78
  const tabRequestOptions = {
79
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels/${encodeURIComponent(this.channelId)}/tabs?$filter=displayName eq '${encodeURIComponent(args.options.tabName)}'`,
79
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels/${encodeURIComponent(this.channelId)}/tabs?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
80
80
  headers: {
81
81
  accept: 'application/json;odata.metadata=none'
82
82
  },
@@ -122,8 +122,8 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
122
122
  teamName: typeof args.options.teamName !== 'undefined',
123
123
  channelId: typeof args.options.channelId !== 'undefined',
124
124
  channelName: typeof args.options.channelName !== 'undefined',
125
- tabId: typeof args.options.tabId !== 'undefined',
126
- tabName: typeof args.options.tabName !== 'undefined'
125
+ id: typeof args.options.id !== 'undefined',
126
+ name: typeof args.options.name !== 'undefined'
127
127
  });
128
128
  });
129
129
  }, _TeamsTabGetCommand_initOptions = function _TeamsTabGetCommand_initOptions() {
@@ -136,9 +136,9 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
136
136
  }, {
137
137
  option: '--channelName [channelName]'
138
138
  }, {
139
- option: '-i, --tabId [tabId]'
139
+ option: '-i, --id [id]'
140
140
  }, {
141
- option: '-n, --tabName [tabName]'
141
+ option: '-n, --name [name]'
142
142
  });
143
143
  }, _TeamsTabGetCommand_initValidators = function _TeamsTabGetCommand_initValidators() {
144
144
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
@@ -146,15 +146,15 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
146
146
  return `${args.options.teamId} is not a valid GUID`;
147
147
  }
148
148
  if (args.options.channelId && !validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
149
- return `${args.options.channelId} is not a valid Teams ChannelId`;
149
+ return `${args.options.channelId} is not a valid Teams channel id`;
150
150
  }
151
- if (args.options.tabId && !validation_1.validation.isValidGuid(args.options.tabId)) {
151
+ if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
152
152
  return `${args.options.tabId} is not a valid GUID`;
153
153
  }
154
154
  return true;
155
155
  }));
156
156
  }, _TeamsTabGetCommand_initOptionSets = function _TeamsTabGetCommand_initOptionSets() {
157
- this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['tabId', 'tabName']);
157
+ this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['id', 'name']);
158
158
  };
159
159
  module.exports = new TeamsTabGetCommand();
160
160
  //# sourceMappingURL=tab-get.js.map
@@ -38,7 +38,7 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
39
  const removeTab = () => __awaiter(this, void 0, void 0, function* () {
40
40
  const requestOptions = {
41
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${args.options.channelId}/tabs/${encodeURIComponent(args.options.tabId)}`,
41
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${args.options.channelId}/tabs/${encodeURIComponent(args.options.id)}`,
42
42
  headers: {
43
43
  accept: "application/json;odata.metadata=none"
44
44
  },
@@ -59,7 +59,7 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
59
59
  type: 'confirm',
60
60
  name: 'continue',
61
61
  default: false,
62
- message: `Are you sure you want to remove the tab with id ${args.options.tabId} from channel ${args.options.channelId} in team ${args.options.teamId}?`
62
+ message: `Are you sure you want to remove the tab with id ${args.options.id} from channel ${args.options.channelId} in team ${args.options.teamId}?`
63
63
  });
64
64
  if (result.continue) {
65
65
  yield removeTab();
@@ -76,11 +76,11 @@ _TeamsTabRemoveCommand_instances = new WeakSet(), _TeamsTabRemoveCommand_initTel
76
76
  });
77
77
  }, _TeamsTabRemoveCommand_initOptions = function _TeamsTabRemoveCommand_initOptions() {
78
78
  this.options.unshift({
79
- option: "-i, --teamId <teamId>"
79
+ option: "-t, --teamId <teamId>"
80
80
  }, {
81
81
  option: "-c, --channelId <channelId>"
82
82
  }, {
83
- option: "-t, --tabId <tabId>"
83
+ option: "-i, --id <id>"
84
84
  }, {
85
85
  option: "--confirm"
86
86
  });
@@ -92,8 +92,8 @@ _TeamsTabRemoveCommand_instances = new WeakSet(), _TeamsTabRemoveCommand_initTel
92
92
  if (!validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
93
93
  return `${args.options.channelId} is not a valid Teams ChannelId`;
94
94
  }
95
- if (!validation_1.validation.isValidGuid(args.options.tabId)) {
96
- return `${args.options.tabId} is not a valid GUID`;
95
+ if (!validation_1.validation.isValidGuid(args.options.id)) {
96
+ return `${args.options.id} is not a valid GUID`;
97
97
  }
98
98
  return true;
99
99
  }));