@pnp/cli-microsoft365 7.0.0-beta.7f98bac → 7.0.0-beta.8726fe8

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 (405) hide show
  1. package/.eslintrc.cjs +1 -3
  2. package/README.md +4 -4
  3. package/dist/Auth.js +12 -2
  4. package/dist/Command.js +3 -3
  5. package/dist/GlobalOptions.js +1 -7
  6. package/dist/cli/Cli.js +24 -7
  7. package/dist/m365/aad/commands/app/app-add.js +8 -8
  8. package/dist/m365/aad/commands/app/app-get.js +4 -1
  9. package/dist/m365/aad/commands/app/app-remove.js +3 -1
  10. package/dist/m365/aad/commands/app/app-role-add.js +9 -6
  11. package/dist/m365/aad/commands/app/app-role-list.js +4 -1
  12. package/dist/m365/aad/commands/app/app-role-remove.js +5 -2
  13. package/dist/m365/aad/commands/app/app-set.js +13 -10
  14. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -6
  15. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -4
  16. package/dist/m365/aad/commands/group/group-get.js +4 -4
  17. package/dist/m365/aad/commands/group/group-list.js +1 -23
  18. package/dist/m365/aad/commands/group/group-remove.js +98 -0
  19. package/dist/m365/aad/commands/{o365group/o365group-add.js → m365group/m365group-add.js} +38 -29
  20. package/dist/m365/aad/commands/{o365group/o365group-conversation-list.js → m365group/m365group-conversation-list.js} +10 -10
  21. package/dist/m365/aad/commands/{o365group/o365group-conversation-post-list.js → m365group/m365group-conversation-post-list.js} +14 -14
  22. package/dist/m365/aad/commands/{o365group/o365group-get.js → m365group/m365group-get.js} +13 -10
  23. package/dist/m365/aad/commands/{o365group/o365group-list.js → m365group/m365group-list.js} +13 -28
  24. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-clear.js → m365group/m365group-recyclebinitem-clear.js} +15 -15
  25. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-list.js → m365group/m365group-recyclebinitem-list.js} +10 -10
  26. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-remove.js → m365group/m365group-recyclebinitem-remove.js} +17 -15
  27. package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-restore.js → m365group/m365group-recyclebinitem-restore.js} +18 -15
  28. package/dist/m365/aad/commands/{o365group/o365group-remove.js → m365group/m365group-remove.js} +12 -12
  29. package/dist/m365/aad/commands/{o365group/o365group-renew.js → m365group/m365group-renew.js} +10 -10
  30. package/dist/m365/aad/commands/{o365group/o365group-report-activitycounts.js → m365group/m365group-report-activitycounts.js} +4 -4
  31. package/dist/m365/aad/commands/{o365group/o365group-report-activitydetail.js → m365group/m365group-report-activitydetail.js} +4 -4
  32. package/dist/m365/aad/commands/{o365group/o365group-report-activityfilecounts.js → m365group/m365group-report-activityfilecounts.js} +4 -4
  33. package/dist/m365/aad/commands/{o365group/o365group-report-activitygroupcounts.js → m365group/m365group-report-activitygroupcounts.js} +4 -4
  34. package/dist/m365/aad/commands/{o365group/o365group-report-activitystorage.js → m365group/m365group-report-activitystorage.js} +4 -4
  35. package/dist/m365/aad/commands/{o365group/o365group-set.js → m365group/m365group-set.js} +17 -17
  36. package/dist/m365/aad/commands/{o365group/o365group-teamify.js → m365group/m365group-teamify.js} +18 -15
  37. package/dist/m365/aad/commands/{o365group/o365group-user-add.js → m365group/m365group-user-add.js} +14 -14
  38. package/dist/m365/aad/commands/{o365group/o365group-user-list.js → m365group/m365group-user-list.js} +12 -12
  39. package/dist/m365/aad/commands/{o365group/o365group-user-remove.js → m365group/m365group-user-remove.js} +14 -14
  40. package/dist/m365/aad/commands/{o365group/o365group-user-set.js → m365group/m365group-user-set.js} +15 -15
  41. package/dist/m365/aad/commands/policy/policy-list.js +5 -5
  42. package/dist/m365/aad/commands/sp/sp-add.js +4 -1
  43. package/dist/m365/aad/commands/sp/sp-get.js +4 -1
  44. package/dist/m365/aad/commands/user/user-get.js +7 -2
  45. package/dist/m365/aad/commands.js +23 -22
  46. package/dist/m365/booking/commands/business/business-get.js +4 -1
  47. package/dist/m365/cli/commands/cli-issue.js +5 -5
  48. package/dist/m365/cli/commands/config/config-get.js +5 -5
  49. package/dist/m365/cli/commands/config/config-list.js +16 -0
  50. package/dist/m365/cli/commands/config/config-reset.js +5 -5
  51. package/dist/m365/cli/commands/config/config-set.js +5 -5
  52. package/dist/m365/cli/commands.js +1 -0
  53. package/dist/m365/commands/login.js +7 -7
  54. package/dist/m365/commands/request.js +1 -1
  55. package/dist/m365/flow/commands/owner/owner-ensure.js +5 -5
  56. package/dist/m365/graph/commands/subscription/subscription-add.js +5 -5
  57. package/dist/m365/outlook/commands/message/message-list.js +4 -2
  58. package/dist/m365/outlook/commands/message/message-move.js +4 -2
  59. package/dist/m365/pa/commands/app/app-export.js +7 -7
  60. package/dist/m365/pa/commands/app/app-owner-set.js +5 -5
  61. package/dist/m365/pa/commands/app/app-permission-ensure.js +162 -0
  62. package/dist/m365/pa/commands/app/app-permission-list.js +2 -2
  63. package/dist/m365/pa/commands/app/app-permission-remove.js +153 -0
  64. package/dist/m365/pa/commands.js +3 -4
  65. package/dist/m365/planner/commands/bucket/bucket-add.js +6 -3
  66. package/dist/m365/planner/commands/bucket/bucket-get.js +11 -4
  67. package/dist/m365/planner/commands/bucket/bucket-list.js +6 -3
  68. package/dist/m365/planner/commands/bucket/bucket-remove.js +9 -4
  69. package/dist/m365/planner/commands/bucket/bucket-set.js +10 -4
  70. package/dist/m365/planner/commands/plan/plan-add.js +4 -1
  71. package/dist/m365/planner/commands/plan/plan-get.js +5 -3
  72. package/dist/m365/planner/commands/plan/plan-list.js +8 -6
  73. package/dist/m365/planner/commands/plan/plan-remove.js +4 -1
  74. package/dist/m365/planner/commands/plan/plan-set.js +6 -3
  75. package/dist/m365/planner/commands/roster/roster-get.js +4 -1
  76. package/dist/m365/planner/commands/roster/roster-member-add.js +4 -1
  77. package/dist/m365/planner/commands/roster/roster-member-get.js +4 -1
  78. package/dist/m365/planner/commands/roster/roster-member-list.js +4 -1
  79. package/dist/m365/planner/commands/roster/roster-member-remove.js +4 -1
  80. package/dist/m365/planner/commands/roster/roster-plan-list.js +4 -1
  81. package/dist/m365/planner/commands/roster/roster-remove.js +4 -1
  82. package/dist/m365/planner/commands/task/task-add.js +21 -12
  83. package/dist/m365/planner/commands/task/task-checklistitem-add.js +4 -1
  84. package/dist/m365/planner/commands/task/task-checklistitem-list.js +4 -1
  85. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +4 -1
  86. package/dist/m365/planner/commands/task/task-get.js +46 -28
  87. package/dist/m365/planner/commands/task/task-list.js +34 -19
  88. package/dist/m365/planner/commands/task/task-reference-add.js +4 -1
  89. package/dist/m365/planner/commands/task/task-reference-list.js +4 -1
  90. package/dist/m365/planner/commands/task/task-reference-remove.js +4 -1
  91. package/dist/m365/planner/commands/task/task-remove.js +49 -38
  92. package/dist/m365/planner/commands/task/task-set.js +38 -23
  93. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +4 -1
  94. package/dist/m365/pp/commands/card/card-get.js +3 -5
  95. package/dist/m365/pp/commands/chatbot/chatbot-get.js +3 -1
  96. package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -1
  97. package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +14 -14
  98. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -1
  99. package/dist/m365/spfx/commands/package/package-generate.js +15 -15
  100. package/dist/m365/spfx/commands/project/DeployWorkflow.js +55 -0
  101. package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.1.js → doctor-1.18.0.js} +2 -2
  102. package/dist/m365/spfx/commands/project/project-doctor.js +9 -9
  103. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +2 -2
  104. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +157 -0
  105. package/dist/m365/spfx/commands/project/project-github-workflow-model.js +2 -0
  106. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +1 -1
  107. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js +13 -0
  108. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
  109. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.1.js → upgrade-1.18.0.js} +35 -27
  110. package/dist/m365/spfx/commands/project/project-upgrade.js +26 -28
  111. package/dist/m365/spfx/commands/spfx-doctor.js +76 -106
  112. package/dist/m365/spfx/commands.js +1 -0
  113. package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +27 -26
  114. package/dist/m365/spo/commands/app/app-add.js +9 -9
  115. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +5 -5
  116. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +5 -3
  117. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-list.js +5 -5
  118. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +2 -2
  119. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +3 -2
  120. package/dist/m365/spo/commands/commandset/commandset-add.js +11 -11
  121. package/dist/m365/spo/commands/commandset/commandset-get.js +12 -10
  122. package/dist/m365/spo/commands/commandset/commandset-list.js +5 -5
  123. package/dist/m365/spo/commands/commandset/commandset-remove.js +7 -6
  124. package/dist/m365/spo/commands/commandset/commandset-set.js +14 -12
  125. package/dist/m365/spo/commands/customaction/customaction-get.js +5 -2
  126. package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -1
  127. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +3 -1
  128. package/dist/m365/spo/commands/file/file-add.js +13 -13
  129. package/dist/m365/spo/commands/file/file-checkin.js +1 -1
  130. package/dist/m365/spo/commands/file/file-checkout.js +1 -1
  131. package/dist/m365/spo/commands/file/file-copy.js +36 -4
  132. package/dist/m365/spo/commands/file/file-get.js +11 -8
  133. package/dist/m365/spo/commands/file/file-list.js +4 -4
  134. package/dist/m365/spo/commands/file/file-move.js +74 -98
  135. package/dist/m365/spo/commands/file/file-remove.js +8 -8
  136. package/dist/m365/spo/commands/file/file-rename.js +2 -2
  137. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +1 -1
  138. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +1 -1
  139. package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
  140. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +1 -1
  141. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
  142. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
  143. package/dist/m365/spo/commands/file/file-sharinglink-add.js +8 -8
  144. package/dist/m365/spo/commands/file/file-sharinglink-list.js +5 -5
  145. package/dist/m365/spo/commands/file/file-version-clear.js +3 -3
  146. package/dist/m365/spo/commands/file/file-version-get.js +3 -3
  147. package/dist/m365/spo/commands/file/file-version-list.js +3 -3
  148. package/dist/m365/spo/commands/file/file-version-remove.js +3 -3
  149. package/dist/m365/spo/commands/file/file-version-restore.js +3 -3
  150. package/dist/m365/spo/commands/folder/folder-add.js +2 -4
  151. package/dist/m365/spo/commands/folder/folder-copy.js +89 -45
  152. package/dist/m365/spo/commands/folder/folder-get.js +1 -1
  153. package/dist/m365/spo/commands/folder/folder-list.js +2 -2
  154. package/dist/m365/spo/commands/folder/folder-move.js +89 -47
  155. package/dist/m365/spo/commands/folder/folder-remove.js +7 -4
  156. package/dist/m365/spo/commands/folder/folder-rename.js +13 -17
  157. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
  158. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +1 -1
  159. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
  160. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
  161. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
  162. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
  163. package/dist/m365/spo/commands/group/group-list.js +0 -1
  164. package/dist/m365/spo/commands/group/group-member-add.js +24 -24
  165. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -4
  166. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +4 -1
  167. package/dist/m365/spo/commands/hubsite/hubsite-get.js +3 -1
  168. package/dist/m365/spo/commands/list/list-add.js +4 -4
  169. package/dist/m365/spo/commands/list/list-retentionlabel-ensure.js +2 -24
  170. package/dist/m365/spo/commands/list/list-set.js +4 -4
  171. package/dist/m365/spo/commands/listitem/listitem-add.js +1 -0
  172. package/dist/m365/spo/commands/listitem/listitem-set.js +3 -2
  173. package/dist/m365/spo/commands/navigation/navigation-node-set.js +2 -2
  174. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +34 -5
  175. package/dist/m365/spo/commands/page/clientsidepages.js +19 -81
  176. package/dist/m365/spo/commands/page/page-get.js +1 -0
  177. package/dist/m365/spo/commands/page/page-list.js +4 -3
  178. package/dist/m365/spo/commands/page/page-section-add.js +56 -21
  179. package/dist/m365/spo/commands/page/page-set.js +13 -2
  180. package/dist/m365/spo/commands/propertybag/propertybag-base.js +63 -59
  181. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +28 -31
  182. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +30 -32
  183. package/dist/m365/spo/commands/site/FlowsPolicy.js +7 -0
  184. package/dist/m365/spo/commands/site/site-add.js +114 -161
  185. package/dist/m365/spo/commands/site/site-apppermission-add.js +15 -18
  186. package/dist/m365/spo/commands/site/site-apppermission-remove.js +34 -38
  187. package/dist/m365/spo/commands/site/site-apppermission-set.js +11 -14
  188. package/dist/m365/spo/commands/site/site-commsite-enable.js +34 -5
  189. package/dist/m365/spo/commands/site/site-ensure.js +14 -67
  190. package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +22 -22
  191. package/dist/m365/spo/commands/site/site-list.js +25 -43
  192. package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +6 -6
  193. package/dist/m365/spo/commands/site/site-remove.js +166 -210
  194. package/dist/m365/spo/commands/site/site-set.js +178 -199
  195. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
  196. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +12 -7
  197. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +3 -2
  198. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +2 -1
  199. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +3 -2
  200. package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +8 -8
  201. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +8 -3
  202. package/dist/m365/spo/commands/tenant/tenant-commandset-list.js +3 -2
  203. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -1
  204. package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +8 -8
  205. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +4 -4
  206. package/dist/m365/spo/commands/term/term-get.js +6 -6
  207. package/dist/m365/spo/commands/theme/theme-list.js +1 -9
  208. package/dist/m365/spo/commands/theme/theme-remove.js +24 -24
  209. package/dist/m365/spo/commands/theme/theme-set.js +0 -1
  210. package/dist/m365/spo/commands/user/user-remove.js +27 -27
  211. package/dist/m365/spo/commands/web/web-reindex.js +35 -42
  212. package/dist/m365/spo/commands/web/web-remove.js +21 -21
  213. package/dist/m365/spo/commands/web/web-roleassignment-add.js +16 -31
  214. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +33 -44
  215. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +18 -18
  216. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +19 -19
  217. package/dist/m365/spo/commands/web/web-set.js +5 -5
  218. package/dist/m365/teams/commands/app/app-list.js +5 -5
  219. package/dist/m365/teams/commands/app/app-remove.js +49 -15
  220. package/dist/m365/teams/commands/channel/channel-add.js +5 -1
  221. package/dist/m365/teams/commands/channel/channel-member-add.js +12 -10
  222. package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -1
  223. package/dist/m365/teams/commands/channel/channel-member-set.js +4 -1
  224. package/dist/m365/teams/commands/chat/chat-get.js +7 -10
  225. package/dist/m365/teams/commands/chat/chat-member-add.js +5 -5
  226. package/dist/m365/teams/commands/chat/chat-message-send.js +8 -10
  227. package/dist/m365/teams/commands/funsettings/funsettings-set.js +4 -4
  228. package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +4 -4
  229. package/dist/m365/teams/commands/meeting/meeting-list.js +101 -51
  230. package/dist/m365/teams/commands/membersettings/membersettings-set.js +4 -4
  231. package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +5 -5
  232. package/dist/m365/teams/commands/team/team-clone.js +5 -10
  233. package/dist/m365/teams/commands/team/team-list.js +94 -30
  234. package/dist/m365/teams/commands/team/team-set.js +3 -3
  235. package/dist/m365/tenant/commands/info/info-get.js +83 -0
  236. package/dist/m365/tenant/commands.js +1 -0
  237. package/dist/m365/todo/commands/task/task-add.js +6 -6
  238. package/dist/m365/yammer/commands/message/message-like-set.js +27 -28
  239. package/dist/m365/yammer/commands/message/message-list.js +67 -86
  240. package/dist/m365/yammer/commands/message/message-remove.js +18 -18
  241. package/dist/m365/yammer/commands/yammer-search.js +58 -74
  242. package/dist/utils/aadGroup.js +23 -3
  243. package/dist/utils/formatting.js +7 -0
  244. package/dist/utils/fsUtil.js +5 -0
  245. package/dist/utils/planner.js +4 -3
  246. package/dist/utils/powerPlatform.js +1 -1
  247. package/dist/utils/spo.js +595 -54
  248. package/dist/utils/validation.js +0 -3
  249. package/docs/docs/_clisettings.mdx +2 -2
  250. package/docs/docs/cmd/_global.mdx +1 -1
  251. package/docs/docs/cmd/aad/app/app-set.mdx +15 -15
  252. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +9 -9
  253. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +10 -10
  254. package/docs/docs/cmd/aad/group/group-get.mdx +5 -5
  255. package/docs/docs/cmd/aad/group/group-list.mdx +0 -11
  256. package/docs/docs/cmd/aad/group/group-remove.mdx +44 -0
  257. package/docs/docs/cmd/aad/{o365group/o365group-add.mdx → m365group/m365group-add.mdx} +25 -15
  258. package/docs/docs/cmd/aad/{o365group/o365group-conversation-list.mdx → m365group/m365group-conversation-list.mdx} +4 -4
  259. package/docs/docs/cmd/aad/{o365group/o365group-conversation-post-list.mdx → m365group/m365group-conversation-post-list.mdx} +8 -8
  260. package/docs/docs/cmd/aad/{o365group/o365group-get.mdx → m365group/m365group-get.mdx} +6 -6
  261. package/docs/docs/cmd/aad/{o365group/o365group-list.mdx → m365group/m365group-list.mdx} +12 -29
  262. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-clear.mdx → m365group/m365group-recyclebinitem-clear.mdx} +5 -5
  263. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-list.mdx → m365group/m365group-recyclebinitem-list.mdx} +8 -8
  264. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-remove.mdx → m365group/m365group-recyclebinitem-remove.mdx} +6 -6
  265. package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-restore.mdx → m365group/m365group-recyclebinitem-restore.mdx} +6 -6
  266. package/docs/docs/cmd/aad/{o365group/o365group-remove.mdx → m365group/m365group-remove.mdx} +6 -6
  267. package/docs/docs/cmd/aad/{o365group/o365group-renew.mdx → m365group/m365group-renew.mdx} +4 -4
  268. package/docs/docs/cmd/aad/{o365group/o365group-report-activitycounts.mdx → m365group/m365group-report-activitycounts.mdx} +6 -6
  269. package/docs/docs/cmd/aad/{o365group/o365group-report-activitydetail.mdx → m365group/m365group-report-activitydetail.mdx} +7 -7
  270. package/docs/docs/cmd/aad/{o365group/o365group-report-activityfilecounts.mdx → m365group/m365group-report-activityfilecounts.mdx} +6 -6
  271. package/docs/docs/cmd/aad/{o365group/o365group-report-activitygroupcounts.mdx → m365group/m365group-report-activitygroupcounts.mdx} +6 -6
  272. package/docs/docs/cmd/aad/{o365group/o365group-report-activitystorage.mdx → m365group/m365group-report-activitystorage.mdx} +6 -6
  273. package/docs/docs/cmd/aad/{o365group/o365group-set.mdx → m365group/m365group-set.mdx} +8 -8
  274. package/docs/docs/cmd/aad/{o365group/o365group-teamify.mdx → m365group/m365group-teamify.mdx} +5 -5
  275. package/docs/docs/cmd/aad/{o365group/o365group-user-add.mdx → m365group/m365group-user-add.mdx} +5 -5
  276. package/docs/docs/cmd/aad/{o365group/o365group-user-list.mdx → m365group/m365group-user-list.mdx} +7 -7
  277. package/docs/docs/cmd/aad/{o365group/o365group-user-remove.mdx → m365group/m365group-user-remove.mdx} +5 -5
  278. package/docs/docs/cmd/aad/{o365group/o365group-user-set.mdx → m365group/m365group-user-set.mdx} +5 -5
  279. package/docs/docs/cmd/aad/policy/policy-list.mdx +5 -5
  280. package/docs/docs/cmd/aad/user/user-set.mdx +1 -1
  281. package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
  282. package/docs/docs/cmd/flow/flow-enable.mdx +2 -2
  283. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +10 -10
  284. package/docs/docs/cmd/login.mdx +6 -0
  285. package/docs/docs/cmd/pa/app/app-export.mdx +5 -5
  286. package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
  287. package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
  288. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  289. package/docs/docs/cmd/planner/task/task-add.mdx +22 -7
  290. package/docs/docs/cmd/planner/task/task-get.mdx +13 -4
  291. package/docs/docs/cmd/planner/task/task-list.mdx +22 -7
  292. package/docs/docs/cmd/planner/task/task-remove.mdx +25 -8
  293. package/docs/docs/cmd/planner/task/task-set.mdx +22 -7
  294. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +2 -2
  295. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +2 -2
  296. package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +3 -3
  297. package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +2 -2
  298. package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +2 -2
  299. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +94 -0
  300. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  301. package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
  302. package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
  303. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -9
  304. package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
  305. package/docs/docs/cmd/spo/file/file-copy.mdx +20 -16
  306. package/docs/docs/cmd/spo/file/file-get.mdx +3 -3
  307. package/docs/docs/cmd/spo/file/file-list.mdx +2 -2
  308. package/docs/docs/cmd/spo/file/file-move.mdx +36 -18
  309. package/docs/docs/cmd/spo/file/file-remove.mdx +10 -10
  310. package/docs/docs/cmd/spo/file/file-rename.mdx +3 -3
  311. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +2 -2
  312. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +3 -3
  313. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
  314. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
  315. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
  316. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
  317. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
  318. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
  319. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
  320. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
  321. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
  322. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
  323. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
  324. package/docs/docs/cmd/spo/file/file-version-clear.mdx +3 -3
  325. package/docs/docs/cmd/spo/file/file-version-get.mdx +3 -3
  326. package/docs/docs/cmd/spo/file/file-version-list.mdx +3 -3
  327. package/docs/docs/cmd/spo/file/file-version-remove.mdx +3 -3
  328. package/docs/docs/cmd/spo/file/file-version-restore.mdx +3 -3
  329. package/docs/docs/cmd/spo/folder/folder-add.mdx +76 -1
  330. package/docs/docs/cmd/spo/folder/folder-copy.mdx +39 -12
  331. package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
  332. package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
  333. package/docs/docs/cmd/spo/folder/folder-move.mdx +40 -13
  334. package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
  335. package/docs/docs/cmd/spo/folder/folder-rename.mdx +5 -1
  336. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  337. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
  338. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +2 -2
  339. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
  340. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
  341. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
  342. package/docs/docs/cmd/spo/group/group-member-add.mdx +27 -27
  343. package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +1 -1
  344. package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.mdx +2 -11
  345. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +2 -5
  346. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
  347. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +2 -5
  348. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +14 -1
  349. package/docs/docs/cmd/spo/page/page-get.mdx +0 -1
  350. package/docs/docs/cmd/spo/page/page-list.mdx +0 -1
  351. package/docs/docs/cmd/spo/page/page-section-add.mdx +25 -1
  352. package/docs/docs/cmd/spo/page/page-set.mdx +23 -0
  353. package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
  354. package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +11 -2
  355. package/docs/docs/cmd/spo/site/site-ensure.mdx +1 -1
  356. package/docs/docs/cmd/spo/site/site-list.mdx +3 -78
  357. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  358. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +2 -2
  359. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +3 -5
  360. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
  361. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  362. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +2 -4
  363. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
  364. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  365. package/docs/docs/cmd/teams/app/app-remove.mdx +9 -6
  366. package/docs/docs/cmd/teams/channel/channel-member-add.mdx +4 -4
  367. package/docs/docs/cmd/teams/meeting/meeting-list.mdx +135 -92
  368. package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
  369. package/docs/docs/cmd/teams/team/team-clone.mdx +3 -3
  370. package/docs/docs/cmd/teams/team/team-list.mdx +47 -22
  371. package/docs/docs/cmd/tenant/info/info-get.mdx +101 -0
  372. package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
  373. package/npm-shrinkwrap.json +310 -1433
  374. package/package.json +22 -27
  375. package/dist/m365/pa/cds-project-mutator.js +0 -91
  376. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/generated/ManifestTypes.d.ts +0 -11
  377. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_ControlManifest.Input.xml +0 -31
  378. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_index.ts +0 -51
  379. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/generated/ManifestTypes.d.ts +0 -12
  380. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_ControlManifest.Input.xml +0 -37
  381. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_index.ts +0 -48
  382. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/index.ts +0 -0
  383. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_ControlManifest.Input.xml +0 -31
  384. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_index.tsx +0 -58
  385. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_ControlManifest.Input.xml +0 -37
  386. package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_index.tsx +0 -55
  387. package/dist/m365/pa/commands/pcf/pcf-init/assets/package.json +0 -19
  388. package/dist/m365/pa/commands/pcf/pcf-init/assets/pcfconfig.json +0 -3
  389. package/dist/m365/pa/commands/pcf/pcf-init/assets/template_.gitignore +0 -14
  390. package/dist/m365/pa/commands/pcf/pcf-init/assets/template_pcfprojecttype.pcfproj +0 -45
  391. package/dist/m365/pa/commands/pcf/pcf-init/pcf-init-variables.js +0 -2
  392. package/dist/m365/pa/commands/pcf/pcf-init.js +0 -120
  393. package/dist/m365/pa/commands/solution/solution-init/assets/Other/Customizations.xml +0 -18
  394. package/dist/m365/pa/commands/solution/solution-init/assets/Other/Relationships.xml +0 -2
  395. package/dist/m365/pa/commands/solution/solution-init/assets/Other/template_Solution.xml +0 -94
  396. package/dist/m365/pa/commands/solution/solution-init/assets/template_.gitignore +0 -2
  397. package/dist/m365/pa/commands/solution/solution-init/assets/template_solutionprojecttype.cdsproj +0 -44
  398. package/dist/m365/pa/commands/solution/solution-init/solution-init-variables.js +0 -2
  399. package/dist/m365/pa/commands/solution/solution-init.js +0 -126
  400. package/dist/m365/pa/commands/solution/solution-reference-add.js +0 -88
  401. package/dist/m365/pa/template-instantiator.js +0 -57
  402. package/docs/docs/cmd/pa/pcf/pcf-init.mdx +0 -56
  403. package/docs/docs/cmd/pa/solution/solution-init.mdx +0 -46
  404. package/docs/docs/cmd/pa/solution/solution-reference-add.mdx +0 -42
  405. /package/dist/m365/aad/commands/{o365group → m365group}/GroupExtended.js +0 -0
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
3
3
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
- var _PlannerTaskReferenceRemoveCommand_instances, _PlannerTaskReferenceRemoveCommand_initTelemetry, _PlannerTaskReferenceRemoveCommand_initOptions, _PlannerTaskReferenceRemoveCommand_initValidators, _PlannerTaskReferenceRemoveCommand_initOptionSets;
6
+ var _PlannerTaskReferenceRemoveCommand_instances, _PlannerTaskReferenceRemoveCommand_initTelemetry, _PlannerTaskReferenceRemoveCommand_initOptions, _PlannerTaskReferenceRemoveCommand_initValidators, _PlannerTaskReferenceRemoveCommand_initOptionSets, _PlannerTaskReferenceRemoveCommand_initTypes;
7
7
  import { Cli } from '../../../../cli/Cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import { formatting } from '../../../../utils/formatting.js';
