@pnp/cli-microsoft365 5.2.0-beta.a4da212 → 5.2.0-beta.bc072bc

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 (263) hide show
  1. package/.eslintrc.js +0 -1
  2. package/dist/m365/aad/commands/user/user-signin-list.js +81 -0
  3. package/dist/m365/aad/commands.js +2 -1
  4. package/dist/m365/planner/commands/bucket/bucket-set.js +208 -0
  5. package/dist/m365/planner/commands.js +1 -0
  6. package/dist/m365/pp/commands/environment/environment-list.js +57 -0
  7. package/dist/m365/pp/commands/managementapp/managementapp-list.js +24 -0
  8. package/dist/m365/pp/commands.js +3 -1
  9. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js +14 -0
  10. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.0.js +2 -0
  11. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.0.js +2 -0
  12. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +2 -0
  13. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.15.0-beta.1.js → upgrade-1.15.0-beta.6.js} +27 -27
  14. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.4.1.js +2 -0
  15. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.9.1.js +2 -0
  16. package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
  17. package/dist/m365/spfx/commands/spfx-doctor.js +1 -105
  18. package/dist/m365/teams/commands/app/app-install.js +1 -1
  19. package/dist/m365/teams/commands/channel/channel-add.js +44 -14
  20. package/dist/m365/teams/commands/channel/channel-list.js +11 -1
  21. package/dist/m365/teams/commands/{conversationmember/conversationmember-add.js → channel/channel-member-add.js} +15 -22
  22. package/dist/m365/teams/commands/channel/{channel-membership-list.js → channel-member-list.js} +14 -7
  23. package/dist/m365/teams/commands/channel/channel-member-remove.js +214 -0
  24. package/dist/m365/teams/commands/channel/channel-member-set.js +206 -0
  25. package/dist/m365/teams/commands.js +5 -1
  26. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +1 -1
  27. package/docs/docs/cmd/aad/group/group-list.md +1 -1
  28. package/docs/docs/cmd/aad/groupsetting/groupsetting-add.md +1 -1
  29. package/docs/docs/cmd/aad/groupsetting/groupsetting-get.md +1 -1
  30. package/docs/docs/cmd/aad/groupsetting/groupsetting-list.md +1 -1
  31. package/docs/docs/cmd/aad/groupsetting/groupsetting-remove.md +1 -1
  32. package/docs/docs/cmd/aad/groupsetting/groupsetting-set.md +1 -1
  33. package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-get.md +1 -1
  34. package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-list.md +1 -1
  35. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-clear.md +1 -1
  36. package/docs/docs/cmd/aad/o365group/o365group-remove.md +1 -1
  37. package/docs/docs/cmd/aad/o365group/o365group-renew.md +1 -1
  38. package/docs/docs/cmd/aad/o365group/o365group-report-activitycounts.md +1 -1
  39. package/docs/docs/cmd/aad/o365group/o365group-report-activityfilecounts.md +1 -1
  40. package/docs/docs/cmd/aad/o365group/o365group-report-activitygroupcounts.md +1 -1
  41. package/docs/docs/cmd/aad/o365group/o365group-teamify.md +1 -1
  42. package/docs/docs/cmd/aad/o365group/o365group-user-add.md +1 -1
  43. package/docs/docs/cmd/aad/o365group/o365group-user-remove.md +1 -1
  44. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-add.md +1 -1
  45. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-list.md +1 -1
  46. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.md +1 -1
  47. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.md +1 -1
  48. package/docs/docs/cmd/aad/siteclassification/siteclassification-disable.md +1 -1
  49. package/docs/docs/cmd/aad/siteclassification/siteclassification-enable.md +1 -1
  50. package/docs/docs/cmd/aad/siteclassification/siteclassification-get.md +1 -1
  51. package/docs/docs/cmd/aad/siteclassification/siteclassification-set.md +1 -1
  52. package/docs/docs/cmd/aad/sp/sp-get.md +1 -1
  53. package/docs/docs/cmd/aad/user/user-password-validate.md +1 -1
  54. package/docs/docs/cmd/aad/user/user-signin-list.md +81 -0
  55. package/docs/docs/cmd/cli/cli-doctor.md +1 -1
  56. package/docs/docs/cmd/flow/environment/environment-get.md +1 -1
  57. package/docs/docs/cmd/flow/environment/environment-list.md +1 -1
  58. package/docs/docs/cmd/flow/run/run-list.md +1 -1
  59. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.md +1 -1
  60. package/docs/docs/cmd/logout.md +1 -1
  61. package/docs/docs/cmd/onedrive/onedrive-list.md +1 -1
  62. package/docs/docs/cmd/planner/bucket/bucket-list.md +1 -1
  63. package/docs/docs/cmd/planner/bucket/bucket-set.md +57 -0
  64. package/docs/docs/cmd/planner/task/task-list.md +1 -1
  65. package/docs/docs/cmd/planner/task/task-set.md +2 -2
  66. package/docs/docs/cmd/pp/environment/environment-list.md +37 -0
  67. package/docs/docs/cmd/pp/managementapp/managementapp-list.md +21 -0
  68. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  69. package/docs/docs/cmd/spfx/spfx-doctor.md +1 -1
  70. package/docs/docs/cmd/spo/app/app-add.md +1 -1
  71. package/docs/docs/cmd/spo/app/app-deploy.md +1 -1
  72. package/docs/docs/cmd/spo/app/app-get.md +1 -1
  73. package/docs/docs/cmd/spo/app/app-install.md +1 -1
  74. package/docs/docs/cmd/spo/app/app-instance-list.md +1 -1
  75. package/docs/docs/cmd/spo/app/app-list.md +1 -1
  76. package/docs/docs/cmd/spo/app/app-remove.md +1 -1
  77. package/docs/docs/cmd/spo/app/app-retract.md +1 -1
  78. package/docs/docs/cmd/spo/app/app-uninstall.md +1 -1
  79. package/docs/docs/cmd/spo/app/app-upgrade.md +1 -1
  80. package/docs/docs/cmd/spo/apppage/apppage-add.md +1 -1
  81. package/docs/docs/cmd/spo/cdn/cdn-get.md +1 -1
  82. package/docs/docs/cmd/spo/cdn/cdn-origin-add.md +1 -1
  83. package/docs/docs/cmd/spo/cdn/cdn-origin-list.md +1 -1
  84. package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +1 -1
  85. package/docs/docs/cmd/spo/contenttype/contenttype-add.md +1 -1
  86. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.md +1 -1
  87. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +1 -1
  88. package/docs/docs/cmd/spo/contenttype/contenttype-remove.md +1 -1
  89. package/docs/docs/cmd/spo/customaction/customaction-add.md +1 -1
  90. package/docs/docs/cmd/spo/customaction/customaction-clear.md +1 -1
  91. package/docs/docs/cmd/spo/customaction/customaction-get.md +1 -1
  92. package/docs/docs/cmd/spo/customaction/customaction-list.md +1 -1
  93. package/docs/docs/cmd/spo/customaction/customaction-remove.md +1 -1
  94. package/docs/docs/cmd/spo/customaction/customaction-set.md +1 -1
  95. package/docs/docs/cmd/spo/externaluser/externaluser-list.md +1 -1
  96. package/docs/docs/cmd/spo/feature/feature-list.md +1 -1
  97. package/docs/docs/cmd/spo/field/field-add.md +1 -1
  98. package/docs/docs/cmd/spo/field/field-get.md +1 -1
  99. package/docs/docs/cmd/spo/field/field-set.md +1 -1
  100. package/docs/docs/cmd/spo/file/file-add.md +1 -1
  101. package/docs/docs/cmd/spo/file/file-checkin.md +1 -1
  102. package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
  103. package/docs/docs/cmd/spo/file/file-copy.md +1 -1
  104. package/docs/docs/cmd/spo/file/file-get.md +1 -1
  105. package/docs/docs/cmd/spo/file/file-move.md +1 -1
  106. package/docs/docs/cmd/spo/file/file-remove.md +1 -1
  107. package/docs/docs/cmd/spo/folder/folder-add.md +1 -1
  108. package/docs/docs/cmd/spo/folder/folder-copy.md +1 -1
  109. package/docs/docs/cmd/spo/folder/folder-get.md +1 -1
  110. package/docs/docs/cmd/spo/folder/folder-list.md +1 -1
  111. package/docs/docs/cmd/spo/folder/folder-move.md +1 -1
  112. package/docs/docs/cmd/spo/folder/folder-remove.md +1 -1
  113. package/docs/docs/cmd/spo/folder/folder-rename.md +1 -1
  114. package/docs/docs/cmd/spo/group/group-user-add.md +1 -1
  115. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.md +1 -1
  116. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.md +1 -1
  117. package/docs/docs/cmd/spo/homesite/homesite-get.md +1 -1
  118. package/docs/docs/cmd/spo/homesite/homesite-set.md +1 -1
  119. package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +1 -1
  120. package/docs/docs/cmd/spo/hubsite/hubsite-data-get.md +1 -1
  121. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +1 -1
  122. package/docs/docs/cmd/spo/hubsite/hubsite-get.md +1 -1
  123. package/docs/docs/cmd/spo/hubsite/hubsite-list.md +1 -1
  124. package/docs/docs/cmd/spo/hubsite/hubsite-register.md +1 -1
  125. package/docs/docs/cmd/spo/hubsite/hubsite-set.md +1 -1
  126. package/docs/docs/cmd/spo/hubsite/hubsite-theme-sync.md +1 -1
  127. package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +1 -1
  128. package/docs/docs/cmd/spo/list/list-add.md +1 -1
  129. package/docs/docs/cmd/spo/list/list-contenttype-add.md +1 -1
  130. package/docs/docs/cmd/spo/list/list-contenttype-list.md +1 -1
  131. package/docs/docs/cmd/spo/list/list-contenttype-remove.md +1 -1
  132. package/docs/docs/cmd/spo/list/list-get.md +1 -1
  133. package/docs/docs/cmd/spo/list/list-label-get.md +1 -1
  134. package/docs/docs/cmd/spo/list/list-label-set.md +1 -1
  135. package/docs/docs/cmd/spo/list/list-list.md +1 -1
  136. package/docs/docs/cmd/spo/list/list-remove.md +1 -1
  137. package/docs/docs/cmd/spo/list/list-set.md +1 -1
  138. package/docs/docs/cmd/spo/list/list-sitescript-get.md +1 -1
  139. package/docs/docs/cmd/spo/list/list-view-field-add.md +1 -1
  140. package/docs/docs/cmd/spo/list/list-view-field-remove.md +1 -1
  141. package/docs/docs/cmd/spo/list/list-view-get.md +1 -1
  142. package/docs/docs/cmd/spo/list/list-view-remove.md +1 -1
  143. package/docs/docs/cmd/spo/list/list-view-set.md +1 -1
  144. package/docs/docs/cmd/spo/list/list-webhook-add.md +1 -1
  145. package/docs/docs/cmd/spo/list/list-webhook-get.md +1 -1
  146. package/docs/docs/cmd/spo/list/list-webhook-list.md +1 -1
  147. package/docs/docs/cmd/spo/list/list-webhook-remove.md +1 -1
  148. package/docs/docs/cmd/spo/list/list-webhook-set.md +1 -1
  149. package/docs/docs/cmd/spo/listitem/listitem-add.md +1 -1
  150. package/docs/docs/cmd/spo/listitem/listitem-list.md +2 -2
  151. package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +1 -1
  152. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +1 -1
  153. package/docs/docs/cmd/spo/listitem/listitem-set.md +1 -1
  154. package/docs/docs/cmd/spo/navigation/navigation-node-add.md +1 -1
  155. package/docs/docs/cmd/spo/navigation/navigation-node-list.md +1 -1
  156. package/docs/docs/cmd/spo/navigation/navigation-node-remove.md +1 -1
  157. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +1 -1
  158. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +1 -1
  159. package/docs/docs/cmd/spo/page/page-add.md +1 -1
  160. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +1 -1
  161. package/docs/docs/cmd/spo/page/page-column-get.md +1 -1
  162. package/docs/docs/cmd/spo/page/page-column-list.md +1 -1
  163. package/docs/docs/cmd/spo/page/page-control-get.md +1 -1
  164. package/docs/docs/cmd/spo/page/page-control-list.md +1 -1
  165. package/docs/docs/cmd/spo/page/page-list.md +1 -1
  166. package/docs/docs/cmd/spo/page/page-remove.md +1 -1
  167. package/docs/docs/cmd/spo/page/page-section-add.md +1 -1
  168. package/docs/docs/cmd/spo/page/page-section-get.md +1 -1
  169. package/docs/docs/cmd/spo/page/page-section-list.md +1 -1
  170. package/docs/docs/cmd/spo/page/page-set.md +1 -1
  171. package/docs/docs/cmd/spo/page/page-template-list.md +1 -1
  172. package/docs/docs/cmd/spo/page/page-text-add.md +1 -1
  173. package/docs/docs/cmd/spo/propertybag/propertybag-get.md +1 -1
  174. package/docs/docs/cmd/spo/propertybag/propertybag-list.md +1 -1
  175. package/docs/docs/cmd/spo/propertybag/propertybag-remove.md +1 -1
  176. package/docs/docs/cmd/spo/propertybag/propertybag-set.md +1 -1
  177. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +1 -1
  178. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +1 -1
  179. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +1 -1
  180. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +1 -1
  181. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +1 -1
  182. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +1 -1
  183. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +1 -1
  184. package/docs/docs/cmd/spo/site/site-add.md +1 -1
  185. package/docs/docs/cmd/spo/site/site-appcatalog-add.md +1 -1
  186. package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +1 -1
  187. package/docs/docs/cmd/spo/site/site-classic-add.md +1 -1
  188. package/docs/docs/cmd/spo/site/site-commsite-enable.md +1 -1
  189. package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.md +1 -1
  190. package/docs/docs/cmd/spo/site/site-set.md +1 -1
  191. package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.md +1 -1
  192. package/docs/docs/cmd/spo/sitedesign/sitedesign-get.md +1 -1
  193. package/docs/docs/cmd/spo/sitedesign/sitedesign-list.md +1 -1
  194. package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.md +1 -1
  195. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +1 -1
  196. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.md +1 -1
  197. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.md +1 -1
  198. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +1 -1
  199. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.md +1 -1
  200. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +1 -1
  201. package/docs/docs/cmd/spo/sitescript/sitescript-add.md +1 -1
  202. package/docs/docs/cmd/spo/sitescript/sitescript-get.md +1 -1
  203. package/docs/docs/cmd/spo/sitescript/sitescript-list.md +1 -1
  204. package/docs/docs/cmd/spo/sitescript/sitescript-remove.md +1 -1
  205. package/docs/docs/cmd/spo/sitescript/sitescript-set.md +1 -1
  206. package/docs/docs/cmd/spo/spo-get.md +1 -1
  207. package/docs/docs/cmd/spo/storageentity/storageentity-list.md +1 -1
  208. package/docs/docs/cmd/spo/storageentity/storageentity-remove.md +1 -1
  209. package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.md +1 -1
  210. package/docs/docs/cmd/spo/tenant/tenant-settings-list.md +1 -1
  211. package/docs/docs/cmd/spo/term/term-add.md +1 -1
  212. package/docs/docs/cmd/spo/term/term-get.md +1 -1
  213. package/docs/docs/cmd/spo/term/term-group-add.md +1 -1
  214. package/docs/docs/cmd/spo/term/term-group-get.md +1 -1
  215. package/docs/docs/cmd/spo/term/term-group-list.md +1 -1
  216. package/docs/docs/cmd/spo/term/term-list.md +1 -1
  217. package/docs/docs/cmd/spo/term/term-set-add.md +1 -1
  218. package/docs/docs/cmd/spo/term/term-set-get.md +1 -1
  219. package/docs/docs/cmd/spo/term/term-set-list.md +1 -1
  220. package/docs/docs/cmd/spo/theme/theme-apply.md +1 -1
  221. package/docs/docs/cmd/spo/theme/theme-get.md +1 -1
  222. package/docs/docs/cmd/spo/theme/theme-list.md +1 -1
  223. package/docs/docs/cmd/spo/theme/theme-remove.md +1 -1
  224. package/docs/docs/cmd/spo/user/user-remove.md +1 -1
  225. package/docs/docs/cmd/spo/web/web-add.md +1 -1
  226. package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.md +1 -1
  227. package/docs/docs/cmd/spo/web/web-get.md +1 -1
  228. package/docs/docs/cmd/spo/web/web-list.md +1 -1
  229. package/docs/docs/cmd/spo/web/web-reindex.md +1 -1
  230. package/docs/docs/cmd/spo/web/web-remove.md +1 -1
  231. package/docs/docs/cmd/teams/app/app-publish.md +1 -1
  232. package/docs/docs/cmd/teams/app/app-remove.md +1 -1
  233. package/docs/docs/cmd/teams/app/app-uninstall.md +1 -1
  234. package/docs/docs/cmd/teams/channel/channel-add.md +18 -0
  235. package/docs/docs/cmd/teams/channel/channel-list.md +12 -3
  236. package/docs/docs/cmd/teams/{conversationmember/conversationmember-add.md → channel/channel-member-add.md} +10 -4
  237. package/docs/docs/cmd/teams/channel/channel-member-list.md +54 -0
  238. package/docs/docs/cmd/teams/channel/channel-member-remove.md +57 -0
  239. package/docs/docs/cmd/teams/channel/channel-member-set.md +51 -0
  240. package/docs/docs/cmd/teams/channel/channel-set.md +1 -1
  241. package/docs/docs/cmd/teams/guestsettings/guestsettings-list.md +1 -1
  242. package/docs/docs/cmd/teams/guestsettings/guestsettings-set.md +1 -1
  243. package/docs/docs/cmd/teams/membersettings/membersettings-list.md +1 -1
  244. package/docs/docs/cmd/teams/membersettings/membersettings-set.md +1 -1
  245. package/docs/docs/cmd/teams/message/message-get.md +1 -1
  246. package/docs/docs/cmd/teams/message/message-reply-list.md +1 -1
  247. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.md +1 -1
  248. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.md +1 -1
  249. package/docs/docs/cmd/teams/report/report-pstncalls.md +1 -1
  250. package/docs/docs/cmd/teams/tab/tab-list.md +1 -1
  251. package/docs/docs/cmd/teams/team/team-archive.md +1 -1
  252. package/docs/docs/cmd/teams/team/team-clone.md +1 -1
  253. package/docs/docs/cmd/teams/team/team-get.md +1 -1
  254. package/docs/docs/cmd/teams/team/team-list.md +1 -1
  255. package/docs/docs/cmd/teams/team/team-remove.md +1 -1
  256. package/docs/docs/cmd/teams/team/team-set.md +1 -1
  257. package/docs/docs/cmd/teams/team/team-unarchive.md +1 -1
  258. package/docs/docs/cmd/todo/task/task-list.md +1 -1
  259. package/docs/docs/cmd/todo/task/task-set.md +1 -1
  260. package/package.json +3 -1
  261. package/dist/m365/teams/commands/conversationmember/conversationmember-list.js +0 -164
  262. package/docs/docs/cmd/teams/channel/channel-membership-list.md +0 -48
  263. package/docs/docs/cmd/teams/conversationmember/conversationmember-list.md +0 -39
