@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
@@ -34,7 +34,7 @@ class SpoWebGetCommand extends SpoCommand_1.default {
34
34
  return 'Retrieve information about the specified site';
35
35
  }
36
36
  commandAction(logger, args, cb) {
37
- let url = `${args.options.webUrl}/_api/web`;
37
+ let url = `${args.options.url}/_api/web`;
38
38
  if (args.options.withGroups) {
39
39
  url += '?$expand=AssociatedMemberGroup,AssociatedOwnerGroup,AssociatedVisitorGroup';
40
40
  }
@@ -61,12 +61,12 @@ _SpoWebGetCommand_instances = new WeakSet(), _SpoWebGetCommand_initTelemetry = f
61
61
  });
62
62
  }, _SpoWebGetCommand_initOptions = function _SpoWebGetCommand_initOptions() {
63
63
  this.options.unshift({
64
- option: '-u, --webUrl <webUrl>'
64
+ option: '-u, --url <url>'
65
65
  }, {
66
66
  option: '--withGroups'
67
67
  });
68
68
  }, _SpoWebGetCommand_initValidators = function _SpoWebGetCommand_initValidators() {
69
- this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.webUrl); }));
69
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.url); }));
70
70
  };
71
71
  module.exports = new SpoWebGetCommand();
72
72
  //# sourceMappingURL=web-get.js.map
@@ -37,9 +37,9 @@ class SpoWebListCommand extends SpoCommand_1.default {
37
37
  }
38
38
  commandAction(logger, args, cb) {
39
39
  if (this.verbose) {
40
- logger.logToStderr(`Retrieving all webs in site at ${args.options.webUrl}...`);
40
+ logger.logToStderr(`Retrieving all webs in site at ${args.options.url}...`);
41
41
  }
42
- let requestUrl = `${args.options.webUrl}/_api/web/webs`;
42
+ let requestUrl = `${args.options.url}/_api/web/webs`;
43
43
  if (args.options.output !== 'json') {
44
44
  requestUrl += '?$select=Title,Id,URL';
45
45
  }
@@ -60,10 +60,10 @@ class SpoWebListCommand extends SpoCommand_1.default {
60
60
  }
61
61
  _SpoWebListCommand_instances = new WeakSet(), _SpoWebListCommand_initOptions = function _SpoWebListCommand_initOptions() {
62
62
  this.options.unshift({
63
- option: '-u, --webUrl <webUrl>'
63
+ option: '-u, --url <url>'
64
64
  });
65
65
  }, _SpoWebListCommand_initValidators = function _SpoWebListCommand_initValidators() {
66
- this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.webUrl); }));
66
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.url); }));
67
67
  };
68
68
  module.exports = new SpoWebListCommand();
69
69
  //# sourceMappingURL=web-list.js.map