@@ -23,6 +23,7 @@ class PlannerTaskReferenceRemoveCommand extends GraphCommand {
23
23
  __classPrivateFieldGet(this, _PlannerTaskReferenceRemoveCommand_instances, "m", _PlannerTaskReferenceRemoveCommand_initOptions).call(this);
24
24
  __classPrivateFieldGet(this, _PlannerTaskReferenceRemoveCommand_instances, "m", _PlannerTaskReferenceRemoveCommand_initValidators).call(this);
25
25
  __classPrivateFieldGet(this, _PlannerTaskReferenceRemoveCommand_instances, "m", _PlannerTaskReferenceRemoveCommand_initOptionSets).call(this);
26
+ __classPrivateFieldGet(this, _PlannerTaskReferenceRemoveCommand_instances, "m", _PlannerTaskReferenceRemoveCommand_initTypes).call(this);
26
27
  }
27
28
  async commandAction(logger, args) {
28
29
  if (args.options.force) {
@@ -112,6 +113,8 @@ _PlannerTaskReferenceRemoveCommand_instances = new WeakSet(), _PlannerTaskRefere
112
113
  });
113
114
  }, _PlannerTaskReferenceRemoveCommand_initOptionSets = function _PlannerTaskReferenceRemoveCommand_initOptionSets() {
114
115
  this.optionSets.push({ options: ['url', 'alias'] });
116
+ }, _PlannerTaskReferenceRemoveCommand_initTypes = function _PlannerTaskReferenceRemoveCommand_initTypes() {
117
+ this.types.string.push('url', 'taskId', 'alias');
115
118
  };
