@pnp/cli-microsoft365 6.9.0-beta.f6054b4 → 6.10.0-beta.05cab2f

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 (389) hide show
  1. package/.devcontainer/Dockerfile +12 -19
  2. package/.devcontainer/devcontainer.json +24 -17
  3. package/Dockerfile +3 -1
  4. package/README.md +7 -5
  5. package/dist/Auth.js +2 -8
  6. package/dist/AuthServer.js +2 -4
  7. package/dist/Command.js +1 -1
  8. package/dist/cli/Cli.js +25 -10
  9. package/dist/m365/aad/commands/app/app-add.js +258 -249
  10. package/dist/m365/aad/commands/app/app-get.js +65 -62
  11. package/dist/m365/aad/commands/app/app-remove.js +22 -23
  12. package/dist/m365/aad/commands/app/app-role-add.js +35 -34
  13. package/dist/m365/aad/commands/app/app-role-list.js +22 -23
  14. package/dist/m365/aad/commands/app/app-role-remove.js +76 -73
  15. package/dist/m365/aad/commands/app/app-set.js +103 -103
  16. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +16 -14
  17. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +43 -52
  18. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +20 -16
  19. package/dist/m365/aad/commands/o365group/o365group-add.js +40 -37
  20. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +7 -6
  21. package/dist/m365/aad/commands/o365group/o365group-list.js +6 -11
  22. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +7 -8
  23. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +23 -24
  24. package/dist/m365/aad/commands/o365group/o365group-set.js +15 -20
  25. package/dist/m365/aad/commands/o365group/o365group-teamify.js +15 -16
  26. package/dist/m365/aad/commands/o365group/o365group-user-list.js +17 -10
  27. package/dist/m365/aad/commands/o365group/o365group-user-set.js +17 -10
  28. package/dist/m365/aad/commands/policy/policy-list.js +12 -13
  29. package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +1 -3
  30. package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +19 -20
  31. package/dist/m365/aad/commands/sp/sp-add.js +22 -23
  32. package/dist/m365/aad/commands/sp/sp-get.js +22 -23
  33. package/dist/m365/aad/commands/sp/sp-list.js +78 -0
  34. package/dist/m365/aad/commands.js +1 -0
  35. package/dist/m365/app/commands/app-open.js +4 -14
  36. package/dist/m365/base/AzmgmtItemsListCommand.js +31 -33
  37. package/dist/m365/booking/commands/business/business-get.js +14 -15
  38. package/dist/m365/cli/commands/cli-issue.js +4 -10
  39. package/dist/m365/cli/commands/cli-reconsent.js +2 -8
  40. package/dist/m365/cli/commands/config/config-set.js +1 -2
  41. package/dist/m365/commands/docs.js +2 -8
  42. package/dist/m365/commands/login.js +20 -0
  43. package/dist/m365/file/commands/convert/convert-pdf.js +147 -143
  44. package/dist/m365/file/commands/file-add.js +87 -93
  45. package/dist/m365/file/commands/file-list.js +49 -55
  46. package/dist/m365/flow/commands/flow-list.js +30 -12
  47. package/dist/m365/flow/commands/flow-remove.js +2 -3
  48. package/dist/m365/flow/commands/run/run-resubmit.js +11 -10
  49. package/dist/m365/onedrive/commands/onedrive-list.js +21 -32
  50. package/dist/m365/outlook/commands/message/message-list.js +18 -23
  51. package/dist/m365/outlook/commands/message/message-move.js +15 -20
  52. package/dist/m365/pa/commands/app/app-export.js +3 -4
  53. package/dist/m365/pa/commands/app/app-get.js +11 -9
  54. package/dist/m365/pa/commands/app/app-remove.js +1 -1
  55. package/dist/m365/pa/commands/pcf/pcf-init.js +1 -2
  56. package/dist/m365/pa/commands/solution/solution-init.js +1 -2
  57. package/dist/m365/pa/commands/solution/solution-reference-add.js +1 -2
  58. package/dist/m365/planner/commands/bucket/bucket-add.js +15 -13
  59. package/dist/m365/planner/commands/bucket/bucket-get.js +27 -28
  60. package/dist/m365/planner/commands/bucket/bucket-list.js +15 -13
  61. package/dist/m365/planner/commands/bucket/bucket-remove.js +33 -34
  62. package/dist/m365/planner/commands/bucket/bucket-set.js +33 -34
  63. package/dist/m365/planner/commands/plan/plan-add.js +49 -52
  64. package/dist/m365/planner/commands/plan/plan-set.js +19 -20
  65. package/dist/m365/planner/commands/task/task-add.js +75 -78
  66. package/dist/m365/planner/commands/task/task-checklistitem-add.js +11 -10
  67. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +10 -8
  68. package/dist/m365/planner/commands/task/task-get.js +53 -56
  69. package/dist/m365/planner/commands/task/task-list.js +23 -24
  70. package/dist/m365/planner/commands/task/task-reference-add.js +11 -10
  71. package/dist/m365/planner/commands/task/task-reference-remove.js +13 -14
  72. package/dist/m365/planner/commands/task/task-remove.js +44 -48
  73. package/dist/m365/planner/commands/task/task-set.js +83 -87
  74. package/dist/m365/pp/commands/managementapp/managementapp-add.js +19 -20
  75. package/dist/m365/purview/commands/retentionevent/retentionevent-add.js +3 -8
  76. package/dist/m365/purview/commands/retentionevent/retentionevent-get.js +1 -6
  77. package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +1 -6
  78. package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +1 -6
  79. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-add.js +1 -6
  80. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-get.js +1 -6
  81. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +1 -6
  82. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-remove.js +1 -6
  83. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-set.js +1 -6
  84. package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +0 -5
  85. package/dist/m365/purview/commands/retentionlabel/retentionlabel-get.js +0 -5
  86. package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +0 -5
  87. package/dist/m365/purview/commands/retentionlabel/retentionlabel-remove.js +19 -22
  88. package/dist/m365/purview/commands/retentionlabel/retentionlabel-set.js +0 -5
  89. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +35 -34
  90. package/dist/m365/spfx/commands/project/JsonRule.js +1 -1
  91. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.3.js +25 -0
  92. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.4.js +25 -0
  93. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.0-beta.1.js +23 -0
  94. package/dist/m365/spfx/commands/project/project-doctor.js +4 -1
  95. package/dist/m365/spfx/commands/project/project-externalize/rules/DynamicRule.js +59 -51
  96. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
  97. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002027_DEVDEP_fluentui_react.js +14 -0
  98. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +1 -0
  99. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.3.js +59 -0
  100. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.4.js +55 -0
  101. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.0-beta.1.js +61 -0
  102. package/dist/m365/spfx/commands/project/project-upgrade.js +18 -13
  103. package/dist/m365/spfx/commands/spfx-doctor.js +45 -0
  104. package/dist/m365/spo/commands/app/app-teamspackage-download.js +17 -24
  105. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +154 -0
  106. package/dist/m365/spo/commands/apppage/apppage-set.js +1 -1
  107. package/dist/m365/spo/commands/commandset/commandset-set.js +11 -2
  108. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +65 -94
  109. package/dist/m365/spo/commands/customaction/customaction-clear.js +4 -12
  110. package/dist/m365/spo/commands/customaction/customaction-remove.js +12 -23
  111. package/dist/m365/spo/commands/customaction/customaction-set.js +21 -29
  112. package/dist/m365/spo/commands/file/file-add.js +133 -133
  113. package/dist/m365/spo/commands/file/file-checkout-undo.js +119 -0
  114. package/dist/m365/spo/commands/file/file-rename.js +11 -9
  115. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +2 -2
  116. package/dist/m365/spo/commands/file/file-roleassignment-add.js +41 -61
  117. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +3 -0
  118. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +3 -0
  119. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +3 -0
  120. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +23 -21
  121. package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
  122. package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
  123. package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
  124. package/dist/m365/spo/commands/folder/folder-remove.js +30 -28
  125. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +3 -3
  126. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
  127. package/dist/m365/spo/commands/group/group-member-add.js +17 -16
  128. package/dist/m365/spo/commands/group/group-set.js +20 -20
  129. package/dist/m365/spo/commands/homesite/homesite-remove.js +1 -1
  130. package/dist/m365/spo/commands/hubsite/hubsite-get.js +33 -31
  131. package/dist/m365/spo/commands/hubsite/hubsite-list.js +18 -29
  132. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +3 -0
  133. package/dist/m365/spo/commands/list/list-add.js +1 -1
  134. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +1 -1
  135. package/dist/m365/spo/commands/list/list-roleassignment-add.js +24 -69
  136. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +33 -38
  137. package/dist/m365/spo/commands/list/list-sensitivitylabel-ensure.js +137 -0
  138. package/dist/m365/spo/commands/list/list-view-field-add.js +12 -10
  139. package/dist/m365/spo/commands/list/list-view-field-remove.js +12 -10
  140. package/dist/m365/spo/commands/list/list-view-field-set.js +12 -10
  141. package/dist/m365/spo/commands/list/list-view-remove.js +3 -0
  142. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +41 -61
  143. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +71 -74
  144. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +36 -34
  145. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +32 -30
  146. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +24 -22
  147. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +29 -27
  148. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +26 -24
  149. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +34 -40
  150. package/dist/m365/spo/commands/page/page-remove.js +33 -31
  151. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +25 -23
  152. package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -3
  153. package/dist/m365/spo/commands/site/site-set.js +10 -2
  154. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +23 -21
  155. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +24 -22
  156. package/dist/m365/spo/commands/spo-search.js +7 -15
  157. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +29 -27
  158. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +12 -15
  159. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +234 -0
  160. package/dist/m365/spo/commands/tenant/tenant-commandset-list.js +50 -0
  161. package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +1 -1
  162. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +48 -48
  163. package/dist/m365/spo/commands.js +5 -0
  164. package/dist/m365/teams/commands/app/app-install.js +23 -21
  165. package/dist/m365/teams/commands/app/app-remove.js +3 -0
  166. package/dist/m365/teams/commands/app/app-uninstall.js +3 -0
  167. package/dist/m365/teams/commands/app/app-update.js +15 -16
  168. package/dist/m365/teams/commands/channel/channel-add.js +40 -39
  169. package/dist/m365/teams/commands/channel/channel-get.js +23 -25
  170. package/dist/m365/teams/commands/channel/channel-list.js +6 -7
  171. package/dist/m365/teams/commands/channel/channel-member-add.js +61 -60
  172. package/dist/m365/teams/commands/channel/channel-member-list.js +20 -22
  173. package/dist/m365/teams/commands/channel/channel-member-remove.js +43 -48
  174. package/dist/m365/teams/commands/channel/channel-member-set.js +36 -39
  175. package/dist/m365/teams/commands/channel/channel-remove.js +4 -1
  176. package/dist/m365/teams/commands/chat/chat-get.js +4 -4
  177. package/dist/m365/teams/commands/chat/chat-message-send.js +4 -4
  178. package/dist/m365/teams/commands/funsettings/funsettings-list.js +3 -0
  179. package/dist/m365/teams/commands/funsettings/funsettings-set.js +3 -0
  180. package/dist/m365/teams/commands/tab/tab-get.js +34 -37
  181. package/dist/m365/teams/commands/team/team-archive.js +6 -7
  182. package/dist/m365/teams/commands/team/team-get.js +6 -7
  183. package/dist/m365/teams/commands/team/team-list.js +9 -11
  184. package/dist/m365/teams/commands/team/team-remove.js +6 -7
  185. package/dist/m365/teams/commands/team/team-unarchive.js +6 -7
  186. package/dist/m365/teams/commands/user/user-app-list.js +13 -11
  187. package/dist/m365/teams/commands/user/user-list.js +7 -4
  188. package/dist/m365/tenant/commands/security/security-alerts-list.js +25 -26
  189. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +13 -14
  190. package/dist/m365/todo/commands/list/list-remove.js +39 -36
  191. package/dist/m365/todo/commands/list/list-set.js +16 -14
  192. package/dist/m365/todo/commands/task/task-add.js +14 -14
  193. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -7
  194. package/dist/settingsNames.js +0 -1
  195. package/dist/utils/browserUtil.js +23 -0
  196. package/dist/utils/md.js +1 -3
  197. package/dist/utils/spo.js +74 -0
  198. package/docs/docs/_clisettings.mdx +17 -0
  199. package/docs/docs/cmd/_global.mdx +1 -1
  200. package/docs/docs/cmd/aad/app/app-add.mdx +113 -0
  201. package/docs/docs/cmd/aad/app/app-get.mdx +217 -0
  202. package/docs/docs/cmd/aad/app/app-list.mdx +21 -0
  203. package/docs/docs/cmd/aad/app/app-role-add.mdx +4 -0
  204. package/docs/docs/cmd/aad/app/app-role-list.mdx +63 -0
  205. package/docs/docs/cmd/aad/app/app-role-remove.mdx +4 -0
  206. package/docs/docs/cmd/aad/app/app-set.mdx +4 -0
  207. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +61 -0
  208. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.mdx +59 -0
  209. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +4 -0
  210. package/docs/docs/cmd/aad/group/group-get.mdx +24 -0
  211. package/docs/docs/cmd/aad/group/group-list.mdx +98 -0
  212. package/docs/docs/cmd/aad/groupsetting/groupsetting-add.mdx +114 -0
  213. package/docs/docs/cmd/aad/groupsetting/groupsetting-get.mdx +115 -0
  214. package/docs/docs/cmd/aad/groupsetting/groupsetting-list.mdx +115 -0
  215. package/docs/docs/cmd/aad/groupsetting/groupsetting-remove.mdx +4 -0
  216. package/docs/docs/cmd/aad/groupsetting/groupsetting-set.mdx +4 -0
  217. package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-get.mdx +63 -0
  218. package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-list.mdx +63 -0
  219. package/docs/docs/cmd/aad/o365group/o365group-add.mdx +122 -0
  220. package/docs/docs/cmd/aad/o365group/o365group-conversation-list.mdx +68 -0
  221. package/docs/docs/cmd/aad/o365group/o365group-conversation-post-list.mdx +77 -0
  222. package/docs/docs/cmd/aad/o365group/o365group-get.mdx +122 -0
  223. package/docs/docs/cmd/aad/o365group/o365group-list.mdx +99 -0
  224. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-clear.mdx +4 -0
  225. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.mdx +96 -0
  226. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-remove.mdx +4 -0
  227. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.mdx +4 -0
  228. package/docs/docs/cmd/aad/o365group/o365group-remove.mdx +4 -0
  229. package/docs/docs/cmd/aad/o365group/o365group-renew.mdx +4 -0
  230. package/docs/docs/cmd/aad/o365group/o365group-report-activitycounts.mdx +48 -0
  231. package/docs/docs/cmd/aad/o365group/o365group-report-activitydetail.mdx +60 -0
  232. package/docs/docs/cmd/aad/o365group/o365group-report-activityfilecounts.mdx +46 -0
  233. package/docs/docs/cmd/aad/o365group/o365group-report-activitygroupcounts.mdx +46 -0
  234. package/docs/docs/cmd/aad/o365group/o365group-report-activitystorage.mdx +46 -0
  235. package/docs/docs/cmd/aad/o365group/o365group-set.mdx +4 -0
  236. package/docs/docs/cmd/aad/o365group/o365group-teamify.mdx +4 -0
  237. package/docs/docs/cmd/aad/o365group/o365group-user-add.mdx +4 -0
  238. package/docs/docs/cmd/aad/o365group/o365group-user-list.mdx +56 -0
  239. package/docs/docs/cmd/aad/o365group/o365group-user-remove.mdx +4 -0
  240. package/docs/docs/cmd/aad/o365group/o365group-user-set.mdx +8 -4
  241. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-add.mdx +4 -0
  242. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-list.mdx +59 -0
  243. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.mdx +4 -0
  244. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.mdx +4 -0
  245. package/docs/docs/cmd/aad/policy/policy-list.mdx +77 -0
  246. package/docs/docs/cmd/aad/siteclassification/siteclassification-disable.mdx +4 -0
  247. package/docs/docs/cmd/aad/siteclassification/siteclassification-enable.mdx +4 -0
  248. package/docs/docs/cmd/aad/siteclassification/siteclassification-get.mdx +57 -0
  249. package/docs/docs/cmd/aad/siteclassification/siteclassification-set.mdx +4 -0
  250. package/docs/docs/cmd/aad/sp/sp-add.mdx +136 -0
  251. package/docs/docs/cmd/aad/sp/sp-get.mdx +166 -0
  252. package/docs/docs/cmd/aad/sp/sp-list.mdx +162 -0
  253. package/docs/docs/cmd/aad/user/user-get.mdx +75 -0
  254. package/docs/docs/cmd/aad/user/user-guest-add.mdx +23 -0
  255. package/docs/docs/cmd/aad/user/user-hibp.mdx +82 -0
  256. package/docs/docs/cmd/aad/user/user-license-add.mdx +2 -2
  257. package/docs/docs/cmd/aad/user/user-license-remove.mdx +2 -2
  258. package/docs/docs/cmd/aad/user/user-list.mdx +52 -0
  259. package/docs/docs/cmd/aad/user/user-password-validate.mdx +67 -0
  260. package/docs/docs/cmd/aad/user/user-signin-list.mdx +131 -0
  261. package/docs/docs/cmd/flow/flow-list.mdx +15 -0
  262. package/docs/docs/cmd/login.mdx +39 -0
  263. package/docs/docs/cmd/pa/app/app-get.mdx +1 -1
  264. package/docs/docs/cmd/pa/app/app-list.mdx +1 -1
  265. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +1 -1
  266. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +1 -1
  267. package/docs/docs/cmd/pp/card/card-clone.mdx +1 -1
  268. package/docs/docs/cmd/pp/card/card-get.mdx +1 -1
  269. package/docs/docs/cmd/pp/card/card-list.mdx +1 -1
  270. package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +1 -1
  271. package/docs/docs/cmd/pp/chatbot/chatbot-list.mdx +1 -1
  272. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +1 -1
  273. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +1 -1
  274. package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +1 -1
  275. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.mdx +1 -1
  276. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.mdx +1 -1
  277. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +0 -6
  278. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +0 -6
  279. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +0 -7
  280. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +0 -6
  281. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +0 -6
  282. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +0 -6
  283. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +0 -6
  284. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +0 -6
  285. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +0 -6
  286. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +0 -6
  287. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +0 -6
  288. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +0 -6
  289. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +0 -6
  290. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +0 -6
  291. package/docs/docs/cmd/setup.mdx +2 -0
  292. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  293. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +72 -0
  294. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +12 -3
  295. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +55 -0
  296. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  297. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  298. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +73 -0
  299. package/docs/docs/cmd/spo/site/site-add.mdx +35 -0
  300. package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +5 -1
  301. package/docs/docs/cmd/spo/site/site-appcatalog-list.mdx +14 -0
  302. package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +4 -0
  303. package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +68 -0
  304. package/docs/docs/cmd/spo/site/site-apppermission-get.mdx +55 -0
  305. package/docs/docs/cmd/spo/site/site-apppermission-list.mdx +55 -0
  306. package/docs/docs/cmd/spo/site/site-apppermission-remove.mdx +4 -0
  307. package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +66 -0
  308. package/docs/docs/cmd/spo/site/site-chrome-set.mdx +4 -0
  309. package/docs/docs/cmd/spo/site/site-ensure.mdx +70 -0
  310. package/docs/docs/cmd/spo/site/site-get.mdx +179 -0
  311. package/docs/docs/cmd/spo/site/site-groupify.mdx +54 -0
  312. package/docs/docs/cmd/spo/site/site-hubsite-connect.mdx +4 -0
  313. package/docs/docs/cmd/spo/site/site-hubsite-disconnect.mdx +4 -0
  314. package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.mdx +5 -1
  315. package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.mdx +4 -0
  316. package/docs/docs/cmd/spo/site/site-list.mdx +303 -0
  317. package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +80 -0
  318. package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +4 -0
  319. package/docs/docs/cmd/spo/site/site-remove.mdx +4 -0
  320. package/docs/docs/cmd/spo/site/site-rename.mdx +92 -0
  321. package/docs/docs/cmd/spo/site/site-set.mdx +13 -0
  322. package/docs/docs/cmd/spo/sitedesign/sitedesign-add.mdx +116 -0
  323. package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.mdx +125 -0
  324. package/docs/docs/cmd/spo/sitedesign/sitedesign-get.mdx +117 -0
  325. package/docs/docs/cmd/spo/sitedesign/sitedesign-list.mdx +94 -0
  326. package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.mdx +4 -0
  327. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.mdx +4 -0
  328. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.mdx +54 -0
  329. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.mdx +4 -0
  330. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.mdx +66 -0
  331. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +65 -0
  332. package/docs/docs/cmd/spo/sitedesign/sitedesign-set.mdx +117 -0
  333. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.mdx +61 -0
  334. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.mdx +60 -0
  335. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.mdx +4 -0
  336. package/docs/docs/cmd/spo/sitescript/sitescript-add.mdx +75 -0
  337. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +62 -0
  338. package/docs/docs/cmd/spo/sitescript/sitescript-list.mdx +60 -0
  339. package/docs/docs/cmd/spo/sitescript/sitescript-remove.mdx +4 -0
  340. package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +63 -0
  341. package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +53 -0
  342. package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +54 -0
  343. package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +4 -0
  344. package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +4 -0
  345. package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +4 -0
  346. package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +35 -0
  347. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +1 -1
  348. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
  349. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
  350. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +90 -0
  351. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  352. package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +2 -2
  353. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +114 -0
  354. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
  355. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +2 -2
  356. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +67 -0
  357. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +4 -0
  358. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +50 -0
  359. package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +729 -0
  360. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +11 -0
  361. package/docs/docs/cmd/spo/theme/theme-apply.mdx +35 -0
  362. package/docs/docs/cmd/spo/theme/theme-get.mdx +74 -0
  363. package/docs/docs/cmd/spo/theme/theme-list.mdx +52 -0
  364. package/docs/docs/cmd/spo/theme/theme-remove.mdx +4 -0
  365. package/docs/docs/cmd/spo/theme/theme-set.mdx +4 -0
  366. package/docs/docs/cmd/spo/userprofile/userprofile-get.mdx +1 -1
  367. package/docs/docs/cmd/status.mdx +6 -3
  368. package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +12 -2
  369. package/npm-shrinkwrap.json +362 -335
  370. package/package.json +20 -19
  371. package/dist/m365/aad/commands/approleassignment/AppRoleAssignment.js +0 -3
  372. package/dist/m365/aad/commands/approleassignment/ServicePrincipal.js +0 -3
  373. package/dist/m365/aad/commands/groupsetting/GroupSetting.js +0 -3
  374. package/dist/m365/aad/commands/groupsettingtemplate/GroupSettingTemplate.js +0 -3
  375. package/dist/m365/aad/commands/siteclassification/DirectorySetting.js +0 -10
  376. package/dist/m365/aad/commands/siteclassification/DirectorySettingTemplatesRsp.js +0 -3
  377. package/dist/m365/aad/commands/siteclassification/DirectorySettingValue.js +0 -3
  378. package/dist/m365/outlook/Message.js +0 -3
  379. package/dist/m365/spo/commands/site/SitePermission.js +0 -3
  380. package/dist/m365/teams/Channel.js +0 -3
  381. package/dist/m365/teams/ConversationMember.js +0 -3
  382. package/dist/m365/teams/Message.js +0 -3
  383. package/dist/m365/teams/Reply.js +0 -3
  384. package/dist/m365/teams/Tab.js +0 -3
  385. package/dist/m365/teams/Team.js +0 -3
  386. package/dist/m365/teams/TeamsApp.js +0 -3
  387. package/dist/m365/teams/TeamsAppInstallation.js +0 -3
  388. package/dist/m365/teams/TeamsTabConfiguration.js +0 -3
  389. package/dist/m365/teams/commands/Meeting.js +0 -3
