@pnp/cli-microsoft365 7.4.0-beta.ae3d33b → 7.4.0-beta.d2ff47d

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 (225) hide show
  1. package/.eslintrc.cjs +2 -0
  2. package/README.md +1 -1
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/Auth.js +2 -1
  6. package/dist/appInsights.js +2 -0
  7. package/dist/cli/cli.js +1 -0
  8. package/dist/m365/app/commands/app-get.js +1 -1
  9. package/dist/m365/app/commands/permission/permission-list.js +1 -1
  10. package/dist/m365/{aad/commands.js → entra/aadCommands.js} +2 -1
  11. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-add.js +12 -8
  12. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-get.js +18 -14
  13. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-list.js +6 -2
  14. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js +16 -12
  15. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-get.js +16 -12
  16. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js +16 -12
  17. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-remove.js +18 -14
  18. package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +102 -0
  19. package/dist/m365/{aad → entra}/commands/app/app-add.js +25 -21
  20. package/dist/m365/{aad → entra}/commands/app/app-get.js +17 -13
  21. package/dist/m365/{aad → entra}/commands/app/app-list.js +7 -3
  22. package/dist/m365/{aad → entra}/commands/app/app-permission-add.js +16 -12
  23. package/dist/m365/{aad → entra}/commands/app/app-remove.js +17 -13
  24. package/dist/m365/{aad → entra}/commands/app/app-role-add.js +18 -14
  25. package/dist/m365/{aad → entra}/commands/app/app-role-list.js +15 -11
  26. package/dist/m365/{aad → entra}/commands/app/app-role-remove.js +17 -13
  27. package/dist/m365/{aad → entra}/commands/app/app-set.js +18 -14
  28. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-add.js +17 -13
  29. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-list.js +16 -12
  30. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-remove.js +17 -13
  31. package/dist/m365/{aad → entra}/commands/group/group-get.js +17 -13
  32. package/dist/m365/{aad → entra}/commands/group/group-list.js +16 -12
  33. package/dist/m365/{aad → entra}/commands/group/group-remove.js +19 -15
  34. package/dist/m365/{aad → entra}/commands/group/group-user-list.js +17 -13
  35. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-add.js +12 -8
  36. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-get.js +12 -8
  37. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-list.js +7 -3
  38. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-remove.js +14 -10
  39. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-set.js +12 -8
  40. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -13
  41. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -3
  42. package/dist/m365/{aad → entra}/commands/license/license-list.js +6 -2
  43. package/dist/m365/{aad → entra}/commands/m365group/m365group-add.js +19 -15
  44. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-list.js +12 -8
  45. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-post-list.js +16 -12
  46. package/dist/m365/{aad → entra}/commands/m365group/m365group-get.js +12 -8
  47. package/dist/m365/{aad → entra}/commands/m365group/m365group-list.js +12 -8
  48. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-clear.js +12 -8
  49. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-list.js +12 -8
  50. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-remove.js +16 -12
  51. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-restore.js +16 -12
  52. package/dist/m365/{aad → entra}/commands/m365group/m365group-remove.js +17 -13
  53. package/dist/m365/{aad → entra}/commands/m365group/m365group-renew.js +12 -8
  54. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitycounts.js +4 -0
  55. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitydetail.js +4 -0
  56. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activityfilecounts.js +4 -0
  57. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitygroupcounts.js +4 -0
  58. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitystorage.js +4 -0
  59. package/dist/m365/{aad → entra}/commands/m365group/m365group-set.js +19 -15
  60. package/dist/m365/{aad → entra}/commands/m365group/m365group-teamify.js +16 -12
  61. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-add.js +14 -13
  62. package/dist/m365/entra/commands/m365group/m365group-user-list.js +154 -0
  63. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-remove.js +14 -13
  64. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-set.js +14 -13
  65. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-add.js +12 -8
  66. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-list.js +12 -8
  67. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-remove.js +10 -6
  68. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-set.js +10 -6
  69. package/dist/m365/{aad → entra}/commands/policy/policy-list.js +16 -12
  70. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-disable.js +12 -8
  71. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-enable.js +12 -8
  72. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-get.js +6 -2
  73. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-set.js +14 -10
  74. package/dist/m365/{aad → entra}/commands/sp/sp-add.js +17 -13
  75. package/dist/m365/{aad → entra}/commands/sp/sp-get.js +16 -12
  76. package/dist/m365/{aad → entra}/commands/sp/sp-list.js +12 -8
  77. package/dist/m365/{aad → entra}/commands/user/user-add.js +18 -14
  78. package/dist/m365/{aad → entra}/commands/user/user-get.js +16 -12
  79. package/dist/m365/{aad → entra}/commands/user/user-guest-add.js +12 -8
  80. package/dist/m365/{aad → entra}/commands/user/user-hibp.js +14 -10
  81. package/dist/m365/{aad → entra}/commands/user/user-license-add.js +16 -12
  82. package/dist/m365/{aad → entra}/commands/user/user-license-list.js +16 -12
  83. package/dist/m365/{aad → entra}/commands/user/user-license-remove.js +16 -12
  84. package/dist/m365/{aad → entra}/commands/user/user-list.js +12 -8
  85. package/dist/m365/{aad → entra}/commands/user/user-password-validate.js +10 -6
  86. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-clear.js +12 -8
  87. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-list.js +6 -2
  88. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-remove.js +14 -10
  89. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-restore.js +12 -8
  90. package/dist/m365/{aad → entra}/commands/user/user-remove.js +16 -12
  91. package/dist/m365/{aad → entra}/commands/user/user-set.js +18 -14
  92. package/dist/m365/{aad → entra}/commands/user/user-signin-list.js +15 -11
  93. package/dist/m365/entra/commands.js +86 -0
  94. package/dist/m365/spo/commands/group/group-member-remove.js +1 -1
  95. package/dist/m365/spo/commands/group/group-set.js +1 -1
  96. package/dist/m365/spo/commands/site/site-set.js +1 -1
  97. package/dist/m365/teams/commands/app/app-install.js +1 -1
  98. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
  99. package/dist/request.js +16 -0
  100. package/dist/utils/md.js +2 -2
  101. package/dist/utils/roleAssignment.js +42 -0
  102. package/dist/utils/roleDefinition.js +24 -0
  103. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  104. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-add.mdx +10 -4
  105. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-get.mdx +9 -3
  106. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-list.mdx +9 -3
  107. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-add.mdx +13 -7
  108. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-get.mdx +9 -3
  109. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-list.mdx +16 -10
  110. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-remove.mdx +9 -3
  111. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +116 -0
  112. package/docs/docs/cmd/{aad → entra}/app/app-add.mdx +44 -38
  113. package/docs/docs/cmd/{aad → entra}/app/app-get.mdx +23 -17
  114. package/docs/docs/cmd/{aad → entra}/app/app-list.mdx +11 -5
  115. package/docs/docs/cmd/entra/app/app-permission-add.mdx +68 -0
  116. package/docs/docs/cmd/entra/app/app-remove.mdx +65 -0
  117. package/docs/docs/cmd/entra/app/app-role-add.mdx +74 -0
  118. package/docs/docs/cmd/{aad → entra}/app/app-role-list.mdx +20 -14
  119. package/docs/docs/cmd/entra/app/app-role-remove.mdx +84 -0
  120. package/docs/docs/cmd/entra/app/app-set.mdx +103 -0
  121. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-add.mdx +14 -8
  122. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-list.mdx +12 -6
  123. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-remove.mdx +13 -7
  124. package/docs/docs/cmd/{aad → entra}/group/group-get.mdx +15 -9
  125. package/docs/docs/cmd/{aad → entra}/group/group-list.mdx +13 -7
  126. package/docs/docs/cmd/entra/group/group-remove.mdx +50 -0
  127. package/docs/docs/cmd/{aad → entra}/group/group-user-list.mdx +17 -11
  128. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-add.mdx +11 -5
  129. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-get.mdx +9 -3
  130. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-list.mdx +10 -4
  131. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-remove.mdx +9 -3
  132. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-set.mdx +10 -4
  133. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-get.mdx +11 -5
  134. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-list.mdx +10 -4
  135. package/docs/docs/cmd/{aad → entra}/license/license-list.mdx +9 -3
  136. package/docs/docs/cmd/{aad → entra}/m365group/m365group-add.mdx +17 -11
  137. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-list.mdx +9 -3
  138. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-post-list.mdx +10 -4
  139. package/docs/docs/cmd/{aad → entra}/m365group/m365group-get.mdx +10 -4
  140. package/docs/docs/cmd/{aad → entra}/m365group/m365group-list.mdx +13 -7
  141. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-clear.mdx +9 -3
  142. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-list.mdx +12 -6
  143. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-remove.mdx +10 -4
  144. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-restore.mdx +10 -4
  145. package/docs/docs/cmd/{aad → entra}/m365group/m365group-remove.mdx +10 -4
  146. package/docs/docs/cmd/{aad → entra}/m365group/m365group-renew.mdx +8 -2
  147. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitycounts.mdx +10 -4
  148. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitydetail.mdx +11 -5
  149. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activityfilecounts.mdx +10 -4
  150. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitygroupcounts.mdx +10 -4
  151. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitystorage.mdx +10 -4
  152. package/docs/docs/cmd/{aad → entra}/m365group/m365group-set.mdx +12 -6
  153. package/docs/docs/cmd/{aad → entra}/m365group/m365group-teamify.mdx +9 -3
  154. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-add.mdx +9 -3
  155. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +131 -0
  156. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-remove.mdx +9 -5
  157. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-set.mdx +10 -6
  158. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-add.mdx +15 -9
  159. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-list.mdx +11 -5
  160. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-remove.mdx +13 -7
  161. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-set.mdx +12 -6
  162. package/docs/docs/cmd/{aad → entra}/policy/policy-list.mdx +14 -8
  163. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-disable.mdx +9 -3
  164. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-enable.mdx +10 -4
  165. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-get.mdx +9 -3
  166. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-set.mdx +11 -5
  167. package/docs/docs/cmd/{aad → entra}/sp/sp-add.mdx +25 -19
  168. package/docs/docs/cmd/{aad → entra}/sp/sp-get.mdx +12 -6
  169. package/docs/docs/cmd/{aad → entra}/sp/sp-list.mdx +10 -4
  170. package/docs/docs/cmd/{aad → entra}/user/user-add.mdx +12 -6
  171. package/docs/docs/cmd/{aad → entra}/user/user-get.mdx +16 -10
  172. package/docs/docs/cmd/{aad → entra}/user/user-guest-add.mdx +11 -5
  173. package/docs/docs/cmd/{aad → entra}/user/user-hibp.mdx +10 -4
  174. package/docs/docs/cmd/{aad → entra}/user/user-license-add.mdx +10 -4
  175. package/docs/docs/cmd/{aad → entra}/user/user-license-list.mdx +11 -5
  176. package/docs/docs/cmd/{aad → entra}/user/user-license-remove.mdx +9 -3
  177. package/docs/docs/cmd/{aad → entra}/user/user-list.mdx +12 -6
  178. package/docs/docs/cmd/{aad → entra}/user/user-password-validate.mdx +9 -3
  179. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-clear.mdx +9 -3
  180. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-list.mdx +9 -3
  181. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-remove.mdx +9 -3
  182. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-restore.mdx +8 -2
  183. package/docs/docs/cmd/{aad → entra}/user/user-remove.mdx +9 -3
  184. package/docs/docs/cmd/{aad → entra}/user/user-set.mdx +15 -9
  185. package/docs/docs/cmd/{aad → entra}/user/user-signin-list.mdx +19 -13
  186. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  187. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  188. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  189. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  190. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  191. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  192. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  193. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  194. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  195. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  196. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  197. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  198. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  199. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
  200. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  201. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  202. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  203. package/docs/docs/cmd/spo/page/page-set.mdx +2 -2
  204. package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
  205. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  206. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  207. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  208. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  209. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  210. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  211. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  212. package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
  213. package/npm-shrinkwrap.json +184 -430
  214. package/package.json +9 -9
  215. package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
  216. package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
  217. package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
  218. package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
  219. package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
  220. package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
  221. package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
  222. package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
  223. /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
  224. /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
  225. /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