116
119
  export default new PlannerTaskReferenceRemoveCommand();
117
120
  //# sourceMappingURL=task-reference-remove.js.map
@@ -3,8 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
3
3
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
- var _PlannerTaskRemoveCommand_instances, _PlannerTaskRemoveCommand_initTelemetry, _PlannerTaskRemoveCommand_initOptions, _PlannerTaskRemoveCommand_initValidators, _PlannerTaskRemoveCommand_initOptionSets;
7
- import os from 'os';
6
+ var _PlannerTaskRemoveCommand_instances, _PlannerTaskRemoveCommand_initTelemetry, _PlannerTaskRemoveCommand_initOptions, _PlannerTaskRemoveCommand_initValidators, _PlannerTaskRemoveCommand_initOptionSets, _PlannerTaskRemoveCommand_initTypes;
8
7
  import { Cli } from '../../../../cli/Cli.js';
9
8
  import request from '../../../../request.js';
10
9
  import { aadGroup } from '../../../../utils/aadGroup.js';
@@ -13,6 +12,7 @@ import { planner } from '../../../../utils/planner.js';
13
12
  import { validation } from '../../../../utils/validation.js';
14
13
  import GraphCommand from '../../../base/GraphCommand.js';
15
14
  import commands from '../../commands.js';
15
+ import { formatting } from '../../../../utils/formatting.js';
16
16
  class PlannerTaskRemoveCommand extends GraphCommand {
17
17
  get name() {
18
18
  return commands.TASK_REMOVE;
@@ -27,6 +27,7 @@ class PlannerTaskRemoveCommand extends GraphCommand {
27
27
  __classPrivateFieldGet(this, _PlannerTaskRemoveCommand_instances, "m", _PlannerTaskRemoveCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _PlannerTaskRemoveCommand_instances, "m", _PlannerTaskRemoveCommand_initValidators).call(this);
29
29
  __classPrivateFieldGet(this, _PlannerTaskRemoveCommand_instances, "m", _PlannerTaskRemoveCommand_initOptionSets).call(this);
30
+ __classPrivateFieldGet(this, _PlannerTaskRemoveCommand_instances, "m", _PlannerTaskRemoveCommand_initTypes).call(this);
30
31
  }
31
32
  async commandAction(logger, args) {
32
33
  const removeTask = async () => {
@@ -81,7 +82,8 @@ class PlannerTaskRemoveCommand extends GraphCommand {
81
82
  throw `The specified task ${title} does not exist`;
82
83
  }
83
84
  if (filteredtasks.length > 1) {
84
- throw `Multiple tasks with title ${title} found: Please disambiguate: ${os.EOL}${filteredtasks.map(f => `- ${f.id}`).join(os.EOL)}`;
85
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', filteredtasks);
86
+ return await Cli.handleMultipleResultsFound(`Multiple tasks with title '${title}' found.`, resultAsKeyValuePair);
85
87
  }
86
88
  return filteredtasks[0];
87
89
  }
@@ -104,18 +106,26 @@ class PlannerTaskRemoveCommand extends GraphCommand {
104
106
  throw `The specified bucket ${bucketName} does not exist`;
105
107
  }
106
108
  if (filteredBuckets.length > 1) {
107
- throw `Multiple buckets with name ${bucketName} found: Please disambiguate:${os.EOL}${filteredBuckets.map(f => `- ${f.id}`).join(os.EOL)}`;
109
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', filteredBuckets);
110
+ const result = await Cli.handleMultipleResultsFound(`Multiple buckets with name '${bucketName}' found.`, resultAsKeyValuePair);
111
+ return result.id;
108
112
  }
109
113
  return filteredBuckets[0].id;
110
114
  }
111
115
  async getPlanId(options) {
112
- const { planId, planTitle } = options;
116
+ const { planId, planTitle, rosterId } = options;
113
117
  if (planId) {
114
118
  return planId;
115
119
  }
116
- const groupId = await this.getGroupId(options);
117
- const plan = await planner.getPlanByTitle(planTitle, groupId);
118
- return plan.id;
120
+ if (options.rosterId) {
121
+ const plan = await planner.getPlanByRosterId(rosterId);
122
+ return plan.id;
123
+ }
124
+ else {
125
+ const groupId = await this.getGroupId(options);
126
+ const plan = await planner.getPlanByTitle(planTitle, groupId);
127
+ return plan.id;
128
+ }
119
129
  }
120
130
  async getGroupId(options) {
121
131
  const { ownerGroupId, ownerGroupName } = options;
@@ -135,51 +145,52 @@ _PlannerTaskRemoveCommand_instances = new WeakSet(), _PlannerTaskRemoveCommand_i
135
145
  bucketName: typeof args.options.bucketName !== 'undefined',
136
146
  planId: typeof args.options.planId !== 'undefined',
137
147
  planTitle: typeof args.options.planTitle !== 'undefined',
148
+ rosterId: typeof args.options.rosterId !== 'undefined',
138
149
  ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
139
150
  ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
140
151
  force: !!args.options.force
141
152
  });
142
153
  });
