@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.
- package/.devcontainer/Dockerfile +2 -2
- package/.eslintrc.cjs +7 -0
- package/Dockerfile +2 -5
- package/README.md +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +2 -1
- package/dist/appInsights.js +2 -0
- package/dist/cli/cli.js +1 -0
- package/dist/m365/app/commands/app-get.js +2 -2
- package/dist/m365/app/commands/permission/permission-list.js +1 -1
- package/dist/m365/{aad/commands.js → entra/aadCommands.js} +3 -1
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-get.js +20 -16
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js +24 -20
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-get.js +18 -14
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js +18 -14
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-remove.js +20 -16
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +102 -0
- package/dist/m365/{aad → entra}/commands/app/app-add.js +25 -21
- package/dist/m365/{aad → entra}/commands/app/app-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/app/app-permission-add.js +19 -19
- package/dist/m365/entra/commands/app/app-permission-list.js +182 -0
- package/dist/m365/{aad → entra}/commands/app/app-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-role-add.js +18 -14
- package/dist/m365/{aad → entra}/commands/app/app-role-list.js +15 -11
- package/dist/m365/{aad → entra}/commands/app/app-role-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-set.js +18 -14
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-add.js +17 -13
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-remove.js +17 -13
- package/dist/m365/entra/commands/group/group-add.js +224 -0
- package/dist/m365/{aad → entra}/commands/group/group-get.js +20 -16
- package/dist/m365/{aad → entra}/commands/group/group-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/group/group-remove.js +21 -17
- package/dist/m365/entra/commands/group/group-user-add.js +145 -0
- package/dist/m365/{aad → entra}/commands/group/group-user-list.js +19 -15
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-get.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-remove.js +14 -10
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-set.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/license/license-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/m365group/m365group-add.js +19 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-list.js +14 -10
- package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-post-list.js +19 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-get.js +15 -11
- package/dist/m365/{aad → entra}/commands/m365group/m365group-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-clear.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-restore.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-remove.js +19 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-renew.js +14 -10
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitycounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitydetail.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activityfilecounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitygroupcounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitystorage.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-set.js +21 -17
- package/dist/m365/{aad → entra}/commands/m365group/m365group-teamify.js +18 -14
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-add.js +16 -15
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +154 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-remove.js +16 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-set.js +16 -15
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-remove.js +10 -6
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-set.js +10 -6
- package/dist/m365/{aad → entra}/commands/policy/policy-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-disable.js +12 -8
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-enable.js +12 -8
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-get.js +6 -2
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-set.js +14 -10
- package/dist/m365/{aad → entra}/commands/sp/sp-add.js +17 -13
- package/dist/m365/{aad → entra}/commands/sp/sp-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/sp/sp-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-add.js +18 -14
- package/dist/m365/entra/commands/user/user-get.js +115 -0
- package/dist/m365/{aad → entra}/commands/user/user-guest-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-hibp.js +14 -10
- package/dist/m365/{aad → entra}/commands/user/user-license-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-license-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-license-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-password-validate.js +10 -6
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-clear.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-remove.js +14 -10
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-restore.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-set.js +18 -14
- package/dist/m365/{aad → entra}/commands/user/user-signin-list.js +15 -11
- package/dist/m365/entra/commands.js +89 -0
- package/dist/m365/external/commands/connection/connection-doctor.js +2 -1
- package/dist/m365/external/commands/connection/connection-urltoitemresolver-add.js +69 -0
- package/dist/m365/external/commands.js +1 -0
- package/dist/m365/file/commands/file-copy.js +151 -0
- package/dist/m365/file/commands.js +1 -0
- package/dist/m365/flow/commands/owner/owner-ensure.js +4 -4
- package/dist/m365/flow/commands/owner/owner-remove.js +4 -4
- package/dist/m365/flow/commands/run/run-get.js +52 -13
- package/dist/m365/onenote/commands/notebook/notebook-list.js +2 -2
- package/dist/m365/onenote/commands/page/page-list.js +2 -2
- package/dist/m365/pa/commands/app/app-get.js +26 -11
- package/dist/m365/pa/commands/app/app-owner-set.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-ensure.js +4 -4
- package/dist/m365/pa/commands/app/app-permission-remove.js +4 -4
- package/dist/m365/pa/commands/app/app-remove.js +19 -2
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
- package/dist/m365/planner/commands/plan/plan-add.js +2 -2
- package/dist/m365/planner/commands/plan/plan-get.js +2 -2
- package/dist/m365/planner/commands/plan/plan-list.js +2 -2
- package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
- package/dist/m365/planner/commands/plan/plan-set.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-add.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-get.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-add.js +2 -2
- package/dist/m365/planner/commands/task/task-get.js +2 -2
- package/dist/m365/planner/commands/task/task-list.js +2 -2
- package/dist/m365/planner/commands/task/task-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-set.js +2 -2
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -1
- package/dist/m365/spo/commands/file/file-add.js +12 -8
- package/dist/m365/spo/commands/file/file-checkin.js +4 -1
- package/dist/m365/spo/commands/file/file-checkout-undo.js +5 -1
- package/dist/m365/spo/commands/file/file-checkout.js +4 -1
- package/dist/m365/spo/commands/file/file-copy.js +5 -1
- package/dist/m365/spo/commands/file/file-get.js +5 -1
- package/dist/m365/spo/commands/file/file-list.js +5 -1
- package/dist/m365/spo/commands/file/file-move.js +5 -1
- package/dist/m365/spo/commands/file/file-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-rename.js +5 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +4 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +4 -1
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +5 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +5 -1
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +6 -3
- package/dist/m365/spo/commands/file/file-sharinglink-add.js +4 -1
- package/dist/m365/spo/commands/file/file-sharinglink-clear.js +5 -1
- package/dist/m365/spo/commands/file/file-sharinglink-get.js +4 -1
- package/dist/m365/spo/commands/file/file-sharinglink-list.js +4 -1
- package/dist/m365/spo/commands/file/file-sharinglink-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-sharinglink-set.js +4 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +6 -2
- package/dist/m365/spo/commands/file/file-version-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +4 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +2 -1
- package/dist/m365/spo/commands/file/file-version-restore.js +2 -1
- package/dist/m365/spo/commands/folder/folder-add.js +4 -1
- package/dist/m365/spo/commands/folder/folder-copy.js +5 -1
- package/dist/m365/spo/commands/folder/folder-get.js +4 -1
- package/dist/m365/spo/commands/folder/folder-list.js +6 -2
- package/dist/m365/spo/commands/folder/folder-move.js +5 -1
- package/dist/m365/spo/commands/folder/folder-remove.js +5 -1
- package/dist/m365/spo/commands/folder/folder-rename.js +4 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +4 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +5 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +4 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +6 -2
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +5 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +5 -1
- package/dist/m365/spo/commands/group/group-member-add.js +25 -8
- package/dist/m365/spo/commands/group/group-member-remove.js +29 -12
- package/dist/m365/spo/commands/group/group-set.js +2 -2
- package/dist/m365/spo/commands/site/site-remove.js +2 -2
- package/dist/m365/spo/commands/site/site-set.js +2 -2
- package/dist/m365/spo/commands/user/user-ensure.js +17 -7
- package/dist/m365/teams/commands/app/app-install.js +2 -2
- package/dist/m365/teams/commands/channel/channel-get.js +2 -2
- package/dist/m365/teams/commands/channel/channel-list.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
- package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
- package/dist/m365/teams/commands/channel/channel-set.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-add.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-get.js +3 -3
- package/dist/m365/teams/commands/meeting/meeting-list.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +2 -2
- package/dist/m365/teams/commands/tab/tab-get.js +2 -2
- package/dist/m365/teams/commands/team/team-add.js +6 -6
- package/dist/m365/teams/commands/team/team-archive.js +2 -2
- package/dist/m365/teams/commands/team/team-get.js +2 -2
- package/dist/m365/teams/commands/team/team-remove.js +2 -2
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -2
- package/dist/m365/teams/commands/user/user-app-add.js +35 -3
- package/dist/request.js +16 -0
- package/dist/utils/{aadAdministrativeUnit.js → entraAdministrativeUnit.js} +2 -2
- package/dist/utils/{aadDevice.js → entraDevice.js} +2 -2
- package/dist/utils/{aadGroup.js → entraGroup.js} +2 -2
- package/dist/utils/{aadUser.js → entraUser.js} +38 -2
- package/dist/utils/md.js +2 -2
- package/dist/utils/roleAssignment.js +42 -0
- package/dist/utils/roleDefinition.js +24 -0
- package/dist/utils/spo.js +24 -2
- package/dist/utils/urlUtil.js +31 -0
- package/dist/utils/validation.js +8 -0
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-add.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-add.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-list.mdx +16 -10
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-remove.mdx +9 -3
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +116 -0
- package/docs/docs/cmd/{aad → entra}/app/app-add.mdx +44 -38
- package/docs/docs/cmd/{aad → entra}/app/app-get.mdx +23 -17
- package/docs/docs/cmd/{aad → entra}/app/app-list.mdx +11 -5
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +68 -0
- package/docs/docs/cmd/entra/app/app-permission-list.mdx +105 -0
- package/docs/docs/cmd/entra/app/app-remove.mdx +65 -0
- package/docs/docs/cmd/entra/app/app-role-add.mdx +74 -0
- package/docs/docs/cmd/{aad → entra}/app/app-role-list.mdx +20 -14
- package/docs/docs/cmd/entra/app/app-role-remove.mdx +84 -0
- package/docs/docs/cmd/entra/app/app-set.mdx +103 -0
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-add.mdx +14 -8
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-remove.mdx +13 -7
- package/docs/docs/cmd/entra/group/group-add.mdx +231 -0
- package/docs/docs/cmd/{aad → entra}/group/group-get.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/group/group-list.mdx +13 -7
- package/docs/docs/cmd/entra/group/group-remove.mdx +50 -0
- package/docs/docs/cmd/entra/group/group-user-add.mdx +62 -0
- package/docs/docs/cmd/{aad → entra}/group/group-user-list.mdx +17 -11
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-add.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-set.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-get.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/license/license-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-add.mdx +17 -11
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-post-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-get.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-list.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-clear.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-remove.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-restore.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-remove.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-renew.mdx +8 -2
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitycounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitydetail.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activityfilecounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitygroupcounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitystorage.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-set.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-teamify.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-add.mdx +9 -3
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +131 -0
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-remove.mdx +9 -5
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-set.mdx +10 -6
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-add.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-list.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-remove.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-set.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/policy/policy-list.mdx +14 -8
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-disable.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-enable.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-set.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/sp/sp-add.mdx +25 -19
- package/docs/docs/cmd/{aad → entra}/sp/sp-get.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/sp/sp-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-add.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/user/user-get.mdx +16 -10
- package/docs/docs/cmd/{aad → entra}/user/user-guest-add.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/user/user-hibp.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-license-add.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-license-list.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/user/user-license-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/user/user-password-validate.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-clear.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-restore.mdx +8 -2
- package/docs/docs/cmd/{aad → entra}/user/user-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-set.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/user/user-signin-list.mdx +19 -13
- package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +47 -0
- package/docs/docs/cmd/file/file-copy.mdx +68 -0
- package/docs/docs/cmd/flow/run/run-get.mdx +167 -4
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-get.mdx +15 -0
- package/docs/docs/cmd/pa/app/app-remove.mdx +14 -0
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-member-add.mdx +19 -7
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +12 -6
- package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-set.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-ensure.mdx +8 -5
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/docs/docs/cmd/teams/user/user-app-add.mdx +8 -5
- package/npm-shrinkwrap.json +298 -542
- package/package.json +21 -21
- package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
- package/dist/m365/aad/commands/user/user-get.js +0 -111
- package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
- package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
- package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
- package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
- package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
- package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
- package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
- /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
- /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
- /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
|
@@ -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
|
|
6
|
+
var _EntraSiteClassificationDisableCommand_instances, _EntraSiteClassificationDisableCommand_initTelemetry, _EntraSiteClassificationDisableCommand_initOptions;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
|
|
11
|
+
import aadCommands from '../../aadCommands.js';
|
|
12
|
+
class EntraSiteClassificationDisableCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.SITECLASSIFICATION_DISABLE;
|
|
14
15
|
}
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Disables site classification';
|
|
17
18
|
}
|
|
19
|
+
alias() {
|
|
20
|
+
return [aadCommands.SITECLASSIFICATION_DISABLE];
|
|
21
|
+
}
|
|
18
22
|
constructor() {
|
|
19
23
|
super();
|
|
20
|
-
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
24
|
+
_EntraSiteClassificationDisableCommand_instances.add(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraSiteClassificationDisableCommand_instances, "m", _EntraSiteClassificationDisableCommand_initTelemetry).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraSiteClassificationDisableCommand_instances, "m", _EntraSiteClassificationDisableCommand_initOptions).call(this);
|
|
23
27
|
}
|
|
24
28
|
async commandAction(logger, args) {
|
|
25
29
|
const disableSiteClassification = async () => {
|
|
@@ -70,16 +74,16 @@ class AadSiteClassificationDisableCommand extends GraphCommand {
|
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
|
-
|
|
77
|
+
_EntraSiteClassificationDisableCommand_instances = new WeakSet(), _EntraSiteClassificationDisableCommand_initTelemetry = function _EntraSiteClassificationDisableCommand_initTelemetry() {
|
|
74
78
|
this.telemetry.push((args) => {
|
|
75
79
|
Object.assign(this.telemetryProperties, {
|
|
76
80
|
force: (!(!args.options.force)).toString()
|
|
77
81
|
});
|
|
78
82
|
});
|
|
79
|
-
},
|
|
83
|
+
}, _EntraSiteClassificationDisableCommand_initOptions = function _EntraSiteClassificationDisableCommand_initOptions() {
|
|
80
84
|
this.options.unshift({
|
|
81
85
|
option: '-f, --force'
|
|
82
86
|
});
|
|
83
87
|
};
|
|
84
|
-
export default new
|
|
88
|
+
export default new EntraSiteClassificationDisableCommand();
|
|
85
89
|
//# sourceMappingURL=siteclassification-disable.js.map
|
|
@@ -3,22 +3,26 @@ 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
|
|
6
|
+
var _EntraSiteClassificationEnableCommand_instances, _EntraSiteClassificationEnableCommand_initTelemetry, _EntraSiteClassificationEnableCommand_initOptions;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
9
|
import commands from '../../commands.js';
|
|
10
|
-
|
|
10
|
+
import aadCommands from '../../aadCommands.js';
|
|
11
|
+
class EntraSiteClassificationEnableCommand extends GraphCommand {
|
|
11
12
|
get name() {
|
|
12
13
|
return commands.SITECLASSIFICATION_ENABLE;
|
|
13
14
|
}
|
|
14
15
|
get description() {
|
|
15
16
|
return 'Enables site classification configuration';
|
|
16
17
|
}
|
|
18
|
+
alias() {
|
|
19
|
+
return [aadCommands.SITECLASSIFICATION_ENABLE];
|
|
20
|
+
}
|
|
17
21
|
constructor() {
|
|
18
22
|
super();
|
|
19
|
-
|
|
20
|
-
__classPrivateFieldGet(this,
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
23
|
+
_EntraSiteClassificationEnableCommand_instances.add(this);
|
|
24
|
+
__classPrivateFieldGet(this, _EntraSiteClassificationEnableCommand_instances, "m", _EntraSiteClassificationEnableCommand_initTelemetry).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraSiteClassificationEnableCommand_instances, "m", _EntraSiteClassificationEnableCommand_initOptions).call(this);
|
|
22
26
|
}
|
|
23
27
|
async commandAction(logger, args) {
|
|
24
28
|
try {
|
|
@@ -104,14 +108,14 @@ class AadSiteClassificationEnableCommand extends GraphCommand {
|
|
|
104
108
|
}
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
|
-
|
|
111
|
+
_EntraSiteClassificationEnableCommand_instances = new WeakSet(), _EntraSiteClassificationEnableCommand_initTelemetry = function _EntraSiteClassificationEnableCommand_initTelemetry() {
|
|
108
112
|
this.telemetry.push((args) => {
|
|
109
113
|
Object.assign(this.telemetryProperties, {
|
|
110
114
|
usageGuidelinesUrl: typeof args.options.usageGuidelinesUrl !== 'undefined',
|
|
111
115
|
guestUsageGuidelinesUrl: typeof args.options.guestUsageGuidelinesUrl !== 'undefined'
|
|
112
116
|
});
|
|
113
117
|
});
|
|
114
|
-
},
|
|
118
|
+
}, _EntraSiteClassificationEnableCommand_initOptions = function _EntraSiteClassificationEnableCommand_initOptions() {
|
|
115
119
|
this.options.unshift({
|
|
116
120
|
option: '-c, --classifications <classifications>'
|
|
117
121
|
}, {
|
|
@@ -122,5 +126,5 @@ _AadSiteClassificationEnableCommand_instances = new WeakSet(), _AadSiteClassific
|
|
|
122
126
|
option: '-g, --guestUsageGuidelinesUrl [guestUsageGuidelinesUrl]'
|
|
123
127
|
});
|
|
124
128
|
};
|
|
125
|
-
export default new
|
|
129
|
+
export default new EntraSiteClassificationEnableCommand();
|
|
126
130
|
//# sourceMappingURL=siteclassification-enable.js.map
|
|
@@ -2,13 +2,17 @@ import request from '../../../../request.js';
|
|
|
2
2
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
3
3
|
import commands from '../../commands.js';
|
|
4
4
|
import { SiteClassificationSettings } from './SiteClassificationSettings.js';
|
|
5
|
-
|
|
5
|
+
import aadCommands from '../../aadCommands.js';
|
|
6
|
+
class EntraSiteClassificationGetCommand extends GraphCommand {
|
|
6
7
|
get name() {
|
|
7
8
|
return commands.SITECLASSIFICATION_GET;
|
|
8
9
|
}
|
|
9
10
|
get description() {
|
|
10
11
|
return 'Gets site classification configuration';
|
|
11
12
|
}
|
|
13
|
+
alias() {
|
|
14
|
+
return [aadCommands.SITECLASSIFICATION_GET];
|
|
15
|
+
}
|
|
12
16
|
async commandAction(logger) {
|
|
13
17
|
try {
|
|
14
18
|
const requestOptions = {
|
|
@@ -68,5 +72,5 @@ class AadSiteClassificationGetCommand extends GraphCommand {
|
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
|
-
export default new
|
|
75
|
+
export default new EntraSiteClassificationGetCommand();
|
|
72
76
|
//# sourceMappingURL=siteclassification-get.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
|
|
6
|
+
var _EntraSiteClassificationSetCommand_instances, _EntraSiteClassificationSetCommand_initTelemetry, _EntraSiteClassificationSetCommand_initOptions, _EntraSiteClassificationSetCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
9
|
import commands from '../../commands.js';
|
|
10
|
-
|
|
10
|
+
import aadCommands from '../../aadCommands.js';
|
|
11
|
+
class EntraSiteClassificationSetCommand extends GraphCommand {
|
|
11
12
|
get name() {
|
|
12
13
|
return commands.SITECLASSIFICATION_SET;
|
|
13
14
|
}
|
|
14
15
|
get description() {
|
|
15
16
|
return 'Updates site classification configuration';
|
|
16
17
|
}
|
|
18
|
+
alias() {
|
|
19
|
+
return [aadCommands.SITECLASSIFICATION_SET];
|
|
20
|
+
}
|
|
17
21
|
constructor() {
|
|
18
22
|
super();
|
|
19
|
-
|
|
20
|
-
__classPrivateFieldGet(this,
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
+
_EntraSiteClassificationSetCommand_instances.add(this);
|
|
24
|
+
__classPrivateFieldGet(this, _EntraSiteClassificationSetCommand_instances, "m", _EntraSiteClassificationSetCommand_initTelemetry).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraSiteClassificationSetCommand_instances, "m", _EntraSiteClassificationSetCommand_initOptions).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraSiteClassificationSetCommand_instances, "m", _EntraSiteClassificationSetCommand_initValidators).call(this);
|
|
23
27
|
}
|
|
24
28
|
async commandAction(logger, args) {
|
|
25
29
|
try {
|
|
@@ -121,7 +125,7 @@ class AadSiteClassificationSetCommand extends GraphCommand {
|
|
|
121
125
|
}
|
|
122
126
|
}
|
|
123
127
|
}
|
|
124
|
-
|
|
128
|
+
_EntraSiteClassificationSetCommand_instances = new WeakSet(), _EntraSiteClassificationSetCommand_initTelemetry = function _EntraSiteClassificationSetCommand_initTelemetry() {
|
|
125
129
|
this.telemetry.push((args) => {
|
|
126
130
|
Object.assign(this.telemetryProperties, {
|
|
127
131
|
classifications: typeof args.options.classifications !== 'undefined',
|
|
@@ -130,7 +134,7 @@ _AadSiteClassificationSetCommand_instances = new WeakSet(), _AadSiteClassificati
|
|
|
130
134
|
guestUsageGuidelinesUrl: typeof args.options.guestUsageGuidelinesUrl !== 'undefined'
|
|
131
135
|
});
|
|
132
136
|
});
|
|
133
|
-
},
|
|
137
|
+
}, _EntraSiteClassificationSetCommand_initOptions = function _EntraSiteClassificationSetCommand_initOptions() {
|
|
134
138
|
this.options.unshift({
|
|
135
139
|
option: '-c, --classifications [classifications]'
|
|
136
140
|
}, {
|
|
@@ -140,7 +144,7 @@ _AadSiteClassificationSetCommand_instances = new WeakSet(), _AadSiteClassificati
|
|
|
140
144
|
}, {
|
|
141
145
|
option: '-g, --guestUsageGuidelinesUrl [guestUsageGuidelinesUrl]'
|
|
142
146
|
});
|
|
143
|
-
},
|
|
147
|
+
}, _EntraSiteClassificationSetCommand_initValidators = function _EntraSiteClassificationSetCommand_initValidators() {
|
|
144
148
|
this.validators.push(async (args) => {
|
|
145
149
|
if (!args.options.classifications &&
|
|
146
150
|
!args.options.defaultClassification &&
|
|
@@ -151,5 +155,5 @@ _AadSiteClassificationSetCommand_instances = new WeakSet(), _AadSiteClassificati
|
|
|
151
155
|
return true;
|
|
152
156
|
});
|
|
153
157
|
};
|
|
154
|
-
export default new
|
|
158
|
+
export default new EntraSiteClassificationSetCommand();
|
|
155
159
|
//# sourceMappingURL=siteclassification-set.js.map
|
|
@@ -3,27 +3,31 @@ 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
|
|
6
|
+
var _EntraSpAddCommand_instances, _EntraSpAddCommand_initTelemetry, _EntraSpAddCommand_initOptions, _EntraSpAddCommand_initValidators, _EntraSpAddCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.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
12
|
import { cli } from '../../../../cli/cli.js';
|
|
13
|
-
|
|
13
|
+
import aadCommands from '../../aadCommands.js';
|
|
14
|
+
class EntraSpAddCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.SP_ADD;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Adds a service principal to a registered
|
|
19
|
+
return 'Adds a service principal to a registered Entra app';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.SP_ADD];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraSpAddCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraSpAddCommand_instances, "m", _EntraSpAddCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraSpAddCommand_instances, "m", _EntraSpAddCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraSpAddCommand_instances, "m", _EntraSpAddCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraSpAddCommand_instances, "m", _EntraSpAddCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async getAppId(args) {
|
|
29
33
|
if (args.options.appId) {
|
|
@@ -77,7 +81,7 @@ class AadSpAddCommand extends GraphCommand {
|
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
|
-
|
|
84
|
+
_EntraSpAddCommand_instances = new WeakSet(), _EntraSpAddCommand_initTelemetry = function _EntraSpAddCommand_initTelemetry() {
|
|
81
85
|
this.telemetry.push((args) => {
|
|
82
86
|
Object.assign(this.telemetryProperties, {
|
|
83
87
|
appId: (!(!args.options.appId)).toString(),
|
|
@@ -85,7 +89,7 @@ _AadSpAddCommand_instances = new WeakSet(), _AadSpAddCommand_initTelemetry = fun
|
|
|
85
89
|
objectId: (!(!args.options.objectId)).toString()
|
|
86
90
|
});
|
|
87
91
|
});
|
|
88
|
-
},
|
|
92
|
+
}, _EntraSpAddCommand_initOptions = function _EntraSpAddCommand_initOptions() {
|
|
89
93
|
this.options.unshift({
|
|
90
94
|
option: '--appId [appId]'
|
|
91
95
|
}, {
|
|
@@ -93,7 +97,7 @@ _AadSpAddCommand_instances = new WeakSet(), _AadSpAddCommand_initTelemetry = fun
|
|
|
93
97
|
}, {
|
|
94
98
|
option: '--objectId [objectId]'
|
|
95
99
|
});
|
|
96
|
-
},
|
|
100
|
+
}, _EntraSpAddCommand_initValidators = function _EntraSpAddCommand_initValidators() {
|
|
97
101
|
this.validators.push(async (args) => {
|
|
98
102
|
if (args.options.appId && !validation.isValidGuid(args.options.appId)) {
|
|
99
103
|
return `${args.options.appId} is not a valid appId GUID`;
|
|
@@ -103,8 +107,8 @@ _AadSpAddCommand_instances = new WeakSet(), _AadSpAddCommand_initTelemetry = fun
|
|
|
103
107
|
}
|
|
104
108
|
return true;
|
|
105
109
|
});
|
|
106
|
-
},
|
|
110
|
+
}, _EntraSpAddCommand_initOptionSets = function _EntraSpAddCommand_initOptionSets() {
|
|
107
111
|
this.optionSets.push({ options: ['appId', 'appName', 'objectId'] });
|
|
108
112
|
};
|
|
109
|
-
export default new
|
|
113
|
+
export default new EntraSpAddCommand();
|
|
110
114
|
//# sourceMappingURL=sp-add.js.map
|
|
@@ -3,27 +3,31 @@ 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
|
|
6
|
+
var _EntraSpGetCommand_instances, _EntraSpGetCommand_initTelemetry, _EntraSpGetCommand_initOptions, _EntraSpGetCommand_initValidators, _EntraSpGetCommand_initOptionSets;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
|
+
import aadCommands from '../../aadCommands.js';
|
|
12
13
|
import commands from '../../commands.js';
|
|
13
|
-
class
|
|
14
|
+
class EntraSpGetCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.SP_GET;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Gets information about the specific service principal';
|
|
19
20
|
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.SP_GET];
|
|
23
|
+
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraSpGetCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraSpGetCommand_instances, "m", _EntraSpGetCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraSpGetCommand_instances, "m", _EntraSpGetCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraSpGetCommand_instances, "m", _EntraSpGetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraSpGetCommand_instances, "m", _EntraSpGetCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async getSpId(args) {
|
|
29
33
|
if (args.options.appObjectId) {
|
|
@@ -77,7 +81,7 @@ class AadSpGetCommand extends GraphCommand {
|
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
|
-
|
|
84
|
+
_EntraSpGetCommand_instances = new WeakSet(), _EntraSpGetCommand_initTelemetry = function _EntraSpGetCommand_initTelemetry() {
|
|
81
85
|
this.telemetry.push((args) => {
|
|
82
86
|
Object.assign(this.telemetryProperties, {
|
|
83
87
|
appId: (!(!args.options.appId)).toString(),
|
|
@@ -85,7 +89,7 @@ _AadSpGetCommand_instances = new WeakSet(), _AadSpGetCommand_initTelemetry = fun
|
|
|
85
89
|
appObjectId: (!(!args.options.appObjectId)).toString()
|
|
86
90
|
});
|
|
87
91
|
});
|
|
88
|
-
},
|
|
92
|
+
}, _EntraSpGetCommand_initOptions = function _EntraSpGetCommand_initOptions() {
|
|
89
93
|
this.options.unshift({
|
|
90
94
|
option: '-i, --appId [appId]'
|
|
91
95
|
}, {
|
|
@@ -93,7 +97,7 @@ _AadSpGetCommand_instances = new WeakSet(), _AadSpGetCommand_initTelemetry = fun
|
|
|
93
97
|
}, {
|
|
94
98
|
option: '--appObjectId [appObjectId]'
|
|
95
99
|
});
|
|
96
|
-
},
|
|
100
|
+
}, _EntraSpGetCommand_initValidators = function _EntraSpGetCommand_initValidators() {
|
|
97
101
|
this.validators.push(async (args) => {
|
|
98
102
|
if (args.options.appId && !validation.isValidGuid(args.options.appId)) {
|
|
99
103
|
return `${args.options.appId} is not a valid appId GUID`;
|
|
@@ -103,8 +107,8 @@ _AadSpGetCommand_instances = new WeakSet(), _AadSpGetCommand_initTelemetry = fun
|
|
|
103
107
|
}
|
|
104
108
|
return true;
|
|
105
109
|
});
|
|
106
|
-
},
|
|
110
|
+
}, _EntraSpGetCommand_initOptionSets = function _EntraSpGetCommand_initOptionSets() {
|
|
107
111
|
this.optionSets.push({ options: ['appId', 'appDisplayName', 'appObjectId'] });
|
|
108
112
|
};
|
|
109
|
-
export default new
|
|
113
|
+
export default new EntraSpGetCommand();
|
|
110
114
|
//# sourceMappingURL=sp-get.js.map
|
|
@@ -3,11 +3,12 @@ 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
|
|
6
|
+
var _EntraSpListCommand_instances, _EntraSpListCommand_initTelemetry, _EntraSpListCommand_initOptions;
|
|
7
7
|
import { odata } from '../../../../utils/odata.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
|
+
import aadCommands from '../../aadCommands.js';
|
|
9
10
|
import commands from '../../commands.js';
|
|
10
|
-
class
|
|
11
|
+
class EntraSpListCommand extends GraphCommand {
|
|
11
12
|
get name() {
|
|
12
13
|
return commands.SP_LIST;
|
|
13
14
|
}
|
|
@@ -17,11 +18,14 @@ class AadSpListCommand extends GraphCommand {
|
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Lists the service principals in the directory';
|
|
19
20
|
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.SP_LIST];
|
|
23
|
+
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraSpListCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraSpListCommand_instances, "m", _EntraSpListCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraSpListCommand_instances, "m", _EntraSpListCommand_initOptions).call(this);
|
|
25
29
|
}
|
|
26
30
|
async commandAction(logger, args) {
|
|
27
31
|
if (this.verbose) {
|
|
@@ -47,19 +51,19 @@ class AadSpListCommand extends GraphCommand {
|
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
|
-
|
|
54
|
+
_EntraSpListCommand_instances = new WeakSet(), _EntraSpListCommand_initTelemetry = function _EntraSpListCommand_initTelemetry() {
|
|
51
55
|
this.telemetry.push((args) => {
|
|
52
56
|
Object.assign(this.telemetryProperties, {
|
|
53
57
|
displayName: typeof args.options.displayName !== 'undefined',
|
|
54
58
|
tag: typeof args.options.tag !== 'undefined'
|
|
55
59
|
});
|
|
56
60
|
});
|
|
57
|
-
},
|
|
61
|
+
}, _EntraSpListCommand_initOptions = function _EntraSpListCommand_initOptions() {
|
|
58
62
|
this.options.unshift({
|
|
59
63
|
option: '--displayName [displayName]'
|
|
60
64
|
}, {
|
|
61
65
|
option: '--tag [tag]'
|
|
62
66
|
});
|
|
63
67
|
};
|
|
64
|
-
export default new
|
|
68
|
+
export default new EntraSpListCommand();
|
|
65
69
|
//# sourceMappingURL=sp-list.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
|
|
6
|
+
var _EntraUserAddCommand_instances, _EntraUserAddCommand_initTelemetry, _EntraUserAddCommand_initOptions, _EntraUserAddCommand_initValidators, _EntraUserAddCommand_initOptionSets, _EntraUserAddCommand_initTypes;
|
|
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
|
-
|
|
11
|
+
import aadCommands from '../../aadCommands.js';
|
|
12
|
+
class EntraUserAddCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.USER_ADD;
|
|
14
15
|
}
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Creates a new user';
|
|
17
18
|
}
|
|
19
|
+
alias() {
|
|
20
|
+
return [aadCommands.USER_ADD];
|
|
21
|
+
}
|
|
18
22
|
allowUnknownOptions() {
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
25
|
constructor() {
|
|
22
26
|
super();
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
27
|
+
_EntraUserAddCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initOptionSets).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _EntraUserAddCommand_instances, "m", _EntraUserAddCommand_initTypes).call(this);
|
|
29
33
|
}
|
|
30
34
|
async commandAction(logger, args) {
|
|
31
35
|
if (this.verbose) {
|
|
@@ -112,7 +116,7 @@ class AadUserAddCommand extends GraphCommand {
|
|
|
112
116
|
return characterArray;
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
|
-
|
|
119
|
+
_EntraUserAddCommand_instances = new WeakSet(), _EntraUserAddCommand_initTelemetry = function _EntraUserAddCommand_initTelemetry() {
|
|
116
120
|
this.telemetry.push((args) => {
|
|
117
121
|
Object.assign(this.telemetryProperties, {
|
|
118
122
|
accountEnabled: typeof args.options.accountEnabled !== 'undefined',
|
|
@@ -132,7 +136,7 @@ _AadUserAddCommand_instances = new WeakSet(), _AadUserAddCommand_initTelemetry =
|
|
|
132
136
|
managerUserName: typeof args.options.managerUserName !== 'undefined'
|
|
133
137
|
});
|
|
134
138
|
});
|
|
135
|
-
},
|
|
139
|
+
}, _EntraUserAddCommand_initOptions = function _EntraUserAddCommand_initOptions() {
|
|
136
140
|
this.options.unshift({
|
|
137
141
|
option: '--displayName <displayName>'
|
|
138
142
|
}, {
|
|
@@ -169,7 +173,7 @@ _AadUserAddCommand_instances = new WeakSet(), _AadUserAddCommand_initTelemetry =
|
|
|
169
173
|
}, {
|
|
170
174
|
option: '--managerUserName [managerUserName]'
|
|
171
175
|
});
|
|
172
|
-
},
|
|
176
|
+
}, _EntraUserAddCommand_initValidators = function _EntraUserAddCommand_initValidators() {
|
|
173
177
|
this.validators.push(async (args) => {
|
|
174
178
|
if (!validation.isValidUserPrincipalName(args.options.userName)) {
|
|
175
179
|
return `${args.options.userName} is not a valid userName`;
|
|
@@ -206,13 +210,13 @@ _AadUserAddCommand_instances = new WeakSet(), _AadUserAddCommand_initTelemetry =
|
|
|
206
210
|
}
|
|
207
211
|
return true;
|
|
208
212
|
});
|
|
209
|
-
},
|
|
213
|
+
}, _EntraUserAddCommand_initOptionSets = function _EntraUserAddCommand_initOptionSets() {
|
|
210
214
|
this.optionSets.push({
|
|
211
215
|
options: ['managerUserId', 'managerUserName'],
|
|
212
216
|
runsWhen: (args) => args.options.managerId || args.options.managerUserName
|
|
213
217
|
});
|
|
214
|
-
},
|
|
218
|
+
}, _EntraUserAddCommand_initTypes = function _EntraUserAddCommand_initTypes() {
|
|
215
219
|
this.types.boolean.push('accountEnabled');
|
|
216
220
|
};
|
|
217
|
-
export default new
|
|
221
|
+
export default new EntraUserAddCommand();
|
|
218
222
|
//# sourceMappingURL=user-add.js.map
|
|
@@ -0,0 +1,115 @@
|
|
|
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 _EntraUserGetCommand_instances, _EntraUserGetCommand_initTelemetry, _EntraUserGetCommand_initOptions, _EntraUserGetCommand_initValidators, _EntraUserGetCommand_initOptionSets;
|
|
7
|
+
import request from '../../../../request.js';
|
|
8
|
+
import { validation } from '../../../../utils/validation.js';
|
|
9
|
+
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
|
+
import commands from '../../commands.js';
|
|
11
|
+
import aadCommands from '../../aadCommands.js';
|
|
12
|
+
import { entraUser } from '../../../../utils/entraUser.js';
|
|
13
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
14
|
+
class EntraUserGetCommand extends GraphCommand {
|
|
15
|
+
get name() {
|
|
16
|
+
return commands.USER_GET;
|
|
17
|
+
}
|
|
18
|
+
get description() {
|
|
19
|
+
return 'Gets information about the specified user';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.USER_GET];
|
|
23
|
+
}
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
_EntraUserGetCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraUserGetCommand_instances, "m", _EntraUserGetCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserGetCommand_instances, "m", _EntraUserGetCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraUserGetCommand_instances, "m", _EntraUserGetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraUserGetCommand_instances, "m", _EntraUserGetCommand_initOptionSets).call(this);
|
|
31
|
+
}
|
|
32
|
+
async commandAction(logger, args) {
|
|
33
|
+
try {
|
|
34
|
+
let userIdOrPrincipalName = args.options.id;
|
|
35
|
+
if (args.options.userName) {
|
|
36
|
+
// single user can be retrieved also by user principal name
|
|
37
|
+
userIdOrPrincipalName = formatting.encodeQueryParameter(args.options.userName);
|
|
38
|
+
}
|
|
39
|
+
else if (args.options.email) {
|
|
40
|
+
userIdOrPrincipalName = await entraUser.getUserIdByEmail(args.options.email);
|
|
41
|
+
}
|
|
42
|
+
const requestUrl = this.getRequestUrl(userIdOrPrincipalName, args.options);
|
|
43
|
+
const requestOptions = {
|
|
44
|
+
url: requestUrl,
|
|
45
|
+
headers: {
|
|
46
|
+
accept: 'application/json;odata.metadata=none'
|
|
47
|
+
},
|
|
48
|
+
responseType: 'json'
|
|
49
|
+
};
|
|
50
|
+
const user = await request.get(requestOptions);
|
|
51
|
+
await logger.log(user);
|
|
52
|
+
}
|
|
53
|
+
catch (err) {
|
|
54
|
+
this.handleRejectedODataJsonPromise(err);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
getRequestUrl(userIdOrPrincipalName, options) {
|
|
58
|
+
const queryParameters = [];
|
|
59
|
+
if (options.properties) {
|
|
60
|
+
const allProperties = options.properties.split(',');
|
|
61
|
+
const selectProperties = allProperties.filter(prop => !prop.includes('/'));
|
|
62
|
+
if (selectProperties.length > 0) {
|
|
63
|
+
queryParameters.push(`$select=${selectProperties}`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (options.withManager) {
|
|
67
|
+
queryParameters.push('$expand=manager($select=displayName,userPrincipalName,id,mail)');
|
|
68
|
+
}
|
|
69
|
+
const queryString = queryParameters.length > 0
|
|
70
|
+
? `?${queryParameters.join('&')}`
|
|
71
|
+
: '';
|
|
72
|
+
// user principal name can start with $ but it violates the OData URL convention, so it must be enclosed in parenthesis and single quotes
|
|
73
|
+
return userIdOrPrincipalName.startsWith('%24')
|
|
74
|
+
? `${this.resource}/v1.0/users('${userIdOrPrincipalName}')${queryString}`
|
|
75
|
+
: `${this.resource}/v1.0/users/${userIdOrPrincipalName}${queryString}`;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
_EntraUserGetCommand_instances = new WeakSet(), _EntraUserGetCommand_initTelemetry = function _EntraUserGetCommand_initTelemetry() {
|
|
79
|
+
this.telemetry.push((args) => {
|
|
80
|
+
Object.assign(this.telemetryProperties, {
|
|
81
|
+
id: typeof args.options.id !== 'undefined',
|
|
82
|
+
userName: typeof args.options.userName !== 'undefined',
|
|
83
|
+
email: typeof args.options.email !== 'undefined',
|
|
84
|
+
properties: args.options.properties,
|
|
85
|
+
withManager: typeof args.options.withManager !== 'undefined'
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
}, _EntraUserGetCommand_initOptions = function _EntraUserGetCommand_initOptions() {
|
|
89
|
+
this.options.unshift({
|
|
90
|
+
option: '-i, --id [id]'
|
|
91
|
+
}, {
|
|
92
|
+
option: '-n, --userName [userName]'
|
|
93
|
+
}, {
|
|
94
|
+
option: '--email [email]'
|
|
95
|
+
}, {
|
|
96
|
+
option: '-p, --properties [properties]'
|
|
97
|
+
}, {
|
|
98
|
+
option: '--withManager'
|
|
99
|
+
});
|
|
100
|
+
}, _EntraUserGetCommand_initValidators = function _EntraUserGetCommand_initValidators() {
|
|
101
|
+
this.validators.push(async (args) => {
|
|
102
|
+
if (args.options.id &&
|
|
103
|
+
!validation.isValidGuid(args.options.id)) {
|
|
104
|
+
return `${args.options.id} is not a valid GUID`;
|
|
105
|
+
}
|
|
106
|
+
if (args.options.userName && !validation.isValidUserPrincipalName(args.options.userName)) {
|
|
107
|
+
return `${args.options.userName} is not a valid userName`;
|
|
108
|
+
}
|
|
109
|
+
return true;
|
|
110
|
+
});
|
|
111
|
+
}, _EntraUserGetCommand_initOptionSets = function _EntraUserGetCommand_initOptionSets() {
|
|
112
|
+
this.optionSets.push({ options: ['id', 'userName', 'email'] });
|
|
113
|
+
};
|
|
114
|
+
export default new EntraUserGetCommand();
|
|
115
|
+
//# sourceMappingURL=user-get.js.map
|