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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/dist/Auth.js +1 -2
  2. package/dist/m365/aad/commands/app/app-remove.js +0 -4
  3. package/dist/m365/aad/commands/app/app-role-remove.js +0 -4
  4. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -11
  5. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +10 -10
  6. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +10 -10
  7. package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
  8. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
  9. package/dist/m365/aad/commands/o365group/o365group-teamify.js +9 -9
  10. package/dist/m365/aad/commands/policy/policy-list.js +6 -6
  11. package/dist/m365/aad/commands/sp/sp-get.js +12 -12
  12. package/dist/m365/aad/commands.js +0 -2
  13. package/dist/m365/cli/commands/config/config-set.js +0 -1
  14. package/dist/m365/flow/commands/flow-disable.js +2 -2
  15. package/dist/m365/flow/commands/flow-enable.js +2 -2
  16. package/dist/m365/flow/commands/flow-export.js +5 -5
  17. package/dist/m365/flow/commands/flow-get.js +2 -2
  18. package/dist/m365/flow/commands/flow-list.js +2 -2
  19. package/dist/m365/flow/commands/flow-remove.js +3 -3
  20. package/dist/m365/flow/commands/run/run-cancel.js +6 -6
  21. package/dist/m365/flow/commands/run/run-get.js +4 -4
  22. package/dist/m365/flow/commands/run/run-list.js +4 -4
  23. package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
  24. package/dist/m365/outlook/commands/message/message-move.js +2 -2
  25. package/dist/m365/pa/commands/connector/connector-export.js +3 -3
  26. package/dist/m365/pa/commands/connector/connector-list.js +2 -2
  27. package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
  28. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -9
  29. package/dist/m365/planner/commands/bucket/bucket-get.js +4 -11
  30. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -9
  31. package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -11
  32. package/dist/m365/planner/commands/bucket/bucket-set.js +4 -11
  33. package/dist/m365/planner/commands/plan/plan-get.js +0 -4
  34. package/dist/m365/planner/commands/task/task-add.js +3 -8
  35. package/dist/m365/planner/commands/task/task-get.js +5 -19
  36. package/dist/m365/planner/commands/task/task-list.js +4 -11
  37. package/dist/m365/planner/commands/task/task-set.js +5 -10
  38. package/dist/m365/planner/commands.js +0 -2
  39. package/dist/m365/spfx/commands/package/package-generate.js +2 -2
  40. package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
  41. package/dist/m365/spo/commands/app/app-add.js +7 -7
  42. package/dist/m365/spo/commands/app/app-deploy.js +7 -7
  43. package/dist/m365/spo/commands/app/app-get.js +7 -7
  44. package/dist/m365/spo/commands/app/app-install.js +6 -6
  45. package/dist/m365/spo/commands/app/app-list.js +7 -7
  46. package/dist/m365/spo/commands/app/app-remove.js +7 -7
  47. package/dist/m365/spo/commands/app/app-retract.js +7 -7
  48. package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
  49. package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
  50. package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
  51. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
  52. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
  53. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
  54. package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
  55. package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
  56. package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
  57. package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
  58. package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
  59. package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
  60. package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
  61. package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
  62. package/dist/m365/spo/commands/feature/feature-list.js +3 -3
  63. package/dist/m365/spo/commands/field/field-get.js +1 -7
  64. package/dist/m365/spo/commands/field/field-remove.js +1 -7
  65. package/dist/m365/spo/commands/file/file-checkin.js +5 -5
  66. package/dist/m365/spo/commands/file/file-checkout.js +5 -5
  67. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +13 -13
  68. package/dist/m365/spo/commands/folder/folder-get.js +2 -2
  69. package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
  70. package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
  71. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -7
  72. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -6
  73. package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
  74. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
  75. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
  76. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
  77. package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -4
  78. package/dist/m365/spo/commands/list/list-contenttype-remove.js +6 -6
  79. package/dist/m365/spo/commands/list/list-list.js +3 -13
  80. package/dist/m365/spo/commands/list/list-view-field-add.js +20 -20
  81. package/dist/m365/spo/commands/list/list-view-field-remove.js +11 -11
  82. package/dist/m365/spo/commands/list/list-view-field-set.js +15 -15
  83. package/dist/m365/spo/commands/list/list-view-get.js +9 -9
  84. package/dist/m365/spo/commands/list/list-view-remove.js +11 -11
  85. package/dist/m365/spo/commands/list/list-view-set.js +11 -11
  86. package/dist/m365/spo/commands/listitem/listitem-list.js +6 -25
  87. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -4
  88. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -4
  89. package/dist/m365/spo/commands/page/page-column-get.js +2 -2
  90. package/dist/m365/spo/commands/page/page-column-list.js +2 -2
  91. package/dist/m365/spo/commands/page/page-control-get.js +4 -4
  92. package/dist/m365/spo/commands/page/page-control-list.js +3 -3
  93. package/dist/m365/spo/commands/page/page-control-set.js +3 -3
  94. package/dist/m365/spo/commands/page/page-section-add.js +2 -2
  95. package/dist/m365/spo/commands/page/page-section-get.js +2 -2
  96. package/dist/m365/spo/commands/page/page-section-list.js +2 -2
  97. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
  98. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
  99. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
  100. package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
  101. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
  102. package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
  103. package/dist/m365/spo/commands/site/site-apppermission-remove.js +5 -5
  104. package/dist/m365/spo/commands/site/site-apppermission-set.js +5 -5
  105. package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
  106. package/dist/m365/spo/commands/site/site-ensure.js +1 -1
  107. package/dist/m365/spo/commands/site/site-groupify.js +3 -3
  108. package/dist/m365/spo/commands/site/site-list.js +6 -17
  109. package/dist/m365/spo/commands/site/site-rename.js +9 -9
  110. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
  111. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
  112. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
  113. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
  114. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
  115. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
  116. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
  117. package/dist/m365/spo/commands/web/web-add.js +5 -5
  118. package/dist/m365/spo/commands/web/web-get.js +3 -3
  119. package/dist/m365/spo/commands/web/web-list.js +4 -4
  120. package/dist/m365/spo/commands/web/web-reindex.js +8 -8
  121. package/dist/m365/spo/commands/web/web-remove.js +5 -5
  122. package/dist/m365/spo/commands/web/web-set.js +4 -4
  123. package/dist/m365/spo/commands.js +0 -3
  124. package/dist/m365/teams/commands/app/app-install.js +4 -4
  125. package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
  126. package/dist/m365/teams/commands/channel/channel-get.js +10 -10
  127. package/dist/m365/teams/commands/channel/channel-remove.js +12 -12
  128. package/dist/m365/teams/commands/channel/channel-set.js +7 -7
  129. package/dist/m365/teams/commands/message/message-get.js +3 -3
  130. package/dist/m365/teams/commands/tab/tab-get.js +10 -10
  131. package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
  132. package/dist/m365/teams/commands/team/team-archive.js +3 -13
  133. package/dist/m365/teams/commands/team/team-clone.js +3 -20
  134. package/dist/m365/teams/commands/team/team-remove.js +5 -17
  135. package/dist/m365/teams/commands/team/team-set.js +1 -13
  136. package/dist/m365/teams/commands/team/team-unarchive.js +4 -16
  137. package/dist/m365/teams/commands/user/user-app-add.js +4 -4
  138. package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
  139. package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
  140. package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
  141. package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
  142. package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
  143. package/dist/m365/yammer/commands/user/user-get.js +5 -5
  144. package/dist/settingsNames.js +0 -1
  145. package/docs/docs/cmd/aad/app/app-remove.md +0 -6
  146. package/docs/docs/cmd/aad/app/app-role-remove.md +0 -6
  147. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
  148. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
  149. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
  150. package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
  151. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
  152. package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
  153. package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
  154. package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
  155. package/docs/docs/cmd/flow/flow-disable.md +3 -3
  156. package/docs/docs/cmd/flow/flow-enable.md +1 -1
  157. package/docs/docs/cmd/flow/flow-export.md +5 -5
  158. package/docs/docs/cmd/flow/flow-get.md +3 -3
  159. package/docs/docs/cmd/flow/flow-list.md +3 -3
  160. package/docs/docs/cmd/flow/flow-remove.md +5 -5
  161. package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
  162. package/docs/docs/cmd/flow/run/run-get.md +3 -3
  163. package/docs/docs/cmd/flow/run/run-list.md +3 -3
  164. package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
  165. package/docs/docs/cmd/outlook/message/message-move.md +4 -4
  166. package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
  167. package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
  168. package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
  169. package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
  170. package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
  171. package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
  172. package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
  173. package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
  174. package/docs/docs/cmd/planner/plan/plan-get.md +0 -6
  175. package/docs/docs/cmd/planner/task/task-add.md +0 -3
  176. package/docs/docs/cmd/planner/task/task-get.md +0 -3
  177. package/docs/docs/cmd/planner/task/task-list.md +0 -3
  178. package/docs/docs/cmd/planner/task/task-set.md +0 -3
  179. package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
  180. package/docs/docs/cmd/spo/app/app-add.md +2 -2
  181. package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
  182. package/docs/docs/cmd/spo/app/app-get.md +2 -2
  183. package/docs/docs/cmd/spo/app/app-install.md +2 -2
  184. package/docs/docs/cmd/spo/app/app-list.md +2 -2
  185. package/docs/docs/cmd/spo/app/app-remove.md +2 -2
  186. package/docs/docs/cmd/spo/app/app-retract.md +2 -2
  187. package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
  188. package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
  189. package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
  190. package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
  191. package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
  192. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
  193. package/docs/docs/cmd/spo/customaction/customaction-add.md +10 -10
  194. package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
  195. package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
  196. package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
  197. package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
  198. package/docs/docs/cmd/spo/customaction/customaction-set.md +7 -7
  199. package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
  200. package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
  201. package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
  202. package/docs/docs/cmd/spo/field/field-get.md +0 -3
  203. package/docs/docs/cmd/spo/field/field-remove.md +0 -3
  204. package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
  205. package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
  206. package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
  207. package/docs/docs/cmd/spo/folder/folder-get.md +2 -2
  208. package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
  209. package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
  210. package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +4 -4
  211. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +4 -4
  212. package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
  213. package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
  214. package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
  215. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
  216. package/docs/docs/cmd/spo/list/list-contenttype-add.md +3 -3
  217. package/docs/docs/cmd/spo/list/list-contenttype-remove.md +3 -3
  218. package/docs/docs/cmd/spo/list/list-list.md +0 -3
  219. package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
  220. package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
  221. package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
  222. package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
  223. package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
  224. package/docs/docs/cmd/spo/list/list-view-set.md +7 -7
  225. package/docs/docs/cmd/spo/listitem/listitem-list.md +0 -6
  226. package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +5 -5
  227. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +3 -3
  228. package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
  229. package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
  230. package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
  231. package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
  232. package/docs/docs/cmd/spo/page/page-control-set.md +4 -4
  233. package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
  234. package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
  235. package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
  236. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
  237. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
  238. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
  239. package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
  240. package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
  241. package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
  242. package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
  243. package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
  244. package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
  245. package/docs/docs/cmd/spo/site/site-groupify.md +5 -5
  246. package/docs/docs/cmd/spo/site/site-list.md +6 -6
  247. package/docs/docs/cmd/spo/site/site-rename.md +6 -6
  248. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
  249. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
  250. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
  251. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
  252. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
  253. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
  254. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
  255. package/docs/docs/cmd/spo/web/web-add.md +4 -4
  256. package/docs/docs/cmd/spo/web/web-get.md +3 -3
  257. package/docs/docs/cmd/spo/web/web-list.md +2 -2
  258. package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
  259. package/docs/docs/cmd/spo/web/web-remove.md +2 -2
  260. package/docs/docs/cmd/spo/web/web-set.md +9 -9
  261. package/docs/docs/cmd/teams/app/app-install.md +5 -5
  262. package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
  263. package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
  264. package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
  265. package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
  266. package/docs/docs/cmd/teams/message/message-get.md +3 -3
  267. package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
  268. package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
  269. package/docs/docs/cmd/teams/team/team-archive.md +0 -3
  270. package/docs/docs/cmd/teams/team/team-clone.md +0 -3
  271. package/docs/docs/cmd/teams/team/team-remove.md +0 -3
  272. package/docs/docs/cmd/teams/team/team-set.md +0 -3
  273. package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
  274. package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
  275. package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
  276. package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
  277. package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
  278. package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
  279. package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
  280. package/docs/docs/cmd/yammer/user/user-get.md +2 -2
  281. package/npm-shrinkwrap.json +2 -2
  282. package/package.json +1 -1
  283. package/dist/m365/spo/commands/site/site-classic-add.js +0 -342
  284. package/dist/m365/spo/commands/site/site-classic-list.js +0 -106
  285. package/dist/m365/spo/commands/site/site-classic-set.js +0 -367
  286. package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
  287. package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
  288. package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