@@ -63,10 +63,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
63
63
  range: '^6',
64
64
  fix: 'Install Node.js v6'
65
65
  },
66
- react: {
67
- range: '^15',
68
- fix: 'npm i react@15'
69
- },
70
66
  sp: SharePointVersion.All,
71
67
  yo: {
72
68
  range: '^3',
@@ -82,10 +78,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
82
78
  range: '^6',
83
79
  fix: 'Install Node.js v6'
84
80
  },
85
- react: {
86
- range: '^15',
87
- fix: 'npm i react@15'
88
- },
89
81
  sp: SharePointVersion.All,
90
82
  yo: {
91
83
  range: '^3',
@@ -101,10 +93,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
101
93
  range: '^6',
102
94
  fix: 'Install Node.js v6'
103
95
  },
104
- react: {
105
- range: '^15',
106
- fix: 'npm i react@15'
107
- },
108
96
  sp: SharePointVersion.SP2019 | SharePointVersion.SPO,
109
97
  yo: {
110
98
  range: '^3',
@@ -120,10 +108,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
120
108
  range: '^6',
121
109
  fix: 'Install Node.js v6'
122
110
  },
123
- react: {
124
- range: '^15',
125
- fix: 'npm i react@15'
126
- },
127
111
  sp: SharePointVersion.SP2019 | SharePointVersion.SPO,