@@ -38,13 +38,13 @@ class SpoWebReindexCommand extends SpoCommand_1.default {
38
38
  let requestDigest = '';
39
39
  let webIdentityResp;
40
40
  utils_1.spo
41
- .getRequestDigest(args.options.webUrl)
41
+ .getRequestDigest(args.options.url)
42
42
  .then((res) => {
43
43
  requestDigest = res.FormDigestValue;
44
44
  if (this.debug) {
45
45
  logger.logToStderr(`Retrieved request digest. Retrieving web identity...`);
46
46
  }
47
- return utils_1.spo.getCurrentWebIdentity(args.options.webUrl, requestDigest);
47
+ return utils_1.spo.getCurrentWebIdentity(args.options.url, requestDigest);
48
48
  })
49
49
  .then((identityResp) => {
50
50
  webIdentityResp = identityResp;
@@ -54,20 +54,20 @@ class SpoWebReindexCommand extends SpoCommand_1.default {
54
54
  if (this.verbose) {
55
55
  logger.logToStderr(`Checking if the site is a no-script site...`);
56
56
  }
57
- return propertybag_base_1.SpoPropertyBagBaseCommand.isNoScriptSite(args.options.webUrl, requestDigest, webIdentityResp, logger, this.debug);
57
+ return propertybag_base_1.SpoPropertyBagBaseCommand.isNoScriptSite(args.options.url, requestDigest, webIdentityResp, logger, this.debug);
58
58
  })
59
59
  .then((isNoScriptSite) => {
60
60
  if (isNoScriptSite) {
61
61
  if (this.verbose) {
62
62
  logger.logToStderr(`Site is a no-script site. Reindexing lists instead...`);
63
63
  }
64
- return this.reindexLists(args.options.webUrl, requestDigest, logger, webIdentityResp);
64
+ return this.reindexLists(args.options.url, requestDigest, logger, webIdentityResp);
65
65
  }
66
66
  if (this.verbose) {
67
67
  logger.logToStderr(`Site is not a no-script site. Reindexing site...`);
68
68
  }
69
69
  const requestOptions = {
70
- url: `${args.options.webUrl}/_api/web/allproperties`,
70
+ url: `${args.options.url}/_api/web/allproperties`,
71
71
  headers: {
72
72
  'accept': 'application/json;odata=nometadata'
73
73
  },
@@ -78,7 +78,7 @@ class SpoWebReindexCommand extends SpoCommand_1.default {
78
78
  .then((webProperties) => {
79
79
  let searchVersion = webProperties.vti_x005f_searchversion || 0;
80
80
  searchVersion++;
81
- return propertybag_base_1.SpoPropertyBagBaseCommand.setProperty('vti_searchversion', searchVersion.toString(), args.options.webUrl, requestDigest, webIdentityResp, logger, this.debug);
81
+ return propertybag_base_1.SpoPropertyBagBaseCommand.setProperty('vti_searchversion', searchVersion.toString(), args.options.url, requestDigest, webIdentityResp, logger, this.debug);
82
82
  })
83
83
  .then(_ => cb(), (err) => {
84
84
  if (this.reindexedLists) {
@@ -138,10 +138,10 @@ class SpoWebReindexCommand extends SpoCommand_1.default {
138
138
  }
139
139
  _SpoWebReindexCommand_instances = new WeakSet(), _SpoWebReindexCommand_initOptions = function _SpoWebReindexCommand_initOptions() {
140
140
  this.options.unshift({
141
- option: '-u, --webUrl <webUrl>'
141
+ option: '-u, --url <url>'
142
142
  });
143
143
  }, _SpoWebReindexCommand_initValidators = function _SpoWebReindexCommand_initValidators() {
144
- this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.webUrl); }));
144
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.url); }));
145
145
  };
146
146
  module.exports = new SpoWebReindexCommand();
147
147
  //# sourceMappingURL=web-reindex.js.map
@@ -37,7 +37,7 @@ class SpoWebRemoveCommand extends SpoCommand_1.default {
37
37
  commandAction(logger, args, cb) {
38
38
  const removeWeb = () => {
39
39
  const requestOptions = {
40
- url: `${encodeURI(args.options.webUrl)}/_api/web`,
40
+ url: `${encodeURI(args.options.url)}/_api/web`,
41
41
  headers: {
42
42
  accept: 'application/json;odata=nometadata',
43
43
  'X-HTTP-Method': 'DELETE'
@@ -45,7 +45,7 @@ class SpoWebRemoveCommand extends SpoCommand_1.default {
45
45
  responseType: 'json'
46
46
  };
47
47
  if (this.verbose) {
48
- logger.logToStderr(`Deleting subsite ${args.options.webUrl} ...`);
48
+ logger.logToStderr(`Deleting subsite ${args.options.url} ...`);
49
49
  }
50
50
  request_1.default
51
51
  .post(requestOptions)
@@ -59,7 +59,7 @@ class SpoWebRemoveCommand extends SpoCommand_1.default {
59
59
  type: 'confirm',
60
60
  name: 'continue',
61
61
  default: false,
62
- message: `Are you sure you want to remove the subsite ${args.options.webUrl}`
62
+ message: `Are you sure you want to remove the subsite ${args.options.url}`
63
63
  }, (result) => {
64
64
  if (!result.continue) {
65
65
  cb();
@@ -79,12 +79,12 @@ _SpoWebRemoveCommand_instances = new WeakSet(), _SpoWebRemoveCommand_initTelemet
79
79
  });
80
80
  }, _SpoWebRemoveCommand_initOptions = function _SpoWebRemoveCommand_initOptions() {
81
81
  this.options.unshift({
82
- option: '-u, --webUrl <webUrl>'
82
+ option: '-u, --url <url>'
83
83
  }, {
84
84
  option: '--confirm'
85
85
  });
86
86
  }, _SpoWebRemoveCommand_initValidators = function _SpoWebRemoveCommand_initValidators() {
87
- this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.webUrl); }));
87
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.url); }));
88
88
  };
