@pnp/cli-microsoft365-spfx-toolkit 1.0.0

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 (1990) hide show
  1. package/.devcontainer/Dockerfile +52 -0
  2. package/.devcontainer/devcontainer.json +30 -0
  3. package/.eslintrc.js +245 -0
  4. package/.mocharc.json +11 -0
  5. package/CODE_OF_CONDUCT.md +9 -0
  6. package/Dockerfile +56 -0
  7. package/LICENSE +20 -0
  8. package/README.md +15 -0
  9. package/allCommands.json +1 -0
  10. package/allCommandsFull.json +1 -0
  11. package/csom.json +575 -0
  12. package/dist/Auth.js +642 -0
  13. package/dist/AuthServer.js +103 -0
  14. package/dist/Command.js +602 -0
  15. package/dist/GlobalOptions.js +3 -0
  16. package/dist/api.d.ts +13 -0
  17. package/dist/api.js +17 -0
  18. package/dist/appInsights.js +33 -0
  19. package/dist/auth/FileTokenStorage.js +57 -0
  20. package/dist/auth/TokenStorage.js +3 -0
  21. package/dist/auth/msalCachePlugin.js +41 -0
  22. package/dist/autocomplete.js +189 -0
  23. package/dist/chili/chili.js +298 -0
  24. package/dist/chili/index.js +20 -0
  25. package/dist/cli/Cli.js +838 -0
  26. package/dist/cli/CommandInfo.js +3 -0
  27. package/dist/cli/CommandOptionInfo.js +3 -0
  28. package/dist/cli/Logger.js +3 -0
  29. package/dist/config.js +12 -0
  30. package/dist/index.js +30 -0
  31. package/dist/m365/aad/commands/app/app-add.js +794 -0
  32. package/dist/m365/aad/commands/app/app-get.js +162 -0
  33. package/dist/m365/aad/commands/app/app-list.js +38 -0
  34. package/dist/m365/aad/commands/app/app-remove.js +134 -0
  35. package/dist/m365/aad/commands/app/app-role-add.js +164 -0
  36. package/dist/m365/aad/commands/app/app-role-list.js +100 -0
  37. package/dist/m365/aad/commands/app/app-role-remove.js +209 -0
  38. package/dist/m365/aad/commands/app/app-set.js +305 -0
  39. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +202 -0
  40. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +169 -0
  41. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +201 -0
  42. package/dist/m365/aad/commands/group/group-get.js +79 -0
  43. package/dist/m365/aad/commands/group/group-list.js +55 -0
  44. package/dist/m365/aad/commands/group/group-remove.js +111 -0
  45. package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +112 -0
  46. package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +67 -0
  47. package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +38 -0
  48. package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +94 -0
  49. package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +112 -0
  50. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +80 -0
  51. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +38 -0
  52. package/dist/m365/aad/commands/license/license-list.js +41 -0
  53. package/dist/m365/aad/commands/m365group/GroupExtended.js +3 -0
  54. package/dist/m365/aad/commands/m365group/m365group-add.js +283 -0
  55. package/dist/m365/aad/commands/m365group/m365group-conversation-list.js +68 -0
  56. package/dist/m365/aad/commands/m365group/m365group-conversation-post-list.js +94 -0
  57. package/dist/m365/aad/commands/m365group/m365group-get.js +79 -0
  58. package/dist/m365/aad/commands/m365group/m365group-list.js +115 -0
  59. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-clear.js +97 -0
  60. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-list.js +70 -0
  61. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-remove.js +137 -0
  62. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-restore.js +122 -0
  63. package/dist/m365/aad/commands/m365group/m365group-remove.js +111 -0
  64. package/dist/m365/aad/commands/m365group/m365group-renew.js +73 -0
  65. package/dist/m365/aad/commands/m365group/m365group-report-activitycounts.js +17 -0
  66. package/dist/m365/aad/commands/m365group/m365group-report-activitydetail.js +17 -0
  67. package/dist/m365/aad/commands/m365group/m365group-report-activityfilecounts.js +17 -0
  68. package/dist/m365/aad/commands/m365group/m365group-report-activitygroupcounts.js +17 -0
  69. package/dist/m365/aad/commands/m365group/m365group-report-activitystorage.js +17 -0
  70. package/dist/m365/aad/commands/m365group/m365group-set.js +251 -0
  71. package/dist/m365/aad/commands/m365group/m365group-teamify.js +127 -0
  72. package/dist/m365/aad/commands/m365group/m365group-user-add.js +114 -0
  73. package/dist/m365/aad/commands/m365group/m365group-user-list.js +111 -0
  74. package/dist/m365/aad/commands/m365group/m365group-user-remove.js +152 -0
  75. package/dist/m365/aad/commands/m365group/m365group-user-set.js +174 -0
  76. package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +83 -0
  77. package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +76 -0
  78. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +80 -0
  79. package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +66 -0
  80. package/dist/m365/aad/commands/policy/policy-list.js +115 -0
  81. package/dist/m365/aad/commands/siteclassification/SiteClassificationSettings.js +13 -0
  82. package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +103 -0
  83. package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +139 -0
  84. package/dist/m365/aad/commands/siteclassification/siteclassification-get.js +85 -0
  85. package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +168 -0
  86. package/dist/m365/aad/commands/sp/sp-add.js +125 -0
  87. package/dist/m365/aad/commands/sp/sp-get.js +125 -0
  88. package/dist/m365/aad/commands/sp/sp-list.js +78 -0
  89. package/dist/m365/aad/commands/user/user-add.js +232 -0
  90. package/dist/m365/aad/commands/user/user-get.js +122 -0
  91. package/dist/m365/aad/commands/user/user-guest-add.js +103 -0
  92. package/dist/m365/aad/commands/user/user-hibp.js +85 -0
  93. package/dist/m365/aad/commands/user/user-license-add.js +88 -0
  94. package/dist/m365/aad/commands/user/user-license-list.js +99 -0
  95. package/dist/m365/aad/commands/user/user-license-remove.js +115 -0
  96. package/dist/m365/aad/commands/user/user-list.js +98 -0
  97. package/dist/m365/aad/commands/user/user-password-validate.js +61 -0
  98. package/dist/m365/aad/commands/user/user-recyclebinitem-clear.js +103 -0
  99. package/dist/m365/aad/commands/user/user-recyclebinitem-list.js +41 -0
  100. package/dist/m365/aad/commands/user/user-recyclebinitem-remove.js +92 -0
  101. package/dist/m365/aad/commands/user/user-recyclebinitem-restore.js +70 -0
  102. package/dist/m365/aad/commands/user/user-remove.js +107 -0
  103. package/dist/m365/aad/commands/user/user-set.js +306 -0
  104. package/dist/m365/aad/commands/user/user-signin-list.js +106 -0
  105. package/dist/m365/aad/commands.js +78 -0
  106. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +232 -0
  107. package/dist/m365/adaptivecard/commands.js +7 -0
  108. package/dist/m365/app/commands/app-get.js +45 -0
  109. package/dist/m365/app/commands/app-open.js +70 -0
  110. package/dist/m365/app/commands/permission/permission-add.js +279 -0
  111. package/dist/m365/app/commands/permission/permission-list.js +268 -0
  112. package/dist/m365/app/commands.js +10 -0
  113. package/dist/m365/base/AnonymousCommand.js +22 -0
  114. package/dist/m365/base/AppCommand.js +99 -0
  115. package/dist/m365/base/AzmgmtCommand.js +21 -0
  116. package/dist/m365/base/AzmgmtItemsListCommand.js +56 -0
  117. package/dist/m365/base/ContextCommand.js +33 -0
  118. package/dist/m365/base/DateAndPeriodBasedReport.js +64 -0
  119. package/dist/m365/base/GraphCommand.js +10 -0
  120. package/dist/m365/base/M365RcJson.js +3 -0
  121. package/dist/m365/base/O365MgmtCommand.js +10 -0
  122. package/dist/m365/base/PeriodBasedReport.js +102 -0
  123. package/dist/m365/base/PlannerCommand.js +10 -0
  124. package/dist/m365/base/PowerAppsCommand.js +21 -0
  125. package/dist/m365/base/PowerBICommand.js +10 -0
  126. package/dist/m365/base/PowerPlatformCommand.js +21 -0
  127. package/dist/m365/base/SpoCommand.js +120 -0
  128. package/dist/m365/base/YammerCommand.js +21 -0
  129. package/dist/m365/booking/commands/business/business-get.js +99 -0
  130. package/dist/m365/booking/commands/business/business-list.js +39 -0
  131. package/dist/m365/booking/commands.js +8 -0
  132. package/dist/m365/cli/commands/cli-consent.js +73 -0
  133. package/dist/m365/cli/commands/cli-doctor.js +89 -0
  134. package/dist/m365/cli/commands/cli-issue.js +79 -0
  135. package/dist/m365/cli/commands/cli-reconsent.js +43 -0
  136. package/dist/m365/cli/commands/completion/completion-clink-update.js +29 -0
  137. package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +100 -0
  138. package/dist/m365/cli/commands/completion/completion-pwsh-update.js +32 -0
  139. package/dist/m365/cli/commands/completion/completion-sh-setup.js +37 -0
  140. package/dist/m365/cli/commands/completion/completion-sh-update.js +32 -0
  141. package/dist/m365/cli/commands/config/config-get.js +63 -0
  142. package/dist/m365/cli/commands/config/config-list.js +29 -0
  143. package/dist/m365/cli/commands/config/config-reset.js +70 -0
  144. package/dist/m365/cli/commands/config/config-set.js +95 -0
  145. package/dist/m365/cli/commands.js +19 -0
  146. package/dist/m365/commands/commands.js +13 -0
  147. package/dist/m365/commands/docs.js +36 -0
  148. package/dist/m365/commands/login.js +214 -0
  149. package/dist/m365/commands/logout.js +55 -0
  150. package/dist/m365/commands/request.js +167 -0
  151. package/dist/m365/commands/setup.js +180 -0
  152. package/dist/m365/commands/setupPresets.js +25 -0
  153. package/dist/m365/commands/spfxToolkit.js +89 -0
  154. package/dist/m365/commands/status.js +80 -0
  155. package/dist/m365/commands/version.js +29 -0
  156. package/dist/m365/context/commands/context-init.js +28 -0
  157. package/dist/m365/context/commands/context-remove.js +103 -0
  158. package/dist/m365/context/commands/option/option-list.js +54 -0
  159. package/dist/m365/context/commands/option/option-remove.js +105 -0
  160. package/dist/m365/context/commands/option/option-set.js +84 -0
  161. package/dist/m365/context/commands.js +11 -0
  162. package/dist/m365/file/commands/convert/convert-pdf.js +442 -0
  163. package/dist/m365/file/commands/file-add.js +263 -0
  164. package/dist/m365/file/commands/file-copy.js +172 -0
  165. package/dist/m365/file/commands/file-list.js +198 -0
  166. package/dist/m365/file/commands/file-move.js +152 -0
  167. package/dist/m365/file/commands.js +11 -0
  168. package/dist/m365/flow/commands/environment/FlowEnvironmentDetails.js +3 -0
  169. package/dist/m365/flow/commands/environment/environment-get.js +87 -0
  170. package/dist/m365/flow/commands/environment/environment-list.js +46 -0
  171. package/dist/m365/flow/commands/flow-disable.js +72 -0
  172. package/dist/m365/flow/commands/flow-enable.js +72 -0
  173. package/dist/m365/flow/commands/flow-export.js +211 -0
  174. package/dist/m365/flow/commands/flow-get.js +80 -0
  175. package/dist/m365/flow/commands/flow-list.js +125 -0
  176. package/dist/m365/flow/commands/flow-remove.js +107 -0
  177. package/dist/m365/flow/commands/owner/owner-ensure.js +147 -0
  178. package/dist/m365/flow/commands/owner/owner-list.js +89 -0
  179. package/dist/m365/flow/commands/owner/owner-remove.js +147 -0
  180. package/dist/m365/flow/commands/run/run-cancel.js +100 -0
  181. package/dist/m365/flow/commands/run/run-get.js +103 -0
  182. package/dist/m365/flow/commands/run/run-list.js +121 -0
  183. package/dist/m365/flow/commands/run/run-resubmit.js +118 -0
  184. package/dist/m365/flow/commands.js +23 -0
  185. package/dist/m365/graph/Changelog.js +3 -0
  186. package/dist/m365/graph/commands/changelog/changelog-list.js +165 -0
  187. package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +122 -0
  188. package/dist/m365/graph/commands/schemaextension/schemaextension-get.js +62 -0
  189. package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +134 -0
  190. package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +87 -0
  191. package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +171 -0
  192. package/dist/m365/graph/commands/subscription/subscription-add.js +173 -0
  193. package/dist/m365/graph/commands.js +13 -0
  194. package/dist/m365/onedrive/commands/onedrive-list.js +70 -0
  195. package/dist/m365/onedrive/commands/report/report-activityfilecounts.js +17 -0
  196. package/dist/m365/onedrive/commands/report/report-activityusercounts.js +17 -0
  197. package/dist/m365/onedrive/commands/report/report-activityuserdetail.js +17 -0
  198. package/dist/m365/onedrive/commands/report/report-usageaccountcounts.js +17 -0
  199. package/dist/m365/onedrive/commands/report/report-usageaccountdetail.js +17 -0
  200. package/dist/m365/onedrive/commands/report/report-usagefilecounts.js +17 -0
  201. package/dist/m365/onedrive/commands/report/report-usagestorage.js +17 -0
  202. package/dist/m365/onedrive/commands.js +14 -0
  203. package/dist/m365/onenote/commands/notebook/notebook-list.js +137 -0
  204. package/dist/m365/onenote/commands/page/page-list.js +123 -0
  205. package/dist/m365/onenote/commands.js +8 -0
  206. package/dist/m365/outlook/Outlook.js +26 -0
  207. package/dist/m365/outlook/commands/mail/mail-send.js +172 -0
  208. package/dist/m365/outlook/commands/message/message-get.js +98 -0
  209. package/dist/m365/outlook/commands/message/message-list.js +105 -0
  210. package/dist/m365/outlook/commands/message/message-move.js +120 -0
  211. package/dist/m365/outlook/commands/report/report-mailactivitycounts.js +17 -0
  212. package/dist/m365/outlook/commands/report/report-mailactivityusercounts.js +17 -0
  213. package/dist/m365/outlook/commands/report/report-mailactivityuserdetail.js +17 -0
  214. package/dist/m365/outlook/commands/report/report-mailappusageappsusercounts.js +17 -0
  215. package/dist/m365/outlook/commands/report/report-mailappusageusercounts.js +17 -0
  216. package/dist/m365/outlook/commands/report/report-mailappusageuserdetail.js +17 -0
  217. package/dist/m365/outlook/commands/report/report-mailappusageversionsusercounts.js +17 -0
  218. package/dist/m365/outlook/commands/report/report-mailboxusagedetail.js +17 -0
  219. package/dist/m365/outlook/commands/report/report-mailboxusagemailboxcount.js +17 -0
  220. package/dist/m365/outlook/commands/report/report-mailboxusagequotastatusmailboxcounts.js +17 -0
  221. package/dist/m365/outlook/commands/report/report-mailboxusagestorage.js +17 -0
  222. package/dist/m365/outlook/commands/room/room-list.js +65 -0
  223. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +38 -0
  224. package/dist/m365/outlook/commands.js +23 -0
  225. package/dist/m365/pa/commands/app/app-consent-set.js +101 -0
  226. package/dist/m365/pa/commands/app/app-export.js +196 -0
  227. package/dist/m365/pa/commands/app/app-get.js +136 -0
  228. package/dist/m365/pa/commands/app/app-list.js +87 -0
  229. package/dist/m365/pa/commands/app/app-owner-set.js +115 -0
  230. package/dist/m365/pa/commands/app/app-permission-ensure.js +177 -0
  231. package/dist/m365/pa/commands/app/app-permission-list.js +104 -0
  232. package/dist/m365/pa/commands/app/app-permission-remove.js +170 -0
  233. package/dist/m365/pa/commands/app/app-remove.js +103 -0
  234. package/dist/m365/pa/commands/connector/Connector.js +3 -0
  235. package/dist/m365/pa/commands/connector/connector-export.js +191 -0
  236. package/dist/m365/pa/commands/connector/connector-list.js +70 -0
  237. package/dist/m365/pa/commands/environment/environment-get.js +78 -0
  238. package/dist/m365/pa/commands/environment/environment-list.js +53 -0
  239. package/dist/m365/pa/commands.js +19 -0
  240. package/dist/m365/planner/AppliedCategories.js +3 -0
  241. package/dist/m365/planner/Task.js +3 -0
  242. package/dist/m365/planner/commands/bucket/bucket-add.js +134 -0
  243. package/dist/m365/planner/commands/bucket/bucket-get.js +185 -0
  244. package/dist/m365/planner/commands/bucket/bucket-list.js +117 -0
  245. package/dist/m365/planner/commands/bucket/bucket-remove.js +204 -0
  246. package/dist/m365/planner/commands/bucket/bucket-set.js +194 -0
  247. package/dist/m365/planner/commands/plan/plan-add.js +206 -0
  248. package/dist/m365/planner/commands/plan/plan-get.js +140 -0
  249. package/dist/m365/planner/commands/plan/plan-list.js +100 -0
  250. package/dist/m365/planner/commands/plan/plan-remove.js +143 -0
  251. package/dist/m365/planner/commands/plan/plan-set.js +312 -0
  252. package/dist/m365/planner/commands/roster/roster-add.js +47 -0
  253. package/dist/m365/planner/commands/roster/roster-get.js +64 -0
  254. package/dist/m365/planner/commands/roster/roster-member-add.js +108 -0
  255. package/dist/m365/planner/commands/roster/roster-member-get.js +101 -0
  256. package/dist/m365/planner/commands/roster/roster-member-list.js +57 -0
  257. package/dist/m365/planner/commands/roster/roster-member-remove.js +143 -0
  258. package/dist/m365/planner/commands/roster/roster-plan-list.js +105 -0
  259. package/dist/m365/planner/commands/roster/roster-remove.js +91 -0
  260. package/dist/m365/planner/commands/task/task-add.js +302 -0
  261. package/dist/m365/planner/commands/task/task-checklistitem-add.js +106 -0
  262. package/dist/m365/planner/commands/task/task-checklistitem-list.js +73 -0
  263. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +108 -0
  264. package/dist/m365/planner/commands/task/task-get.js +217 -0
  265. package/dist/m365/planner/commands/task/task-list.js +200 -0
  266. package/dist/m365/planner/commands/task/task-reference-add.js +100 -0
  267. package/dist/m365/planner/commands/task/task-reference-list.js +62 -0
  268. package/dist/m365/planner/commands/task/task-reference-remove.js +138 -0
  269. package/dist/m365/planner/commands/task/task-remove.js +217 -0
  270. package/dist/m365/planner/commands/task/task-set.js +342 -0
  271. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +45 -0
  272. package/dist/m365/planner/commands/tenant/tenant-settings-set.js +110 -0
  273. package/dist/m365/planner/commands.js +37 -0
  274. package/dist/m365/planner/taskPriority.js +27 -0
  275. package/dist/m365/pp/commands/Environment.js +3 -0
  276. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +113 -0
  277. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-list.js +68 -0
  278. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-remove.js +130 -0
  279. package/dist/m365/pp/commands/card/card-clone.js +122 -0
  280. package/dist/m365/pp/commands/card/card-get.js +113 -0
  281. package/dist/m365/pp/commands/card/card-list.js +68 -0
  282. package/dist/m365/pp/commands/card/card-remove.js +130 -0
  283. package/dist/m365/pp/commands/chatbot/chatbot-get.js +113 -0
  284. package/dist/m365/pp/commands/chatbot/chatbot-list.js +108 -0
  285. package/dist/m365/pp/commands/chatbot/chatbot-remove.js +131 -0
  286. package/dist/m365/pp/commands/dataverse/dataverse-table-get.js +77 -0
  287. package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +69 -0
  288. package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +95 -0
  289. package/dist/m365/pp/commands/dataverse/dataverse-table-row-list.js +95 -0
  290. package/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +133 -0
  291. package/dist/m365/pp/commands/environment/environment-get.js +76 -0
  292. package/dist/m365/pp/commands/environment/environment-list.js +83 -0
  293. package/dist/m365/pp/commands/gateway/gateway-get.js +71 -0
  294. package/dist/m365/pp/commands/gateway/gateway-list.js +48 -0
  295. package/dist/m365/pp/commands/managementapp/managementapp-add.js +113 -0
  296. package/dist/m365/pp/commands/managementapp/managementapp-list.js +36 -0
  297. package/dist/m365/pp/commands/solution/Solution.js +3 -0
  298. package/dist/m365/pp/commands/solution/solution-get.js +118 -0
  299. package/dist/m365/pp/commands/solution/solution-list.js +82 -0
  300. package/dist/m365/pp/commands/solution/solution-publish.js +156 -0
  301. package/dist/m365/pp/commands/solution/solution-publisher-add.js +101 -0
  302. package/dist/m365/pp/commands/solution/solution-publisher-get.js +107 -0
  303. package/dist/m365/pp/commands/solution/solution-publisher-list.js +78 -0
  304. package/dist/m365/pp/commands/solution/solution-publisher-remove.js +130 -0
  305. package/dist/m365/pp/commands/solution/solution-remove.js +130 -0
  306. package/dist/m365/pp/commands/tenant/tenant-settings-list.js +45 -0
  307. package/dist/m365/pp/commands/tenant/tenant-settings-set.js +261 -0
  308. package/dist/m365/pp/commands.js +37 -0
  309. package/dist/m365/purview/commands/auditlog/auditlog-list.js +205 -0
  310. package/dist/m365/purview/commands/retentionevent/retentionevent-add.js +133 -0
  311. package/dist/m365/purview/commands/retentionevent/retentionevent-get.js +70 -0
  312. package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +41 -0
  313. package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +94 -0
  314. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-add.js +72 -0
  315. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-get.js +70 -0
  316. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +38 -0
  317. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-remove.js +94 -0
  318. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-set.js +85 -0
  319. package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +177 -0
  320. package/dist/m365/purview/commands/retentionlabel/retentionlabel-get.js +70 -0
  321. package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +38 -0
  322. package/dist/m365/purview/commands/retentionlabel/retentionlabel-remove.js +94 -0
  323. package/dist/m365/purview/commands/retentionlabel/retentionlabel-set.js +147 -0
  324. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-get.js +97 -0
  325. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-list.js +85 -0
  326. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-policysettings-list.js +89 -0
  327. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +79 -0
  328. package/dist/m365/purview/commands.js +25 -0
  329. package/dist/m365/search/commands/externalconnection/externalconnection-add.js +121 -0
  330. package/dist/m365/search/commands/externalconnection/externalconnection-get.js +85 -0
  331. package/dist/m365/search/commands/externalconnection/externalconnection-list.js +38 -0
  332. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +112 -0
  333. package/dist/m365/search/commands/externalconnection/externalconnection-schema-add.js +86 -0
  334. package/dist/m365/search/commands.js +11 -0
  335. package/dist/m365/skype/commands/report/report-activitycounts.js +17 -0
  336. package/dist/m365/skype/commands/report/report-activityusercounts.js +17 -0
  337. package/dist/m365/skype/commands/report/report-activityuserdetail.js +17 -0
  338. package/dist/m365/skype/commands.js +9 -0
  339. package/dist/m365/spfx/commands/package/package-generate/assets/$webPartId$/WebPart_$webPartId$.xml +1 -0
  340. package/dist/m365/spfx/commands/package/package-generate/assets/AppManifest.xml +1 -0
  341. package/dist/m365/spfx/commands/package/package-generate/assets/ClientSideAssets/$webPartId$_color.png +0 -0
  342. package/dist/m365/spfx/commands/package/package-generate/assets/ClientSideAssets/$webPartId$_outline.png +0 -0
  343. package/dist/m365/spfx/commands/package/package-generate/assets/ClientSideAssets/$webPartModule$_b69cad1599a6969840f0.js +1 -0
  344. package/dist/m365/spfx/commands/package/package-generate/assets/ClientSideAssets.xml +1 -0
  345. package/dist/m365/spfx/commands/package/package-generate/assets/ClientSideAssets.xml.config.xml +1 -0
  346. package/dist/m365/spfx/commands/package/package-generate/assets/[Content_Types].xml +1 -0
  347. package/dist/m365/spfx/commands/package/package-generate/assets/_rels/.rels +1 -0
  348. package/dist/m365/spfx/commands/package/package-generate/assets/_rels/AppManifest.xml.rels +1 -0
  349. package/dist/m365/spfx/commands/package/package-generate/assets/_rels/ClientSideAssets.xml.rels +1 -0
  350. package/dist/m365/spfx/commands/package/package-generate/assets/_rels/feature_$webPartId$.xml.rels +1 -0
  351. package/dist/m365/spfx/commands/package/package-generate/assets/feature_$webPartId$.xml +1 -0
  352. package/dist/m365/spfx/commands/package/package-generate/assets/feature_$webPartId$.xml.config.xml +1 -0
  353. package/dist/m365/spfx/commands/package/package-generate.js +217 -0
  354. package/dist/m365/spfx/commands/project/DeployWorkflow.js +177 -0
  355. package/dist/m365/spfx/commands/project/JsonRule.js +95 -0
  356. package/dist/m365/spfx/commands/project/Rule.js +30 -0
  357. package/dist/m365/spfx/commands/project/WebApiPermissionRequests.js +3 -0
  358. package/dist/m365/spfx/commands/project/base-project-command.js +241 -0
  359. package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +179 -0
  360. package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-model.js +3 -0
  361. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.0.js +11 -0
  362. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.1.js +11 -0
  363. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.2.js +11 -0
  364. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.0.js +19 -0
  365. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.1.js +19 -0
  366. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.3.js +19 -0
  367. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.10.0.js +25 -0
  368. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.11.0.js +25 -0
  369. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.0.js +25 -0
  370. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.1.js +25 -0
  371. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.0.js +25 -0
  372. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.1.js +25 -0
  373. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.14.0.js +25 -0
  374. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.0.js +25 -0
  375. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.2.js +25 -0
  376. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.0.js +25 -0
  377. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.1.js +25 -0
  378. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.0.js +25 -0
  379. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.1.js +25 -0
  380. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.2.js +27 -0
  381. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.3.js +27 -0
  382. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.4.js +27 -0
  383. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.0.js +25 -0
  384. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.1.js +25 -0
  385. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.2.js +25 -0
  386. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.19.0.js +27 -0
  387. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.2.0.js +19 -0
  388. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.20.0.js +29 -0
  389. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.0.js +27 -0
  390. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.1.js +27 -0
  391. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.0.js +19 -0
  392. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.1.js +19 -0
  393. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.2.js +19 -0
  394. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.4.js +21 -0
  395. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.0.js +21 -0
  396. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.1.js +21 -0
  397. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.0.js +21 -0
  398. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.1.js +21 -0
  399. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.6.0.js +21 -0
  400. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.0.js +21 -0
  401. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.1.js +21 -0
  402. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.0.js +23 -0
  403. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.1.js +23 -0
  404. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.2.js +25 -0
  405. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.9.1.js +25 -0
  406. package/dist/m365/spfx/commands/project/project-doctor/generic-rules.js +28 -0
  407. package/dist/m365/spfx/commands/project/project-doctor/rules/DependencyRule.js +76 -0
  408. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001008_DEP_react.js +18 -0
  409. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001009_DEP_react_dom.js +18 -0
  410. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001022_DEP_office_ui_fabric_react.js +18 -0
  411. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001035_DEP_fluentui_react.js +18 -0
  412. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002004_DEVDEP_gulp.js +17 -0
  413. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002007_DEVDEP_ajv.js +17 -0
  414. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002013_DEVDEP_types_webpack_env.js +14 -0
  415. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002015_DEVDEP_types_react.js +18 -0
  416. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002016_DEVDEP_types_react_dom.js +18 -0
  417. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002019_DEVDEP_microsoft_rush_stack_compiler.js +68 -0
  418. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002021_DEVDEP_rushstack_eslint_config.js +14 -0
  419. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021001_PKG_spfx_deps_versions_match_project_version.js +75 -0
  420. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021002_PKG_spfx_deps_use_exact_version.js +71 -0
  421. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021003_PKG_spfx_deps_installed_as_deps.js +46 -0
  422. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021004_PKG_spfx_devdeps_installed_as_devdeps.js +46 -0
  423. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021005_PKG_types_installed_as_devdep.js +45 -0
  424. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021006_PKG_rush_stack_compiler_installed_as_devdep.js +45 -0
  425. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021007_PKG_only_one_rush_stack_compiler_installed.js +69 -0
  426. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021008_PKG_no_duplicate_deps.js +59 -0
  427. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021009_PKG_no_duplicate_oui_deps.js +64 -0
  428. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021010_PKG_gulp_installed_as_devdep.js +45 -0
  429. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021011_PKG_ajv_installed_as_devdep.js +45 -0
  430. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021012_PKG_no_duplicate_pnpjs_deps.js +57 -0
  431. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021013_PKG_spfx_devdeps_match_version.js +62 -0
  432. package/dist/m365/spfx/commands/project/project-doctor/spfx-deps.js +31 -0
  433. package/dist/m365/spfx/commands/project/project-doctor.js +383 -0
  434. package/dist/m365/spfx/commands/project/project-externalize/DefaultRules.js +8 -0
  435. package/dist/m365/spfx/commands/project/project-externalize/ExternalizeEntry.js +3 -0
  436. package/dist/m365/spfx/commands/project/project-externalize/FileEdit.js +3 -0
  437. package/dist/m365/spfx/commands/project/project-externalize/VisitationResult.js +3 -0
  438. package/dist/m365/spfx/commands/project/project-externalize/index.js +20 -0
  439. package/dist/m365/spfx/commands/project/project-externalize/rules/BasicDependencyRule.js +7 -0
  440. package/dist/m365/spfx/commands/project/project-externalize/rules/DynamicRule.js +158 -0
  441. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +106 -0
  442. package/dist/m365/spfx/commands/project/project-externalize/rules/index.js +20 -0
  443. package/dist/m365/spfx/commands/project/project-externalize.js +204 -0
  444. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +172 -0
  445. package/dist/m365/spfx/commands/project/project-github-workflow-model.js +3 -0
  446. package/dist/m365/spfx/commands/project/project-model/ConfigJson.js +3 -0
  447. package/dist/m365/spfx/commands/project/project-model/CopyAssetsJson.js +3 -0
  448. package/dist/m365/spfx/commands/project/project-model/DeployAzureStorageJson.js +3 -0
  449. package/dist/m365/spfx/commands/project/project-model/EsLintRcJs.js +3 -0
  450. package/dist/m365/spfx/commands/project/project-model/Gitignore.js +3 -0
  451. package/dist/m365/spfx/commands/project/project-model/GulpfileJs.js +3 -0
  452. package/dist/m365/spfx/commands/project/project-model/JsonFile.js +3 -0
  453. package/dist/m365/spfx/commands/project/project-model/Manifest.js +3 -0
  454. package/dist/m365/spfx/commands/project/project-model/Npmignore.js +3 -0
  455. package/dist/m365/spfx/commands/project/project-model/PackageJson.js +3 -0
  456. package/dist/m365/spfx/commands/project/project-model/PackageSolutionJson.js +3 -0
  457. package/dist/m365/spfx/commands/project/project-model/Project.js +3 -0
  458. package/dist/m365/spfx/commands/project/project-model/ScssFile.js +20 -0
  459. package/dist/m365/spfx/commands/project/project-model/ServeJson.js +3 -0
  460. package/dist/m365/spfx/commands/project/project-model/TsConfigJson.js +3 -0
  461. package/dist/m365/spfx/commands/project/project-model/TsFile.js +50 -0
  462. package/dist/m365/spfx/commands/project/project-model/TsLintJson.js +3 -0
  463. package/dist/m365/spfx/commands/project/project-model/VsCode.js +3 -0
  464. package/dist/m365/spfx/commands/project/project-model/VsCodeExtensionsJson.js +3 -0
  465. package/dist/m365/spfx/commands/project/project-model/VsCodeLaunchJson.js +3 -0
  466. package/dist/m365/spfx/commands/project/project-model/VsCodeSettingsJson.js +3 -0
  467. package/dist/m365/spfx/commands/project/project-model/WriteManifestsJson.js +3 -0
  468. package/dist/m365/spfx/commands/project/project-model/YoRcJson.js +3 -0
  469. package/dist/m365/spfx/commands/project/project-model/index.js +40 -0
  470. package/dist/m365/spfx/commands/project/project-permissions-grant.js +81 -0
  471. package/dist/m365/spfx/commands/project/project-rename.js +196 -0
  472. package/dist/m365/spfx/commands/project/project-upgrade/assets/tab20x20.png +0 -0
  473. package/dist/m365/spfx/commands/project/project-upgrade/assets/tab96x96.png +0 -0
  474. package/dist/m365/spfx/commands/project/project-upgrade/rules/DependencyRule.js +85 -0
  475. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001001_DEP_microsoft_sp_core_library.js +14 -0
  476. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001002_DEP_microsoft_sp_lodash_subset.js +14 -0
  477. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core.js +14 -0
  478. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001004_DEP_microsoft_sp_webpart_base.js +14 -0
  479. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001005_DEP_types_react.js +18 -0
  480. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001006_DEP_types_react_dom.js +18 -0
  481. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001007_DEP_types_webpack_env.js +14 -0
  482. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001008_DEP_react.js +18 -0
  483. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001009_DEP_react_dom.js +18 -0
  484. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001010_DEP_types_es6_promise.js +14 -0
  485. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001011_DEP_microsoft_sp_dialog.js +14 -0
  486. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001012_DEP_microsoft_sp_application_base.js +14 -0
  487. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001013_DEP_microsoft_decorators.js +14 -0
  488. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001014_DEP_microsoft_sp_listview_extensibility.js +14 -0
  489. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001015_DEP_types_react_addons_shallow_compare.js +18 -0
  490. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001016_DEP_types_react_addons_update.js +18 -0
  491. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001017_DEP_types_react_addons_update.js +18 -0
  492. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001018_DEP_microsoft_sp_client_base.js +14 -0
  493. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001019_DEP_knockout.js +18 -0
  494. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001020_DEP_types_knockout.js +18 -0
  495. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001021_DEP_microsoft_sp_property_pane.js +19 -0
  496. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +18 -0
  497. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001023_DEP_microsoft_sp_component_base.js +14 -0
  498. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001024_DEP_microsoft_sp_diagnostics.js +14 -0
  499. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001025_DEP_microsoft_sp_dynamic_data.js +14 -0
  500. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001026_DEP_microsoft_sp_extension_base.js +14 -0
  501. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001027_DEP_microsoft_sp_http.js +14 -0
  502. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001028_DEP_microsoft_sp_list_subscription.js +14 -0
  503. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001029_DEP_microsoft_sp_loader.js +14 -0
  504. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001030_DEP_microsoft_sp_module_interfaces.js +14 -0
  505. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001031_DEP_microsoft_sp_odata_types.js +14 -0
  506. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001032_DEP_microsoft_sp_page_context.js +14 -0
  507. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001033_DEP_tslib.js +14 -0
  508. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js +17 -0
  509. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001035_DEP_fluentui_react.js +18 -0
  510. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002001_DEVDEP_microsoft_sp_build_web.js +14 -0
  511. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js +14 -0
  512. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002003_DEVDEP_microsoft_sp_webpart_workbench.js +14 -0
  513. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002004_DEVDEP_gulp.js +14 -0
  514. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002005_DEVDEP_types_chai.js +14 -0
  515. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002006_DEVDEP_types_mocha.js +14 -0
  516. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002007_DEVDEP_ajv.js +14 -0
  517. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002008_DEVDEP_tslint_microsoft_contrib.js +14 -0
  518. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002009_DEVDEP_microsoft_sp_tslint_rules.js +14 -0
  519. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002010_DEVDEP_microsoft_rush_stack_compiler_2_7.js +14 -0
  520. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002011_DEVDEP_microsoft_rush_stack_compiler_2_9.js +17 -0
  521. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002012_DEVDEP_microsoft_rush_stack_compiler_3_3.js +17 -0
  522. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002013_DEVDEP_types_webpack_env.js +14 -0
  523. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002014_DEVDEP_types_es6_promise.js +14 -0
  524. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002015_DEVDEP_types_react.js +18 -0
  525. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002016_DEVDEP_types_react_dom.js +18 -0
  526. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7.js +17 -0
  527. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9.js +17 -0
  528. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js +14 -0
  529. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5.js +17 -0
  530. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +14 -0
  531. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js +14 -0
  532. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js +14 -0
  533. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002024_DEVDEP_eslint.js +14 -0
  534. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002025_DEVDEP_eslint_plugin_react_hooks.js +18 -0
  535. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002026_DEVDEP_typescript.js +14 -0
  536. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002027_DEVDEP_fluentui_react.js +14 -0
  537. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js +17 -0
  538. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js +17 -0
  539. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003001_CFG_schema.js +44 -0
  540. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003002_CFG_version.js +44 -0
  541. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003003_CFG_bundles.js +66 -0
  542. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003004_CFG_entries.js +43 -0
  543. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003005_CFG_localizedResource_pathLib.js +52 -0
  544. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004001_CFG_CA_schema.js +44 -0
  545. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004002_CFG_CA_deployCdnPath.js +44 -0
  546. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005001_CFG_DAS_schema.js +44 -0
  547. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005002_CFG_DAS_workingDir.js +44 -0
  548. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006001_CFG_PS_schema.js +44 -0
  549. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006002_CFG_PS_includeClientSideAssets.js +47 -0
  550. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006003_CFG_PS_isDomainIsolated.js +47 -0
  551. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006004_CFG_PS_developer.js +53 -0
  552. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006005_CFG_PS_metadata.js +63 -0
  553. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +63 -0
  554. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007001_CFG_S_schema.js +44 -0
  555. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007002_CFG_S_initialPage.js +44 -0
  556. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007003_CFG_S_api.js +41 -0
  557. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008001_CFG_TSL_schema.js +44 -0
  558. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008002_CFG_TSL_removeRule.js +51 -0
  559. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008003_CFG_TSL_preferConst.js +48 -0
  560. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN009001_CFG_WM_schema.js +44 -0
  561. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +47 -0
  562. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +47 -0
  563. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +47 -0
  564. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010004_YORC_componentType.js +67 -0
  565. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +47 -0
  566. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +56 -0
  567. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +47 -0
  568. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +48 -0
  569. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010009_YORC_sdkVersions_microsoft_graph_client.js +56 -0
  570. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010010_YORC_sdkVersions_teams_js.js +56 -0
  571. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011001_MAN_webpart_schema.js +46 -0
  572. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011002_MAN_applicationCustomizer_schema.js +47 -0
  573. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011003_MAN_listViewCommandSet_schema.js +47 -0
  574. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011004_MAN_fieldCustomizer_schema.js +47 -0
  575. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011005_MAN_webpart_defaultGroup.js +53 -0
  576. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011006_MAN_listViewCommandSet_items.js +50 -0
  577. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011007_MAN_listViewCommandSet_removeCommands.js +46 -0
  578. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011008_MAN_requiresCustomScript.js +44 -0
  579. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011009_MAN_webpart_safeWithCustomScriptDisabled.js +49 -0
  580. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011010_MAN_webpart_version.js +42 -0
  581. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011011_MAN_webpart_supportedHosts.js +49 -0
  582. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012001_TSC_module.js +46 -0
  583. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012002_TSC_moduleResolution.js +46 -0
  584. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012003_TSC_skipLibCheck.js +46 -0
  585. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012004_TSC_typeRoots_types.js +48 -0
  586. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012005_TSC_typeRoots_microsoft.js +48 -0
  587. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012006_TSC_types_es6_collections.js +58 -0
  588. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012007_TSC_lib_es5.js +48 -0
  589. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012008_TSC_lib_dom.js +48 -0
  590. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012009_TSC_lib_es2015_collection.js +48 -0
  591. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012010_TSC_experimentalDecorators.js +45 -0
  592. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012011_TSC_outDir.js +46 -0
  593. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012012_TSC_include.js +45 -0
  594. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012013_TSC_exclude.js +59 -0
  595. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012014_TSC_inlineSources.js +46 -0
  596. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012015_TSC_strictNullChecks.js +46 -0
  597. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012016_TSC_noUnusedLocals.js +46 -0
  598. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012017_TSC_extends.js +45 -0
  599. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012018_TSC_lib_es2015_promise.js +48 -0
  600. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012019_TSC_types_es6_promise.js +58 -0
  601. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012020_TSC_noImplicitAny.js +46 -0
  602. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN013001_GULP_msGridSassSuppression.js +40 -0
  603. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN013002_GULP_serveTask.js +48 -0
  604. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014001_CODE_settings_jsonSchemas.js +52 -0
  605. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014002_CODE_extensions.js +41 -0
  606. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014003_CODE_launch.js +78 -0
  607. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014004_CODE_settings_jsonSchemas_configJson_url.js +61 -0
  608. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014005_CODE_settingsfile.js +111 -0
  609. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014006_CODE_launch_sourceMapPathOverrides.js +65 -0
  610. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014007_CODE_launch_localWorkbench.js +55 -0
  611. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014008_CODE_launch_hostedWorkbench_type.js +62 -0
  612. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014009_CODE_launch_hostedWorkbench_url.js +62 -0
  613. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014010_CODE_settings_filesexclude_jest.js +48 -0
  614. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015001_FILE_typings_tsd_d_ts.js +14 -0
  615. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015002_FILE_typings__ms_odsp_d_ts.js +14 -0
  616. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015003_FILE_tslint_json.js +14 -0
  617. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015004_FILE_config_tslint_json.js +17 -0
  618. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015005_FILE_src_index_ts.js +14 -0
  619. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015007_FILE_config_copy_assets_json.js +17 -0
  620. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +21 -0
  621. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015009_FILE_config_sass_json.js +14 -0
  622. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN016001_TS_msgraphclient_packageName.js +62 -0
  623. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN016002_TS_msgraphclient_instance.js +70 -0
  624. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN016003_TS_aadhttpclient_instance.js +65 -0
  625. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN016004_TS_property_pane_property_import.js +75 -0
  626. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN017001_MISC_npm_dedupe.js +38 -0
  627. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018001_TEAMS_folder.js +52 -0
  628. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018002_TEAMS_manifest.js +128 -0
  629. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018003_TEAMS_tab20x20_png.js +74 -0
  630. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018004_TEAMS_tab96x96_png.js +74 -0
  631. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018005_TEAMS_deprecated_manifest.js +46 -0
  632. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN019001_TSL_rulesDirectory.js +43 -0
  633. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN019002_TSL_extends.js +44 -0
  634. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN020001_RES_types_react.js +18 -0
  635. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021001_PKG_main.js +14 -0
  636. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021002_PKG_engines.js +14 -0
  637. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +49 -0
  638. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022001_SCSS_remove_fabric_react.js +52 -0
  639. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022002_SCSS_add_fabric_react.js +56 -0
  640. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023001_GITIGNORE_release.js +40 -0
  641. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023002_GITIGNORE_heft.js +40 -0
  642. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN024001_NPMIGNORE_file.js +53 -0
  643. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025001_ESLINTRCJS_overrides.js +64 -0
  644. package/dist/m365/spfx/commands/project/project-upgrade/rules/FileAddRemoveRule.js +49 -0
  645. package/dist/m365/spfx/commands/project/project-upgrade/rules/ManifestRule.js +22 -0
  646. package/dist/m365/spfx/commands/project/project-upgrade/rules/PackageRule.js +45 -0
  647. package/dist/m365/spfx/commands/project/project-upgrade/rules/ResolutionRule.js +50 -0
  648. package/dist/m365/spfx/commands/project/project-upgrade/rules/ScssRule.js +21 -0
  649. package/dist/m365/spfx/commands/project/project-upgrade/rules/TsRule.js +39 -0
  650. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.0.1.js +9 -0
  651. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.0.2.js +13 -0
  652. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.1.0.js +61 -0
  653. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.1.1.js +19 -0
  654. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.1.3.js +13 -0
  655. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.10.0.js +61 -0
  656. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.11.0.js +77 -0
  657. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.0.js +91 -0
  658. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.1.js +59 -0
  659. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.0.js +83 -0
  660. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.1.js +53 -0
  661. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +61 -0
  662. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.0.js +89 -0
  663. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +435 -0
  664. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0.js +77 -0
  665. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.1.js +59 -0
  666. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.0.js +67 -0
  667. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.1.js +55 -0
  668. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.2.js +61 -0
  669. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.3.js +59 -0
  670. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.4.js +55 -0
  671. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.0.js +69 -0
  672. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.1.js +59 -0
  673. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.2.js +55 -0
  674. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.19.0.js +55 -0
  675. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.2.0.js +73 -0
  676. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.20.0.js +61 -0
  677. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.0.js +65 -0
  678. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.1.js +55 -0
  679. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.0.js +43 -0
  680. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.1.js +7 -0
  681. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.2.js +7 -0
  682. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.4.js +49 -0
  683. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.4.0.js +77 -0
  684. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.4.1.js +45 -0
  685. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.5.0.js +87 -0
  686. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.5.1.js +47 -0
  687. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.6.0.js +104 -0
  688. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.7.0.js +75 -0
  689. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.7.1.js +57 -0
  690. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.8.0.js +77 -0
  691. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.8.1.js +53 -0
  692. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.8.2.js +67 -0
  693. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.9.1.js +75 -0
  694. package/dist/m365/spfx/commands/project/project-upgrade.js +549 -0
  695. package/dist/m365/spfx/commands/project/report-model/Finding.js +3 -0
  696. package/dist/m365/spfx/commands/project/report-model/FindingToReport.js +3 -0
  697. package/dist/m365/spfx/commands/project/report-model/FindingTour.js +3 -0
  698. package/dist/m365/spfx/commands/project/report-model/FindingTourStep.js +3 -0
  699. package/dist/m365/spfx/commands/project/report-model/Occurrence.js +3 -0
  700. package/dist/m365/spfx/commands/project/report-model/ReportData.js +3 -0
  701. package/dist/m365/spfx/commands/project/report-model/index.js +22 -0
  702. package/dist/m365/spfx/commands/spfx-doctor.js +1058 -0
  703. package/dist/m365/spfx/commands.js +15 -0
  704. package/dist/m365/spo/ClientSideComponent.js +3 -0
  705. package/dist/m365/spo/StandardWebPartTypes.js +44 -0
  706. package/dist/m365/spo/base-permissions.js +121 -0
  707. package/dist/m365/spo/commands/app/AppMetadata.js +3 -0
  708. package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +49 -0
  709. package/dist/m365/spo/commands/app/app-add.js +120 -0
  710. package/dist/m365/spo/commands/app/app-deploy.js +134 -0
  711. package/dist/m365/spo/commands/app/app-get.js +126 -0
  712. package/dist/m365/spo/commands/app/app-install.js +88 -0
  713. package/dist/m365/spo/commands/app/app-instance-list.js +82 -0
  714. package/dist/m365/spo/commands/app/app-list.js +100 -0
  715. package/dist/m365/spo/commands/app/app-remove.js +119 -0
  716. package/dist/m365/spo/commands/app/app-retract.js +118 -0
  717. package/dist/m365/spo/commands/app/app-teamspackage-download.js +189 -0
  718. package/dist/m365/spo/commands/app/app-uninstall.js +108 -0
  719. package/dist/m365/spo/commands/app/app-upgrade.js +88 -0
  720. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +109 -0
  721. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +146 -0
  722. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-list.js +72 -0
  723. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +146 -0
  724. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +155 -0
  725. package/dist/m365/spo/commands/apppage/apppage-add.js +112 -0
  726. package/dist/m365/spo/commands/apppage/apppage-set.js +78 -0
  727. package/dist/m365/spo/commands/cdn/cdn-get.js +102 -0
  728. package/dist/m365/spo/commands/cdn/cdn-origin-add.js +96 -0
  729. package/dist/m365/spo/commands/cdn/cdn-origin-list.js +97 -0
  730. package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +117 -0
  731. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +106 -0
  732. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +112 -0
  733. package/dist/m365/spo/commands/cdn/cdn-set.js +147 -0
  734. package/dist/m365/spo/commands/commandset/commandset-add.js +139 -0
  735. package/dist/m365/spo/commands/commandset/commandset-get.js +130 -0
  736. package/dist/m365/spo/commands/commandset/commandset-list.js +77 -0
  737. package/dist/m365/spo/commands/commandset/commandset-remove.js +150 -0
  738. package/dist/m365/spo/commands/commandset/commandset-set.js +196 -0
  739. package/dist/m365/spo/commands/contenttype/FieldLink.js +3 -0
  740. package/dist/m365/spo/commands/contenttype/contenttype-add.js +217 -0
  741. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +207 -0
  742. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +309 -0
  743. package/dist/m365/spo/commands/contenttype/contenttype-get.js +133 -0
  744. package/dist/m365/spo/commands/contenttype/contenttype-list.js +72 -0
  745. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +134 -0
  746. package/dist/m365/spo/commands/contenttype/contenttype-set.js +262 -0
  747. package/dist/m365/spo/commands/contenttypehub/contenttypehub-get.js +75 -0
  748. package/dist/m365/spo/commands/customaction/customaction-add.js +287 -0
  749. package/dist/m365/spo/commands/customaction/customaction-clear.js +124 -0
  750. package/dist/m365/spo/commands/customaction/customaction-get.js +162 -0
  751. package/dist/m365/spo/commands/customaction/customaction-list.js +105 -0
  752. package/dist/m365/spo/commands/customaction/customaction-remove.js +168 -0
  753. package/dist/m365/spo/commands/customaction/customaction-set.js +290 -0
  754. package/dist/m365/spo/commands/customaction/customaction.js +3 -0
  755. package/dist/m365/spo/commands/eventreceiver/EventReceiver.js +3 -0
  756. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +154 -0
  757. package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +116 -0
  758. package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +167 -0
  759. package/dist/m365/spo/commands/externaluser/ExternalUser.js +3 -0
  760. package/dist/m365/spo/commands/externaluser/ExternalUserCollection.js +3 -0
  761. package/dist/m365/spo/commands/externaluser/GetExternalUsersResults.js +3 -0
  762. package/dist/m365/spo/commands/externaluser/externaluser-list.js +149 -0
  763. package/dist/m365/spo/commands/feature/Feature.js +3 -0
  764. package/dist/m365/spo/commands/feature/feature-disable.js +98 -0
  765. package/dist/m365/spo/commands/feature/feature-enable.js +98 -0
  766. package/dist/m365/spo/commands/feature/feature-list.js +81 -0
  767. package/dist/m365/spo/commands/field/field-add.js +161 -0
  768. package/dist/m365/spo/commands/field/field-get.js +118 -0
  769. package/dist/m365/spo/commands/field/field-list.js +99 -0
  770. package/dist/m365/spo/commands/field/field-remove.js +187 -0
  771. package/dist/m365/spo/commands/field/field-set.js +187 -0
  772. package/dist/m365/spo/commands/file/FileProperties.js +3 -0
  773. package/dist/m365/spo/commands/file/FileSharingPrincipalType.js +13 -0
  774. package/dist/m365/spo/commands/file/GraphFileDetails.js +2 -0
  775. package/dist/m365/spo/commands/file/file-add.js +500 -0
  776. package/dist/m365/spo/commands/file/file-checkin.js +137 -0
  777. package/dist/m365/spo/commands/file/file-checkout-undo.js +119 -0
  778. package/dist/m365/spo/commands/file/file-checkout.js +100 -0
  779. package/dist/m365/spo/commands/file/file-copy.js +154 -0
  780. package/dist/m365/spo/commands/file/file-get.js +194 -0
  781. package/dist/m365/spo/commands/file/file-list.js +177 -0
  782. package/dist/m365/spo/commands/file/file-move.js +157 -0
  783. package/dist/m365/spo/commands/file/file-remove.js +134 -0
  784. package/dist/m365/spo/commands/file/file-rename.js +128 -0
  785. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +142 -0
  786. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +141 -0
  787. package/dist/m365/spo/commands/file/file-roleassignment-add.js +198 -0
  788. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +183 -0
  789. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +133 -0
  790. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +129 -0
  791. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +153 -0
  792. package/dist/m365/spo/commands/file/file-sharinglink-add.js +121 -0
  793. package/dist/m365/spo/commands/file/file-sharinglink-clear.js +137 -0
  794. package/dist/m365/spo/commands/file/file-sharinglink-get.js +93 -0
  795. package/dist/m365/spo/commands/file/file-sharinglink-list.js +113 -0
  796. package/dist/m365/spo/commands/file/file-sharinglink-remove.js +112 -0
  797. package/dist/m365/spo/commands/file/file-sharinglink-set.js +104 -0
  798. package/dist/m365/spo/commands/file/file-version-clear.js +116 -0
  799. package/dist/m365/spo/commands/file/file-version-get.js +106 -0
  800. package/dist/m365/spo/commands/file/file-version-list.js +92 -0
  801. package/dist/m365/spo/commands/file/file-version-remove.js +121 -0
  802. package/dist/m365/spo/commands/file/file-version-restore.js +121 -0
  803. package/dist/m365/spo/commands/folder/FolderProperties.js +3 -0
  804. package/dist/m365/spo/commands/folder/folder-add.js +74 -0
  805. package/dist/m365/spo/commands/folder/folder-copy.js +156 -0
  806. package/dist/m365/spo/commands/folder/folder-get.js +125 -0
  807. package/dist/m365/spo/commands/folder/folder-list.js +146 -0
  808. package/dist/m365/spo/commands/folder/folder-move.js +156 -0
  809. package/dist/m365/spo/commands/folder/folder-remove.js +110 -0
  810. package/dist/m365/spo/commands/folder/folder-rename.js +82 -0
  811. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +138 -0
  812. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +157 -0
  813. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +215 -0
  814. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +169 -0
  815. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +104 -0
  816. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +100 -0
  817. package/dist/m365/spo/commands/group/AssociatedGroupPropertiesCollection.js +3 -0
  818. package/dist/m365/spo/commands/group/GroupProperties.js +3 -0
  819. package/dist/m365/spo/commands/group/SharingResult.js +3 -0
  820. package/dist/m365/spo/commands/group/group-add.js +113 -0
  821. package/dist/m365/spo/commands/group/group-get.js +114 -0
  822. package/dist/m365/spo/commands/group/group-list.js +103 -0
  823. package/dist/m365/spo/commands/group/group-member-add.js +206 -0
  824. package/dist/m365/spo/commands/group/group-member-list.js +85 -0
  825. package/dist/m365/spo/commands/group/group-member-remove.js +202 -0
  826. package/dist/m365/spo/commands/group/group-remove.js +127 -0
  827. package/dist/m365/spo/commands/group/group-set.js +177 -0
  828. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +47 -0
  829. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +76 -0
  830. package/dist/m365/spo/commands/homesite/homesite-get.js +46 -0
  831. package/dist/m365/spo/commands/homesite/homesite-remove.js +93 -0
  832. package/dist/m365/spo/commands/homesite/homesite-set.js +92 -0
  833. package/dist/m365/spo/commands/hubsite/AssociatedSite.js +3 -0
  834. package/dist/m365/spo/commands/hubsite/HubSite.js +3 -0
  835. package/dist/m365/spo/commands/hubsite/HubSiteProperties.js +3 -0
  836. package/dist/m365/spo/commands/hubsite/QueryListResult.js +3 -0
  837. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +155 -0
  838. package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +82 -0
  839. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +152 -0
  840. package/dist/m365/spo/commands/hubsite/hubsite-get.js +141 -0
  841. package/dist/m365/spo/commands/hubsite/hubsite-list.js +131 -0
  842. package/dist/m365/spo/commands/hubsite/hubsite-register.js +65 -0
  843. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +93 -0
  844. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +106 -0
  845. package/dist/m365/spo/commands/hubsite/hubsite-set.js +112 -0
  846. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +93 -0
  847. package/dist/m365/spo/commands/knowledgehub/knowledgehub-get.js +55 -0
  848. package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +97 -0
  849. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +75 -0
  850. package/dist/m365/spo/commands/list/DraftVisibilityType.js +10 -0
  851. package/dist/m365/spo/commands/list/ListExperience.js +10 -0
  852. package/dist/m365/spo/commands/list/ListInstance.js +3 -0
  853. package/dist/m365/spo/commands/list/ListPrincipalType.js +13 -0
  854. package/dist/m365/spo/commands/list/ListTemplateType.js +26 -0
  855. package/dist/m365/spo/commands/list/list-add.js +625 -0
  856. package/dist/m365/spo/commands/list/list-contenttype-add.js +115 -0
  857. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +204 -0
  858. package/dist/m365/spo/commands/list/list-contenttype-list.js +104 -0
  859. package/dist/m365/spo/commands/list/list-contenttype-remove.js +134 -0
  860. package/dist/m365/spo/commands/list/list-get.js +148 -0
  861. package/dist/m365/spo/commands/list/list-list.js +101 -0
  862. package/dist/m365/spo/commands/list/list-remove.js +120 -0
  863. package/dist/m365/spo/commands/list/list-retentionlabel-ensure.js +121 -0
  864. package/dist/m365/spo/commands/list/list-retentionlabel-get.js +134 -0
  865. package/dist/m365/spo/commands/list/list-retentionlabel-remove.js +146 -0
  866. package/dist/m365/spo/commands/list/list-roleassignment-add.js +155 -0
  867. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +184 -0
  868. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +134 -0
  869. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +127 -0
  870. package/dist/m365/spo/commands/list/list-sensitivitylabel-ensure.js +137 -0
  871. package/dist/m365/spo/commands/list/list-set.js +631 -0
  872. package/dist/m365/spo/commands/list/list-sitescript-get.js +136 -0
  873. package/dist/m365/spo/commands/list/list-view-add.js +129 -0
  874. package/dist/m365/spo/commands/list/list-view-field-add.js +184 -0
  875. package/dist/m365/spo/commands/list/list-view-field-remove.js +169 -0
  876. package/dist/m365/spo/commands/list/list-view-field-set.js +158 -0
  877. package/dist/m365/spo/commands/list/list-view-get.js +115 -0
  878. package/dist/m365/spo/commands/list/list-view-list.js +100 -0
  879. package/dist/m365/spo/commands/list/list-view-remove.js +142 -0
  880. package/dist/m365/spo/commands/list/list-view-set.js +141 -0
  881. package/dist/m365/spo/commands/list/list-webhook-add.js +143 -0
  882. package/dist/m365/spo/commands/list/list-webhook-get.js +117 -0
  883. package/dist/m365/spo/commands/list/list-webhook-list.js +113 -0
  884. package/dist/m365/spo/commands/list/list-webhook-remove.js +135 -0
  885. package/dist/m365/spo/commands/list/list-webhook-set.js +138 -0
  886. package/dist/m365/spo/commands/listitem/ListItemFieldValueResult.js +3 -0
  887. package/dist/m365/spo/commands/listitem/ListItemInstance.js +3 -0
  888. package/dist/m365/spo/commands/listitem/ListItemInstanceCollection.js +3 -0
  889. package/dist/m365/spo/commands/listitem/ListItemRetentionLabel.js +3 -0
  890. package/dist/m365/spo/commands/listitem/SiteRetentionLabel.js +3 -0
  891. package/dist/m365/spo/commands/listitem/listitem-add.js +234 -0
  892. package/dist/m365/spo/commands/listitem/listitem-attachment-add.js +140 -0
  893. package/dist/m365/spo/commands/listitem/listitem-attachment-get.js +110 -0
  894. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +118 -0
  895. package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +134 -0
  896. package/dist/m365/spo/commands/listitem/listitem-attachment-set.js +128 -0
  897. package/dist/m365/spo/commands/listitem/listitem-batch-add.js +226 -0
  898. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +308 -0
  899. package/dist/m365/spo/commands/listitem/listitem-get.js +148 -0
  900. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +171 -0
  901. package/dist/m365/spo/commands/listitem/listitem-list.js +244 -0
  902. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +155 -0
  903. package/dist/m365/spo/commands/listitem/listitem-record-lock.js +129 -0
  904. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +133 -0
  905. package/dist/m365/spo/commands/listitem/listitem-record-unlock.js +129 -0
  906. package/dist/m365/spo/commands/listitem/listitem-remove.js +142 -0
  907. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-ensure.js +195 -0
  908. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +143 -0
  909. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +219 -0
  910. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +192 -0
  911. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +141 -0
  912. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +134 -0
  913. package/dist/m365/spo/commands/listitem/listitem-set.js +331 -0
  914. package/dist/m365/spo/commands/mail/mail-send.js +119 -0
  915. package/dist/m365/spo/commands/navigation/NavigationNode.js +3 -0
  916. package/dist/m365/spo/commands/navigation/navigation-node-add.js +162 -0
  917. package/dist/m365/spo/commands/navigation/navigation-node-get.js +73 -0
  918. package/dist/m365/spo/commands/navigation/navigation-node-list.js +81 -0
  919. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +115 -0
  920. package/dist/m365/spo/commands/navigation/navigation-node-set.js +151 -0
  921. package/dist/m365/spo/commands/orgassetslibrary/OrgAssets.js +3 -0
  922. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +122 -0
  923. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +70 -0
  924. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +90 -0
  925. package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +54 -0
  926. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +99 -0
  927. package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +71 -0
  928. package/dist/m365/spo/commands/page/ClientSideControl.js +3 -0
  929. package/dist/m365/spo/commands/page/ClientSidePageProperties.js +3 -0
  930. package/dist/m365/spo/commands/page/Page.js +105 -0
  931. package/dist/m365/spo/commands/page/PageControl.js +3 -0
  932. package/dist/m365/spo/commands/page/PageHeader.js +3 -0
  933. package/dist/m365/spo/commands/page/PageItem.js +3 -0
  934. package/dist/m365/spo/commands/page/PageTemplate.js +3 -0
  935. package/dist/m365/spo/commands/page/canvasContent.js +3 -0
  936. package/dist/m365/spo/commands/page/clientsidepages.js +770 -0
  937. package/dist/m365/spo/commands/page/page-add.js +321 -0
  938. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +400 -0
  939. package/dist/m365/spo/commands/page/page-column-get.js +86 -0
  940. package/dist/m365/spo/commands/page/page-column-list.js +74 -0
  941. package/dist/m365/spo/commands/page/page-control-get.js +95 -0
  942. package/dist/m365/spo/commands/page/page-control-list.js +85 -0
  943. package/dist/m365/spo/commands/page/page-control-set.js +191 -0
  944. package/dist/m365/spo/commands/page/page-copy.js +136 -0
  945. package/dist/m365/spo/commands/page/page-get.js +108 -0
  946. package/dist/m365/spo/commands/page/page-header-set.js +402 -0
  947. package/dist/m365/spo/commands/page/page-list.js +77 -0
  948. package/dist/m365/spo/commands/page/page-remove.js +100 -0
  949. package/dist/m365/spo/commands/page/page-section-add.js +232 -0
  950. package/dist/m365/spo/commands/page/page-section-get.js +70 -0
  951. package/dist/m365/spo/commands/page/page-section-list.js +73 -0
  952. package/dist/m365/spo/commands/page/page-set.js +365 -0
  953. package/dist/m365/spo/commands/page/page-template-list.js +68 -0
  954. package/dist/m365/spo/commands/page/page-text-add.js +145 -0
  955. package/dist/m365/spo/commands/page/pageMethods.js +17 -0
  956. package/dist/m365/spo/commands/propertybag/propertybag-base.js +179 -0
  957. package/dist/m365/spo/commands/propertybag/propertybag-get.js +95 -0
  958. package/dist/m365/spo/commands/propertybag/propertybag-list.js +93 -0
  959. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +122 -0
  960. package/dist/m365/spo/commands/propertybag/propertybag-set.js +88 -0
  961. package/dist/m365/spo/commands/report/report-activityfilecounts.js +17 -0
  962. package/dist/m365/spo/commands/report/report-activitypages.js +17 -0
  963. package/dist/m365/spo/commands/report/report-activityusercounts.js +17 -0
  964. package/dist/m365/spo/commands/report/report-activityuserdetail.js +17 -0
  965. package/dist/m365/spo/commands/report/report-siteusagedetail.js +17 -0
  966. package/dist/m365/spo/commands/report/report-siteusagefilecounts.js +17 -0
  967. package/dist/m365/spo/commands/report/report-siteusagepages.js +17 -0
  968. package/dist/m365/spo/commands/report/report-siteusagesitecounts.js +17 -0
  969. package/dist/m365/spo/commands/report/report-siteusagestorage.js +17 -0
  970. package/dist/m365/spo/commands/roledefinition/RoleDefinition.js +3 -0
  971. package/dist/m365/spo/commands/roledefinition/RoleType.js +16 -0
  972. package/dist/m365/spo/commands/roledefinition/roledefinition-add.js +117 -0
  973. package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +79 -0
  974. package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +63 -0
  975. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +103 -0
  976. package/dist/m365/spo/commands/search/datatypes/QueryResult.js +3 -0
  977. package/dist/m365/spo/commands/search/datatypes/RefinementResult.js +3 -0
  978. package/dist/m365/spo/commands/search/datatypes/RelevantResults.js +3 -0
  979. package/dist/m365/spo/commands/search/datatypes/ResultTable.js +3 -0
  980. package/dist/m365/spo/commands/search/datatypes/ResultTableRow.js +3 -0
  981. package/dist/m365/spo/commands/search/datatypes/SearchResult.js +3 -0
  982. package/dist/m365/spo/commands/search/datatypes/SearchResultProperty.js +3 -0
  983. package/dist/m365/spo/commands/search/datatypes/SpecialTermResult.js +3 -0
  984. package/dist/m365/spo/commands/serviceprincipal/SPOWebAppServicePrincipalPermissionGrant.js +3 -0
  985. package/dist/m365/spo/commands/serviceprincipal/SPOWebAppServicePrincipalPermissionRequest.js +3 -0
  986. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +80 -0
  987. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +65 -0
  988. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +73 -0
  989. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +136 -0
  990. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +82 -0
  991. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +112 -0
  992. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +107 -0
  993. package/dist/m365/spo/commands/site/DeletedSiteProperties.js +3 -0
  994. package/dist/m365/spo/commands/site/FlowsPolicy.js +10 -0
  995. package/dist/m365/spo/commands/site/SPOSitePropertiesEnumerable.js +3 -0
  996. package/dist/m365/spo/commands/site/SharingCapabilities.js +11 -0
  997. package/dist/m365/spo/commands/site/SiteProperties.js +3 -0
  998. package/dist/m365/spo/commands/site/site-add.js +521 -0
  999. package/dist/m365/spo/commands/site/site-appcatalog-add.js +80 -0
  1000. package/dist/m365/spo/commands/site/site-appcatalog-list.js +84 -0
  1001. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +80 -0
  1002. package/dist/m365/spo/commands/site/site-apppermission-add.js +173 -0
  1003. package/dist/m365/spo/commands/site/site-apppermission-get.js +78 -0
  1004. package/dist/m365/spo/commands/site/site-apppermission-list.js +125 -0
  1005. package/dist/m365/spo/commands/site/site-apppermission-remove.js +151 -0
  1006. package/dist/m365/spo/commands/site/site-apppermission-set.js +133 -0
  1007. package/dist/m365/spo/commands/site/site-chrome-set.js +182 -0
  1008. package/dist/m365/spo/commands/site/site-commsite-enable.js +110 -0
  1009. package/dist/m365/spo/commands/site/site-ensure.js +206 -0
  1010. package/dist/m365/spo/commands/site/site-get.js +60 -0
  1011. package/dist/m365/spo/commands/site/site-groupify.js +103 -0
  1012. package/dist/m365/spo/commands/site/site-hubsite-connect.js +76 -0
  1013. package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +95 -0
  1014. package/dist/m365/spo/commands/site/site-hubsite-theme-sync.js +64 -0
  1015. package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +83 -0
  1016. package/dist/m365/spo/commands/site/site-list.js +142 -0
  1017. package/dist/m365/spo/commands/site/site-recyclebinitem-clear.js +115 -0
  1018. package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +104 -0
  1019. package/dist/m365/spo/commands/site/site-recyclebinitem-move.js +119 -0
  1020. package/dist/m365/spo/commands/site/site-recyclebinitem-remove.js +106 -0
  1021. package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +91 -0
  1022. package/dist/m365/spo/commands/site/site-remove.js +296 -0
  1023. package/dist/m365/spo/commands/site/site-rename.js +150 -0
  1024. package/dist/m365/spo/commands/site/site-set.js +595 -0
  1025. package/dist/m365/spo/commands/sitedesign/SiteDesign.js +3 -0
  1026. package/dist/m365/spo/commands/sitedesign/SiteDesignPrincipal.js +3 -0
  1027. package/dist/m365/spo/commands/sitedesign/SiteDesignRun.js +3 -0
  1028. package/dist/m365/spo/commands/sitedesign/SiteDesignTask.js +3 -0
  1029. package/dist/m365/spo/commands/sitedesign/SiteScriptActionStatus.js +3 -0
  1030. package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +129 -0
  1031. package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +91 -0
  1032. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +109 -0
  1033. package/dist/m365/spo/commands/sitedesign/sitedesign-list.js +47 -0
  1034. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +98 -0
  1035. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +85 -0
  1036. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +76 -0
  1037. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +103 -0
  1038. package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +96 -0
  1039. package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +81 -0
  1040. package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +158 -0
  1041. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +74 -0
  1042. package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +65 -0
  1043. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +99 -0
  1044. package/dist/m365/spo/commands/sitescript/sitescript-add.js +87 -0
  1045. package/dist/m365/spo/commands/sitescript/sitescript-get.js +73 -0
  1046. package/dist/m365/spo/commands/sitescript/sitescript-list.js +48 -0
  1047. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +100 -0
  1048. package/dist/m365/spo/commands/sitescript/sitescript-set.js +120 -0
  1049. package/dist/m365/spo/commands/spo-get.js +32 -0
  1050. package/dist/m365/spo/commands/spo-search.js +270 -0
  1051. package/dist/m365/spo/commands/spo-set.js +55 -0
  1052. package/dist/m365/spo/commands/storageentity/TenantProperty.js +3 -0
  1053. package/dist/m365/spo/commands/storageentity/storageentity-get.js +73 -0
  1054. package/dist/m365/spo/commands/storageentity/storageentity-list.js +90 -0
  1055. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +104 -0
  1056. package/dist/m365/spo/commands/storageentity/storageentity-set.js +95 -0
  1057. package/dist/m365/spo/commands/tenant/DeletedSiteProperties.js +3 -0
  1058. package/dist/m365/spo/commands/tenant/DeletedSitePropertiesEnumerable.js +3 -0
  1059. package/dist/m365/spo/commands/tenant/Solution.js +3 -0
  1060. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +161 -0
  1061. package/dist/m365/spo/commands/tenant/tenant-appcatalogurl-get.js +51 -0
  1062. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +179 -0
  1063. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +114 -0
  1064. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +48 -0
  1065. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +152 -0
  1066. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +235 -0
  1067. package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +215 -0
  1068. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +118 -0
  1069. package/dist/m365/spo/commands/tenant/tenant-commandset-list.js +51 -0
  1070. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +154 -0
  1071. package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +286 -0
  1072. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-list.js +65 -0
  1073. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +124 -0
  1074. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +76 -0
  1075. package/dist/m365/spo/commands/tenant/tenant-settings-list.js +75 -0
  1076. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +515 -0
  1077. package/dist/m365/spo/commands/term/Term.js +3 -0
  1078. package/dist/m365/spo/commands/term/TermCollection.js +3 -0
  1079. package/dist/m365/spo/commands/term/TermGroup.js +3 -0
  1080. package/dist/m365/spo/commands/term/TermGroupCollection.js +3 -0
  1081. package/dist/m365/spo/commands/term/TermSet.js +3 -0
  1082. package/dist/m365/spo/commands/term/TermSetCollection.js +3 -0
  1083. package/dist/m365/spo/commands/term/TermStore.js +3 -0
  1084. package/dist/m365/spo/commands/term/term-add.js +237 -0
  1085. package/dist/m365/spo/commands/term/term-get.js +178 -0
  1086. package/dist/m365/spo/commands/term/term-group-add.js +146 -0
  1087. package/dist/m365/spo/commands/term/term-group-get.js +111 -0
  1088. package/dist/m365/spo/commands/term/term-group-list.js +100 -0
  1089. package/dist/m365/spo/commands/term/term-list.js +199 -0
  1090. package/dist/m365/spo/commands/term/term-set-add.js +186 -0
  1091. package/dist/m365/spo/commands/term/term-set-get.js +123 -0
  1092. package/dist/m365/spo/commands/term/term-set-list.js +117 -0
  1093. package/dist/m365/spo/commands/theme/theme-apply.js +166 -0
  1094. package/dist/m365/spo/commands/theme/theme-get.js +73 -0
  1095. package/dist/m365/spo/commands/theme/theme-list.js +58 -0
  1096. package/dist/m365/spo/commands/theme/theme-remove.js +93 -0
  1097. package/dist/m365/spo/commands/theme/theme-set.js +94 -0
  1098. package/dist/m365/spo/commands/user/user-ensure.js +105 -0
  1099. package/dist/m365/spo/commands/user/user-get.js +107 -0
  1100. package/dist/m365/spo/commands/user/user-list.js +71 -0
  1101. package/dist/m365/spo/commands/user/user-remove.js +111 -0
  1102. package/dist/m365/spo/commands/userprofile/userprofile-get.js +75 -0
  1103. package/dist/m365/spo/commands/userprofile/userprofile-set.js +80 -0
  1104. package/dist/m365/spo/commands/web/GetClientSideWebPartsRsp.js +3 -0
  1105. package/dist/m365/spo/commands/web/WebProperties.js +3 -0
  1106. package/dist/m365/spo/commands/web/WebPropertiesCollection.js +3 -0
  1107. package/dist/m365/spo/commands/web/web-add.js +166 -0
  1108. package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +77 -0
  1109. package/dist/m365/spo/commands/web/web-get.js +87 -0
  1110. package/dist/m365/spo/commands/web/web-installedlanguage-list.js +68 -0
  1111. package/dist/m365/spo/commands/web/web-list.js +65 -0
  1112. package/dist/m365/spo/commands/web/web-reindex.js +133 -0
  1113. package/dist/m365/spo/commands/web/web-remove.js +93 -0
  1114. package/dist/m365/spo/commands/web/web-retentionlabel-list.js +63 -0
  1115. package/dist/m365/spo/commands/web/web-roleassignment-add.js +168 -0
  1116. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +161 -0
  1117. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +102 -0
  1118. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +96 -0
  1119. package/dist/m365/spo/commands/web/web-set.js +195 -0
  1120. package/dist/m365/spo/commands.js +348 -0
  1121. package/dist/m365/teams/commands/app/app-install.js +131 -0
  1122. package/dist/m365/teams/commands/app/app-list.js +76 -0
  1123. package/dist/m365/teams/commands/app/app-publish.js +78 -0
  1124. package/dist/m365/teams/commands/app/app-remove.js +131 -0
  1125. package/dist/m365/teams/commands/app/app-uninstall.js +96 -0
  1126. package/dist/m365/teams/commands/app/app-update.js +120 -0
  1127. package/dist/m365/teams/commands/cache/cache-remove.js +179 -0
  1128. package/dist/m365/teams/commands/channel/channel-add.js +151 -0
  1129. package/dist/m365/teams/commands/channel/channel-get.js +139 -0
  1130. package/dist/m365/teams/commands/channel/channel-list.js +100 -0
  1131. package/dist/m365/teams/commands/channel/channel-member-add.js +190 -0
  1132. package/dist/m365/teams/commands/channel/channel-member-list.js +142 -0
  1133. package/dist/m365/teams/commands/channel/channel-member-remove.js +205 -0
  1134. package/dist/m365/teams/commands/channel/channel-member-set.js +185 -0
  1135. package/dist/m365/teams/commands/channel/channel-remove.js +151 -0
  1136. package/dist/m365/teams/commands/channel/channel-set.js +147 -0
  1137. package/dist/m365/teams/commands/chat/chat-get.js +140 -0
  1138. package/dist/m365/teams/commands/chat/chat-list.js +95 -0
  1139. package/dist/m365/teams/commands/chat/chat-member-add.js +117 -0
  1140. package/dist/m365/teams/commands/chat/chat-member-list.js +64 -0
  1141. package/dist/m365/teams/commands/chat/chat-member-remove.js +137 -0
  1142. package/dist/m365/teams/commands/chat/chat-message-list.js +82 -0
  1143. package/dist/m365/teams/commands/chat/chat-message-send.js +186 -0
  1144. package/dist/m365/teams/commands/chat/chatUtil.js +51 -0
  1145. package/dist/m365/teams/commands/funsettings/funsettings-list.js +71 -0
  1146. package/dist/m365/teams/commands/funsettings/funsettings-set.js +117 -0
  1147. package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +68 -0
  1148. package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +96 -0
  1149. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +121 -0
  1150. package/dist/m365/teams/commands/meeting/meeting-get.js +126 -0
  1151. package/dist/m365/teams/commands/meeting/meeting-list.js +197 -0
  1152. package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +124 -0
  1153. package/dist/m365/teams/commands/membersettings/membersettings-list.js +68 -0
  1154. package/dist/m365/teams/commands/membersettings/membersettings-set.js +108 -0
  1155. package/dist/m365/teams/commands/message/message-get.js +74 -0
  1156. package/dist/m365/teams/commands/message/message-list.js +90 -0
  1157. package/dist/m365/teams/commands/message/message-reply-list.js +76 -0
  1158. package/dist/m365/teams/commands/message/message-send.js +81 -0
  1159. package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +68 -0
  1160. package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +119 -0
  1161. package/dist/m365/teams/commands/report/report-deviceusagedistributionusercounts.js +17 -0
  1162. package/dist/m365/teams/commands/report/report-deviceusageusercounts.js +17 -0
  1163. package/dist/m365/teams/commands/report/report-deviceusageuserdetail.js +17 -0
  1164. package/dist/m365/teams/commands/report/report-directroutingcalls.js +88 -0
  1165. package/dist/m365/teams/commands/report/report-pstncalls.js +88 -0
  1166. package/dist/m365/teams/commands/report/report-useractivitycounts.js +17 -0
  1167. package/dist/m365/teams/commands/report/report-useractivityusercounts.js +17 -0
  1168. package/dist/m365/teams/commands/report/report-useractivityuserdetail.js +17 -0
  1169. package/dist/m365/teams/commands/tab/tab-add.js +135 -0
  1170. package/dist/m365/teams/commands/tab/tab-get.js +158 -0
  1171. package/dist/m365/teams/commands/tab/tab-list.js +73 -0
  1172. package/dist/m365/teams/commands/tab/tab-remove.js +103 -0
  1173. package/dist/m365/teams/commands/team/team-add.js +172 -0
  1174. package/dist/m365/teams/commands/team/team-app-list.js +109 -0
  1175. package/dist/m365/teams/commands/team/team-archive.js +102 -0
  1176. package/dist/m365/teams/commands/team/team-clone.js +136 -0
  1177. package/dist/m365/teams/commands/team/team-get.js +95 -0
  1178. package/dist/m365/teams/commands/team/team-list.js +167 -0
  1179. package/dist/m365/teams/commands/team/team-remove.js +112 -0
  1180. package/dist/m365/teams/commands/team/team-set.js +117 -0
  1181. package/dist/m365/teams/commands/team/team-unarchive.js +88 -0
  1182. package/dist/m365/teams/commands/user/user-app-add.js +76 -0
  1183. package/dist/m365/teams/commands/user/user-app-list.js +113 -0
  1184. package/dist/m365/teams/commands/user/user-app-remove.js +95 -0
  1185. package/dist/m365/teams/commands/user/user-list.js +102 -0
  1186. package/dist/m365/teams/commands.js +73 -0
  1187. package/dist/m365/tenant/commands/id/id-get.js +79 -0
  1188. package/dist/m365/tenant/commands/info/info-get.js +96 -0
  1189. package/dist/m365/tenant/commands/report/report-activeusercounts.js +17 -0
  1190. package/dist/m365/tenant/commands/report/report-activeuserdetail.js +17 -0
  1191. package/dist/m365/tenant/commands/report/report-office365activationcounts.js +62 -0
  1192. package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +62 -0
  1193. package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +62 -0
  1194. package/dist/m365/tenant/commands/report/report-servicesusercounts.js +17 -0
  1195. package/dist/m365/tenant/commands/security/security-alerts-list.js +92 -0
  1196. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +69 -0
  1197. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +76 -0
  1198. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +59 -0
  1199. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +59 -0
  1200. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +72 -0
  1201. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +66 -0
  1202. package/dist/m365/tenant/commands.js +21 -0
  1203. package/dist/m365/todo/ToDoList.js +3 -0
  1204. package/dist/m365/todo/ToDoTask.js +3 -0
  1205. package/dist/m365/todo/commands/list/list-add.js +63 -0
  1206. package/dist/m365/todo/commands/list/list-get.js +89 -0
  1207. package/dist/m365/todo/commands/list/list-list.js +38 -0
  1208. package/dist/m365/todo/commands/list/list-remove.js +112 -0
  1209. package/dist/m365/todo/commands/list/list-set.js +100 -0
  1210. package/dist/m365/todo/commands/task/task-add.js +183 -0
  1211. package/dist/m365/todo/commands/task/task-get.js +109 -0
  1212. package/dist/m365/todo/commands/task/task-list.js +104 -0
  1213. package/dist/m365/todo/commands/task/task-remove.js +111 -0
  1214. package/dist/m365/todo/commands/task/task-set.js +205 -0
  1215. package/dist/m365/todo/commands.js +16 -0
  1216. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +72 -0
  1217. package/dist/m365/util/commands.js +7 -0
  1218. package/dist/m365/viva/commands/connections/connections-app-create.js +193 -0
  1219. package/dist/m365/viva/commands.js +7 -0
  1220. package/dist/m365/yammer/commands/group/group-list.js +108 -0
  1221. package/dist/m365/yammer/commands/group/group-user-add.js +86 -0
  1222. package/dist/m365/yammer/commands/group/group-user-remove.js +107 -0
  1223. package/dist/m365/yammer/commands/message/message-add.js +110 -0
  1224. package/dist/m365/yammer/commands/message/message-get.js +70 -0
  1225. package/dist/m365/yammer/commands/message/message-like-set.js +115 -0
  1226. package/dist/m365/yammer/commands/message/message-list.js +189 -0
  1227. package/dist/m365/yammer/commands/message/message-remove.js +94 -0
  1228. package/dist/m365/yammer/commands/network/network-list.js +72 -0
  1229. package/dist/m365/yammer/commands/report/report-activitycounts.js +17 -0
  1230. package/dist/m365/yammer/commands/report/report-activityusercounts.js +17 -0
  1231. package/dist/m365/yammer/commands/report/report-activityuserdetail.js +17 -0
  1232. package/dist/m365/yammer/commands/report/report-deviceusagedistributionusercounts.js +17 -0
  1233. package/dist/m365/yammer/commands/report/report-deviceusageusercounts.js +17 -0
  1234. package/dist/m365/yammer/commands/report/report-deviceusageuserdetail.js +17 -0
  1235. package/dist/m365/yammer/commands/report/report-groupsactivitycounts.js +17 -0
  1236. package/dist/m365/yammer/commands/report/report-groupsactivitydetail.js +17 -0
  1237. package/dist/m365/yammer/commands/report/report-groupsactivitygroupcounts.js +17 -0
  1238. package/dist/m365/yammer/commands/user/user-get.js +88 -0
  1239. package/dist/m365/yammer/commands/user/user-list.js +158 -0
  1240. package/dist/m365/yammer/commands/yammer-search.js +232 -0
  1241. package/dist/m365/yammer/commands.js +27 -0
  1242. package/dist/request.js +193 -0
  1243. package/dist/settingsNames.js +22 -0
  1244. package/dist/telemetry.js +29 -0
  1245. package/dist/utils/aadGroup.js +120 -0
  1246. package/dist/utils/aadUser.js +75 -0
  1247. package/dist/utils/accessToken.js +80 -0
  1248. package/dist/utils/browserUtil.js +23 -0
  1249. package/dist/utils/cache.js +81 -0
  1250. package/dist/utils/drive.js +77 -0
  1251. package/dist/utils/entraApp.js +306 -0
  1252. package/dist/utils/formatting.js +168 -0
  1253. package/dist/utils/fsUtil.js +109 -0
  1254. package/dist/utils/md.js +110 -0
  1255. package/dist/utils/misc.js +11 -0
  1256. package/dist/utils/odata.js +38 -0
  1257. package/dist/utils/packageManager.js +66 -0
  1258. package/dist/utils/pid.js +78 -0
  1259. package/dist/utils/planner.js +80 -0
  1260. package/dist/utils/powerPlatform.js +43 -0
  1261. package/dist/utils/session.js +18 -0
  1262. package/dist/utils/sinonUtil.js +19 -0
  1263. package/dist/utils/spfx.js +21 -0
  1264. package/dist/utils/spo.js +1331 -0
  1265. package/dist/utils/types.js +3 -0
  1266. package/dist/utils/urlUtil.js +205 -0
  1267. package/dist/utils/validation.js +322 -0
  1268. package/docs/docs/_clisettings.mdx +17 -0
  1269. package/docs/docs/cmd/_global.mdx +16 -0
  1270. package/docs/docs/cmd/aad/app/app-add.mdx +297 -0
  1271. package/docs/docs/cmd/aad/app/app-get.mdx +280 -0
  1272. package/docs/docs/cmd/aad/app/app-list.mdx +184 -0
  1273. package/docs/docs/cmd/aad/app/app-remove.mdx +59 -0
  1274. package/docs/docs/cmd/aad/app/app-role-add.mdx +68 -0
  1275. package/docs/docs/cmd/aad/app/app-role-list.mdx +115 -0
  1276. package/docs/docs/cmd/aad/app/app-role-remove.mdx +78 -0
  1277. package/docs/docs/cmd/aad/app/app-set.mdx +97 -0
  1278. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +127 -0
  1279. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.mdx +113 -0
  1280. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +73 -0
  1281. package/docs/docs/cmd/aad/group/group-get.mdx +164 -0
  1282. package/docs/docs/cmd/aad/group/group-list.mdx +121 -0
  1283. package/docs/docs/cmd/aad/group/group-remove.mdx +44 -0
  1284. package/docs/docs/cmd/aad/groupsetting/groupsetting-add.mdx +154 -0
  1285. package/docs/docs/cmd/aad/groupsetting/groupsetting-get.mdx +143 -0
  1286. package/docs/docs/cmd/aad/groupsetting/groupsetting-list.mdx +138 -0
  1287. package/docs/docs/cmd/aad/groupsetting/groupsetting-remove.mdx +45 -0
  1288. package/docs/docs/cmd/aad/groupsetting/groupsetting-set.mdx +42 -0
  1289. package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-get.mdx +100 -0
  1290. package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-list.mdx +86 -0
  1291. package/docs/docs/cmd/aad/license/license-list.mdx +99 -0
  1292. package/docs/docs/cmd/aad/m365group/m365group-add.mdx +243 -0
  1293. package/docs/docs/cmd/aad/m365group/m365group-conversation-list.mdx +96 -0
  1294. package/docs/docs/cmd/aad/m365group/m365group-conversation-post-list.mdx +117 -0
  1295. package/docs/docs/cmd/aad/m365group/m365group-get.mdx +159 -0
  1296. package/docs/docs/cmd/aad/m365group/m365group-list.mdx +167 -0
  1297. package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-clear.mdx +38 -0
  1298. package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-list.mdx +145 -0
  1299. package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-remove.mdx +53 -0
  1300. package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-restore.mdx +50 -0
  1301. package/docs/docs/cmd/aad/m365group/m365group-remove.mdx +54 -0
  1302. package/docs/docs/cmd/aad/m365group/m365group-renew.mdx +36 -0
  1303. package/docs/docs/cmd/aad/m365group/m365group-report-activitycounts.mdx +91 -0
  1304. package/docs/docs/cmd/aad/m365group/m365group-report-activitydetail.mdx +112 -0
  1305. package/docs/docs/cmd/aad/m365group/m365group-report-activityfilecounts.mdx +89 -0
  1306. package/docs/docs/cmd/aad/m365group/m365group-report-activitygroupcounts.mdx +89 -0
  1307. package/docs/docs/cmd/aad/m365group/m365group-report-activitystorage.mdx +89 -0
  1308. package/docs/docs/cmd/aad/m365group/m365group-set.mdx +80 -0
  1309. package/docs/docs/cmd/aad/m365group/m365group-teamify.mdx +41 -0
  1310. package/docs/docs/cmd/aad/m365group/m365group-user-add.mdx +59 -0
  1311. package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +99 -0
  1312. package/docs/docs/cmd/aad/m365group/m365group-user-remove.mdx +63 -0
  1313. package/docs/docs/cmd/aad/m365group/m365group-user-set.mdx +69 -0
  1314. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-add.mdx +58 -0
  1315. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-list.mdx +98 -0
  1316. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.mdx +56 -0
  1317. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.mdx +50 -0
  1318. package/docs/docs/cmd/aad/policy/policy-list.mdx +115 -0
  1319. package/docs/docs/cmd/aad/siteclassification/siteclassification-disable.mdx +42 -0
  1320. package/docs/docs/cmd/aad/siteclassification/siteclassification-enable.mdx +57 -0
  1321. package/docs/docs/cmd/aad/siteclassification/siteclassification-get.mdx +84 -0
  1322. package/docs/docs/cmd/aad/siteclassification/siteclassification-set.mdx +64 -0
  1323. package/docs/docs/cmd/aad/sp/sp-add.mdx +193 -0
  1324. package/docs/docs/cmd/aad/sp/sp-get.mdx +221 -0
  1325. package/docs/docs/cmd/aad/sp/sp-list.mdx +162 -0
  1326. package/docs/docs/cmd/aad/user/user-add.mdx +192 -0
  1327. package/docs/docs/cmd/aad/user/user-get.mdx +245 -0
  1328. package/docs/docs/cmd/aad/user/user-guest-add.mdx +143 -0
  1329. package/docs/docs/cmd/aad/user/user-hibp.mdx +132 -0
  1330. package/docs/docs/cmd/aad/user/user-license-add.mdx +125 -0
  1331. package/docs/docs/cmd/aad/user/user-license-list.mdx +115 -0
  1332. package/docs/docs/cmd/aad/user/user-license-remove.mdx +47 -0
  1333. package/docs/docs/cmd/aad/user/user-list.mdx +110 -0
  1334. package/docs/docs/cmd/aad/user/user-password-validate.mdx +103 -0
  1335. package/docs/docs/cmd/aad/user/user-recyclebinitem-clear.mdx +52 -0
  1336. package/docs/docs/cmd/aad/user/user-recyclebinitem-list.mdx +94 -0
  1337. package/docs/docs/cmd/aad/user/user-recyclebinitem-remove.mdx +55 -0
  1338. package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.mdx +119 -0
  1339. package/docs/docs/cmd/aad/user/user-remove.mdx +64 -0
  1340. package/docs/docs/cmd/aad/user/user-set.mdx +136 -0
  1341. package/docs/docs/cmd/aad/user/user-signin-list.mdx +216 -0
  1342. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +132 -0
  1343. package/docs/docs/cmd/app/app-get.mdx +225 -0
  1344. package/docs/docs/cmd/app/app-open.mdx +85 -0
  1345. package/docs/docs/cmd/app/permission/permission-add.mdx +57 -0
  1346. package/docs/docs/cmd/app/permission/permission-list.mdx +93 -0
  1347. package/docs/docs/cmd/booking/business/business-get.mdx +176 -0
  1348. package/docs/docs/cmd/booking/business/business-list.mdx +76 -0
  1349. package/docs/docs/cmd/cli/cli-consent.mdx +72 -0
  1350. package/docs/docs/cmd/cli/cli-doctor.mdx +104 -0
  1351. package/docs/docs/cmd/cli/cli-issue.mdx +74 -0
  1352. package/docs/docs/cmd/cli/cli-reconsent.mdx +62 -0
  1353. package/docs/docs/cmd/cli/completion/completion-clink-update.mdx +41 -0
  1354. package/docs/docs/cmd/cli/completion/completion-pwsh-setup.mdx +42 -0
  1355. package/docs/docs/cmd/cli/completion/completion-pwsh-update.mdx +35 -0
  1356. package/docs/docs/cmd/cli/completion/completion-sh-setup.mdx +62 -0
  1357. package/docs/docs/cmd/cli/completion/completion-sh-update.mdx +35 -0
  1358. package/docs/docs/cmd/cli/config/config-get.mdx +80 -0
  1359. package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
  1360. package/docs/docs/cmd/cli/config/config-reset.mdx +49 -0
  1361. package/docs/docs/cmd/cli/config/config-set.mdx +52 -0
  1362. package/docs/docs/cmd/context/context-init.mdx +27 -0
  1363. package/docs/docs/cmd/context/context-remove.mdx +38 -0
  1364. package/docs/docs/cmd/context/option/option-list.mdx +75 -0
  1365. package/docs/docs/cmd/context/option/option-remove.mdx +41 -0
  1366. package/docs/docs/cmd/context/option/option-set.mdx +35 -0
  1367. package/docs/docs/cmd/docs.mdx +63 -0
  1368. package/docs/docs/cmd/file/convert/convert-pdf.mdx +57 -0
  1369. package/docs/docs/cmd/file/file-add.mdx +64 -0
  1370. package/docs/docs/cmd/file/file-list.mdx +50 -0
  1371. package/docs/docs/cmd/flow/environment/environment-get.mdx +175 -0
  1372. package/docs/docs/cmd/flow/environment/environment-list.mdx +155 -0
  1373. package/docs/docs/cmd/flow/flow-disable.mdx +58 -0
  1374. package/docs/docs/cmd/flow/flow-enable.mdx +58 -0
  1375. package/docs/docs/cmd/flow/flow-export.mdx +99 -0
  1376. package/docs/docs/cmd/flow/flow-get.mdx +456 -0
  1377. package/docs/docs/cmd/flow/flow-list.mdx +206 -0
  1378. package/docs/docs/cmd/flow/flow-remove.mdx +67 -0
  1379. package/docs/docs/cmd/flow/owner/owner-ensure.mdx +65 -0
  1380. package/docs/docs/cmd/flow/owner/owner-list.mdx +104 -0
  1381. package/docs/docs/cmd/flow/owner/owner-remove.mdx +71 -0
  1382. package/docs/docs/cmd/flow/run/run-cancel.mdx +52 -0
  1383. package/docs/docs/cmd/flow/run/run-get.mdx +235 -0
  1384. package/docs/docs/cmd/flow/run/run-list.mdx +168 -0
  1385. package/docs/docs/cmd/flow/run/run-resubmit.mdx +61 -0
  1386. package/docs/docs/cmd/graph/changelog/changelog-list.mdx +122 -0
  1387. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +139 -0
  1388. package/docs/docs/cmd/graph/schemaextension/schemaextension-get.mdx +104 -0
  1389. package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +127 -0
  1390. package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.mdx +46 -0
  1391. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +71 -0
  1392. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +149 -0
  1393. package/docs/docs/cmd/login.mdx +249 -0
  1394. package/docs/docs/cmd/logout.mdx +37 -0
  1395. package/docs/docs/cmd/onedrive/onedrive-list.mdx +258 -0
  1396. package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +92 -0
  1397. package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +92 -0
  1398. package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +105 -0
  1399. package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +95 -0
  1400. package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +105 -0
  1401. package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +95 -0
  1402. package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +90 -0
  1403. package/docs/docs/cmd/onenote/notebook/notebook-list.mdx +162 -0
  1404. package/docs/docs/cmd/onenote/page/page-list.mdx +154 -0
  1405. package/docs/docs/cmd/outlook/mail/mail-send.mdx +139 -0
  1406. package/docs/docs/cmd/outlook/message/message-get.mdx +205 -0
  1407. package/docs/docs/cmd/outlook/message/message-list.mdx +175 -0
  1408. package/docs/docs/cmd/outlook/message/message-move.mdx +61 -0
  1409. package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +93 -0
  1410. package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +93 -0
  1411. package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +107 -0
  1412. package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +96 -0
  1413. package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +97 -0
  1414. package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +110 -0
  1415. package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +94 -0
  1416. package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +102 -0
  1417. package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +94 -0
  1418. package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +93 -0
  1419. package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +89 -0
  1420. package/docs/docs/cmd/outlook/room/room-list.mdx +125 -0
  1421. package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +91 -0
  1422. package/docs/docs/cmd/pa/app/app-consent-set.mdx +51 -0
  1423. package/docs/docs/cmd/pa/app/app-export.mdx +56 -0
  1424. package/docs/docs/cmd/pa/app/app-get.mdx +265 -0
  1425. package/docs/docs/cmd/pa/app/app-list.mdx +261 -0
  1426. package/docs/docs/cmd/pa/app/app-owner-set.mdx +60 -0
  1427. package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
  1428. package/docs/docs/cmd/pa/app/app-permission-list.mdx +132 -0
  1429. package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
  1430. package/docs/docs/cmd/pa/app/app-remove.mdx +49 -0
  1431. package/docs/docs/cmd/pa/connector/connector-export.mdx +60 -0
  1432. package/docs/docs/cmd/pa/connector/connector-list.mdx +158 -0
  1433. package/docs/docs/cmd/pa/environment/environment-get.mdx +185 -0
  1434. package/docs/docs/cmd/pa/environment/environment-list.mdx +169 -0
  1435. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +122 -0
  1436. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +134 -0
  1437. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +117 -0
  1438. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +85 -0
  1439. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +82 -0
  1440. package/docs/docs/cmd/planner/plan/plan-add.mdx +247 -0
  1441. package/docs/docs/cmd/planner/plan/plan-get.mdx +172 -0
  1442. package/docs/docs/cmd/planner/plan/plan-list.mdx +128 -0
  1443. package/docs/docs/cmd/planner/plan/plan-remove.mdx +60 -0
  1444. package/docs/docs/cmd/planner/plan/plan-set.mdx +261 -0
  1445. package/docs/docs/cmd/planner/roster/roster-add.mdx +96 -0
  1446. package/docs/docs/cmd/planner/roster/roster-get.mdx +89 -0
  1447. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +104 -0
  1448. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +104 -0
  1449. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +93 -0
  1450. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +61 -0
  1451. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +126 -0
  1452. package/docs/docs/cmd/planner/roster/roster-remove.mdx +59 -0
  1453. package/docs/docs/cmd/planner/task/task-add.mdx +382 -0
  1454. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +105 -0
  1455. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +93 -0
  1456. package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +44 -0
  1457. package/docs/docs/cmd/planner/task/task-get.mdx +205 -0
  1458. package/docs/docs/cmd/planner/task/task-list.mdx +198 -0
  1459. package/docs/docs/cmd/planner/task/task-reference-add.mdx +105 -0
  1460. package/docs/docs/cmd/planner/task/task-reference-list.mdx +84 -0
  1461. package/docs/docs/cmd/planner/task/task-reference-remove.mdx +47 -0
  1462. package/docs/docs/cmd/planner/task/task-remove.mdx +103 -0
  1463. package/docs/docs/cmd/planner/task/task-set.mdx +376 -0
  1464. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +98 -0
  1465. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +128 -0
  1466. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +156 -0
  1467. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +152 -0
  1468. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-remove.mdx +57 -0
  1469. package/docs/docs/cmd/pp/card/card-clone.mdx +103 -0
  1470. package/docs/docs/cmd/pp/card/card-get.mdx +185 -0
  1471. package/docs/docs/cmd/pp/card/card-list.mdx +167 -0
  1472. package/docs/docs/cmd/pp/card/card-remove.mdx +86 -0
  1473. package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +192 -0
  1474. package/docs/docs/cmd/pp/chatbot/chatbot-list.mdx +132 -0
  1475. package/docs/docs/cmd/pp/chatbot/chatbot-remove.mdx +56 -0
  1476. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +164 -0
  1477. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +162 -0
  1478. package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +53 -0
  1479. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.mdx +134 -0
  1480. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.mdx +65 -0
  1481. package/docs/docs/cmd/pp/environment/environment-get.mdx +392 -0
  1482. package/docs/docs/cmd/pp/environment/environment-list.mdx +384 -0
  1483. package/docs/docs/cmd/pp/gateway/gateway-get.mdx +89 -0
  1484. package/docs/docs/cmd/pp/gateway/gateway-list.mdx +87 -0
  1485. package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +99 -0
  1486. package/docs/docs/cmd/pp/managementapp/managementapp-list.mdx +72 -0
  1487. package/docs/docs/cmd/pp/solution/solution-get.mdx +114 -0
  1488. package/docs/docs/cmd/pp/solution/solution-list.mdx +98 -0
  1489. package/docs/docs/cmd/pp/solution/solution-publish.mdx +56 -0
  1490. package/docs/docs/cmd/pp/solution/solution-publisher-add.mdx +53 -0
  1491. package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +116 -0
  1492. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +103 -0
  1493. package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +62 -0
  1494. package/docs/docs/cmd/pp/solution/solution-remove.mdx +86 -0
  1495. package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +140 -0
  1496. package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +235 -0
  1497. package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +145 -0
  1498. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +161 -0
  1499. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +144 -0
  1500. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +117 -0
  1501. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +49 -0
  1502. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +119 -0
  1503. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +116 -0
  1504. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +108 -0
  1505. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +47 -0
  1506. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +47 -0
  1507. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +155 -0
  1508. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +110 -0
  1509. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +94 -0
  1510. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +43 -0
  1511. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +70 -0
  1512. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +138 -0
  1513. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +131 -0
  1514. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +117 -0
  1515. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +212 -0
  1516. package/docs/docs/cmd/request.mdx +172 -0
  1517. package/docs/docs/cmd/search/externalconnection/externalconnection-add.mdx +51 -0
  1518. package/docs/docs/cmd/search/externalconnection/externalconnection-get.mdx +102 -0
  1519. package/docs/docs/cmd/search/externalconnection/externalconnection-list.mdx +88 -0
  1520. package/docs/docs/cmd/search/externalconnection/externalconnection-remove.mdx +48 -0
  1521. package/docs/docs/cmd/search/externalconnection/externalconnection-schema-add.mdx +35 -0
  1522. package/docs/docs/cmd/setup.mdx +92 -0
  1523. package/docs/docs/cmd/skype/report/report-activitycounts.mdx +90 -0
  1524. package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +91 -0
  1525. package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +129 -0
  1526. package/docs/docs/cmd/spfx/package/package-generate.mdx +68 -0
  1527. package/docs/docs/cmd/spfx/project/project-azuredevops-pipeline-add.mdx +87 -0
  1528. package/docs/docs/cmd/spfx/project/project-doctor.mdx +176 -0
  1529. package/docs/docs/cmd/spfx/project/project-externalize.mdx +187 -0
  1530. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +94 -0
  1531. package/docs/docs/cmd/spfx/project/project-permissions-grant.mdx +101 -0
  1532. package/docs/docs/cmd/spfx/project/project-rename.mdx +51 -0
  1533. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +202 -0
  1534. package/docs/docs/cmd/spfx/spfx-doctor.mdx +234 -0
  1535. package/docs/docs/cmd/spo/app/app-add.mdx +63 -0
  1536. package/docs/docs/cmd/spo/app/app-deploy.mdx +76 -0
  1537. package/docs/docs/cmd/spo/app/app-get.mdx +65 -0
  1538. package/docs/docs/cmd/spo/app/app-install.mdx +48 -0
  1539. package/docs/docs/cmd/spo/app/app-instance-list.mdx +28 -0
  1540. package/docs/docs/cmd/spo/app/app-list.mdx +49 -0
  1541. package/docs/docs/cmd/spo/app/app-remove.mdx +67 -0
  1542. package/docs/docs/cmd/spo/app/app-retract.mdx +67 -0
  1543. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +60 -0
  1544. package/docs/docs/cmd/spo/app/app-uninstall.mdx +57 -0
  1545. package/docs/docs/cmd/spo/app/app-upgrade.mdx +48 -0
  1546. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +66 -0
  1547. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +159 -0
  1548. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +123 -0
  1549. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +81 -0
  1550. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +72 -0
  1551. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +41 -0
  1552. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +34 -0
  1553. package/docs/docs/cmd/spo/cdn/cdn-get.mdx +48 -0
  1554. package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +45 -0
  1555. package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +48 -0
  1556. package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +48 -0
  1557. package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +48 -0
  1558. package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +48 -0
  1559. package/docs/docs/cmd/spo/cdn/cdn-set.mdx +76 -0
  1560. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +175 -0
  1561. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +163 -0
  1562. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +123 -0
  1563. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +59 -0
  1564. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +87 -0
  1565. package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +77 -0
  1566. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +73 -0
  1567. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +56 -0
  1568. package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +71 -0
  1569. package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +37 -0
  1570. package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +55 -0
  1571. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +66 -0
  1572. package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +23 -0
  1573. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +146 -0
  1574. package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +47 -0
  1575. package/docs/docs/cmd/spo/customaction/customaction-get.mdx +175 -0
  1576. package/docs/docs/cmd/spo/customaction/customaction-list.mdx +51 -0
  1577. package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +90 -0
  1578. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +131 -0
  1579. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +119 -0
  1580. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +64 -0
  1581. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +81 -0
  1582. package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +68 -0
  1583. package/docs/docs/cmd/spo/feature/feature-disable.mdx +47 -0
  1584. package/docs/docs/cmd/spo/feature/feature-enable.mdx +47 -0
  1585. package/docs/docs/cmd/spo/feature/feature-list.mdx +37 -0
  1586. package/docs/docs/cmd/spo/field/field-add.mdx +75 -0
  1587. package/docs/docs/cmd/spo/field/field-get.mdx +55 -0
  1588. package/docs/docs/cmd/spo/field/field-list.mdx +55 -0
  1589. package/docs/docs/cmd/spo/field/field-remove.mdx +67 -0
  1590. package/docs/docs/cmd/spo/field/field-set.mdx +74 -0
  1591. package/docs/docs/cmd/spo/file/file-add.mdx +160 -0
  1592. package/docs/docs/cmd/spo/file/file-checkin.mdx +58 -0
  1593. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +47 -0
  1594. package/docs/docs/cmd/spo/file/file-checkout.mdx +40 -0
  1595. package/docs/docs/cmd/spo/file/file-copy.mdx +83 -0
  1596. package/docs/docs/cmd/spo/file/file-get.mdx +314 -0
  1597. package/docs/docs/cmd/spo/file/file-list.mdx +134 -0
  1598. package/docs/docs/cmd/spo/file/file-move.mdx +85 -0
  1599. package/docs/docs/cmd/spo/file/file-remove.mdx +64 -0
  1600. package/docs/docs/cmd/spo/file/file-rename.mdx +47 -0
  1601. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +62 -0
  1602. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +47 -0
  1603. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +61 -0
  1604. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +58 -0
  1605. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +58 -0
  1606. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +43 -0
  1607. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +40 -0
  1608. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +102 -0
  1609. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +50 -0
  1610. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +120 -0
  1611. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +119 -0
  1612. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +56 -0
  1613. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +118 -0
  1614. package/docs/docs/cmd/spo/file/file-version-clear.mdx +59 -0
  1615. package/docs/docs/cmd/spo/file/file-version-get.mdx +89 -0
  1616. package/docs/docs/cmd/spo/file/file-version-list.mdx +89 -0
  1617. package/docs/docs/cmd/spo/file/file-version-remove.mdx +62 -0
  1618. package/docs/docs/cmd/spo/file/file-version-restore.mdx +62 -0
  1619. package/docs/docs/cmd/spo/folder/folder-add.mdx +115 -0
  1620. package/docs/docs/cmd/spo/folder/folder-copy.mdx +84 -0
  1621. package/docs/docs/cmd/spo/folder/folder-get.mdx +55 -0
  1622. package/docs/docs/cmd/spo/folder/folder-list.mdx +121 -0
  1623. package/docs/docs/cmd/spo/folder/folder-move.mdx +84 -0
  1624. package/docs/docs/cmd/spo/folder/folder-remove.mdx +47 -0
  1625. package/docs/docs/cmd/spo/folder/folder-rename.mdx +44 -0
  1626. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +51 -0
  1627. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +47 -0
  1628. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +63 -0
  1629. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +61 -0
  1630. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +49 -0
  1631. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +46 -0
  1632. package/docs/docs/cmd/spo/group/group-add.mdx +55 -0
  1633. package/docs/docs/cmd/spo/group/group-get.mdx +49 -0
  1634. package/docs/docs/cmd/spo/group/group-list.mdx +37 -0
  1635. package/docs/docs/cmd/spo/group/group-member-add.mdx +164 -0
  1636. package/docs/docs/cmd/spo/group/group-member-list.mdx +40 -0
  1637. package/docs/docs/cmd/spo/group/group-member-remove.mdx +77 -0
  1638. package/docs/docs/cmd/spo/group/group-remove.mdx +43 -0
  1639. package/docs/docs/cmd/spo/group/group-set.mdx +73 -0
  1640. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +35 -0
  1641. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +40 -0
  1642. package/docs/docs/cmd/spo/homesite/homesite-get.mdx +86 -0
  1643. package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +75 -0
  1644. package/docs/docs/cmd/spo/homesite/homesite-set.mdx +127 -0
  1645. package/docs/docs/cmd/spo/hubsite/hubsite-connect.mdx +69 -0
  1646. package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +137 -0
  1647. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.mdx +65 -0
  1648. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +190 -0
  1649. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +210 -0
  1650. package/docs/docs/cmd/spo/hubsite/hubsite-register.mdx +133 -0
  1651. package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.mdx +62 -0
  1652. package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.mdx +56 -0
  1653. package/docs/docs/cmd/spo/hubsite/hubsite-set.mdx +136 -0
  1654. package/docs/docs/cmd/spo/hubsite/hubsite-unregister.mdx +55 -0
  1655. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.mdx +67 -0
  1656. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.mdx +78 -0
  1657. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.mdx +74 -0
  1658. package/docs/docs/cmd/spo/list/list-add.mdx +435 -0
  1659. package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +194 -0
  1660. package/docs/docs/cmd/spo/list/list-contenttype-default-set.mdx +56 -0
  1661. package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +164 -0
  1662. package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +59 -0
  1663. package/docs/docs/cmd/spo/list/list-get.mdx +295 -0
  1664. package/docs/docs/cmd/spo/list/list-list.mdx +226 -0
  1665. package/docs/docs/cmd/spo/list/list-remove.mdx +47 -0
  1666. package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.mdx +57 -0
  1667. package/docs/docs/cmd/spo/list/list-retentionlabel-get.mdx +159 -0
  1668. package/docs/docs/cmd/spo/list/list-retentionlabel-remove.mdx +56 -0
  1669. package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +86 -0
  1670. package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +65 -0
  1671. package/docs/docs/cmd/spo/list/list-roleinheritance-break.mdx +75 -0
  1672. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.mdx +62 -0
  1673. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +73 -0
  1674. package/docs/docs/cmd/spo/list/list-set.mdx +249 -0
  1675. package/docs/docs/cmd/spo/list/list-sitescript-get.mdx +169 -0
  1676. package/docs/docs/cmd/spo/list/list-view-add.mdx +272 -0
  1677. package/docs/docs/cmd/spo/list/list-view-field-add.mdx +74 -0
  1678. package/docs/docs/cmd/spo/list/list-view-field-remove.mdx +65 -0
  1679. package/docs/docs/cmd/spo/list/list-view-field-set.mdx +74 -0
  1680. package/docs/docs/cmd/spo/list/list-view-get.mdx +247 -0
  1681. package/docs/docs/cmd/spo/list/list-view-list.mdx +198 -0
  1682. package/docs/docs/cmd/spo/list/list-view-remove.mdx +74 -0
  1683. package/docs/docs/cmd/spo/list/list-view-set.mdx +86 -0
  1684. package/docs/docs/cmd/spo/list/list-webhook-add.mdx +121 -0
  1685. package/docs/docs/cmd/spo/list/list-webhook-get.mdx +118 -0
  1686. package/docs/docs/cmd/spo/list/list-webhook-list.mdx +110 -0
  1687. package/docs/docs/cmd/spo/list/list-webhook-remove.mdx +62 -0
  1688. package/docs/docs/cmd/spo/list/list-webhook-set.mdx +69 -0
  1689. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +188 -0
  1690. package/docs/docs/cmd/spo/listitem/listitem-attachment-add.mdx +110 -0
  1691. package/docs/docs/cmd/spo/listitem/listitem-attachment-get.mdx +104 -0
  1692. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +111 -0
  1693. package/docs/docs/cmd/spo/listitem/listitem-attachment-remove.mdx +58 -0
  1694. package/docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx +58 -0
  1695. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +71 -0
  1696. package/docs/docs/cmd/spo/listitem/listitem-batch-set.mdx +71 -0
  1697. package/docs/docs/cmd/spo/listitem/listitem-get.mdx +331 -0
  1698. package/docs/docs/cmd/spo/listitem/listitem-isrecord.mdx +88 -0
  1699. package/docs/docs/cmd/spo/listitem/listitem-list.mdx +193 -0
  1700. package/docs/docs/cmd/spo/listitem/listitem-record-declare.mdx +115 -0
  1701. package/docs/docs/cmd/spo/listitem/listitem-record-lock.mdx +56 -0
  1702. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.mdx +56 -0
  1703. package/docs/docs/cmd/spo/listitem/listitem-record-unlock.mdx +56 -0
  1704. package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +62 -0
  1705. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +75 -0
  1706. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +59 -0
  1707. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +89 -0
  1708. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +75 -0
  1709. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.mdx +78 -0
  1710. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.mdx +59 -0
  1711. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +186 -0
  1712. package/docs/docs/cmd/spo/mail/mail-send.mdx +69 -0
  1713. package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +144 -0
  1714. package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +105 -0
  1715. package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +106 -0
  1716. package/docs/docs/cmd/spo/navigation/navigation-node-remove.mdx +47 -0
  1717. package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +72 -0
  1718. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +65 -0
  1719. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +107 -0
  1720. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.mdx +83 -0
  1721. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.mdx +69 -0
  1722. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.mdx +49 -0
  1723. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.mdx +42 -0
  1724. package/docs/docs/cmd/spo/page/page-add.mdx +110 -0
  1725. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +92 -0
  1726. package/docs/docs/cmd/spo/page/page-column-get.mdx +129 -0
  1727. package/docs/docs/cmd/spo/page/page-column-list.mdx +96 -0
  1728. package/docs/docs/cmd/spo/page/page-control-get.mdx +133 -0
  1729. package/docs/docs/cmd/spo/page/page-control-list.mdx +129 -0
  1730. package/docs/docs/cmd/spo/page/page-control-set.mdx +60 -0
  1731. package/docs/docs/cmd/spo/page/page-copy.mdx +165 -0
  1732. package/docs/docs/cmd/spo/page/page-get.mdx +188 -0
  1733. package/docs/docs/cmd/spo/page/page-header-set.mdx +90 -0
  1734. package/docs/docs/cmd/spo/page/page-list.mdx +211 -0
  1735. package/docs/docs/cmd/spo/page/page-remove.mdx +50 -0
  1736. package/docs/docs/cmd/spo/page/page-section-add.mdx +69 -0
  1737. package/docs/docs/cmd/spo/page/page-section-get.mdx +92 -0
  1738. package/docs/docs/cmd/spo/page/page-section-list.mdx +93 -0
  1739. package/docs/docs/cmd/spo/page/page-set.mdx +130 -0
  1740. package/docs/docs/cmd/spo/page/page-template-list.mdx +126 -0
  1741. package/docs/docs/cmd/spo/page/page-text-add.mdx +63 -0
  1742. package/docs/docs/cmd/spo/propertybag/propertybag-get.mdx +94 -0
  1743. package/docs/docs/cmd/spo/propertybag/propertybag-list.mdx +106 -0
  1744. package/docs/docs/cmd/spo/propertybag/propertybag-remove.mdx +65 -0
  1745. package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +69 -0
  1746. package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +92 -0
  1747. package/docs/docs/cmd/spo/report/report-activitypages.mdx +89 -0
  1748. package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +97 -0
  1749. package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +110 -0
  1750. package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +113 -0
  1751. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +95 -0
  1752. package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +90 -0
  1753. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +95 -0
  1754. package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +90 -0
  1755. package/docs/docs/cmd/spo/roledefinition/roledefinition-add.mdx +51 -0
  1756. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.mdx +139 -0
  1757. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.mdx +132 -0
  1758. package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.mdx +44 -0
  1759. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.mdx +118 -0
  1760. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +97 -0
  1761. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.mdx +48 -0
  1762. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.mdx +117 -0
  1763. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.mdx +48 -0
  1764. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.mdx +94 -0
  1765. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.mdx +116 -0
  1766. package/docs/docs/cmd/spo/site/site-add.mdx +218 -0
  1767. package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +44 -0
  1768. package/docs/docs/cmd/spo/site/site-appcatalog-list.mdx +94 -0
  1769. package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +46 -0
  1770. package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +109 -0
  1771. package/docs/docs/cmd/spo/site/site-apppermission-get.mdx +86 -0
  1772. package/docs/docs/cmd/spo/site/site-apppermission-list.mdx +99 -0
  1773. package/docs/docs/cmd/spo/site/site-apppermission-remove.mdx +56 -0
  1774. package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +118 -0
  1775. package/docs/docs/cmd/spo/site/site-chrome-set.mdx +68 -0
  1776. package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +58 -0
  1777. package/docs/docs/cmd/spo/site/site-ensure.mdx +198 -0
  1778. package/docs/docs/cmd/spo/site/site-get.mdx +211 -0
  1779. package/docs/docs/cmd/spo/site/site-groupify.mdx +132 -0
  1780. package/docs/docs/cmd/spo/site/site-hubsite-connect.mdx +45 -0
  1781. package/docs/docs/cmd/spo/site/site-hubsite-disconnect.mdx +45 -0
  1782. package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.mdx +36 -0
  1783. package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.mdx +41 -0
  1784. package/docs/docs/cmd/spo/site/site-list.mdx +310 -0
  1785. package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +52 -0
  1786. package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +124 -0
  1787. package/docs/docs/cmd/spo/site/site-recyclebinitem-move.mdx +47 -0
  1788. package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +52 -0
  1789. package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +35 -0
  1790. package/docs/docs/cmd/spo/site/site-remove.mdx +76 -0
  1791. package/docs/docs/cmd/spo/site/site-rename.mdx +157 -0
  1792. package/docs/docs/cmd/spo/site/site-set.mdx +195 -0
  1793. package/docs/docs/cmd/spo/sitedesign/sitedesign-add.mdx +183 -0
  1794. package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.mdx +169 -0
  1795. package/docs/docs/cmd/spo/sitedesign/sitedesign-get.mdx +162 -0
  1796. package/docs/docs/cmd/spo/sitedesign/sitedesign-list.mdx +121 -0
  1797. package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.mdx +49 -0
  1798. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.mdx +54 -0
  1799. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.mdx +92 -0
  1800. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.mdx +56 -0
  1801. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.mdx +107 -0
  1802. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +104 -0
  1803. package/docs/docs/cmd/spo/sitedesign/sitedesign-set.mdx +197 -0
  1804. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.mdx +93 -0
  1805. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.mdx +92 -0
  1806. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.mdx +45 -0
  1807. package/docs/docs/cmd/spo/sitescript/sitescript-add.mdx +117 -0
  1808. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +98 -0
  1809. package/docs/docs/cmd/spo/sitescript/sitescript-list.mdx +87 -0
  1810. package/docs/docs/cmd/spo/sitescript/sitescript-remove.mdx +49 -0
  1811. package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +111 -0
  1812. package/docs/docs/cmd/spo/spo-get.mdx +72 -0
  1813. package/docs/docs/cmd/spo/spo-search.mdx +167 -0
  1814. package/docs/docs/cmd/spo/spo-set.mdx +36 -0
  1815. package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +89 -0
  1816. package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +90 -0
  1817. package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +58 -0
  1818. package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +60 -0
  1819. package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +70 -0
  1820. package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +66 -0
  1821. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +69 -0
  1822. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +156 -0
  1823. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +113 -0
  1824. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +53 -0
  1825. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +90 -0
  1826. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +183 -0
  1827. package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +155 -0
  1828. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +112 -0
  1829. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +53 -0
  1830. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +76 -0
  1831. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +98 -0
  1832. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +54 -0
  1833. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +97 -0
  1834. package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +760 -0
  1835. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +318 -0
  1836. package/docs/docs/cmd/spo/term/term-add.mdx +204 -0
  1837. package/docs/docs/cmd/spo/term/term-get.mdx +176 -0
  1838. package/docs/docs/cmd/spo/term/term-group-add.mdx +113 -0
  1839. package/docs/docs/cmd/spo/term/term-group-get.mdx +121 -0
  1840. package/docs/docs/cmd/spo/term/term-group-list.mdx +111 -0
  1841. package/docs/docs/cmd/spo/term/term-list.mdx +278 -0
  1842. package/docs/docs/cmd/spo/term/term-set-add.mdx +169 -0
  1843. package/docs/docs/cmd/spo/term/term-set-get.mdx +145 -0
  1844. package/docs/docs/cmd/spo/term/term-set-list.mdx +135 -0
  1845. package/docs/docs/cmd/spo/theme/theme-apply.mdx +90 -0
  1846. package/docs/docs/cmd/spo/theme/theme-get.mdx +114 -0
  1847. package/docs/docs/cmd/spo/theme/theme-list.mdx +87 -0
  1848. package/docs/docs/cmd/spo/theme/theme-remove.mdx +53 -0
  1849. package/docs/docs/cmd/spo/theme/theme-set.mdx +95 -0
  1850. package/docs/docs/cmd/spo/user/user-ensure.mdx +122 -0
  1851. package/docs/docs/cmd/spo/user/user-get.mdx +137 -0
  1852. package/docs/docs/cmd/spo/user/user-list.mdx +103 -0
  1853. package/docs/docs/cmd/spo/user/user-remove.mdx +55 -0
  1854. package/docs/docs/cmd/spo/userprofile/userprofile-get.mdx +649 -0
  1855. package/docs/docs/cmd/spo/userprofile/userprofile-set.mdx +48 -0
  1856. package/docs/docs/cmd/spo/web/web-add.mdx +138 -0
  1857. package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.mdx +83 -0
  1858. package/docs/docs/cmd/spo/web/web-get.mdx +561 -0
  1859. package/docs/docs/cmd/spo/web/web-installedlanguage-list.mdx +83 -0
  1860. package/docs/docs/cmd/spo/web/web-list.mdx +135 -0
  1861. package/docs/docs/cmd/spo/web/web-reindex.mdx +36 -0
  1862. package/docs/docs/cmd/spo/web/web-remove.mdx +35 -0
  1863. package/docs/docs/cmd/spo/web/web-retentionlabel-list.mdx +115 -0
  1864. package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +65 -0
  1865. package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +62 -0
  1866. package/docs/docs/cmd/spo/web/web-roleinheritance-break.mdx +48 -0
  1867. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.mdx +41 -0
  1868. package/docs/docs/cmd/spo/web/web-set.mdx +121 -0
  1869. package/docs/docs/cmd/status.mdx +86 -0
  1870. package/docs/docs/cmd/teams/app/app-install.mdx +57 -0
  1871. package/docs/docs/cmd/teams/app/app-list.mdx +91 -0
  1872. package/docs/docs/cmd/teams/app/app-publish.mdx +92 -0
  1873. package/docs/docs/cmd/teams/app/app-remove.mdx +48 -0
  1874. package/docs/docs/cmd/teams/app/app-uninstall.mdx +43 -0
  1875. package/docs/docs/cmd/teams/app/app-update.mdx +48 -0
  1876. package/docs/docs/cmd/teams/cache/cache-remove.mdx +58 -0
  1877. package/docs/docs/cmd/teams/channel/channel-add.mdx +132 -0
  1878. package/docs/docs/cmd/teams/channel/channel-get.mdx +122 -0
  1879. package/docs/docs/cmd/teams/channel/channel-list.mdx +112 -0
  1880. package/docs/docs/cmd/teams/channel/channel-member-add.mdx +62 -0
  1881. package/docs/docs/cmd/teams/channel/channel-member-list.mdx +119 -0
  1882. package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +59 -0
  1883. package/docs/docs/cmd/teams/channel/channel-member-set.mdx +121 -0
  1884. package/docs/docs/cmd/teams/channel/channel-remove.mdx +70 -0
  1885. package/docs/docs/cmd/teams/channel/channel-set.mdx +53 -0
  1886. package/docs/docs/cmd/teams/chat/chat-get.mdx +131 -0
  1887. package/docs/docs/cmd/teams/chat/chat-list.mdx +116 -0
  1888. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +66 -0
  1889. package/docs/docs/cmd/teams/chat/chat-member-list.mdx +93 -0
  1890. package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +56 -0
  1891. package/docs/docs/cmd/teams/chat/chat-message-list.mdx +121 -0
  1892. package/docs/docs/cmd/teams/chat/chat-message-send.mdx +63 -0
  1893. package/docs/docs/cmd/teams/funsettings/funsettings-list.mdx +82 -0
  1894. package/docs/docs/cmd/teams/funsettings/funsettings-set.mdx +62 -0
  1895. package/docs/docs/cmd/teams/guestsettings/guestsettings-list.mdx +76 -0
  1896. package/docs/docs/cmd/teams/guestsettings/guestsettings-set.mdx +44 -0
  1897. package/docs/docs/cmd/teams/meeting/meeting-attendancereport-list.mdx +82 -0
  1898. package/docs/docs/cmd/teams/meeting/meeting-get.mdx +175 -0
  1899. package/docs/docs/cmd/teams/meeting/meeting-list.mdx +205 -0
  1900. package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +116 -0
  1901. package/docs/docs/cmd/teams/membersettings/membersettings-list.mdx +88 -0
  1902. package/docs/docs/cmd/teams/membersettings/membersettings-set.mdx +53 -0
  1903. package/docs/docs/cmd/teams/message/message-get.mdx +163 -0
  1904. package/docs/docs/cmd/teams/message/message-list.mdx +152 -0
  1905. package/docs/docs/cmd/teams/message/message-reply-list.mdx +146 -0
  1906. package/docs/docs/cmd/teams/message/message-send.mdx +132 -0
  1907. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.mdx +87 -0
  1908. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.mdx +53 -0
  1909. package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +95 -0
  1910. package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +96 -0
  1911. package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +114 -0
  1912. package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +115 -0
  1913. package/docs/docs/cmd/teams/report/report-pstncalls.mdx +119 -0
  1914. package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +99 -0
  1915. package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +93 -0
  1916. package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +127 -0
  1917. package/docs/docs/cmd/teams/tab/tab-add.mdx +120 -0
  1918. package/docs/docs/cmd/teams/tab/tab-get.mdx +115 -0
  1919. package/docs/docs/cmd/teams/tab/tab-list.mdx +115 -0
  1920. package/docs/docs/cmd/teams/tab/tab-remove.mdx +51 -0
  1921. package/docs/docs/cmd/teams/team/team-add.mdx +291 -0
  1922. package/docs/docs/cmd/teams/team/team-app-list.mdx +108 -0
  1923. package/docs/docs/cmd/teams/team/team-archive.mdx +59 -0
  1924. package/docs/docs/cmd/teams/team/team-clone.mdx +59 -0
  1925. package/docs/docs/cmd/teams/team/team-get.mdx +155 -0
  1926. package/docs/docs/cmd/teams/team/team-list.mdx +174 -0
  1927. package/docs/docs/cmd/teams/team/team-remove.mdx +60 -0
  1928. package/docs/docs/cmd/teams/team/team-set.mdx +53 -0
  1929. package/docs/docs/cmd/teams/team/team-unarchive.mdx +49 -0
  1930. package/docs/docs/cmd/teams/user/user-app-add.mdx +39 -0
  1931. package/docs/docs/cmd/teams/user/user-app-list.mdx +109 -0
  1932. package/docs/docs/cmd/teams/user/user-app-remove.mdx +43 -0
  1933. package/docs/docs/cmd/teams/user/user-list.mdx +95 -0
  1934. package/docs/docs/cmd/tenant/id/id-get.mdx +74 -0
  1935. package/docs/docs/cmd/tenant/info/info-get.mdx +101 -0
  1936. package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +95 -0
  1937. package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +122 -0
  1938. package/docs/docs/cmd/tenant/report/report-office365activationcounts.mdx +72 -0
  1939. package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.mdx +70 -0
  1940. package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.mdx +76 -0
  1941. package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +101 -0
  1942. package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +172 -0
  1943. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.mdx +173 -0
  1944. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.mdx +174 -0
  1945. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.mdx +126 -0
  1946. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +124 -0
  1947. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +127 -0
  1948. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +121 -0
  1949. package/docs/docs/cmd/todo/list/list-add.mdx +85 -0
  1950. package/docs/docs/cmd/todo/list/list-get.mdx +93 -0
  1951. package/docs/docs/cmd/todo/list/list-list.mdx +82 -0
  1952. package/docs/docs/cmd/todo/list/list-remove.mdx +44 -0
  1953. package/docs/docs/cmd/todo/list/list-set.mdx +44 -0
  1954. package/docs/docs/cmd/todo/task/task-add.mdx +178 -0
  1955. package/docs/docs/cmd/todo/task/task-get.mdx +110 -0
  1956. package/docs/docs/cmd/todo/task/task-list.mdx +115 -0
  1957. package/docs/docs/cmd/todo/task/task-remove.mdx +48 -0
  1958. package/docs/docs/cmd/todo/task/task-set.mdx +187 -0
  1959. package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +95 -0
  1960. package/docs/docs/cmd/version.mdx +59 -0
  1961. package/docs/docs/cmd/viva/connections/connections-app-create.mdx +81 -0
  1962. package/docs/docs/cmd/yammer/group/group-list.mdx +174 -0
  1963. package/docs/docs/cmd/yammer/group/group-user-add.mdx +60 -0
  1964. package/docs/docs/cmd/yammer/group/group-user-remove.mdx +58 -0
  1965. package/docs/docs/cmd/yammer/message/message-add.mdx +175 -0
  1966. package/docs/docs/cmd/yammer/message/message-get.mdx +148 -0
  1967. package/docs/docs/cmd/yammer/message/message-like-set.mdx +58 -0
  1968. package/docs/docs/cmd/yammer/message/message-list.mdx +201 -0
  1969. package/docs/docs/cmd/yammer/message/message-remove.mdx +55 -0
  1970. package/docs/docs/cmd/yammer/network/network-list.mdx +218 -0
  1971. package/docs/docs/cmd/yammer/report/report-activitycounts.mdx +91 -0
  1972. package/docs/docs/cmd/yammer/report/report-activityusercounts.mdx +91 -0
  1973. package/docs/docs/cmd/yammer/report/report-activityuserdetail.mdx +109 -0
  1974. package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.mdx +93 -0
  1975. package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.mdx +94 -0
  1976. package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.mdx +111 -0
  1977. package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.mdx +91 -0
  1978. package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.mdx +110 -0
  1979. package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.mdx +90 -0
  1980. package/docs/docs/cmd/yammer/user/user-get.mdx +223 -0
  1981. package/docs/docs/cmd/yammer/user/user-list.mdx +228 -0
  1982. package/docs/docs/cmd/yammer/yammer-search.mdx +173 -0
  1983. package/eslint-rules/lib/index.js +4 -0
  1984. package/eslint-rules/lib/rules/correct-command-class-name.js +116 -0
  1985. package/eslint-rules/lib/rules/correct-command-name.js +65 -0
  1986. package/eslint-rules/package-lock.json +12 -0
  1987. package/eslint-rules/package.json +5 -0
  1988. package/npm-shrinkwrap.json +4860 -0
  1989. package/package.json +236 -0
  1990. package/scripts/Register-CLIM365Completion.ps1 +95 -0