128
112
  yo: {
129
113
  range: '^3',
@@ -139,10 +123,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
139
123
  range: '^6 || ^8',
140
124
  fix: 'Install Node.js v8'
141
125
  },
142
- react: {
143
- range: '^15',
144
- fix: 'npm i react@15'
145
- },
146
126
  sp: SharePointVersion.SP2019 | SharePointVersion.SPO,
147
127
  yo: {
148
128
  range: '^3',
@@ -158,10 +138,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
158
138
  range: '^6 || ^8',
159
139
  fix: 'Install Node.js v8'
160
140
  },
161
- react: {
162
- range: '^15',
163
- fix: 'npm i react@15'
164
- },
165
141
  sp: SharePointVersion.SPO,
166
142
  yo: {
167
143
  range: '^3',
@@ -177,10 +153,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
177
153
  range: '^6 || ^8',
178
154
  fix: 'Install Node.js v8'
179
155
  },
180
- react: {
181
- range: '^15',
182
- fix: 'npm i react@15'
183
- },
184
156
  sp: SharePointVersion.SPO,
185
157
  yo: {
186
158
  range: '^3',
@@ -196,10 +168,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
196
168
  range: '^6 || ^8',
197
169
  fix: 'Install Node.js v8'
198
170
  },
199
- react: {
200
- range: '^15',
201
- fix: 'npm i react@15'
202
- },
203
171
  sp: SharePointVersion.SPO,