89
89
  module.exports = new SpoWebRemoveCommand();
90
90
  //# sourceMappingURL=web-remove.js.map
@@ -65,7 +65,7 @@ class SpoWebSetCommand extends SpoCommand_1.default {
65
65
  payload.SearchScope = SpoWebSetCommand.searchScopeOptions.indexOf(searchScope);
66
66
  }
67
67
  const requestOptions = {
68
- url: `${args.options.webUrl}/_api/web`,
68
+ url: `${args.options.url}/_api/web`,
69
69
  headers: {
70
70
  'content-type': 'application/json;odata=nometadata',
71
71
  accept: 'application/json;odata=nometadata'
@@ -74,7 +74,7 @@ class SpoWebSetCommand extends SpoCommand_1.default {
74
74
  data: payload
75
75
  };
76
76
  if (this.verbose) {
77
- logger.logToStderr(`Updating properties of subsite ${args.options.webUrl}...`);
77
+ logger.logToStderr(`Updating properties of subsite ${args.options.url}...`);
78
78
  }
79
79
  request_1.default
80
80
  .patch(requestOptions)
@@ -101,7 +101,7 @@ _SpoWebSetCommand_instances = new WeakSet(), _SpoWebSetCommand_initTelemetry = f
101
101
  });
102
102
  }, _SpoWebSetCommand_initOptions = function _SpoWebSetCommand_initOptions() {
103
103
  this.options.unshift({
104
- option: '-u, --webUrl <webUrl>'
104
+ option: '-u, --url <url>'
105
105
  }, {
106
106
  option: '-t, --title [title]'
107
107
  }, {
@@ -128,7 +128,7 @@ _SpoWebSetCommand_instances = new WeakSet(), _SpoWebSetCommand_initTelemetry = f
128
128
  });
129
129
  }, _SpoWebSetCommand_initValidators = function _SpoWebSetCommand_initValidators() {
130
130
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
131
- const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
131
+ const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.url);
132
132
  if (isValidSharePointUrl !== true) {
133
133
  return isValidSharePointUrl;
134
134
  }
@@ -193,9 +193,6 @@ exports.default = {
193
193
  SITE_APPPERMISSION_LIST: `${prefix} site apppermission list`,
194
194
  SITE_APPPERMISSION_REMOVE: `${prefix} site apppermission remove`,
195
195
  SITE_APPPERMISSION_SET: `${prefix} site apppermission set`,
196
- SITE_CLASSIC_ADD: `${prefix} site classic add`,
197
- SITE_CLASSIC_LIST: `${prefix} site classic list`,
198
- SITE_CLASSIC_SET: `${prefix} site classic set`,
199
196
  SITE_COMMSITE_ENABLE: `${prefix} site commsite enable`,
200
197
  SITE_ENSURE: `${prefix} site ensure`,
201
198
  SITE_GET: `${prefix} site get`,
@@ -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
  return request_1.default.post(requestOptions);
@@ -102,11 +102,11 @@ _TeamsAppInstallCommand_instances = new WeakSet(), _TeamsAppInstallCommand_initT
102
102
  });
103
103
  });