143
154
  }, _PlannerTaskRemoveCommand_initOptions = function _PlannerTaskRemoveCommand_initOptions() {
144
- this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '-f, --force' });
155
+ this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '-f, --force' });
145
156
  }, _PlannerTaskRemoveCommand_initValidators = function _PlannerTaskRemoveCommand_initValidators() {
146
157
  this.validators.push(async (args) => {
147
158
  if (args.options.id) {
148
- if (args.options.bucketId || args.options.bucketName || args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
149
- return 'Don\'t specify bucketId,bucketName, planId, planTitle, ownerGroupId or ownerGroupName when using id';
159
+ if (args.options.bucketId || args.options.bucketName ||
160
+ args.options.planId || args.options.planTitle || args.options.rosterId ||
161
+ args.options.ownerGroupId || args.options.ownerGroupName) {
162
+ return 'Don\'t specify bucketId,bucketName, planId, planTitle, rosterId, ownerGroupId, or ownerGroupName when using id';
150
163
  }
151
164
  }
152
- if (args.options.title) {
153
- if (!args.options.bucketId && !args.options.bucketName) {
154
- return 'Specify either bucketId or bucketName when using title';
155
- }
156
- if (args.options.bucketId && args.options.bucketName) {
157
- return 'Specify either bucketId or bucketName when using title but not both';
158
- }
159
- if (args.options.bucketName) {
160
- if (!args.options.planId && !args.options.planTitle) {
161
- return 'Specify either planId or planTitle when using bucketName';
162
- }
163
- if (args.options.planId && args.options.planTitle) {
164
- return 'Specify either planId or planTitle when using bucketName but not both';
165
- }
166
- }
167
- if (args.options.planTitle) {
168
- if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
169
- return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
170
- }
171
- if (args.options.ownerGroupId && args.options.ownerGroupName) {
172
- return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
173
- }
174
- }
175
- if (args.options.ownerGroupId && !validation.isValidGuid(args.options.ownerGroupId)) {
176
- return `${args.options.ownerGroupId} is not a valid GUID`;
177
- }
165
+ if (args.options.ownerGroupId && !validation.isValidGuid(args.options.ownerGroupId)) {
166
+ return `${args.options.ownerGroupId} is not a valid GUID`;
178
167
  }
179
168
  return true;
180
169
  });
181
170
  }, _PlannerTaskRemoveCommand_initOptionSets = function _PlannerTaskRemoveCommand_initOptionSets() {
182
- this.optionSets.push({ options: ['id', 'title'] });
171
+ this.optionSets.push({ options: ['id', 'title'] }, {
172
+ options: ['planId', 'planTitle', 'rosterId'],
173
+ runsWhen: (args) => {
174
+ return args.options.id === undefined;
175
+ }
176
+ }, {
177
+ options: ['bucketId', 'bucketName'],
178
+ runsWhen: (args) => {
179
+ return args.options.title !== undefined;
180
+ }
181
+ }, {
182
+ options: ['planId', 'planTitle'],
183
+ runsWhen: (args) => {
184
+ return args.options.bucketName !== undefined && args.options.rosterId === undefined;
185
+ }
186
+ }, {
187
+ options: ['ownerGroupId', 'ownerGroupName'],
188
+ runsWhen: (args) => {
189
+ return args.options.planTitle !== undefined;
190
+ }
191
+ });
192
+ }, _PlannerTaskRemoveCommand_initTypes = function _PlannerTaskRemoveCommand_initTypes() {
193
+ this.types.string.push('id', 'title', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'bucketId', 'bucketName', 'rosterId');
183
194
  };
184
195
  export default new PlannerTaskRemoveCommand();
185
196
  //# sourceMappingURL=task-remove.js.map
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
3
3
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
- var _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _PlannerTaskSetCommand_initOptions, _PlannerTaskSetCommand_initValidators;
6
+ var _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _PlannerTaskSetCommand_initOptions, _PlannerTaskSetCommand_initValidators, _PlannerTaskSetCommand_initOptionSets, _PlannerTaskSetCommand_initTypes;
7
7
  import request from '../../../../request.js';
8
8
  import { aadGroup } from '../../../../utils/aadGroup.js';
9
9
  import { formatting } from '../../../../utils/formatting.js';
@@ -26,6 +26,8 @@ class PlannerTaskSetCommand extends GraphCommand {
26
26
  __classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initTelemetry).call(this);
27
27
  __classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initOptions).call(this);
