@pnp/cli-microsoft365 5.8.0-beta.bc15f2b → 6.0.0-beta.076a3a5

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 (288) hide show
  1. package/dist/Auth.js +1 -2
  2. package/dist/m365/aad/commands/app/app-remove.js +0 -4
  3. package/dist/m365/aad/commands/app/app-role-remove.js +0 -4
  4. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -11
  5. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +10 -10
  6. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +10 -10
  7. package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
  8. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
  9. package/dist/m365/aad/commands/o365group/o365group-teamify.js +9 -9
  10. package/dist/m365/aad/commands/policy/policy-list.js +6 -6
  11. package/dist/m365/aad/commands/sp/sp-get.js +12 -12
  12. package/dist/m365/aad/commands.js +0 -2
  13. package/dist/m365/cli/commands/config/config-set.js +0 -1
  14. package/dist/m365/flow/commands/flow-disable.js +2 -2
  15. package/dist/m365/flow/commands/flow-enable.js +2 -2
  16. package/dist/m365/flow/commands/flow-export.js +5 -5
  17. package/dist/m365/flow/commands/flow-get.js +2 -2
  18. package/dist/m365/flow/commands/flow-list.js +2 -2
  19. package/dist/m365/flow/commands/flow-remove.js +3 -3
  20. package/dist/m365/flow/commands/run/run-cancel.js +6 -6
  21. package/dist/m365/flow/commands/run/run-get.js +4 -4
  22. package/dist/m365/flow/commands/run/run-list.js +4 -4
  23. package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
  24. package/dist/m365/outlook/commands/message/message-move.js +2 -2
  25. package/dist/m365/pa/commands/connector/connector-export.js +3 -3
  26. package/dist/m365/pa/commands/connector/connector-list.js +2 -2
  27. package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
  28. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -9
  29. package/dist/m365/planner/commands/bucket/bucket-get.js +4 -11
  30. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -9
  31. package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -11
  32. package/dist/m365/planner/commands/bucket/bucket-set.js +4 -11
  33. package/dist/m365/planner/commands/plan/plan-get.js +0 -4
  34. package/dist/m365/planner/commands/task/task-add.js +3 -8
  35. package/dist/m365/planner/commands/task/task-get.js +5 -19
  36. package/dist/m365/planner/commands/task/task-list.js +4 -11
  37. package/dist/m365/planner/commands/task/task-set.js +5 -10
  38. package/dist/m365/planner/commands.js +0 -2
  39. package/dist/m365/spfx/commands/package/package-generate.js +2 -2
  40. package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
  41. package/dist/m365/spo/commands/app/app-add.js +7 -7
  42. package/dist/m365/spo/commands/app/app-deploy.js +7 -7
  43. package/dist/m365/spo/commands/app/app-get.js +7 -7
  44. package/dist/m365/spo/commands/app/app-install.js +6 -6
  45. package/dist/m365/spo/commands/app/app-list.js +7 -7
  46. package/dist/m365/spo/commands/app/app-remove.js +7 -7
  47. package/dist/m365/spo/commands/app/app-retract.js +7 -7
  48. package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
  49. package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
  50. package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
  51. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
  52. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
  53. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
  54. package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
  55. package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
  56. package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
  57. package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
  58. package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
  59. package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
  60. package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
  61. package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
  62. package/dist/m365/spo/commands/feature/feature-list.js +3 -3
  63. package/dist/m365/spo/commands/field/field-get.js +1 -7
  64. package/dist/m365/spo/commands/field/field-remove.js +1 -7
  65. package/dist/m365/spo/commands/file/file-checkin.js +5 -5
  66. package/dist/m365/spo/commands/file/file-checkout.js +5 -5
  67. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +13 -13
  68. package/dist/m365/spo/commands/folder/folder-get.js +2 -2
  69. package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
  70. package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
  71. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -7
  72. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -6
  73. package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
  74. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
  75. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
  76. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
  77. package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -4
  78. package/dist/m365/spo/commands/list/list-contenttype-remove.js +6 -6
  79. package/dist/m365/spo/commands/list/list-list.js +3 -13
  80. package/dist/m365/spo/commands/list/list-view-field-add.js +20 -20
  81. package/dist/m365/spo/commands/list/list-view-field-remove.js +11 -11
  82. package/dist/m365/spo/commands/list/list-view-field-set.js +15 -15
  83. package/dist/m365/spo/commands/list/list-view-get.js +9 -9
  84. package/dist/m365/spo/commands/list/list-view-remove.js +11 -11
  85. package/dist/m365/spo/commands/list/list-view-set.js +11 -11
  86. package/dist/m365/spo/commands/listitem/listitem-list.js +6 -25
  87. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -4
  88. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -4
  89. package/dist/m365/spo/commands/page/page-column-get.js +2 -2
  90. package/dist/m365/spo/commands/page/page-column-list.js +2 -2
  91. package/dist/m365/spo/commands/page/page-control-get.js +4 -4
  92. package/dist/m365/spo/commands/page/page-control-list.js +3 -3
  93. package/dist/m365/spo/commands/page/page-control-set.js +3 -3
  94. package/dist/m365/spo/commands/page/page-section-add.js +2 -2
  95. package/dist/m365/spo/commands/page/page-section-get.js +2 -2
  96. package/dist/m365/spo/commands/page/page-section-list.js +2 -2
  97. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
  98. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
  99. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
  100. package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
  101. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
  102. package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
  103. package/dist/m365/spo/commands/site/site-apppermission-remove.js +5 -5
  104. package/dist/m365/spo/commands/site/site-apppermission-set.js +5 -5
  105. package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
  106. package/dist/m365/spo/commands/site/site-ensure.js +1 -1
  107. package/dist/m365/spo/commands/site/site-groupify.js +3 -3
  108. package/dist/m365/spo/commands/site/site-list.js +6 -17
  109. package/dist/m365/spo/commands/site/site-rename.js +9 -9
  110. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
  111. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
  112. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
  113. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
  114. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
  115. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
  116. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
  117. package/dist/m365/spo/commands/web/web-add.js +5 -5
  118. package/dist/m365/spo/commands/web/web-get.js +3 -3
  119. package/dist/m365/spo/commands/web/web-list.js +4 -4
  120. package/dist/m365/spo/commands/web/web-reindex.js +8 -8
  121. package/dist/m365/spo/commands/web/web-remove.js +5 -5
  122. package/dist/m365/spo/commands/web/web-set.js +4 -4
  123. package/dist/m365/spo/commands.js +0 -3
  124. package/dist/m365/teams/commands/app/app-install.js +4 -4
  125. package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
  126. package/dist/m365/teams/commands/channel/channel-get.js +10 -10
  127. package/dist/m365/teams/commands/channel/channel-remove.js +12 -12
  128. package/dist/m365/teams/commands/channel/channel-set.js +7 -7
  129. package/dist/m365/teams/commands/message/message-get.js +3 -3
  130. package/dist/m365/teams/commands/tab/tab-get.js +10 -10
  131. package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
  132. package/dist/m365/teams/commands/team/team-archive.js +3 -13
  133. package/dist/m365/teams/commands/team/team-clone.js +3 -20
  134. package/dist/m365/teams/commands/team/team-remove.js +5 -17
  135. package/dist/m365/teams/commands/team/team-set.js +1 -13
  136. package/dist/m365/teams/commands/team/team-unarchive.js +4 -16
  137. package/dist/m365/teams/commands/user/user-app-add.js +4 -4
  138. package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
  139. package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
  140. package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
  141. package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
  142. package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
  143. package/dist/m365/yammer/commands/user/user-get.js +5 -5
  144. package/dist/settingsNames.js +0 -1
  145. package/docs/docs/cmd/aad/app/app-remove.md +0 -6
  146. package/docs/docs/cmd/aad/app/app-role-remove.md +0 -6
  147. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
  148. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
  149. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
  150. package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
  151. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
  152. package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
  153. package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
  154. package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
  155. package/docs/docs/cmd/flow/flow-disable.md +3 -3
  156. package/docs/docs/cmd/flow/flow-enable.md +1 -1
  157. package/docs/docs/cmd/flow/flow-export.md +5 -5
  158. package/docs/docs/cmd/flow/flow-get.md +3 -3
  159. package/docs/docs/cmd/flow/flow-list.md +3 -3
  160. package/docs/docs/cmd/flow/flow-remove.md +5 -5
  161. package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
  162. package/docs/docs/cmd/flow/run/run-get.md +3 -3
  163. package/docs/docs/cmd/flow/run/run-list.md +3 -3
  164. package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
  165. package/docs/docs/cmd/outlook/message/message-move.md +4 -4
  166. package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
  167. package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
  168. package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
  169. package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
  170. package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
  171. package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
  172. package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
  173. package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
  174. package/docs/docs/cmd/planner/plan/plan-get.md +0 -6
  175. package/docs/docs/cmd/planner/task/task-add.md +0 -3
  176. package/docs/docs/cmd/planner/task/task-get.md +0 -3
  177. package/docs/docs/cmd/planner/task/task-list.md +0 -3
  178. package/docs/docs/cmd/planner/task/task-set.md +0 -3
  179. package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
  180. package/docs/docs/cmd/spo/app/app-add.md +2 -2
  181. package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
  182. package/docs/docs/cmd/spo/app/app-get.md +2 -2
  183. package/docs/docs/cmd/spo/app/app-install.md +2 -2
  184. package/docs/docs/cmd/spo/app/app-list.md +2 -2
  185. package/docs/docs/cmd/spo/app/app-remove.md +2 -2
  186. package/docs/docs/cmd/spo/app/app-retract.md +2 -2
  187. package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
  188. package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
  189. package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
  190. package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
  191. package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
  192. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
  193. package/docs/docs/cmd/spo/customaction/customaction-add.md +10 -10
  194. package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
  195. package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
  196. package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
  197. package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
  198. package/docs/docs/cmd/spo/customaction/customaction-set.md +7 -7
  199. package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
  200. package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
  201. package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
  202. package/docs/docs/cmd/spo/field/field-get.md +0 -3
  203. package/docs/docs/cmd/spo/field/field-remove.md +0 -3
  204. package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
  205. package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
  206. package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
  207. package/docs/docs/cmd/spo/folder/folder-get.md +2 -2
  208. package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
  209. package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
  210. package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +4 -4
  211. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +4 -4
  212. package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
  213. package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
  214. package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
  215. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
  216. package/docs/docs/cmd/spo/list/list-contenttype-add.md +3 -3
  217. package/docs/docs/cmd/spo/list/list-contenttype-remove.md +3 -3
  218. package/docs/docs/cmd/spo/list/list-list.md +0 -3
  219. package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
  220. package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
  221. package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
  222. package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
  223. package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
  224. package/docs/docs/cmd/spo/list/list-view-set.md +7 -7
  225. package/docs/docs/cmd/spo/listitem/listitem-list.md +0 -6
  226. package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +5 -5
  227. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +3 -3
  228. package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
  229. package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
  230. package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
  231. package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
  232. package/docs/docs/cmd/spo/page/page-control-set.md +4 -4
  233. package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
  234. package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
  235. package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
  236. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
  237. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
  238. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
  239. package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
  240. package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
  241. package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
  242. package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
  243. package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
  244. package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
  245. package/docs/docs/cmd/spo/site/site-groupify.md +5 -5
  246. package/docs/docs/cmd/spo/site/site-list.md +6 -6
  247. package/docs/docs/cmd/spo/site/site-rename.md +6 -6
  248. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
  249. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
  250. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
  251. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
  252. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
  253. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
  254. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
  255. package/docs/docs/cmd/spo/web/web-add.md +4 -4
  256. package/docs/docs/cmd/spo/web/web-get.md +3 -3
  257. package/docs/docs/cmd/spo/web/web-list.md +2 -2
  258. package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
  259. package/docs/docs/cmd/spo/web/web-remove.md +2 -2
  260. package/docs/docs/cmd/spo/web/web-set.md +9 -9
  261. package/docs/docs/cmd/teams/app/app-install.md +5 -5
  262. package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
  263. package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
  264. package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
  265. package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
  266. package/docs/docs/cmd/teams/message/message-get.md +3 -3
  267. package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
  268. package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
  269. package/docs/docs/cmd/teams/team/team-archive.md +0 -3
  270. package/docs/docs/cmd/teams/team/team-clone.md +0 -3
  271. package/docs/docs/cmd/teams/team/team-remove.md +0 -3
  272. package/docs/docs/cmd/teams/team/team-set.md +0 -3
  273. package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
  274. package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
  275. package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
  276. package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
  277. package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
  278. package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
  279. package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
  280. package/docs/docs/cmd/yammer/user/user-get.md +2 -2
  281. package/npm-shrinkwrap.json +2 -2
  282. package/package.json +1 -1
  283. package/dist/m365/spo/commands/site/site-classic-add.js +0 -342
  284. package/dist/m365/spo/commands/site/site-classic-list.js +0 -106
  285. package/dist/m365/spo/commands/site/site-classic-set.js +0 -367
  286. package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
  287. package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
  288. package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
