@pnp/cli-microsoft365 7.4.0-beta.fce7b64 → 7.5.0-beta.0ae7da4

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 (348) hide show
  1. package/.devcontainer/Dockerfile +2 -2
  2. package/.eslintrc.cjs +7 -0
  3. package/Dockerfile +2 -5
  4. package/README.md +1 -1
  5. package/allCommands.json +1 -1
  6. package/allCommandsFull.json +1 -1
  7. package/dist/Auth.js +2 -1
  8. package/dist/appInsights.js +2 -0
  9. package/dist/cli/cli.js +1 -0
  10. package/dist/m365/app/commands/app-get.js +2 -2
  11. package/dist/m365/app/commands/permission/permission-list.js +1 -1
  12. package/dist/m365/{aad/commands.js → entra/aadCommands.js} +3 -1
  13. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-add.js +12 -8
  14. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-get.js +20 -16
  15. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-list.js +6 -2
  16. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js +24 -20
  17. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-get.js +18 -14
  18. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js +18 -14
  19. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-remove.js +20 -16
  20. package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +102 -0
  21. package/dist/m365/{aad → entra}/commands/app/app-add.js +25 -21
  22. package/dist/m365/{aad → entra}/commands/app/app-get.js +17 -13
  23. package/dist/m365/{aad → entra}/commands/app/app-list.js +7 -3
  24. package/dist/m365/{aad → entra}/commands/app/app-permission-add.js +19 -19
  25. package/dist/m365/entra/commands/app/app-permission-list.js +182 -0
  26. package/dist/m365/{aad → entra}/commands/app/app-remove.js +17 -13
  27. package/dist/m365/{aad → entra}/commands/app/app-role-add.js +18 -14
  28. package/dist/m365/{aad → entra}/commands/app/app-role-list.js +15 -11
  29. package/dist/m365/{aad → entra}/commands/app/app-role-remove.js +17 -13
  30. package/dist/m365/{aad → entra}/commands/app/app-set.js +18 -14
  31. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-add.js +17 -13
  32. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-list.js +16 -12
  33. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-remove.js +17 -13
  34. package/dist/m365/entra/commands/group/group-add.js +224 -0
  35. package/dist/m365/{aad → entra}/commands/group/group-get.js +20 -16
  36. package/dist/m365/{aad → entra}/commands/group/group-list.js +16 -12
  37. package/dist/m365/{aad → entra}/commands/group/group-remove.js +21 -17
  38. package/dist/m365/entra/commands/group/group-user-add.js +145 -0
  39. package/dist/m365/{aad → entra}/commands/group/group-user-list.js +19 -15
  40. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-add.js +12 -8
  41. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-get.js +12 -8
  42. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-list.js +7 -3
  43. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-remove.js +14 -10
  44. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-set.js +12 -8
  45. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -13
  46. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -3
  47. package/dist/m365/{aad → entra}/commands/license/license-list.js +6 -2
  48. package/dist/m365/{aad → entra}/commands/m365group/m365group-add.js +19 -15
  49. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-list.js +14 -10
  50. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-post-list.js +19 -15
  51. package/dist/m365/{aad → entra}/commands/m365group/m365group-get.js +15 -11
  52. package/dist/m365/{aad → entra}/commands/m365group/m365group-list.js +12 -8
  53. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-clear.js +12 -8
  54. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-list.js +12 -8
  55. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-remove.js +16 -12
  56. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-restore.js +16 -12
  57. package/dist/m365/{aad → entra}/commands/m365group/m365group-remove.js +19 -15
  58. package/dist/m365/{aad → entra}/commands/m365group/m365group-renew.js +14 -10
  59. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitycounts.js +4 -0
  60. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitydetail.js +4 -0
  61. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activityfilecounts.js +4 -0
  62. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitygroupcounts.js +4 -0
  63. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitystorage.js +4 -0
  64. package/dist/m365/{aad → entra}/commands/m365group/m365group-set.js +21 -17
  65. package/dist/m365/{aad → entra}/commands/m365group/m365group-teamify.js +18 -14
  66. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-add.js +16 -15
  67. package/dist/m365/entra/commands/m365group/m365group-user-list.js +154 -0
  68. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-remove.js +16 -15
  69. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-set.js +16 -15
  70. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-add.js +12 -8
  71. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-list.js +12 -8
  72. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-remove.js +10 -6
  73. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-set.js +10 -6
  74. package/dist/m365/{aad → entra}/commands/policy/policy-list.js +16 -12
  75. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-disable.js +12 -8
  76. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-enable.js +12 -8
  77. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-get.js +6 -2
  78. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-set.js +14 -10
  79. package/dist/m365/{aad → entra}/commands/sp/sp-add.js +17 -13
  80. package/dist/m365/{aad → entra}/commands/sp/sp-get.js +16 -12
  81. package/dist/m365/{aad → entra}/commands/sp/sp-list.js +12 -8
  82. package/dist/m365/{aad → entra}/commands/user/user-add.js +18 -14
  83. package/dist/m365/entra/commands/user/user-get.js +115 -0
  84. package/dist/m365/{aad → entra}/commands/user/user-guest-add.js +12 -8
  85. package/dist/m365/{aad → entra}/commands/user/user-hibp.js +14 -10
  86. package/dist/m365/{aad → entra}/commands/user/user-license-add.js +16 -12
  87. package/dist/m365/{aad → entra}/commands/user/user-license-list.js +16 -12
  88. package/dist/m365/{aad → entra}/commands/user/user-license-remove.js +16 -12
  89. package/dist/m365/{aad → entra}/commands/user/user-list.js +12 -8
  90. package/dist/m365/{aad → entra}/commands/user/user-password-validate.js +10 -6
  91. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-clear.js +12 -8
  92. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-list.js +6 -2
  93. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-remove.js +14 -10
  94. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-restore.js +12 -8
  95. package/dist/m365/{aad → entra}/commands/user/user-remove.js +16 -12
  96. package/dist/m365/{aad → entra}/commands/user/user-set.js +18 -14
  97. package/dist/m365/{aad → entra}/commands/user/user-signin-list.js +15 -11
  98. package/dist/m365/entra/commands.js +89 -0
  99. package/dist/m365/external/commands/connection/connection-doctor.js +2 -1
  100. package/dist/m365/external/commands/connection/connection-urltoitemresolver-add.js +69 -0
  101. package/dist/m365/external/commands.js +1 -0
  102. package/dist/m365/file/commands/file-copy.js +151 -0
  103. package/dist/m365/file/commands.js +1 -0
  104. package/dist/m365/flow/commands/owner/owner-ensure.js +4 -4
  105. package/dist/m365/flow/commands/owner/owner-remove.js +4 -4
  106. package/dist/m365/flow/commands/run/run-get.js +52 -13
  107. package/dist/m365/onenote/commands/notebook/notebook-list.js +2 -2
  108. package/dist/m365/onenote/commands/page/page-list.js +2 -2
  109. package/dist/m365/pa/commands/app/app-get.js +26 -11
  110. package/dist/m365/pa/commands/app/app-owner-set.js +2 -2
  111. package/dist/m365/pa/commands/app/app-permission-ensure.js +4 -4
  112. package/dist/m365/pa/commands/app/app-permission-remove.js +4 -4
  113. package/dist/m365/pa/commands/app/app-remove.js +19 -2
  114. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
  115. package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
  116. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
  117. package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
  118. package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
  119. package/dist/m365/planner/commands/plan/plan-add.js +2 -2
  120. package/dist/m365/planner/commands/plan/plan-get.js +2 -2
  121. package/dist/m365/planner/commands/plan/plan-list.js +2 -2
  122. package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
  123. package/dist/m365/planner/commands/plan/plan-set.js +2 -2
  124. package/dist/m365/planner/commands/roster/roster-member-add.js +2 -2
  125. package/dist/m365/planner/commands/roster/roster-member-get.js +2 -2
  126. package/dist/m365/planner/commands/roster/roster-member-remove.js +2 -2
  127. package/dist/m365/planner/commands/task/task-add.js +2 -2
  128. package/dist/m365/planner/commands/task/task-get.js +2 -2
  129. package/dist/m365/planner/commands/task/task-list.js +2 -2
  130. package/dist/m365/planner/commands/task/task-remove.js +2 -2
  131. package/dist/m365/planner/commands/task/task-set.js +2 -2
  132. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -1
  133. package/dist/m365/spo/commands/file/file-add.js +12 -8
  134. package/dist/m365/spo/commands/file/file-checkin.js +4 -1
  135. package/dist/m365/spo/commands/file/file-checkout-undo.js +5 -1
  136. package/dist/m365/spo/commands/file/file-checkout.js +4 -1
  137. package/dist/m365/spo/commands/file/file-copy.js +5 -1
  138. package/dist/m365/spo/commands/file/file-get.js +5 -1
  139. package/dist/m365/spo/commands/file/file-list.js +5 -1
  140. package/dist/m365/spo/commands/file/file-move.js +5 -1
  141. package/dist/m365/spo/commands/file/file-remove.js +5 -1
  142. package/dist/m365/spo/commands/file/file-rename.js +5 -1
  143. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +4 -1
  144. package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +5 -1
  145. package/dist/m365/spo/commands/file/file-roleassignment-add.js +4 -1
  146. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +5 -1
  147. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +5 -1
  148. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +5 -1
  149. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +6 -3
  150. package/dist/m365/spo/commands/file/file-sharinglink-add.js +4 -1
  151. package/dist/m365/spo/commands/file/file-sharinglink-clear.js +5 -1
  152. package/dist/m365/spo/commands/file/file-sharinglink-get.js +4 -1
  153. package/dist/m365/spo/commands/file/file-sharinglink-list.js +4 -1
  154. package/dist/m365/spo/commands/file/file-sharinglink-remove.js +5 -1
  155. package/dist/m365/spo/commands/file/file-sharinglink-set.js +4 -1
  156. package/dist/m365/spo/commands/file/file-version-clear.js +6 -2
  157. package/dist/m365/spo/commands/file/file-version-get.js +1 -1
  158. package/dist/m365/spo/commands/file/file-version-list.js +4 -1
  159. package/dist/m365/spo/commands/file/file-version-remove.js +2 -1
  160. package/dist/m365/spo/commands/file/file-version-restore.js +2 -1
  161. package/dist/m365/spo/commands/folder/folder-add.js +4 -1
  162. package/dist/m365/spo/commands/folder/folder-copy.js +5 -1
  163. package/dist/m365/spo/commands/folder/folder-get.js +4 -1
  164. package/dist/m365/spo/commands/folder/folder-list.js +6 -2
  165. package/dist/m365/spo/commands/folder/folder-move.js +5 -1
  166. package/dist/m365/spo/commands/folder/folder-remove.js +5 -1
  167. package/dist/m365/spo/commands/folder/folder-rename.js +4 -1
  168. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +4 -1
  169. package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +5 -1
  170. package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +4 -1
  171. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +6 -2
  172. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +5 -1
  173. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +5 -1
  174. package/dist/m365/spo/commands/group/group-member-add.js +25 -8
  175. package/dist/m365/spo/commands/group/group-member-remove.js +29 -12
  176. package/dist/m365/spo/commands/group/group-set.js +2 -2
  177. package/dist/m365/spo/commands/site/site-remove.js +2 -2
  178. package/dist/m365/spo/commands/site/site-set.js +2 -2
  179. package/dist/m365/spo/commands/user/user-ensure.js +17 -7
  180. package/dist/m365/teams/commands/app/app-install.js +2 -2
  181. package/dist/m365/teams/commands/channel/channel-get.js +2 -2
  182. package/dist/m365/teams/commands/channel/channel-list.js +2 -2
  183. package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
  184. package/dist/m365/teams/commands/channel/channel-member-list.js +2 -2
  185. package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -2
  186. package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
  187. package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
  188. package/dist/m365/teams/commands/channel/channel-set.js +2 -2
  189. package/dist/m365/teams/commands/meeting/meeting-add.js +2 -2
  190. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +2 -2
  191. package/dist/m365/teams/commands/meeting/meeting-get.js +3 -3
  192. package/dist/m365/teams/commands/meeting/meeting-list.js +2 -2
  193. package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +2 -2
  194. package/dist/m365/teams/commands/tab/tab-get.js +2 -2
  195. package/dist/m365/teams/commands/team/team-add.js +6 -6
  196. package/dist/m365/teams/commands/team/team-archive.js +2 -2
  197. package/dist/m365/teams/commands/team/team-get.js +2 -2
  198. package/dist/m365/teams/commands/team/team-remove.js +2 -2
  199. package/dist/m365/teams/commands/team/team-unarchive.js +2 -2
  200. package/dist/m365/teams/commands/user/user-app-add.js +35 -3
  201. package/dist/request.js +16 -0
  202. package/dist/utils/{aadAdministrativeUnit.js → entraAdministrativeUnit.js} +2 -2
  203. package/dist/utils/{aadDevice.js → entraDevice.js} +2 -2
  204. package/dist/utils/{aadGroup.js → entraGroup.js} +2 -2
  205. package/dist/utils/{aadUser.js → entraUser.js} +38 -2
  206. package/dist/utils/md.js +2 -2
  207. package/dist/utils/roleAssignment.js +42 -0
  208. package/dist/utils/roleDefinition.js +24 -0
  209. package/dist/utils/spo.js +24 -2
  210. package/dist/utils/urlUtil.js +31 -0
  211. package/dist/utils/validation.js +8 -0
  212. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  213. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-add.mdx +10 -4
  214. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-get.mdx +9 -3
  215. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-list.mdx +9 -3
  216. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-add.mdx +13 -7
  217. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-get.mdx +9 -3
  218. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-list.mdx +16 -10
  219. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-remove.mdx +9 -3
  220. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +116 -0
  221. package/docs/docs/cmd/{aad → entra}/app/app-add.mdx +44 -38
  222. package/docs/docs/cmd/{aad → entra}/app/app-get.mdx +23 -17
  223. package/docs/docs/cmd/{aad → entra}/app/app-list.mdx +11 -5
  224. package/docs/docs/cmd/entra/app/app-permission-add.mdx +68 -0
  225. package/docs/docs/cmd/entra/app/app-permission-list.mdx +105 -0
  226. package/docs/docs/cmd/entra/app/app-remove.mdx +65 -0
  227. package/docs/docs/cmd/entra/app/app-role-add.mdx +74 -0
  228. package/docs/docs/cmd/{aad → entra}/app/app-role-list.mdx +20 -14
  229. package/docs/docs/cmd/entra/app/app-role-remove.mdx +84 -0
  230. package/docs/docs/cmd/entra/app/app-set.mdx +103 -0
  231. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-add.mdx +14 -8
  232. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-list.mdx +12 -6
  233. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-remove.mdx +13 -7
  234. package/docs/docs/cmd/entra/group/group-add.mdx +231 -0
  235. package/docs/docs/cmd/{aad → entra}/group/group-get.mdx +15 -9
  236. package/docs/docs/cmd/{aad → entra}/group/group-list.mdx +13 -7
  237. package/docs/docs/cmd/entra/group/group-remove.mdx +50 -0
  238. package/docs/docs/cmd/entra/group/group-user-add.mdx +62 -0
  239. package/docs/docs/cmd/{aad → entra}/group/group-user-list.mdx +17 -11
  240. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-add.mdx +11 -5
  241. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-get.mdx +9 -3
  242. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-list.mdx +10 -4
  243. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-remove.mdx +9 -3
  244. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-set.mdx +10 -4
  245. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-get.mdx +11 -5
  246. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-list.mdx +10 -4
  247. package/docs/docs/cmd/{aad → entra}/license/license-list.mdx +9 -3
  248. package/docs/docs/cmd/{aad → entra}/m365group/m365group-add.mdx +17 -11
  249. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-list.mdx +9 -3
  250. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-post-list.mdx +10 -4
  251. package/docs/docs/cmd/{aad → entra}/m365group/m365group-get.mdx +10 -4
  252. package/docs/docs/cmd/{aad → entra}/m365group/m365group-list.mdx +13 -7
  253. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-clear.mdx +9 -3
  254. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-list.mdx +12 -6
  255. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-remove.mdx +10 -4
  256. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-restore.mdx +10 -4
  257. package/docs/docs/cmd/{aad → entra}/m365group/m365group-remove.mdx +10 -4
  258. package/docs/docs/cmd/{aad → entra}/m365group/m365group-renew.mdx +8 -2
  259. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitycounts.mdx +10 -4
  260. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitydetail.mdx +11 -5
  261. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activityfilecounts.mdx +10 -4
  262. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitygroupcounts.mdx +10 -4
  263. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitystorage.mdx +10 -4
  264. package/docs/docs/cmd/{aad → entra}/m365group/m365group-set.mdx +12 -6
  265. package/docs/docs/cmd/{aad → entra}/m365group/m365group-teamify.mdx +9 -3
  266. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-add.mdx +9 -3
  267. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +131 -0
  268. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-remove.mdx +9 -5
  269. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-set.mdx +10 -6
  270. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-add.mdx +15 -9
  271. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-list.mdx +11 -5
  272. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-remove.mdx +13 -7
  273. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-set.mdx +12 -6
  274. package/docs/docs/cmd/{aad → entra}/policy/policy-list.mdx +14 -8
  275. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-disable.mdx +9 -3
  276. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-enable.mdx +10 -4
  277. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-get.mdx +9 -3
  278. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-set.mdx +11 -5
  279. package/docs/docs/cmd/{aad → entra}/sp/sp-add.mdx +25 -19
  280. package/docs/docs/cmd/{aad → entra}/sp/sp-get.mdx +12 -6
  281. package/docs/docs/cmd/{aad → entra}/sp/sp-list.mdx +10 -4
  282. package/docs/docs/cmd/{aad → entra}/user/user-add.mdx +12 -6
  283. package/docs/docs/cmd/{aad → entra}/user/user-get.mdx +16 -10
  284. package/docs/docs/cmd/{aad → entra}/user/user-guest-add.mdx +11 -5
  285. package/docs/docs/cmd/{aad → entra}/user/user-hibp.mdx +10 -4
  286. package/docs/docs/cmd/{aad → entra}/user/user-license-add.mdx +10 -4
  287. package/docs/docs/cmd/{aad → entra}/user/user-license-list.mdx +11 -5
  288. package/docs/docs/cmd/{aad → entra}/user/user-license-remove.mdx +9 -3
  289. package/docs/docs/cmd/{aad → entra}/user/user-list.mdx +12 -6
  290. package/docs/docs/cmd/{aad → entra}/user/user-password-validate.mdx +9 -3
  291. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-clear.mdx +9 -3
  292. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-list.mdx +9 -3
  293. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-remove.mdx +9 -3
  294. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-restore.mdx +8 -2
  295. package/docs/docs/cmd/{aad → entra}/user/user-remove.mdx +9 -3
  296. package/docs/docs/cmd/{aad → entra}/user/user-set.mdx +15 -9
  297. package/docs/docs/cmd/{aad → entra}/user/user-signin-list.mdx +19 -13
  298. package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +47 -0
  299. package/docs/docs/cmd/file/file-copy.mdx +68 -0
  300. package/docs/docs/cmd/flow/run/run-get.mdx +167 -4
  301. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  302. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  303. package/docs/docs/cmd/pa/app/app-get.mdx +15 -0
  304. package/docs/docs/cmd/pa/app/app-remove.mdx +14 -0
  305. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  306. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  307. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  308. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  309. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  310. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  311. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  312. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  313. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  314. package/docs/docs/cmd/spo/group/group-member-add.mdx +19 -7
  315. package/docs/docs/cmd/spo/group/group-member-remove.mdx +12 -6
  316. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  317. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  318. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
  319. package/docs/docs/cmd/spo/listitem/listitem-list.mdx +1 -1
  320. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  321. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  322. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  323. package/docs/docs/cmd/spo/page/page-set.mdx +2 -2
  324. package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
  325. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  326. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  327. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  328. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  329. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  330. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  331. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  332. package/docs/docs/cmd/spo/user/user-ensure.mdx +8 -5
  333. package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
  334. package/docs/docs/cmd/teams/user/user-app-add.mdx +8 -5
  335. package/npm-shrinkwrap.json +298 -542
  336. package/package.json +21 -21
  337. package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
  338. package/dist/m365/aad/commands/user/user-get.js +0 -111
  339. package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
  340. package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
  341. package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
  342. package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
  343. package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
  344. package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
  345. package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
  346. /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
  347. /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
  348. /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