28
28
  __classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initOptionSets).call(this);
30
+ __classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initTypes).call(this);
29
31
  }
30
32
  async commandAction(logger, args) {
31
33
  try {
@@ -170,9 +172,15 @@ class PlannerTaskSetCommand extends GraphCommand {
170
172
  if (options.planId) {
171
173
  return options.planId;
172
174
  }
173
- const groupId = await this.getGroupId(options);
174
- const plan = await planner.getPlanByTitle(options.planTitle, groupId);
175
- return plan.id;
175
+ if (options.rosterId) {
176
+ const plan = await planner.getPlanByRosterId(options.rosterId);
177
+ return plan.id;
178
+ }
179
+ else {
180
+ const groupId = await this.getGroupId(options);
181
+ const plan = await planner.getPlanByTitle(options.planTitle, groupId);
182
+ return plan.id;
183
+ }
176
184
  }
177
185
  async getGroupId(options) {
178
186
  if (options.ownerGroupId) {
@@ -222,6 +230,7 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
222
230
  title: typeof args.options.title !== 'undefined',
223
231
  planId: typeof args.options.planId !== 'undefined',
224
232
  planTitle: typeof args.options.planTitle !== 'undefined',
233
+ rosterId: typeof args.options.rosterId !== 'undefined',
225
234
  ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
226
235
  ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
227
236
  bucketId: typeof args.options.bucketId !== 'undefined',
@@ -239,24 +248,9 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
239
248
  });
240
249
  });