@@ -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 _AadUserLicenseRemoveCommand_instances, _AadUserLicenseRemoveCommand_initTelemetry, _AadUserLicenseRemoveCommand_initOptions, _AadUserLicenseRemoveCommand_initOptionSets, _AadUserLicenseRemoveCommand_initValidators;
6
+ var _EntraUserLicenseRemoveCommand_instances, _EntraUserLicenseRemoveCommand_initTelemetry, _EntraUserLicenseRemoveCommand_initOptions, _EntraUserLicenseRemoveCommand_initOptionSets, _EntraUserLicenseRemoveCommand_initValidators;
7
7
  import commands from '../../commands.js';
8
8
  import request from '../../../../request.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import { cli } from '../../../../cli/cli.js';
11
11
  import GraphCommand from '../../../base/GraphCommand.js';
12
- class AadUserLicenseRemoveCommand extends GraphCommand {
12
+ import aadCommands from '../../aadCommands.js';
13
+ class EntraUserLicenseRemoveCommand extends GraphCommand {
13
14
  get name() {
14
15
  return commands.USER_LICENSE_REMOVE;
15
16
  }
16
17
  get description() {
17
18
  return 'Removes a license from a user';
18
19
  }
20
+ alias() {
21
+ return [aadCommands.USER_LICENSE_REMOVE];
22
+ }
19
23
  constructor() {
20
24
  super();
21
- _AadUserLicenseRemoveCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _AadUserLicenseRemoveCommand_instances, "m", _AadUserLicenseRemoveCommand_initTelemetry).call(this);
23
- __classPrivateFieldGet(this, _AadUserLicenseRemoveCommand_instances, "m", _AadUserLicenseRemoveCommand_initOptions).call(this);
24
- __classPrivateFieldGet(this, _AadUserLicenseRemoveCommand_instances, "m", _AadUserLicenseRemoveCommand_initValidators).call(this);
25
- __classPrivateFieldGet(this, _AadUserLicenseRemoveCommand_instances, "m", _AadUserLicenseRemoveCommand_initOptionSets).call(this);
25
+ _EntraUserLicenseRemoveCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _EntraUserLicenseRemoveCommand_instances, "m", _EntraUserLicenseRemoveCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _EntraUserLicenseRemoveCommand_instances, "m", _EntraUserLicenseRemoveCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _EntraUserLicenseRemoveCommand_instances, "m", _EntraUserLicenseRemoveCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _EntraUserLicenseRemoveCommand_instances, "m", _EntraUserLicenseRemoveCommand_initOptionSets).call(this);
26
30
  }
