@pnp/cli-microsoft365 5.8.0-beta.f956c5d → 6.0.0-beta.0b0fb88

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 (314) hide show
  1. package/dist/Auth.js +1 -2
  2. package/dist/m365/aad/commands/app/app-add.js +4 -4
  3. package/dist/m365/aad/commands/app/app-remove.js +0 -4
  4. package/dist/m365/aad/commands/app/app-role-remove.js +0 -4
  5. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -11
  6. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +10 -10
  7. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +10 -10
  8. package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
  9. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
  10. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +0 -3
  11. package/dist/m365/aad/commands/o365group/o365group-teamify.js +9 -9
  12. package/dist/m365/aad/commands/policy/policy-list.js +6 -6
  13. package/dist/m365/aad/commands/sp/sp-get.js +12 -12
  14. package/dist/m365/aad/commands.js +0 -3
  15. package/dist/m365/cli/commands/config/config-set.js +0 -1
  16. package/dist/m365/flow/commands/flow-disable.js +2 -2
  17. package/dist/m365/flow/commands/flow-enable.js +2 -2
  18. package/dist/m365/flow/commands/flow-export.js +5 -5
  19. package/dist/m365/flow/commands/flow-get.js +2 -2
  20. package/dist/m365/flow/commands/flow-list.js +2 -2
  21. package/dist/m365/flow/commands/flow-remove.js +3 -3
  22. package/dist/m365/flow/commands/run/run-cancel.js +6 -6
  23. package/dist/m365/flow/commands/run/run-get.js +4 -4
  24. package/dist/m365/flow/commands/run/run-list.js +4 -4
  25. package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
  26. package/dist/m365/outlook/commands/mail/mail-send.js +0 -3
  27. package/dist/m365/outlook/commands/message/message-move.js +2 -2
  28. package/dist/m365/outlook/commands.js +1 -2
  29. package/dist/m365/pa/commands/connector/connector-export.js +3 -3
  30. package/dist/m365/pa/commands/connector/connector-list.js +2 -2
  31. package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
  32. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -9
  33. package/dist/m365/planner/commands/bucket/bucket-get.js +4 -11
  34. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -9
  35. package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -11
  36. package/dist/m365/planner/commands/bucket/bucket-set.js +4 -11
  37. package/dist/m365/planner/commands/plan/plan-get.js +0 -4
  38. package/dist/m365/planner/commands/task/task-add.js +3 -8
  39. package/dist/m365/planner/commands/task/task-get.js +5 -19
  40. package/dist/m365/planner/commands/task/task-list.js +4 -11
  41. package/dist/m365/planner/commands/task/task-set.js +5 -10
  42. package/dist/m365/planner/commands.js +0 -2
  43. package/dist/m365/spfx/commands/package/package-generate.js +2 -2
  44. package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
  45. package/dist/m365/spo/commands/app/app-add.js +7 -7
  46. package/dist/m365/spo/commands/app/app-deploy.js +7 -7
  47. package/dist/m365/spo/commands/app/app-get.js +7 -7
  48. package/dist/m365/spo/commands/app/app-install.js +6 -6
  49. package/dist/m365/spo/commands/app/app-list.js +7 -7
  50. package/dist/m365/spo/commands/app/app-remove.js +7 -7
  51. package/dist/m365/spo/commands/app/app-retract.js +7 -7
  52. package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
  53. package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
  54. package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
  55. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
  56. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
  57. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
  58. package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
  59. package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
  60. package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
  61. package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
  62. package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
  63. package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
  64. package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
  65. package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
  66. package/dist/m365/spo/commands/feature/feature-list.js +3 -3
  67. package/dist/m365/spo/commands/field/field-get.js +1 -7
  68. package/dist/m365/spo/commands/field/field-remove.js +1 -7
  69. package/dist/m365/spo/commands/field/field-set.js +2 -9
  70. package/dist/m365/spo/commands/file/file-checkin.js +5 -5
  71. package/dist/m365/spo/commands/file/file-checkout.js +5 -5
  72. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +13 -13
  73. package/dist/m365/spo/commands/folder/folder-get.js +2 -2
  74. package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
  75. package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
  76. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -7
  77. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -6
  78. package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
  79. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
  80. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
  81. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
  82. package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -4
  83. package/dist/m365/spo/commands/list/list-contenttype-remove.js +6 -6
  84. package/dist/m365/spo/commands/list/list-list.js +3 -13
  85. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +46 -21
  86. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +42 -17
  87. package/dist/m365/spo/commands/list/list-view-field-add.js +20 -20
  88. package/dist/m365/spo/commands/list/list-view-field-remove.js +11 -11
  89. package/dist/m365/spo/commands/list/list-view-field-set.js +15 -15
  90. package/dist/m365/spo/commands/list/list-view-get.js +9 -9
  91. package/dist/m365/spo/commands/list/list-view-remove.js +11 -11
  92. package/dist/m365/spo/commands/list/list-view-set.js +11 -11
  93. package/dist/m365/spo/commands/listitem/listitem-list.js +6 -25
  94. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -4
  95. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -4
  96. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +46 -21
  97. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +45 -17
  98. package/dist/m365/spo/commands/page/page-column-get.js +2 -2
  99. package/dist/m365/spo/commands/page/page-column-list.js +2 -2
  100. package/dist/m365/spo/commands/page/page-control-get.js +4 -4
  101. package/dist/m365/spo/commands/page/page-control-list.js +3 -3
  102. package/dist/m365/spo/commands/page/page-control-set.js +3 -3
  103. package/dist/m365/spo/commands/page/page-section-add.js +2 -2
  104. package/dist/m365/spo/commands/page/page-section-get.js +2 -2
  105. package/dist/m365/spo/commands/page/page-section-list.js +2 -2
  106. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
  107. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
  108. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
  109. package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
  110. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
  111. package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
  112. package/dist/m365/spo/commands/site/site-apppermission-remove.js +5 -5
  113. package/dist/m365/spo/commands/site/site-apppermission-set.js +5 -5
  114. package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
  115. package/dist/m365/spo/commands/site/site-ensure.js +1 -1
  116. package/dist/m365/spo/commands/site/site-groupify.js +3 -3
  117. package/dist/m365/spo/commands/site/site-list.js +6 -17
  118. package/dist/m365/spo/commands/site/site-rename.js +9 -9
  119. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
  120. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
  121. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
  122. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
  123. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
  124. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
  125. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
  126. package/dist/m365/spo/commands/web/web-add.js +5 -5
  127. package/dist/m365/spo/commands/web/web-get.js +3 -3
  128. package/dist/m365/spo/commands/web/web-list.js +4 -4
  129. package/dist/m365/spo/commands/web/web-reindex.js +8 -8
  130. package/dist/m365/spo/commands/web/web-remove.js +5 -5
  131. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +43 -13
  132. package/dist/m365/spo/commands/web/web-set.js +4 -4
  133. package/dist/m365/spo/commands.js +0 -3
  134. package/dist/m365/teams/commands/app/app-install.js +4 -4
  135. package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
  136. package/dist/m365/teams/commands/channel/channel-get.js +10 -10
  137. package/dist/m365/teams/commands/channel/channel-member-add.js +0 -4
  138. package/dist/m365/teams/commands/channel/channel-member-list.js +0 -4
  139. package/dist/m365/teams/commands/channel/channel-member-remove.js +0 -4
  140. package/dist/m365/teams/commands/channel/channel-remove.js +12 -12
  141. package/dist/m365/teams/commands/channel/channel-set.js +7 -7
  142. package/dist/m365/teams/commands/message/message-get.js +3 -3
  143. package/dist/m365/teams/commands/tab/tab-get.js +10 -10
  144. package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
  145. package/dist/m365/teams/commands/team/team-archive.js +3 -13
  146. package/dist/m365/teams/commands/team/team-clone.js +3 -20
  147. package/dist/m365/teams/commands/team/team-remove.js +5 -17
  148. package/dist/m365/teams/commands/team/team-set.js +1 -13
  149. package/dist/m365/teams/commands/team/team-unarchive.js +4 -16
  150. package/dist/m365/teams/commands/user/user-app-add.js +4 -4
  151. package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
  152. package/dist/m365/teams/commands.js +0 -3
  153. package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
  154. package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
  155. package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
  156. package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
  157. package/dist/m365/yammer/commands/user/user-get.js +5 -5
  158. package/dist/settingsNames.js +0 -1
  159. package/docs/docs/cmd/aad/app/app-remove.md +0 -6
  160. package/docs/docs/cmd/aad/app/app-role-remove.md +0 -6
  161. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
  162. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
  163. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
  164. package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
  165. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
  166. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +1 -7
  167. package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
  168. package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
  169. package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
  170. package/docs/docs/cmd/flow/flow-disable.md +3 -3
  171. package/docs/docs/cmd/flow/flow-enable.md +1 -1
  172. package/docs/docs/cmd/flow/flow-export.md +5 -5
  173. package/docs/docs/cmd/flow/flow-get.md +3 -3
  174. package/docs/docs/cmd/flow/flow-list.md +3 -3
  175. package/docs/docs/cmd/flow/flow-remove.md +5 -5
  176. package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
  177. package/docs/docs/cmd/flow/run/run-get.md +3 -3
  178. package/docs/docs/cmd/flow/run/run-list.md +3 -3
  179. package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
  180. package/docs/docs/cmd/outlook/mail/mail-send.md +1 -7
  181. package/docs/docs/cmd/outlook/message/message-move.md +4 -4
  182. package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
  183. package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
  184. package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
  185. package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
  186. package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
  187. package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
  188. package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
  189. package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
  190. package/docs/docs/cmd/planner/plan/plan-get.md +0 -6
  191. package/docs/docs/cmd/planner/task/task-add.md +0 -3
  192. package/docs/docs/cmd/planner/task/task-get.md +0 -3
  193. package/docs/docs/cmd/planner/task/task-list.md +0 -3
  194. package/docs/docs/cmd/planner/task/task-set.md +0 -3
  195. package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
  196. package/docs/docs/cmd/spo/app/app-add.md +2 -2
  197. package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
  198. package/docs/docs/cmd/spo/app/app-get.md +2 -2
  199. package/docs/docs/cmd/spo/app/app-install.md +2 -2
  200. package/docs/docs/cmd/spo/app/app-list.md +2 -2
  201. package/docs/docs/cmd/spo/app/app-remove.md +2 -2
  202. package/docs/docs/cmd/spo/app/app-retract.md +2 -2
  203. package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
  204. package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
  205. package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
  206. package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
  207. package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
  208. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
  209. package/docs/docs/cmd/spo/customaction/customaction-add.md +10 -10
  210. package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
  211. package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
  212. package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
  213. package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
  214. package/docs/docs/cmd/spo/customaction/customaction-set.md +7 -7
  215. package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
  216. package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
  217. package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
  218. package/docs/docs/cmd/spo/field/field-get.md +0 -3
  219. package/docs/docs/cmd/spo/field/field-remove.md +0 -3
  220. package/docs/docs/cmd/spo/field/field-set.md +0 -3
  221. package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
  222. package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
  223. package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
  224. package/docs/docs/cmd/spo/folder/folder-get.md +2 -2
  225. package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
  226. package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
  227. package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +4 -4
  228. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +4 -4
  229. package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
  230. package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
  231. package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
  232. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
  233. package/docs/docs/cmd/spo/list/list-contenttype-add.md +3 -3
  234. package/docs/docs/cmd/spo/list/list-contenttype-remove.md +3 -3
  235. package/docs/docs/cmd/spo/list/list-list.md +0 -3
  236. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +9 -0
  237. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +9 -0
  238. package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
  239. package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
  240. package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
  241. package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
  242. package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
  243. package/docs/docs/cmd/spo/list/list-view-set.md +7 -7
  244. package/docs/docs/cmd/spo/listitem/listitem-list.md +0 -6
  245. package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +5 -5
  246. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +3 -3
  247. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +9 -0
  248. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +9 -0
  249. package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
  250. package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
  251. package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
  252. package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
  253. package/docs/docs/cmd/spo/page/page-control-set.md +4 -4
  254. package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
  255. package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
  256. package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
  257. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
  258. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
  259. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
  260. package/docs/docs/cmd/spo/site/site-add.md +2 -2
  261. package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
  262. package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
  263. package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
  264. package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
  265. package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
  266. package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
  267. package/docs/docs/cmd/spo/site/site-groupify.md +5 -11
  268. package/docs/docs/cmd/spo/site/site-list.md +6 -6
  269. package/docs/docs/cmd/spo/site/site-rename.md +6 -6
  270. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
  271. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
  272. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
  273. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
  274. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
  275. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
  276. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
  277. package/docs/docs/cmd/spo/web/web-add.md +4 -4
  278. package/docs/docs/cmd/spo/web/web-get.md +3 -3
  279. package/docs/docs/cmd/spo/web/web-list.md +2 -2
  280. package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
  281. package/docs/docs/cmd/spo/web/web-remove.md +2 -2
  282. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +9 -0
  283. package/docs/docs/cmd/spo/web/web-set.md +9 -9
  284. package/docs/docs/cmd/teams/app/app-install.md +5 -5
  285. package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
  286. package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
  287. package/docs/docs/cmd/teams/channel/channel-member-add.md +0 -6
  288. package/docs/docs/cmd/teams/channel/channel-member-list.md +0 -6
  289. package/docs/docs/cmd/teams/channel/channel-member-remove.md +0 -6
  290. package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
  291. package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
  292. package/docs/docs/cmd/teams/message/message-get.md +3 -3
  293. package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
  294. package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
  295. package/docs/docs/cmd/teams/team/team-archive.md +0 -3
  296. package/docs/docs/cmd/teams/team/team-clone.md +0 -3
  297. package/docs/docs/cmd/teams/team/team-remove.md +0 -3
  298. package/docs/docs/cmd/teams/team/team-set.md +0 -3
  299. package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
  300. package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
  301. package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
  302. package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
  303. package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
  304. package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
  305. package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
  306. package/docs/docs/cmd/yammer/user/user-get.md +2 -2
  307. package/npm-shrinkwrap.json +2 -2
  308. package/package.json +1 -1
  309. package/dist/m365/spo/commands/site/site-classic-add.js +0 -342
  310. package/dist/m365/spo/commands/site/site-classic-list.js +0 -106
  311. package/dist/m365/spo/commands/site/site-classic-set.js +0 -367
  312. package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
  313. package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
  314. package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