@@ -15,13 +15,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _PurviewRetentionEventTypeRemoveCommand_instances, _PurviewRetentionEventTypeRemoveCommand_initTelemetry, _PurviewRetentionEventTypeRemoveCommand_initOptions, _PurviewRetentionEventTypeRemoveCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const Auth_1 = require("../../../../Auth");
19
18
  const Cli_1 = require("../../../../cli/Cli");
20
19
  const validation_1 = require("../../../../utils/validation");
21
20
  const request_1 = require("../../../../request");
22
21
  const GraphCommand_1 = require("../../../base/GraphCommand");
23
22
  const commands_1 = require("../../commands");
24
- const accessToken_1 = require("../../../../utils/accessToken");
25
23
  class PurviewRetentionEventTypeRemoveCommand extends GraphCommand_1.default {
26
24
  get name() {
27
25
  return commands_1.default.RETENTIONEVENTTYPE_REMOVE;
@@ -38,13 +36,10 @@ class PurviewRetentionEventTypeRemoveCommand extends GraphCommand_1.default {
38
36
  }
39
37
  commandAction(logger, args) {
40
38
  return __awaiter(this, void 0, void 0, function* () {
41
- if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
42
- this.handleError('This command does not support application permissions.');
43
- }
44
39
  const removeRetentionEventType = () => __awaiter(this, void 0, void 0, function* () {
45
40
  try {
46
41
  const requestOptions = {
47
- url: `${this.resource}/beta/security/triggerTypes/retentionEventTypes/${args.options.id}`,
42
+ url: `${this.resource}/v1.0/security/triggerTypes/retentionEventTypes/${args.options.id}`,
48
43
  headers: {
49
44
  accept: 'application/json;odata.metadata=none'
50
45
  },
@@ -15,12 +15,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _PurviewRetentionEventTypeSetCommand_instances, _PurviewRetentionEventTypeSetCommand_initTelemetry, _PurviewRetentionEventTypeSetCommand_initOptions, _PurviewRetentionEventTypeSetCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const Auth_1 = require("../../../../Auth");
19
18
  const validation_1 = require("../../../../utils/validation");
20
19
  const request_1 = require("../../../../request");
21
20
  const GraphCommand_1 = require("../../../base/GraphCommand");
22
21
  const commands_1 = require("../../commands");
23
- const accessToken_1 = require("../../../../utils/accessToken");
24
22
  class PurviewRetentionEventTypeSetCommand extends GraphCommand_1.default {
25
23
  get name() {
26
24
  return commands_1.default.RETENTIONEVENTTYPE_SET;
@@ -37,9 +35,6 @@ class PurviewRetentionEventTypeSetCommand extends GraphCommand_1.default {
37
35
  }
38
36
  commandAction(logger, args) {
39
37
  return __awaiter(this, void 0, void 0, function* () {
40
- if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
41
- this.handleError('This command does not support application permissions.');
42
- }
43
38
  if (this.verbose) {
44
39
  logger.log(`Updating retention event type with id ${args.options.id}`);
45
40
  }
@@ -48,7 +43,7 @@ class PurviewRetentionEventTypeSetCommand extends GraphCommand_1.default {
48
43
  description: args.options.description
49
44
  };
50
45
  const requestOptions = {
51
- url: `${this.resource}/beta/security/triggerTypes/retentionEventTypes/${args.options.id}`,
46
+ url: `${this.resource}/v1.0/security/triggerTypes/retentionEventTypes/${args.options.id}`,
52
47
  headers: {
53
48
  accept: 'application/json'
54
49
  },
@@ -15,9 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _PurviewRetentionLabelAddCommand_instances, _PurviewRetentionLabelAddCommand_initTelemetry, _PurviewRetentionLabelAddCommand_initOptions, _PurviewRetentionLabelAddCommand_initValidators, _PurviewRetentionLabelAddCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const Auth_1 = require("../../../../Auth");
19
18
  const request_1 = require("../../../../request");
20
- const accessToken_1 = require("../../../../utils/accessToken");
21
19
  const GraphCommand_1 = require("../../../base/GraphCommand");
22
20
  const commands_1 = require("../../commands");
23
21
  const odata_1 = require("../../../../utils/odata");
@@ -38,9 +36,6 @@ class PurviewRetentionLabelAddCommand extends GraphCommand_1.default {
38
36
  }
39
37
  commandAction(logger, args) {
40
38
  return __awaiter(this, void 0, void 0, function* () {
41
- if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
42
- this.handleError('This command does not support application permissions.');
43
- }
44
39
  const retentionTrigger = args.options.retentionTrigger ? args.options.retentionTrigger : 'dateLabeled';
45
40
  const defaultRecordBehavior = args.options.defaultRecordBehavior ? args.options.defaultRecordBehavior : 'startLocked';
46
41
  const requestBody = {
@@ -15,12 +15,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _PurviewRetentionLabelGetCommand_instances, _PurviewRetentionLabelGetCommand_initOptions, _PurviewRetentionLabelGetCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const Auth_1 = require("../../../../Auth");
19
18
  const GraphCommand_1 = require("../../../base/GraphCommand");
20
19
  const commands_1 = require("../../commands");
21
20
  const request_1 = require("../../../../request");
22
21
  const validation_1 = require("../../../../utils/validation");
23
- const accessToken_1 = require("../../../../utils/accessToken");
24
22
  class PurviewRetentionLabelGetCommand extends GraphCommand_1.default {
25
23
  get name() {
26
24
  return commands_1.default.RETENTIONLABEL_GET;
@@ -36,9 +34,6 @@ class PurviewRetentionLabelGetCommand extends GraphCommand_1.default {
36
34
  }
37
35
  commandAction(logger, args) {
38
36
  return __awaiter(this, void 0, void 0, function* () {
39
- if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
40
- this.handleError('This command does not support application permissions.');
41
- }
42
37
  try {
43
38
  if (this.verbose) {
44
39
  logger.logToStderr(`Retrieving retention label with id ${args.options.id}`);
@@ -9,8 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const Auth_1 = require("../../../../Auth");
13
- const accessToken_1 = require("../../../../utils/accessToken");
14
12
  const odata_1 = require("../../../../utils/odata");
15
13
  const GraphCommand_1 = require("../../../base/GraphCommand");
16
14
  const commands_1 = require("../../commands");
@@ -26,9 +24,6 @@ class PurviewRetentionLabelListCommand extends GraphCommand_1.default {
26
24
  }
27
25
  commandAction(logger) {
28
26
  return __awaiter(this, void 0, void 0, function* () {
29
- if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
30
- this.handleError('This command does not support application permissions.');
31
- }
32
27
  try {
33
28
  const items = yield odata_1.odata.getAllItems(`${this.resource}/beta/security/labels/retentionLabels`);
34
29
  logger.log(items);
@@ -15,13 +15,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _PurviewRetentionLabelRemoveCommand_instances, _PurviewRetentionLabelRemoveCommand_initTelemetry, _PurviewRetentionLabelRemoveCommand_initOptions, _PurviewRetentionLabelRemoveCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const Auth_1 = require("../../../../Auth");
19
18
  const Cli_1 = require("../../../../cli/Cli");
20
19
  const validation_1 = require("../../../../utils/validation");
21
20
  const request_1 = require("../../../../request");
22
21
  const GraphCommand_1 = require("../../../base/GraphCommand");
23
22
  const commands_1 = require("../../commands");
24
- const accessToken_1 = require("../../../../utils/accessToken");
25
23
  class PurviewRetentionLabelRemoveCommand extends GraphCommand_1.default {
26
24
  get name() {
27
25
  return commands_1.default.RETENTIONLABEL_REMOVE;
@@ -38,26 +36,8 @@ class PurviewRetentionLabelRemoveCommand extends GraphCommand_1.default {
38
36
  }
39
37
  commandAction(logger, args) {
40
38
  return __awaiter(this, void 0, void 0, function* () {
41
- if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
42
- this.handleError('This command does not support application permissions.');
43
- }
44
- const removeRetentionLabel = () => __awaiter(this, void 0, void 0, function* () {
45
- try {
46
- const requestOptions = {
47
- url: `${this.resource}/beta/security/labels/retentionLabels/${args.options.id}`,
48
- headers: {
49
- accept: 'application/json;odata.metadata=none'
50
- },
51
- responseType: 'json'
52
- };
53
- yield request_1.default.delete(requestOptions);
54
- }
55
- catch (err) {
56
- this.handleRejectedODataJsonPromise(err);
57
- }
58
- });
59
39
  if (args.options.confirm) {
60
- yield removeRetentionLabel();
40
+ yield this.removeRetentionLabel(args);
61
41
  }
62
42
  else {
63
43
  const result = yield Cli_1.Cli.prompt({
@@ -67,11 +47,28 @@ class PurviewRetentionLabelRemoveCommand extends GraphCommand_1.default {
67
47
  message: `Are you sure you want to remove the retention label ${args.options.id}?`
68
48
  });
69
49
  if (result.continue) {
70
- yield removeRetentionLabel();
50
+ yield this.removeRetentionLabel(args);
71
51
  }
72
52
  }
73
53
  });
74
54
  }
55
+ removeRetentionLabel(args) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ try {
58
+ const requestOptions = {
59
+ url: `${this.resource}/beta/security/labels/retentionLabels/${args.options.id}`,
60
+ headers: {
61
+ accept: 'application/json;odata.metadata=none'
62
+ },
63
+ responseType: 'json'
64
+ };
65
+ yield request_1.default.delete(requestOptions);
66
+ }
67
+ catch (err) {
68
+ this.handleRejectedODataJsonPromise(err);
69
+ }
70
+ });
71
+ }
75
72
  }
76
73
  _PurviewRetentionLabelRemoveCommand_instances = new WeakSet(), _PurviewRetentionLabelRemoveCommand_initTelemetry = function _PurviewRetentionLabelRemoveCommand_initTelemetry() {
77
74
  this.telemetry.push((args) => {
@@ -15,12 +15,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _PurviewRetentionLabelSetCommand_instances, _PurviewRetentionLabelSetCommand_initTelemetry, _PurviewRetentionLabelSetCommand_initOptions, _PurviewRetentionLabelSetCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const Auth_1 = require("../../../../Auth");
19
18
  const validation_1 = require("../../../../utils/validation");
20
19
  const request_1 = require("../../../../request");
21
20
  const GraphCommand_1 = require("../../../base/GraphCommand");
22
21
  const commands_1 = require("../../commands");
23
- const accessToken_1 = require("../../../../utils/accessToken");
24
22
  class PurviewRetentionLabelSetCommand extends GraphCommand_1.default {
25
23
  get name() {
26
24
  return commands_1.default.RETENTIONLABEL_SET;
@@ -41,9 +39,6 @@ class PurviewRetentionLabelSetCommand extends GraphCommand_1.default {
41
39
  }
42
40
  commandAction(logger, args) {
43
41
  return __awaiter(this, void 0, void 0, function* () {
44
- if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
45
- this.handleError('This command does not support application permissions.');
46
- }
47
42
  if (this.verbose) {
48
43
  logger.log(`Starting to update retention label with id ${args.options.id}`);
49
44
  }
@@ -35,48 +35,31 @@ class SearchExternalConnectionRemoveCommand extends GraphCommand_1.default {
35
35
  __classPrivateFieldGet(this, _SearchExternalConnectionRemoveCommand_instances, "m", _SearchExternalConnectionRemoveCommand_initOptionSets).call(this);
36
36
  }
37
37
  getExternalConnectionId(args) {
38
- if (args.options.id) {
39
- return Promise.resolve(args.options.id);
40
- }
41
- const requestOptions = {
42
- url: `${this.resource}/v1.0/external/connections?$filter=name eq '${formatting_1.formatting.encodeQueryParameter(args.options.name)}'&$select=id`,
43
- headers: {
44
- accept: 'application/json;odata.metadata=none'
45
- },
46
- responseType: 'json'
47
- };
48
- return request_1.default
49
- .get(requestOptions)
50
- .then((res) => {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ if (args.options.id) {
40
+ return args.options.id;
41
+ }
42
+ const requestOptions = {
43
+ url: `${this.resource}/v1.0/external/connections?$filter=name eq '${formatting_1.formatting.encodeQueryParameter(args.options.name)}'&$select=id`,
44
+ headers: {
45
+ accept: 'application/json;odata.metadata=none'
46
+ },
47
+ responseType: 'json'
48
+ };
49
+ const res = yield request_1.default.get(requestOptions);
51
50
  if (res.value.length === 1) {
52
- return Promise.resolve(res.value[0].id);
51
+ return res.value[0].id;
53
52
  }
54
53
  if (res.value.length === 0) {
55
- return Promise.reject(`The specified connection does not exist in Microsoft Search`);
54
+ throw `The specified connection does not exist in Microsoft Search`;
56
55
  }
57
- return Promise.reject(`Multiple external connections with name ${args.options.name} found. Please disambiguate (IDs): ${res.value.map(x => x.id).join(', ')}`);
56
+ throw `Multiple external connections with name ${args.options.name} found. Please disambiguate (IDs): ${res.value.map(x => x.id).join(', ')}`;
58
57
  });
59
58
  }
60
59
  commandAction(logger, args) {
61
60
  return __awaiter(this, void 0, void 0, function* () {
62
- const removeExternalConnection = () => __awaiter(this, void 0, void 0, function* () {
63
- try {
64
- const externalConnectionId = yield this.getExternalConnectionId(args);
65
- const requestOptions = {
66
- url: `${this.resource}/v1.0/external/connections/${formatting_1.formatting.encodeQueryParameter(externalConnectionId)}`,
67
- headers: {
68
- accept: 'application/json;odata.metadata=none'
69
- },
70
- responseType: 'json'
71
- };
72
- yield request_1.default.delete(requestOptions);
73
- }
74
- catch (err) {
75
- this.handleRejectedODataJsonPromise(err);
76
- }
77
- });
78
61
  if (args.options.confirm) {
79
- yield removeExternalConnection();
62
+ yield this.removeExternalConnection(args);
80
63
  }
81
64
  else {
82
65
  const result = yield Cli_1.Cli.prompt({
@@ -86,11 +69,29 @@ class SearchExternalConnectionRemoveCommand extends GraphCommand_1.default {
86
69
  message: `Are you sure you want to remove the external connection '${args.options.id || args.options.name}'?`
87
70
  });
88
71
  if (result.continue) {
89
- yield removeExternalConnection();
72
+ yield this.removeExternalConnection(args);
90
73
  }
91
74
  }
92
75
  });
93
76
  }
77
+ removeExternalConnection(args) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ try {
80
+ const externalConnectionId = yield this.getExternalConnectionId(args);
81
+ const requestOptions = {
82
+ url: `${this.resource}/v1.0/external/connections/${formatting_1.formatting.encodeQueryParameter(externalConnectionId)}`,
83
+ headers: {
84
+ accept: 'application/json;odata.metadata=none'
85
+ },
86
+ responseType: 'json'
87
+ };
88
+ yield request_1.default.delete(requestOptions);
89
+ }
90
+ catch (err) {
91
+ this.handleRejectedODataJsonPromise(err);
92
+ }
93
+ });
94
+ }
94
95
  }
95
96
  _SearchExternalConnectionRemoveCommand_instances = new WeakSet(), _SearchExternalConnectionRemoveCommand_initTelemetry = function _SearchExternalConnectionRemoveCommand_initTelemetry() {
96
97
  this.telemetry.push((args) => {
@@ -39,7 +39,7 @@ class JsonRule extends Rule_1.Rule {
39
39
  return this.getAstNodeForProperty(jsonFile.ast, jsonProperty);
40
40
  }
41
41
  getAstNodeForProperty(node, jsonProperty) {
42
- if (node.children.length === 0) {
42
+ if (!node.children || node.children.length === 0) {
43
43
  return node;
44
44
  }
45
45
  if (jsonProperty === '') {
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
4
+ const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
5
+ const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
6
+ const FN001035_DEP_fluentui_react_1 = require("./rules/FN001035_DEP_fluentui_react");
7
+ const FN002004_DEVDEP_gulp_1 = require("./rules/FN002004_DEVDEP_gulp");
8
+ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
9
+ const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
10
+ const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
11
+ const FN002016_DEVDEP_types_react_dom_1 = require("./rules/FN002016_DEVDEP_types_react_dom");
12
+ const FN002019_DEVDEP_microsoft_rush_stack_compiler_1 = require("./rules/FN002019_DEVDEP_microsoft_rush_stack_compiler");
13
+ module.exports = [
14
+ new FN001008_DEP_react_1.FN001008_DEP_react('17'),
15
+ new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('17'),
16
+ new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('^7.199.1'),
17
+ new FN001035_DEP_fluentui_react_1.FN001035_DEP_fluentui_react('^7.199.1'),
18
+ new FN002004_DEVDEP_gulp_1.FN002004_DEVDEP_gulp('4.0.2'),
19
+ new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('^6.12.5'),
20
+ new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('~1.15.2'),
21
+ new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('17'),
22
+ new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('17'),
23
+ new FN002019_DEVDEP_microsoft_rush_stack_compiler_1.FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
24
+ ];
25
+ //# sourceMappingURL=doctor-1.17.3.js.map
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
4
+ const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
5
+ const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
6
+ const FN001035_DEP_fluentui_react_1 = require("./rules/FN001035_DEP_fluentui_react");
7
+ const FN002004_DEVDEP_gulp_1 = require("./rules/FN002004_DEVDEP_gulp");
8
+ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
9
+ const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
10
+ const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
11
+ const FN002016_DEVDEP_types_react_dom_1 = require("./rules/FN002016_DEVDEP_types_react_dom");
12
+ const FN002019_DEVDEP_microsoft_rush_stack_compiler_1 = require("./rules/FN002019_DEVDEP_microsoft_rush_stack_compiler");
13
+ module.exports = [
14
+ new FN001008_DEP_react_1.FN001008_DEP_react('17'),
15
+ new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('17'),
16
+ new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('^7.199.1'),
17
+ new FN001035_DEP_fluentui_react_1.FN001035_DEP_fluentui_react('^7.199.1'),
18
+ new FN002004_DEVDEP_gulp_1.FN002004_DEVDEP_gulp('4.0.2'),
19
+ new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('^6.12.5'),
20
+ new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('~1.15.2'),
21
+ new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('17'),
22
+ new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('17'),
23
+ new FN002019_DEVDEP_microsoft_rush_stack_compiler_1.FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
24
+ ];
25
+ //# sourceMappingURL=doctor-1.17.4.js.map
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
4
+ const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
5
+ const FN001035_DEP_fluentui_react_1 = require("./rules/FN001035_DEP_fluentui_react");
6
+ const FN002004_DEVDEP_gulp_1 = require("./rules/FN002004_DEVDEP_gulp");
7
+ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
8
+ const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
9
+ const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
10
+ const FN002016_DEVDEP_types_react_dom_1 = require("./rules/FN002016_DEVDEP_types_react_dom");
11
+ const FN002019_DEVDEP_microsoft_rush_stack_compiler_1 = require("./rules/FN002019_DEVDEP_microsoft_rush_stack_compiler");
12
+ module.exports = [
13
+ new FN001008_DEP_react_1.FN001008_DEP_react('17'),
14
+ new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('17'),
15
+ new FN001035_DEP_fluentui_react_1.FN001035_DEP_fluentui_react('^8.106.4'),
16
+ new FN002004_DEVDEP_gulp_1.FN002004_DEVDEP_gulp('4.0.2'),
17
+ new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('^6.12.5'),
18
+ new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('~1.15.2'),
19
+ new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('17'),
20
+ new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('17'),
21
+ new FN002019_DEVDEP_microsoft_rush_stack_compiler_1.FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
22
+ ];
23
+ //# sourceMappingURL=doctor-1.18.0-beta.1.js.map
@@ -75,7 +75,10 @@ class SpfxProjectDoctorCommand extends base_project_command_1.BaseProjectCommand
75
75
  '1.16.1',
76
76
  '1.17.0',
77
77
  '1.17.1',
78
- '1.17.2'
78
+ '1.17.2',
79
+ '1.17.3',
80
+ '1.17.4',
81
+ '1.18.0-beta.1'
79
82
  ];
80
83
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
81
84
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.DynamicRule = void 0;
4
13
  const fs = require("fs");
@@ -12,36 +21,32 @@ class DynamicRule extends BasicDependencyRule_1.BasicDependencyRule {
12
21
  this.fileVariationSuffixes = ['.min', '.bundle', '-min', '.bundle.min'];
13
22
  }
14
23
  visit(project) {
15
- if (!project.packageJson ||
16
- !project.packageJson.dependencies) {
17
- return Promise.resolve({ entries: [], suggestions: [] });
18
- }
19
- const validPackageNames = Object.getOwnPropertyNames(project.packageJson.dependencies)
20
- .filter(x => this.restrictedNamespaces.map(y => x.indexOf(y) === -1).reduce((y, z) => y && z))
21
- .filter(x => this.restrictedModules.indexOf(x) === -1);
22
- return Promise
23
- .all(validPackageNames.map((x) => this.getExternalEntryForPackage(x, project)))
24
- .then((res) => {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ if (!project.packageJson || !project.packageJson.dependencies) {
26
+ return { entries: [], suggestions: [] };
27
+ }
28
+ const validPackageNames = Object.getOwnPropertyNames(project.packageJson.dependencies)
29
+ .filter(x => this.restrictedNamespaces.map(y => x.indexOf(y) === -1).reduce((y, z) => y && z))
30
+ .filter(x => this.restrictedModules.indexOf(x) === -1);
31
+ const res = yield Promise.all(validPackageNames.map((x) => this.getExternalEntryForPackage(x, project)));
25
32
  return {
26
- entries: res
27
- .filter(x => x !== undefined)
28
- .map(x => x),
33
+ entries: res.filter(x => x !== undefined),
29
34
  suggestions: []
30
35
  };
31
36
  });
32
37
  }
33
38
  getExternalEntryForPackage(packageName, project) {
34
- const version = project.packageJson.dependencies[packageName];
35
- const filesPaths = this.getFilePath(packageName).map(x => this.cleanFilePath(x));
36
- if (!version || filesPaths.length === 0) {
37
- return Promise.resolve(undefined);
38
- }
39
- const filesPathsVariations = filesPaths
40
- .map(x => this.fileVariationSuffixes.map(y => x.indexOf(y) === -1 ? x.replace('.js', `${y}.js`) : x))
41
- .reduce((x, y) => [...x, ...y]);
42
- const pathsAndVariations = [...filesPaths, ...filesPathsVariations];
43
- return Promise.all(pathsAndVariations.map(x => this.getExternalEntryForFilePath(x, packageName, version)))
44
- .then((externalizeEntryCandidates) => {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const version = project.packageJson.dependencies[packageName];
41
+ const filesPaths = this.getFilePath(packageName).map(x => this.cleanFilePath(x));
42
+ if (!version || filesPaths.length === 0) {
43
+ return undefined;
44
+ }
45
+ const filesPathsVariations = filesPaths
46
+ .map(x => this.fileVariationSuffixes.map(y => x.indexOf(y) === -1 ? x.replace('.js', `${y}.js`) : x))
47
+ .reduce((x, y) => [...x, ...y]);
48
+ const pathsAndVariations = [...filesPaths, ...filesPathsVariations];
49
+ const externalizeEntryCandidates = yield Promise.all(pathsAndVariations.map(x => this.getExternalEntryForFilePath(x, packageName, version)));
45
50
  const dExternalizeEntryCandidates = externalizeEntryCandidates.filter(x => x !== undefined);
46
51
  const minifiedModule = dExternalizeEntryCandidates.find(x => !x.globalName && this.pathContainsMinifySuffix(x.path));
47
52
  const minifiedNonModule = dExternalizeEntryCandidates.find(x => x.globalName && this.pathContainsMinifySuffix(x.path));
@@ -57,31 +62,29 @@ class DynamicRule extends BasicDependencyRule_1.BasicDependencyRule {
57
62
  .filter(y => y > -1).length > 0;
58
63
  }
59
64
  getExternalEntryForFilePath(filePath, packageName, version) {
60
- const url = this.getFileUrl(packageName, version, filePath);
61
- return this
62
- .testUrl(url)
63
- .then((testResult) => {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const url = this.getFileUrl(packageName, version, filePath);
67
+ const testResult = yield this.testUrl(url);
64
68
  if (!testResult) {
65
- return Promise.resolve(undefined);
69
+ return undefined;
70
+ }
71
+ const moduleInfo = yield this.getModuleType(url);
72
+ if (moduleInfo.scriptType === 'CommonJs') {
73
+ return undefined; //browsers don't support those module types without an additional library
74
+ }
75
+ else if (moduleInfo.scriptType === 'ES2015' || moduleInfo.scriptType === 'AMD') {
76
+ return {
77
+ key: packageName,
78
+ path: url
79
+ };
80
+ }
81
+ else { //TODO for non-module and UMD we should technically add dependencies as well
82
+ return {
83
+ key: packageName,
84
+ path: url,
85
+ globalName: moduleInfo.exports && moduleInfo.exports.length > 0 ? moduleInfo.exports[0] : packageName // examples where this is not good https://unpkg.com/@pnp/polyfill-ie11@^1.0.2/dist/index.js https://unpkg.com/moment-timezone@^0.5.27/builds/moment-timezone-with-data.js
86
+ };
66
87
  }
67
- return this.getModuleType(url).then((moduleInfo) => {
68
- if (moduleInfo.scriptType === 'CommonJs') {
69
- return Promise.resolve(undefined); //browsers don't support those module types without an additional library
70
- }
71
- else if (moduleInfo.scriptType === 'ES2015' || moduleInfo.scriptType === 'AMD') {
72
- return {
73
- key: packageName,
74
- path: url
75
- };
76
- }
77
- else { //TODO for non-module and UMD we should technically add dependencies as well
78
- return {
79
- key: packageName,
80
- path: url,
81
- globalName: moduleInfo.exports && moduleInfo.exports.length > 0 ? moduleInfo.exports[0] : packageName // examples where this is not good https://unpkg.com/@pnp/polyfill-ie11@^1.0.2/dist/index.js https://unpkg.com/moment-timezone@^0.5.27/builds/moment-timezone-with-data.js
82
- };
83
- }
84
- });
85
88
  });
86
89
  }
87
90
  getModuleType(url) {
@@ -101,10 +104,15 @@ class DynamicRule extends BasicDependencyRule_1.BasicDependencyRule {
101
104
  return `https://unpkg.com/${packageName}@${version}/${filePath}`;
102
105
  }
103
106
  testUrl(url) {
104
- return request_1.default
105
- .head({ url: url, headers: { 'x-anonymous': 'true' } })
106
- .then(() => true)
107
- .catch(() => false);
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ try {
109
+ yield request_1.default.head({ url: url, headers: { 'x-anonymous': 'true' } });
110
+ return true;
111
+ }
112
+ catch (_a) {
113
+ return false;
114
+ }
115
+ });
108
116
  }
109
117
  getFilePath(packageName) {
110
118
  const packageJsonFilePath = `node_modules/${packageName}/package.json`;
@@ -4,8 +4,8 @@ exports.FN001022_DEP_office_ui_fabric_react = void 0;
4
4
  const spfx_1 = require("../../../../../../utils/spfx");
5
5
  const DependencyRule_1 = require("./DependencyRule");
6
6
  class FN001022_DEP_office_ui_fabric_react extends DependencyRule_1.DependencyRule {
7
- constructor(packageVersion) {
8
- super('office-ui-fabric-react', packageVersion, false, true);
7
+ constructor(packageVersion, add = true) {
8
+ super('office-ui-fabric-react', packageVersion, false, add);
9
9
  }
10
10
  get id() {
11
11
  return 'FN001022';
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FN002027_DEVDEP_fluentui_react = void 0;
4
+ const DependencyRule_1 = require("./DependencyRule");
5
+ class FN002027_DEVDEP_fluentui_react extends DependencyRule_1.DependencyRule {
6
+ constructor(packageVersion, add) {
7
+ super('@fluentui/react', packageVersion, true, true, add);
8
+ }
9
+ get id() {
10
+ return 'FN002027';
11
+ }
12
+ }
13
+ exports.FN002027_DEVDEP_fluentui_react = FN002027_DEVDEP_fluentui_react;
14
+ //# sourceMappingURL=FN002027_DEVDEP_fluentui_react.js.map
@@ -37,6 +37,7 @@ class FN021003_PKG_engines_node extends JsonRule_1.JsonRule {
37
37
  return;
38
38
  }
39
39
  if (!project.packageJson.engines ||
40
+ typeof project.packageJson.engines !== 'object' ||
40
41
  !project.packageJson.engines.node ||
41
42
  project.packageJson.engines.node !== this.version) {
42
43
  const node = this.getAstNodeFromFile(project.packageJson, 'engines.node');