241
250
  }, _PlannerTaskSetCommand_initOptions = function _PlannerTaskSetCommand_initOptions() {
242
- this.options.unshift({ option: '-i, --id <id>' }, { option: '-t, --title [title]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, { option: '--appliedCategories [appliedCategories]' }, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority.priorityValues });
251
+ this.options.unshift({ option: '-i, --id <id>' }, { option: '-t, --title [title]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, { option: '--appliedCategories [appliedCategories]' }, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority.priorityValues });
243
252
  }, _PlannerTaskSetCommand_initValidators = function _PlannerTaskSetCommand_initValidators() {
244
253
  this.validators.push(async (args) => {
245
- if (args.options.bucketId && args.options.bucketName) {
246
- return 'Specify either bucketId or bucketName but not both';
247
- }
248
- if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
249
- return 'Specify either planId or planTitle when using bucketName';
250
- }
251
- if (args.options.bucketName && args.options.planId && args.options.planTitle) {
252
- return 'Specify either planId or planTitle when using bucketName but not both';
253
- }
254
- if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
255
- return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
256
- }
257
- if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
258
- return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
259
- }
260
254
  if (args.options.ownerGroupId && !validation.isValidGuid(args.options.ownerGroupId)) {
261
255
  return `${args.options.ownerGroupId} is not a valid GUID`;
262
256
  }
@@ -275,9 +269,6 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
275
269
  if (args.options.assignedToUserIds && !validation.isValidGuidArray(args.options.assignedToUserIds.split(','))) {
276
270
  return 'assignedToUserIds contains invalid GUID';
277
271
  }
278
- if (args.options.assignedToUserIds && args.options.assignedToUserNames) {
279
- return 'Specify either assignedToUserIds or assignedToUserNames but not both';
280
- }
281
272
  if (args.options.appliedCategories && args.options.appliedCategories.split(',').filter(category => this.allowedAppliedCategories.indexOf(category.toLocaleLowerCase()) < 0).length !== 0) {
282
273
  return 'The appliedCategories contains invalid value. Specify either category1, category2, category3, category4, category5 and/or category6 as properties';
283
274
  }
@@ -293,6 +284,30 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
293
284
  }
294
285
  return true;
295
286
  });
287
+ }, _PlannerTaskSetCommand_initOptionSets = function _PlannerTaskSetCommand_initOptionSets() {
288
+ this.optionSets.push({
289
+ options: ['bucketId', 'bucketName'],
290
+ runsWhen: (args) => {
291
+ return args.options.bucketId || args.options.bucketName;
292
+ }
293
+ }, {
294
+ options: ['planId', 'planTitle', 'rosterId'],
295
+ runsWhen: (args) => {
296
+ return args.options.bucketName !== undefined;
297
+ }
298
+ }, {
299
+ options: ['ownerGroupId', 'ownerGroupName'],
300
+ runsWhen: (args) => {
301
+ return args.options.planTitle !== undefined;
302
+ }
303
+ }, {
304
+ options: ['assignedToUserIds', 'assignedToUserNames'],
305
+ runsWhen: (args) => {
306
+ return args.options.assignedToUserIds || args.options.assignedToUserNames;
307
+ }
308
+ });
309
+ }, _PlannerTaskSetCommand_initTypes = function _PlannerTaskSetCommand_initTypes() {
310
+ this.types.string.push('id', 'title', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'bucketId', 'bucketName', 'description', 'assigneePriority', 'orderHint', 'rosterId', 'startDateTime', 'dueDateTime', 'assignedToUserIds', 'assignedToUserNames', 'assignments', 'appliedCategories');
296
311
  };
297
312
  export default new PlannerTaskSetCommand();
298
313
  //# sourceMappingURL=task-set.js.map
@@ -4,7 +4,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _PpAiBuilderModelGetCommand_instances, _PpAiBuilderModelGetCommand_initTelemetry, _PpAiBuilderModelGetCommand_initOptions, _PpAiBuilderModelGetCommand_initOptionSets, _PpAiBuilderModelGetCommand_initValidators;
7
+ import { Cli } from '../../../../cli/Cli.js';
7
8
  import request from '../../../../request.js';
9
+ import { formatting } from '../../../../utils/formatting.js';
8
10
  import { powerPlatform } from '../../../../utils/powerPlatform.js';
9
11
  import { validation } from '../../../../utils/validation.js';
10
12
  import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
@@ -58,7 +60,8 @@ class PpAiBuilderModelGetCommand extends PowerPlatformCommand {
58
60
  throw `The specified AI builder model '${options.name}' does not exist.`;
59
61
  }
60
62
  if (result.value.length > 1) {
61
- throw `Multiple AI builder models with name '${options.name}' found: ${result.value.map(x => x.msdyn_aimodelid).join(',')}`;
63
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('msdyn_aimodelid', result.value);
64
+ return await Cli.handleMultipleResultsFound(`Multiple AI builder models with name '${options.name}' found.`, resultAsKeyValuePair);
62
65
  }
63
66
  return result.value[0];
64
67
  }
@@ -10,6 +10,7 @@ import { powerPlatform } from '../../../../utils/powerPlatform.js';
10
10
  import { validation } from '../../../../utils/validation.js';
11
11
  import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
12
12
  import commands from '../../commands.js';