@@ -35,14 +35,6 @@ class TeamsTeamCloneCommand extends GraphCommand_1.default {
35
35
  return 'Creates a clone of a Microsoft Teams team';
36
36
  }
37
37
  commandAction(logger, args, cb) {
38
- if (args.options.teamId) {
39
- args.options.id = args.options.teamId;
40
- this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
41
- }
42
- if (args.options.displayName) {
43
- args.options.name = args.options.displayName;
44
- this.warn(logger, `Option 'displayName' is deprecated. Please use 'name' instead.`);
45
- }
46
38
  const data = {
47
39
  displayName: args.options.name,
48
40
  mailNickname: this.generateMailNickname(args.options.name),
@@ -92,20 +84,14 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
92
84
  classification: typeof args.options.classification !== 'undefined',
93
85
  visibility: typeof args.options.visibility !== 'undefined',
94
86
  id: typeof args.options.id !== 'undefined',
95
- teamId: typeof args.options.teamId !== 'undefined',
96
- name: typeof args.options.name !== 'undefined',
97
- displayName: typeof args.options.displayName !== 'undefined'
87
+ name: typeof args.options.name !== 'undefined'
98
88
  });
99
89
  });
100
90
  }, _TeamsTeamCloneCommand_initOptions = function _TeamsTeamCloneCommand_initOptions() {
101
91
  this.options.unshift({
102
- option: '-i, --id [teamId]'
103
- }, {
104
- option: '--teamId [teamId]'
92
+ option: '-i, --id [id]'
105
93
  }, {
106
94
  option: '-n, --name [name]'
107
- }, {
108
- option: '--displayName [displayName]'
109
95
  }, {
110
96
  option: '-p, --partsToClone <partsToClone>',
111
97
  autocomplete: ['apps', 'channels', 'members', 'settings', 'tabs']
@@ -119,9 +105,6 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
119
105
  });
120
106
  }, _TeamsTeamCloneCommand_initValidators = function _TeamsTeamCloneCommand_initValidators() {
121
107
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
122
- if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
123
- return `${args.options.teamId} is not a valid GUID`;
124
- }
125
108
  if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