204
172
  yo: {
205
173
  range: '^3',
@@ -215,10 +183,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
215
183
  range: '^8',
216
184
  fix: 'Install Node.js v8'
217
185
  },
218
- react: {
219
- range: '16.3.2',
220
- fix: 'npm i react@16.3.2'
221
- },
222
186
  sp: SharePointVersion.SPO,
223
187
  yo: {
224
188
  range: '^3',
@@ -234,10 +198,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
234
198
  range: '^8',
235
199
  fix: 'Install Node.js v8'
236
200
  },
237
- react: {
238
- range: '16.3.2',
239
- fix: 'npm i react@16.3.2'
240
- },
241
201
  sp: SharePointVersion.SPO,
242
202
  yo: {
243
203
  range: '^3',
@@ -253,10 +213,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
253
213
  range: '^8',
254
214
  fix: 'Install Node.js v8'
255
215
  },
256
- react: {
257
- range: '16.7.0',
258
- fix: 'npm i react@16.7.0'
259
- },
260
216
  sp: SharePointVersion.SPO,
261
217
  yo: {
262
218
  range: '^3',
@@ -272,10 +228,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
272
228
  range: '^8',
273
229
  fix: 'Install Node.js v8'
274
230
  },
275
- react: {
276
- range: '16.7.0',
277
- fix: 'npm i react@16.7.0'
278
- },
279
231
  sp: SharePointVersion.SPO,