@@ -1,342 +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 _SpoSiteClassicAddCommand_instances, _SpoSiteClassicAddCommand_initTelemetry, _SpoSiteClassicAddCommand_initOptions, _SpoSiteClassicAddCommand_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 SpoSiteClassicAddCommand extends SpoCommand_1.default {
24
- constructor() {
25
- super();
26
- _SpoSiteClassicAddCommand_instances.add(this);
27
- __classPrivateFieldGet(this, _SpoSiteClassicAddCommand_instances, "m", _SpoSiteClassicAddCommand_initTelemetry).call(this);
28
- __classPrivateFieldGet(this, _SpoSiteClassicAddCommand_instances, "m", _SpoSiteClassicAddCommand_initOptions).call(this);
29
- __classPrivateFieldGet(this, _SpoSiteClassicAddCommand_instances, "m", _SpoSiteClassicAddCommand_initValidators).call(this);
30
- }
31
- get name() {
32
- return commands_1.default.SITE_CLASSIC_ADD;
33
- }
34
- get description() {
35
- return 'Creates new classic site';
36
- }
37
- commandAction(logger, args, cb) {
38
- this.dots = '';
39
- this.showDeprecationWarning(logger, commands_1.default.SITE_CLASSIC_ADD, commands_1.default.SITE_ADD);
40
- utils_1.spo
41
- .getSpoAdminUrl(logger, this.debug)
42
- .then((_spoAdminUrl) => {
43
- this.spoAdminUrl = _spoAdminUrl;
44
- return utils_1.spo.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug);
45
- })
46
- .then((res) => {
47
- this.context = res;
48
- if (args.options.removeDeletedSite) {
49
- return this.siteExistsInTheRecycleBin(args.options.url, logger);
50
- }
51
- else {
52
- // assume site doesn't exist
53
- return Promise.resolve(false);
54
- }
55
- })
56
- .then((exists) => {
57
- if (exists) {
58
- if (this.verbose) {
59
- logger.logToStderr('Site exists in the recycle bin');
60
- }
61
- return this.deleteSiteFromTheRecycleBin(args.options.url, args.options.wait, logger);
62
- }
63
- else {
64
- if (this.verbose) {
65
- logger.logToStderr('Site not found');
66
- }
67
- return Promise.resolve();
68
- }
69
- })
70
- .then(() => {
71
- return utils_1.spo.ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug);
72
- })
73
- .then((res) => {
74
- this.context = res;
75
- if (this.verbose) {
76
- logger.logToStderr(`Creating site collection ${args.options.url}...`);
77
- }
78
- const lcid = typeof args.options.lcid === 'number' ? args.options.lcid : 1033;
79
- const storageQuota = typeof args.options.storageQuota === 'number' ? args.options.storageQuota : 100;
80
- const storageQuotaWarningLevel = typeof args.options.storageQuotaWarningLevel === 'number' ? args.options.storageQuotaWarningLevel : 100;
81
- const resourceQuota = typeof args.options.resourceQuota === 'number' ? args.options.resourceQuota : 0;
82
- const resourceQuotaWarningLevel = typeof args.options.resourceQuotaWarningLevel === 'number' ? args.options.resourceQuotaWarningLevel : 0;
83
- const webTemplate = args.options.webTemplate || 'STS#0';
84
- const requestOptions = {
85
- url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
86
- headers: {
87
- 'X-RequestDigest': this.context.FormDigestValue
88
- },
89
- 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">${lcid}</Property><Property Name="Owner" Type="String">${utils_1.formatting.escapeXml(args.options.owner)}</Property><Property Name="StorageMaximumLevel" Type="Int64">${storageQuota}</Property><Property Name="StorageWarningLevel" Type="Int64">${storageQuotaWarningLevel}</Property><Property Name="Template" Type="String">${utils_1.formatting.escapeXml(webTemplate)}</Property><Property Name="TimeZoneId" Type="Int32">${args.options.timeZone}</Property><Property Name="Title" Type="String">${utils_1.formatting.escapeXml(args.options.title)}</Property><Property Name="Url" Type="String">${utils_1.formatting.escapeXml(args.options.url)}</Property><Property Name="UserCodeMaximumLevel" Type="Double">${resourceQuota}</Property><Property Name="UserCodeWarningLevel" Type="Double">${resourceQuotaWarningLevel}</Property></Parameter></Parameters></Method></ObjectPaths></Request>`
90
- };
91
- return request_1.default.post(requestOptions);
92
- })
93
- .then((res) => {
94
- return new Promise((resolve, reject) => {
95
- const json = JSON.parse(res);
96
- const response = json[0];
97
- if (response.ErrorInfo) {
98
- reject(response.ErrorInfo.ErrorMessage);
99
- }
100
- else {
101
- const operation = json[json.length - 1];
102
- const isComplete = operation.IsComplete;
103
- if (!args.options.wait || isComplete) {
104
- resolve();
105
- return;
106
- }
107
- setTimeout(() => {
108
- utils_1.spo.waitUntilFinished({
109
- operationId: JSON.stringify(operation._ObjectIdentity_),
110
- siteUrl: this.spoAdminUrl,
111
- resolve,
112
- reject,
113
- logger,
114
- currentContext: this.context,
115
- dots: this.dots,
116
- debug: this.debug,
117
- verbose: this.verbose
118
- });
119
- }, operation.PollingInterval);
120
- }
121
- });
122
- })
123
- .then(_ => cb(), (err) => this.handleRejectedPromise(err, logger, cb));
124
- }
125
- siteExistsInTheRecycleBin(url, logger) {
126
- return new Promise((resolve, reject) => {
127
- utils_1.spo
128
- .ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug)
129
- .then((res) => {
130
- this.context = res;
131
- if (this.verbose) {
132
- logger.logToStderr(`Checking if the site ${url} exists...`);
133
- }
134
- const requestOptions = {
135
- url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
136
- headers: {
137
- 'X-RequestDigest': this.context.FormDigestValue
138
- },
139
- 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">${utils_1.formatting.escapeXml(url)}</Parameter><Parameter Type="Boolean">false</Parameter></Parameters></Method></ObjectPaths></Request>`
140
- };
141
- return request_1.default.post(requestOptions);
142
- })
143
- .then((res) => {
144
- const json = JSON.parse(res);
145
- const response = json[0];
146
- if (response.ErrorInfo) {
147
- if (response.ErrorInfo.ErrorTypeName === 'Microsoft.Online.SharePoint.Common.SpoNoSiteException') {
148
- return Promise.resolve(false);
149
- }
150
- else {
151
- return Promise.reject(response.ErrorInfo.ErrorMessage);
152
- }
153
- }
154
- else {
155
- const site = json[json.length - 1];
156
- if (site.Status === 'Recycled') {
157
- return Promise.reject(true);
158
- }
159
- else {
160
- return Promise.resolve(false);
161
- }
162
- }
163
- })
164
- .then(() => {
165
- if (this.verbose) {
166
- logger.logToStderr(`Site doesn't exist. Checking if the site ${url} exists in the recycle bin...`);
167
- }
168
- const requestOptions = {
169
- url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
170
- headers: {
171
- 'X-RequestDigest': this.context.FormDigestValue
172
- },
173
- 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">${utils_1.formatting.escapeXml(url)}</Parameter></Parameters></Method><Constructor Id="175" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
174
- };
175
- return request_1.default.post(requestOptions);
176
- })
177
- .then((res) => {
178
- const json = JSON.parse(res);
179
- const response = json[0];
180
- if (response.ErrorInfo) {
181
- if (response.ErrorInfo.ErrorTypeName === 'Microsoft.SharePoint.Client.UnknownError') {
182
- resolve(false);
183
- }
184
- else {
185
- reject(response.ErrorInfo.ErrorMessage);
186
- }
187
- }
188
- else {
189
- const site = json[json.length - 1];
190
- if (site.Status === 'Recycled') {
191
- resolve(true);
192
- }
193
- else {
194
- resolve(false);
195
- }
196
- }
197
- }, (error) => {
198
- if (typeof error === 'boolean') {
199
- resolve(error);
200
- }
201
- else {
202
- reject(error);
203
- }
204
- });
205
- });
206
- }
207
- deleteSiteFromTheRecycleBin(url, wait, logger) {
208
- return new Promise((resolve, reject) => {
209
- utils_1.spo
210
- .ensureFormDigest(this.spoAdminUrl, logger, this.context, this.debug)
211
- .then((res) => {
212
- this.context = res;
213
- if (this.verbose) {
214
- logger.logToStderr(`Deleting site ${url} from the recycle bin...`);
215
- }
216
- const requestOptions = {
217
- url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
218
- headers: {
219
- 'X-RequestDigest': this.context.FormDigestValue
220
- },
221
- 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">${utils_1.formatting.escapeXml(url)}</Parameter></Parameters></Method><Constructor Id="175" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
222
- };
223
- return request_1.default.post(requestOptions);
224
- })
225
- .then((res) => {
226
- const json = JSON.parse(res);
227
- const response = json[0];
228
- if (response.ErrorInfo) {
229
- reject(response.ErrorInfo.ErrorMessage);
230
- }
231
- else {
232
- const operation = json[json.length - 1];
233
- const isComplete = operation.IsComplete;
234
- if (!wait || isComplete) {
235
- resolve();
236
- return;
237
- }
238
- setTimeout(() => {
239
- utils_1.spo.waitUntilFinished({
240
- operationId: JSON.stringify(operation._ObjectIdentity_),
241
- siteUrl: this.spoAdminUrl,
242
- resolve,
243
- reject,
244
- logger,
245
- currentContext: this.context,
246
- dots: this.dots,
247
- verbose: this.verbose,
248
- debug: this.debug
249
- });
250
- }, operation.PollingInterval);
251
- }
252
- });
253
- });
254
- }
255
- }
256
- _SpoSiteClassicAddCommand_instances = new WeakSet(), _SpoSiteClassicAddCommand_initTelemetry = function _SpoSiteClassicAddCommand_initTelemetry() {
257
- this.telemetry.push((args) => {
258
- Object.assign(this.telemetryProperties, {
259
- lcid: typeof args.options.lcid !== 'undefined',
260
- webTemplate: typeof args.options.webTemplate !== 'undefined',
261
- resourceQuota: typeof args.options.resourceQuota !== 'undefined',
262
- resourceQuotaWarningLevel: typeof args.options.resourceQuotaWarningLevel !== 'undefined',
263
- storageQuota: typeof args.options.storageQuota !== 'undefined',
264
- storageQuotaWarningLevel: typeof args.options.storageQuotaWarningLevel !== 'undefined',
265
- removeDeletedSite: args.options.removeDeletedSite,
266
- wait: args.options.wait
267
- });
268
- });
269
- }, _SpoSiteClassicAddCommand_initOptions = function _SpoSiteClassicAddCommand_initOptions() {
270
- this.options.unshift({
271
- option: '-u, --url <url>'
272
- }, {
273
- option: '-t, --title <title>'
274
- }, {
275
- option: '--owner <owner>'
276
- }, {
277
- option: '-z, --timeZone <timeZone>'
278
- }, {
279
- option: '-l, --lcid [lcid]'
280
- }, {
281
- option: '-w, --webTemplate [webTemplate]'
282
- }, {
283
- option: '--resourceQuota [resourceQuota]'
284
- }, {
285
- option: '--resourceQuotaWarningLevel [resourceQuotaWarningLevel]'
286
- }, {
287
- option: '--storageQuota [storageQuota]'
288
- }, {
289
- option: '--storageQuotaWarningLevel [storageQuotaWarningLevel]'
290
- }, {
291
- option: '--removeDeletedSite'
292
- }, {
293
- option: '--wait'
294
- });
295
- }, _SpoSiteClassicAddCommand_initValidators = function _SpoSiteClassicAddCommand_initValidators() {
296
- this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
297
- const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.url);
298
- if (isValidSharePointUrl !== true) {
299
- return isValidSharePointUrl;
300
- }
301
- if (typeof args.options.timeZone !== 'number') {
302
- return `${args.options.timeZone} is not a number`;
303
- }
304
- if (args.options.lcid &&
305
- typeof args.options.lcid !== 'number') {
306
- return `${args.options.lcid} is not a number`;
307
- }
308
- if (args.options.resourceQuota &&
309
- typeof args.options.resourceQuota !== 'number') {
310
- return `${args.options.resourceQuota} is not a number`;
311
- }
312
- if (args.options.resourceQuotaWarningLevel &&
313
- typeof args.options.resourceQuotaWarningLevel !== 'number') {
314
- return `${args.options.resourceQuotaWarningLevel} is not a number`;
315
- }
316
- if (args.options.resourceQuotaWarningLevel &&
317
- !args.options.resourceQuota) {
318
- return `You cannot specify resourceQuotaWarningLevel without specifying resourceQuota`;
319
- }
320
- if (args.options.resourceQuotaWarningLevel > args.options.resourceQuota) {
321
- return `resourceQuotaWarningLevel cannot exceed resourceQuota`;
322
- }
323
- if (args.options.storageQuota &&
324
- typeof args.options.storageQuota !== 'number') {
325
- return `${args.options.storageQuota} is not a number`;
326
- }
327
- if (args.options.storageQuotaWarningLevel &&
328
- typeof args.options.storageQuotaWarningLevel !== 'number') {
329
- return `${args.options.storageQuotaWarningLevel} is not a number`;
330
- }
331
- if (args.options.storageQuotaWarningLevel &&
332
- !args.options.storageQuota) {
333
- return `You cannot specify storageQuotaWarningLevel without specifying storageQuota`;
334
- }
335
- if (args.options.storageQuotaWarningLevel > args.options.storageQuota) {
336
- return `storageQuotaWarningLevel cannot exceed storageQuota`;
337
- }
338
- return true;
339
- }));
340
- };
341
- module.exports = new SpoSiteClassicAddCommand();
342
- //# sourceMappingURL=site-classic-add.js.map
@@ -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