126
109
  return `${args.options.id} is not a valid GUID`;
127
110
  }
@@ -146,7 +129,7 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
146
129
  return true;
147
130
  }));
148
131
  }, _TeamsTeamCloneCommand_initOptionSets = function _TeamsTeamCloneCommand_initOptionSets() {
149
- this.optionSets.push(['id', 'teamId'], ['name', 'displayName']);
132
+ this.optionSets.push(['id', 'name']);
150
133
  };
151
134
  module.exports = new TeamsTeamCloneCommand();
152
135
  //# sourceMappingURL=team-clone.js.map
@@ -13,7 +13,7 @@ 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 _TeamsTeamRemoveCommand_instances, _TeamsTeamRemoveCommand_initTelemetry, _TeamsTeamRemoveCommand_initOptions, _TeamsTeamRemoveCommand_initValidators;
16
+ var _TeamsTeamRemoveCommand_instances, _TeamsTeamRemoveCommand_initTelemetry, _TeamsTeamRemoveCommand_initOptions, _TeamsTeamRemoveCommand_initOptionSets, _TeamsTeamRemoveCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const cli_1 = require("../../../../cli");
19
19
  const request_1 = require("../../../../request");
@@ -28,6 +28,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
28
28
  __classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initTelemetry).call(this);
29
29
  __classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initOptions).call(this);
30
30
  __classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initValidators).call(this);
31
+ __classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initOptionSets).call(this);
31
32
  }
32
33
  get name() {
33
34
  return commands_1.default.TEAM_REMOVE;
@@ -49,10 +50,6 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
49
50
  });
50
51
  }