@@ -0,0 +1,145 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var _EntraGroupUserAddCommand_instances, _EntraGroupUserAddCommand_initTelemetry, _EntraGroupUserAddCommand_initOptions, _EntraGroupUserAddCommand_initValidators, _EntraGroupUserAddCommand_initOptionSets, _EntraGroupUserAddCommand_initTypes;
7
+ import request from '../../../../request.js';
8
+ import { entraGroup } from '../../../../utils/entraGroup.js';
9
+ import { entraUser } from '../../../../utils/entraUser.js';
10
+ import { validation } from '../../../../utils/validation.js';
11
+ import GraphCommand from '../../../base/GraphCommand.js';
12
+ import commands from '../../commands.js';
13
+ class EntraGroupUserAddCommand extends GraphCommand {
14
+ get name() {
15
+ return commands.GROUP_USER_ADD;
16
+ }
17
+ get description() {
18
+ return 'Adds a user to a Microsoft Entra ID group';
19
+ }
20
+ constructor() {
21
+ super();
22
+ _EntraGroupUserAddCommand_instances.add(this);
23
+ this.roleValues = ['Owner', 'Member'];
24
+ __classPrivateFieldGet(this, _EntraGroupUserAddCommand_instances, "m", _EntraGroupUserAddCommand_initTelemetry).call(this);
25
+ __classPrivateFieldGet(this, _EntraGroupUserAddCommand_instances, "m", _EntraGroupUserAddCommand_initOptions).call(this);
26
+ __classPrivateFieldGet(this, _EntraGroupUserAddCommand_instances, "m", _EntraGroupUserAddCommand_initValidators).call(this);
27
+ __classPrivateFieldGet(this, _EntraGroupUserAddCommand_instances, "m", _EntraGroupUserAddCommand_initOptionSets).call(this);
28
+ __classPrivateFieldGet(this, _EntraGroupUserAddCommand_instances, "m", _EntraGroupUserAddCommand_initTypes).call(this);
29
+ }
30
+ async commandAction(logger, args) {
31
+ try {
32
+ if (this.verbose) {
33
+ await logger.logToStderr(`Adding user(s) ${args.options.ids || args.options.userNames} to group ${args.options.groupId || args.options.groupDisplayName}...`);
34
+ }
35
+ const groupId = await this.getGroupId(logger, args.options);
36
+ const userIds = await this.getUserIds(logger, args.options);
37
+ for (let i = 0; i < userIds.length; i += 400) {
38
+ const userIdsBatch = userIds.slice(i, i + 400);
39
+ const requestOptions = {
40
+ url: `${this.resource}/v1.0/$batch`,
41
+ headers: {
42
+ 'content-type': 'application/json;odata.metadata=none'
43
+ },
44
+ responseType: 'json',
45
+ data: {
46
+ requests: []
47
+ }
48
+ };
49
+ for (let j = 0; j < userIdsBatch.length; j += 20) {
50
+ const userIdsChunk = userIdsBatch.slice(j, j + 20);
51
+ requestOptions.data.requests.push({
52
+ id: j + 1,
53
+ method: 'PATCH',
54
+ url: `/groups/${groupId}`,
55
+ headers: {
56
+ 'content-type': 'application/json;odata.metadata=none'
57
+ },
58
+ body: {
59
+ [`${args.options.role === 'Member' ? 'members' : 'owners'}@odata.bind`]: userIdsChunk.map(u => `${this.resource}/v1.0/directoryObjects/${u}`)
60
+ }
61
+ });
62
+ }
63
+ const res = await request.post(requestOptions);
64
+ for (const response of res.responses) {
65
+ if (response.status !== 204) {
66
+ throw response.body;
67
+ }
68
+ }
69
+ }
70
+ }
71
+ catch (err) {
72
+ this.handleRejectedODataJsonPromise(err);
73
+ }
74
+ }
75
+ async getGroupId(logger, options) {
76
+ if (options.groupId) {
77
+ return options.groupId;
78
+ }
79
+ if (this.verbose) {
80
+ await logger.logToStderr(`Retrieving ID of group ${options.groupDisplayName}...`);
81
+ }
82
+ return entraGroup.getGroupIdByDisplayName(options.groupDisplayName);
83
+ }
84
+ async getUserIds(logger, options) {
85
+ if (options.ids) {
86
+ return options.ids.split(',').map(i => i.trim());
87
+ }
88
+ if (this.verbose) {
89
+ await logger.logToStderr('Retrieving ID(s) of user(s)...');
90
+ }
91
+ return entraUser.getUserIdsByUpns(options.userNames.split(',').map(u => u.trim()));
92
+ }
93
+ }
94
+ _EntraGroupUserAddCommand_instances = new WeakSet(), _EntraGroupUserAddCommand_initTelemetry = function _EntraGroupUserAddCommand_initTelemetry() {
95
+ this.telemetry.push((args) => {
96
+ Object.assign(this.telemetryProperties, {
97
+ groupId: typeof args.options.groupId !== 'undefined',
98
+ groupDisplayName: typeof args.options.groupDisplayName !== 'undefined',
99
+ ids: typeof args.options.ids !== 'undefined',
100
+ userNames: typeof args.options.userNames !== 'undefined'
101
+ });
102
+ });
103
+ }, _EntraGroupUserAddCommand_initOptions = function _EntraGroupUserAddCommand_initOptions() {
104
+ this.options.unshift({
105
+ option: '-i, --groupId [groupId]'
106
+ }, {
107
+ option: '-n, --groupDisplayName [groupDisplayName]'
108
+ }, {
109
+ option: '--ids [ids]'
110
+ }, {
111
+ option: '--userNames [userNames]'
112
+ }, {
113
+ option: '-r, --role <role>',
114
+ autocomplete: this.roleValues
115
+ });
116
+ }, _EntraGroupUserAddCommand_initValidators = function _EntraGroupUserAddCommand_initValidators() {
117
+ this.validators.push(async (args) => {
118
+ if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
119
+ return `${args.options.groupId} is not a valid GUID for option groupId.`;
120
+ }
121
+ if (args.options.ids) {
122
+ const ids = args.options.ids.split(',').map(i => i.trim());
123
+ if (!validation.isValidGuidArray(ids)) {
124
+ const invalidGuid = ids.find(id => !validation.isValidGuid(id));
125
+ return `'${invalidGuid}' is not a valid GUID for option 'ids'.`;
126
+ }
127
+ }
128
+ if (args.options.userNames) {
129
+ const isValidUserPrincipalNameArray = validation.isValidUserPrincipalNameArray(args.options.userNames.split(',').map(u => u.trim()));
130
+ if (isValidUserPrincipalNameArray !== true) {
131
+ return `User principal name '${isValidUserPrincipalNameArray}' is invalid for option 'userNames'.`;
132
+ }
133
+ }
134
+ if (this.roleValues.indexOf(args.options.role) === -1) {
135
+ return `Option 'role' must be one of the following values: ${this.roleValues.join(', ')}.`;
136
+ }
137
+ return true;
138
+ });
139
+ }, _EntraGroupUserAddCommand_initOptionSets = function _EntraGroupUserAddCommand_initOptionSets() {
140
+ this.optionSets.push({ options: ['groupId', 'groupDisplayName'] }, { options: ['ids', 'userNames'] });
141
+ }, _EntraGroupUserAddCommand_initTypes = function _EntraGroupUserAddCommand_initTypes() {
142
+ this.types.string.push('groupId', 'groupDisplayName', 'ids', 'userNames', 'role');
143
+ };
144
+ export default new EntraGroupUserAddCommand();
145
+ //# sourceMappingURL=group-user-add.js.map
@@ -3,29 +3,33 @@ 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 _AadGroupUserListCommand_instances, _AadGroupUserListCommand_initTelemetry, _AadGroupUserListCommand_initOptions, _AadGroupUserListCommand_initOptionSets, _AadGroupUserListCommand_initValidators;
7
- import { aadGroup } from '../../../../utils/aadGroup.js';
6
+ var _EntraGroupUserListCommand_instances, _EntraGroupUserListCommand_initTelemetry, _EntraGroupUserListCommand_initOptions, _EntraGroupUserListCommand_initOptionSets, _EntraGroupUserListCommand_initValidators;
7
+ import { entraGroup } from '../../../../utils/entraGroup.js';
8
8
  import { odata } from '../../../../utils/odata.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import GraphCommand from '../../../base/GraphCommand.js';