@@ -1,106 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
- };
7
- var _SpoSiteClassicListCommand_instances, _SpoSiteClassicListCommand_initTelemetry, _SpoSiteClassicListCommand_initOptions;
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const config_1 = require("../../../../config");
10
- const request_1 = require("../../../../request");
11
- const utils_1 = require("../../../../utils");
12
- const SpoCommand_1 = require("../../../base/SpoCommand");
13
- const commands_1 = require("../../commands");
14
- class SpoSiteClassicListCommand extends SpoCommand_1.default {
15
- constructor() {
16
- super();
17
- _SpoSiteClassicListCommand_instances.add(this);
18
- __classPrivateFieldGet(this, _SpoSiteClassicListCommand_instances, "m", _SpoSiteClassicListCommand_initTelemetry).call(this);
19
- __classPrivateFieldGet(this, _SpoSiteClassicListCommand_instances, "m", _SpoSiteClassicListCommand_initOptions).call(this);
20
- }
21
- get name() {
22
- return commands_1.default.SITE_CLASSIC_LIST;
23
- }
24
- get description() {
25
- return 'Lists sites of the given type';
26
- }
27
- defaultProperties() {
28
- return ['Title', 'Url'];
29
- }
30
- commandAction(logger, args, cb) {
31
- this.showDeprecationWarning(logger, commands_1.default.SITE_CLASSIC_LIST, commands_1.default.SITE_LIST);
32
- const webTemplate = args.options.webTemplate || '';
33
- const includeOneDriveSites = args.options.includeOneDriveSites || false;
34
- const personalSite = includeOneDriveSites === false ? '0' : '1';
35
- let spoAdminUrl = '';
36
- utils_1.spo
37
- .getSpoAdminUrl(logger, this.debug)
38
- .then((_spoAdminUrl) => {
39
- spoAdminUrl = _spoAdminUrl;
40
- if (this.verbose) {
41
- logger.logToStderr(`Retrieving list of site collections...`);
42
- }
43
- this.allSites = [];
44
- return this.getAllSites(spoAdminUrl, utils_1.formatting.escapeXml(args.options.filter || ''), '0', personalSite, webTemplate, undefined, logger);
45
- })
46
- .then(_ => {
47
- logger.log(this.allSites);
48
- cb();
49
- }, (err) => this.handleRejectedPromise(err, logger, cb));
50
- }
51
- getAllSites(spoAdminUrl, filter, startIndex, personalSite, webTemplate, formDigest, logger) {
52
- return new Promise((resolve, reject) => {
53
- utils_1.spo
54
- .ensureFormDigest(spoAdminUrl, logger, formDigest, this.debug)
55
- .then((res) => {
56
- const requestOptions = {
57
- url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
58
- headers: {
59
- 'X-RequestDigest': res.FormDigestValue
60
- },
61
- 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="2" ObjectPathId="1" /><ObjectPath Id="4" ObjectPathId="3" /><Query Id="5" ObjectPathId="3"><Query SelectAllProperties="true"><Properties /></Query><ChildItemQuery SelectAllProperties="true"><Properties /></ChildItemQuery></Query></Actions><ObjectPaths><Constructor Id="1" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /><Method Id="3" ParentId="1" Name="GetSitePropertiesFromSharePointByFilters"><Parameters><Parameter TypeId="{b92aeee2-c92c-4b67-abcc-024e471bc140}"><Property Name="Filter" Type="String">${filter}</Property><Property Name="IncludeDetail" Type="Boolean">false</Property><Property Name="IncludePersonalSite" Type="Enum">${personalSite}</Property><Property Name="StartIndex" Type="String">${startIndex}</Property><Property Name="Template" Type="String">${webTemplate}</Property></Parameter></Parameters></Method></ObjectPaths></Request>`
62
- };
63
- return request_1.default.post(requestOptions);
64
- })
65
- .then((res) => {
66
- const json = JSON.parse(res);
67
- const response = json[0];
68
- if (response.ErrorInfo) {
69
- reject(response.ErrorInfo.ErrorMessage);
70
- return;
71
- }
72
- else {
73
- const sites = json[json.length - 1];
74
- this.allSites.push(...sites._Child_Items_);
75
- if (sites.NextStartIndexFromSharePoint) {
76
- this
77
- .getAllSites(spoAdminUrl, filter, sites.NextStartIndexFromSharePoint, personalSite, webTemplate, formDigest, logger)
78
- .then(_ => resolve(), err => reject(err));
79
- }
80
- else {
81
- resolve();
82
- }
83
- }
84
- }, err => reject(err));
85
- });
86
- }
87
- }
88
- _SpoSiteClassicListCommand_instances = new WeakSet(), _SpoSiteClassicListCommand_initTelemetry = function _SpoSiteClassicListCommand_initTelemetry() {
89
- this.telemetry.push((args) => {
90
- Object.assign(this.telemetryProperties, {
91
- webTemplate: args.options.webTemplate,
92
- filter: (!(!args.options.filter)).toString(),
93
- includeOneDriveSites: args.options.includeOneDriveSites
94
- });
95
- });
96
- }, _SpoSiteClassicListCommand_initOptions = function _SpoSiteClassicListCommand_initOptions() {
97
- this.options.unshift({
98
- option: '-t, --webTemplate [webTemplate]'
99
- }, {
100
- option: '-f, --filter [filter]'
101
- }, {
102
- option: '--includeOneDriveSites'
103
- });
104
- };
105
- module.exports = new SpoSiteClassicListCommand();
106
- //# sourceMappingURL=site-classic-list.js.map
@@ -1,367 +0,0 @@
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
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
- };
16
- var _SpoSiteClassicSetCommand_instances, _SpoSiteClassicSetCommand_initTelemetry, _SpoSiteClassicSetCommand_initOptions, _SpoSiteClassicSetCommand_initValidators;
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const config_1 = require("../../../../config");
19
- const request_1 = require("../../../../request");
20
- const utils_1 = require("../../../../utils");
21
- const SpoCommand_1 = require("../../../base/SpoCommand");
22
- const commands_1 = require("../../commands");
23
- class SpoSiteClassicSetCommand extends SpoCommand_1.default {
24
- constructor() {
25
- super();
26
- _SpoSiteClassicSetCommand_instances.add(this);
27
- __classPrivateFieldGet(this, _SpoSiteClassicSetCommand_instances, "m", _SpoSiteClassicSetCommand_initTelemetry).call(this);
28
- __classPrivateFieldGet(this, _SpoSiteClassicSetCommand_instances, "m", _SpoSiteClassicSetCommand_initOptions).call(this);
29
- __classPrivateFieldGet(this, _SpoSiteClassicSetCommand_instances, "m", _SpoSiteClassicSetCommand_initValidators).call(this);
30
- }
31
- get name() {
32
- return commands_1.default.SITE_CLASSIC_SET;
33
- }
34
- get description() {
35
- return 'Change classic site settings';
36
- }
37
- commandAction(logger, args, cb) {
38
- this.showDeprecationWarning(logger, commands_1.default.SITE_CLASSIC_SET, commands_1.default.SITE_SET);
39
- this.dots = '';
40
- utils_1.spo
41
- .getTenantId(logger, this.debug)
42
- .then((_tenantId) => {
43
- this.tenantId = _tenantId;
44
- return utils_1.spo.getSpoAdminUrl(logger, this.debug);
45
- })
46
- .then((_spoAdminUrl) => {
47
- this.spoAdminUrl = _spoAdminUrl;
48
- return utils_1.spo.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug);
49
- })
50
- .then((res) => {
51
- this.context = res;
52
- if (this.verbose) {
53
- logger.logToStderr(`Setting basic properties ${args.options.url}...`);
54
- }
55
- const basicProperties = [
56
- 'title',
57
- 'sharing',
58
- 'resourceQuota',
59
- 'resourceQuotaWarningLevel',
60
- 'storageQuota',
61
- 'storageQuotaWarningLevel',
62
- 'allowSelfServiceUpgrade',
63
- 'noScriptSite'
64
- ];
65
- let updateBasicProperties = false;
66
- for (let i = 0; i < basicProperties.length; i++) {
67
- if (typeof args.options[basicProperties[i]] !== 'undefined') {
68
- updateBasicProperties = true;
69
- break;
70
- }
71
- }
72
- if (!updateBasicProperties) {
73
- return Promise.resolve(undefined);
74
- }
75
- let i = 0;
76
- const updates = [];
77
- if (args.options.title) {
78
- updates.push(`<SetProperty Id="${++i}" ObjectPathId="5" Name="Title"><Parameter Type="String">${utils_1.formatting.escapeXml(args.options.title)}</Parameter></SetProperty>`);
79
- }
80
- if (args.options.sharing) {
81
- const sharing = ['Disabled', 'ExternalUserSharingOnly', 'ExternalUserAndGuestSharing', 'ExistingExternalUserSharingOnly'].indexOf(args.options.sharing);
82
- updates.push(`<SetProperty Id="${++i}" ObjectPathId="5" Name="SharingCapability"><Parameter Type="Enum">${sharing}</Parameter></SetProperty>`);
83
- }
84
- if (args.options.resourceQuota) {
85
- updates.push(`<SetProperty Id="${++i}" ObjectPathId="5" Name="UserCodeMaximumLevel"><Parameter Type="Double">${args.options.resourceQuota}</Parameter></SetProperty>`);
86
- }
87
- if (args.options.resourceQuotaWarningLevel) {
88
- updates.push(`<SetProperty Id="${++i}" ObjectPathId="5" Name="UserCodeWarningLevel"><Parameter Type="Double">${args.options.resourceQuotaWarningLevel}</Parameter></SetProperty>`);
89
- }
90
- if (args.options.storageQuota) {
91
- updates.push(`<SetProperty Id="${++i}" ObjectPathId="5" Name="StorageMaximumLevel"><Parameter Type="Int64">${args.options.storageQuota}</Parameter></SetProperty>`);
92
- }
93
- if (args.options.storageQuotaWarningLevel) {
94
- updates.push(`<SetProperty Id="${++i}" ObjectPathId="5" Name="StorageWarningLevel"><Parameter Type="Int64">${args.options.storageQuotaWarningLevel}</Parameter></SetProperty>`);
95
- }
96
- if (typeof args.options.allowSelfServiceUpgrade !== 'undefined') {
97
- updates.push(`<SetProperty Id="${++i}" ObjectPathId="5" Name="AllowSelfServiceUpgrade"><Parameter Type="Boolean">${args.options.allowSelfServiceUpgrade}</Parameter></SetProperty>`);
98
- }
99
- if (typeof args.options.noScriptSite !== 'undefined') {
100
- const noScriptSite = args.options.noScriptSite === 'true' ? 2 : 1;
101
- updates.push(`<SetProperty Id="${++i}" ObjectPathId="5" Name="DenyAddAndCustomizePages"><Parameter Type="Enum">${noScriptSite}</Parameter></SetProperty>`);
102
- }
103
- const pos = this.tenantId.indexOf('|') + 1;
104
- const requestOptions = {
105
- url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
106
- headers: {
107
- 'X-RequestDigest': this.context.FormDigestValue
108
- },
109
- 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>${updates.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|${this.tenantId.substr(pos, this.tenantId.indexOf('&') - pos)}&#xA;SiteProperties&#xA;${encodeURIComponent(args.options.url)}" /><Method Id="13" ParentId="5" Name="Update" /></ObjectPaths></Request>`
110
- };
111
- return request_1.default.post(requestOptions);
112
- })
113
- .then((res) => {
114
- return new Promise((resolve, reject) => {
115
- if (!res) {
116
- resolve();
117
- return;
118
- }
119
- const json = JSON.parse(res);
120
- const response = json[0];
121
- if (response.ErrorInfo) {
122
- reject(response.ErrorInfo.ErrorMessage);
123
- }
124
- else {
125
- const operation = json[json.length - 1];
126
- const isComplete = operation.IsComplete;
127
- if (!args.options.wait || isComplete) {
128
- resolve();
129
- return;
130
- }
131
- setTimeout(() => {
132
- utils_1.spo.waitUntilFinished({
133
- operationId: JSON.stringify(operation._ObjectIdentity_),
134
- siteUrl: this.spoAdminUrl,
135
- resolve,
136
- reject,
137
- logger,
138
- currentContext: this.context,
139
- dots: this.dots,
140
- debug: this.debug,
141
- verbose: this.verbose
142
- });
143
- }, operation.PollingInterval);
144
- }
145
- });
146
- })
147
- .then(_ => utils_1.spo.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug))
148
- .then((res) => {
149
- this.context = res;
150
- return new Promise((resolve, reject) => {
151
- if (!args.options.owners) {
152
- resolve();
153
- return;
154
- }
155
- Promise.all(args.options.owners.split(',').map(o => {
156
- return this.setAdmin(logger, args.options.url, o.trim());
157
- }))
158
- .then(() => {
159
- resolve();
160
- }, (err) => {
161
- reject(err);
162
- });
163
- });
164
- })
165
- .then(_ => utils_1.spo.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug))
166
- .then((res) => {
167
- this.context = res;
168
- if (!args.options.description) {
169
- return Promise.resolve(undefined);
170
- }
171
- const requestOptions = {
172
- url: `${args.options.url}/_api/web`,
173
- headers: {
174
- 'IF-MATCH': '*',
175
- 'Accept': 'application/json;odata=nometadata',
176
- 'content-type': 'application/json;odata=nometadata',
177
- 'X-RequestDigest': this.context.FormDigestValue,
178
- 'X-HTTP-Method': 'MERGE'
179
- },
180
- data: {
181
- Description: args.options.description
182
- },
183
- json: true
184
- };
185
- return request_1.default.post(requestOptions);
186
- })
187
- .then(() => {
188
- if (!args.options.lockState) {
189
- return Promise.resolve(undefined);
190
- }
191
- const requestOptions = {
192
- url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
193
- headers: {
194
- 'X-RequestDigest': this.context.FormDigestValue
195
- },
196
- 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><SetProperty Id="7" ObjectPathId="5" Name="LockState"><Parameter Type="String">${utils_1.formatting.escapeXml(args.options.lockState)}</Parameter></SetProperty><ObjectPath Id="9" ObjectPathId="8" /><ObjectIdentityQuery Id="10" ObjectPathId="5" /><Query Id="11" ObjectPathId="8"><Query SelectAllProperties="true"><Properties /></Query></Query></Actions><ObjectPaths><Method Id="5" ParentId="3" Name="GetSitePropertiesByUrl"><Parameters><Parameter Type="String">${utils_1.formatting.escapeXml(args.options.url)}</Parameter><Parameter Type="Boolean">false</Parameter></Parameters></Method><Method Id="8" ParentId="5" Name="Update" /><Constructor Id="3" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
197
- };
198
- return request_1.default.post(requestOptions);
199
- })
200
- .then((res) => {
201
- return new Promise((resolve, reject) => {
202
- if (!res) {
203
- resolve();
204
- return;
205
- }
206
- const json = JSON.parse(res);
207
- const response = json[0];
208
- if (response.ErrorInfo) {
209
- reject(response.ErrorInfo.ErrorMessage);
210
- }
211
- else {
212
- const operation = json[json.length - 1];
213
- const isComplete = operation.IsComplete;
214
- if (!args.options.wait || isComplete) {
215
- resolve();
216
- return;
217
- }
218
- setTimeout(() => {
219
- utils_1.spo.waitUntilFinished({
220
- operationId: JSON.stringify(operation._ObjectIdentity_),
221
- siteUrl: this.spoAdminUrl,
222
- resolve,
223
- reject,
224
- logger,
225
- currentContext: this.context,
226
- dots: this.dots,
227
- debug: this.debug,
228
- verbose: this.verbose
229
- });
230
- }, operation.PollingInterval);
231
- }
232
- });
233
- })
234
- .then(_ => cb(), (err) => this.handleRejectedPromise(err, logger, cb));
235
- }
236
- setAdmin(logger, siteUrl, principal) {
237
- return new Promise((resolve, reject) => {
238
- utils_1.spo
239
- .ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug)
240
- .then((res) => {
241
- this.context = res;
242
- const requestOptions = {
243
- url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
244
- headers: {
245
- 'X-RequestDigest': this.context.FormDigestValue
246
- },
247
- 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">${utils_1.formatting.escapeXml(siteUrl)}</Parameter><Parameter Type="String">${utils_1.formatting.escapeXml(principal)}</Parameter><Parameter Type="Boolean">true</Parameter></Parameters></Method><Constructor Id="34" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
248
- };
249
- return request_1.default.post(requestOptions);
250
- })
251
- .then((res) => {
252
- const json = JSON.parse(res);
253
- const response = json[0];
254
- if (response.ErrorInfo) {
255
- reject(response.ErrorInfo.ErrorMessage);
256
- }
257
- else {
258
- resolve();
259
- }
260
- }, (err) => {
261
- reject(err);
262
- });
263
- });
264
- }
265
- }
266
- _SpoSiteClassicSetCommand_instances = new WeakSet(), _SpoSiteClassicSetCommand_initTelemetry = function _SpoSiteClassicSetCommand_initTelemetry() {
267
- this.telemetry.push((args) => {
268
- Object.assign(this.telemetryProperties, {
269
- title: typeof args.options.title !== 'undefined',
270
- description: typeof args.options.description !== 'undefined',
271
- sharing: args.options.sharing,
272
- resourceQuota: typeof args.options.resourceQuota !== 'undefined',
273
- resourceQuotaWarningLevel: typeof args.options.resourceQuotaWarningLevel !== 'undefined',
274
- storageQuota: typeof args.options.storageQuota !== 'undefined',
275
- storageQuotaWarningLevel: typeof args.options.storageQuotaWarningLevel !== 'undefined',
276
- allowSelfServiceUpgrade: args.options.allowSelfServiceUpgrade,
277
- owners: typeof args.options.owners !== 'undefined',
278
- lockState: args.options.lockState,
279
- noScriptSite: args.options.noScriptSite,
280
- wait: args.options.wait
281
- });
282
- });
283
- }, _SpoSiteClassicSetCommand_initOptions = function _SpoSiteClassicSetCommand_initOptions() {
284
- this.options.unshift({
285
- option: '-u, --url <url>'
286
- }, {
287
- option: '-t, --title [title]'
288
- }, {
289
- option: '-d, --description [description]'
290
- }, {
291
- option: '--sharing [sharing]',
292
- autocomplete: ['Disabled', 'ExternalUserSharingOnly', 'ExternalUserAndGuestSharing', 'ExistingExternalUserSharingOnly']
293
- }, {
294
- option: '--resourceQuota [resourceQuota]'
295
- }, {
296
- option: '--resourceQuotaWarningLevel [resourceQuotaWarningLevel]'
297
- }, {
298
- option: '--storageQuota [storageQuota]'
299
- }, {
300
- option: '--storageQuotaWarningLevel [storageQuotaWarningLevel]'
301
- }, {
302
- option: '--allowSelfServiceUpgrade [allowSelfServiceUpgrade]'
303
- }, {
304
- option: '--owners [owners]'
305
- }, {
306
- option: '--lockState [lockState]',
307
- autocomplete: ['Unlock', 'NoAdditions', 'ReadOnly', 'NoAccess']
308
- }, {
309
- option: '--noScriptSite [noScriptSite]'
310
- }, {
311
- option: '--wait'
312
- });
313
- }, _SpoSiteClassicSetCommand_initValidators = function _SpoSiteClassicSetCommand_initValidators() {
314
- this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
315
- const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.url);
316
- if (isValidSharePointUrl !== true) {
317
- return isValidSharePointUrl;
318
- }
319
- if (args.options.sharing &&
320
- ['Disabled', 'ExternalUserSharingOnly', 'ExternalUserAndGuestSharing', 'ExistingExternalUserSharingOnly'].indexOf(args.options.sharing) === -1) {
321
- return `${args.options.sharing} is not a valid value for the sharing option. Allowed values Disabled|ExternalUserSharingOnly|ExternalUserAndGuestSharing|ExistingExternalUserSharingOnly`;
322
- }
323
- if (args.options.resourceQuota &&
324
- typeof args.options.resourceQuota !== 'number') {
325
- return `${args.options.resourceQuota} is not a number`;
326
- }
327
- if (args.options.resourceQuotaWarningLevel &&
328
- typeof args.options.resourceQuotaWarningLevel !== 'number') {
329
- return `${args.options.resourceQuotaWarningLevel} is not a number`;
330
- }
331
- if (args.options.resourceQuota &&
332
- args.options.resourceQuotaWarningLevel &&
333
- args.options.resourceQuotaWarningLevel > args.options.resourceQuota) {
334
- return `resourceQuotaWarningLevel must not exceed the resourceQuota`;
335
- }
336
- if (args.options.storageQuota &&
337
- typeof args.options.storageQuota !== 'number') {
338
- return `${args.options.storageQuota} is not a number`;
339
- }
340
- if (args.options.storageQuotaWarningLevel &&
341
- typeof args.options.storageQuotaWarningLevel !== 'number') {
342
- return `${args.options.storageQuotaWarningLevel} is not a number`;
343
- }
344
- if (args.options.storageQuota &&
345
- args.options.storageQuotaWarningLevel &&
346
- args.options.storageQuotaWarningLevel > args.options.storageQuota) {
347
- return `storageQuotaWarningLevel must not exceed the storageQuota`;
348
- }
349
- if (args.options.allowSelfServiceUpgrade &&
350
- args.options.allowSelfServiceUpgrade !== 'true' &&
351
- args.options.allowSelfServiceUpgrade !== 'false') {
352
- return `${args.options.allowSelfServiceUpgrade} is not a valid boolean value`;
353
- }
354
- if (args.options.lockState &&
355
- ['Unlock', 'NoAdditions', 'ReadOnly', 'NoAccess'].indexOf(args.options.lockState) === -1) {
356
- return `${args.options.lockState} is not a valid value for the lockState option. Allowed values Unlock|NoAdditions|ReadOnly|NoAccess`;
357
- }
358
- if (args.options.noScriptSite &&
359
- args.options.noScriptSite !== 'true' &&
360
- args.options.noScriptSite !== 'false') {
361
- return `${args.options.noScriptSite} is not a valid boolean value`;
362
- }
363
- return true;
364
- }));
365
- };
366
- module.exports = new SpoSiteClassicSetCommand();
367
- //# sourceMappingURL=site-classic-set.js.map
@@ -1,93 +0,0 @@
1
- # spo site classic add
2
-
3
- Creates new classic site.
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 spo site classic add [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-u, --url <url>`
14
- : The absolute site url
15
-
16
- `-t, --title <title>`
17
- : The site title
18
-
19
- `--owner <owner>`
20
- : The account name of the site owner
21
-
22
- `-z, --timeZone <timeZone>`
23
- : Integer representing time zone to use for the site
24
-
25
- `-l, --lcid [lcid]`
26
- : Integer representing time zone to use for the site
27
-
28
- `-w, --webTemplate [webTemplate]`
29
- : Template to use for creating the site. Default `STS#0`
30
-
31
- `--resourceQuota [resourceQuota]`
32
- : The quota for this site collection in Sandboxed Solutions units. Default `0`
33
-
34
- `--resourceQuotaWarningLevel [resourceQuotaWarningLevel]`
35
- : The warning level for the resource quota. Default `0`
36
-
37
- `--storageQuota [storageQuota]`
38
- : The storage quota for this site collection in megabytes. Default `100`
39
-
40
- `--storageQuotaWarningLevel [storageQuotaWarningLevel]`
41
- : The warning level for the storage quota in megabytes. Default `100`
42
-
43
- `--removeDeletedSite`
44
- : Set, to remove existing deleted site with the same URL from the Recycle Bin
45
-
46
- `--wait`
47
- : Wait for the site to be provisioned before completing the command
48
-
49
- --8<-- "docs/cmd/_global.md"
50
-
51
- !!! important
52
- To use this command you have to have permissions to access the tenant admin site.
53
-
54
- !!! important
55
- This command is deprecated. Please use [spo site add](./site-add.md) instead.
56
-
57
- ## Remarks
58
-
59
- Using the `-z, --timeZone` option you have to specify the time zone of the site. For more information about the valid values see [https://msdn.microsoft.com/library/microsoft.sharepoint.spregionalsettings.timezones.aspx](https://msdn.microsoft.com/library/microsoft.sharepoint.spregionalsettings.timezones.aspx).
60
-
61
- The `-l, --lcid` option denotes the language of the site. For more information see Locale IDs Assigned by Microsoft: [https://msdn.microsoft.com/library/microsoft.sharepoint.spregionalsettings.timezones.aspx](https://msdn.microsoft.com/library/microsoft.sharepoint.spregionalsettings.timezones.aspx).
62
-
63
- The value of the `--resourceQuota` option must not exceed the company's aggregate available Sandboxed Solutions quota. For more information, see Resource Usage Limits on Sandboxed Solutions in SharePoint 2010: [http://msdn.microsoft.com/en-us/library/gg615462.aspx](http://msdn.microsoft.com/en-us/library/gg615462.aspx).
64
-
65
- The value of the `--resourceQuotaWarningLevel` option must not exceed the value of the `--resourceQuota` option.
66
-
67
- The value of the `--storageQuota` option must not exceed the company's available quota.
68
-
69
- The value of the `--storageQuotaWarningLevel` option must not exceed the the value of the `--storageQuota` option.
70
-
71
- If you try to create a site with the same URL as a site that has been previously moved to the recycle bin, you will get an error. To avoid this error, you can use the `--removeDeletedSite` option. Prior to creating the site, the spo site classic add command will check if the site with the specified URL has been previously moved to the recycle bin and if so, will remove it. Because removing sites from the recycle bin might take a moment, it should be used in conjunction with the `--wait` option so that the new site is not created before the old site is fully removed.
72
-
73
- Deleting and creating classic site collections is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the site to be fully provisioned, you should use the `--wait` flag. When using this flag, the spo site classic add command will keep running until it received confirmation from Microsoft 365 that the site has been fully provisioned.
74
-
75
- ## Examples
76
-
77
- Create new classic site collection using the Team site template. Set time zone to `UTC+01:00`. Don't wait for the site provisioning to complete
78
-
79
- ```sh
80
- m365 spo site classic add --url https://contoso.sharepoint.com/sites/team --title Team --owner admin@contoso.onmicrosoft.com --timeZone 4
81
- ```
82
-
83
- Create new classic site collection using the Team site template. Set time zone to `UTC+01:00`. Wait for the site provisioning to complete
84
-
85
- ```sh
86
- m365 spo site classic add --url https://contoso.sharepoint.com/sites/team --title Team --owner admin@contoso.onmicrosoft.com --timeZone 4 --webTemplate STS#0 --wait
87
- ```
88
-
89
- Create new classic site collection using the Team site template. Set time zone to `UTC+01:00`. If a site with the same URL is in the recycle bin, delete it. Wait for the site provisioning to complete
90
-
91
- ```sh
92
- m365 spo site classic add --url https://contoso.sharepoint.com/sites/team --title Team --owner admin@contoso.onmicrosoft.com --timeZone 4 --webTemplate STS#0 --removeDeletedSite --wait
93
- ```
@@ -1,68 +0,0 @@
1
- # spo site classic list
2
-
3
- Lists classic sites of the given type
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 spo site classic list [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-t, --webTemplate [type]`
14
- : type of classic sites to list.
15
-
16
- `-f, --filter [filter]`
17
- : filter to apply when retrieving sites
18
-
19
- `--includeOneDriveSites`
20
- : include OneDrive sites in the result when retrieving sites
21
-
22
- --8<-- "docs/cmd/_global.md"
23
-
24
- !!! important
25
- To use this command you have to have permissions to access the tenant admin site.
26
-
27
- !!! important
28
- This command is deprecated. Please use [spo site list](./site-list.md) instead.
29
-
30
- ## Remarks
31
-
32
- Using the `-t, --webTemplate` option you can specify which sites you want to retrieve. For example, to get sites with the `STS#0` as their web template, use `--webTemplate STS#0` as the option.
33
-
34
- Using the `-f, --filter` option you can specify which sites you want to retrieve. For example, to get sites with _project_ in their URL, use `Url -like 'project'` as the filter.
35
-
36
- Using the `--includeOneDriveSites`option you can specify whether you want to retrieve OneDrive sites or not. For example, to retrieve OneDrive sites, use `--includeOneDriveSites` as the option.
37
-
38
- ## Examples
39
-
40
- List all classic sites in the currently connected tenant
41
-
42
- ```sh
43
- m365 spo site classic list
44
- ```
45
-
46
- List all classic team sites in the currently connected tenant including OneDrive sites
47
-
48
- ```sh
49
- m365 spo site classic list --includeOneDriveSites
50
- ```
51
-
52
- List all classic team sites in the currently connected tenant
53
-
54
- ```sh
55
- m365 spo site classic list --webTemplate STS#0
56
- ```
57
-
58
- List all classic project sites that contain _project_ in the URL
59
-
60
- ```sh
61
- m365 spo site classic list --webTemplate PROJECTSITE#0 --filter "Url -like 'project'"
62
- ```
63
-
64
- List only OneDrive sites
65
-
66
- ```sh
67
- m365 spo site classic list --includeOneDriveSites --webTemplate "SPSPERS#10"
68
- ```