51
52
  commandAction(logger, args, cb) {
52
- if (args.options.teamId) {
53
- args.options.id = args.options.teamId;
54
- this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
55
- }
56
53
  const removeTeam = () => {
57
54
  this
58
55
  .getTeamId(args)
@@ -76,7 +73,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
76
73
  type: 'confirm',
77
74
  name: 'continue',
78
75
  default: false,
79
- message: `Are you sure you want to remove the team ${args.options.teamId}?`
76
+ message: `Are you sure you want to remove the team ${args.options.id ? args.options.id : args.options.name}?`
80
77
  }, (result) => {
81
78
  if (!result.continue) {
82
79
  cb();
@@ -99,22 +96,13 @@ _TeamsTeamRemoveCommand_instances = new WeakSet(), _TeamsTeamRemoveCommand_initT
99
96
  option: '-i, --id [id]'
100
97
  }, {
101
98
  option: '-n, --name [name]'
102
- }, {
103
- option: '--teamId [teamId]'
104
99
  }, {
105
100
  option: '--confirm'
106
101
  });
102
+ }, _TeamsTeamRemoveCommand_initOptionSets = function _TeamsTeamRemoveCommand_initOptionSets() {
103
+ this.optionSets.push(['id', 'name']);
107
104
  }, _TeamsTeamRemoveCommand_initValidators = function _TeamsTeamRemoveCommand_initValidators() {
108
105
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
109
- if (!args.options.id && !args.options.name && !args.options.teamId) {
110
- return 'Specify either id or name';
111
- }
112
- if (args.options.name && (args.options.id || args.options.teamId)) {
113
- return 'Specify either id or name but not both';
114
- }
115
- if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
116
- return `${args.options.teamId} is not a valid GUID`;
117
- }
118
106
  if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
119
107
  return `${args.options.id} is not a valid GUID`;
120
108
  }
@@ -13,7 +13,7 @@ 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 _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators, _TeamsTeamSetCommand_initOptionSets;
16
+ var _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -26,7 +26,6 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
26
26
  __classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initValidators).call(this);
29
- __classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initOptionSets).call(this);
30
29
  }
31
30
  get name() {
32
31
  return commands_1.default.TEAM_SET;
@@ -54,10 +53,6 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
54
53
  return requestBody;
55
54
  }
56
55
  commandAction(logger, args, cb) {
57
- if (args.options.teamId) {
58
- args.options.id = args.options.teamId;
59
- this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
60
- }
61
56
  if (args.options.displayName) {
62
57
  args.options.name = args.options.displayName;
63
58
  this.warn(logger, `Option 'displayName' is deprecated. Please use 'name' instead.`);
@@ -85,8 +80,6 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
85
80
  }, _TeamsTeamSetCommand_initOptions = function _TeamsTeamSetCommand_initOptions() {
86
81
  this.options.unshift({
87
82
  option: '-i, --id [id]'
88
- }, {
89
- option: '--teamId [teamId]'
90
83
  }, {
91
84
  option: '-n, --name [name]'
92
85
  }, {
@@ -103,9 +96,6 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
103
96
  });
104
97
  }, _TeamsTeamSetCommand_initValidators = function _TeamsTeamSetCommand_initValidators() {
105
98
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
106
- if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
107
- return `${args.options.teamId} is not a valid GUID`;
108
- }
109
99
  if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
110
100
  return `${args.options.id} is not a valid GUID`;
111
101
  }
@@ -116,8 +106,6 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
116
106
  }
117
107
  return true;
118
108
  }));
119
- }, _TeamsTeamSetCommand_initOptionSets = function _TeamsTeamSetCommand_initOptionSets() {
120
- this.optionSets.push(['id', 'teamId']);
121
109
  };
122
110
  TeamsTeamSetCommand.props = [
123
111
  'displayName',
@@ -13,7 +13,7 @@ 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 _TeamsTeamUnarchiveCommand_instances, _TeamsTeamUnarchiveCommand_initOptions, _TeamsTeamUnarchiveCommand_initValidators;
16
+ var _TeamsTeamUnarchiveCommand_instances, _TeamsTeamUnarchiveCommand_initOptions, _TeamsTeamUnarchiveCommand_initOptionSets, _TeamsTeamUnarchiveCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const request_1 = require("../../../../request");
19
19
  const utils_1 = require("../../../../utils");
@@ -26,6 +26,7 @@ class TeamsTeamUnarchiveCommand extends GraphCommand_1.default {
26
26
  _TeamsTeamUnarchiveCommand_instances.add(this);
27
27
  __classPrivateFieldGet(this, _TeamsTeamUnarchiveCommand_instances, "m", _TeamsTeamUnarchiveCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _TeamsTeamUnarchiveCommand_instances, "m", _TeamsTeamUnarchiveCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _TeamsTeamUnarchiveCommand_instances, "m", _TeamsTeamUnarchiveCommand_initOptionSets).call(this);
29
30
  }
30
31
  get name() {
31
32
  return commands_1.default.TEAM_UNARCHIVE;
@@ -47,10 +48,6 @@ class TeamsTeamUnarchiveCommand extends GraphCommand_1.default {
47
48
  });
48
49
  }
49
50
  commandAction(logger, args, cb) {
50
- if (args.options.teamId) {
51
- args.options.id = args.options.teamId;
52
- this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
53
- }
54
51
  const endpoint = `${this.resource}/v1.0`;
55
52
  this
56
53
  .getTeamId(args)
@@ -73,20 +70,11 @@ _TeamsTeamUnarchiveCommand_instances = new WeakSet(), _TeamsTeamUnarchiveCommand
73
70
  option: '-i, --id [id]'
74
71
  }, {
75
72
  option: '-n, --name [name]'
76
- }, {
77
- option: '--teamId [teamId]'
78
73
  });