280
232
  yo: {
281
233
  range: '^3',
@@ -291,10 +243,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
291
243
  range: '^8 || ^10',
292
244
  fix: 'Install Node.js v10'
293
245
  },
294
- react: {
295
- range: '16.7.0',
296
- fix: 'npm i react@16.7.0'
297
- },
298
246
  sp: SharePointVersion.SPO,
299
247
  yo: {
300
248
  range: '^3',
@@ -310,10 +258,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
310
258
  range: '^8 || ^10',
311
259
  fix: 'Install Node.js v10'
312
260
  },
313
- react: {
314
- range: '16.8.5',
315
- fix: 'npm i react@16.8.5'
316
- },
317
261
  sp: SharePointVersion.SPO,
318
262
  yo: {
319
263
  range: '^3',
@@ -329,10 +273,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
329
273
  range: '^10',
330
274
  fix: 'Install Node.js v10'
331
275
  },
332
- react: {
333
- range: '16.8.5',
334
- fix: 'npm i react@16.8.5'
335
- },
336
276
  sp: SharePointVersion.SPO,
337
277
  yo: {
338
278
  range: '^3',
@@ -348,10 +288,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
348
288
  range: '^10',
349
289
  fix: 'Install Node.js v10'
350
290
  },
351
- react: {
352
- range: '16.8.5',
353
- fix: 'npm i react@16.8.5'
354
- },
355
291
  sp: SharePointVersion.SPO,
356
292
  yo: {
357
293
  range: '^3',
@@ -367,10 +303,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
367
303
  range: '^10',
368
304
  fix: 'Install Node.js v10'
369
305
  },
370
- react: {
371
- range: '16.8.5',
372
- fix: 'npm i react@16.8.5'
373
- },
374
306
  sp: SharePointVersion.SPO,
375
307
  yo: {
376
308
  range: '^3',
@@ -386,10 +318,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
386
318
  range: '^12',
387
319
  fix: 'Install Node.js v12'
388
320
  },
389
- react: {
390
- range: '16.9.0',
391
- fix: 'npm i react@16.9.0'
392
- },
393
321
  sp: SharePointVersion.SPO,
394
322
  yo: {
395
323
  range: '^3',
@@ -405,10 +333,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
405
333
  range: '^12 || ^14',
406
334
  fix: 'Install Node.js v12 or v14'
407
335
  },
408
- react: {
409
- range: '16.9.36',
410
- fix: 'npm i react@16.9.36'
411
- },
412
336
  sp: SharePointVersion.SPO,