27
31
  async commandAction(logger, args) {
28
32
  if (this.verbose) {
@@ -57,7 +61,7 @@ class AadUserLicenseRemoveCommand extends GraphCommand {
57
61
  }
58
62
  }
59
63
  }
60
- _AadUserLicenseRemoveCommand_instances = new WeakSet(), _AadUserLicenseRemoveCommand_initTelemetry = function _AadUserLicenseRemoveCommand_initTelemetry() {
64
+ _EntraUserLicenseRemoveCommand_instances = new WeakSet(), _EntraUserLicenseRemoveCommand_initTelemetry = function _EntraUserLicenseRemoveCommand_initTelemetry() {
61
65
  this.telemetry.push((args) => {
62
66
  Object.assign(this.telemetryProperties, {
63
67
  userId: typeof args.options.userId !== 'undefined',
@@ -65,7 +69,7 @@ _AadUserLicenseRemoveCommand_instances = new WeakSet(), _AadUserLicenseRemoveCom
65
69
  force: !!args.options.force
66
70
  });
67
71
  });
68
- }, _AadUserLicenseRemoveCommand_initOptions = function _AadUserLicenseRemoveCommand_initOptions() {
72
+ }, _EntraUserLicenseRemoveCommand_initOptions = function _EntraUserLicenseRemoveCommand_initOptions() {
69
73
  this.options.unshift({
70
74
  option: '--userId [userId]'
71
75
  }, {
@@ -75,9 +79,9 @@ _AadUserLicenseRemoveCommand_instances = new WeakSet(), _AadUserLicenseRemoveCom
75
79
  }, {
76
80
  option: '-f, --force'
77
81
  });
78
- }, _AadUserLicenseRemoveCommand_initOptionSets = function _AadUserLicenseRemoveCommand_initOptionSets() {
82
+ }, _EntraUserLicenseRemoveCommand_initOptionSets = function _EntraUserLicenseRemoveCommand_initOptionSets() {
79
83
  this.optionSets.push({ options: ['userId', 'userName'] });
80
- }, _AadUserLicenseRemoveCommand_initValidators = function _AadUserLicenseRemoveCommand_initValidators() {
84
+ }, _EntraUserLicenseRemoveCommand_initValidators = function _EntraUserLicenseRemoveCommand_initValidators() {
81
85
  this.validators.push(async (args) => {
82
86
  if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
83
87
  return `${args.options.userId} is not a valid GUID`;
@@ -91,5 +95,5 @@ _AadUserLicenseRemoveCommand_instances = new WeakSet(), _AadUserLicenseRemoveCom
91
95
  return true;
92
96
  });
93
97
  };
94
- export default new AadUserLicenseRemoveCommand();
98
+ export default new EntraUserLicenseRemoveCommand();
95
99
  //# sourceMappingURL=user-license-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 _AadUserListCommand_instances, _AadUserListCommand_initTelemetry, _AadUserListCommand_initOptions;
6
+ var _EntraUserListCommand_instances, _EntraUserListCommand_initTelemetry, _EntraUserListCommand_initOptions;
7
7
  import { formatting } from '../../../../utils/formatting.js';
8
8
  import { odata } from '../../../../utils/odata.js';
9
9
  import GraphCommand from '../../../base/GraphCommand.js';
10
10
  import commands from '../../commands.js';
11
- class AadUserListCommand extends GraphCommand {
11
+ import aadCommands from '../../aadCommands.js';
12
+ class EntraUserListCommand extends GraphCommand {
12
13
  get name() {
13
14
  return commands.USER_LIST;
14
15
  }
15
16
  get description() {
16
17
  return 'Lists users matching specified criteria';
17
18
  }
19
+ alias() {
20
+ return [aadCommands.USER_LIST];
21
+ }
18
22
  allowUnknownOptions() {
19
23
  return true;
20
24
  }
21
25
  constructor() {
22
26
  super();
23
- _AadUserListCommand_instances.add(this);
24
- __classPrivateFieldGet(this, _AadUserListCommand_instances, "m", _AadUserListCommand_initTelemetry).call(this);
25
- __classPrivateFieldGet(this, _AadUserListCommand_instances, "m", _AadUserListCommand_initOptions).call(this);
27
+ _EntraUserListCommand_instances.add(this);
28
+ __classPrivateFieldGet(this, _EntraUserListCommand_instances, "m", _EntraUserListCommand_initTelemetry).call(this);
29
+ __classPrivateFieldGet(this, _EntraUserListCommand_instances, "m", _EntraUserListCommand_initOptions).call(this);
26
30
  }
27
31
  async commandAction(logger, args) {
28
32
  try {
@@ -72,14 +76,14 @@ class AadUserListCommand extends GraphCommand {
72
76
  return filter;
73
77
  }
74
78
  }
75
- _AadUserListCommand_instances = new WeakSet(), _AadUserListCommand_initTelemetry = function _AadUserListCommand_initTelemetry() {
79
+ _EntraUserListCommand_instances = new WeakSet(), _EntraUserListCommand_initTelemetry = function _EntraUserListCommand_initTelemetry() {
76
80
  this.telemetry.push((args) => {
77
81
  Object.assign(this.telemetryProperties, {
78
82
  properties: args.options.properties
79
83
  });
80
84
  });
81
- }, _AadUserListCommand_initOptions = function _AadUserListCommand_initOptions() {
85
+ }, _EntraUserListCommand_initOptions = function _EntraUserListCommand_initOptions() {
82
86
  this.options.unshift({ option: '-p, --properties [properties]' });
83
87
  };
84
- export default new AadUserListCommand();
88
+ export default new EntraUserListCommand();
85
89
  //# sourceMappingURL=user-list.js.map
@@ -3,21 +3,25 @@ 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 _AadUserPasswordValidateCommand_instances, _AadUserPasswordValidateCommand_initOptions;
6
+ var _EntraUserPasswordValidateCommand_instances, _EntraUserPasswordValidateCommand_initOptions;
7
7
  import request from '../../../../request.js';
8
8
  import GraphCommand from '../../../base/GraphCommand.js';
9
+ import aadCommands from '../../aadCommands.js';
9
10
  import commands from '../../commands.js';
10
- class AadUserPasswordValidateCommand extends GraphCommand {
11
+ class EntraUserPasswordValidateCommand extends GraphCommand {
11
12
  get name() {
12
13
  return commands.USER_PASSWORD_VALIDATE;
13
14
  }
14
15
  get description() {
15
16
  return "Check a user's password against the organization's password validation policy";
16
17
  }
18
+ alias() {
19
+ return [aadCommands.USER_PASSWORD_VALIDATE];
20
+ }
17
21
  constructor() {
18
22
  super();
19
- _AadUserPasswordValidateCommand_instances.add(this);
20
- __classPrivateFieldGet(this, _AadUserPasswordValidateCommand_instances, "m", _AadUserPasswordValidateCommand_initOptions).call(this);
23
+ _EntraUserPasswordValidateCommand_instances.add(this);
24
+ __classPrivateFieldGet(this, _EntraUserPasswordValidateCommand_instances, "m", _EntraUserPasswordValidateCommand_initOptions).call(this);
21
25
  }
22
26
  async commandAction(logger, args) {
23
27
  try {
@@ -39,10 +43,10 @@ class AadUserPasswordValidateCommand extends GraphCommand {
39
43
  }
40
44
  }
41
45
  }
42
- _AadUserPasswordValidateCommand_instances = new WeakSet(), _AadUserPasswordValidateCommand_initOptions = function _AadUserPasswordValidateCommand_initOptions() {
46
+ _EntraUserPasswordValidateCommand_instances = new WeakSet(), _EntraUserPasswordValidateCommand_initOptions = function _EntraUserPasswordValidateCommand_initOptions() {
43
47
  this.options.unshift({
44
48
  option: '-p, --password <password>'
45
49
  });
46
50
  };
47
- export default new AadUserPasswordValidateCommand();
51
+ export default new EntraUserPasswordValidateCommand();
48
52
  //# sourceMappingURL=user-password-validate.js.map
@@ -3,24 +3,28 @@ 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 _AadUserRecycleBinItemClearCommand_instances, _AadUserRecycleBinItemClearCommand_initTelemetry, _AadUserRecycleBinItemClearCommand_initOptions;
6
+ var _EntraUserRecycleBinItemClearCommand_instances, _EntraUserRecycleBinItemClearCommand_initTelemetry, _EntraUserRecycleBinItemClearCommand_initOptions;
7
7
  import { cli } from '../../../../cli/cli.js';
8
8
  import request from '../../../../request.js';
9
9
  import { odata } from '../../../../utils/odata.js';
10
10
  import GraphCommand from '../../../base/GraphCommand.js';
11
11
  import commands from '../../commands.js';
12
- class AadUserRecycleBinItemClearCommand extends GraphCommand {
12
+ import aadCommands from '../../aadCommands.js';
13
+ class EntraUserRecycleBinItemClearCommand extends GraphCommand {
13
14
  get name() {
14
15
  return commands.USER_RECYCLEBINITEM_CLEAR;
15
16
  }
16
17
  get description() {
17
18
  return 'Removes all users from the tenant recycle bin';
18
19
  }
20
+ alias() {
21
+ return [aadCommands.USER_RECYCLEBINITEM_CLEAR];
22
+ }
19
23
  constructor() {
20
24
  super();
21
- _AadUserRecycleBinItemClearCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _AadUserRecycleBinItemClearCommand_instances, "m", _AadUserRecycleBinItemClearCommand_initTelemetry).call(this);
23
- __classPrivateFieldGet(this, _AadUserRecycleBinItemClearCommand_instances, "m", _AadUserRecycleBinItemClearCommand_initOptions).call(this);
25
+ _EntraUserRecycleBinItemClearCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _EntraUserRecycleBinItemClearCommand_instances, "m", _EntraUserRecycleBinItemClearCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _EntraUserRecycleBinItemClearCommand_instances, "m", _EntraUserRecycleBinItemClearCommand_initOptions).call(this);
24
28
  }
25
29
  async commandAction(logger, args) {
26
30
  const clearRecycleBinUsers = async () => {
@@ -70,16 +74,16 @@ class AadUserRecycleBinItemClearCommand extends GraphCommand {
70
74
  }
71
75
  }
72
76
  }
73
- _AadUserRecycleBinItemClearCommand_instances = new WeakSet(), _AadUserRecycleBinItemClearCommand_initTelemetry = function _AadUserRecycleBinItemClearCommand_initTelemetry() {
77
+ _EntraUserRecycleBinItemClearCommand_instances = new WeakSet(), _EntraUserRecycleBinItemClearCommand_initTelemetry = function _EntraUserRecycleBinItemClearCommand_initTelemetry() {
74
78
  this.telemetry.push((args) => {
75
79
  Object.assign(this.telemetryProperties, {
76
80
  force: !!args.options.force
77
81
  });
78
82
  });
79
- }, _AadUserRecycleBinItemClearCommand_initOptions = function _AadUserRecycleBinItemClearCommand_initOptions() {
83
+ }, _EntraUserRecycleBinItemClearCommand_initOptions = function _EntraUserRecycleBinItemClearCommand_initOptions() {
80
84
  this.options.unshift({
81
85
  option: '-f, --force'
82
86
  });
83
87
  };
84
- export default new AadUserRecycleBinItemClearCommand();
88
+ export default new EntraUserRecycleBinItemClearCommand();
85
89
  //# sourceMappingURL=user-recyclebinitem-clear.js.map
@@ -1,13 +1,17 @@
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 AadUserRecycleBinItemListCommand extends GraphCommand {
4
+ import aadCommands from '../../aadCommands.js';
5
+ class EntraUserRecycleBinItemListCommand extends GraphCommand {
5
6
  get name() {
6
7
  return commands.USER_RECYCLEBINITEM_LIST;
7
8
  }
8
9
  get description() {
9
10
  return 'Lists users from the recycle bin in the current tenant';
10
11
  }
12
+ alias() {
13
+ return [aadCommands.USER_RECYCLEBINITEM_LIST];
14
+ }
11
15
  defaultProperties() {
12
16
  return ['id', 'displayName', 'userPrincipalName'];
13
17
  }
@@ -24,5 +28,5 @@ class AadUserRecycleBinItemListCommand extends GraphCommand {
24
28
  }
25
29
  }
26
30
  }
27
- export default new AadUserRecycleBinItemListCommand();
31
+ export default new EntraUserRecycleBinItemListCommand();
28
32
  //# sourceMappingURL=user-recyclebinitem-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 _AadUserRecycleBinItemRemoveCommand_instances, _AadUserRecycleBinItemRemoveCommand_initTelemetry, _AadUserRecycleBinItemRemoveCommand_initOptions, _AadUserRecycleBinItemRemoveCommand_initValidators;
6
+ var _EntraUserRecycleBinItemRemoveCommand_instances, _EntraUserRecycleBinItemRemoveCommand_initTelemetry, _EntraUserRecycleBinItemRemoveCommand_initOptions, _EntraUserRecycleBinItemRemoveCommand_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 AadUserRecycleBinItemRemoveCommand extends GraphCommand {
13
+ class EntraUserRecycleBinItemRemoveCommand extends GraphCommand {
13
14
  get name() {
14
15
  return commands.USER_RECYCLEBINITEM_REMOVE;
15
16
  }
16
17
  get description() {
17
18
  return 'Removes a user from the recycle bin in the current tenant';
18
19
  }
20
+ alias() {
21
+ return [aadCommands.USER_RECYCLEBINITEM_REMOVE];
22
+ }
19
23
  constructor() {
20
24
  super();
21
- _AadUserRecycleBinItemRemoveCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _AadUserRecycleBinItemRemoveCommand_instances, "m", _AadUserRecycleBinItemRemoveCommand_initTelemetry).call(this);
23
- __classPrivateFieldGet(this, _AadUserRecycleBinItemRemoveCommand_instances, "m", _AadUserRecycleBinItemRemoveCommand_initOptions).call(this);
24
- __classPrivateFieldGet(this, _AadUserRecycleBinItemRemoveCommand_instances, "m", _AadUserRecycleBinItemRemoveCommand_initValidators).call(this);
25
+ _EntraUserRecycleBinItemRemoveCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _EntraUserRecycleBinItemRemoveCommand_instances, "m", _EntraUserRecycleBinItemRemoveCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _EntraUserRecycleBinItemRemoveCommand_instances, "m", _EntraUserRecycleBinItemRemoveCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _EntraUserRecycleBinItemRemoveCommand_instances, "m", _EntraUserRecycleBinItemRemoveCommand_initValidators).call(this);
25
29
  }
26
30
  async commandAction(logger, args) {
27
31
  const clearRecycleBinItem = async () => {
@@ -50,19 +54,19 @@ class AadUserRecycleBinItemRemoveCommand extends GraphCommand {
50
54
  }
51
55
  }
52
56
  }
53
- _AadUserRecycleBinItemRemoveCommand_instances = new WeakSet(), _AadUserRecycleBinItemRemoveCommand_initTelemetry = function _AadUserRecycleBinItemRemoveCommand_initTelemetry() {
57
+ _EntraUserRecycleBinItemRemoveCommand_instances = new WeakSet(), _EntraUserRecycleBinItemRemoveCommand_initTelemetry = function _EntraUserRecycleBinItemRemoveCommand_initTelemetry() {
54
58
  this.telemetry.push((args) => {
55
59
  Object.assign(this.telemetryProperties, {
56
60
  force: !!args.options.force
57
61
  });
58
62
  });
59
- }, _AadUserRecycleBinItemRemoveCommand_initOptions = function _AadUserRecycleBinItemRemoveCommand_initOptions() {
63
+ }, _EntraUserRecycleBinItemRemoveCommand_initOptions = function _EntraUserRecycleBinItemRemoveCommand_initOptions() {
60
64
  this.options.unshift({
61
65
  option: '--id <id>'
62
66
  }, {
63
67
  option: '-f, --force'
64
68
  });
65
- }, _AadUserRecycleBinItemRemoveCommand_initValidators = function _AadUserRecycleBinItemRemoveCommand_initValidators() {
69
+ }, _EntraUserRecycleBinItemRemoveCommand_initValidators = function _EntraUserRecycleBinItemRemoveCommand_initValidators() {
66
70
  this.validators.push(async (args) => {
67
71
  if (args.options.id && !validation.isValidGuid(args.options.id)) {
68
72
  return `${args.options.id} is not a valid GUID`;
@@ -70,5 +74,5 @@ _AadUserRecycleBinItemRemoveCommand_instances = new WeakSet(), _AadUserRecycleBi
70
74
  return true;
71
75
  });
72
76
  };
73
- export default new AadUserRecycleBinItemRemoveCommand();
77
+ export default new EntraUserRecycleBinItemRemoveCommand();
74
78
  //# sourceMappingURL=user-recyclebinitem-remove.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 _AadUserRecycleBinItemRestoreCommand_instances, _AadUserRecycleBinItemRestoreCommand_initOptions, _AadUserRecycleBinItemRestoreCommand_initValidators;
6
+ var _EntraUserRecycleBinItemRestoreCommand_instances, _EntraUserRecycleBinItemRestoreCommand_initOptions, _EntraUserRecycleBinItemRestoreCommand_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 AadUserRecycleBinItemRestoreCommand extends GraphCommand {
11
+ import aadCommands from '../../aadCommands.js';
12
+ class EntraUserRecycleBinItemRestoreCommand extends GraphCommand {
12
13
  get name() {
13
14
  return commands.USER_RECYCLEBINITEM_RESTORE;
14
15
  }
15
16
  get description() {
16
17
  return 'Restores a user from the tenant recycle bin';
17
18
  }
19
+ alias() {
20
+ return [aadCommands.USER_RECYCLEBINITEM_RESTORE];
21
+ }
18
22
  constructor() {
19
23
  super();
20
- _AadUserRecycleBinItemRestoreCommand_instances.add(this);
21
- __classPrivateFieldGet(this, _AadUserRecycleBinItemRestoreCommand_instances, "m", _AadUserRecycleBinItemRestoreCommand_initOptions).call(this);
22
- __classPrivateFieldGet(this, _AadUserRecycleBinItemRestoreCommand_instances, "m", _AadUserRecycleBinItemRestoreCommand_initValidators).call(this);
24
+ _EntraUserRecycleBinItemRestoreCommand_instances.add(this);
25
+ __classPrivateFieldGet(this, _EntraUserRecycleBinItemRestoreCommand_instances, "m", _EntraUserRecycleBinItemRestoreCommand_initOptions).call(this);
26
+ __classPrivateFieldGet(this, _EntraUserRecycleBinItemRestoreCommand_instances, "m", _EntraUserRecycleBinItemRestoreCommand_initValidators).call(this);
23
27
  }
24
28
  async commandAction(logger, args) {
25
29
  if (this.verbose) {
@@ -41,11 +45,11 @@ class AadUserRecycleBinItemRestoreCommand extends GraphCommand {
41
45
  }
42
46
  }
43
47
  }
44
- _AadUserRecycleBinItemRestoreCommand_instances = new WeakSet(), _AadUserRecycleBinItemRestoreCommand_initOptions = function _AadUserRecycleBinItemRestoreCommand_initOptions() {
48
+ _EntraUserRecycleBinItemRestoreCommand_instances = new WeakSet(), _EntraUserRecycleBinItemRestoreCommand_initOptions = function _EntraUserRecycleBinItemRestoreCommand_initOptions() {
45
49
  this.options.unshift({
46
50
  option: '--id <id>'
47
51
  });
48
- }, _AadUserRecycleBinItemRestoreCommand_initValidators = function _AadUserRecycleBinItemRestoreCommand_initValidators() {
52
+ }, _EntraUserRecycleBinItemRestoreCommand_initValidators = function _EntraUserRecycleBinItemRestoreCommand_initValidators() {
49
53
  this.validators.push(async (args) => {
50
54
  if (args.options.id && !validation.isValidGuid(args.options.id)) {
51
55
  return `${args.options.id} is not a valid GUID`;
@@ -53,5 +57,5 @@ _AadUserRecycleBinItemRestoreCommand_instances = new WeakSet(), _AadUserRecycleB
53
57
  return true;
54
58
  });
55
59
  };
56
- export default new AadUserRecycleBinItemRestoreCommand();
60
+ export default new EntraUserRecycleBinItemRestoreCommand();
57
61
  //# sourceMappingURL=user-recyclebinitem-restore.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 _AadUserRemoveCommand_instances, _AadUserRemoveCommand_initTelemetry, _AadUserRemoveCommand_initOptions, _AadUserRemoveCommand_initOptionSets, _AadUserRemoveCommand_initValidators;
6
+ var _EntraUserRemoveCommand_instances, _EntraUserRemoveCommand_initTelemetry, _EntraUserRemoveCommand_initOptions, _EntraUserRemoveCommand_initOptionSets, _EntraUserRemoveCommand_initValidators;
7
7
  import commands from '../../commands.js';
8
8
  import request from '../../../../request.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import { cli } from '../../../../cli/cli.js';
11
11
  import GraphCommand from '../../../base/GraphCommand.js';
12
- class AadUserRemoveCommand extends GraphCommand {
12
+ import aadCommands from '../../aadCommands.js';
13
+ class EntraUserRemoveCommand extends GraphCommand {
13
14
  get name() {
14
15
  return commands.USER_REMOVE;
15
16
  }
16
17
  get description() {
17
18
  return 'Removes a specific user';
18
19
  }
20
+ alias() {
21
+ return [aadCommands.USER_REMOVE];
22
+ }
19
23
  constructor() {
20
24
  super();
21
- _AadUserRemoveCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _AadUserRemoveCommand_instances, "m", _AadUserRemoveCommand_initTelemetry).call(this);
23
- __classPrivateFieldGet(this, _AadUserRemoveCommand_instances, "m", _AadUserRemoveCommand_initOptions).call(this);
24
- __classPrivateFieldGet(this, _AadUserRemoveCommand_instances, "m", _AadUserRemoveCommand_initValidators).call(this);
25
- __classPrivateFieldGet(this, _AadUserRemoveCommand_instances, "m", _AadUserRemoveCommand_initOptionSets).call(this);
25
+ _EntraUserRemoveCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _EntraUserRemoveCommand_instances, "m", _EntraUserRemoveCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _EntraUserRemoveCommand_instances, "m", _EntraUserRemoveCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _EntraUserRemoveCommand_instances, "m", _EntraUserRemoveCommand_initValidators).call(this);
29
+ __classPrivateFieldGet(this, _EntraUserRemoveCommand_instances, "m", _EntraUserRemoveCommand_initOptionSets).call(this);
26
30
  }
27
31
  async commandAction(logger, args) {
28
32
  if (this.verbose) {
@@ -54,7 +58,7 @@ class AadUserRemoveCommand extends GraphCommand {
54
58
  }
55
59
  }
56
60
  }
57
- _AadUserRemoveCommand_instances = new WeakSet(), _AadUserRemoveCommand_initTelemetry = function _AadUserRemoveCommand_initTelemetry() {
61
+ _EntraUserRemoveCommand_instances = new WeakSet(), _EntraUserRemoveCommand_initTelemetry = function _EntraUserRemoveCommand_initTelemetry() {
58
62
  this.telemetry.push((args) => {
59
63
  Object.assign(this.telemetryProperties, {
60
64
  id: typeof args.options.id !== 'undefined',
@@ -62,7 +66,7 @@ _AadUserRemoveCommand_instances = new WeakSet(), _AadUserRemoveCommand_initTelem
62
66
  force: !!args.options.force
63
67
  });
64
68
  });
65
- }, _AadUserRemoveCommand_initOptions = function _AadUserRemoveCommand_initOptions() {
69
+ }, _EntraUserRemoveCommand_initOptions = function _EntraUserRemoveCommand_initOptions() {
66
70
  this.options.unshift({
67
71
  option: '--id [id]'
68
72
  }, {
@@ -70,9 +74,9 @@ _AadUserRemoveCommand_instances = new WeakSet(), _AadUserRemoveCommand_initTelem
70
74
  }, {
71
75
  option: '-f, --force'
72
76
  });
73
- }, _AadUserRemoveCommand_initOptionSets = function _AadUserRemoveCommand_initOptionSets() {
77
+ }, _EntraUserRemoveCommand_initOptionSets = function _EntraUserRemoveCommand_initOptionSets() {
74
78
  this.optionSets.push({ options: ['id', 'userName'] });
75
- }, _AadUserRemoveCommand_initValidators = function _AadUserRemoveCommand_initValidators() {
79
+ }, _EntraUserRemoveCommand_initValidators = function _EntraUserRemoveCommand_initValidators() {
76
80
  this.validators.push(async (args) => {
77
81
  if (args.options.id && !validation.isValidGuid(args.options.id)) {
78
82
  return `${args.options.id} is not a valid GUID`;
@@ -83,5 +87,5 @@ _AadUserRemoveCommand_instances = new WeakSet(), _AadUserRemoveCommand_initTelem
83
87
  return true;
84
88
  });
85
89
  };
86
- export default new AadUserRemoveCommand();
90
+ export default new EntraUserRemoveCommand();
87
91
  //# sourceMappingURL=user-remove.js.map
@@ -3,32 +3,36 @@ 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 _AadUserSetCommand_instances, _AadUserSetCommand_initTelemetry, _AadUserSetCommand_initOptions, _AadUserSetCommand_initTypes, _AadUserSetCommand_initValidators, _AadUserSetCommand_initOptionSets;
6
+ var _EntraUserSetCommand_instances, _EntraUserSetCommand_initTelemetry, _EntraUserSetCommand_initOptions, _EntraUserSetCommand_initTypes, _EntraUserSetCommand_initValidators, _EntraUserSetCommand_initOptionSets;
7
7
  import auth from '../../../../Auth.js';
8
8
  import request from '../../../../request.js';
9
9
  import { accessToken } from '../../../../utils/accessToken.js';
10
10
  import { formatting } from '../../../../utils/formatting.js';
11
11
  import { validation } from '../../../../utils/validation.js';
12
12
  import GraphCommand from '../../../base/GraphCommand.js';
13
+ import aadCommands from '../../aadCommands.js';
13
14
  import commands from '../../commands.js';
14
- class AadUserSetCommand extends GraphCommand {
15
+ class EntraUserSetCommand extends GraphCommand {
15
16
  get name() {
16
17
  return commands.USER_SET;
17
18
  }
18
19
  get description() {
19
20
  return 'Updates information about the specified user';
20
21
  }
22
+ alias() {
23
+ return [aadCommands.USER_SET];
24
+ }
21
25
  allowUnknownOptions() {
22
26
  return true;
23
27
  }
24
28
  constructor() {
25
29
  super();
26
- _AadUserSetCommand_instances.add(this);
27
- __classPrivateFieldGet(this, _AadUserSetCommand_instances, "m", _AadUserSetCommand_initTelemetry).call(this);
28
- __classPrivateFieldGet(this, _AadUserSetCommand_instances, "m", _AadUserSetCommand_initOptions).call(this);
29
- __classPrivateFieldGet(this, _AadUserSetCommand_instances, "m", _AadUserSetCommand_initTypes).call(this);
30
- __classPrivateFieldGet(this, _AadUserSetCommand_instances, "m", _AadUserSetCommand_initValidators).call(this);
31
- __classPrivateFieldGet(this, _AadUserSetCommand_instances, "m", _AadUserSetCommand_initOptionSets).call(this);
30
+ _EntraUserSetCommand_instances.add(this);
31
+ __classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initTelemetry).call(this);
32
+ __classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initOptions).call(this);
33
+ __classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initTypes).call(this);
34
+ __classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initValidators).call(this);
35
+ __classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initOptionSets).call(this);
32
36
  }
33
37
  async commandAction(logger, args) {
34
38
  try {
@@ -149,7 +153,7 @@ class AadUserSetCommand extends GraphCommand {
149
153
  await request.delete(managerRequestOptions);
150
154
  }
151
155
  }
152
- _AadUserSetCommand_instances = new WeakSet(), _AadUserSetCommand_initTelemetry = function _AadUserSetCommand_initTelemetry() {
156
+ _EntraUserSetCommand_instances = new WeakSet(), _EntraUserSetCommand_initTelemetry = function _EntraUserSetCommand_initTelemetry() {
153
157
  this.telemetry.push((args) => {
154
158
  Object.assign(this.telemetryProperties, {
155
159
  id: typeof args.options.id !== 'undefined',
@@ -174,7 +178,7 @@ _AadUserSetCommand_instances = new WeakSet(), _AadUserSetCommand_initTelemetry =
174
178
  removeManager: typeof args.options.removeManager !== 'undefined'
175
179
  });
176
180
  });
177
- }, _AadUserSetCommand_initOptions = function _AadUserSetCommand_initOptions() {
181
+ }, _EntraUserSetCommand_initOptions = function _EntraUserSetCommand_initOptions() {
178
182
  this.options.unshift({
179
183
  option: '-i, --id [id]'
180
184
  }, {
@@ -217,9 +221,9 @@ _AadUserSetCommand_instances = new WeakSet(), _AadUserSetCommand_initTelemetry =
217
221
  }, {
218
222
  option: '--removeManager'
219
223
  });
220
- }, _AadUserSetCommand_initTypes = function _AadUserSetCommand_initTypes() {
224
+ }, _EntraUserSetCommand_initTypes = function _EntraUserSetCommand_initTypes() {
221
225
  this.types.boolean.push('accountEnabled');
222
- }, _AadUserSetCommand_initValidators = function _AadUserSetCommand_initValidators() {
226
+ }, _EntraUserSetCommand_initValidators = function _EntraUserSetCommand_initValidators() {
223
227
  this.validators.push(async (args) => {
224
228
  if (args.options.id &&
225
229
  !validation.isValidGuid(args.options.id)) {
@@ -275,7 +279,7 @@ _AadUserSetCommand_instances = new WeakSet(), _AadUserSetCommand_initTelemetry =
275
279
  }
276
280
  return true;
277
281
  });
278
- }, _AadUserSetCommand_initOptionSets = function _AadUserSetCommand_initOptionSets() {
282
+ }, _EntraUserSetCommand_initOptionSets = function _EntraUserSetCommand_initOptionSets() {
279
283
  this.optionSets.push({
280
284
  options: ['id', 'userName']
281
285
  }, {
@@ -283,5 +287,5 @@ _AadUserSetCommand_instances = new WeakSet(), _AadUserSetCommand_initTelemetry =
283
287
  runsWhen: (args) => args.options.managerUserId || args.options.managerUserName || args.options.removeManager
284
288
  });
285
289
  };
286
- export default new AadUserSetCommand();
290
+ export default new EntraUserSetCommand();
287
291
  //# sourceMappingURL=user-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 _AadUserSigninListCommand_instances, _AadUserSigninListCommand_initTelemetry, _AadUserSigninListCommand_initOptions, _AadUserSigninListCommand_initValidators;
6
+ var _EntraUserSigninListCommand_instances, _EntraUserSigninListCommand_initTelemetry, _EntraUserSigninListCommand_initOptions, _EntraUserSigninListCommand_initValidators;
7
7
  import { formatting } from '../../../../utils/formatting.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 AadUserSigninListCommand extends GraphCommand {
12
+ import aadCommands from '../../aadCommands.js';
13
+ class EntraUserSigninListCommand extends GraphCommand {
13
14
  get name() {
14
15
  return commands.USER_SIGNIN_LIST;
15
16
  }
16
17
  get description() {
17
- return 'Retrieves the Azure AD user sign-ins for the tenant';
18
+ return 'Retrieves the Entra ID user sign-ins for the tenant';
19
+ }
20
+ alias() {
21
+ return [aadCommands.USER_SIGNIN_LIST];
18
22
  }
19
23
  constructor() {
20
24
  super();
21
- _AadUserSigninListCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _AadUserSigninListCommand_instances, "m", _AadUserSigninListCommand_initTelemetry).call(this);
23
- __classPrivateFieldGet(this, _AadUserSigninListCommand_instances, "m", _AadUserSigninListCommand_initOptions).call(this);
24
- __classPrivateFieldGet(this, _AadUserSigninListCommand_instances, "m", _AadUserSigninListCommand_initValidators).call(this);
25
+ _EntraUserSigninListCommand_instances.add(this);
26
+ __classPrivateFieldGet(this, _EntraUserSigninListCommand_instances, "m", _EntraUserSigninListCommand_initTelemetry).call(this);
27
+ __classPrivateFieldGet(this, _EntraUserSigninListCommand_instances, "m", _EntraUserSigninListCommand_initOptions).call(this);
28
+ __classPrivateFieldGet(this, _EntraUserSigninListCommand_instances, "m", _EntraUserSigninListCommand_initValidators).call(this);
25
29
  }
26
30
  defaultProperties() {
27
31
  return ['id', 'userPrincipalName', 'appId', 'appDisplayName', 'createdDateTime'];
@@ -50,7 +54,7 @@ class AadUserSigninListCommand extends GraphCommand {
50
54
  }
51
55
  }
52
56
  }
53
- _AadUserSigninListCommand_instances = new WeakSet(), _AadUserSigninListCommand_initTelemetry = function _AadUserSigninListCommand_initTelemetry() {
57
+ _EntraUserSigninListCommand_instances = new WeakSet(), _EntraUserSigninListCommand_initTelemetry = function _EntraUserSigninListCommand_initTelemetry() {
54
58
  this.telemetry.push((args) => {
55
59
  Object.assign(this.telemetryProperties, {
56
60
  userName: typeof args.options.userName !== 'undefined',
@@ -59,7 +63,7 @@ _AadUserSigninListCommand_instances = new WeakSet(), _AadUserSigninListCommand_i
59
63
  appId: typeof args.options.appId !== 'undefined'
60
64
  });
61
65
  });
62
- }, _AadUserSigninListCommand_initOptions = function _AadUserSigninListCommand_initOptions() {
66
+ }, _EntraUserSigninListCommand_initOptions = function _EntraUserSigninListCommand_initOptions() {
63
67
  this.options.unshift({
64
68
  option: '-n, --userName [userName]'
65
69
  }, {
@@ -69,7 +73,7 @@ _AadUserSigninListCommand_instances = new WeakSet(), _AadUserSigninListCommand_i
69
73
  }, {
70
74
  option: '--appId [appId]'
71
75
  });
72
- }, _AadUserSigninListCommand_initValidators = function _AadUserSigninListCommand_initValidators() {
76
+ }, _EntraUserSigninListCommand_initValidators = function _EntraUserSigninListCommand_initValidators() {
73
77
  this.validators.push(async (args) => {
74
78
  if (args.options.userId && args.options.userName) {
75
79
  return 'Specify either userId or userName, but not both';
@@ -89,5 +93,5 @@ _AadUserSigninListCommand_instances = new WeakSet(), _AadUserSigninListCommand_i
89
93
  return true;
90
94
  });
91
95
  };
92
- export default new AadUserSigninListCommand();
96
+ export default new EntraUserSigninListCommand();
93
97
  //# sourceMappingURL=user-signin-list.js.map