74
+ }, _TeamsTeamUnarchiveCommand_initOptionSets = function _TeamsTeamUnarchiveCommand_initOptionSets() {
75
+ this.optionSets.push(['id', 'name']);
79
76
  }, _TeamsTeamUnarchiveCommand_initValidators = function _TeamsTeamUnarchiveCommand_initValidators() {
80
77
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
81
- if (!args.options.id && !args.options.name && !args.options.teamId) {
82
- return 'Specify either id or name';
83
- }
84
- if (args.options.name && (args.options.id || args.options.teamId)) {
85
- return 'Specify either id or name but not both';
86
- }
87
- if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
88
- return `${args.options.teamId} is not a valid GUID`;
89
- }
90
78
  if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
91
79
  return `${args.options.id} is not a valid GUID`;
92
80
  }
@@ -42,7 +42,7 @@ class TeamsUserAppAddCommand extends GraphCommand_1.default {
42
42
  },
43
43
  responseType: 'json',
44
44
  data: {
45
- 'teamsApp@odata.bind': `${endpoint}/appCatalogs/teamsApps/${args.options.appId}`
45
+ 'teamsApp@odata.bind': `${endpoint}/appCatalogs/teamsApps/${args.options.id}`
46
46
  }
47
47
  };
48
48
  request_1.default
@@ -52,14 +52,14 @@ class TeamsUserAppAddCommand extends GraphCommand_1.default {
52
52
  }
