@pnp/cli-microsoft365 7.0.0-beta.4ebf3ad → 7.0.0-beta.515b009

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 (291) hide show
  1. package/.eslintrc.cjs +1 -3
  2. package/dist/Auth.js +2 -1
  3. package/dist/Command.js +1 -1
  4. package/dist/GlobalOptions.js +1 -7
  5. package/dist/cli/Cli.js +19 -2
  6. package/dist/m365/aad/commands/app/app-add.js +8 -8
  7. package/dist/m365/aad/commands/app/app-role-add.js +5 -5
  8. package/dist/m365/aad/commands/app/app-set.js +5 -5
  9. package/dist/m365/aad/commands/{o365group/o365group-add.js → m365group/m365group-add.js} +17 -17
  10. package/dist/m365/aad/commands/{o365group/o365group-conversation-list.js → m365group/m365group-conversation-list.js} +10 -10
  11. package/dist/m365/aad/commands/{o365group/o365group-conversation-post-list.js → m365group/m365group-conversation-post-list.js} +14 -14
  12. package/dist/m365/aad/commands/{o365group/o365group-get.js → m365group/m365group-get.js} +13 -10
  13. package/dist/m365/aad/commands/{o365group/o365group-list.js → m365group/m365group-list.js} +13 -28
  14. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-clear.js → m365group/m365group-recyclebinitem-clear.js} +15 -15
  15. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-list.js → m365group/m365group-recyclebinitem-list.js} +10 -10
  16. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-remove.js → m365group/m365group-recyclebinitem-remove.js} +14 -14
  17. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-restore.js → m365group/m365group-recyclebinitem-restore.js} +14 -14
  18. package/dist/m365/aad/commands/{o365group/o365group-remove.js → m365group/m365group-remove.js} +12 -12
  19. package/dist/m365/aad/commands/{o365group/o365group-renew.js → m365group/m365group-renew.js} +10 -10
  20. package/dist/m365/aad/commands/{o365group/o365group-report-activitycounts.js → m365group/m365group-report-activitycounts.js} +4 -4
  21. package/dist/m365/aad/commands/{o365group/o365group-report-activitydetail.js → m365group/m365group-report-activitydetail.js} +4 -4
  22. package/dist/m365/aad/commands/{o365group/o365group-report-activityfilecounts.js → m365group/m365group-report-activityfilecounts.js} +4 -4
  23. package/dist/m365/aad/commands/{o365group/o365group-report-activitygroupcounts.js → m365group/m365group-report-activitygroupcounts.js} +4 -4
  24. package/dist/m365/aad/commands/{o365group/o365group-report-activitystorage.js → m365group/m365group-report-activitystorage.js} +4 -4
  25. package/dist/m365/aad/commands/{o365group/o365group-set.js → m365group/m365group-set.js} +17 -17
  26. package/dist/m365/aad/commands/{o365group/o365group-teamify.js → m365group/m365group-teamify.js} +14 -14
  27. package/dist/m365/aad/commands/{o365group/o365group-user-add.js → m365group/m365group-user-add.js} +14 -14
  28. package/dist/m365/aad/commands/{o365group/o365group-user-list.js → m365group/m365group-user-list.js} +12 -12
  29. package/dist/m365/aad/commands/{o365group/o365group-user-remove.js → m365group/m365group-user-remove.js} +14 -14
  30. package/dist/m365/aad/commands/{o365group/o365group-user-set.js → m365group/m365group-user-set.js} +15 -15
  31. package/dist/m365/aad/commands/policy/policy-list.js +5 -5
  32. package/dist/m365/aad/commands.js +22 -22
  33. package/dist/m365/cli/commands/cli-issue.js +5 -5
  34. package/dist/m365/cli/commands/config/config-get.js +5 -5
  35. package/dist/m365/cli/commands/config/config-list.js +16 -0
  36. package/dist/m365/cli/commands/config/config-reset.js +5 -5
  37. package/dist/m365/cli/commands/config/config-set.js +5 -5
  38. package/dist/m365/cli/commands.js +1 -0
  39. package/dist/m365/commands/login.js +5 -5
  40. package/dist/m365/commands/request.js +1 -1
  41. package/dist/m365/flow/commands/owner/owner-ensure.js +5 -5
  42. package/dist/m365/pa/commands/app/app-owner-set.js +5 -5
  43. package/dist/m365/pa/commands/app/app-permission-ensure.js +162 -0
  44. package/dist/m365/pa/commands/app/app-permission-list.js +2 -2
  45. package/dist/m365/pa/commands/app/app-permission-remove.js +153 -0
  46. package/dist/m365/pa/commands.js +3 -4
  47. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
  48. package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
  49. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
  50. package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
  51. package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
  52. package/dist/m365/planner/commands/plan/plan-get.js +1 -2
  53. package/dist/m365/planner/commands/plan/plan-list.js +4 -5
  54. package/dist/m365/planner/commands/plan/plan-set.js +2 -2
  55. package/dist/m365/planner/commands/task/task-add.js +17 -11
  56. package/dist/m365/planner/commands/task/task-get.js +35 -25
  57. package/dist/m365/planner/commands/task/task-list.js +26 -19
  58. package/dist/m365/planner/commands/task/task-remove.js +39 -34
  59. package/dist/m365/planner/commands/task/task-set.js +35 -23
  60. package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +14 -14
  61. package/dist/m365/spfx/commands/package/package-generate.js +15 -15
  62. package/dist/m365/spfx/commands/project/DeployWorkflow.js +55 -0
  63. package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.1.js → doctor-1.18.0-beta.5.js} +1 -1
  64. package/dist/m365/spfx/commands/project/project-doctor.js +9 -9
  65. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +2 -2
  66. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +157 -0
  67. package/dist/m365/spfx/commands/project/project-github-workflow-model.js +2 -0
  68. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
  69. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.1.js → upgrade-1.18.0-beta.5.js} +26 -26
  70. package/dist/m365/spfx/commands/project/project-upgrade.js +14 -14
  71. package/dist/m365/spfx/commands/spfx-doctor.js +76 -106
  72. package/dist/m365/spfx/commands.js +1 -0
  73. package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +27 -26
  74. package/dist/m365/spo/commands/app/app-add.js +9 -9
  75. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +5 -5
  76. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-list.js +5 -5
  77. package/dist/m365/spo/commands/commandset/commandset-add.js +11 -11
  78. package/dist/m365/spo/commands/commandset/commandset-get.js +8 -8
  79. package/dist/m365/spo/commands/commandset/commandset-list.js +5 -5
  80. package/dist/m365/spo/commands/commandset/commandset-remove.js +5 -5
  81. package/dist/m365/spo/commands/commandset/commandset-set.js +11 -11
  82. package/dist/m365/spo/commands/file/file-add.js +13 -13
  83. package/dist/m365/spo/commands/file/file-checkin.js +1 -1
  84. package/dist/m365/spo/commands/file/file-checkout.js +1 -1
  85. package/dist/m365/spo/commands/file/file-copy.js +36 -4
  86. package/dist/m365/spo/commands/file/file-list.js +4 -4
  87. package/dist/m365/spo/commands/file/file-move.js +74 -98
  88. package/dist/m365/spo/commands/file/file-remove.js +6 -6
  89. package/dist/m365/spo/commands/file/file-rename.js +2 -2
  90. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +1 -1
  91. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +1 -1
  92. package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
  93. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +1 -1
  94. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
  95. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
  96. package/dist/m365/spo/commands/file/file-sharinglink-add.js +8 -8
  97. package/dist/m365/spo/commands/file/file-sharinglink-list.js +5 -5
  98. package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
  99. package/dist/m365/spo/commands/file/file-version-get.js +1 -1
  100. package/dist/m365/spo/commands/file/file-version-list.js +1 -1
  101. package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
  102. package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
  103. package/dist/m365/spo/commands/folder/folder-add.js +2 -4
  104. package/dist/m365/spo/commands/folder/folder-copy.js +89 -45
  105. package/dist/m365/spo/commands/folder/folder-get.js +1 -1
  106. package/dist/m365/spo/commands/folder/folder-list.js +2 -2
  107. package/dist/m365/spo/commands/folder/folder-move.js +89 -47
  108. package/dist/m365/spo/commands/folder/folder-remove.js +7 -4
  109. package/dist/m365/spo/commands/folder/folder-rename.js +13 -17
  110. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
  111. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +1 -1
  112. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
  113. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
  114. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
  115. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
  116. package/dist/m365/spo/commands/group/group-list.js +0 -1
  117. package/dist/m365/spo/commands/list/list-add.js +4 -4
  118. package/dist/m365/spo/commands/list/list-set.js +4 -4
  119. package/dist/m365/spo/commands/navigation/navigation-node-set.js +2 -2
  120. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +34 -5
  121. package/dist/m365/spo/commands/page/clientsidepages.js +1 -81
  122. package/dist/m365/spo/commands/propertybag/propertybag-base.js +63 -59
  123. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +28 -31
  124. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +30 -32
  125. package/dist/m365/spo/commands/site/FlowsPolicy.js +7 -0
  126. package/dist/m365/spo/commands/site/site-add.js +114 -161
  127. package/dist/m365/spo/commands/site/site-apppermission-add.js +15 -18
  128. package/dist/m365/spo/commands/site/site-apppermission-remove.js +34 -38
  129. package/dist/m365/spo/commands/site/site-apppermission-set.js +11 -14
  130. package/dist/m365/spo/commands/site/site-ensure.js +14 -67
  131. package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +22 -22
  132. package/dist/m365/spo/commands/site/site-list.js +27 -43
  133. package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +6 -6
  134. package/dist/m365/spo/commands/site/site-remove.js +166 -210
  135. package/dist/m365/spo/commands/site/site-set.js +178 -199
  136. package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +8 -8
  137. package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +8 -8
  138. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +4 -4
  139. package/dist/m365/spo/commands/theme/theme-list.js +1 -9
  140. package/dist/m365/spo/commands/theme/theme-remove.js +24 -24
  141. package/dist/m365/spo/commands/theme/theme-set.js +0 -1
  142. package/dist/m365/spo/commands/user/user-remove.js +27 -27
  143. package/dist/m365/spo/commands/web/web-reindex.js +35 -42
  144. package/dist/m365/spo/commands/web/web-remove.js +21 -21
  145. package/dist/m365/spo/commands/web/web-roleassignment-add.js +16 -31
  146. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +33 -44
  147. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +18 -18
  148. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +19 -19
  149. package/dist/m365/spo/commands/web/web-set.js +5 -5
  150. package/dist/m365/teams/commands/app/app-list.js +5 -5
  151. package/dist/m365/teams/commands/chat/chat-member-add.js +5 -5
  152. package/dist/m365/teams/commands/funsettings/funsettings-set.js +4 -4
  153. package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +4 -4
  154. package/dist/m365/teams/commands/membersettings/membersettings-set.js +4 -4
  155. package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +5 -5
  156. package/dist/m365/teams/commands/team/team-set.js +3 -3
  157. package/dist/m365/todo/commands/task/task-add.js +6 -6
  158. package/dist/m365/yammer/commands/message/message-like-set.js +27 -28
  159. package/dist/m365/yammer/commands/message/message-list.js +67 -86
  160. package/dist/m365/yammer/commands/message/message-remove.js +18 -18
  161. package/dist/m365/yammer/commands/yammer-search.js +58 -74
  162. package/dist/utils/aadGroup.js +18 -0
  163. package/dist/utils/fsUtil.js +5 -0
  164. package/dist/utils/planner.js +4 -3
  165. package/dist/utils/spo.js +595 -54
  166. package/dist/utils/validation.js +0 -3
  167. package/docs/docs/cmd/aad/{o365group/o365group-add.mdx → m365group/m365group-add.mdx} +13 -13
  168. package/docs/docs/cmd/aad/{o365group/o365group-conversation-list.mdx → m365group/m365group-conversation-list.mdx} +4 -4
  169. package/docs/docs/cmd/aad/{o365group/o365group-conversation-post-list.mdx → m365group/m365group-conversation-post-list.mdx} +8 -8
  170. package/docs/docs/cmd/aad/{o365group/o365group-get.mdx → m365group/m365group-get.mdx} +6 -6
  171. package/docs/docs/cmd/aad/{o365group/o365group-list.mdx → m365group/m365group-list.mdx} +12 -29
  172. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-clear.mdx → m365group/m365group-recyclebinitem-clear.mdx} +5 -5
  173. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-list.mdx → m365group/m365group-recyclebinitem-list.mdx} +8 -8
  174. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-remove.mdx → m365group/m365group-recyclebinitem-remove.mdx} +6 -6
  175. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-restore.mdx → m365group/m365group-recyclebinitem-restore.mdx} +6 -6
  176. package/docs/docs/cmd/aad/{o365group/o365group-remove.mdx → m365group/m365group-remove.mdx} +6 -6
  177. package/docs/docs/cmd/aad/{o365group/o365group-renew.mdx → m365group/m365group-renew.mdx} +4 -4
  178. package/docs/docs/cmd/aad/{o365group/o365group-report-activitycounts.mdx → m365group/m365group-report-activitycounts.mdx} +6 -6
  179. package/docs/docs/cmd/aad/{o365group/o365group-report-activitydetail.mdx → m365group/m365group-report-activitydetail.mdx} +7 -7
  180. package/docs/docs/cmd/aad/{o365group/o365group-report-activityfilecounts.mdx → m365group/m365group-report-activityfilecounts.mdx} +6 -6
  181. package/docs/docs/cmd/aad/{o365group/o365group-report-activitygroupcounts.mdx → m365group/m365group-report-activitygroupcounts.mdx} +6 -6
  182. package/docs/docs/cmd/aad/{o365group/o365group-report-activitystorage.mdx → m365group/m365group-report-activitystorage.mdx} +6 -6
  183. package/docs/docs/cmd/aad/{o365group/o365group-set.mdx → m365group/m365group-set.mdx} +8 -8
  184. package/docs/docs/cmd/aad/{o365group/o365group-teamify.mdx → m365group/m365group-teamify.mdx} +5 -5
  185. package/docs/docs/cmd/aad/{o365group/o365group-user-add.mdx → m365group/m365group-user-add.mdx} +5 -5
  186. package/docs/docs/cmd/aad/{o365group/o365group-user-list.mdx → m365group/m365group-user-list.mdx} +7 -7
  187. package/docs/docs/cmd/aad/{o365group/o365group-user-remove.mdx → m365group/m365group-user-remove.mdx} +5 -5
  188. package/docs/docs/cmd/aad/{o365group/o365group-user-set.mdx → m365group/m365group-user-set.mdx} +5 -5
  189. package/docs/docs/cmd/aad/user/user-set.mdx +1 -1
  190. package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
  191. package/docs/docs/cmd/flow/flow-enable.mdx +2 -2
  192. package/docs/docs/cmd/login.mdx +6 -0
  193. package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
  194. package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
  195. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  196. package/docs/docs/cmd/planner/task/task-add.mdx +22 -7
  197. package/docs/docs/cmd/planner/task/task-get.mdx +13 -4
  198. package/docs/docs/cmd/planner/task/task-list.mdx +22 -7
  199. package/docs/docs/cmd/planner/task/task-remove.mdx +25 -8
  200. package/docs/docs/cmd/planner/task/task-set.mdx +22 -7
  201. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +2 -2
  202. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +2 -2
  203. package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +3 -3
  204. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +94 -0
  205. package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
  206. package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
  207. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -9
  208. package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
  209. package/docs/docs/cmd/spo/file/file-copy.mdx +20 -16
  210. package/docs/docs/cmd/spo/file/file-get.mdx +1 -1
  211. package/docs/docs/cmd/spo/file/file-list.mdx +2 -2
  212. package/docs/docs/cmd/spo/file/file-move.mdx +36 -18
  213. package/docs/docs/cmd/spo/file/file-remove.mdx +8 -8
  214. package/docs/docs/cmd/spo/file/file-rename.mdx +3 -3
  215. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +2 -2
  216. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +3 -3
  217. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
  218. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
  219. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
  220. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
  221. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
  222. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
  223. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
  224. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
  225. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
  226. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
  227. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
  228. package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
  229. package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
  230. package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
  231. package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
  232. package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
  233. package/docs/docs/cmd/spo/folder/folder-add.mdx +76 -1
  234. package/docs/docs/cmd/spo/folder/folder-copy.mdx +39 -12
  235. package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
  236. package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
  237. package/docs/docs/cmd/spo/folder/folder-move.mdx +40 -13
  238. package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
  239. package/docs/docs/cmd/spo/folder/folder-rename.mdx +5 -1
  240. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  241. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
  242. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +2 -2
  243. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
  244. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
  245. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
  246. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
  247. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +14 -1
  248. package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
  249. package/docs/docs/cmd/spo/site/site-ensure.mdx +1 -1
  250. package/docs/docs/cmd/spo/site/site-list.mdx +3 -78
  251. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  252. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
  253. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
  254. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  255. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
  256. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  257. package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
  258. package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
  259. package/npm-shrinkwrap.json +290 -1413
  260. package/package.json +17 -18
  261. package/dist/m365/pa/cds-project-mutator.js +0 -91
  262. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/generated/ManifestTypes.d.ts +0 -11
  263. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_ControlManifest.Input.xml +0 -31
  264. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_index.ts +0 -51
  265. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/generated/ManifestTypes.d.ts +0 -12
  266. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_ControlManifest.Input.xml +0 -37
  267. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_index.ts +0 -48
  268. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/index.ts +0 -0
  269. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_ControlManifest.Input.xml +0 -31
  270. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_index.tsx +0 -58
  271. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_ControlManifest.Input.xml +0 -37
  272. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_index.tsx +0 -55
  273. package/dist/m365/pa/commands/pcf/pcf-init/assets/package.json +0 -19
  274. package/dist/m365/pa/commands/pcf/pcf-init/assets/pcfconfig.json +0 -3
  275. package/dist/m365/pa/commands/pcf/pcf-init/assets/template_.gitignore +0 -14
  276. package/dist/m365/pa/commands/pcf/pcf-init/assets/template_pcfprojecttype.pcfproj +0 -45
  277. package/dist/m365/pa/commands/pcf/pcf-init/pcf-init-variables.js +0 -2
  278. package/dist/m365/pa/commands/pcf/pcf-init.js +0 -120
  279. package/dist/m365/pa/commands/solution/solution-init/assets/Other/Customizations.xml +0 -18
  280. package/dist/m365/pa/commands/solution/solution-init/assets/Other/Relationships.xml +0 -2
  281. package/dist/m365/pa/commands/solution/solution-init/assets/Other/template_Solution.xml +0 -94
  282. package/dist/m365/pa/commands/solution/solution-init/assets/template_.gitignore +0 -2
  283. package/dist/m365/pa/commands/solution/solution-init/assets/template_solutionprojecttype.cdsproj +0 -44
  284. package/dist/m365/pa/commands/solution/solution-init/solution-init-variables.js +0 -2
  285. package/dist/m365/pa/commands/solution/solution-init.js +0 -126
  286. package/dist/m365/pa/commands/solution/solution-reference-add.js +0 -88
  287. package/dist/m365/pa/template-instantiator.js +0 -57
  288. package/docs/docs/cmd/pa/pcf/pcf-init.mdx +0 -56
  289. package/docs/docs/cmd/pa/solution/solution-init.mdx +0 -46
  290. package/docs/docs/cmd/pa/solution/solution-reference-add.mdx +0 -42
  291. /package/dist/m365/aad/commands/{o365group → m365group}/GroupExtended.js +0 -0
