@pnp/cli-microsoft365-spfx-toolkit 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (727) hide show
  1. package/dist/m365/spo/commands/page/Page.js +23 -5
  2. package/dist/m365/spo/commands/page/page-add.js +15 -56
  3. package/dist/m365/spo/commands/page/page-control-set.js +1 -1
  4. package/dist/m365/spo/commands/page/page-set.js +1 -1
  5. package/dist/utils/spo.js +145 -0
  6. package/npm-shrinkwrap.json +2236 -96
  7. package/package.json +18 -30
  8. package/docs/docs/_clisettings.mdx +0 -17
  9. package/docs/docs/cmd/_global.mdx +0 -16
  10. package/docs/docs/cmd/aad/app/app-add.mdx +0 -297
  11. package/docs/docs/cmd/aad/app/app-get.mdx +0 -280
  12. package/docs/docs/cmd/aad/app/app-list.mdx +0 -184
  13. package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
  14. package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
  15. package/docs/docs/cmd/aad/app/app-role-list.mdx +0 -115
  16. package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
  17. package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
  18. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +0 -127
  19. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.mdx +0 -113
  20. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +0 -73
  21. package/docs/docs/cmd/aad/group/group-get.mdx +0 -164
  22. package/docs/docs/cmd/aad/group/group-list.mdx +0 -121
  23. package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
  24. package/docs/docs/cmd/aad/groupsetting/groupsetting-add.mdx +0 -154
  25. package/docs/docs/cmd/aad/groupsetting/groupsetting-get.mdx +0 -143
  26. package/docs/docs/cmd/aad/groupsetting/groupsetting-list.mdx +0 -138
  27. package/docs/docs/cmd/aad/groupsetting/groupsetting-remove.mdx +0 -45
  28. package/docs/docs/cmd/aad/groupsetting/groupsetting-set.mdx +0 -42
  29. package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-get.mdx +0 -100
  30. package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-list.mdx +0 -86
  31. package/docs/docs/cmd/aad/license/license-list.mdx +0 -99
  32. package/docs/docs/cmd/aad/m365group/m365group-add.mdx +0 -243
  33. package/docs/docs/cmd/aad/m365group/m365group-conversation-list.mdx +0 -96
  34. package/docs/docs/cmd/aad/m365group/m365group-conversation-post-list.mdx +0 -117
  35. package/docs/docs/cmd/aad/m365group/m365group-get.mdx +0 -159
  36. package/docs/docs/cmd/aad/m365group/m365group-list.mdx +0 -167
  37. package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-clear.mdx +0 -38
  38. package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-list.mdx +0 -145
  39. package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-remove.mdx +0 -53
  40. package/docs/docs/cmd/aad/m365group/m365group-recyclebinitem-restore.mdx +0 -50
  41. package/docs/docs/cmd/aad/m365group/m365group-remove.mdx +0 -54
  42. package/docs/docs/cmd/aad/m365group/m365group-renew.mdx +0 -36
  43. package/docs/docs/cmd/aad/m365group/m365group-report-activitycounts.mdx +0 -91
  44. package/docs/docs/cmd/aad/m365group/m365group-report-activitydetail.mdx +0 -112
  45. package/docs/docs/cmd/aad/m365group/m365group-report-activityfilecounts.mdx +0 -89
  46. package/docs/docs/cmd/aad/m365group/m365group-report-activitygroupcounts.mdx +0 -89
  47. package/docs/docs/cmd/aad/m365group/m365group-report-activitystorage.mdx +0 -89
  48. package/docs/docs/cmd/aad/m365group/m365group-set.mdx +0 -80
  49. package/docs/docs/cmd/aad/m365group/m365group-teamify.mdx +0 -41
  50. package/docs/docs/cmd/aad/m365group/m365group-user-add.mdx +0 -59
  51. package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
  52. package/docs/docs/cmd/aad/m365group/m365group-user-remove.mdx +0 -63
  53. package/docs/docs/cmd/aad/m365group/m365group-user-set.mdx +0 -69
  54. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-add.mdx +0 -58
  55. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-list.mdx +0 -98
  56. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.mdx +0 -56
  57. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.mdx +0 -50
  58. package/docs/docs/cmd/aad/policy/policy-list.mdx +0 -115
  59. package/docs/docs/cmd/aad/siteclassification/siteclassification-disable.mdx +0 -42
  60. package/docs/docs/cmd/aad/siteclassification/siteclassification-enable.mdx +0 -57
  61. package/docs/docs/cmd/aad/siteclassification/siteclassification-get.mdx +0 -84
  62. package/docs/docs/cmd/aad/siteclassification/siteclassification-set.mdx +0 -64
  63. package/docs/docs/cmd/aad/sp/sp-add.mdx +0 -193
  64. package/docs/docs/cmd/aad/sp/sp-get.mdx +0 -221
  65. package/docs/docs/cmd/aad/sp/sp-list.mdx +0 -162
  66. package/docs/docs/cmd/aad/user/user-add.mdx +0 -192
  67. package/docs/docs/cmd/aad/user/user-get.mdx +0 -245
  68. package/docs/docs/cmd/aad/user/user-guest-add.mdx +0 -143
  69. package/docs/docs/cmd/aad/user/user-hibp.mdx +0 -132
  70. package/docs/docs/cmd/aad/user/user-license-add.mdx +0 -125
  71. package/docs/docs/cmd/aad/user/user-license-list.mdx +0 -115
  72. package/docs/docs/cmd/aad/user/user-license-remove.mdx +0 -47
  73. package/docs/docs/cmd/aad/user/user-list.mdx +0 -110
  74. package/docs/docs/cmd/aad/user/user-password-validate.mdx +0 -103
  75. package/docs/docs/cmd/aad/user/user-recyclebinitem-clear.mdx +0 -52
  76. package/docs/docs/cmd/aad/user/user-recyclebinitem-list.mdx +0 -94
  77. package/docs/docs/cmd/aad/user/user-recyclebinitem-remove.mdx +0 -55
  78. package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.mdx +0 -119
  79. package/docs/docs/cmd/aad/user/user-remove.mdx +0 -64
  80. package/docs/docs/cmd/aad/user/user-set.mdx +0 -136
  81. package/docs/docs/cmd/aad/user/user-signin-list.mdx +0 -216
  82. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +0 -132
  83. package/docs/docs/cmd/app/app-get.mdx +0 -225
  84. package/docs/docs/cmd/app/app-open.mdx +0 -85
  85. package/docs/docs/cmd/app/permission/permission-add.mdx +0 -57
  86. package/docs/docs/cmd/app/permission/permission-list.mdx +0 -93
  87. package/docs/docs/cmd/booking/business/business-get.mdx +0 -176
  88. package/docs/docs/cmd/booking/business/business-list.mdx +0 -76
  89. package/docs/docs/cmd/cli/cli-consent.mdx +0 -72
  90. package/docs/docs/cmd/cli/cli-doctor.mdx +0 -104
  91. package/docs/docs/cmd/cli/cli-issue.mdx +0 -74
  92. package/docs/docs/cmd/cli/cli-reconsent.mdx +0 -62
  93. package/docs/docs/cmd/cli/completion/completion-clink-update.mdx +0 -41
  94. package/docs/docs/cmd/cli/completion/completion-pwsh-setup.mdx +0 -42
  95. package/docs/docs/cmd/cli/completion/completion-pwsh-update.mdx +0 -35
  96. package/docs/docs/cmd/cli/completion/completion-sh-setup.mdx +0 -62
  97. package/docs/docs/cmd/cli/completion/completion-sh-update.mdx +0 -35
  98. package/docs/docs/cmd/cli/config/config-get.mdx +0 -80
  99. package/docs/docs/cmd/cli/config/config-list.mdx +0 -78
  100. package/docs/docs/cmd/cli/config/config-reset.mdx +0 -49
  101. package/docs/docs/cmd/cli/config/config-set.mdx +0 -52
  102. package/docs/docs/cmd/context/context-init.mdx +0 -27
  103. package/docs/docs/cmd/context/context-remove.mdx +0 -38
  104. package/docs/docs/cmd/context/option/option-list.mdx +0 -75
  105. package/docs/docs/cmd/context/option/option-remove.mdx +0 -41
  106. package/docs/docs/cmd/context/option/option-set.mdx +0 -35
  107. package/docs/docs/cmd/docs.mdx +0 -63
  108. package/docs/docs/cmd/file/convert/convert-pdf.mdx +0 -57
  109. package/docs/docs/cmd/file/file-add.mdx +0 -64
  110. package/docs/docs/cmd/file/file-list.mdx +0 -50
  111. package/docs/docs/cmd/flow/environment/environment-get.mdx +0 -175
  112. package/docs/docs/cmd/flow/environment/environment-list.mdx +0 -155
  113. package/docs/docs/cmd/flow/flow-disable.mdx +0 -58
  114. package/docs/docs/cmd/flow/flow-enable.mdx +0 -58
  115. package/docs/docs/cmd/flow/flow-export.mdx +0 -99
  116. package/docs/docs/cmd/flow/flow-get.mdx +0 -456
  117. package/docs/docs/cmd/flow/flow-list.mdx +0 -206
  118. package/docs/docs/cmd/flow/flow-remove.mdx +0 -67
  119. package/docs/docs/cmd/flow/owner/owner-ensure.mdx +0 -65
  120. package/docs/docs/cmd/flow/owner/owner-list.mdx +0 -104
  121. package/docs/docs/cmd/flow/owner/owner-remove.mdx +0 -71
  122. package/docs/docs/cmd/flow/run/run-cancel.mdx +0 -52
  123. package/docs/docs/cmd/flow/run/run-get.mdx +0 -235
  124. package/docs/docs/cmd/flow/run/run-list.mdx +0 -168
  125. package/docs/docs/cmd/flow/run/run-resubmit.mdx +0 -61
  126. package/docs/docs/cmd/graph/changelog/changelog-list.mdx +0 -122
  127. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +0 -139
  128. package/docs/docs/cmd/graph/schemaextension/schemaextension-get.mdx +0 -104
  129. package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +0 -127
  130. package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.mdx +0 -46
  131. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +0 -71
  132. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -149
  133. package/docs/docs/cmd/login.mdx +0 -249
  134. package/docs/docs/cmd/logout.mdx +0 -37
  135. package/docs/docs/cmd/onedrive/onedrive-list.mdx +0 -258
  136. package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +0 -92
  137. package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +0 -92
  138. package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +0 -105
  139. package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +0 -95
  140. package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +0 -105
  141. package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +0 -95
  142. package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +0 -90
  143. package/docs/docs/cmd/onenote/notebook/notebook-list.mdx +0 -162
  144. package/docs/docs/cmd/onenote/page/page-list.mdx +0 -154
  145. package/docs/docs/cmd/outlook/mail/mail-send.mdx +0 -139
  146. package/docs/docs/cmd/outlook/message/message-get.mdx +0 -205
  147. package/docs/docs/cmd/outlook/message/message-list.mdx +0 -175
  148. package/docs/docs/cmd/outlook/message/message-move.mdx +0 -61
  149. package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +0 -93
  150. package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +0 -93
  151. package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +0 -107
  152. package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +0 -96
  153. package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +0 -97
  154. package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +0 -110
  155. package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +0 -94
  156. package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +0 -102
  157. package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +0 -94
  158. package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +0 -93
  159. package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +0 -89
  160. package/docs/docs/cmd/outlook/room/room-list.mdx +0 -125
  161. package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +0 -91
  162. package/docs/docs/cmd/pa/app/app-consent-set.mdx +0 -51
  163. package/docs/docs/cmd/pa/app/app-export.mdx +0 -56
  164. package/docs/docs/cmd/pa/app/app-get.mdx +0 -265
  165. package/docs/docs/cmd/pa/app/app-list.mdx +0 -261
  166. package/docs/docs/cmd/pa/app/app-owner-set.mdx +0 -60
  167. package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +0 -85
  168. package/docs/docs/cmd/pa/app/app-permission-list.mdx +0 -132
  169. package/docs/docs/cmd/pa/app/app-permission-remove.mdx +0 -74
  170. package/docs/docs/cmd/pa/app/app-remove.mdx +0 -49
  171. package/docs/docs/cmd/pa/connector/connector-export.mdx +0 -60
  172. package/docs/docs/cmd/pa/connector/connector-list.mdx +0 -158
  173. package/docs/docs/cmd/pa/environment/environment-get.mdx +0 -185
  174. package/docs/docs/cmd/pa/environment/environment-list.mdx +0 -169
  175. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +0 -122
  176. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +0 -134
  177. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +0 -117
  178. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +0 -85
  179. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +0 -82
  180. package/docs/docs/cmd/planner/plan/plan-add.mdx +0 -247
  181. package/docs/docs/cmd/planner/plan/plan-get.mdx +0 -172
  182. package/docs/docs/cmd/planner/plan/plan-list.mdx +0 -128
  183. package/docs/docs/cmd/planner/plan/plan-remove.mdx +0 -60
  184. package/docs/docs/cmd/planner/plan/plan-set.mdx +0 -261
  185. package/docs/docs/cmd/planner/roster/roster-add.mdx +0 -96
  186. package/docs/docs/cmd/planner/roster/roster-get.mdx +0 -89
  187. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +0 -104
  188. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +0 -104
  189. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +0 -93
  190. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +0 -61
  191. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +0 -126
  192. package/docs/docs/cmd/planner/roster/roster-remove.mdx +0 -59
  193. package/docs/docs/cmd/planner/task/task-add.mdx +0 -382
  194. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +0 -105
  195. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +0 -93
  196. package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +0 -44
  197. package/docs/docs/cmd/planner/task/task-get.mdx +0 -205
  198. package/docs/docs/cmd/planner/task/task-list.mdx +0 -198
  199. package/docs/docs/cmd/planner/task/task-reference-add.mdx +0 -105
  200. package/docs/docs/cmd/planner/task/task-reference-list.mdx +0 -84
  201. package/docs/docs/cmd/planner/task/task-reference-remove.mdx +0 -47
  202. package/docs/docs/cmd/planner/task/task-remove.mdx +0 -103
  203. package/docs/docs/cmd/planner/task/task-set.mdx +0 -376
  204. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +0 -98
  205. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +0 -128
  206. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +0 -156
  207. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +0 -152
  208. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-remove.mdx +0 -57
  209. package/docs/docs/cmd/pp/card/card-clone.mdx +0 -103
  210. package/docs/docs/cmd/pp/card/card-get.mdx +0 -185
  211. package/docs/docs/cmd/pp/card/card-list.mdx +0 -167
  212. package/docs/docs/cmd/pp/card/card-remove.mdx +0 -86
  213. package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +0 -192
  214. package/docs/docs/cmd/pp/chatbot/chatbot-list.mdx +0 -132
  215. package/docs/docs/cmd/pp/chatbot/chatbot-remove.mdx +0 -56
  216. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +0 -164
  217. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +0 -162
  218. package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +0 -53
  219. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.mdx +0 -134
  220. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.mdx +0 -65
  221. package/docs/docs/cmd/pp/environment/environment-get.mdx +0 -392
  222. package/docs/docs/cmd/pp/environment/environment-list.mdx +0 -384
  223. package/docs/docs/cmd/pp/gateway/gateway-get.mdx +0 -89
  224. package/docs/docs/cmd/pp/gateway/gateway-list.mdx +0 -87
  225. package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +0 -99
  226. package/docs/docs/cmd/pp/managementapp/managementapp-list.mdx +0 -72
  227. package/docs/docs/cmd/pp/solution/solution-get.mdx +0 -114
  228. package/docs/docs/cmd/pp/solution/solution-list.mdx +0 -98
  229. package/docs/docs/cmd/pp/solution/solution-publish.mdx +0 -56
  230. package/docs/docs/cmd/pp/solution/solution-publisher-add.mdx +0 -53
  231. package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +0 -116
  232. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -103
  233. package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +0 -62
  234. package/docs/docs/cmd/pp/solution/solution-remove.mdx +0 -86
  235. package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +0 -140
  236. package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +0 -235
  237. package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +0 -145
  238. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +0 -161
  239. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +0 -144
  240. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +0 -117
  241. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +0 -49
  242. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +0 -119
  243. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +0 -116
  244. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +0 -108
  245. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +0 -47
  246. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +0 -47
  247. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +0 -155
  248. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +0 -110
  249. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +0 -94
  250. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +0 -43
  251. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +0 -70
  252. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +0 -138
  253. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +0 -131
  254. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +0 -117
  255. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -212
  256. package/docs/docs/cmd/request.mdx +0 -172
  257. package/docs/docs/cmd/search/externalconnection/externalconnection-add.mdx +0 -51
  258. package/docs/docs/cmd/search/externalconnection/externalconnection-get.mdx +0 -102
  259. package/docs/docs/cmd/search/externalconnection/externalconnection-list.mdx +0 -88
  260. package/docs/docs/cmd/search/externalconnection/externalconnection-remove.mdx +0 -48
  261. package/docs/docs/cmd/search/externalconnection/externalconnection-schema-add.mdx +0 -35
  262. package/docs/docs/cmd/setup.mdx +0 -92
  263. package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -90
  264. package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -91
  265. package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -129
  266. package/docs/docs/cmd/spfx/package/package-generate.mdx +0 -68
  267. package/docs/docs/cmd/spfx/project/project-azuredevops-pipeline-add.mdx +0 -87
  268. package/docs/docs/cmd/spfx/project/project-doctor.mdx +0 -176
  269. package/docs/docs/cmd/spfx/project/project-externalize.mdx +0 -187
  270. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +0 -94
  271. package/docs/docs/cmd/spfx/project/project-permissions-grant.mdx +0 -101
  272. package/docs/docs/cmd/spfx/project/project-rename.mdx +0 -51
  273. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +0 -202
  274. package/docs/docs/cmd/spfx/spfx-doctor.mdx +0 -234
  275. package/docs/docs/cmd/spo/app/app-add.mdx +0 -63
  276. package/docs/docs/cmd/spo/app/app-deploy.mdx +0 -76
  277. package/docs/docs/cmd/spo/app/app-get.mdx +0 -65
  278. package/docs/docs/cmd/spo/app/app-install.mdx +0 -48
  279. package/docs/docs/cmd/spo/app/app-instance-list.mdx +0 -28
  280. package/docs/docs/cmd/spo/app/app-list.mdx +0 -49
  281. package/docs/docs/cmd/spo/app/app-remove.mdx +0 -67
  282. package/docs/docs/cmd/spo/app/app-retract.mdx +0 -67
  283. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +0 -60
  284. package/docs/docs/cmd/spo/app/app-uninstall.mdx +0 -57
  285. package/docs/docs/cmd/spo/app/app-upgrade.mdx +0 -48
  286. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +0 -66
  287. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +0 -159
  288. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +0 -123
  289. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +0 -81
  290. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +0 -72
  291. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +0 -41
  292. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +0 -34
  293. package/docs/docs/cmd/spo/cdn/cdn-get.mdx +0 -48
  294. package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +0 -45
  295. package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +0 -48
  296. package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +0 -48
  297. package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +0 -48
  298. package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +0 -48
  299. package/docs/docs/cmd/spo/cdn/cdn-set.mdx +0 -76
  300. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +0 -175
  301. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +0 -163
  302. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +0 -123
  303. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +0 -59
  304. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +0 -87
  305. package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +0 -77
  306. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +0 -73
  307. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +0 -56
  308. package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +0 -71
  309. package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +0 -37
  310. package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +0 -55
  311. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +0 -66
  312. package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +0 -23
  313. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +0 -146
  314. package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +0 -47
  315. package/docs/docs/cmd/spo/customaction/customaction-get.mdx +0 -175
  316. package/docs/docs/cmd/spo/customaction/customaction-list.mdx +0 -51
  317. package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +0 -90
  318. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +0 -131
  319. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +0 -119
  320. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +0 -64
  321. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +0 -81
  322. package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +0 -68
  323. package/docs/docs/cmd/spo/feature/feature-disable.mdx +0 -47
  324. package/docs/docs/cmd/spo/feature/feature-enable.mdx +0 -47
  325. package/docs/docs/cmd/spo/feature/feature-list.mdx +0 -37
  326. package/docs/docs/cmd/spo/field/field-add.mdx +0 -75
  327. package/docs/docs/cmd/spo/field/field-get.mdx +0 -55
  328. package/docs/docs/cmd/spo/field/field-list.mdx +0 -55
  329. package/docs/docs/cmd/spo/field/field-remove.mdx +0 -67
  330. package/docs/docs/cmd/spo/field/field-set.mdx +0 -74
  331. package/docs/docs/cmd/spo/file/file-add.mdx +0 -160
  332. package/docs/docs/cmd/spo/file/file-checkin.mdx +0 -58
  333. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +0 -47
  334. package/docs/docs/cmd/spo/file/file-checkout.mdx +0 -40
  335. package/docs/docs/cmd/spo/file/file-copy.mdx +0 -83
  336. package/docs/docs/cmd/spo/file/file-get.mdx +0 -314
  337. package/docs/docs/cmd/spo/file/file-list.mdx +0 -134
  338. package/docs/docs/cmd/spo/file/file-move.mdx +0 -85
  339. package/docs/docs/cmd/spo/file/file-remove.mdx +0 -64
  340. package/docs/docs/cmd/spo/file/file-rename.mdx +0 -47
  341. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +0 -62
  342. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +0 -47
  343. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +0 -61
  344. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +0 -58
  345. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +0 -58
  346. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +0 -43
  347. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +0 -40
  348. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +0 -102
  349. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +0 -50
  350. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +0 -120
  351. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +0 -119
  352. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +0 -56
  353. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +0 -118
  354. package/docs/docs/cmd/spo/file/file-version-clear.mdx +0 -59
  355. package/docs/docs/cmd/spo/file/file-version-get.mdx +0 -89
  356. package/docs/docs/cmd/spo/file/file-version-list.mdx +0 -89
  357. package/docs/docs/cmd/spo/file/file-version-remove.mdx +0 -62
  358. package/docs/docs/cmd/spo/file/file-version-restore.mdx +0 -62
  359. package/docs/docs/cmd/spo/folder/folder-add.mdx +0 -115
  360. package/docs/docs/cmd/spo/folder/folder-copy.mdx +0 -84
  361. package/docs/docs/cmd/spo/folder/folder-get.mdx +0 -55
  362. package/docs/docs/cmd/spo/folder/folder-list.mdx +0 -121
  363. package/docs/docs/cmd/spo/folder/folder-move.mdx +0 -84
  364. package/docs/docs/cmd/spo/folder/folder-remove.mdx +0 -47
  365. package/docs/docs/cmd/spo/folder/folder-rename.mdx +0 -44
  366. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +0 -51
  367. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +0 -47
  368. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +0 -63
  369. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +0 -61
  370. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +0 -49
  371. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +0 -46
  372. package/docs/docs/cmd/spo/group/group-add.mdx +0 -55
  373. package/docs/docs/cmd/spo/group/group-get.mdx +0 -49
  374. package/docs/docs/cmd/spo/group/group-list.mdx +0 -37
  375. package/docs/docs/cmd/spo/group/group-member-add.mdx +0 -164
  376. package/docs/docs/cmd/spo/group/group-member-list.mdx +0 -40
  377. package/docs/docs/cmd/spo/group/group-member-remove.mdx +0 -77
  378. package/docs/docs/cmd/spo/group/group-remove.mdx +0 -43
  379. package/docs/docs/cmd/spo/group/group-set.mdx +0 -73
  380. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +0 -35
  381. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +0 -40
  382. package/docs/docs/cmd/spo/homesite/homesite-get.mdx +0 -86
  383. package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +0 -75
  384. package/docs/docs/cmd/spo/homesite/homesite-set.mdx +0 -127
  385. package/docs/docs/cmd/spo/hubsite/hubsite-connect.mdx +0 -69
  386. package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +0 -137
  387. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.mdx +0 -65
  388. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -190
  389. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -210
  390. package/docs/docs/cmd/spo/hubsite/hubsite-register.mdx +0 -133
  391. package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.mdx +0 -62
  392. package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.mdx +0 -56
  393. package/docs/docs/cmd/spo/hubsite/hubsite-set.mdx +0 -136
  394. package/docs/docs/cmd/spo/hubsite/hubsite-unregister.mdx +0 -55
  395. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.mdx +0 -67
  396. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.mdx +0 -78
  397. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.mdx +0 -74
  398. package/docs/docs/cmd/spo/list/list-add.mdx +0 -435
  399. package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +0 -194
  400. package/docs/docs/cmd/spo/list/list-contenttype-default-set.mdx +0 -56
  401. package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +0 -164
  402. package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +0 -59
  403. package/docs/docs/cmd/spo/list/list-get.mdx +0 -295
  404. package/docs/docs/cmd/spo/list/list-list.mdx +0 -226
  405. package/docs/docs/cmd/spo/list/list-remove.mdx +0 -47
  406. package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.mdx +0 -57
  407. package/docs/docs/cmd/spo/list/list-retentionlabel-get.mdx +0 -159
  408. package/docs/docs/cmd/spo/list/list-retentionlabel-remove.mdx +0 -56
  409. package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +0 -86
  410. package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +0 -65
  411. package/docs/docs/cmd/spo/list/list-roleinheritance-break.mdx +0 -75
  412. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.mdx +0 -62
  413. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +0 -73
  414. package/docs/docs/cmd/spo/list/list-set.mdx +0 -249
  415. package/docs/docs/cmd/spo/list/list-sitescript-get.mdx +0 -169
  416. package/docs/docs/cmd/spo/list/list-view-add.mdx +0 -272
  417. package/docs/docs/cmd/spo/list/list-view-field-add.mdx +0 -74
  418. package/docs/docs/cmd/spo/list/list-view-field-remove.mdx +0 -65
  419. package/docs/docs/cmd/spo/list/list-view-field-set.mdx +0 -74
  420. package/docs/docs/cmd/spo/list/list-view-get.mdx +0 -247
  421. package/docs/docs/cmd/spo/list/list-view-list.mdx +0 -198
  422. package/docs/docs/cmd/spo/list/list-view-remove.mdx +0 -74
  423. package/docs/docs/cmd/spo/list/list-view-set.mdx +0 -86
  424. package/docs/docs/cmd/spo/list/list-webhook-add.mdx +0 -121
  425. package/docs/docs/cmd/spo/list/list-webhook-get.mdx +0 -118
  426. package/docs/docs/cmd/spo/list/list-webhook-list.mdx +0 -110
  427. package/docs/docs/cmd/spo/list/list-webhook-remove.mdx +0 -62
  428. package/docs/docs/cmd/spo/list/list-webhook-set.mdx +0 -69
  429. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +0 -188
  430. package/docs/docs/cmd/spo/listitem/listitem-attachment-add.mdx +0 -110
  431. package/docs/docs/cmd/spo/listitem/listitem-attachment-get.mdx +0 -104
  432. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +0 -111
  433. package/docs/docs/cmd/spo/listitem/listitem-attachment-remove.mdx +0 -58
  434. package/docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx +0 -58
  435. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +0 -71
  436. package/docs/docs/cmd/spo/listitem/listitem-batch-set.mdx +0 -71
  437. package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -331
  438. package/docs/docs/cmd/spo/listitem/listitem-isrecord.mdx +0 -88
  439. package/docs/docs/cmd/spo/listitem/listitem-list.mdx +0 -193
  440. package/docs/docs/cmd/spo/listitem/listitem-record-declare.mdx +0 -115
  441. package/docs/docs/cmd/spo/listitem/listitem-record-lock.mdx +0 -56
  442. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.mdx +0 -56
  443. package/docs/docs/cmd/spo/listitem/listitem-record-unlock.mdx +0 -56
  444. package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +0 -62
  445. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +0 -75
  446. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +0 -59
  447. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +0 -89
  448. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +0 -75
  449. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.mdx +0 -78
  450. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.mdx +0 -59
  451. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +0 -186
  452. package/docs/docs/cmd/spo/mail/mail-send.mdx +0 -69
  453. package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +0 -144
  454. package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +0 -105
  455. package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +0 -106
  456. package/docs/docs/cmd/spo/navigation/navigation-node-remove.mdx +0 -47
  457. package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +0 -72
  458. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +0 -65
  459. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +0 -107
  460. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.mdx +0 -83
  461. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.mdx +0 -69
  462. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.mdx +0 -49
  463. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.mdx +0 -42
  464. package/docs/docs/cmd/spo/page/page-add.mdx +0 -110
  465. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +0 -92
  466. package/docs/docs/cmd/spo/page/page-column-get.mdx +0 -129
  467. package/docs/docs/cmd/spo/page/page-column-list.mdx +0 -96
  468. package/docs/docs/cmd/spo/page/page-control-get.mdx +0 -133
  469. package/docs/docs/cmd/spo/page/page-control-list.mdx +0 -129
  470. package/docs/docs/cmd/spo/page/page-control-set.mdx +0 -60
  471. package/docs/docs/cmd/spo/page/page-copy.mdx +0 -165
  472. package/docs/docs/cmd/spo/page/page-get.mdx +0 -188
  473. package/docs/docs/cmd/spo/page/page-header-set.mdx +0 -90
  474. package/docs/docs/cmd/spo/page/page-list.mdx +0 -211
  475. package/docs/docs/cmd/spo/page/page-remove.mdx +0 -50
  476. package/docs/docs/cmd/spo/page/page-section-add.mdx +0 -69
  477. package/docs/docs/cmd/spo/page/page-section-get.mdx +0 -92
  478. package/docs/docs/cmd/spo/page/page-section-list.mdx +0 -93
  479. package/docs/docs/cmd/spo/page/page-set.mdx +0 -130
  480. package/docs/docs/cmd/spo/page/page-template-list.mdx +0 -126
  481. package/docs/docs/cmd/spo/page/page-text-add.mdx +0 -63
  482. package/docs/docs/cmd/spo/propertybag/propertybag-get.mdx +0 -94
  483. package/docs/docs/cmd/spo/propertybag/propertybag-list.mdx +0 -106
  484. package/docs/docs/cmd/spo/propertybag/propertybag-remove.mdx +0 -65
  485. package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +0 -69
  486. package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +0 -92
  487. package/docs/docs/cmd/spo/report/report-activitypages.mdx +0 -89
  488. package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +0 -97
  489. package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +0 -110
  490. package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +0 -113
  491. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +0 -95
  492. package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +0 -90
  493. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +0 -95
  494. package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +0 -90
  495. package/docs/docs/cmd/spo/roledefinition/roledefinition-add.mdx +0 -51
  496. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.mdx +0 -139
  497. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.mdx +0 -132
  498. package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.mdx +0 -44
  499. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.mdx +0 -118
  500. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +0 -97
  501. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.mdx +0 -48
  502. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.mdx +0 -117
  503. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.mdx +0 -48
  504. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.mdx +0 -94
  505. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.mdx +0 -116
  506. package/docs/docs/cmd/spo/site/site-add.mdx +0 -218
  507. package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +0 -44
  508. package/docs/docs/cmd/spo/site/site-appcatalog-list.mdx +0 -94
  509. package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +0 -46
  510. package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +0 -109
  511. package/docs/docs/cmd/spo/site/site-apppermission-get.mdx +0 -86
  512. package/docs/docs/cmd/spo/site/site-apppermission-list.mdx +0 -99
  513. package/docs/docs/cmd/spo/site/site-apppermission-remove.mdx +0 -56
  514. package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +0 -118
  515. package/docs/docs/cmd/spo/site/site-chrome-set.mdx +0 -68
  516. package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +0 -58
  517. package/docs/docs/cmd/spo/site/site-ensure.mdx +0 -198
  518. package/docs/docs/cmd/spo/site/site-get.mdx +0 -211
  519. package/docs/docs/cmd/spo/site/site-groupify.mdx +0 -132
  520. package/docs/docs/cmd/spo/site/site-hubsite-connect.mdx +0 -45
  521. package/docs/docs/cmd/spo/site/site-hubsite-disconnect.mdx +0 -45
  522. package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.mdx +0 -36
  523. package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.mdx +0 -41
  524. package/docs/docs/cmd/spo/site/site-list.mdx +0 -310
  525. package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +0 -52
  526. package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +0 -124
  527. package/docs/docs/cmd/spo/site/site-recyclebinitem-move.mdx +0 -47
  528. package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +0 -52
  529. package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +0 -35
  530. package/docs/docs/cmd/spo/site/site-remove.mdx +0 -76
  531. package/docs/docs/cmd/spo/site/site-rename.mdx +0 -157
  532. package/docs/docs/cmd/spo/site/site-set.mdx +0 -195
  533. package/docs/docs/cmd/spo/sitedesign/sitedesign-add.mdx +0 -183
  534. package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.mdx +0 -169
  535. package/docs/docs/cmd/spo/sitedesign/sitedesign-get.mdx +0 -162
  536. package/docs/docs/cmd/spo/sitedesign/sitedesign-list.mdx +0 -121
  537. package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.mdx +0 -49
  538. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.mdx +0 -54
  539. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.mdx +0 -92
  540. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.mdx +0 -56
  541. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.mdx +0 -107
  542. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +0 -104
  543. package/docs/docs/cmd/spo/sitedesign/sitedesign-set.mdx +0 -197
  544. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.mdx +0 -93
  545. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.mdx +0 -92
  546. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.mdx +0 -45
  547. package/docs/docs/cmd/spo/sitescript/sitescript-add.mdx +0 -117
  548. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +0 -98
  549. package/docs/docs/cmd/spo/sitescript/sitescript-list.mdx +0 -87
  550. package/docs/docs/cmd/spo/sitescript/sitescript-remove.mdx +0 -49
  551. package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +0 -111
  552. package/docs/docs/cmd/spo/spo-get.mdx +0 -72
  553. package/docs/docs/cmd/spo/spo-search.mdx +0 -167
  554. package/docs/docs/cmd/spo/spo-set.mdx +0 -36
  555. package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +0 -89
  556. package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +0 -90
  557. package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +0 -58
  558. package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +0 -60
  559. package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +0 -70
  560. package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +0 -66
  561. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +0 -69
  562. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +0 -156
  563. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +0 -113
  564. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +0 -53
  565. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +0 -90
  566. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +0 -183
  567. package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +0 -155
  568. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +0 -112
  569. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +0 -53
  570. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +0 -76
  571. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +0 -98
  572. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +0 -54
  573. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +0 -97
  574. package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +0 -760
  575. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +0 -318
  576. package/docs/docs/cmd/spo/term/term-add.mdx +0 -204
  577. package/docs/docs/cmd/spo/term/term-get.mdx +0 -176
  578. package/docs/docs/cmd/spo/term/term-group-add.mdx +0 -113
  579. package/docs/docs/cmd/spo/term/term-group-get.mdx +0 -121
  580. package/docs/docs/cmd/spo/term/term-group-list.mdx +0 -111
  581. package/docs/docs/cmd/spo/term/term-list.mdx +0 -278
  582. package/docs/docs/cmd/spo/term/term-set-add.mdx +0 -169
  583. package/docs/docs/cmd/spo/term/term-set-get.mdx +0 -145
  584. package/docs/docs/cmd/spo/term/term-set-list.mdx +0 -135
  585. package/docs/docs/cmd/spo/theme/theme-apply.mdx +0 -90
  586. package/docs/docs/cmd/spo/theme/theme-get.mdx +0 -114
  587. package/docs/docs/cmd/spo/theme/theme-list.mdx +0 -87
  588. package/docs/docs/cmd/spo/theme/theme-remove.mdx +0 -53
  589. package/docs/docs/cmd/spo/theme/theme-set.mdx +0 -95
  590. package/docs/docs/cmd/spo/user/user-ensure.mdx +0 -122
  591. package/docs/docs/cmd/spo/user/user-get.mdx +0 -137
  592. package/docs/docs/cmd/spo/user/user-list.mdx +0 -103
  593. package/docs/docs/cmd/spo/user/user-remove.mdx +0 -55
  594. package/docs/docs/cmd/spo/userprofile/userprofile-get.mdx +0 -649
  595. package/docs/docs/cmd/spo/userprofile/userprofile-set.mdx +0 -48
  596. package/docs/docs/cmd/spo/web/web-add.mdx +0 -138
  597. package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.mdx +0 -83
  598. package/docs/docs/cmd/spo/web/web-get.mdx +0 -561
  599. package/docs/docs/cmd/spo/web/web-installedlanguage-list.mdx +0 -83
  600. package/docs/docs/cmd/spo/web/web-list.mdx +0 -135
  601. package/docs/docs/cmd/spo/web/web-reindex.mdx +0 -36
  602. package/docs/docs/cmd/spo/web/web-remove.mdx +0 -35
  603. package/docs/docs/cmd/spo/web/web-retentionlabel-list.mdx +0 -115
  604. package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +0 -65
  605. package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +0 -62
  606. package/docs/docs/cmd/spo/web/web-roleinheritance-break.mdx +0 -48
  607. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.mdx +0 -41
  608. package/docs/docs/cmd/spo/web/web-set.mdx +0 -121
  609. package/docs/docs/cmd/status.mdx +0 -86
  610. package/docs/docs/cmd/teams/app/app-install.mdx +0 -57
  611. package/docs/docs/cmd/teams/app/app-list.mdx +0 -91
  612. package/docs/docs/cmd/teams/app/app-publish.mdx +0 -92
  613. package/docs/docs/cmd/teams/app/app-remove.mdx +0 -48
  614. package/docs/docs/cmd/teams/app/app-uninstall.mdx +0 -43
  615. package/docs/docs/cmd/teams/app/app-update.mdx +0 -48
  616. package/docs/docs/cmd/teams/cache/cache-remove.mdx +0 -58
  617. package/docs/docs/cmd/teams/channel/channel-add.mdx +0 -132
  618. package/docs/docs/cmd/teams/channel/channel-get.mdx +0 -122
  619. package/docs/docs/cmd/teams/channel/channel-list.mdx +0 -112
  620. package/docs/docs/cmd/teams/channel/channel-member-add.mdx +0 -62
  621. package/docs/docs/cmd/teams/channel/channel-member-list.mdx +0 -119
  622. package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +0 -59
  623. package/docs/docs/cmd/teams/channel/channel-member-set.mdx +0 -121
  624. package/docs/docs/cmd/teams/channel/channel-remove.mdx +0 -70
  625. package/docs/docs/cmd/teams/channel/channel-set.mdx +0 -53
  626. package/docs/docs/cmd/teams/chat/chat-get.mdx +0 -131
  627. package/docs/docs/cmd/teams/chat/chat-list.mdx +0 -116
  628. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +0 -66
  629. package/docs/docs/cmd/teams/chat/chat-member-list.mdx +0 -93
  630. package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +0 -56
  631. package/docs/docs/cmd/teams/chat/chat-message-list.mdx +0 -121
  632. package/docs/docs/cmd/teams/chat/chat-message-send.mdx +0 -63
  633. package/docs/docs/cmd/teams/funsettings/funsettings-list.mdx +0 -82
  634. package/docs/docs/cmd/teams/funsettings/funsettings-set.mdx +0 -62
  635. package/docs/docs/cmd/teams/guestsettings/guestsettings-list.mdx +0 -76
  636. package/docs/docs/cmd/teams/guestsettings/guestsettings-set.mdx +0 -44
  637. package/docs/docs/cmd/teams/meeting/meeting-attendancereport-list.mdx +0 -82
  638. package/docs/docs/cmd/teams/meeting/meeting-get.mdx +0 -175
  639. package/docs/docs/cmd/teams/meeting/meeting-list.mdx +0 -205
  640. package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +0 -116
  641. package/docs/docs/cmd/teams/membersettings/membersettings-list.mdx +0 -88
  642. package/docs/docs/cmd/teams/membersettings/membersettings-set.mdx +0 -53
  643. package/docs/docs/cmd/teams/message/message-get.mdx +0 -163
  644. package/docs/docs/cmd/teams/message/message-list.mdx +0 -152
  645. package/docs/docs/cmd/teams/message/message-reply-list.mdx +0 -146
  646. package/docs/docs/cmd/teams/message/message-send.mdx +0 -132
  647. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.mdx +0 -87
  648. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.mdx +0 -53
  649. package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +0 -95
  650. package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +0 -96
  651. package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +0 -114
  652. package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +0 -115
  653. package/docs/docs/cmd/teams/report/report-pstncalls.mdx +0 -119
  654. package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +0 -99
  655. package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +0 -93
  656. package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +0 -127
  657. package/docs/docs/cmd/teams/tab/tab-add.mdx +0 -120
  658. package/docs/docs/cmd/teams/tab/tab-get.mdx +0 -115
  659. package/docs/docs/cmd/teams/tab/tab-list.mdx +0 -115
  660. package/docs/docs/cmd/teams/tab/tab-remove.mdx +0 -51
  661. package/docs/docs/cmd/teams/team/team-add.mdx +0 -291
  662. package/docs/docs/cmd/teams/team/team-app-list.mdx +0 -108
  663. package/docs/docs/cmd/teams/team/team-archive.mdx +0 -59
  664. package/docs/docs/cmd/teams/team/team-clone.mdx +0 -59
  665. package/docs/docs/cmd/teams/team/team-get.mdx +0 -155
  666. package/docs/docs/cmd/teams/team/team-list.mdx +0 -174
  667. package/docs/docs/cmd/teams/team/team-remove.mdx +0 -60
  668. package/docs/docs/cmd/teams/team/team-set.mdx +0 -53
  669. package/docs/docs/cmd/teams/team/team-unarchive.mdx +0 -49
  670. package/docs/docs/cmd/teams/user/user-app-add.mdx +0 -39
  671. package/docs/docs/cmd/teams/user/user-app-list.mdx +0 -109
  672. package/docs/docs/cmd/teams/user/user-app-remove.mdx +0 -43
  673. package/docs/docs/cmd/teams/user/user-list.mdx +0 -95
  674. package/docs/docs/cmd/tenant/id/id-get.mdx +0 -74
  675. package/docs/docs/cmd/tenant/info/info-get.mdx +0 -101
  676. package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +0 -95
  677. package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +0 -122
  678. package/docs/docs/cmd/tenant/report/report-office365activationcounts.mdx +0 -72
  679. package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.mdx +0 -70
  680. package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.mdx +0 -76
  681. package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +0 -101
  682. package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +0 -172
  683. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.mdx +0 -173
  684. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.mdx +0 -174
  685. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.mdx +0 -126
  686. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +0 -124
  687. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +0 -127
  688. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +0 -121
  689. package/docs/docs/cmd/todo/list/list-add.mdx +0 -85
  690. package/docs/docs/cmd/todo/list/list-get.mdx +0 -93
  691. package/docs/docs/cmd/todo/list/list-list.mdx +0 -82
  692. package/docs/docs/cmd/todo/list/list-remove.mdx +0 -44
  693. package/docs/docs/cmd/todo/list/list-set.mdx +0 -44
  694. package/docs/docs/cmd/todo/task/task-add.mdx +0 -178
  695. package/docs/docs/cmd/todo/task/task-get.mdx +0 -110
  696. package/docs/docs/cmd/todo/task/task-list.mdx +0 -115
  697. package/docs/docs/cmd/todo/task/task-remove.mdx +0 -48
  698. package/docs/docs/cmd/todo/task/task-set.mdx +0 -187
  699. package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +0 -95
  700. package/docs/docs/cmd/version.mdx +0 -59
  701. package/docs/docs/cmd/viva/connections/connections-app-create.mdx +0 -81
  702. package/docs/docs/cmd/yammer/group/group-list.mdx +0 -174
  703. package/docs/docs/cmd/yammer/group/group-user-add.mdx +0 -60
  704. package/docs/docs/cmd/yammer/group/group-user-remove.mdx +0 -58
  705. package/docs/docs/cmd/yammer/message/message-add.mdx +0 -175
  706. package/docs/docs/cmd/yammer/message/message-get.mdx +0 -148
  707. package/docs/docs/cmd/yammer/message/message-like-set.mdx +0 -58
  708. package/docs/docs/cmd/yammer/message/message-list.mdx +0 -201
  709. package/docs/docs/cmd/yammer/message/message-remove.mdx +0 -55
  710. package/docs/docs/cmd/yammer/network/network-list.mdx +0 -218
  711. package/docs/docs/cmd/yammer/report/report-activitycounts.mdx +0 -91
  712. package/docs/docs/cmd/yammer/report/report-activityusercounts.mdx +0 -91
  713. package/docs/docs/cmd/yammer/report/report-activityuserdetail.mdx +0 -109
  714. package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.mdx +0 -93
  715. package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.mdx +0 -94
  716. package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.mdx +0 -111
  717. package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.mdx +0 -91
  718. package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.mdx +0 -110
  719. package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.mdx +0 -90
  720. package/docs/docs/cmd/yammer/user/user-get.mdx +0 -223
  721. package/docs/docs/cmd/yammer/user/user-list.mdx +0 -228
  722. package/docs/docs/cmd/yammer/yammer-search.mdx +0 -173
  723. package/eslint-rules/lib/index.js +0 -4
  724. package/eslint-rules/lib/rules/correct-command-class-name.js +0 -116
  725. package/eslint-rules/lib/rules/correct-command-name.js +0 -65
  726. package/eslint-rules/package-lock.json +0 -12
  727. package/eslint-rules/package.json +0 -5