104
104
  }, _TeamsAppInstallCommand_initOptions = function _TeamsAppInstallCommand_initOptions() {
105
- this.options.unshift({ option: '--appId <appId>' }, { option: '--teamId [teamId]' }, { option: '--userId [userId]' }, { option: '--userName [userName]' });
105
+ this.options.unshift({ option: '--id <id>' }, { option: '--teamId [teamId]' }, { option: '--userId [userId]' }, { option: '--userName [userName]' });
106
106
  }, _TeamsAppInstallCommand_initValidators = function _TeamsAppInstallCommand_initValidators() {
107
107
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
108
- if (!utils_1.validation.isValidGuid(args.options.appId)) {
109
- return `${args.options.appId} is not a valid GUID`;
108
+ if (!utils_1.validation.isValidGuid(args.options.id)) {
109
+ return `${args.options.id} is not a valid GUID`;
110
110
  }
111
111
  if (args.options.teamId &&
112
112
  !utils_1.validation.isValidGuid(args.options.teamId)) {
@@ -37,7 +37,7 @@ class TeamsAppUninstallCommand extends GraphCommand_1.default {
37
37
  commandAction(logger, args, cb) {
38
38
  const uninstallApp = () => {
39
39
  const requestOptions = {
40
- url: `${this.resource}/v1.0/teams/${args.options.teamId}/installedApps/${args.options.appId}`,
40
+ url: `${this.resource}/v1.0/teams/${args.options.teamId}/installedApps/${args.options.id}`,
41
41
  headers: {
42
42
  accept: 'application/json;odata.metadata=none'
43
43
  }
@@ -54,7 +54,7 @@ class TeamsAppUninstallCommand extends GraphCommand_1.default {
54
54
  type: 'confirm',
55
55
  name: 'continue',
56
56
  default: false,
57
- message: `Are you sure you want to uninstall the app with id ${args.options.appId} from the Microsoft Teams team ${args.options.teamId}?`
57
+ message: `Are you sure you want to uninstall the app with id ${args.options.id} from the Microsoft Teams team ${args.options.teamId}?`
58
58
  }, (result) => {
59
59
  if (!result.continue) {
60
60
  cb();
@@ -74,7 +74,7 @@ _TeamsAppUninstallCommand_instances = new WeakSet(), _TeamsAppUninstallCommand_i
74
74
  });
75
75
  }, _TeamsAppUninstallCommand_initOptions = function _TeamsAppUninstallCommand_initOptions() {
76
76
  this.options.unshift({
77
- option: '--appId <appId>'
77
+ option: '--id <id>'
78
78
  }, {
79
79
  option: '--teamId <teamId>'
80
80
  }, {
@@ -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
  },
@@ -108,8 +108,8 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
108
108
  Object.assign(this.telemetryProperties, {
109
109
  teamId: typeof args.options.teamId !== 'undefined',
110
110
  teamName: typeof args.options.teamName !== 'undefined',
111
- channelId: typeof args.options.channelId !== 'undefined',
112
- channelName: typeof args.options.channelName !== 'undefined',
111
+ id: typeof args.options.id !== 'undefined',
112
+ name: typeof args.options.name !== 'undefined',
113
113
  primary: (!(!args.options.primary)).toString()
114
114
  });
115
115
  });
@@ -119,9 +119,9 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
119
119
  }, {
120
120
  option: '--teamName [teamName]'
121
121
  }, {
122
- option: '-c, --channelId [channelId]'
122
+ option: '-c, --id [id]'
123
123
  }, {
124
- option: '--channelName [channelName]'
124
+ option: '--name [name]'
125
125
  }, {
126
126
  option: '--primary'
127
127
  });
@@ -130,13 +130,13 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
130
130
  if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
131
131
  return `${args.options.teamId} is not a valid GUID`;
132
132
  }
133
- if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
134
- return `${args.options.channelId} is not a valid Teams ChannelId`;
133
+ if (args.options.id && !utils_1.validation.isValidTeamsChannelId(args.options.id)) {
134
+ return `${args.options.id} is not a valid Teams channel id`;
135
135
  }
136
136
  return true;
137
137
  }));
138
138
  }, _TeamsChannelGetCommand_initOptionSets = function _TeamsChannelGetCommand_initOptionSets() {
139
- this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName', 'primary']);
139
+ this.optionSets.push(['teamId', 'teamName'], ['id', 'name', 'primary']);
140
140
  };
141
141
  module.exports = new TeamsChannelGetCommand();
142
142
  //# sourceMappingURL=channel-get.js.map
@@ -37,9 +37,9 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
37
37
  }
38
38
  commandAction(logger, args, cb) {
39
39
  const removeChannel = () => {
40
- if (args.options.channelName) {
40
+ if (args.options.name) {
41
41
  const requestOptions = {
42
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.channelName)}'`,
42
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
43
43
  headers: {
44
44
  accept: 'application/json;odata.metadata=none'
45
45
  },
@@ -64,9 +64,9 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
64
64
  })
65
65
  .then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
66
66
  }