413
337
  yo: {
414
338
  range: '^3',
@@ -424,10 +348,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
424
348
  range: '^12 || ^14',
425
349
  fix: 'Install Node.js v12 or v14'
426
350
  },
427
- react: {
428
- range: '16.9.51',
429
- fix: 'npm i react@16.9.51'
430
- },
431
351
  sp: SharePointVersion.SPO,
432
352
  yo: {
433
353
  range: '^4',
@@ -443,10 +363,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
443
363
  range: '^12 || ^14',
444
364
  fix: 'Install Node.js v12 or v14'
445
365
  },
446
- react: {
447
- range: '16.9.51',
448
- fix: 'npm i react@16.9.51'
449
- },
450
366
  sp: SharePointVersion.SPO,
451
367
  yo: {
452
368
  range: '^4',
@@ -462,10 +378,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
462
378
  range: '^12 || ^14',
463
379
  fix: 'Install Node.js v12 or v14'
464
380
  },
465
- react: {
466
- range: '16.9.51',
467
- fix: 'npm i react@16.9.51'
468
- },
469
381
  sp: SharePointVersion.SPO,
470
382
  yo: {
471
383
  range: '^4',
@@ -511,7 +423,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
511
423
  .then(_ => this.checkNodeVersion(prerequisites, fixes, logger))
512
424
  .then(_ => this.checkYo(prerequisites, fixes, logger))
513
425
  .then(_ => this.checkGulp(prerequisites, fixes, logger))
514
- .then(_ => this.checkReact(prerequisites, fixes, logger))
515
426
  .then(_ => this.checkTypeScript(fixes, logger))
516
427
  .then(_ => {
517
428
  if (fixes.length > 0) {
@@ -586,13 +497,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
586
497
  }
587
498
  });
588
499
  }
589
- checkReact(prerequisites, fixes, logger) {
590
- return this
591
- .getPackageVersion('react', PackageSearchMode.LocalOnly, HandlePromise.Continue, logger)
592
- .then((reactVersion) => {
593
- this.checkStatus('react', reactVersion, prerequisites.react, OptionalOrRequired.Optional, fixes, logger);
594
- });
595
- }
596
500
  checkTypeScript(fixes, logger) {
597
501
  return this
598
502
  .getPackageVersion('typescript', PackageSearchMode.LocalOnly, HandlePromise.Continue, logger)
@@ -713,15 +617,7 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
713
617
  return process.version.substr(1);
714
618
  }