11
11
  import commands from '../../commands.js';
12
- class AadGroupUserListCommand extends GraphCommand {
12
+ import aadCommands from '../../aadCommands.js';
13
+ class EntraGroupUserListCommand extends GraphCommand {
13
14
  get name() {
14
15
  return commands.GROUP_USER_LIST;
15
16
  }
16
17
  get description() {
17
- return 'Lists users of a specific Azure AD group';
18
+ return 'Lists users of a specific Entra group';
19
+ }
20
+ alias() {
21
+ return [aadCommands.GROUP_USER_LIST];
18
22
  }
19
23
  defaultProperties() {
20
24
  return ['id', 'displayName', 'userPrincipalName', 'roles'];
21
25
  }
22
26
  constructor() {
23
27
  super();
24
- _AadGroupUserListCommand_instances.add(this);
25
- __classPrivateFieldGet(this, _AadGroupUserListCommand_instances, "m", _AadGroupUserListCommand_initTelemetry).call(this);
26
- __classPrivateFieldGet(this, _AadGroupUserListCommand_instances, "m", _AadGroupUserListCommand_initOptions).call(this);
27
- __classPrivateFieldGet(this, _AadGroupUserListCommand_instances, "m", _AadGroupUserListCommand_initOptionSets).call(this);
28
- __classPrivateFieldGet(this, _AadGroupUserListCommand_instances, "m", _AadGroupUserListCommand_initValidators).call(this);
28
+ _EntraGroupUserListCommand_instances.add(this);
29
+ __classPrivateFieldGet(this, _EntraGroupUserListCommand_instances, "m", _EntraGroupUserListCommand_initTelemetry).call(this);
30
+ __classPrivateFieldGet(this, _EntraGroupUserListCommand_instances, "m", _EntraGroupUserListCommand_initOptions).call(this);
31
+ __classPrivateFieldGet(this, _EntraGroupUserListCommand_instances, "m", _EntraGroupUserListCommand_initOptionSets).call(this);
32
+ __classPrivateFieldGet(this, _EntraGroupUserListCommand_instances, "m", _EntraGroupUserListCommand_initValidators).call(this);
29
33
  }
30
34
  async commandAction(logger, args) {
31
35
  try {
@@ -60,7 +64,7 @@ class AadGroupUserListCommand extends GraphCommand {
60
64
  if (this.verbose) {
61
65
  await logger.logToStderr('Retrieving Group Id...');
62
66
  }
63
- return await aadGroup.getGroupIdByDisplayName(options.groupDisplayName);
67
+ return await entraGroup.getGroupIdByDisplayName(options.groupDisplayName);
64
68
  }
65
69
  async getUsers(options, role, groupId, logger) {
66
70
  const { properties, filter } = options;
@@ -102,7 +106,7 @@ class AadGroupUserListCommand extends GraphCommand {
102
106
  return users;
103
107
  }
104
108
  }
105
- _AadGroupUserListCommand_instances = new WeakSet(), _AadGroupUserListCommand_initTelemetry = function _AadGroupUserListCommand_initTelemetry() {
109
+ _EntraGroupUserListCommand_instances = new WeakSet(), _EntraGroupUserListCommand_initTelemetry = function _EntraGroupUserListCommand_initTelemetry() {
106
110
  this.telemetry.push((args) => {
107
111
  Object.assign(this.telemetryProperties, {
108
112
  groupId: typeof args.options.groupId !== 'undefined',
@@ -112,7 +116,7 @@ _AadGroupUserListCommand_instances = new WeakSet(), _AadGroupUserListCommand_ini
112
116
  filter: typeof args.options.filter !== 'undefined'
113
117
  });
114
118
  });
115
- }, _AadGroupUserListCommand_initOptions = function _AadGroupUserListCommand_initOptions() {
119
+ }, _EntraGroupUserListCommand_initOptions = function _EntraGroupUserListCommand_initOptions() {
116
120
  this.options.unshift({
117
121
  option: "-i, --groupId [groupId]"
118
122
  }, {
@@ -125,11 +129,11 @@ _AadGroupUserListCommand_instances = new WeakSet(), _AadGroupUserListCommand_ini
125
129
  }, {
126
130
  option: "-f, --filter [filter]"
127
131
  });
128
- }, _AadGroupUserListCommand_initOptionSets = function _AadGroupUserListCommand_initOptionSets() {
132
+ }, _EntraGroupUserListCommand_initOptionSets = function _EntraGroupUserListCommand_initOptionSets() {
129
133
  this.optionSets.push({
130
134
  options: ['groupId', 'groupDisplayName']
131
135
  });
132
- }, _AadGroupUserListCommand_initValidators = function _AadGroupUserListCommand_initValidators() {
136
+ }, _EntraGroupUserListCommand_initValidators = function _EntraGroupUserListCommand_initValidators() {
133
137
  this.validators.push(async (args) => {
134
138
  if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
135
139
  return `${args.options.groupId} is not a valid GUID`;
@@ -142,5 +146,5 @@ _AadGroupUserListCommand_instances = new WeakSet(), _AadGroupUserListCommand_ini
142
146
  return true;
143
147
  });
144
148
  };
145
- export default new AadGroupUserListCommand();
149
+ export default new EntraGroupUserListCommand();
146
150
  //# sourceMappingURL=group-user-list.js.map
@@ -3,23 +3,27 @@ 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 _AadGroupSettingAddCommand_instances, _AadGroupSettingAddCommand_initOptions, _AadGroupSettingAddCommand_initValidators;
6
+ var _EntraGroupSettingAddCommand_instances, _EntraGroupSettingAddCommand_initOptions, _EntraGroupSettingAddCommand_initValidators;
7
7
  import request from '../../../../request.js';
8
8
  import { validation } from '../../../../utils/validation.js';
9
9
  import GraphCommand from '../../../base/GraphCommand.js';
10
10
  import commands from '../../commands.js';
11
- class AadGroupSettingAddCommand extends GraphCommand {
11
+ import aadCommands from '../../aadCommands.js';
12
+ class EntraGroupSettingAddCommand extends GraphCommand {
12
13
  get name() {
13
14
  return commands.GROUPSETTING_ADD;
14
15
  }
15
16
  get description() {
16
17
  return 'Creates a group setting';
17
18
  }
19
+ alias() {
20
+ return [aadCommands.GROUPSETTING_ADD];
21
+ }
18
22
  constructor() {
19
23
  super();
20
- _AadGroupSettingAddCommand_instances.add(this);
21
- __classPrivateFieldGet(this, _AadGroupSettingAddCommand_instances, "m", _AadGroupSettingAddCommand_initOptions).call(this);
22
- __classPrivateFieldGet(this, _AadGroupSettingAddCommand_instances, "m", _AadGroupSettingAddCommand_initValidators).call(this);
24
+ _EntraGroupSettingAddCommand_instances.add(this);
25
+ __classPrivateFieldGet(this, _EntraGroupSettingAddCommand_instances, "m", _EntraGroupSettingAddCommand_initOptions).call(this);
26
+ __classPrivateFieldGet(this, _EntraGroupSettingAddCommand_instances, "m", _EntraGroupSettingAddCommand_initValidators).call(this);
23
27
  }
24
28
  allowUnknownOptions() {
25
29
  return true;
@@ -83,11 +87,11 @@ class AadGroupSettingAddCommand extends GraphCommand {
83
87
  return values;
84
88
  }
85
89
  }
86
- _AadGroupSettingAddCommand_instances = new WeakSet(), _AadGroupSettingAddCommand_initOptions = function _AadGroupSettingAddCommand_initOptions() {
90
+ _EntraGroupSettingAddCommand_instances = new WeakSet(), _EntraGroupSettingAddCommand_initOptions = function _EntraGroupSettingAddCommand_initOptions() {
87
91
  this.options.unshift({
88
92
  option: '-i, --templateId <templateId>'
89
93
  });
90
- }, _AadGroupSettingAddCommand_initValidators = function _AadGroupSettingAddCommand_initValidators() {
94
+ }, _EntraGroupSettingAddCommand_initValidators = function _EntraGroupSettingAddCommand_initValidators() {
91
95
  this.validators.push(async (args) => {
92
96
  if (!validation.isValidGuid(args.options.templateId)) {
93
97
  return `${args.options.templateId} is not a valid GUID`;
@@ -95,5 +99,5 @@ _AadGroupSettingAddCommand_instances = new WeakSet(), _AadGroupSettingAddCommand
95
99
  return true;
96
100
  });
97
101
  };
98
- export default new AadGroupSettingAddCommand();
102
+ export default new EntraGroupSettingAddCommand();
99
103
  //# sourceMappingURL=groupsetting-add.js.map
@@ -3,23 +3,27 @@ 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 _AadGroupSettingGetCommand_instances, _AadGroupSettingGetCommand_initOptions, _AadGroupSettingGetCommand_initValidators;
6
+ var _EntraGroupSettingGetCommand_instances, _EntraGroupSettingGetCommand_initOptions, _EntraGroupSettingGetCommand_initValidators;
7
7
  import request from '../../../../request.js';
8
8
  import { validation } from '../../../../utils/validation.js';
9
9
  import GraphCommand from '../../../base/GraphCommand.js';
10
+ import aadCommands from '../../aadCommands.js';
10
11
  import commands from '../../commands.js';
11
- class AadGroupSettingGetCommand extends GraphCommand {
12
+ class EntraGroupSettingGetCommand extends GraphCommand {
12
13
  get name() {
13
14
  return commands.GROUPSETTING_GET;
14
15
  }
15
16
  get description() {
16
17
  return 'Gets information about the particular group setting';
17
18
  }
19
+ alias() {
20
+ return [aadCommands.GROUPSETTING_GET];
21
+ }
18
22
  constructor() {
19
23
  super();
20
- _AadGroupSettingGetCommand_instances.add(this);
21
- __classPrivateFieldGet(this, _AadGroupSettingGetCommand_instances, "m", _AadGroupSettingGetCommand_initOptions).call(this);
22
- __classPrivateFieldGet(this, _AadGroupSettingGetCommand_instances, "m", _AadGroupSettingGetCommand_initValidators).call(this);
24
+ _EntraGroupSettingGetCommand_instances.add(this);
25
+ __classPrivateFieldGet(this, _EntraGroupSettingGetCommand_instances, "m", _EntraGroupSettingGetCommand_initOptions).call(this);
26
+ __classPrivateFieldGet(this, _EntraGroupSettingGetCommand_instances, "m", _EntraGroupSettingGetCommand_initValidators).call(this);
23
27
  }
24
28
  async commandAction(logger, args) {
25
29
  try {
@@ -38,11 +42,11 @@ class AadGroupSettingGetCommand extends GraphCommand {
38
42
  }
39
43
  }
40
44
  }
41
- _AadGroupSettingGetCommand_instances = new WeakSet(), _AadGroupSettingGetCommand_initOptions = function _AadGroupSettingGetCommand_initOptions() {
45
+ _EntraGroupSettingGetCommand_instances = new WeakSet(), _EntraGroupSettingGetCommand_initOptions = function _EntraGroupSettingGetCommand_initOptions() {
42
46
  this.options.unshift({
43
47
  option: '-i, --id <id>'
44
48
  });
45
- }, _AadGroupSettingGetCommand_initValidators = function _AadGroupSettingGetCommand_initValidators() {
49
+ }, _EntraGroupSettingGetCommand_initValidators = function _EntraGroupSettingGetCommand_initValidators() {
46
50
  this.validators.push(async (args) => {
47
51
  if (!validation.isValidGuid(args.options.id)) {
48
52
  return `${args.options.id} is not a valid GUID`;
@@ -50,5 +54,5 @@ _AadGroupSettingGetCommand_instances = new WeakSet(), _AadGroupSettingGetCommand
50
54
  return true;
51
55
  });
52
56
  };
53
- export default new AadGroupSettingGetCommand();
57
+ export default new EntraGroupSettingGetCommand();
54
58
  //# sourceMappingURL=groupsetting-get.js.map
@@ -1,12 +1,16 @@
1
1
  import { odata } from '../../../../utils/odata.js';
2
2
  import GraphCommand from '../../../base/GraphCommand.js';
3
3
  import commands from '../../commands.js';
4
- class AadGroupSettingListCommand extends GraphCommand {
4
+ import aadCommands from '../../aadCommands.js';
5
+ class EntraGroupSettingListCommand extends GraphCommand {
5
6
  get name() {
6
7
  return commands.GROUPSETTING_LIST;
7
8
  }
8
9
  get description() {
9
- return 'Lists Azure AD group settings';
10
+ return 'Lists Entra group settings';
11
+ }
12
+ alias() {
13
+ return [aadCommands.GROUPSETTING_LIST];
10
14
  }
11
15
  defaultProperties() {
12
16
  return ['id', 'displayName'];
@@ -21,5 +25,5 @@ class AadGroupSettingListCommand extends GraphCommand {
21
25
  }
22
26
  }
23
27
  }
24
- export default new AadGroupSettingListCommand();
28
+ export default new EntraGroupSettingListCommand();
25
29
  //# sourceMappingURL=groupsetting-list.js.map
@@ -3,25 +3,29 @@ 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 _AadGroupSettingRemoveCommand_instances, _AadGroupSettingRemoveCommand_initTelemetry, _AadGroupSettingRemoveCommand_initOptions, _AadGroupSettingRemoveCommand_initValidators;
6
+ var _EntraGroupSettingRemoveCommand_instances, _EntraGroupSettingRemoveCommand_initTelemetry, _EntraGroupSettingRemoveCommand_initOptions, _EntraGroupSettingRemoveCommand_initValidators;
7
7
  import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import GraphCommand from '../../../base/GraphCommand.js';
11
+ import aadCommands from '../../aadCommands.js';
11
12
  import commands from '../../commands.js';
12
- class AadGroupSettingRemoveCommand extends GraphCommand {
13
+ class EntraGroupSettingRemoveCommand extends GraphCommand {
13
14
  get name() {
14
15
  return commands.GROUPSETTING_REMOVE;
15
16
  }
16
17
  get description() {
17
18
  return 'Removes the particular group setting';
18
19
  }
20
+ alias() {
21
+ return [aadCommands.GROUPSETTING_REMOVE];
22
+ }
19
23
  constructor() {
20
24
  super();
21
- _AadGroupSettingRemoveCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _AadGroupSettingRemoveCommand_instances, "m", _AadGroupSettingRemoveCommand_initTelemetry).call(this);
23
- __classPrivateFieldGet(this, _AadGroupSettingRemoveCommand_instances, "m", _AadGroupSettingRemoveCommand_initOptions).call(this);
24
- __classPrivateFieldGet(this, _AadGroupSettingRemoveCommand_instances, "m", _AadGroupSettingRemoveCommand_initValidators).call(this);
25
+ _EntraGroupSettingRemoveCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _EntraGroupSettingRemoveCommand_instances, "m", _EntraGroupSettingRemoveCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _EntraGroupSettingRemoveCommand_instances, "m", _EntraGroupSettingRemoveCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _EntraGroupSettingRemoveCommand_instances, "m", _EntraGroupSettingRemoveCommand_initValidators).call(this);
25
29
  }
26
30
  async commandAction(logger, args) {
27
31
  const removeGroupSetting = async () => {
@@ -52,19 +56,19 @@ class AadGroupSettingRemoveCommand extends GraphCommand {
52
56
  }
53
57
  }
54
58
  }
55
- _AadGroupSettingRemoveCommand_instances = new WeakSet(), _AadGroupSettingRemoveCommand_initTelemetry = function _AadGroupSettingRemoveCommand_initTelemetry() {
59
+ _EntraGroupSettingRemoveCommand_instances = new WeakSet(), _EntraGroupSettingRemoveCommand_initTelemetry = function _EntraGroupSettingRemoveCommand_initTelemetry() {
56
60
  this.telemetry.push((args) => {
57
61
  Object.assign(this.telemetryProperties, {
58
62
  force: (!(!args.options.force)).toString()
59
63
  });
60
64
  });
61
- }, _AadGroupSettingRemoveCommand_initOptions = function _AadGroupSettingRemoveCommand_initOptions() {
65
+ }, _EntraGroupSettingRemoveCommand_initOptions = function _EntraGroupSettingRemoveCommand_initOptions() {
62
66
  this.options.unshift({
63
67
  option: '-i, --id <id>'
64
68
  }, {
65
69
  option: '-f, --force'
66
70
  });
67
- }, _AadGroupSettingRemoveCommand_initValidators = function _AadGroupSettingRemoveCommand_initValidators() {
71
+ }, _EntraGroupSettingRemoveCommand_initValidators = function _EntraGroupSettingRemoveCommand_initValidators() {
68
72
  this.validators.push(async (args) => {
69
73
  if (!validation.isValidGuid(args.options.id)) {
70
74
  return `${args.options.id} is not a valid GUID`;
@@ -72,5 +76,5 @@ _AadGroupSettingRemoveCommand_instances = new WeakSet(), _AadGroupSettingRemoveC
72
76
  return true;
73
77
  });
74
78
  };
75
- export default new AadGroupSettingRemoveCommand();
79
+ export default new EntraGroupSettingRemoveCommand();
76
80
  //# sourceMappingURL=groupsetting-remove.js.map
@@ -3,26 +3,30 @@ 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 _AadGroupSettingSetCommand_instances, _AadGroupSettingSetCommand_initOptions, _AadGroupSettingSetCommand_initValidators;
6
+ var _EntraGroupSettingSetCommand_instances, _EntraGroupSettingSetCommand_initOptions, _EntraGroupSettingSetCommand_initValidators;
7
7
  import request from '../../../../request.js';
8
8
  import { validation } from '../../../../utils/validation.js';
9
9
  import GraphCommand from '../../../base/GraphCommand.js';
10
10
  import commands from '../../commands.js';
11
- class AadGroupSettingSetCommand extends GraphCommand {
11
+ import aadCommands from '../../aadCommands.js';
12
+ class EntraGroupSettingSetCommand extends GraphCommand {
12
13
  get name() {
13
14
  return commands.GROUPSETTING_SET;
14
15
  }
15
16
  get description() {
16
17
  return 'Updates the particular group setting';
17
18
  }
19
+ alias() {
20
+ return [aadCommands.GROUPSETTING_SET];
21
+ }
18
22
  allowUnknownOptions() {
19
23
  return true;
20
24
  }
21
25
  constructor() {
22
26
  super();
23
- _AadGroupSettingSetCommand_instances.add(this);
24
- __classPrivateFieldGet(this, _AadGroupSettingSetCommand_instances, "m", _AadGroupSettingSetCommand_initOptions).call(this);
25
- __classPrivateFieldGet(this, _AadGroupSettingSetCommand_instances, "m", _AadGroupSettingSetCommand_initValidators).call(this);
27
+ _EntraGroupSettingSetCommand_instances.add(this);
28
+ __classPrivateFieldGet(this, _EntraGroupSettingSetCommand_instances, "m", _EntraGroupSettingSetCommand_initOptions).call(this);
29
+ __classPrivateFieldGet(this, _EntraGroupSettingSetCommand_instances, "m", _EntraGroupSettingSetCommand_initValidators).call(this);
26
30
  }
27
31
  async commandAction(logger, args) {
28
32
  if (this.verbose) {
@@ -83,11 +87,11 @@ class AadGroupSettingSetCommand extends GraphCommand {
83
87
  return values;
84
88
  }
85
89
  }
86
- _AadGroupSettingSetCommand_instances = new WeakSet(), _AadGroupSettingSetCommand_initOptions = function _AadGroupSettingSetCommand_initOptions() {
90
+ _EntraGroupSettingSetCommand_instances = new WeakSet(), _EntraGroupSettingSetCommand_initOptions = function _EntraGroupSettingSetCommand_initOptions() {
87
91
  this.options.unshift({
88
92
  option: '-i, --id <id>'
89
93
  });
90
- }, _AadGroupSettingSetCommand_initValidators = function _AadGroupSettingSetCommand_initValidators() {
94
+ }, _EntraGroupSettingSetCommand_initValidators = function _EntraGroupSettingSetCommand_initValidators() {
91
95
  this.validators.push(async (args) => {
92
96
  if (!validation.isValidGuid(args.options.id)) {
93
97
  return `${args.options.id} is not a valid GUID`;
@@ -95,5 +99,5 @@ _AadGroupSettingSetCommand_instances = new WeakSet(), _AadGroupSettingSetCommand
95
99
  return true;
96
100
  });
97
101
  };
98
- export default new AadGroupSettingSetCommand();
102
+ export default new EntraGroupSettingSetCommand();
99
103
  //# sourceMappingURL=groupsetting-set.js.map
@@ -3,25 +3,29 @@ 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 _AadGroupSettingTemplateGetCommand_instances, _AadGroupSettingTemplateGetCommand_initTelemetry, _AadGroupSettingTemplateGetCommand_initOptions, _AadGroupSettingTemplateGetCommand_initValidators, _AadGroupSettingTemplateGetCommand_initOptionSets;
6
+ var _EntraGroupSettingTemplateGetCommand_instances, _EntraGroupSettingTemplateGetCommand_initTelemetry, _EntraGroupSettingTemplateGetCommand_initOptions, _EntraGroupSettingTemplateGetCommand_initValidators, _EntraGroupSettingTemplateGetCommand_initOptionSets;
7
7
  import { odata } from '../../../../utils/odata.js';
8
8
  import { validation } from '../../../../utils/validation.js';
9
9
  import GraphCommand from '../../../base/GraphCommand.js';
10
10
  import commands from '../../commands.js';
11
- class AadGroupSettingTemplateGetCommand extends GraphCommand {
11
+ import aadCommands from '../../aadCommands.js';
12
+ class EntraGroupSettingTemplateGetCommand extends GraphCommand {
12
13
  get name() {
13
14
  return commands.GROUPSETTINGTEMPLATE_GET;
14
15
  }
15
16
  get description() {
16
- return 'Gets information about the specified Azure AD group settings template';
17
+ return 'Gets information about the specified Entra group settings template';
18
+ }
19
+ alias() {
20
+ return [aadCommands.GROUPSETTINGTEMPLATE_GET];
17
21
  }
18
22
  constructor() {
19
23
  super();
20
- _AadGroupSettingTemplateGetCommand_instances.add(this);
21
- __classPrivateFieldGet(this, _AadGroupSettingTemplateGetCommand_instances, "m", _AadGroupSettingTemplateGetCommand_initTelemetry).call(this);
22
- __classPrivateFieldGet(this, _AadGroupSettingTemplateGetCommand_instances, "m", _AadGroupSettingTemplateGetCommand_initOptions).call(this);
23
- __classPrivateFieldGet(this, _AadGroupSettingTemplateGetCommand_instances, "m", _AadGroupSettingTemplateGetCommand_initValidators).call(this);
24
- __classPrivateFieldGet(this, _AadGroupSettingTemplateGetCommand_instances, "m", _AadGroupSettingTemplateGetCommand_initOptionSets).call(this);
24
+ _EntraGroupSettingTemplateGetCommand_instances.add(this);
25
+ __classPrivateFieldGet(this, _EntraGroupSettingTemplateGetCommand_instances, "m", _EntraGroupSettingTemplateGetCommand_initTelemetry).call(this);
26
+ __classPrivateFieldGet(this, _EntraGroupSettingTemplateGetCommand_instances, "m", _EntraGroupSettingTemplateGetCommand_initOptions).call(this);
27
+ __classPrivateFieldGet(this, _EntraGroupSettingTemplateGetCommand_instances, "m", _EntraGroupSettingTemplateGetCommand_initValidators).call(this);
28
+ __classPrivateFieldGet(this, _EntraGroupSettingTemplateGetCommand_instances, "m", _EntraGroupSettingTemplateGetCommand_initOptionSets).call(this);
25
29
  }
26
30
  async commandAction(logger, args) {
27
31
  try {
@@ -39,20 +43,20 @@ class AadGroupSettingTemplateGetCommand extends GraphCommand {
39
43
  }
40
44
  }
41
45
  }
42
- _AadGroupSettingTemplateGetCommand_instances = new WeakSet(), _AadGroupSettingTemplateGetCommand_initTelemetry = function _AadGroupSettingTemplateGetCommand_initTelemetry() {
46
+ _EntraGroupSettingTemplateGetCommand_instances = new WeakSet(), _EntraGroupSettingTemplateGetCommand_initTelemetry = function _EntraGroupSettingTemplateGetCommand_initTelemetry() {
43
47
  this.telemetry.push((args) => {
44
48
  Object.assign(this.telemetryProperties, {
45
49
  id: typeof args.options.id !== 'undefined',
46
50
  displayName: typeof args.options.displayName !== 'undefined'
47
51
  });
48
52
  });
49
- }, _AadGroupSettingTemplateGetCommand_initOptions = function _AadGroupSettingTemplateGetCommand_initOptions() {
53
+ }, _EntraGroupSettingTemplateGetCommand_initOptions = function _EntraGroupSettingTemplateGetCommand_initOptions() {
50
54
  this.options.unshift({
51
55
  option: '-i, --id [id]'
52
56
  }, {
53
57
  option: '-n, --displayName [displayName]'
54
58
  });
55
- }, _AadGroupSettingTemplateGetCommand_initValidators = function _AadGroupSettingTemplateGetCommand_initValidators() {
59
+ }, _EntraGroupSettingTemplateGetCommand_initValidators = function _EntraGroupSettingTemplateGetCommand_initValidators() {
56
60
  this.validators.push(async (args) => {
57
61
  if (args.options.id &&
58
62
  !validation.isValidGuid(args.options.id)) {
@@ -60,8 +64,8 @@ _AadGroupSettingTemplateGetCommand_instances = new WeakSet(), _AadGroupSettingTe
60
64
  }
61
65
  return true;
62
66
  });
63
- }, _AadGroupSettingTemplateGetCommand_initOptionSets = function _AadGroupSettingTemplateGetCommand_initOptionSets() {
67
+ }, _EntraGroupSettingTemplateGetCommand_initOptionSets = function _EntraGroupSettingTemplateGetCommand_initOptionSets() {
64
68
  this.optionSets.push({ options: ['id', 'displayName'] });
65
69
  };
66
- export default new AadGroupSettingTemplateGetCommand();
70
+ export default new EntraGroupSettingTemplateGetCommand();
67
71
  //# sourceMappingURL=groupsettingtemplate-get.js.map
@@ -1,12 +1,16 @@
1
1
  import { odata } from '../../../../utils/odata.js';
2
2
  import GraphCommand from '../../../base/GraphCommand.js';
3
3
  import commands from '../../commands.js';
4
- class AadGroupSettingTemplateListCommand extends GraphCommand {
4
+ import aadCommands from '../../aadCommands.js';
5
+ class EntraGroupSettingTemplateListCommand extends GraphCommand {
5
6
  get name() {
6
7
  return commands.GROUPSETTINGTEMPLATE_LIST;
7
8
  }
8
9
  get description() {
9
- return 'Lists Azure AD group settings templates';
10
+ return 'Lists Entra group settings templates';
11
+ }
12
+ alias() {
13
+ return [aadCommands.GROUPSETTINGTEMPLATE_LIST];
10
14
  }
11
15
  defaultProperties() {
12
16
  return ['id', 'displayName'];
@@ -21,5 +25,5 @@ class AadGroupSettingTemplateListCommand extends GraphCommand {
21
25
  }
22
26
  }
23
27
  }
24
- export default new AadGroupSettingTemplateListCommand();
28
+ export default new EntraGroupSettingTemplateListCommand();
25
29
  //# sourceMappingURL=groupsettingtemplate-list.js.map
@@ -1,13 +1,17 @@
1
1
  import { odata } from '../../../../utils/odata.js';
2
2
  import GraphCommand from '../../../base/GraphCommand.js';
3
+ import aadCommands from '../../aadCommands.js';
3
4
  import commands from '../../commands.js';
4
- class AadLicenseListCommand extends GraphCommand {
5
+ class EntraLicenseListCommand extends GraphCommand {
5
6
  get name() {
6
7
  return commands.LICENSE_LIST;
7
8
  }
8
9
  get description() {
9
10
  return 'Lists commercial subscriptions that an organization has acquired';
10
11
  }
12
+ alias() {
13
+ return [aadCommands.LICENSE_LIST];
14
+ }
11
15
  defaultProperties() {
12
16
  return ['id', 'skuId', 'skuPartNumber'];
13
17
  }
@@ -24,5 +28,5 @@ class AadLicenseListCommand extends GraphCommand {
24
28
  }
25
29
  }
26
30
  }
27
- export default new AadLicenseListCommand();
31
+ export default new EntraLicenseListCommand();
28
32
  //# sourceMappingURL=license-list.js.map