67
- if (args.options.channelId) {
67
+ if (args.options.id) {
68
68
  const requestOptions = {
69
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${encodeURIComponent(args.options.channelId)}`,
69
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${encodeURIComponent(args.options.id)}`,
70
70
  headers: {
71
71
  accept: 'application/json;odata.metadata=none'
72
72
  },
@@ -81,7 +81,7 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
81
81
  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
  cli_1.Cli.prompt({
86
86
  type: 'confirm',
87
87
  name: 'continue',
@@ -101,16 +101,16 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
101
101
  _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand_initTelemetry = function _TeamsChannelRemoveCommand_initTelemetry() {
102
102
  this.telemetry.push((args) => {
103
103
  Object.assign(this.telemetryProperties, {
104
- channelId: typeof args.options.channelId !== 'undefined',
105
- channelName: typeof args.options.channelName !== 'undefined',
104
+ id: typeof args.options.id !== 'undefined',
105
+ name: typeof args.options.name !== 'undefined',
106
106
  confirm: (!(!args.options.confirm)).toString()
107
107
  });
108
108
  });
109
109
  }, _TeamsChannelRemoveCommand_initOptions = function _TeamsChannelRemoveCommand_initOptions() {
110
110
  this.options.unshift({
111
- option: '-c, --channelId [channelId]'
111
+ option: '-c, --id [id]'
112
112
  }, {
113
- option: '-n, --channelName [channelName]'
113
+ option: '-n, --name [name]'
114
114
  }, {
115
115
  option: '-i, --teamId <teamId>'
116
116
  }, {
@@ -118,8 +118,8 @@ _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand
118
118
  });
119
119
  }, _TeamsChannelRemoveCommand_initValidators = function _TeamsChannelRemoveCommand_initValidators() {
120
120
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
121
- if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
122
- return `${args.options.channelId} is not a valid Teams Channel Id`;
121
+ if (args.options.id && !utils_1.validation.isValidTeamsChannelId(args.options.id)) {
122
+ return `${args.options.id} is not a valid Teams channel id`;
123
123
  }
124
124
  if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
125
125
  return `${args.options.teamId} is not a valid GUID`;
@@ -127,7 +127,7 @@ _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand
127
127
  return true;
128
128
  }));
129
129
  }, _TeamsChannelRemoveCommand_initOptionSets = function _TeamsChannelRemoveCommand_initOptionSets() {
130
- this.optionSets.push(['channelId', 'channelName']);
130
+ this.optionSets.push(['id', 'name']);
131
131
  };
132
132
  module.exports = new TeamsChannelRemoveCommand();
133
133
  //# sourceMappingURL=channel-remove.js.map
@@ -35,7 +35,7 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
35
35
  }
36
36
  commandAction(logger, args, cb) {
37
37
  const requestOptions = {
38
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.channelName)}'`,
38
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
39
39
  headers: {
40
40
  accept: 'application/json;odata.metadata=none'
41
41
  },
@@ -64,8 +64,8 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
64
64
  }