@@ -0,0 +1,1331 @@
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
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.spo = void 0;
13
+ const url = require("url");
14
+ const urlUtil_1 = require("./urlUtil");
15
+ const validation_1 = require("./validation");
16
+ const Auth_1 = require("../Auth");
17
+ const config_1 = require("../config");
18
+ const base_permissions_1 = require("../m365/spo/base-permissions");
19
+ const request_1 = require("../request");
20
+ const formatting_1 = require("./formatting");
21
+ const odata_1 = require("./odata");
22
+ const RoleType_1 = require("../m365/spo/commands/roledefinition/RoleType");
23
+ const aadGroup_1 = require("./aadGroup");
24
+ const SharingCapabilities_1 = require("../m365/spo/commands/site/SharingCapabilities");
25
+ exports.spo = {
26
+ getRequestDigest(siteUrl) {
27
+ const requestOptions = {
28
+ url: `${siteUrl}/_api/contextinfo`,
29
+ headers: {
30
+ accept: 'application/json;odata=nometadata'
31
+ },
32
+ responseType: 'json'
33
+ };
34
+ return request_1.default.post(requestOptions);
35
+ },
36
+ ensureFormDigest(siteUrl, logger, context, debug) {
37
+ return new Promise((resolve, reject) => {
38
+ if (validation_1.validation.isValidFormDigest(context)) {
39
+ if (debug) {
40
+ logger.logToStderr('Existing form digest still valid');
41
+ }
42
+ resolve(context);
43
+ return;
44
+ }
45
+ exports.spo
46
+ .getRequestDigest(siteUrl)
47
+ .then((res) => {
48
+ const now = new Date();
49
+ now.setSeconds(now.getSeconds() + res.FormDigestTimeoutSeconds - 5);
50
+ context = {
51
+ FormDigestValue: res.FormDigestValue,
52
+ FormDigestTimeoutSeconds: res.FormDigestTimeoutSeconds,
53
+ FormDigestExpiresAt: now,
54
+ WebFullUrl: res.WebFullUrl
55
+ };
56
+ resolve(context);
57
+ }, (error) => {
58
+ reject(error);
59
+ });
60
+ });
61
+ },
62
+ waitUntilFinished({ operationId, siteUrl, resolve, reject, logger, currentContext, debug, verbose }) {
63
+ exports.spo
64
+ .ensureFormDigest(siteUrl, logger, currentContext, debug)
65
+ .then((res) => {
66
+ currentContext = res;
67
+ if (debug) {
68
+ logger.logToStderr(`Checking if operation ${operationId} completed...`);
69
+ }
70
+ const requestOptions = {
71
+ url: `${siteUrl}/_vti_bin/client.svc/ProcessQuery`,
72
+ headers: {
73
+ 'X-RequestDigest': currentContext.FormDigestValue
74
+ },
75
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><Query Id="188" ObjectPathId="184"><Query SelectAllProperties="false"><Properties><Property Name="IsComplete" ScalarProperty="true" /><Property Name="PollingInterval" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Identity Id="184" Name="${operationId.replace(/\\n/g, '&#xA;').replace(/"/g, '')}" /></ObjectPaths></Request>`
76
+ };
77
+ return request_1.default.post(requestOptions);
78
+ })
79
+ .then((res) => {
80
+ const json = JSON.parse(res);
81
+ const response = json[0];
82
+ if (response.ErrorInfo) {
83
+ reject(response.ErrorInfo.ErrorMessage);
84
+ }
85
+ else {
86
+ const operation = json[json.length - 1];
87
+ const isComplete = operation.IsComplete;
88
+ if (isComplete) {
89
+ if (!debug && verbose) {
90
+ process.stdout.write('\n');
91
+ }
92
+ resolve();
93
+ return;
94
+ }
95
+ setTimeout(() => {
96
+ exports.spo.waitUntilFinished({
97
+ operationId: JSON.stringify(operation._ObjectIdentity_),
98
+ siteUrl,
99
+ resolve,
100
+ reject,
101
+ logger,
102
+ currentContext,
103
+ debug,
104
+ verbose
105
+ });
106
+ }, operation.PollingInterval);
107
+ }
108
+ });
109
+ },
110
+ waitUntilCopyJobFinished({ copyJobInfo, siteUrl, pollingInterval, resolve, reject, logger, debug, verbose }) {
111
+ const requestUrl = `${siteUrl}/_api/site/GetCopyJobProgress`;
112
+ const requestOptions = {
113
+ url: requestUrl,
114
+ headers: {
115
+ 'accept': 'application/json;odata=nometadata'
116
+ },
117
+ data: { "copyJobInfo": copyJobInfo },
118
+ responseType: 'json'
119
+ };
120
+ request_1.default
121
+ .post(requestOptions)
122
+ .then((resp) => {
123
+ if (debug) {
124
+ logger.logToStderr('getCopyJobProgress response...');
125
+ logger.logToStderr(resp);
126
+ }
127
+ for (const item of resp.Logs) {
128
+ const log = JSON.parse(item);
129
+ // reject if progress error
130
+ if (log.Event === "JobError" || log.Event === "JobFatalError") {
131
+ return reject(log.Message);
132
+ }
133
+ }
134
+ // two possible scenarios
135
+ // job done = success promise returned
136
+ // job in progress = recursive call using setTimeout returned
137
+ if (resp.JobState === 0) {
138
+ // job done
139
+ if (verbose) {
140
+ process.stdout.write('\n');
141
+ }
142
+ resolve();
143
+ }
144
+ else {
145
+ setTimeout(() => {
146
+ exports.spo.waitUntilCopyJobFinished({ copyJobInfo, siteUrl, pollingInterval, resolve, reject, logger, debug, verbose });
147
+ }, pollingInterval);
148
+ }
149
+ });
150
+ },
151
+ getSpoUrl(logger, debug) {
152
+ if (Auth_1.default.service.spoUrl) {
153
+ if (debug) {
154
+ logger.logToStderr(`SPO URL previously retrieved ${Auth_1.default.service.spoUrl}. Returning...`);
155
+ }
156
+ return Promise.resolve(Auth_1.default.service.spoUrl);
157
+ }
158
+ return new Promise((resolve, reject) => {
159
+ if (debug) {
160
+ logger.logToStderr(`No SPO URL available. Retrieving from MS Graph...`);
161
+ }
162
+ const requestOptions = {
163
+ url: `https://graph.microsoft.com/v1.0/sites/root?$select=webUrl`,
164
+ headers: {
165
+ 'accept': 'application/json;odata.metadata=none'
166
+ },
167
+ responseType: 'json'
168
+ };
169
+ request_1.default
170
+ .get(requestOptions)
171
+ .then((res) => {
172
+ Auth_1.default.service.spoUrl = res.webUrl;
173
+ return Auth_1.default.storeConnectionInfo();
174
+ })
175
+ .then(() => {
176
+ resolve(Auth_1.default.service.spoUrl);
177
+ }, (err) => {
178
+ if (Auth_1.default.service.spoUrl) {
179
+ resolve(Auth_1.default.service.spoUrl);
180
+ }
181
+ else {
182
+ reject(err);
183
+ }
184
+ });
185
+ });
186
+ },
187
+ getSpoAdminUrl(logger, debug) {
188
+ return new Promise((resolve, reject) => {
189
+ exports.spo
190
+ .getSpoUrl(logger, debug)
191
+ .then((spoUrl) => {
192
+ resolve(spoUrl.replace(/(https:\/\/)([^\.]+)(.*)/, '$1$2-admin$3'));
193
+ }, (error) => {
194
+ reject(error);
195
+ });
196
+ });
197
+ },
198
+ getTenantId(logger, debug) {
199
+ if (Auth_1.default.service.tenantId) {
200
+ if (debug) {
201
+ logger.logToStderr(`SPO Tenant ID previously retrieved ${Auth_1.default.service.tenantId}. Returning...`);
202
+ }
203
+ return Promise.resolve(Auth_1.default.service.tenantId);
204
+ }
205
+ return new Promise((resolve, reject) => {
206
+ if (debug) {
207
+ logger.logToStderr(`No SPO Tenant ID available. Retrieving...`);
208
+ }
209
+ let spoAdminUrl = '';
210
+ exports.spo
211
+ .getSpoAdminUrl(logger, debug)
212
+ .then((_spoAdminUrl) => {
213
+ spoAdminUrl = _spoAdminUrl;
214
+ return exports.spo.getRequestDigest(spoAdminUrl);
215
+ })
216
+ .then((contextInfo) => {
217
+ const tenantInfoRequestOptions = {
218
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
219
+ headers: {
220
+ 'X-RequestDigest': contextInfo.FormDigestValue,
221
+ accept: 'application/json;odata=nometadata'
222
+ },
223
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="4" ObjectPathId="3" /><Query Id="5" ObjectPathId="3"><Query SelectAllProperties="true"><Properties /></Query></Query></Actions><ObjectPaths><Constructor Id="3" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
224
+ };
225
+ return request_1.default.post(tenantInfoRequestOptions);
226
+ })
227
+ .then((res) => {
228
+ const json = JSON.parse(res);
229
+ Auth_1.default.service.tenantId = json[json.length - 1]._ObjectIdentity_.replace('\n', '&#xA;');
230
+ return Auth_1.default.storeConnectionInfo();
231
+ })
232
+ .then(() => {
233
+ resolve(Auth_1.default.service.tenantId);
234
+ }, (err) => {
235
+ if (Auth_1.default.service.tenantId) {
236
+ resolve(Auth_1.default.service.tenantId);
237
+ }
238
+ else {
239
+ reject(err);
240
+ }
241
+ });
242
+ });
243
+ },
244
+ /**
245
+ * Returns the Graph id of a site
246
+ * @param webUrl web url e.g. https://contoso.sharepoint.com/sites/site1
247
+ */
248
+ getSpoGraphSiteId(webUrl) {
249
+ return __awaiter(this, void 0, void 0, function* () {
250
+ const url = new URL(webUrl);
251
+ const requestOptions = {
252
+ url: `https://graph.microsoft.com/v1.0/sites/${url.hostname}:${url.pathname}?$select=id`,
253
+ headers: {
254
+ 'accept': 'application/json;odata.metadata=none'
255
+ },
256
+ responseType: 'json'
257
+ };
258
+ const result = yield request_1.default.get(requestOptions);
259
+ return result.id;
260
+ });
261
+ },
262
+ /**
263
+ * Ensures the folder path exists
264
+ * @param webFullUrl web full url e.g. https://contoso.sharepoint.com/sites/site1
265
+ * @param folderToEnsure web relative or server relative folder path e.g. /Documents/MyFolder or /sites/site1/Documents/MyFolder
266
+ * @param siteAccessToken a valid access token for the site specified in the webFullUrl param
267
+ */
268
+ ensureFolder(webFullUrl, folderToEnsure, logger, debug) {
269
+ const webUrl = url.parse(webFullUrl);
270
+ if (!webUrl.protocol || !webUrl.hostname) {
271
+ return Promise.reject('webFullUrl is not a valid URL');
272
+ }
273
+ if (!folderToEnsure) {
274
+ return Promise.reject('folderToEnsure cannot be empty');
275
+ }
276
+ // remove last '/' of webFullUrl if exists
277
+ const webFullUrlLastCharPos = webFullUrl.length - 1;
278
+ if (webFullUrl.length > 1 &&
279
+ webFullUrl[webFullUrlLastCharPos] === '/') {
280
+ webFullUrl = webFullUrl.substring(0, webFullUrlLastCharPos);
281
+ }
282
+ folderToEnsure = urlUtil_1.urlUtil.getWebRelativePath(webFullUrl, folderToEnsure);
283
+ if (debug) {
284
+ logger.log(`folderToEnsure`);
285
+ logger.log(folderToEnsure);
286
+ logger.log('');
287
+ }
288
+ let nextFolder = '';
289
+ let prevFolder = '';
290
+ let folderIndex = 0;
291
+ // build array of folders e.g. ["Shared%20Documents","22","54","55"]
292
+ const folders = folderToEnsure.substring(1).split('/');
293
+ if (debug) {
294
+ logger.log('folders to process');
295
+ logger.log(JSON.stringify(folders));
296
+ logger.log('');
297
+ }
298
+ // recursive function
299
+ const checkOrAddFolder = (resolve, reject) => {
300
+ if (folderIndex === folders.length) {
301
+ if (debug) {
302
+ logger.log(`All sub-folders exist`);
303
+ }
304
+ return resolve();
305
+ }
306
+ // append the next sub-folder to the folder path and check if it exists
307
+ prevFolder = nextFolder;
308
+ nextFolder += `/${folders[folderIndex]}`;
309
+ const folderServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(webFullUrl, nextFolder);
310
+ const requestOptions = {
311
+ url: `${webFullUrl}/_api/web/GetFolderByServerRelativePath(DecodedUrl='${formatting_1.formatting.encodeQueryParameter(folderServerRelativeUrl)}')`,
312
+ headers: {
313
+ 'accept': 'application/json;odata=nometadata'
314
+ }
315
+ };
316
+ request_1.default
317
+ .get(requestOptions)
318
+ .then(() => {
319
+ folderIndex++;
320
+ checkOrAddFolder(resolve, reject);
321
+ })
322
+ .catch(() => {
323
+ const prevFolderServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(webFullUrl, prevFolder);
324
+ const requestOptions = {
325
+ url: `${webFullUrl}/_api/web/GetFolderByServerRelativePath(DecodedUrl=@a1)/AddSubFolderUsingPath(DecodedUrl=@a2)?@a1=%27${formatting_1.formatting.encodeQueryParameter(prevFolderServerRelativeUrl)}%27&@a2=%27${formatting_1.formatting.encodeQueryParameter(folders[folderIndex])}%27`,
326
+ headers: {
327
+ 'accept': 'application/json;odata=nometadata'
328
+ },
329
+ responseType: 'json'
330
+ };
331
+ return request_1.default.post(requestOptions)
332
+ .then(() => {
333
+ folderIndex++;
334
+ checkOrAddFolder(resolve, reject);
335
+ })
336
+ .catch((err) => {
337
+ if (debug) {
338
+ logger.log(`Could not create sub-folder ${folderServerRelativeUrl}`);
339
+ }
340
+ reject(err);
341
+ });
342
+ });
343
+ };
344
+ return new Promise(checkOrAddFolder);
345
+ },
346
+ /**
347
+ * Requests web object identity for the current web.
348
+ * That request is something similar to _contextinfo in REST.
349
+ * The response data looks like:
350
+ * _ObjectIdentity_=<GUID>|<GUID>:site:<GUID>:web:<GUID>
351
+ * _ObjectType_=SP.Web
352
+ * ServerRelativeUrl=/sites/contoso
353
+ * @param webUrl web url
354
+ * @param formDigestValue formDigestValue
355
+ */
356
+ getCurrentWebIdentity(webUrl, formDigestValue) {
357
+ const requestOptions = {
358
+ url: `${webUrl}/_vti_bin/client.svc/ProcessQuery`,
359
+ headers: {
360
+ 'X-RequestDigest': formDigestValue
361
+ },
362
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><Query Id="1" ObjectPathId="5"><Query SelectAllProperties="false"><Properties><Property Name="ServerRelativeUrl" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Property Id="5" ParentId="3" Name="Web" /><StaticProperty Id="3" TypeId="{3747adcd-a3c3-41b9-bfab-4a64dd2f1e0a}" Name="Current" /></ObjectPaths></Request>`
363
+ };
364
+ return new Promise((resolve, reject) => {
365
+ request_1.default.post(requestOptions).then((res) => {
366
+ const json = JSON.parse(res);
367
+ const contents = json.find(x => { return x.ErrorInfo; });
368
+ if (contents && contents.ErrorInfo) {
369
+ return reject(contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error');
370
+ }
371
+ const identityObject = json.find(x => { return x._ObjectIdentity_; });
372
+ if (identityObject) {
373
+ return resolve({
374
+ objectIdentity: identityObject._ObjectIdentity_,
375
+ serverRelativeUrl: identityObject.ServerRelativeUrl
376
+ });
377
+ }
378
+ reject('Cannot proceed. _ObjectIdentity_ not found'); // this is not supposed to happen
379
+ }, (err) => { reject(err); });
380
+ });
381
+ },
382
+ /**
383
+ * Gets EffectiveBasePermissions for web return type is "_ObjectType_\":\"SP.Web\".
384
+ * @param webObjectIdentity ObjectIdentity. Has format _ObjectIdentity_=<GUID>|<GUID>:site:<GUID>:web:<GUID>
385
+ * @param webUrl web url
386
+ * @param siteAccessToken site access token
387
+ * @param formDigestValue formDigestValue
388
+ */
389
+ getEffectiveBasePermissions(webObjectIdentity, webUrl, formDigestValue, logger, debug) {
390
+ const basePermissionsResult = new base_permissions_1.BasePermissions();
391
+ const requestOptions = {
392
+ url: `${webUrl}/_vti_bin/client.svc/ProcessQuery`,
393
+ headers: {
394
+ 'X-RequestDigest': formDigestValue
395
+ },
396
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><Query Id="11" ObjectPathId="5"><Query SelectAllProperties="false"><Properties><Property Name="EffectiveBasePermissions" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Identity Id="5" Name="${webObjectIdentity}" /></ObjectPaths></Request>`
397
+ };
398
+ return new Promise((resolve, reject) => {
399
+ request_1.default.post(requestOptions).then((res) => {
400
+ if (debug) {
401
+ logger.log('Attempt to get the web EffectiveBasePermissions');
402
+ }
403
+ const json = JSON.parse(res);
404
+ const contents = json.find(x => { return x.ErrorInfo; });
405
+ if (contents && contents.ErrorInfo) {
406
+ return reject(contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error');
407
+ }
408
+ const permissionsObj = json.find(x => { return x.EffectiveBasePermissions; });
409
+ if (permissionsObj) {
410
+ basePermissionsResult.high = permissionsObj.EffectiveBasePermissions.High;
411
+ basePermissionsResult.low = permissionsObj.EffectiveBasePermissions.Low;
412
+ return resolve(basePermissionsResult);
413
+ }
414
+ reject('Cannot proceed. EffectiveBasePermissions not found'); // this is not supposed to happen
415
+ }, (err) => { reject(err); });
416
+ });
417
+ },
418
+ /**
419
+ * Gets folder by server relative url (GetFolderByServerRelativeUrl in REST)
420
+ * The response data looks like:
421
+ * _ObjectIdentity_=<GUID>|<GUID>:site:<GUID>:web:<GUID>:folder:<GUID>
422
+ * _ObjectType_=SP.Folder
423
+ * @param webObjectIdentity ObjectIdentity. Has format _ObjectIdentity_=<GUID>|<GUID>:site:<GUID>:web:<GUID>
424
+ * @param webUrl web url
425
+ * @param siteRelativeUrl site relative url e.g. /Shared Documents/Folder1
426
+ * @param formDigestValue formDigestValue
427
+ */
428
+ getFolderIdentity(webObjectIdentity, webUrl, siteRelativeUrl, formDigestValue) {
429
+ const serverRelativePath = urlUtil_1.urlUtil.getServerRelativePath(webUrl, siteRelativeUrl);
430
+ const requestOptions = {
431
+ url: `${webUrl}/_vti_bin/client.svc/ProcessQuery`,
432
+ headers: {
433
+ 'X-RequestDigest': formDigestValue
434
+ },
435
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="10" ObjectPathId="9" /><ObjectIdentityQuery Id="11" ObjectPathId="9" /><Query Id="12" ObjectPathId="9"><Query SelectAllProperties="false"><Properties><Property Name="Properties" SelectAll="true"><Query SelectAllProperties="false"><Properties /></Query></Property></Properties></Query></Query></Actions><ObjectPaths><Method Id="9" ParentId="5" Name="GetFolderByServerRelativeUrl"><Parameters><Parameter Type="String">${serverRelativePath}</Parameter></Parameters></Method><Identity Id="5" Name="${webObjectIdentity}" /></ObjectPaths></Request>`
436
+ };
437
+ return new Promise((resolve, reject) => {
438
+ return request_1.default.post(requestOptions).then((res) => {
439
+ const json = JSON.parse(res);
440
+ const contents = json.find(x => { return x.ErrorInfo; });
441
+ if (contents && contents.ErrorInfo) {
442
+ return reject(contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error');
443
+ }
444
+ const objectIdentity = json.find(x => { return x._ObjectIdentity_; });
445
+ if (objectIdentity) {
446
+ return resolve({
447
+ objectIdentity: objectIdentity._ObjectIdentity_,
448
+ serverRelativeUrl: serverRelativePath
449
+ });
450
+ }
451
+ reject('Cannot proceed. Folder _ObjectIdentity_ not found'); // this is not suppose to happen
452
+ }, (err) => { reject(err); });
453
+ });
454
+ },
455
+ /**
456
+ * Retrieves the SiteId, VroomItemId and VroomDriveId from a specific file.
457
+ * @param webUrl Web url
458
+ * @param fileId GUID ID of the file
459
+ * @param fileUrl Decoded site-relative or server-relative URL of the file
460
+ */
461
+ getVroomFileDetails(webUrl, fileId, fileUrl) {
462
+ return __awaiter(this, void 0, void 0, function* () {
463
+ let requestUrl = `${webUrl}/_api/web/`;
464
+ if (fileUrl) {
465
+ const fileServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(webUrl, fileUrl);
466
+ requestUrl += `GetFileByServerRelativePath(decodedUrl='${formatting_1.formatting.encodeQueryParameter(fileServerRelativeUrl)}')`;
467
+ }
468
+ else {
469
+ requestUrl += `GetFileById('${fileId}')`;
470
+ }
471
+ requestUrl += '?$select=SiteId,VroomItemId,VroomDriveId';
472
+ const requestOptions = {
473
+ url: requestUrl,
474
+ headers: {
475
+ accept: 'application/json;odata=nometadata'
476
+ },
477
+ responseType: 'json'
478
+ };
479
+ const res = yield request_1.default.get(requestOptions);
480
+ return res;
481
+ });
482
+ },
483
+ /**
484
+ * Retrieves a list of Custom Actions from a SharePoint site.
485
+ * @param webUrl Web url
486
+ * @param scope The scope of custom actions to retrieve, allowed values "Site", "Web" or "All".
487
+ * @param filter An OData filter query to limit the results.
488
+ */
489
+ getCustomActions(webUrl, scope, filter) {
490
+ return __awaiter(this, void 0, void 0, function* () {
491
+ if (scope && scope !== "All" && scope !== "Site" && scope !== "Web") {
492
+ throw `Invalid scope '${scope}'. Allowed values are 'Site', 'Web' or 'All'.`;
493
+ }
494
+ const queryString = filter ? `?$filter=${filter}` : "";
495
+ if (scope && scope !== "All") {
496
+ return yield odata_1.odata.getAllItems(`${webUrl}/_api/${scope}/UserCustomActions${queryString}`);
497
+ }
498
+ const customActions = [
499
+ ...yield odata_1.odata.getAllItems(`${webUrl}/_api/Site/UserCustomActions${queryString}`),
500
+ ...yield odata_1.odata.getAllItems(`${webUrl}/_api/Web/UserCustomActions${queryString}`)
501
+ ];
502
+ return customActions;
503
+ });
504
+ },
505
+ /**
506
+ * Retrieves a Custom Actions from a SharePoint site by Id.
507
+ * @param webUrl Web url
508
+ * @param id The Id of the Custom Action
509
+ * @param scope The scope of custom actions to retrieve, allowed values "Site", "Web" or "All".
510
+ */
511
+ getCustomActionById(webUrl, id, scope) {
512
+ return __awaiter(this, void 0, void 0, function* () {
513
+ if (scope && scope !== "All" && scope !== "Site" && scope !== "Web") {
514
+ throw `Invalid scope '${scope}'. Allowed values are 'Site', 'Web' or 'All'.`;
515
+ }
516
+ function getById(webUrl, id, scope) {
517
+ return __awaiter(this, void 0, void 0, function* () {
518
+ const requestOptions = {
519
+ url: `${webUrl}/_api/${scope}/UserCustomActions(guid'${id}')`,
520
+ headers: {
521
+ accept: 'application/json;odata=nometadata'
522
+ },
523
+ responseType: 'json'
524
+ };
525
+ const result = yield request_1.default.get(requestOptions);
526
+ if (result["odata.null"] === true) {
527
+ return undefined;
528
+ }
529
+ return result;
530
+ });
531
+ }
532
+ if (scope && scope !== "All") {
533
+ return yield getById(webUrl, id, scope);
534
+ }
535
+ const customActionOnWeb = yield getById(webUrl, id, "Web");
536
+ if (customActionOnWeb) {
537
+ return customActionOnWeb;
538
+ }
539
+ const customActionOnSite = yield getById(webUrl, id, "Site");
540
+ return customActionOnSite;
541
+ });
542
+ },
543
+ getTenantAppCatalogUrl(logger, debug) {
544
+ return __awaiter(this, void 0, void 0, function* () {
545
+ const spoUrl = yield exports.spo.getSpoUrl(logger, debug);
546
+ const requestOptions = {
547
+ url: `${spoUrl}/_api/SP_TenantSettings_Current`,
548
+ headers: {
549
+ accept: 'application/json;odata=nometadata'
550
+ },
551
+ responseType: 'json'
552
+ };
553
+ const result = yield request_1.default.get(requestOptions);
554
+ return result.CorporateCatalogUrl;
555
+ });
556
+ },
557
+ /**
558
+ * Retrieves the Azure AD ID from a SP user.
559
+ * @param webUrl Web url
560
+ * @param id The Id of the user
561
+ */
562
+ getUserAzureIdBySpoId(webUrl, id) {
563
+ return __awaiter(this, void 0, void 0, function* () {
564
+ const requestOptions = {
565
+ url: `${webUrl}/_api/web/siteusers/GetById('${formatting_1.formatting.encodeQueryParameter(id)}')?$select=AadObjectId`,
566
+ headers: {
567
+ accept: 'application/json;odata=nometadata'
568
+ },
569
+ responseType: 'json'
570
+ };
571
+ const res = yield request_1.default.get(requestOptions);
572
+ return res.AadObjectId.NameId;
573
+ });
574
+ },
575
+ /**
576
+ * Retrieves the spo user by email.
577
+ * @param webUrl Web url
578
+ * @param email The email of the user
579
+ * @param logger the Logger object
580
+ * @param debug set if debug logging should be logged
581
+ */
582
+ getUserByEmail(webUrl, email, logger, debug) {
583
+ return __awaiter(this, void 0, void 0, function* () {
584
+ if (debug) {
585
+ logger.logToStderr(`Retrieving the spo user by email ${email}`);
586
+ }
587
+ const requestUrl = `${webUrl}/_api/web/siteusers/GetByEmail('${formatting_1.formatting.encodeQueryParameter(email)}')`;
588
+ const requestOptions = {
589
+ url: requestUrl,
590
+ headers: {
591
+ 'accept': 'application/json;odata=nometadata'
592
+ },
593
+ responseType: 'json'
594
+ };
595
+ const userInstance = yield request_1.default.get(requestOptions);
596
+ return userInstance;
597
+ });
598
+ },
599
+ /**
600
+ * Retrieves the menu state for the quick launch.
601
+ * @param webUrl Web url
602
+ */
603
+ getQuickLaunchMenuState(webUrl) {
604
+ return __awaiter(this, void 0, void 0, function* () {
605
+ return this.getMenuState(webUrl);
606
+ });
607
+ },
608
+ /**
609
+ * Retrieves the menu state for the top navigation.
610
+ * @param webUrl Web url
611
+ */
612
+ getTopNavigationMenuState(webUrl) {
613
+ return __awaiter(this, void 0, void 0, function* () {
614
+ return this.getMenuState(webUrl, '1002');
615
+ });
616
+ },
617
+ /**
618
+ * Retrieves the menu state.
619
+ * @param webUrl Web url
620
+ * @param menuNodeKey Menu node key
621
+ */
622
+ getMenuState(webUrl, menuNodeKey) {
623
+ return __awaiter(this, void 0, void 0, function* () {
624
+ const requestBody = {
625
+ customProperties: null,
626
+ depth: 10,
627
+ mapProviderName: null,
628
+ menuNodeKey: menuNodeKey || null
629
+ };
630
+ const requestOptions = {
631
+ url: `${webUrl}/_api/navigation/MenuState`,
632
+ headers: {
633
+ accept: 'application/json;odata=nometadata'
634
+ },
635
+ data: requestBody,
636
+ responseType: 'json'
637
+ };
638
+ return request_1.default.post(requestOptions);
639
+ });
640
+ },
641
+ /**
642
+ * Saves the menu state.
643
+ * @param webUrl Web url
644
+ * @param menuState Updated menu state
645
+ */
646
+ saveMenuState(webUrl, menuState) {
647
+ return __awaiter(this, void 0, void 0, function* () {
648
+ const requestOptions = {
649
+ url: `${webUrl}/_api/navigation/SaveMenuState`,
650
+ headers: {
651
+ accept: 'application/json;odata=nometadata'
652
+ },
653
+ data: { menuState: menuState },
654
+ responseType: 'json'
655
+ };
656
+ return request_1.default.post(requestOptions);
657
+ });
658
+ },
659
+ /**
660
+ * Retrieves the spo group by name.
661
+ * @param webUrl Web url
662
+ * @param name The name of the group
663
+ * @param logger the Logger object
664
+ * @param debug set if debug logging should be logged
665
+ */
666
+ getGroupByName(webUrl, name, logger, debug) {
667
+ return __awaiter(this, void 0, void 0, function* () {
668
+ if (debug) {
669
+ logger.logToStderr(`Retrieving the group by name ${name}`);
670
+ }
671
+ const requestUrl = `${webUrl}/_api/web/sitegroups/GetByName('${formatting_1.formatting.encodeQueryParameter(name)}')`;
672
+ const requestOptions = {
673
+ url: requestUrl,
674
+ headers: {
675
+ 'accept': 'application/json;odata=nometadata'
676
+ },
677
+ responseType: 'json'
678
+ };
679
+ const groupInstance = yield request_1.default.get(requestOptions);
680
+ return groupInstance;
681
+ });
682
+ },
683
+ /**
684
+ * Retrieves the role definition by name.
685
+ * @param webUrl Web url
686
+ * @param name the name of the role definition
687
+ * @param logger the Logger object
688
+ * @param debug set if debug logging should be logged
689
+ */
690
+ getRoleDefinitionByName(webUrl, name, logger, debug) {
691
+ return __awaiter(this, void 0, void 0, function* () {
692
+ if (debug) {
693
+ logger.logToStderr(`Retrieving the role definitions for ${name}`);
694
+ }
695
+ const roledefinitions = yield odata_1.odata.getAllItems(`${webUrl}/_api/web/roledefinitions`);
696
+ const roledefinition = roledefinitions.find((role) => role.Name === name);
697
+ if (!roledefinition) {
698
+ throw `No roledefinition is found for ${name}`;
699
+ }
700
+ const permissions = new base_permissions_1.BasePermissions();
701
+ permissions.high = roledefinition.BasePermissions.High;
702
+ permissions.low = roledefinition.BasePermissions.Low;
703
+ roledefinition.BasePermissionsValue = permissions.parse();
704
+ roledefinition.RoleTypeKindValue = RoleType_1.RoleType[roledefinition.RoleTypeKind];
705
+ return roledefinition;
706
+ });
707
+ },
708
+ /**
709
+ * Adds a SharePoint site.
710
+ * @param type Type of sites to add. Allowed values TeamSite, CommunicationSite, ClassicSite, default TeamSite
711
+ * @param title Site title
712
+ * @param alias Site alias, used in the URL and in the team site group e-mail (applies to type TeamSite)
713
+ * @param url Site URL (applies to type CommunicationSite, ClassicSite)
714
+ * @param timeZone Integer representing time zone to use for the site (applies to type ClassicSite)
715
+ * @param description Site description
716
+ * @param lcid Site language in the LCID format
717
+ * @param owners Comma-separated list of users to set as site owners (applies to type TeamSite, ClassicSite)
718
+ * @param isPublic Determines if the associated group is public or not (applies to type TeamSite)
719
+ * @param classification Site classification (applies to type TeamSite, CommunicationSite)
720
+ * @param siteDesignType of communication site to create. Allowed values Topic, Showcase, Blank, default Topic. When creating a communication site, specify either siteDesign or siteDesignId (applies to type CommunicationSite)
721
+ * @param siteDesignId Id of the custom site design to use to create the site. When creating a communication site, specify either siteDesign or siteDesignId (applies to type CommunicationSite)
722
+ * @param shareByEmailEnabled Determines whether it's allowed to share file with guests (applies to type CommunicationSite)
723
+ * @param webTemplate Template to use for creating the site. Default `STS#0` (applies to type ClassicSite)
724
+ * @param resourceQuota The quota for this site collection in Sandboxed Solutions units. Default 0 (applies to type ClassicSite)
725
+ * @param resourceQuotaWarningLevel The warning level for the resource quota. Default 0 (applies to type ClassicSite)
726
+ * @param storageQuota The storage quota for this site collection in megabytes. Default 100 (applies to type ClassicSite)
727
+ * @param storageQuotaWarningLevel The warning level for the storage quota in megabytes. Default 100 (applies to type ClassicSite)
728
+ * @param removeDeletedSite Set, to remove existing deleted site with the same URL from the Recycle Bin (applies to type ClassicSite)
729
+ * @param wait Wait for the site to be provisioned before completing the command (applies to type ClassicSite)
730
+ * @param logger the Logger object
731
+ * @param verbose set if verbose logging should be logged
732
+ */
733
+ addSite(title, logger, verbose, wait, type, alias, description, owners, shareByEmailEnabled, removeDeletedSite, classification, isPublic, lcid, url, siteDesign, siteDesignId, timeZone, webTemplate, resourceQuota, resourceQuotaWarningLevel, storageQuota, storageQuotaWarningLevel) {
734
+ return __awaiter(this, void 0, void 0, function* () {
735
+ if (type === 'ClassicSite') {
736
+ const spoAdminUrl = yield exports.spo.getSpoAdminUrl(logger, verbose);
737
+ let context = yield exports.spo.ensureFormDigest(spoAdminUrl, logger, undefined, verbose);
738
+ let exists;
739
+ if (removeDeletedSite) {
740
+ exists = yield exports.spo.siteExists(url, logger, verbose);
741
+ }
742
+ else {
743
+ // assume site doesn't exist
744
+ exists = false;
745
+ }
746
+ if (exists) {
747
+ if (verbose) {
748
+ logger.logToStderr('Site exists in the recycle bin');
749
+ }
750
+ yield exports.spo.deleteSiteFromTheRecycleBin(url, logger, verbose, wait);
751
+ }
752
+ else {
753
+ if (verbose) {
754
+ logger.logToStderr('Site not found');
755
+ }
756
+ }
757
+ context = yield exports.spo.ensureFormDigest(spoAdminUrl, logger, context, verbose);
758
+ if (verbose) {
759
+ logger.logToStderr(`Creating site collection ${url}...`);
760
+ }
761
+ const lcidOption = typeof lcid === 'number' ? lcid : 1033;
762
+ const storageQuotaOption = typeof storageQuota === 'number' ? storageQuota : 100;
763
+ const storageQuotaWarningLevelOption = typeof storageQuotaWarningLevel === 'number' ? storageQuotaWarningLevel : 100;
764
+ const resourceQuotaOption = typeof resourceQuota === 'number' ? resourceQuota : 0;
765
+ const resourceQuotaWarningLevelOption = typeof resourceQuotaWarningLevel === 'number' ? resourceQuotaWarningLevel : 0;
766
+ const webTemplateOption = webTemplate || 'STS#0';
767
+ const requestOptions = {
768
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
769
+ headers: {
770
+ 'X-RequestDigest': context.FormDigestValue
771
+ },
772
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="4" ObjectPathId="3" /><ObjectPath Id="6" ObjectPathId="5" /><Query Id="7" ObjectPathId="3"><Query SelectAllProperties="true"><Properties /></Query></Query><Query Id="8" ObjectPathId="5"><Query SelectAllProperties="false"><Properties><Property Name="IsComplete" ScalarProperty="true" /><Property Name="PollingInterval" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Constructor Id="3" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /><Method Id="5" ParentId="3" Name="CreateSite"><Parameters><Parameter TypeId="{11f84fff-b8cf-47b6-8b50-34e692656606}"><Property Name="CompatibilityLevel" Type="Int32">0</Property><Property Name="Lcid" Type="UInt32">${lcidOption}</Property><Property Name="Owner" Type="String">${formatting_1.formatting.escapeXml(owners)}</Property><Property Name="StorageMaximumLevel" Type="Int64">${storageQuotaOption}</Property><Property Name="StorageWarningLevel" Type="Int64">${storageQuotaWarningLevelOption}</Property><Property Name="Template" Type="String">${formatting_1.formatting.escapeXml(webTemplateOption)}</Property><Property Name="TimeZoneId" Type="Int32">${timeZone}</Property><Property Name="Title" Type="String">${formatting_1.formatting.escapeXml(title)}</Property><Property Name="Url" Type="String">${formatting_1.formatting.escapeXml(url)}</Property><Property Name="UserCodeMaximumLevel" Type="Double">${resourceQuotaOption}</Property><Property Name="UserCodeWarningLevel" Type="Double">${resourceQuotaWarningLevelOption}</Property></Parameter></Parameters></Method></ObjectPaths></Request>`
773
+ };
774
+ const res = yield request_1.default.post(requestOptions);
775
+ const json = JSON.parse(res);
776
+ const response = json[0];
777
+ if (response.ErrorInfo) {
778
+ throw response.ErrorInfo.ErrorMessage;
779
+ }
780
+ else {
781
+ const operation = json[json.length - 1];
782
+ const isComplete = operation.IsComplete;
783
+ if (!wait || isComplete) {
784
+ return;
785
+ }
786
+ yield new Promise((resolve, reject) => {
787
+ setTimeout(() => {
788
+ exports.spo.waitUntilFinished({
789
+ operationId: JSON.stringify(operation._ObjectIdentity_),
790
+ siteUrl: spoAdminUrl,
791
+ resolve,
792
+ reject,
793
+ logger,
794
+ currentContext: context,
795
+ verbose: verbose,
796
+ debug: verbose
797
+ });
798
+ }, operation.PollingInterval);
799
+ });
800
+ }
801
+ }
802
+ else {
803
+ const isTeamSite = type !== 'CommunicationSite';
804
+ const spoUrl = yield exports.spo.getSpoUrl(logger, verbose);
805
+ if (verbose) {
806
+ logger.logToStderr(`Creating new site...`);
807
+ }
808
+ let requestOptions = {};
809
+ if (isTeamSite) {
810
+ requestOptions = {
811
+ url: `${spoUrl}/_api/GroupSiteManager/CreateGroupEx`,
812
+ headers: {
813
+ 'content-type': 'application/json; odata=verbose; charset=utf-8',
814
+ accept: 'application/json;odata=nometadata'
815
+ },
816
+ responseType: 'json',
817
+ data: {
818
+ displayName: title,
819
+ alias: alias,
820
+ isPublic: isPublic,
821
+ optionalParams: {
822
+ Description: description || '',
823
+ CreationOptions: {
824
+ results: [],
825
+ Classification: classification || ''
826
+ }
827
+ }
828
+ }
829
+ };
830
+ if (lcid) {
831
+ requestOptions.data.optionalParams.CreationOptions.results.push(`SPSiteLanguage:${lcid}`);
832
+ }
833
+ if (owners) {
834
+ requestOptions.data.optionalParams.Owners = {
835
+ results: owners.split(',').map(o => o.trim())
836
+ };
837
+ }
838
+ }
839
+ else {
840
+ if (siteDesignId) {
841
+ siteDesignId = siteDesignId;
842
+ }
843
+ else {
844
+ if (siteDesign) {
845
+ switch (siteDesign) {
846
+ case 'Topic':
847
+ siteDesignId = '00000000-0000-0000-0000-000000000000';
848
+ break;
849
+ case 'Showcase':
850
+ siteDesignId = '6142d2a0-63a5-4ba0-aede-d9fefca2c767';
851
+ break;
852
+ case 'Blank':
853
+ siteDesignId = 'f6cc5403-0d63-442e-96c0-285923709ffc';
854
+ break;
855
+ }
856
+ }
857
+ else {
858
+ siteDesignId = '00000000-0000-0000-0000-000000000000';
859
+ }
860
+ }
861
+ requestOptions = {
862
+ url: `${spoUrl}/_api/SPSiteManager/Create`,
863
+ headers: {
864
+ 'content-type': 'application/json;odata=nometadata',
865
+ accept: 'application/json;odata=nometadata'
866
+ },
867
+ responseType: 'json',
868
+ data: {
869
+ request: {
870
+ Title: title,
871
+ Url: url,
872
+ ShareByEmailEnabled: shareByEmailEnabled,
873
+ Description: description || '',
874
+ Classification: classification || '',
875
+ WebTemplate: 'SITEPAGEPUBLISHING#0',
876
+ SiteDesignId: siteDesignId
877
+ }
878
+ }
879
+ };
880
+ if (lcid) {
881
+ requestOptions.data.request.Lcid = lcid;
882
+ }
883
+ if (owners) {
884
+ requestOptions.data.request.Owner = owners;
885
+ }
886
+ }
887
+ const res = yield request_1.default.post(requestOptions);
888
+ if (isTeamSite) {
889
+ if (res.ErrorMessage !== null) {
890
+ throw res.ErrorMessage;
891
+ }
892
+ else {
893
+ return res.SiteUrl;
894
+ }
895
+ }
896
+ else {
897
+ if (res.SiteStatus === 2) {
898
+ return res.SiteUrl;
899
+ }
900
+ else {
901
+ throw 'An error has occurred while creating the site';
902
+ }
903
+ }
904
+ }
905
+ });
906
+ },
907
+ /**
908
+ * Checks if a site exists
909
+ * Returns a boolean
910
+ * @param url The url of the site
911
+ * @param logger the Logger object
912
+ * @param verbose set if verbose logging should be logged
913
+ */
914
+ siteExists(url, logger, verbose) {
915
+ return __awaiter(this, void 0, void 0, function* () {
916
+ const spoAdminUrl = yield exports.spo.getSpoAdminUrl(logger, verbose);
917
+ const context = yield exports.spo.ensureFormDigest(spoAdminUrl, logger, undefined, verbose);
918
+ if (verbose) {
919
+ logger.logToStderr(`Checking if the site ${url} exists...`);
920
+ }
921
+ const requestOptions = {
922
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
923
+ headers: {
924
+ 'X-RequestDigest': context.FormDigestValue
925
+ },
926
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="197" ObjectPathId="196" /><ObjectPath Id="199" ObjectPathId="198" /><Query Id="200" ObjectPathId="198"><Query SelectAllProperties="true"><Properties /></Query></Query></Actions><ObjectPaths><Constructor Id="196" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /><Method Id="198" ParentId="196" Name="GetSitePropertiesByUrl"><Parameters><Parameter Type="String">${formatting_1.formatting.escapeXml(url)}</Parameter><Parameter Type="Boolean">false</Parameter></Parameters></Method></ObjectPaths></Request>`
927
+ };
928
+ const res1 = yield request_1.default.post(requestOptions);
929
+ const json = JSON.parse(res1);
930
+ const response = json[0];
931
+ if (response.ErrorInfo) {
932
+ if (response.ErrorInfo.ErrorTypeName === 'Microsoft.Online.SharePoint.Common.SpoNoSiteException') {
933
+ return yield this.siteExistsInTheRecycleBin(url, logger, verbose);
934
+ }
935
+ else {
936
+ throw response.ErrorInfo.ErrorMessage;
937
+ }
938
+ }
939
+ else {
940
+ const site = json[json.length - 1];
941
+ return site.Status === 'Recycled';
942
+ }
943
+ });
944
+ },
945
+ /**
946
+ * Checks if a site exists in the recycle bin
947
+ * Returns a boolean
948
+ * @param url The url of the site
949
+ * @param logger the Logger object
950
+ * @param verbose set if verbose logging should be logged
951
+ */
952
+ siteExistsInTheRecycleBin(url, logger, verbose) {
953
+ return __awaiter(this, void 0, void 0, function* () {
954
+ if (verbose) {
955
+ logger.logToStderr(`Site doesn't exist. Checking if the site ${url} exists in the recycle bin...`);
956
+ }
957
+ const spoAdminUrl = yield exports.spo.getSpoAdminUrl(logger, verbose);
958
+ const context = yield exports.spo.ensureFormDigest(spoAdminUrl, logger, undefined, verbose);
959
+ const requestOptions = {
960
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
961
+ headers: {
962
+ 'X-RequestDigest': context.FormDigestValue
963
+ },
964
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="181" ObjectPathId="180" /><Query Id="182" ObjectPathId="180"><Query SelectAllProperties="true"><Properties /></Query></Query></Actions><ObjectPaths><Method Id="180" ParentId="175" Name="GetDeletedSitePropertiesByUrl"><Parameters><Parameter Type="String">${formatting_1.formatting.escapeXml(url)}</Parameter></Parameters></Method><Constructor Id="175" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
965
+ };
966
+ const res = yield request_1.default.post(requestOptions);
967
+ const json = JSON.parse(res);
968
+ const response = json[0];
969
+ if (response.ErrorInfo) {
970
+ if (response.ErrorInfo.ErrorTypeName === 'Microsoft.SharePoint.Client.UnknownError') {
971
+ return false;
972
+ }
973
+ throw response.ErrorInfo.ErrorMessage;
974
+ }
975
+ const site = json[json.length - 1];
976
+ return site.Status === 'Recycled';
977
+ });
978
+ },
979
+ /**
980
+ * Deletes a site from the recycle bin
981
+ * @param url The url of the site
982
+ * @param logger the Logger object
983
+ * @param verbose set if verbose logging should be logged
984
+ * @param wait set to wait until finished
985
+ */
986
+ deleteSiteFromTheRecycleBin(url, logger, verbose, wait) {
987
+ return __awaiter(this, void 0, void 0, function* () {
988
+ const spoAdminUrl = yield exports.spo.getSpoAdminUrl(logger, verbose);
989
+ const context = yield exports.spo.ensureFormDigest(spoAdminUrl, logger, undefined, verbose);
990
+ if (verbose) {
991
+ logger.logToStderr(`Deleting site ${url} from the recycle bin...`);
992
+ }
993
+ const requestOptions = {
994
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
995
+ headers: {
996
+ 'X-RequestDigest': context.FormDigestValue
997
+ },
998
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="185" ObjectPathId="184" /><Query Id="186" ObjectPathId="184"><Query SelectAllProperties="false"><Properties><Property Name="IsComplete" ScalarProperty="true" /><Property Name="PollingInterval" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Method Id="184" ParentId="175" Name="RemoveDeletedSite"><Parameters><Parameter Type="String">${formatting_1.formatting.escapeXml(url)}</Parameter></Parameters></Method><Constructor Id="175" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
999
+ };
1000
+ const response = yield request_1.default.post(requestOptions);
1001
+ const json = JSON.parse(response);
1002
+ const responseContent = json[0];
1003
+ if (responseContent.ErrorInfo) {
1004
+ throw responseContent.ErrorInfo.ErrorMessage;
1005
+ }
1006
+ const operation = json[json.length - 1];
1007
+ const isComplete = operation.IsComplete;
1008
+ if (!wait || isComplete) {
1009
+ return;
1010
+ }
1011
+ yield new Promise((resolve, reject) => {
1012
+ setTimeout(() => {
1013
+ exports.spo.waitUntilFinished({
1014
+ operationId: JSON.stringify(operation._ObjectIdentity_),
1015
+ siteUrl: spoAdminUrl,
1016
+ resolve,
1017
+ reject,
1018
+ logger,
1019
+ currentContext: context,
1020
+ verbose: verbose,
1021
+ debug: verbose
1022
+ });
1023
+ }, operation.PollingInterval);
1024
+ });
1025
+ });
1026
+ },
1027
+ /**
1028
+ * Updates a site with the given properties
1029
+ * @param url The url of the site
1030
+ * @param logger The logger object
1031
+ * @param verbose Set for verbose logging
1032
+ * @param title The new title
1033
+ * @param classification The classification to be updated
1034
+ * @param disableFlows If flows should be disabled or not
1035
+ * @param isPublic If site should be public or private
1036
+ * @param owners The owners to be updated
1037
+ * @param shareByEmailEnabled If share by e-mail should be enabled or not
1038
+ * @param siteDesignId The site design to be updated
1039
+ * @param sharingCapability The sharing capability to be updated
1040
+ */
1041
+ updateSite(url, logger, verbose, title, classification, disableFlows, isPublic, owners, shareByEmailEnabled, siteDesignId, sharingCapability) {
1042
+ return __awaiter(this, void 0, void 0, function* () {
1043
+ const tenantId = yield exports.spo.getTenantId(logger, verbose);
1044
+ const spoAdminUrl = yield exports.spo.getSpoAdminUrl(logger, verbose);
1045
+ let context = yield exports.spo.ensureFormDigest(spoAdminUrl, logger, undefined, verbose);
1046
+ if (verbose) {
1047
+ logger.logToStderr('Loading site IDs...');
1048
+ }
1049
+ const requestOptions = {
1050
+ url: `${url}/_api/site?$select=GroupId,Id`,
1051
+ headers: {
1052
+ accept: 'application/json;odata=nometadata'
1053
+ },
1054
+ responseType: 'json'
1055
+ };
1056
+ const siteInfo = yield request_1.default.get(requestOptions);
1057
+ const groupId = siteInfo.GroupId;
1058
+ const siteId = siteInfo.Id;
1059
+ const isGroupConnectedSite = groupId !== '00000000-0000-0000-0000-000000000000';
1060
+ if (verbose) {
1061
+ logger.logToStderr(`Retrieved site IDs. siteId: ${siteId}, groupId: ${groupId}`);
1062
+ }
1063
+ if (isGroupConnectedSite) {
1064
+ if (verbose) {
1065
+ logger.logToStderr(`Site attached to group ${groupId}`);
1066
+ }
1067
+ if (typeof title !== 'undefined' &&
1068
+ typeof isPublic !== 'undefined' &&
1069
+ typeof owners !== 'undefined') {
1070
+ const promises = [];
1071
+ if (typeof title !== 'undefined') {
1072
+ const requestOptions = {
1073
+ url: `${spoAdminUrl}/_api/SPOGroup/UpdateGroupPropertiesBySiteId`,
1074
+ headers: {
1075
+ accept: 'application/json;odata=nometadata',
1076
+ 'content-type': 'application/json;charset=utf-8',
1077
+ 'X-RequestDigest': context.FormDigestValue
1078
+ },
1079
+ data: {
1080
+ groupId: groupId,
1081
+ siteId: siteId,
1082
+ displayName: title
1083
+ },
1084
+ responseType: 'json'
1085
+ };
1086
+ promises.push(request_1.default.post(requestOptions));
1087
+ }
1088
+ if (typeof isPublic !== 'undefined') {
1089
+ promises.push(aadGroup_1.aadGroup.setGroup(groupId, (isPublic === false), logger, verbose));
1090
+ }
1091
+ if (typeof owners !== 'undefined') {
1092
+ promises.push(exports.spo.setGroupifiedSiteOwners(spoAdminUrl, groupId, owners, logger, verbose));
1093
+ }
1094
+ yield Promise.all(promises);
1095
+ }
1096
+ }
1097
+ else {
1098
+ if (verbose) {
1099
+ logger.logToStderr('Site is not group connected');
1100
+ }
1101
+ if (typeof isPublic !== 'undefined') {
1102
+ throw `The isPublic option can't be set on a site that is not groupified`;
1103
+ }
1104
+ if (owners) {
1105
+ yield Promise.all(owners.split(',').map((o) => __awaiter(this, void 0, void 0, function* () {
1106
+ yield exports.spo.setSiteAdmin(spoAdminUrl, context, url, o.trim());
1107
+ })));
1108
+ }
1109
+ }
1110
+ context = yield exports.spo.ensureFormDigest(spoAdminUrl, logger, context, verbose);
1111
+ if (verbose) {
1112
+ logger.logToStderr(`Updating site ${url} properties...`);
1113
+ }
1114
+ let updatedProperties = false;
1115
+ if (!isGroupConnectedSite) {
1116
+ if (title !== undefined) {
1117
+ updatedProperties = true;
1118
+ }
1119
+ }
1120
+ else {
1121
+ if (classification !== undefined || disableFlows !== undefined || shareByEmailEnabled !== undefined || sharingCapability !== undefined) {
1122
+ updatedProperties = true;
1123
+ }
1124
+ }
1125
+ if (updatedProperties) {
1126
+ let propertyId = 27;
1127
+ const payload = [];
1128
+ if (!isGroupConnectedSite) {
1129
+ if (title) {
1130
+ payload.push(`<SetProperty Id="${propertyId++}" ObjectPathId="5" Name="Title"><Parameter Type="String">${formatting_1.formatting.escapeXml(title)}</Parameter></SetProperty>`);
1131
+ }
1132
+ }
1133
+ if (typeof classification === 'string') {
1134
+ payload.push(`<SetProperty Id="${propertyId++}" ObjectPathId="5" Name="Classification"><Parameter Type="String">${formatting_1.formatting.escapeXml(classification)}</Parameter></SetProperty>`);
1135
+ }
1136
+ if (typeof disableFlows !== 'undefined') {
1137
+ payload.push(`<SetProperty Id="${propertyId++}" ObjectPathId="5" Name="DisableFlows"><Parameter Type="Boolean">${disableFlows}</Parameter></SetProperty>`);
1138
+ }
1139
+ if (typeof shareByEmailEnabled !== 'undefined') {
1140
+ payload.push(`<SetProperty Id="${propertyId++}" ObjectPathId="5" Name="ShareByEmailEnabled"><Parameter Type="Boolean">${shareByEmailEnabled}</Parameter></SetProperty>`);
1141
+ }
1142
+ if (sharingCapability) {
1143
+ const sharingCapabilityOption = SharingCapabilities_1.SharingCapabilities[sharingCapability];
1144
+ payload.push(`<SetProperty Id="${propertyId++}" ObjectPathId="5" Name="SharingCapability"><Parameter Type="Enum">${sharingCapabilityOption}</Parameter></SetProperty>`);
1145
+ }
1146
+ const pos = tenantId.indexOf('|') + 1;
1147
+ const requestOptionsUpdateProperties = {
1148
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
1149
+ headers: {
1150
+ 'X-RequestDigest': context.FormDigestValue
1151
+ },
1152
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions>${payload.join('')}<ObjectPath Id="14" ObjectPathId="13" /><ObjectIdentityQuery Id="15" ObjectPathId="5" /><Query Id="16" ObjectPathId="13"><Query SelectAllProperties="false"><Properties><Property Name="IsComplete" ScalarProperty="true" /><Property Name="PollingInterval" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Identity Id="5" Name="53d8499e-d0d2-5000-cb83-9ade5be42ca4|${tenantId.substr(pos, tenantId.indexOf('&') - pos)}&#xA;SiteProperties&#xA;${formatting_1.formatting.encodeQueryParameter(url)}" /><Method Id="13" ParentId="5" Name="Update" /></ObjectPaths></Request>`
1153
+ };
1154
+ const res = yield request_1.default.post(requestOptionsUpdateProperties);
1155
+ const json = JSON.parse(res);
1156
+ const response = json[0];
1157
+ if (response.ErrorInfo) {
1158
+ throw response.ErrorInfo.ErrorMessage;
1159
+ }
1160
+ else {
1161
+ const operation = json[json.length - 1];
1162
+ const isComplete = operation.IsComplete;
1163
+ if (!isComplete) {
1164
+ yield new Promise((resolve, reject) => {
1165
+ setTimeout(() => {
1166
+ exports.spo.waitUntilFinished({
1167
+ operationId: JSON.stringify(operation._ObjectIdentity_),
1168
+ siteUrl: spoAdminUrl,
1169
+ resolve,
1170
+ reject,
1171
+ logger,
1172
+ currentContext: context,
1173
+ verbose: verbose,
1174
+ debug: verbose
1175
+ });
1176
+ }, operation.PollingInterval);
1177
+ });
1178
+ }
1179
+ }
1180
+ }
1181
+ if (siteDesignId) {
1182
+ yield exports.spo.applySiteDesign(siteDesignId, url, logger, verbose);
1183
+ }
1184
+ });
1185
+ },
1186
+ /**
1187
+ * Updates the groupified site owners
1188
+ * @param spoAdminUrl The SharePoint admin url
1189
+ * @param groupId The ID of the group
1190
+ * @param owners The owners to be updated
1191
+ * @param logger The logger object
1192
+ * @param verbose Set for verbose logging
1193
+ */
1194
+ setGroupifiedSiteOwners(spoAdminUrl, groupId, owners, logger, verbose) {
1195
+ return __awaiter(this, void 0, void 0, function* () {
1196
+ const splittedOwners = owners.split(',').map(o => o.trim());
1197
+ if (verbose) {
1198
+ logger.logToStderr('Retrieving user information to set group owners...');
1199
+ }
1200
+ const requestOptions = {
1201
+ url: `https://graph.microsoft.com/v1.0/users?$filter=${splittedOwners.map(o => `userPrincipalName eq '${o}'`).join(' or ')}&$select=id`,
1202
+ headers: {
1203
+ 'content-type': 'application/json;odata.metadata=none'
1204
+ },
1205
+ responseType: 'json'
1206
+ };
1207
+ return request_1.default.get(requestOptions)
1208
+ .then((res) => {
1209
+ if (res.value.length === 0) {
1210
+ return Promise.resolve();
1211
+ }
1212
+ return Promise.all(res.value.map(user => {
1213
+ const requestOptions = {
1214
+ url: `${spoAdminUrl}/_api/SP.Directory.DirectorySession/Group('${groupId}')/Owners/Add(objectId='${user.id}', principalName='')`,
1215
+ headers: {
1216
+ 'content-type': 'application/json;odata=verbose'
1217
+ }
1218
+ };
1219
+ return request_1.default.post(requestOptions);
1220
+ }));
1221
+ });
1222
+ });
1223
+ },
1224
+ /**
1225
+ * Updates the site admin
1226
+ * @param spoAdminUrl The SharePoint admin url
1227
+ * @param context The FormDigestInfo
1228
+ * @param siteUrl The url of the site where the owners has to be updated
1229
+ * @param principal The principal of the admin
1230
+ * @param logger The logger object
1231
+ * @param verbose Set for verbose logging
1232
+ */
1233
+ setSiteAdmin(spoAdminUrl, context, siteUrl, principal, logger, verbose) {
1234
+ return __awaiter(this, void 0, void 0, function* () {
1235
+ if (verbose && logger) {
1236
+ logger.logToStderr(`Updating site admin ${principal} on ${siteUrl}...`);
1237
+ }
1238
+ const requestOptions = {
1239
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
1240
+ headers: {
1241
+ 'X-RequestDigest': context.FormDigestValue
1242
+ },
1243
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="48" ObjectPathId="47" /></Actions><ObjectPaths><Method Id="47" ParentId="34" Name="SetSiteAdmin"><Parameters><Parameter Type="String">${formatting_1.formatting.escapeXml(siteUrl)}</Parameter><Parameter Type="String">${formatting_1.formatting.escapeXml(principal)}</Parameter><Parameter Type="Boolean">true</Parameter></Parameters></Method><Constructor Id="34" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
1244
+ };
1245
+ const res = yield request_1.default.post(requestOptions);
1246
+ const json = JSON.parse(res);
1247
+ const response = json[0];
1248
+ if (response.ErrorInfo) {
1249
+ throw response.ErrorInfo.ErrorMessage;
1250
+ }
1251
+ else {
1252
+ return;
1253
+ }
1254
+ });
1255
+ },
1256
+ /**
1257
+ * Applies a site design
1258
+ * @param id The ID of the site design (GUID)
1259
+ * @param webUrl The url of the site where the design should be applied
1260
+ * @param logger The logger object
1261
+ * @param verbose Set for verbose logging
1262
+ */
1263
+ applySiteDesign(id, webUrl, logger, verbose) {
1264
+ return __awaiter(this, void 0, void 0, function* () {
1265
+ if (verbose) {
1266
+ logger.logToStderr(`Applying site design ${id}...`);
1267
+ }
1268
+ const spoUrl = yield exports.spo.getSpoUrl(logger, verbose);
1269
+ const requestOptions = {
1270
+ url: `${spoUrl}/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.ApplySiteDesign`,
1271
+ headers: {
1272
+ 'content-type': 'application/json;charset=utf-8',
1273
+ accept: 'application/json;odata=nometadata'
1274
+ },
1275
+ data: {
1276
+ siteDesignId: id,
1277
+ webUrl: webUrl
1278
+ },
1279
+ responseType: 'json'
1280
+ };
1281
+ yield request_1.default.post(requestOptions);
1282
+ });
1283
+ },
1284
+ /**
1285
+ * Retrieves the site ID for a given web URL.
1286
+ * @param webUrl The web URL for which to retrieve the site ID.
1287
+ * @param logger The logger object.
1288
+ * @param verbose Set for verbose logging
1289
+ * @returns A promise that resolves to the site ID.
1290
+ */
1291
+ getSiteId(webUrl, logger, verbose) {
1292
+ return __awaiter(this, void 0, void 0, function* () {
1293
+ if (verbose && logger) {
1294
+ yield logger.logToStderr(`Getting site id for URL: ${webUrl}...`);
1295
+ }
1296
+ const url = new URL(webUrl);
1297
+ const requestOptions = {
1298
+ url: `https://graph.microsoft.com/v1.0/sites/${formatting_1.formatting.encodeQueryParameter(url.host)}:${url.pathname}?$select=id`,
1299
+ headers: {
1300
+ accept: 'application/json;odata.metadata=none'
1301
+ },
1302
+ responseType: 'json'
1303
+ };
1304
+ const site = yield request_1.default.get(requestOptions);
1305
+ return site.id;
1306
+ });
1307
+ },
1308
+ /**
1309
+ * Gets the web properties for a given url
1310
+ * @param url The url of the web
1311
+ * @param logger The logger object
1312
+ * @param verbose Set for verbose logging
1313
+ */
1314
+ getWeb(url, logger, verbose) {
1315
+ return __awaiter(this, void 0, void 0, function* () {
1316
+ if (verbose && logger) {
1317
+ logger.logToStderr(`Getting the web properties for ${url}`);
1318
+ }
1319
+ const requestOptions = {
1320
+ url: `${url}/_api/web`,
1321
+ headers: {
1322
+ 'accept': 'application/json;odata=nometadata'
1323
+ },
1324
+ responseType: 'json'
1325
+ };
1326
+ const webProperties = yield request_1.default.get(requestOptions);
1327
+ return webProperties;
1328
+ });
1329
+ }
1330
+ };
1331
+ //# sourceMappingURL=spo.js.map