13
+ import { formatting } from '../../../../utils/formatting.js';
13
14
  class PpCardGetCommand extends PowerPlatformCommand {
14
15
  get name() {
15
16
  return commands.CARD_GET;
@@ -59,11 +60,8 @@ class PpCardGetCommand extends PowerPlatformCommand {
59
60
  throw `The specified card '${options.name}' does not exist.`;
60
61
  }
61
62
  if (result.value.length > 1) {
62
- const resultAsKeyValuePair = {};
63
- result.value.forEach((obj) => {
64
- resultAsKeyValuePair[obj.cardid] = obj;
65
- });
66
- return Cli.handleMultipleResultsFound(`Multiple cards with name '${options.name}' found. Choose the correct ID:`, `Multiple cards with name '${options.name}' found.`, resultAsKeyValuePair);
63
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('cardid', result.value);
64
+ return Cli.handleMultipleResultsFound(`Multiple cards with name '${options.name}' found`, resultAsKeyValuePair);
67
65
  }
68
66
  return result.value[0];
69
67
  }
@@ -10,6 +10,7 @@ import { powerPlatform } from '../../../../utils/powerPlatform.js';
10
10
  import { validation } from '../../../../utils/validation.js';
11
11
  import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
12
12
  import commands from '../../commands.js';
13
+ import { Cli } from '../../../../cli/Cli.js';
13
14
  class PpChatbotGetCommand extends PowerPlatformCommand {
14
15
  get name() {
15
16
  return commands.CHATBOT_GET;
@@ -56,7 +57,8 @@ class PpChatbotGetCommand extends PowerPlatformCommand {
56
57
  requestOptions.url = `${dynamicsApiUrl}/api/data/v9.1/bots?$filter=name eq '${formatting.encodeQueryParameter(options.name)}'`;
57
58
  const result = await request.get(requestOptions);
58
59
  if (result.value.length > 1) {
59
- throw `Multiple chatbots with name '${options.name}' found: ${result.value.map(x => x.botid).join(',')}`;
60
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('botid', result.value);
61
+ return await Cli.handleMultipleResultsFound(`Multiple chatbots with name '${options.name}' found.`, resultAsKeyValuePair);
60
62
  }
61
63
  if (result.value.length === 0) {
62
64
  throw `The specified chatbot '${options.name}' does not exist.`;
@@ -9,6 +9,7 @@ import { formatting } from '../../../../utils/formatting.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
11
11
  import commands from '../../commands.js';
12
+ import { Cli } from '../../../../cli/Cli.js';
12
13
  class PpManagementAppAddCommand extends PowerPlatformCommand {
13
14
  get name() {
14
15
  return commands.MANAGEMENTAPP_ADD;
@@ -65,7 +66,9 @@ class PpManagementAppAddCommand extends PowerPlatformCommand {
65
66
  if (aadApps.value.length === 1 && aadApps.value[0].appId) {
66
67
  return aadApps.value[0].appId;
67
68
  }
68
- throw `Multiple Azure AD application registration with name ${name} found. Please disambiguate (app IDs): ${aadApps.value.map(a => a.appId).join(', ')}`;
69
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('appId', aadApps.value);
70
+ const result = await Cli.handleMultipleResultsFound(`Multiple Azure AD application registration with name '${name}' found.`, resultAsKeyValuePair);
71
+ return result.appId;
69
72
  }
70
73
  }
71
74
  _PpManagementAppAddCommand_instances = new WeakSet(), _PpManagementAppAddCommand_initTelemetry = function _PpManagementAppAddCommand_initTelemetry() {
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
3
3
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
- var _PurviewRetentionLabelAddCommand_instances, _PurviewRetentionLabelAddCommand_initTelemetry, _PurviewRetentionLabelAddCommand_initOptions, _PurviewRetentionLabelAddCommand_initValidators, _PurviewRetentionLabelAddCommand_initOptionSets;
6
+ var _PurviewRetentionLabelAddCommand_instances, _a, _PurviewRetentionLabelAddCommand_initTelemetry, _PurviewRetentionLabelAddCommand_initOptions, _PurviewRetentionLabelAddCommand_initValidators, _PurviewRetentionLabelAddCommand_initOptionSets;
7
7
  import request from '../../../../request.js';
8
8
  import { odata } from '../../../../utils/odata.js';
9
9
  import GraphCommand from '../../../base/GraphCommand.js';
@@ -90,7 +90,7 @@ class PurviewRetentionLabelAddCommand extends GraphCommand {
90
90
  return filteredEventTypes[0].id;
91
91
  }
92
92
  }
93
- _PurviewRetentionLabelAddCommand_instances = new WeakSet(), _PurviewRetentionLabelAddCommand_initTelemetry = function _PurviewRetentionLabelAddCommand_initTelemetry() {
93
+ _a = PurviewRetentionLabelAddCommand, _PurviewRetentionLabelAddCommand_instances = new WeakSet(), _PurviewRetentionLabelAddCommand_initTelemetry = function _PurviewRetentionLabelAddCommand_initTelemetry() {
94
94
  this.telemetry.push((args) => {
95
95
  Object.assign(this.telemetryProperties, {
96
96
  retentionTrigger: typeof args.options.retentionTrigger !== 'undefined',
@@ -107,18 +107,18 @@ _PurviewRetentionLabelAddCommand_instances = new WeakSet(), _PurviewRetentionLab
107
107
  option: '-n, --displayName <displayName>'
108
108
  }, {
109
109
  option: '--behaviorDuringRetentionPeriod <behaviorDuringRetentionPeriod>',
110
- autocomplete: PurviewRetentionLabelAddCommand.behaviorDuringRetentionPeriods
110
+ autocomplete: _a.behaviorDuringRetentionPeriods
111
111
  }, {
112
112
  option: '--actionAfterRetentionPeriod <actionAfterRetentionPeriod>',
113
- autocomplete: PurviewRetentionLabelAddCommand.actionAfterRetentionPeriods
113
+ autocomplete: _a.actionAfterRetentionPeriods
114
114
  }, {
115
115
  option: '--retentionDuration <retentionDuration>'
116
116
  }, {
117
117
  option: '-t, --retentionTrigger [retentionTrigger]',
118
- autocomplete: PurviewRetentionLabelAddCommand.retentionTriggers
118
+ autocomplete: _a.retentionTriggers
119
119
  }, {
120
120
  option: '--defaultRecordBehavior [defaultRecordBehavior]',
121
- autocomplete: PurviewRetentionLabelAddCommand.defaultRecordBehavior
121
+ autocomplete: _a.defaultRecordBehavior
122
122
  }, {
123
123
  option: '--descriptionForUsers [descriptionForUsers]'
124
124
  }, {
@@ -135,19 +135,19 @@ _PurviewRetentionLabelAddCommand_instances = new WeakSet(), _PurviewRetentionLab
135
135
  if (isNaN(args.options.retentionDuration)) {
136
136
  return `Specified retentionDuration ${args.options.retentionDuration} is not a number`;
137
137
  }
138
- if (PurviewRetentionLabelAddCommand.behaviorDuringRetentionPeriods.indexOf(args.options.behaviorDuringRetentionPeriod) === -1) {
139
- return `${args.options.behaviorDuringRetentionPeriod} is not a valid behavior of a document with the label. Allowed values are ${PurviewRetentionLabelAddCommand.behaviorDuringRetentionPeriods.join(', ')}`;
138
+ if (_a.behaviorDuringRetentionPeriods.indexOf(args.options.behaviorDuringRetentionPeriod) === -1) {
139
+ return `${args.options.behaviorDuringRetentionPeriod} is not a valid behavior of a document with the label. Allowed values are ${_a.behaviorDuringRetentionPeriods.join(', ')}`;
140
140
  }
141
- if (PurviewRetentionLabelAddCommand.actionAfterRetentionPeriods.indexOf(args.options.actionAfterRetentionPeriod) === -1) {
142
- return `${args.options.actionAfterRetentionPeriod} is not a valid action to take on a document with the label. Allowed values are ${PurviewRetentionLabelAddCommand.actionAfterRetentionPeriods.join(', ')}`;
141
+ if (_a.actionAfterRetentionPeriods.indexOf(args.options.actionAfterRetentionPeriod) === -1) {
142
+ return `${args.options.actionAfterRetentionPeriod} is not a valid action to take on a document with the label. Allowed values are ${_a.actionAfterRetentionPeriods.join(', ')}`;
143
143
  }
144
144
  if (args.options.retentionTrigger &&
145
- PurviewRetentionLabelAddCommand.retentionTriggers.indexOf(args.options.retentionTrigger) === -1) {
146
- return `${args.options.retentionTrigger} is not a valid action retention duration calculation. Allowed values are ${PurviewRetentionLabelAddCommand.retentionTriggers.join(', ')}`;
145
+ _a.retentionTriggers.indexOf(args.options.retentionTrigger) === -1) {
146
+ return `${args.options.retentionTrigger} is not a valid action retention duration calculation. Allowed values are ${_a.retentionTriggers.join(', ')}`;
147
147
  }
148
148
  if (args.options.defaultRecordBehavior &&
149
- PurviewRetentionLabelAddCommand.defaultRecordBehavior.indexOf(args.options.defaultRecordBehavior) === -1) {
150
- return `${args.options.defaultRecordBehavior} is not a valid state of a record label. Allowed values are ${PurviewRetentionLabelAddCommand.defaultRecordBehavior.join(', ')}`;
149
+ _a.defaultRecordBehavior.indexOf(args.options.defaultRecordBehavior) === -1) {
150
+ return `${args.options.defaultRecordBehavior} is not a valid state of a record label. Allowed values are ${_a.defaultRecordBehavior.join(', ')}`;
151
151
  }
152
152
  return true;
153
153
  });
@@ -41,7 +41,9 @@ class SearchExternalConnectionRemoveCommand extends GraphCommand {
41
41
  if (res.value.length === 0) {
42
42
  throw `The specified connection does not exist in Microsoft Search`;
43
43
  }
44
- throw `Multiple external connections with name ${args.options.name} found. Please disambiguate (IDs): ${res.value.map(x => x.id).join(', ')}`;
44
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', res.value);
45
+ const result = await Cli.handleMultipleResultsFound(`Multiple external connections with name ${args.options.name} found.`, resultAsKeyValuePair);
46
+ return result.id;
45
47
  }
46
48
  async commandAction(logger, args) {
47
49
  if (args.options.force) {
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
3
3
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
- var _SpfxPackageGenerateCommand_instances, _SpfxPackageGenerateCommand_initTelemetry, _SpfxPackageGenerateCommand_initOptions, _SpfxPackageGenerateCommand_initValidators;
6
+ var _SpfxPackageGenerateCommand_instances, _a, _SpfxPackageGenerateCommand_initTelemetry, _SpfxPackageGenerateCommand_initOptions, _SpfxPackageGenerateCommand_initValidators;
7
7
  import AdmZip from 'adm-zip';
8
8
  import fs from 'fs';
9
9
  import os from 'os';
@@ -37,7 +37,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
37
37
  supportedHosts.push('TeamsPersonalApp');
38
38
  }
39
39
  const tokens = {
40
- clientSideAssetsFeatureId: SpfxPackageGenerateCommand.generateNewId(),
40
+ clientSideAssetsFeatureId: _a.generateNewId(),
41
41
  developerName: args.options.developerName || 'Contoso',
42
42
  developerWebsiteUrl: args.options.developerWebsiteUrl || 'https://contoso.com/my-app',
43
43
  developerPrivacyUrl: args.options.developerPrivacyUrl || 'https://contoso.com/privacy',
@@ -46,18 +46,18 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
46
46
  exposePageContextGlobally: args.options.exposePageContextGlobally ? '!0' : '!1',
47
47
  exposeTeamsContextGlobally: args.options.exposeTeamsContextGlobally ? '!0' : '!1',
48
48
  html: args.options.html.replace(/"/g, '\\"').replace(/\r\n/g, ' ').replace(/\n/g, ' '),
49
- packageName: SpfxPackageGenerateCommand.getSafePackageName(args.options.webPartTitle),
50
- productId: SpfxPackageGenerateCommand.generateNewId(),
49
+ packageName: _a.getSafePackageName(args.options.webPartTitle),
50
+ productId: _a.generateNewId(),
51
51
  skipFeatureDeployment: (args.options.allowTenantWideDeployment === true).toString(),
52
52
  supportedHosts: JSON.stringify(supportedHosts).replace(/"/g, '&quot;'),
53
- webPartId: SpfxPackageGenerateCommand.generateNewId(),
53
+ webPartId: _a.generateNewId(),
54
54
  webPartFeatureName: `${args.options.webPartTitle} Feature`,
55
55
  webPartFeatureDescription: `A feature which activates the Client-Side WebPart named ${args.options.webPartTitle}`,
56
- webPartAlias: SpfxPackageGenerateCommand.getWebPartAlias(args.options.webPartTitle),
56
+ webPartAlias: _a.getWebPartAlias(args.options.webPartTitle),
57
57
  webPartName: args.options.webPartTitle,
58
- webPartSafeName: SpfxPackageGenerateCommand.getSafeWebPartName(args.options.webPartTitle),
58
+ webPartSafeName: _a.getSafeWebPartName(args.options.webPartTitle),
59
59
  webPartDescription: args.options.webPartDescription,
60
- webPartModule: SpfxPackageGenerateCommand.getSafePackageName(args.options.webPartTitle)
60
+ webPartModule: _a.getSafePackageName(args.options.webPartTitle)
61
61
  };
62
62
  let tmpDir = undefined;
63
63
  let error;
@@ -73,7 +73,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
73
73
  await logger.log('Copying files...');
74
74
  }
75
75
  const src = path.join(__dirname, 'package-generate', 'assets');
76
- fsUtil.copyRecursiveSync(src, tmpDir, s => SpfxPackageGenerateCommand.replaceTokens(s, tokens));
76
+ fsUtil.copyRecursiveSync(src, tmpDir, s => _a.replaceTokens(s, tokens));
77
77
  const files = fsUtil.readdirR(tmpDir);
78
78
  if (this.verbose) {
79
79
  await logger.log('Processing files...');
@@ -82,7 +82,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
82
82
  if (this.debug) {
83
83
  await logger.log(`Processing ${filePath}...`);
84
84
  }
85
- if (!SpfxPackageGenerateCommand.isBinaryFile(filePath)) {
85
+ if (!_a.isBinaryFile(filePath)) {
86
86
  if (this.verbose) {
87
87
  await logger.log('Replacing tokens...');
88
88
  }
@@ -91,7 +91,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
91
91
  await logger.log('Before:');
92
92
  await logger.log(fileContents);
93
93
  }
94
- fileContents = SpfxPackageGenerateCommand.replaceTokens(fileContents, tokens);
94
+ fileContents = _a.replaceTokens(fileContents, tokens);
95
95
  if (this.debug) {
96
96
  await logger.log('After:');
97
97
  await logger.log(fileContents);
@@ -170,7 +170,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
170
170
  return 'AutoWP' + webPartName.replace(/[^a-zA-Z0-9]/g, '').substr(0, 40);
171
171
  }
172
172
  }
173
- _SpfxPackageGenerateCommand_instances = new WeakSet(), _SpfxPackageGenerateCommand_initTelemetry = function _SpfxPackageGenerateCommand_initTelemetry() {
173
+ _a = SpfxPackageGenerateCommand, _SpfxPackageGenerateCommand_instances = new WeakSet(), _SpfxPackageGenerateCommand_initTelemetry = function _SpfxPackageGenerateCommand_initTelemetry() {
174
174
  this.telemetry.push((args) => {
175
175
  Object.assign(this.telemetryProperties, {
176
176
  allowTenantWideDeployment: args.options.allowTenantWideDeployment === true,
@@ -187,13 +187,13 @@ _SpfxPackageGenerateCommand_instances = new WeakSet(), _SpfxPackageGenerateComma
187
187
  }, _SpfxPackageGenerateCommand_initOptions = function _SpfxPackageGenerateCommand_initOptions() {
188
188
  this.options.unshift({ option: '-t, --webPartTitle <webPartTitle>' }, { option: '-d, --webPartDescription <webPartDescription>' }, { option: '-n, --name <name>' }, { option: '--html <html>' }, {
189
189
  option: '--enableForTeams [enableForTeams]',
190
- autocomplete: SpfxPackageGenerateCommand.enableForTeamsOptions
190
+ autocomplete: _a.enableForTeamsOptions
191
191
  }, { option: '--exposePageContextGlobally' }, { option: '--exposeTeamsContextGlobally' }, { option: '--allowTenantWideDeployment' }, { option: '--developerName [developerName]' }, { option: '--developerPrivacyUrl [developerPrivacyUrl]' }, { option: '--developerTermsOfUseUrl [developerTermsOfUseUrl]' }, { option: '--developerWebsiteUrl [developerWebsiteUrl]' }, { option: '--developerMpnId [developerMpnId]' });
192
192
  }, _SpfxPackageGenerateCommand_initValidators = function _SpfxPackageGenerateCommand_initValidators() {
193
193
  this.validators.push(async (args) => {
194
194
  if (args.options.enableForTeams &&
195
- SpfxPackageGenerateCommand.enableForTeamsOptions.indexOf(args.options.enableForTeams) < 0) {
196
- return `${args.options.enableForTeams} is not a valid value for enableForTeams. Allowed values are: ${SpfxPackageGenerateCommand.enableForTeamsOptions.join(', ')}`;
195
+ _a.enableForTeamsOptions.indexOf(args.options.enableForTeams) < 0) {
196
+ return `${args.options.enableForTeams} is not a valid value for enableForTeams. Allowed values are: ${_a.enableForTeamsOptions.join(', ')}`;
197
197
  }
198
198
  return true;
199
199
  });
@@ -0,0 +1,55 @@
1
+ export const workflow = {
2
+ name: "Deploy Solution {{ name }}",
3
+ on: {
4
+ push: {
5
+ branches: [
6
+ "main"
7
+ ]
8
+ }
9
+ },
10
+ jobs: {
11
+ "build-and-deploy": {
12
+ "runs-on": "ubuntu-latest",
13
+ steps: [
14
+ {
15
+ name: "Checkout",
16
+ uses: "actions/checkout@v3.5.3"
17
+ },
18
+ {
19
+ name: "Use Node.js 16.x",
20
+ uses: "actions/setup-node@v3.7.0",
21
+ with: {
22
+ "node-version": "16.x"
23
+ }
24
+ },
25
+ {
26
+ name: "Run npm ci",
27
+ run: "npm ci"
28
+ },
29
+ {
30
+ name: "Bundle & Package",
31
+ run: "gulp bundle --ship\ngulp package-solution --ship\n"
32
+ },
33
+ {
34
+ name: "CLI for Microsoft 365 Login",
35
+ uses: "pnp/action-cli-login@v2.2.2",
36
+ with: {
37
+ "CERTIFICATE_ENCODED": "${{ secrets.CERTIFICATE_ENCODED }}",
38
+ "CERTIFICATE_PASSWORD": "${{ secrets.CERTIFICATE_PASSWORD }}",
39
+ "APP_ID": "${{ secrets.APP_ID }}"
40
+ }
41
+ },
42
+ {
43
+ name: "CLI for Microsoft 365 Deploy App",
44
+ uses: "pnp/action-cli-deploy@v3.0.1",
45
+ with: {
46
+ "APP_FILE_PATH": "sharepoint/solution/{{ solutionName }}.sppkg",
47
+ "SKIP_FEATURE_DEPLOYMENT": false,
48
+ "OVERWRITE": false
49
+ }
50
+ }
51
+ ]
52
+ }
53
+ }
54
+ };
55
+ //# sourceMappingURL=DeployWorkflow.js.map
@@ -16,6 +16,6 @@ export default [
16
16
  new FN002013_DEVDEP_types_webpack_env('~1.15.2'),
17
17
  new FN002015_DEVDEP_types_react('17'),
18
18
  new FN002016_DEVDEP_types_react_dom('17'),
19
- new FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
19
+ new FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.7'])
20
20
  ];
21
- //# sourceMappingURL=doctor-1.18.0-beta.1.js.map
21
+ //# sourceMappingURL=doctor-1.18.0.js.map