65
65
  mapRequestBody(options) {
66
66
  const requestBody = {};
67
- if (options.newChannelName) {
68
- requestBody.displayName = options.newChannelName;
67
+ if (options.newName) {
68
+ requestBody.displayName = options.newName;
69
69
  }
70
70
  if (options.description) {
71
71
  requestBody.description = options.description;
@@ -76,7 +76,7 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
76
76
  _TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initTelemetry = function _TeamsChannelSetCommand_initTelemetry() {
77
77
  this.telemetry.push((args) => {
78
78
  Object.assign(this.telemetryProperties, {
79
- newChannelName: typeof args.options.newChannelName !== 'undefined',
79
+ newName: typeof args.options.newName !== 'undefined',
80
80
  description: typeof args.options.description !== 'undefined'
81
81
  });
82
82
  });
@@ -84,9 +84,9 @@ _TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initT
84
84
  this.options.unshift({
85
85
  option: '-i, --teamId <teamId>'
86
86
  }, {
87
- option: '--channelName <channelName>'
87
+ option: '--name <name>'
88
88
  }, {
89
- option: '--newChannelName [newChannelName]'
89
+ option: '--newName [newName]'
90
90
  }, {
91
91
  option: '--description [description]'
92
92
  });
@@ -95,7 +95,7 @@ _TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initT
95
95
  if (!utils_1.validation.isValidGuid(args.options.teamId)) {
96
96
  return `${args.options.teamId} is not a valid GUID`;
97
97
  }
98
- if (args.options.channelName.toLowerCase() === "general") {
98
+ if (args.options.name.toLowerCase() === "general") {
99
99
  return 'General channel cannot be updated';
100
100
  }
101
101
  return true;
@@ -34,7 +34,7 @@ class TeamsMessageGetCommand extends GraphCommand_1.default {
34
34
  }
35
35
  commandAction(logger, args, cb) {
36
36
  const requestOptions = {
37
- url: `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages/${args.options.messageId}`,
37
+ url: `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages/${args.options.id}`,
38
38
  headers: {
39
39
  accept: 'application/json;odata.metadata=none'
40
40
  },
@@ -50,11 +50,11 @@ class TeamsMessageGetCommand extends GraphCommand_1.default {
50
50
  }
51
51
  _TeamsMessageGetCommand_instances = new WeakSet(), _TeamsMessageGetCommand_initOptions = function _TeamsMessageGetCommand_initOptions() {
52
52
  this.options.unshift({
53
- option: '-i, --teamId <teamId>'
53
+ option: '-t, --teamId <teamId>'
54
54
  }, {
55
55
  option: '-c, --channelId <channelId>'
56
56
  }, {
57
- option: '-m, --messageId <messageId>'
57
+ option: '-i, --id <id>'
58
58
  });
59
59
  }, _TeamsMessageGetCommand_initValidators = function _TeamsMessageGetCommand_initValidators() {
60
60
  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
  },
@@ -127,8 +127,8 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
127
127
  teamName: typeof args.options.teamName !== 'undefined',
128
128
  channelId: typeof args.options.channelId !== 'undefined',
129
129
  channelName: typeof args.options.channelName !== 'undefined',
130
- tabId: typeof args.options.tabId !== 'undefined',
131
- tabName: typeof args.options.tabName !== 'undefined'
130
+ id: typeof args.options.id !== 'undefined',
131
+ name: typeof args.options.name !== 'undefined'
132
132
  });
133
133
  });
134
134
  }, _TeamsTabGetCommand_initOptions = function _TeamsTabGetCommand_initOptions() {
@@ -141,9 +141,9 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
141
141
  }, {
142
142
  option: '--channelName [channelName]'
143
143
  }, {
144
- option: '-i, --tabId [tabId]'
144
+ option: '-i, --id [id]'
145
145
  }, {
146
- option: '-n, --tabName [tabName]'
146
+ option: '-n, --name [name]'
147
147
  });
148
148
  }, _TeamsTabGetCommand_initValidators = function _TeamsTabGetCommand_initValidators() {
149
149
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
@@ -151,15 +151,15 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
151
151
  return `${args.options.teamId} is not a valid GUID`;
152
152
  }
153
153
  if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
154
- return `${args.options.channelId} is not a valid Teams ChannelId`;
154
+ return `${args.options.channelId} is not a valid Teams channel id`;
155
155
  }
156
- if (args.options.tabId && !utils_1.validation.isValidGuid(args.options.tabId)) {
156
+ if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
157
157
  return `${args.options.tabId} is not a valid GUID`;
158
158
  }
159
159
  return true;
160
160
  }));
161
161
  }, _TeamsTabGetCommand_initOptionSets = function _TeamsTabGetCommand_initOptionSets() {
162
- this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['tabId', 'tabName']);
162
+ this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['id', 'name']);
163
163
  };
164
164
  module.exports = new TeamsTabGetCommand();
165
165
  //# sourceMappingURL=tab-get.js.map