@@ -13,7 +13,7 @@ export class SpoPropertyBagBaseCommand extends SpoCommand {
13
13
  * Gets property bag for a folder or site rootFolder of a site where return type is "_ObjectType_\":\"SP.Folder\".
14
14
  * This method is executed when folder option is specified. PnP PowerShell behaves the same way.
15
15
  */
16
- getFolderPropertyBag(identityResp, webUrl, folder, logger) {
16
+ async getFolderPropertyBag(identityResp, webUrl, folder, logger) {
17
17
  let serverRelativeUrl = folder;
18
18
  if (identityResp.serverRelativeUrl !== '/') {
19
19
  serverRelativeUrl = `${identityResp.serverRelativeUrl}${serverRelativeUrl}`;
@@ -25,31 +25,31 @@ export class SpoPropertyBagBaseCommand extends SpoCommand {
25
25
  },
26
26
  data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="10" ObjectPathId="9" /><ObjectIdentityQuery Id="11" ObjectPathId="9" /><Query Id="12" ObjectPathId="9"><Query SelectAllProperties="false"><Properties><Property Name="Properties" SelectAll="true"><Query SelectAllProperties="false"><Properties /></Query></Property></Properties></Query></Query></Actions><ObjectPaths><Method Id="9" ParentId="5" Name="GetFolderByServerRelativeUrl"><Parameters><Parameter Type="String">${serverRelativeUrl}</Parameter></Parameters></Method><Identity Id="5" Name="${identityResp.objectIdentity}" /></ObjectPaths></Request>`
27
27
  };
28
- return new Promise((resolve, reject) => {
29
- return request
30
- .post(requestOptions)
31
- .then(async (res) => {
32
- if (this.debug) {
33
- await logger.logToStderr('Attempt to get Properties key values');
34
- }
35
- const json = JSON.parse(res);
36
- const contents = json.find(x => { return x['ErrorInfo']; });
37
- if (contents && contents.ErrorInfo) {
38
- return reject(contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error');
39
- }
40
- const propertiesObj = json.find(x => { return x['Properties']; });
41
- if (propertiesObj) {
42
- return resolve(propertiesObj['Properties']);
43
- }
44
- reject('Cannot proceed. Properties not found'); // this is not suppose to happen
45
- }, (err) => { reject(err); });
46
- });
28
+ try {
29
+ const res = await request.post(requestOptions);
30
+ if (this.debug) {
31
+ await logger.logToStderr('Attempt to get Properties key values');
32
+ }
33
+ const json = JSON.parse(res);
34
+ const contents = json.find(x => { return x['ErrorInfo']; });
35
+ if (contents && contents.ErrorInfo) {
36
+ throw contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error';
37
+ }
38
+ const propertiesObj = json.find(x => { return x['Properties']; });
39
+ if (propertiesObj) {
40
+ return propertiesObj['Properties'];
41
+ }
42
+ throw 'Cannot proceed. Properties not found'; // this is not suppose to happen
43
+ }
44
+ catch (err) {
45
+ throw err;
46
+ }
47
47
  }
48
48
  /**
49
49
  * Gets property bag for site or sitecollection where return type is "_ObjectType_\":\"SP.Web\".
50
50
  * This method is executed when no folder specified. PnP PowerShell behaves the same way.
51
51
  */
52
- getWebPropertyBag(identityResp, webUrl, logger) {
52
+ async getWebPropertyBag(identityResp, webUrl, logger) {
53
53
  const requestOptions = {
54
54
  url: `${webUrl}/_vti_bin/client.svc/ProcessQuery`,
55
55
  headers: {
@@ -57,23 +57,25 @@ export class SpoPropertyBagBaseCommand extends SpoCommand {
57
57
  },
58
58
  data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><Query Id="97" ObjectPathId="5"><Query SelectAllProperties="false"><Properties><Property Name="ServerRelativeUrl" ScalarProperty="true" /><Property Name="AllProperties" SelectAll="true"><Query SelectAllProperties="false"><Properties /></Query></Property></Properties></Query></Query></Actions><ObjectPaths><Identity Id="5" Name="${identityResp.objectIdentity}" /></ObjectPaths></Request>`
59
59
  };
60
- return new Promise((resolve, reject) => {
61
- request.post(requestOptions).then(async (res) => {
62
- if (this.debug) {
63
- await logger.logToStderr('Attempt to get AllProperties key values');
64
- }
65
- const json = JSON.parse(res);
66
- const contents = json.find(x => { return x['ErrorInfo']; });
67
- if (contents && contents.ErrorInfo) {
68
- return reject(contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error');
69
- }
70
- const allPropertiesObj = json.find(x => { return x['AllProperties']; });
71
- if (allPropertiesObj) {
72
- return resolve(allPropertiesObj['AllProperties']);
73
- }
74
- reject('Cannot proceed. AllProperties not found'); // this is not supposed to happen
75
- }, (err) => { reject(err); });
76
- });
60
+ try {
61
+ const res = await request.post(requestOptions);
62
+ if (this.debug) {
63
+ await logger.logToStderr('Attempt to get AllProperties key values');
64
+ }
65
+ const json = JSON.parse(res);
66
+ const contents = json.find(x => { return x['ErrorInfo']; });
67
+ if (contents && contents.ErrorInfo) {
68
+ throw contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error';
69
+ }
70
+ const allPropertiesObj = json.find(x => { return x['AllProperties']; });
71
+ if (allPropertiesObj) {
72
+ return allPropertiesObj['AllProperties'];
73
+ }
74
+ throw 'Cannot proceed. AllProperties not found'; // this is not supposed to happen
75
+ }
76
+ catch (err) {
77
+ throw err;
78
+ }
77
79
  }
78
80
  /**
79
81
  * The property bag item data returned from the client.svc/ProcessQuery response
@@ -108,7 +110,7 @@ export class SpoPropertyBagBaseCommand extends SpoCommand {
108
110
  }
109
111
  return { key: objKey, value: objValue };
110
112
  }
111
- static setProperty(name, value, webUrl, formDigest, identityResp, logger, debug, folder) {
113
+ static async setProperty(name, value, webUrl, formDigest, identityResp, logger, debug, folder) {
112
114
  let objectType = 'AllProperties';
113
115
  if (folder) {
114
116
  objectType = 'Properties';
@@ -120,18 +122,20 @@ export class SpoPropertyBagBaseCommand extends SpoCommand {
120
122
  },
121
123
  data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><Method Name="SetFieldValue" Id="206" ObjectPathId="205"><Parameters><Parameter Type="String">${formatting.escapeXml(name)}</Parameter><Parameter Type="String">${formatting.escapeXml(value)}</Parameter></Parameters></Method><Method Name="Update" Id="207" ObjectPathId="198" /></Actions><ObjectPaths><Property Id="205" ParentId="198" Name="${objectType}" /><Identity Id="198" Name="${identityResp.objectIdentity}" /></ObjectPaths></Request>`
122
124
  };
123
- return new Promise((resolve, reject) => {
124
- request.post(requestOptions).then((res) => {
125
- const json = JSON.parse(res);
126
- const contents = json.find(x => { return x['ErrorInfo']; });
127
- if (contents && contents.ErrorInfo) {
128
- reject(contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error');
129
- }
130
- else {
131
- resolve(res);
132
- }
133
- }, (err) => { reject(err); });
134
- });
125
+ try {
126
+ const res = await request.post(requestOptions);
127
+ const json = JSON.parse(res);
128
+ const contents = json.find(x => { return x['ErrorInfo']; });
129
+ if (contents && contents.ErrorInfo) {
130
+ throw contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error';
131
+ }
132
+ else {
133
+ return res;
134
+ }
135
+ }
136
+ catch (err) {
137
+ throw err;
138
+ }
135
139
  }
136
140
  /**
137
141
  * Detects if the site in question has no script enabled or not. Detection is done
@@ -141,14 +145,14 @@ export class SpoPropertyBagBaseCommand extends SpoCommand {
141
145
  * @param options command options
142
146
  * @param cmd command instance
143
147
  */
144
- static isNoScriptSite(webUrl, formDigest, webIdentityResp, logger, debug) {
145
- return new Promise((resolve, reject) => {
146
- spo.getEffectiveBasePermissions(webIdentityResp.objectIdentity, webUrl, formDigest, logger, debug)
147
- .then((basePermissionsResp) => {
148
- resolve(basePermissionsResp.has(PermissionKind.AddAndCustomizePages) === false);
149
- })
150
- .catch(err => reject(err));
151
- });
148
+ static async isNoScriptSite(webUrl, formDigest, webIdentityResp, logger, debug) {
149
+ try {
150
+ const basePermissionsResp = await spo.getEffectiveBasePermissions(webIdentityResp.objectIdentity, webUrl, formDigest, logger, debug);
151
+ return basePermissionsResp.has(PermissionKind.AddAndCustomizePages) === false;
152
+ }
153
+ catch (err) {
154
+ throw err;
155
+ }
152
156
  }
153
157
  }
154
158
  //# sourceMappingURL=propertybag-base.js.map
@@ -27,24 +27,8 @@ class SpoPropertyBagRemoveCommand extends SpoPropertyBagBaseCommand {
27
27
  __classPrivateFieldGet(this, _SpoPropertyBagRemoveCommand_instances, "m", _SpoPropertyBagRemoveCommand_initValidators).call(this);
28
28
  }
29
29
  async commandAction(logger, args) {
30
- const removeProperty = async () => {
31
- try {
32
- const contextResponse = await spo.getRequestDigest(args.options.webUrl);
33
- this.formDigestValue = contextResponse.FormDigestValue;
34
- let identityResp = await spo.getCurrentWebIdentity(args.options.webUrl, this.formDigestValue);
35
- const opts = args.options;
36
- if (opts.folder) {
37
- // get the folder guid instead of the web guid
38
- identityResp = await spo.getFolderIdentity(identityResp.objectIdentity, opts.webUrl, opts.folder, this.formDigestValue);
39
- }
40
- await this.removeProperty(identityResp, args.options);
41
- }
42
- catch (err) {
43
- this.handleRejectedPromise(err);
44
- }
45
- };
46
30
  if (args.options.force) {
47
- await removeProperty();
31
+ await this.removeProperty(args);
48
32
  }
49
33
  else {
50
34
  const result = await Cli.prompt({
@@ -54,11 +38,27 @@ class SpoPropertyBagRemoveCommand extends SpoPropertyBagBaseCommand {
54
38
  message: `Are you sure you want to remove the ${args.options.key} property?`
55
39
  });
56
40
  if (result.continue) {
57
- await removeProperty();
41
+ await this.removeProperty(args);
58
42
  }
59
43
  }
60
44
  }
61
- removeProperty(identityResp, options) {
45
+ async removeProperty(args) {
46
+ try {
47
+ const contextResponse = await spo.getRequestDigest(args.options.webUrl);
48
+ this.formDigestValue = contextResponse.FormDigestValue;
49
+ let identityResp = await spo.getCurrentWebIdentity(args.options.webUrl, this.formDigestValue);
50
+ const opts = args.options;
51
+ if (opts.folder) {
52
+ // get the folder guid instead of the web guid
53
+ identityResp = await spo.getFolderIdentity(identityResp.objectIdentity, opts.webUrl, opts.folder, this.formDigestValue);
54
+ }
55
+ await this.removePropertyWithIdentityResp(identityResp, args.options);
56
+ }
57
+ catch (err) {
58
+ this.handleRejectedPromise(err);
59
+ }
60
+ }
61
+ async removePropertyWithIdentityResp(identityResp, options) {
62
62
  let objectType = 'AllProperties';
63
63
  if (options.folder) {
64
64
  objectType = 'Properties';
@@ -70,18 +70,15 @@ class SpoPropertyBagRemoveCommand extends SpoPropertyBagBaseCommand {
70
70
  },
71
71
  data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><Method Name="SetFieldValue" Id="206" ObjectPathId="205"><Parameters><Parameter Type="String">${formatting.escapeXml(options.key)}</Parameter><Parameter Type="Null" /></Parameters></Method><Method Name="Update" Id="207" ObjectPathId="198" /></Actions><ObjectPaths><Property Id="205" ParentId="198" Name="${objectType}" /><Identity Id="198" Name="${identityResp.objectIdentity}" /></ObjectPaths></Request>`
72
72
  };
73
- return new Promise((resolve, reject) => {
74
- request.post(requestOptions).then((res) => {
75
- const json = JSON.parse(res);
76
- const contents = json.find(x => { return x['ErrorInfo']; });
77
- if (contents && contents.ErrorInfo) {
78
- reject(contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error');
79
- }
80
- else {
81
- resolve(res);
82
- }
83
- }, (err) => { reject(err); });
84
- });
73
+ const res = await request.post(requestOptions);
74
+ const json = JSON.parse(res);
75
+ const contents = json.find(x => { return x['ErrorInfo']; });
76
+ if (contents && contents.ErrorInfo) {
77
+ throw contents.ErrorInfo.ErrorMessage || 'ClientSvc unknown error';
78
+ }
79
+ else {
80
+ return res;
81
+ }
85
82
  }
86
83
  }
87
84
  _SpoPropertyBagRemoveCommand_instances = new WeakSet(), _SpoPropertyBagRemoveCommand_initTelemetry = function _SpoPropertyBagRemoveCommand_initTelemetry() {
@@ -28,38 +28,8 @@ class SpoServicePrincipalSetCommand extends SpoCommand {
28
28
  return [commands.SP_SET];
29
29
  }
30
30
  async commandAction(logger, args) {
31
- const toggleServicePrincipal = async () => {
32
- try {
33
- const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
34
- const reqDigest = await spo.getRequestDigest(spoAdminUrl);
35
- if (this.verbose) {
36
- await logger.logToStderr(`${(args.options.enabled ? 'Enabling' : 'Disabling')} service principal...`);
37
- }
38
- const requestOptions = {
39
- url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
40
- headers: {
41
- 'X-RequestDigest': reqDigest.FormDigestValue
42
- },
43
- data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="28" ObjectPathId="27" /><SetProperty Id="29" ObjectPathId="27" Name="AccountEnabled"><Parameter Type="Boolean">${args.options.enabled}</Parameter></SetProperty><Method Name="Update" Id="30" ObjectPathId="27" /><Query Id="31" ObjectPathId="27"><Query SelectAllProperties="true"><Properties><Property Name="AccountEnabled" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Constructor Id="27" TypeId="{104e8f06-1e00-4675-99c6-1b9b504ed8d8}" /></ObjectPaths></Request>`
44
- };
45
- const res = await request.post(requestOptions);
46
- const json = JSON.parse(res);
47
- const response = json[0];
48
- if (response.ErrorInfo) {
49
- throw response.ErrorInfo.ErrorMessage;
50
- }
51
- else {
52
- const output = json[json.length - 1];
53
- delete output._ObjectType_;
54
- await logger.log(output);
55
- }
56
- }
57
- catch (err) {
58
- this.handleRejectedPromise(err);
59
- }
60
- };
61
31
  if (args.options.force) {
62
- await toggleServicePrincipal();
32
+ await this.toggleServicePrincipal(logger, args);
63
33
  }
64
34
  else {
65
35
  const result = await Cli.prompt({
@@ -69,10 +39,38 @@ class SpoServicePrincipalSetCommand extends SpoCommand {
69
39
  message: `Are you sure you want to ${args.options.enabled ? 'enable' : 'disable'} the service principal?`
70
40
  });
71
41
  if (result.continue) {
72
- await toggleServicePrincipal();
42
+ await this.toggleServicePrincipal(logger, args);
73
43
  }
74
44
  }
75
45
  }
46
+ async toggleServicePrincipal(logger, args) {
47
+ try {
48
+ const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
49
+ const reqDigest = await spo.getRequestDigest(spoAdminUrl);
50
+ if (this.verbose) {
51
+ await logger.logToStderr(`${(args.options.enabled ? 'Enabling' : 'Disabling')} service principal...`);
52
+ }
53
+ const requestOptions = {
54
+ url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
55
+ headers: {
56
+ 'X-RequestDigest': reqDigest.FormDigestValue
57
+ },
58
+ data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="28" ObjectPathId="27" /><SetProperty Id="29" ObjectPathId="27" Name="AccountEnabled"><Parameter Type="Boolean">${args.options.enabled}</Parameter></SetProperty><Method Name="Update" Id="30" ObjectPathId="27" /><Query Id="31" ObjectPathId="27"><Query SelectAllProperties="true"><Properties><Property Name="AccountEnabled" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Constructor Id="27" TypeId="{104e8f06-1e00-4675-99c6-1b9b504ed8d8}" /></ObjectPaths></Request>`
59
+ };
60
+ const response = await request.post(requestOptions);
61
+ const json = JSON.parse(response);
62
+ const responseContent = json[0];
63
+ if (responseContent.ErrorInfo) {
64
+ throw responseContent.ErrorInfo.ErrorMessage;
65
+ }
66
+ const output = json[json.length - 1];
67
+ delete output._ObjectType_;
68
+ await logger.log(output);
69
+ }
70
+ catch (err) {
71
+ this.handleRejectedPromise(err);
72
+ }
73
+ }
76
74
  }
77
75
  _SpoServicePrincipalSetCommand_instances = new WeakSet(), _SpoServicePrincipalSetCommand_initTelemetry = function _SpoServicePrincipalSetCommand_initTelemetry() {
78
76
  this.telemetry.push((args) => {
@@ -0,0 +1,7 @@
1
+ export var FlowsPolicy;
2
+ (function (FlowsPolicy) {
3
+ FlowsPolicy[FlowsPolicy["Unknown"] = 0] = "Unknown";
4
+ FlowsPolicy[FlowsPolicy["Disabled"] = 1] = "Disabled";
5
+ FlowsPolicy[FlowsPolicy["Enabled"] = 2] = "Enabled";
6
+ })(FlowsPolicy || (FlowsPolicy = {}));
7
+ //# sourceMappingURL=FlowsPolicy.js.map