715
619
  checkStatus(what, versionFound, versionCheck, optionalOrRequired, fixes, logger) {
716
- if (!versionFound) {
717
- // TODO: we might need this code in the future if SPFx introduces required
718
- // prerequisites with a specific version
719
- // if (optionalOrRequired === OptionalOrRequired.Required) {
720
- // logger.log(this.getStatus(CheckStatus.Failure, `${what} not found, v${versionCheck.range} required`));
721
- // fixes.push(versionCheck.fix);
722
- // }
723
- }
724
- else {
620
+ if (versionFound) {
725
621
  if ((0, semver_1.satisfies)(versionFound, versionCheck.range)) {
726
622
  logger.log(this.getStatus(CheckStatus.Success, `${what} v${versionFound}`));
727
623
  }
@@ -72,7 +72,7 @@ class TeamsAppInstallCommand extends GraphCommand_1.default {
72
72
  options() {
73
73
  const options = [
74
74
  { option: '--appId <appId>' },
75
- { option: '--teamId [teamId' },
75
+ { option: '--teamId [teamId]' },
76
76
  { option: '--userId [userId]' },
77
77
  { option: '--userName [userName]' }
78
78
  ];
@@ -16,6 +16,8 @@ class TeamsChannelAddCommand extends GraphCommand_1.default {
16
16
  telemetryProps.description = typeof args.options.description !== 'undefined';
17
17
  telemetryProps.teamId = typeof args.options.teamId !== 'undefined';
18
18
  telemetryProps.teamName = typeof args.options.teamName !== 'undefined';
19
+ telemetryProps.type = args.options.type || 'standard';
20
+ telemetryProps.owner = typeof args.options.owner !== 'undefined';
19
21
  return telemetryProps;
20
22
  }
21
23
  getTeamId(args) {
@@ -44,23 +46,35 @@ class TeamsChannelAddCommand extends GraphCommand_1.default {
44
46
  return Promise.resolve(matchingTeams[0]);
45
47
  });
46
48
  }
49
+ createChannel(args, teamId) {
50
+ const requestOptions = {
51
+ url: `${this.resource}/v1.0/teams/${teamId}/channels`,
52
+ headers: {
53
+ accept: 'application/json;odata.metadata=none',
54
+ 'content-type': 'application/json;odata=nometadata'
55
+ },
56
+ data: {
57
+ membershipType: args.options.type || 'standard',
58
+ displayName: args.options.name
59
+ },
60
+ responseType: 'json'
61
+ };
62
+ if (args.options.type === 'private') {
63
+ // Private channels must have at least 1 owner
64
+ requestOptions.data.members = [
65
+ {
66
+ '@odata.type': '#microsoft.graph.aadUserConversationMember',
67
+ 'user@odata.bind': `https://graph.microsoft.com/v1.0/users('${args.options.owner}')`,
68
+ roles: ['owner']
69
+ }
70
+ ];
71
+ }
72
+ return request_1.default.post(requestOptions);
73
+ }
47
74
  commandAction(logger, args, cb) {
48
75
  this
49
76
  .getTeamId(args)
50
- .then((teamId) => {
51
- const requestOptions = {
52
- url: `${this.resource}/v1.0/teams/${teamId}/channels`,
53
- headers: {
54
- accept: 'application/json;odata.metadata=none',
55
- 'content-type': 'application/json;odata=nometadata'
56
- },
57
- data: {
58
- displayName: args.options.name
59
- },
60
- responseType: 'json'
61
- };
62
- return request_1.default.post(requestOptions);
63
- })
77
+ .then((teamId) => this.createChannel(args, teamId))
64
78
  .then((res) => {
65
79
  logger.log(res);
66
80
  cb();
@@ -79,6 +93,13 @@ class TeamsChannelAddCommand extends GraphCommand_1.default {
79
93
  },
80
94
  {
81
95
  option: '-d, --description [description]'
96
+ },
97
+ {
98
+ option: '--type [type]',
99
+ autocomplete: ['standard', 'private']
100
+ },
101
+ {
102
+ option: '--owner [owner]'
82
103
  }
83
104
  ];
84
105
  const parentOptions = super.options();
@@ -94,6 +115,15 @@ class TeamsChannelAddCommand extends GraphCommand_1.default {
94
115
  if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
95
116
  return `${args.options.teamId} is not a valid GUID`;
96
117
  }
118
+ if (args.options.type && ['standard', 'private'].indexOf(args.options.type) === -1) {
119
+ return `${args.options.type} is not a valid type value. Allowed values standard|private.`;
120
+ }
121
+ if (args.options.type === 'private' && !args.options.owner) {
122
+ return 'Specify owner when creating a private channel.';
123
+ }
124
+ if (args.options.type !== 'private' && args.options.owner) {
125
+ return 'Specify owner only when creating a private channel.';
126
+ }
97
127
  return true;
98
128
  }
99
129
  }
@@ -49,7 +49,10 @@ class TeamsChannelListCommand extends GraphCommand_1.default {
49
49
  this
50
50
  .getTeamId(args)
51
51
  .then((teamId) => {
52
- const endpoint = `${this.resource}/v1.0/teams/${teamId}/channels`;
52
+ let endpoint = `${this.resource}/v1.0/teams/${teamId}/channels`;
53
+ if (args.options.type) {
54
+ endpoint += `?$filter=membershipType eq '${args.options.type}'`;
55
+ }
53
56
  return utils_1.odata.getAllItems(endpoint, logger);
54
57
  })
55
58
  .then((items) => {
@@ -64,6 +67,10 @@ class TeamsChannelListCommand extends GraphCommand_1.default {
64
67
  },
65
68
  {
66
69
  option: '--teamName [teamName]'
70
+ },
71
+ {
72
+ option: '--type [type]',
73
+ autocomplete: ['standard', 'private']
67
74
  }
68
75
  ];
69
76
  const parentOptions = super.options();
@@ -79,6 +86,9 @@ class TeamsChannelListCommand extends GraphCommand_1.default {
79
86
  if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
80
87
  return `${args.options.teamId} is not a valid GUID`;
81
88
  }
89
+ if (args.options.type && ['standard', 'private'].indexOf(args.options.type.toLowerCase()) === -1) {
90
+ return `${args.options.type} is not a valid type value. Allowed values standard|private`;
91
+ }
82
92
  return true;
83
93
  }
84
94
  }
@@ -5,13 +5,16 @@ const request_1 = require("../../../../request");
5
5
  const utils_1 = require("../../../../utils");
6
6
  const GraphCommand_1 = require("../../../base/GraphCommand");
7
7
  const commands_1 = require("../../commands");
8
- class TeamsConversationMemberAddCommand extends GraphCommand_1.default {
8
+ class TeamsChannelMemberAddCommand extends GraphCommand_1.default {
9
9
  get name() {
10
- return commands_1.default.CONVERSATIONMEMBER_ADD;
10
+ return commands_1.default.CHANNEL_MEMBER_ADD;
11
11
  }
12
12
  get description() {
13
13
  return 'Adds a conversation member in a private channel.';
14
14
  }
15
+ alias() {
16
+ return [commands_1.default.CONVERSATIONMEMBER_ADD];
17
+ }
15
18
  getTelemetryProperties(args) {
16
19
  const telemetryProps = super.getTelemetryProperties(args);
17
20
  telemetryProps.teamId = typeof args.options.teamId !== 'undefined';
@@ -24,6 +27,7 @@ class TeamsConversationMemberAddCommand extends GraphCommand_1.default {
24
27
  return telemetryProps;
25
28
  }
26
29
  commandAction(logger, args, cb) {
30
+ this.showDeprecationWarning(logger, commands_1.default.CONVERSATIONMEMBER_ADD, commands_1.default.CHANNEL_MEMBER_ADD);
27
31
  let teamId = '';
28
32
  let channelId = '';
29
33
  this
@@ -47,6 +51,13 @@ class TeamsConversationMemberAddCommand extends GraphCommand_1.default {
47
51
  })
48
52
  .then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
49
53
  }
54
+ optionSets() {
55
+ return [
56
+ ['teamId', 'teamName'],
57
+ ['channelId', 'channelName'],
58
+ ['userId', 'userDisplayName']
59
+ ];
60
+ }
50
61
  options() {
51
62
  const options = [
52
63
  {
@@ -75,30 +86,12 @@ class TeamsConversationMemberAddCommand extends GraphCommand_1.default {
75
86
  return options.concat(parentOptions);
76
87
  }
77
88
  validate(args) {
78
- if (args.options.teamId && args.options.teamName) {
79
- return 'Specify either teamId or teamName, but not both.';
80
- }
81
- if (!args.options.teamId && !args.options.teamName) {
82
- return 'Specify teamId or teamName, one is required';
83
- }
84
89
  if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
85
90
  return `${args.options.teamId} is not a valid GUID`;
86
91
  }
87
- if (args.options.channelId && args.options.channelName) {
88
- return 'Specify either channelId or channelName, but not both.';
89
- }
90
- if (!args.options.channelId && !args.options.channelName) {
91
- return 'Specify channelId or channelName, one is required';
92
- }
93
92
  if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
94
93
  return `${args.options.channelId} is not a valid Teams ChannelId`;
95
94
  }
96
- if (args.options.userId && args.options.userDisplayName) {
97
- return 'Specify either userId or userDisplayName, but not both.';
98
- }
99
- if (!args.options.userId && !args.options.userDisplayName) {
100
- return 'Specify userId or userDisplayName, one is required';
101
- }
102
95
  return true;
103
96
  }
104
97
  addUser(userId, endpoint, roles) {
@@ -196,5 +189,5 @@ class TeamsConversationMemberAddCommand extends GraphCommand_1.default {
196
189
  }, err => { return Promise.reject(err); });
197
190
  }
198
191
  }
199
- module.exports = new TeamsConversationMemberAddCommand();
200
- //# sourceMappingURL=conversationmember-add.js.map
192
+ module.exports = new TeamsChannelMemberAddCommand();
193
+ //# sourceMappingURL=channel-member-add.js.map
@@ -4,16 +4,19 @@ const utils_1 = require("../../../../utils");
4
4
  const GraphCommand_1 = require("../../../base/GraphCommand");
5
5
  const commands_1 = require("../../commands");
6
6
  const request_1 = require("../../../../request");
7
- class TeamsChannelMembershipListCommand extends GraphCommand_1.default {
7
+ class TeamsChannelMemberListCommand extends GraphCommand_1.default {
8
8
  constructor() {
9
9
  super(...arguments);
10
10
  this.teamId = '';
11
11
  }
12
12
  get name() {
13
- return commands_1.default.CHANNEL_MEMBERSHIP_LIST;
13
+ return commands_1.default.CHANNEL_MEMBER_LIST;
14
14
  }
15
15
  get description() {
16
- return 'Lists memberships in the specified Microsoft Teams team channel';
16
+ return 'Lists members of the specified Microsoft Teams team channel';
17
+ }
18
+ alias() {
19
+ return [commands_1.default.CONVERSATIONMEMBER_LIST];
17
20
  }
18
21
  defaultProperties() {
19
22
  return ['id', 'roles', 'displayName', 'userId', 'email'];
@@ -28,6 +31,7 @@ class TeamsChannelMembershipListCommand extends GraphCommand_1.default {
28
31
  return telemetryProps;
29
32
  }
30
33
  commandAction(logger, args, cb) {
34
+ this.showDeprecationWarning(logger, commands_1.default.CONVERSATIONMEMBER_LIST, commands_1.default.CHANNEL_MEMBER_LIST);
31
35
  this
32
36
  .getTeamId(args)
33
37
  .then((teamId) => {
@@ -103,13 +107,13 @@ class TeamsChannelMembershipListCommand extends GraphCommand_1.default {
103
107
  options() {
104
108
  const options = [
105
109
  {
106
- option: '--teamId [teamId]'
110
+ option: '-i, --teamId [teamId]'
107
111
  },
108
112
  {
109
113
  option: '--teamName [teamName]'
110
114
  },
111
115
  {
112
- option: '--channelId [channelId]'
116
+ option: '-c, --channelId [channelId]'
113
117
  },
114
118
  {
115
119
  option: '--channelName [channelName]'
@@ -138,6 +142,9 @@ class TeamsChannelMembershipListCommand extends GraphCommand_1.default {
138
142
  if (!args.options.channelId && !args.options.channelName) {
139
143
  return 'Specify channelId or channelName, one is required';
140
144
  }
145
+ if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
146
+ return `${args.options.channelId} is not a valid Teams Channel ID`;
147
+ }
141
148
  if (args.options.role) {
142
149
  if (['owner', 'member', 'guest'].indexOf(args.options.role) === -1) {
143
150
  return `${args.options.role} is not a valid role value. Allowed values owner|member|guest`;
@@ -146,5 +153,5 @@ class TeamsChannelMembershipListCommand extends GraphCommand_1.default {
146
153
  return true;
147
154
  }
148
155
  }
149
- module.exports = new TeamsChannelMembershipListCommand();
150
- //# sourceMappingURL=channel-membership-list.js.map
156
+ module.exports = new TeamsChannelMemberListCommand();
157
+ //# sourceMappingURL=channel-member-list.js.map