@@ -37,7 +37,7 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
37
37
  commandAction(logger, args, cb) {
38
38
  const removeTab = () => {
39
39
  const requestOptions = {
40
- url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${args.options.channelId}/tabs/${encodeURIComponent(args.options.tabId)}`,
40
+ url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${args.options.channelId}/tabs/${encodeURIComponent(args.options.id)}`,
41
41
  headers: {
42
42
  accept: "application/json;odata.metadata=none"
43
43
  },
@@ -53,7 +53,7 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
53
53
  type: "confirm",
54
54
  name: "continue",
55
55
  default: false,
56
- 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}?`
56
+ 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}?`
57
57
  }, (result) => {
58
58
  if (!result.continue) {
59
59
  cb();
@@ -73,11 +73,11 @@ _TeamsTabRemoveCommand_instances = new WeakSet(), _TeamsTabRemoveCommand_initTel
73
73
  });
74
74
  }, _TeamsTabRemoveCommand_initOptions = function _TeamsTabRemoveCommand_initOptions() {
75
75
  this.options.unshift({
76
- option: "-i, --teamId <teamId>"
76
+ option: "-t, --teamId <teamId>"
77
77
  }, {
78
78
  option: "-c, --channelId <channelId>"
79
79
  }, {
80
- option: "-t, --tabId <tabId>"
80
+ option: "-i, --id <id>"
81
81
  }, {
82
82
  option: "--confirm"
83
83
  });
@@ -89,8 +89,8 @@ _TeamsTabRemoveCommand_instances = new WeakSet(), _TeamsTabRemoveCommand_initTel
89
89
  if (!utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
90
90
  return `${args.options.channelId} is not a valid Teams ChannelId`;
91
91
  }
92
- if (!utils_1.validation.isValidGuid(args.options.tabId)) {
93
- return `${args.options.tabId} is not a valid GUID`;
92
+ if (!utils_1.validation.isValidGuid(args.options.id)) {
93
+ return `${args.options.id} is not a valid GUID`;
94
94
  }
95
95
  return true;
96
96
  }));
@@ -48,10 +48,6 @@ class TeamsTeamArchiveCommand extends GraphCommand_1.default {
48
48
  });
49
49
  }
50
50
  commandAction(logger, args, cb) {
51
- if (args.options.teamId) {
52
- args.options.id = args.options.teamId;
53
- this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
54
- }
55
51
  const siteReadOnlyForMembers = args.options.shouldSetSpoSiteReadOnlyForMembers === true;
56
52
  this
57
53
  .getTeamId(args)
@@ -77,8 +73,7 @@ _TeamsTeamArchiveCommand_instances = new WeakSet(), _TeamsTeamArchiveCommand_ini
77
73
  Object.assign(this.telemetryProperties, {
78
74
  id: typeof args.options.id !== 'undefined',
79
75
  name: typeof args.options.name !== 'undefined',
80
- shouldSetSpoSiteReadOnlyForMembers: args.options.shouldSetSpoSiteReadOnlyForMembers === true,
81
- teamId: typeof args.options.teamId !== 'undefined'
76
+ shouldSetSpoSiteReadOnlyForMembers: args.options.shouldSetSpoSiteReadOnlyForMembers === true
82
77
  });
83
78
  });
84
79
  }, _TeamsTeamArchiveCommand_initOptions = function _TeamsTeamArchiveCommand_initOptions() {
@@ -86,22 +81,17 @@ _TeamsTeamArchiveCommand_instances = new WeakSet(), _TeamsTeamArchiveCommand_ini
86
81
  option: '-i, --id [id]'
87
82
  }, {
88
83
  option: '-n, --name [name]'
89
- }, {
90
- option: '--teamId [teamId]'
91
84
  }, {
92
85
  option: '--shouldSetSpoSiteReadOnlyForMembers'
93
86
  });
94
87
  }, _TeamsTeamArchiveCommand_initValidators = function _TeamsTeamArchiveCommand_initValidators() {
95
88
  this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
96
- if (!args.options.id && !args.options.name && !args.options.teamId) {
89
+ if (!args.options.id && !args.options.name) {
97
90
  return 'Specify either id or name';
98
91
  }
99
- if (args.options.name && (args.options.id || args.options.teamId)) {
92
+ if (args.options.name && args.options.id) {
100
93
  return 'Specify either id or name but not both';
101
94
  }
102
- if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
103
- return `${args.options.teamId} is not a valid GUID`;
104
- }
105
95
  if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
106
96
  return `${args.options.id} is not a valid GUID`;
107
97
  }