@@ -25,7 +25,7 @@ class Page {
25
25
  }
26
26
  const pageName = this.getPageNameWithExtension(name);
27
27
  const requestOptions = {
28
- url: `${webUrl}/_api/web/getfilebyserverrelativeurl('${urlUtil_1.urlUtil.getServerRelativeSiteUrl(webUrl)}/SitePages/${formatting_1.formatting.encodeQueryParameter(pageName)}')?$expand=ListItemAllFields/ClientSideApplicationId`,
28
+ url: `${webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${urlUtil_1.urlUtil.getServerRelativeSiteUrl(webUrl)}/SitePages/${formatting_1.formatting.encodeQueryParameter(pageName)}')?$expand=ListItemAllFields/ClientSideApplicationId`,
29
29
  headers: {
30
30
  'content-type': 'application/json;charset=utf-8',
31
31
  accept: 'application/json;odata=nometadata'
@@ -39,7 +39,7 @@ class Page {
39
39
  return clientsidepages_1.ClientSidePage.fromHtml(res.ListItemAllFields.CanvasContent1);
40
40
  });
41
41
  }
42
- static checkout(name, webUrl, logger, debug, verbose) {
42
+ static checkout(name, webUrl, logger, verbose) {
43
43
  return __awaiter(this, void 0, void 0, function* () {
44
44
  if (verbose) {
45
45
  logger.log(`Checking out ${name} page...`);
@@ -88,10 +88,28 @@ class Page {
88
88
  return output;
89
89
  }
90
90
  static getSectionInformation(section, isJSONOutput) {
91
- return {
92
- order: section.order,
93
- columns: section.columns.map(column => this.getColumnsInformation(column, isJSONOutput))
91
+ const sectionOutput = {
92
+ order: section.order
94
93
  };
94
+ sectionOutput.columns = section.columns.map(column => this.getColumnsInformation(column, isJSONOutput));
95
+ return sectionOutput;
96
+ }
97
+ /**
98
+ * Publish a modern page in SharePoint Online
99
+ * @param webUrl Absolute URL of the SharePoint site where the page is located
100
+ * @param pageName List relative url of the page to publish
101
+ */
102
+ static publishPage(webUrl, pageName) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ const filePath = `${urlUtil_1.urlUtil.getServerRelativeSiteUrl(webUrl)}/SitePages/${pageName}`;
105
+ const requestOptions = {
106
+ url: `${webUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl='${formatting_1.formatting.encodeQueryParameter(filePath)}')/Publish()`,
107
+ headers: {
108
+ accept: 'application/json;odata=nometadata'
109
+ }
110
+ };
111
+ yield request_1.default.post(requestOptions);
112
+ });
95
113
  }
96
114
  static getPageNameWithExtension(name) {
97
115
  let pageName = name;
@@ -15,7 +15,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _SpoPageAddCommand_instances, _SpoPageAddCommand_initTelemetry, _SpoPageAddCommand_initOptions, _SpoPageAddCommand_initValidators;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- const Auth_1 = require("../../../../Auth");
19
18
  const request_1 = require("../../../../request");
20
19
  const formatting_1 = require("../../../../utils/formatting");
21
20
  const spo_1 = require("../../../../utils/spo");
@@ -24,9 +23,6 @@ const validation_1 = require("../../../../utils/validation");
24
23
  const SpoCommand_1 = require("../../../base/SpoCommand");
25
24
  const commands_1 = require("../../commands");
26
25
  const Page_1 = require("./Page");
27
- const spoFileGetCommand = require("../file/file-get");
28
- const spoListItemSetCommand = require("../listitem/listitem-set");
29
- const Cli_1 = require("../../../../cli/Cli");
30
26
  class SpoPageAddCommand extends SpoCommand_1.default {
31
27
  get name() {
32
28
  return commands_1.default.PAGE_ADD;
@@ -43,16 +39,14 @@ class SpoPageAddCommand extends SpoCommand_1.default {
43
39
  }
44
40
  commandAction(logger, args) {
45
41
  return __awaiter(this, void 0, void 0, function* () {
46
- const resource = Auth_1.Auth.getResourceFromUrl(args.options.webUrl);
47
42
  let requestDigest = '';
48
43
  let itemId = '';
49
44
  let pageName = args.options.name;
50
- const serverRelativeSiteUrl = urlUtil_1.urlUtil.getServerRelativeSiteUrl(args.options.webUrl);
51
45
  const fileNameWithoutExtension = pageName.replace('.aspx', '');
52
46
  let bannerImageUrl = '';
53
47
  let canvasContent1 = '';
54
48
  let layoutWebpartsContent = '';
55
- const pageTitle = args.options.title ? args.options.title : (args.options.name.indexOf('.aspx') > -1 ? args.options.name.substr(0, args.options.name.indexOf('.aspx')) : args.options.name);
49
+ const pageTitle = args.options.title ? args.options.title : (args.options.name.indexOf('.aspx') > -1 ? args.options.name.substring(0, args.options.name.indexOf('.aspx')) : args.options.name);
56
50
  let pageId = null;
57
51
  const pageDescription = args.options.description || "";
58
52
  if (!pageName.endsWith('.aspx')) {
@@ -64,40 +58,24 @@ class SpoPageAddCommand extends SpoCommand_1.default {
64
58
  const reqDigest = yield spo_1.spo.getRequestDigest(args.options.webUrl);
65
59
  requestDigest = reqDigest.FormDigestValue;
66
60
  let requestOptions = {
67
- url: `${args.options.webUrl}/_api/web/getfolderbyserverrelativeurl('${serverRelativeSiteUrl}/sitepages')/files/AddTemplateFile`,
61
+ url: `${args.options.webUrl}/_api/sitepages/pages`,
62
+ responseType: 'json',
68
63
  headers: {
69
- 'X-RequestDigest': requestDigest,
70
64
  'content-type': 'application/json;odata=nometadata',
71
65
  accept: 'application/json;odata=nometadata'
72
66
  },
73
67
  data: {
74
- urlOfFile: `${serverRelativeSiteUrl}/sitepages/${pageName}`,
75
- templateFileType: 3
76
- },
77
- responseType: 'json'
68
+ PageLayoutType: args.options.layoutType || 'Article',
69
+ Name: pageName,
70
+ PromotedState: args.options.promoteAs === 'NewsPage' ? 2 : 0,
71
+ Title: pageTitle
72
+ }
78
73
  };
79
74
  const template = yield request_1.default.post(requestOptions);
80
75
  itemId = template.UniqueId;
81
- const listItemId = yield this.getFileListItemId(args.options.webUrl, serverRelativeFileUrl);
82
- const layoutType = args.options.layoutType || 'Article';
83
- const listItemSetOptions = {
84
- webUrl: args.options.webUrl,
85
- listUrl: listServerRelativeUrl,
86
- id: listItemId,
87
- systemUpdate: true,
88
- ContentTypeId: '0x0101009D1CB255DA76424F860D91F20E6C4118',
89
- Title: pageTitle,
90
- ClientSideApplicationId: 'b6917cb1-93a0-4b97-a84d-7cf49975d4ec',
91
- PageLayoutType: layoutType,
92
- verbose: this.verbose,
93
- debug: this.debug
94
- };
95
- if (args.options.layoutType === 'Article') {
96
- listItemSetOptions.PromotedState = 0;
97
- listItemSetOptions.BannerImageUrl = `${resource}/_layouts/15/images/sitepagethumbnail.png, /_layouts/15/images/sitepagethumbnail.png`;
98
- }
99
- yield Cli_1.Cli.executeCommand(spoListItemSetCommand, { options: Object.assign(Object.assign({}, listItemSetOptions), { _: [] }) });
100
- const pageProps = yield Page_1.Page.checkout(pageName, args.options.webUrl, logger, this.debug, this.verbose);
76
+ const file = yield spo_1.spo.getFileAsListItemByUrl(args.options.webUrl, serverRelativeFileUrl, logger, this.verbose);
77
+ const listItemId = file.Id;
78
+ const pageProps = yield Page_1.Page.checkout(pageName, args.options.webUrl, logger, this.verbose);
101
79
  if (pageProps) {
102
80
  pageId = pageProps.Id;
103
81
  bannerImageUrl = pageProps.BannerImageUrl;
@@ -125,16 +103,11 @@ class SpoPageAddCommand extends SpoCommand_1.default {
125
103
  break;
126
104
  case 'NewsPage':
127
105
  const listItemSetOptions = {
128
- webUrl: args.options.webUrl,
129
- listUrl: listServerRelativeUrl,
130
- id: listItemId,
131
- systemUpdate: true,
132
- PromotedState: 2,
133
- FirstPublishedDate: new Date().toISOString(),
134
- verbose: this.verbose,
135
- debug: this.debug
106
+ FirstPublishedDate: new Date().toISOString()
136
107
  };
137
- yield Cli_1.Cli.executeCommand(spoListItemSetCommand, { options: Object.assign(Object.assign({}, listItemSetOptions), { _: [] }) });
108
+ const listUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, listServerRelativeUrl);
109
+ const requestUrl = `${args.options.webUrl}/_api/web/GetList('${formatting_1.formatting.encodeQueryParameter(listUrl)}')`;
110
+ yield spo_1.spo.systemUpdateListItem(requestUrl, listItemId, logger, this.verbose, listItemSetOptions);
138
111
  break;
139
112
  case 'Template':
140
113
  requestOptions.url = `${args.options.webUrl}/_api/SitePages/Pages(${listItemId})/SavePageAsTemplate`;
@@ -246,20 +219,6 @@ class SpoPageAddCommand extends SpoCommand_1.default {
246
219
  }
247
220
  });
248
221
  }
249
- getFileListItemId(webUrl, serverRelativeFileUrl) {
250
- return __awaiter(this, void 0, void 0, function* () {
251
- const fileGetOptions = {
252
- webUrl: webUrl,
253
- url: serverRelativeFileUrl,
254
- asListItem: true,
255
- verbose: this.verbose,
256
- debug: this.debug
257
- };
258
- const fileGetOutput = yield Cli_1.Cli.executeCommandWithOutput(spoFileGetCommand, { options: Object.assign(Object.assign({}, fileGetOptions), { _: [] }) });
259
- const fileGetOutputJson = JSON.parse(fileGetOutput.stdout);
260
- return fileGetOutputJson.Id;
261
- });
262
- }
263
222
  }
264
223
  _SpoPageAddCommand_instances = new WeakSet(), _SpoPageAddCommand_initTelemetry = function _SpoPageAddCommand_initTelemetry() {
265
224
  this.telemetry.push((args) => {
@@ -62,7 +62,7 @@ class SpoPageControlSetCommand extends SpoCommand_1.default {
62
62
  logger.logToStderr(`Control with ID ${args.options.id} found on the page`);
63
63
  }
64
64
  // Check out the page
65
- const page = yield Page_1.Page.checkout(pageName, args.options.webUrl, logger, this.debug, this.verbose);
65
+ const page = yield Page_1.Page.checkout(pageName, args.options.webUrl, logger, this.verbose);
66
66
  // Update the web part data
67
67
  const canvasContent = JSON.parse(page.CanvasContent1);
68
68
  if (this.debug) {
@@ -65,7 +65,7 @@ class SpoPageSetCommand extends SpoCommand_1.default {
65
65
  try {
66
66
  const requestDigestResult = yield spo_1.spo.getRequestDigest(args.options.webUrl);
67
67
  const requestDigest = requestDigestResult.FormDigestValue;
68
- const page = yield Page_1.Page.checkout(args.options.name, args.options.webUrl, logger, this.debug, this.verbose);
68
+ const page = yield Page_1.Page.checkout(args.options.name, args.options.webUrl, logger, this.verbose);
69
69
  if (page) {
70
70
  pageTitle = pageTitle || page.Title;
71
71
  pageId = page.Id;
package/dist/utils/spo.js CHANGED
@@ -1326,6 +1326,151 @@ exports.spo = {
1326
1326
  const webProperties = yield request_1.default.get(requestOptions);
1327
1327
  return webProperties;
1328
1328
  });
1329
+ },
1330
+ /**
1331
+ * Gets a file as list item by url
1332
+ * @param absoluteListUrl The absolute url to the list
1333
+ * @param url The url of the file
1334
+ * @param logger The logger object
1335
+ * @param verbose If in verbose mode
1336
+ * @returns The list item object
1337
+ */
1338
+ getFileAsListItemByUrl(absoluteListUrl, url, logger, verbose) {
1339
+ return __awaiter(this, void 0, void 0, function* () {
1340
+ if (verbose && logger) {
1341
+ yield logger.logToStderr(`Getting the file properties with url ${url}`);
1342
+ }
1343
+ const serverRelativePath = urlUtil_1.urlUtil.getServerRelativePath(absoluteListUrl, url);
1344
+ const requestUrl = `${absoluteListUrl}/_api/web/GetFileByServerRelativePath(DecodedUrl=@f)?$expand=ListItemAllFields&@f='${formatting_1.formatting.encodeQueryParameter(serverRelativePath)}'`;
1345
+ const requestOptions = {
1346
+ url: requestUrl,
1347
+ headers: {
1348
+ 'accept': 'application/json;odata=nometadata'
1349
+ },
1350
+ responseType: 'json'
1351
+ };
1352
+ const file = yield request_1.default.get(requestOptions);
1353
+ return file.ListItemAllFields;
1354
+ });
1355
+ },
1356
+ /**
1357
+ * Updates a list item with system update
1358
+ * @param absoluteListUrl The absolute base URL without query parameters, pointing to the specific list where the item resides. This URL should represent the list.
1359
+ * @param itemId The id of the list item
1360
+ * @param properties An object of the properties that should be updated
1361
+ * @param contentTypeName The name of the content type to update
1362
+ * @param logger The logger object
1363
+ * @param verbose If in verbose mode
1364
+ * @returns The updated list item object
1365
+ */
1366
+ systemUpdateListItem(absoluteListUrl, itemId, logger, verbose, properties, contentTypeName) {
1367
+ return __awaiter(this, void 0, void 0, function* () {
1368
+ if (!properties && !contentTypeName) {
1369
+ // Neither properties nor contentTypeName provided, no need to proceed
1370
+ throw 'Either properties or contentTypeName must be provided for systemUpdateListItem.';
1371
+ }
1372
+ const parsedUrl = new URL(absoluteListUrl);
1373
+ const serverRelativeSiteMatch = absoluteListUrl.match(new RegExp('/sites/[^/]+'));
1374
+ const webUrl = `${parsedUrl.protocol}//${parsedUrl.host}${serverRelativeSiteMatch !== null && serverRelativeSiteMatch !== void 0 ? serverRelativeSiteMatch : ''}`;
1375
+ if (verbose && logger) {
1376
+ yield logger.logToStderr(`Getting list id...`);
1377
+ }
1378
+ const listRequestOptions = {
1379
+ url: `${absoluteListUrl}?$select=Id`,
1380
+ headers: {
1381
+ 'accept': 'application/json;odata=nometadata'
1382
+ },
1383
+ responseType: 'json'
1384
+ };
1385
+ const list = yield request_1.default.get(listRequestOptions);
1386
+ const listId = list.Id;
1387
+ if (verbose && logger) {
1388
+ yield logger.logToStderr(`Getting request digest for systemUpdate request`);
1389
+ }
1390
+ const res = yield exports.spo.getRequestDigest(webUrl);
1391
+ const formDigestValue = res.FormDigestValue;
1392
+ const objectIdentity = yield exports.spo.requestObjectIdentity(webUrl, logger, verbose);
1393
+ let index = 0;
1394
+ const requestBodyOptions = properties ? Object.keys(properties).map(key => `
1395
+ <Method Name="ParseAndSetFieldValue" Id="${++index}" ObjectPathId="147">
1396
+ <Parameters>
1397
+ <Parameter Type="String">${key}</Parameter>
1398
+ <Parameter Type="String">${properties[key].toString()}</Parameter>
1399
+ </Parameters>
1400
+ </Method>`) : [];
1401
+ const additionalContentType = contentTypeName ? `
1402
+ <Method Name="ParseAndSetFieldValue" Id="${++index}" ObjectPathId="147">
1403
+ <Parameters>
1404
+ <Parameter Type="String">ContentType</Parameter>
1405
+ <Parameter Type="String">${contentTypeName}</Parameter>
1406
+ </Parameters>
1407
+ </Method>` : '';
1408
+ const requestBody = `<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">
1409
+ <Actions>
1410
+ ${requestBodyOptions.join('')}${additionalContentType}
1411
+ <Method Name="SystemUpdate" Id="${++index}" ObjectPathId="147" />
1412
+ </Actions>
1413
+ <ObjectPaths>
1414
+ <Identity Id="147" Name="${objectIdentity}:list:${listId}:item:${itemId},1" />
1415
+ </ObjectPaths>
1416
+ </Request>`;
1417
+ const requestOptions = {
1418
+ url: `${webUrl}/_vti_bin/client.svc/ProcessQuery`,
1419
+ headers: {
1420
+ 'Content-Type': 'text/xml',
1421
+ 'X-RequestDigest': formDigestValue
1422
+ },
1423
+ data: requestBody
1424
+ };
1425
+ const response = yield request_1.default.post(requestOptions);
1426
+ if (response.indexOf("ErrorMessage") > -1) {
1427
+ throw `Error occurred in systemUpdate operation - ${response}`;
1428
+ }
1429
+ const id = Number(itemId);
1430
+ const requestOptionsItems = {
1431
+ url: `${absoluteListUrl}/items(${id})`,
1432
+ headers: {
1433
+ 'accept': 'application/json;odata=nometadata'
1434
+ },
1435
+ responseType: 'json'
1436
+ };
1437
+ const itemsResponse = yield request_1.default.get(requestOptionsItems);
1438
+ return (itemsResponse);
1439
+ });
1440
+ },
1441
+ /**
1442
+ * Retrieves the ObjectIdentity from a SharePoint site
1443
+ * @param webUrl web url
1444
+ * @param logger The logger object
1445
+ * @param verbose If in verbose mode
1446
+ * @return The ObjectIdentity as string
1447
+ */
1448
+ requestObjectIdentity(webUrl, logger, verbose) {
1449
+ return __awaiter(this, void 0, void 0, function* () {
1450
+ const res = yield exports.spo.getRequestDigest(webUrl);
1451
+ const formDigestValue = res.FormDigestValue;
1452
+ const requestOptions = {
1453
+ url: `${webUrl}/_vti_bin/client.svc/ProcessQuery`,
1454
+ headers: {
1455
+ 'X-RequestDigest': formDigestValue
1456
+ },
1457
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><Query Id="1" ObjectPathId="5"><Query SelectAllProperties="false"><Properties><Property Name="ServerRelativeUrl" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Property Id="5" ParentId="3" Name="Web" /><StaticProperty Id="3" TypeId="{3747adcd-a3c3-41b9-bfab-4a64dd2f1e0a}" Name="Current" /></ObjectPaths></Request>`
1458
+ };
1459
+ const response = yield request_1.default.post(requestOptions);
1460
+ if (verbose) {
1461
+ yield logger.logToStderr('Attempt to get _ObjectIdentity_ key values');
1462
+ }
1463
+ const json = JSON.parse(response);
1464
+ const contents = json.find(x => { return x.ErrorInfo; });
1465
+ if (contents && contents.ErrorInfo) {
1466
+ throw contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error';
1467
+ }
1468
+ const identityObject = json.find(x => { return x._ObjectIdentity_; });
1469
+ if (identityObject) {
1470
+ return identityObject._ObjectIdentity_;
1471
+ }
1472
+ throw 'Cannot proceed. _ObjectIdentity_ not found'; // this is not supposed to happen
1473
+ });
1329
1474
  }
1330
1475
  };
1331
1476
  //# sourceMappingURL=spo.js.map