53
53
  _TeamsUserAppAddCommand_instances = new WeakSet(), _TeamsUserAppAddCommand_initOptions = function _TeamsUserAppAddCommand_initOptions() {
54
54
  this.options.unshift({
55
- option: '--appId <appId>'
55
+ option: '--id <id>'
56
56
  }, {
57
57
  option: '--userId <userId>'
58
58
  });
59
59
  }, _TeamsUserAppAddCommand_initValidators = function _TeamsUserAppAddCommand_initValidators() {
60
60
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
61
- if (!utils_1.validation.isValidGuid(args.options.appId)) {
62
- return `${args.options.appId} is not a valid GUID`;
61
+ if (!utils_1.validation.isValidGuid(args.options.id)) {
62
+ return `${args.options.id} is not a valid GUID`;
63
63
  }
64
64
  if (!utils_1.validation.isValidGuid(args.options.userId)) {
65
65
  return `${args.options.userId} is not a valid GUID`;
@@ -38,7 +38,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
38
38
  const removeApp = () => {
39
39
  const endpoint = `${this.resource}/v1.0`;
40
40
  const requestOptions = {
41
- url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.appId}`,
41
+ url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.id}`,
42
42
  headers: {
43
43
  'accept': 'application/json;odata.metadata=none'
44
44
  },
@@ -56,7 +56,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
56
56
  type: 'confirm',
57
57
  name: 'continue',
58
58
  default: false,
59
- message: `Are you sure you want to remove the app with id ${args.options.appId} for user ${args.options.userId}?`
59
+ message: `Are you sure you want to remove the app with id ${args.options.id} for user ${args.options.userId}?`
60
60
  }, (result) => {
61
61
  if (!result.continue) {
62
62
  cb();
@@ -76,7 +76,7 @@ _TeamsUserAppRemoveCommand_instances = new WeakSet(), _TeamsUserAppRemoveCommand
76
76
  });
77
77
  }, _TeamsUserAppRemoveCommand_initOptions = function _TeamsUserAppRemoveCommand_initOptions() {
78
78
  this.options.unshift({
79
- option: '--appId <appId>'
79
+ option: '--id <id>'
80
80
  }, {
81
81
  option: '--userId <userId>'
82
82
  }, {
@@ -74,7 +74,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
74
74
  "manifestVersion": "1.9",
75
75
  "version": "1.0",
76
76
  "id": appId,
77
- "packageName": `com.microsoft.teams.${args.options.appName}`,
77
+ "packageName": `com.microsoft.teams.${args.options.name}`,
78
78
  "developer": {
79
79
  "name": args.options.companyName,
80
80
  "websiteUrl": args.options.companyWebsiteUrl,
@@ -86,8 +86,8 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
86
86
  "outline": outlineIconFileName
87
87
  },
88
88
  "name": {
89
- "short": args.options.appName,
90
- "full": args.options.appName
89
+ "short": args.options.name,
90
+ "full": args.options.name
91
91
  },
92
92
  "description": {
93
93
  "short": `${args.options.description}`,
@@ -98,7 +98,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
98
98
  "staticTabs": [
99
99
  {
100
100
  "entityId": `sharepointportal_${appId}`,
101
- "name": `Portals-${args.options.appName}`,
101
+ "name": `Portals-${args.options.name}`,
102
102
  "contentUrl": `https://${domain}/_layouts/15/teamslogon.aspx?spfx=true&dest=${appPortalUrl}`,
103
103
  "websiteUrl": portalUrl,
104
104
  "searchUrl": `https://${searchUrlPath}/_layouts/15/search.aspx?q={searchQuery}`,
@@ -135,7 +135,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
135
135
  this.archive.addFile('manifest.json', Buffer.alloc(manifestString.length, manifestString, 'utf8'));
136
136
  this.archive.addLocalFile(coloredIconPath, undefined, coloredIconFileName);
137
137
  this.archive.addLocalFile(outlineIconPath, undefined, outlineIconFileName);
138
- this.archive.writeZip(`${args.options.appName}.zip`);
138
+ this.archive.writeZip(`${args.options.name}.zip`);
139
139
  cb();
140
140
  }
141
141
  catch (ex) {
@@ -153,7 +153,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
153
153
  logger.logToStderr(`Checking if site ${args.options.url} exists...`);
154
154
  }
155
155
  const options = {
156
- webUrl: args.options.portalUrl,
156
+ url: args.options.portalUrl,
157
157
  output: 'json',
158
158
  debug: this.debug,
159
159
  verbose: this.verbose
@@ -162,10 +162,10 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
162
162
  }
163
163
  }
164
164
  _VivaConnectionsAppCreateCommand_instances = new WeakSet(), _VivaConnectionsAppCreateCommand_initOptions = function _VivaConnectionsAppCreateCommand_initOptions() {
165
- this.options.unshift({ option: '--portalUrl <portalUrl>' }, { option: '--appName <appName>' }, { option: '--description <description>' }, { option: '--longDescription <longDescription>' }, { option: '--privacyPolicyUrl [privacyPolicyUrl]' }, { option: '--termsOfUseUrl [termsOfUseUrl]' }, { option: '--companyName <companyName>' }, { option: '--companyWebsiteUrl <companyWebsiteUrl>' }, { option: '--coloredIconPath <coloredIconPath>' }, { option: '--outlineIconPath <outlineIconPath>' }, { option: '--accentColor [accentColor]' }, { option: '--force' });
165
+ this.options.unshift({ option: '--portalUrl <portalUrl>' }, { option: '--name <name>' }, { option: '--description <description>' }, { option: '--longDescription <longDescription>' }, { option: '--privacyPolicyUrl [privacyPolicyUrl]' }, { option: '--termsOfUseUrl [termsOfUseUrl]' }, { option: '--companyName <companyName>' }, { option: '--companyWebsiteUrl <companyWebsiteUrl>' }, { option: '--coloredIconPath <coloredIconPath>' }, { option: '--outlineIconPath <outlineIconPath>' }, { option: '--accentColor [accentColor]' }, { option: '--force' });
166
166
  }, _VivaConnectionsAppCreateCommand_initValidators = function _VivaConnectionsAppCreateCommand_initValidators() {
167
167
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
168
- if (args.options.appName.length > 30) {
168
+ if (args.options.name.length > 30) {
169
169
  return `App name must not exceed 30 characters`;
170
170
  }
171
171
  if (args.options.description &&
@@ -176,7 +176,7 @@ _VivaConnectionsAppCreateCommand_instances = new WeakSet(), _VivaConnectionsAppC
176
176
  args.options.longDescription.length > 4000) {
177
177
  return 'Long description must not exceed 4000 characters';
178
178
  }
179
- const appFilePath = path.resolve(`${args.options.appName}.zip`);
179
+ const appFilePath = path.resolve(`${args.options.name}.zip`);
180
180
  if (fs.existsSync(appFilePath) && !args.options.force) {
181
181
  return `File ${appFilePath} already exists. Delete the file or use the --force option to overwrite the existing file`;
182
182
  }
@@ -41,8 +41,8 @@ class YammerGroupUserAddCommand extends YammerCommand_1.default {
41
41
  },
42
42
  responseType: 'json',
43
43
  data: {
44
- group_id: args.options.id,
45
- user_id: args.options.userId,
44
+ group_id: args.options.groupId,
45
+ user_id: args.options.id,
46
46
  email: args.options.email
47
47
  }
48
48
  };
@@ -54,26 +54,26 @@ class YammerGroupUserAddCommand extends YammerCommand_1.default {
54
54
  _YammerGroupUserAddCommand_instances = new WeakSet(), _YammerGroupUserAddCommand_initTelemetry = function _YammerGroupUserAddCommand_initTelemetry() {
55
55
  this.telemetry.push((args) => {
56
56
  Object.assign(this.telemetryProperties, {
57
- userId: typeof args.options.userId !== 'undefined',
57
+ id: typeof args.options.id !== 'undefined',
58
58
  email: typeof args.options.email !== 'undefined'
59
59
  });
60
60
  });
61
61
  }, _YammerGroupUserAddCommand_initOptions = function _YammerGroupUserAddCommand_initOptions() {
62
62
  this.options.unshift({
63
- option: '--id <id>'
63
+ option: '--groupId <groupId>'
64
64
  }, {
65
- option: '--userId [userId]'
65
+ option: '--id [id]'
66
66
  }, {
67
67
  option: '--email [email]'
68
68
  });
69
69
  }, _YammerGroupUserAddCommand_initValidators = function _YammerGroupUserAddCommand_initValidators() {
70
70
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
71
+ if (typeof args.options.groupId !== 'number') {
72
+ return `${args.options.groupId} is not a number`;
73
+ }
71
74
  if (args.options.id && typeof args.options.id !== 'number') {
72
75
  return `${args.options.id} is not a number`;
73
76
  }
74
- if (args.options.userId && typeof args.options.userId !== 'number') {
75
- return `${args.options.userId} is not a number`;
76
- }
77
77
  return true;
78
78
  }));
79
79
  };
@@ -44,8 +44,8 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
44
44
  },
45
45
  responseType: 'json',
46
46
  data: {
47
- group_id: args.options.id,
48
- user_id: args.options.userId
47
+ group_id: args.options.groupId,
48
+ user_id: args.options.id
49
49
  }
50
50
  };
51
51
  request_1.default
@@ -56,9 +56,9 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
56
56
  executeRemoveAction();
57
57
  }
58
58
  else {
59
- let messagePrompt = `Are you sure you want to leave group ${args.options.id}?`;
60
- if (args.options.userId) {
61
- messagePrompt = `Are you sure you want to remove the user ${args.options.userId} from the group ${args.options.id}?`;
59
+ let messagePrompt = `Are you sure you want to leave group ${args.options.groupId}?`;
60
+ if (args.options.id) {
61
+ messagePrompt = `Are you sure you want to remove the user ${args.options.id} from the group ${args.options.groupId}?`;
62
62
  }
63
63
  cli_1.Cli.prompt({
64
64
  type: 'confirm',
@@ -79,26 +79,26 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
79
79
  _YammerGroupUserRemoveCommand_instances = new WeakSet(), _YammerGroupUserRemoveCommand_initTelemetry = function _YammerGroupUserRemoveCommand_initTelemetry() {
80
80
  this.telemetry.push((args) => {
81
81
  Object.assign(this.telemetryProperties, {
82
- userId: args.options.userId !== undefined,
82
+ userId: args.options.id !== undefined,
83
83
  confirm: (!(!args.options.confirm)).toString()
84
84
  });
85
85
  });
86
86
  }, _YammerGroupUserRemoveCommand_initOptions = function _YammerGroupUserRemoveCommand_initOptions() {
87
87
  this.options.unshift({
88
- option: '--id <id>'
88
+ option: '--groupId <groupId>'
89
89
  }, {
90
- option: '--userId [userId]'
90
+ option: '--id [id]'
91
91
  }, {
92
92
  option: '--confirm'
93
93
  });
94
94
  }, _YammerGroupUserRemoveCommand_initValidators = function _YammerGroupUserRemoveCommand_initValidators() {
95
95
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
96
+ if (args.options.groupId && typeof args.options.groupId !== 'number') {
97
+ return `${args.options.groupId} is not a number`;
98
+ }
96
99
  if (args.options.id && typeof args.options.id !== 'number') {
97
100
  return `${args.options.id} is not a number`;
98
101
  }
99
- if (args.options.userId && typeof args.options.userId !== 'number') {
100
- return `${args.options.userId} is not a number`;
101
- }
102
102
  return true;
103
103
  }));
104
104
  };
@@ -44,7 +44,7 @@ class YammerMessageLikeSetCommand extends YammerCommand_1.default {
44
44
  },
45
45
  responseType: 'json',
46
46
  data: {
47
- message_id: args.options.id
47
+ message_id: args.options.messageId
48
48
  }
49
49
  };
50
50
  if (args.options.enable !== 'false') {
@@ -63,7 +63,7 @@ class YammerMessageLikeSetCommand extends YammerCommand_1.default {
63
63
  executeLikeAction();
64
64
  }
65
65
  else {
66
- const messagePrompt = `Are you sure you want to unlike message ${args.options.id}?`;
66
+ const messagePrompt = `Are you sure you want to unlike message ${args.options.messageId}?`;
67
67
  cli_1.Cli.prompt({
68
68
  type: 'confirm',
69
69
  name: 'continue',
@@ -93,7 +93,7 @@ _YammerMessageLikeSetCommand_instances = new WeakSet(), _YammerMessageLikeSetCom
93
93
  });
94
94
  }, _YammerMessageLikeSetCommand_initOptions = function _YammerMessageLikeSetCommand_initOptions() {
95
95
  this.options.unshift({
96
- option: '--id <id>'
96
+ option: '--messageId <messageId>'
97
97
  }, {
98
98
  option: '--enable [enable]'
99
99
  }, {
@@ -101,8 +101,8 @@ _YammerMessageLikeSetCommand_instances = new WeakSet(), _YammerMessageLikeSetCom
101
101
  });
102
102
  }, _YammerMessageLikeSetCommand_initValidators = function _YammerMessageLikeSetCommand_initValidators() {
103
103
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
104
- if (args.options.id && typeof args.options.id !== 'number') {
105
- return `${args.options.id} is not a number`;
104
+ if (args.options.messageId && typeof args.options.messageId !== 'number') {
105
+ return `${args.options.messageId} is not a number`;
106
106
  }
107
107
  if (args.options.enable &&
108
108
  args.options.enable !== 'true' &&
@@ -37,8 +37,8 @@ class YammerUserGetCommand extends YammerCommand_1.default {
37
37
  }
38
38
  commandAction(logger, args, cb) {
39
39
  let endPoint = `${this.resource}/v1/users/current.json`;
40
- if (args.options.userId) {
41
- endPoint = `${this.resource}/v1/users/${encodeURIComponent(args.options.userId)}.json`;
40
+ if (args.options.id) {
41
+ endPoint = `${this.resource}/v1/users/${encodeURIComponent(args.options.id)}.json`;
42
42
  }
43
43
  else if (args.options.email) {
44
44
  endPoint = `${this.resource}/v1/users/by_email.json?email=${encodeURIComponent(args.options.email)}`;
@@ -62,19 +62,19 @@ class YammerUserGetCommand extends YammerCommand_1.default {
62
62
  _YammerUserGetCommand_instances = new WeakSet(), _YammerUserGetCommand_initTelemetry = function _YammerUserGetCommand_initTelemetry() {
63
63
  this.telemetry.push((args) => {
64
64
  Object.assign(this.telemetryProperties, {
65
- userId: args.options.userId !== undefined,
65
+ userId: args.options.id !== undefined,
66
66
  email: args.options.email !== undefined
67
67
  });
68
68
  });
69
69
  }, _YammerUserGetCommand_initOptions = function _YammerUserGetCommand_initOptions() {
70
70
  this.options.unshift({
71
- option: '-i, --userId [userId]'
71
+ option: '-i, --id [id]'
72
72
  }, {
73
73
  option: '--email [email]'
74
74
  });
75
75
  }, _YammerUserGetCommand_initValidators = function _YammerUserGetCommand_initValidators() {
76
76
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
77
- if (args.options.userId !== undefined && args.options.email !== undefined) {
77
+ if (args.options.id !== undefined && args.options.email !== undefined) {
78
78
  return `You are only allowed to search by ID or e-mail but not both`;
79
79
  }
80
80
  return true;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.settingsNames = void 0;
4
4
  const settingsNames = {
5
- autoOpenBrowserOnLogin: 'autoOpenBrowserOnLogin',
6
5
  autoOpenLinksInBrowser: 'autoOpenLinksInBrowser',
7
6
  copyDeviceCodeToClipboard: 'copyDeviceCodeToClipboard',
8
7
  csvEscape: 'csvEscape',
@@ -8,12 +8,6 @@ Removes an Azure AD app registration
8
8
  m365 aad app remove [options]
9
9
  ```
10
10
 
11
- ## Alias
12
-
13
- ```sh
14
- m365 aad app delete [options]
15
- ```
16
-
17
11
  ## Options
18
12
 
19
13
  `--appId [appId]`
@@ -8,12 +8,6 @@ Removes role from the specified Azure AD app registration
8
8
  m365 aad app role remove [options]
9
9
  ```
10
10
 
11
- ## Alias
12
-
13
- ```sh
14
- m365 aad app role delete [options]
15
- ```
16
-
17
11
  ## Options
18
12
 
19
13
  `--appId [appId]`
@@ -13,10 +13,10 @@ m365 aad approleassignment add [options]
13
13
  `--appId [appId]`
14
14
  : Application appId also known as clientId of the App Registration to which the configured scopes (app roles) should be applied
15
15
 
16
- `--objectId [objectId]`
16
+ `--appObjectId [appObjectId]`
17
17
  : Application objectId of the App Registration to which the configured scopes (app roles) should be applied
18
18
 
19
- `--displayName [displayName]`
19
+ `--appDisplayName [appDisplayName]`
20
20
  : Application name of the App Registration to which the configured scopes (app roles) should be applied
21
21
 
22
22
  `-r, --resource <resource>`
@@ -31,7 +31,7 @@ m365 aad approleassignment add [options]
31
31
 
32
32
  This command requires tenant administrator permissions.
33
33
 
34
- Specify either the `appId`, `objectId` or `displayName` but not both. If you specify more than one option value, the command will fail with an error.
34
+ Specify either the `appId`, `appObjectId` or `appDisplayName` but not multiple. If you specify more than one option value, the command will fail with an error.
35
35
 
36
36
  Autocomplete values for the `resource` option do not mean allowed values. The autocomplete will just suggest some known names, but that doesn't restrict you to use name of your own custom application or other application within your tenant.
37
37
 
@@ -48,13 +48,13 @@ m365 aad approleassignment add --appId "57907bf8-73fa-43a6-89a5-1f603e29e451" --
48
48
  Adds multiple Microsoft Graph application permissions to an Azure AD application with name _MyAppName_
49
49
 
50
50
  ```sh
51
- m365 aad approleassignment add --displayName "MyAppName" --resource "Microsoft Graph" --scope "Mail.Read,Mail.Send"
51
+ m365 aad approleassignment add --appDisplayName "MyAppName" --resource "Microsoft Graph" --scope "Mail.Read,Mail.Send"
52
52
  ```
53
53
 
54
54
  Adds Microsoft Graph _Mail.Read_ application permissions to a system managed identity app with objectId _57907bf8-73fa-43a6-89a5-1f603e29e451_
55
55
 
56
56
  ```sh
57
- m365 aad approleassignment add --objectId "57907bf8-73fa-43a6-89a5-1f603e29e451" --resource "Microsoft Graph" --scope "Mail.Read"
57
+ m365 aad approleassignment add --appObjectId "57907bf8-73fa-43a6-89a5-1f603e29e451" --resource "Microsoft Graph" --scope "Mail.Read"
58
58
  ```
59
59
 
60
60
  ## More information
@@ -13,17 +13,17 @@ m365 aad approleassignment list [options]
13
13
  `-i, --appId [appId]`
14
14
  : Application (client) Id of the App Registration for which the configured app roles should be retrieved
15
15
 
16
- `-n, --displayName [displayName]`
16
+ `-n, --appDisplayName [appDisplayName]`
17
17
  : Display name of the application for which the configured app roles should be retrieved
18
18
 
19
- `--objectId [objectId]`
19
+ `--appObjectId [appObjectId]`
20
20
  : ObjectId of the application for which the configured app roles should be retrieved
21
21
 
22
22
  --8<-- "docs/cmd/_global.md"
23
23
 
24
24
  ## Remarks
25
25
 
26
- Specify either the `appId`, `objectId` or `displayName`. If you specify more than one option value, the command will fail with an error.
26
+ Specify either the `appId`, `appObjectId` or `appDisplayName`. If you specify more than one option value, the command will fail with an error.
27
27
 
28
28
  ## Examples
29
29
 
@@ -36,13 +36,13 @@ m365 aad approleassignment list --appId b2307a39-e878-458b-bc90-03bc578531d6
36
36
  List app roles assigned to service principal with Application display name _MyAppName_.
37
37
 
38
38
  ```sh
39
- m365 aad approleassignment list --displayName 'MyAppName'
39
+ m365 aad approleassignment list --appDisplayName 'MyAppName'
40
40
  ```
41
41
 
42
42
  List app roles assigned to service principal with ObjectId _b2307a39-e878-458b-bc90-03bc578531dd_.
43
43
 
44
44
  ```sh
45
- m365 aad approleassignment list --objectId b2307a39-e878-458b-bc90-03bc578531dd
45
+ m365 aad approleassignment list --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
46
46
  ```
47
47
 
48
48
  ## More information