@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
|
@@ -0,0 +1,182 @@
|
|
|
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 _EntraAppPermissionListCommand_instances, _EntraAppPermissionListCommand_initTelemetry, _EntraAppPermissionListCommand_initOptions, _EntraAppPermissionListCommand_initValidators, _EntraAppPermissionListCommand_initOptionSets;
|
|
7
|
+
import GraphCommand from "../../../base/GraphCommand.js";
|
|
8
|
+
import commands from "../../commands.js";
|
|
9
|
+
import request from "../../../../request.js";
|
|
10
|
+
import { validation } from "../../../../utils/validation.js";
|
|
11
|
+
import { formatting } from "../../../../utils/formatting.js";
|
|
12
|
+
class EntraAppPermissionListCommand extends GraphCommand {
|
|
13
|
+
get name() {
|
|
14
|
+
return commands.APP_PERMISSION_LIST;
|
|
15
|
+
}
|
|
16
|
+
get description() {
|
|
17
|
+
return 'Lists the application and delegated permissions for a specified Entra Application Registration';
|
|
18
|
+
}
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
_EntraAppPermissionListCommand_instances.add(this);
|
|
22
|
+
this.allowedTypes = ['delegated', 'application', 'all'];
|
|
23
|
+
__classPrivateFieldGet(this, _EntraAppPermissionListCommand_instances, "m", _EntraAppPermissionListCommand_initTelemetry).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _EntraAppPermissionListCommand_instances, "m", _EntraAppPermissionListCommand_initOptions).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraAppPermissionListCommand_instances, "m", _EntraAppPermissionListCommand_initValidators).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraAppPermissionListCommand_instances, "m", _EntraAppPermissionListCommand_initOptionSets).call(this);
|
|
27
|
+
}
|
|
28
|
+
async commandAction(logger, args) {
|
|
29
|
+
try {
|
|
30
|
+
const appObjectId = await this.getAppObjectId(args.options);
|
|
31
|
+
const type = args.options.type ?? 'all';
|
|
32
|
+
const permissions = await this.getAppRegPermissions(appObjectId, type, logger);
|
|
33
|
+
await logger.log(permissions);
|
|
34
|
+
}
|
|
35
|
+
catch (err) {
|
|
36
|
+
this.handleRejectedODataJsonPromise(err);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async getAppObjectId(options) {
|
|
40
|
+
if (options.appObjectId) {
|
|
41
|
+
return options.appObjectId;
|
|
42
|
+
}
|
|
43
|
+
const requestOptions = {
|
|
44
|
+
url: `${this.resource}/v1.0/myorganization/applications?$filter=appId eq '${formatting.encodeQueryParameter(options.appId)}'&$select=id`,
|
|
45
|
+
headers: {
|
|
46
|
+
accept: 'application/json;odata.metadata=none'
|
|
47
|
+
},
|
|
48
|
+
responseType: 'json'
|
|
49
|
+
};
|
|
50
|
+
const res = await request.get(requestOptions);
|
|
51
|
+
if (res.value.length === 0) {
|
|
52
|
+
throw `No Azure AD application registration with ID ${options.appId} found`;
|
|
53
|
+
}
|
|
54
|
+
return res.value[0].id;
|
|
55
|
+
}
|
|
56
|
+
async getAppRegPermissions(appObjectId, permissionType, logger) {
|
|
57
|
+
const requestOptions = {
|
|
58
|
+
url: `${this.resource}/v1.0/myorganization/applications/${appObjectId}`,
|
|
59
|
+
headers: {
|
|
60
|
+
accept: 'application/json;odata.metadata=none'
|
|
61
|
+
},
|
|
62
|
+
responseType: 'json'
|
|
63
|
+
};
|
|
64
|
+
const application = await request.get(requestOptions);
|
|
65
|
+
const requiredResourceAccess = application.requiredResourceAccess;
|
|
66
|
+
if (requiredResourceAccess.length === 0) {
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
const servicePrincipalsToResolve = requiredResourceAccess.map(resourceAccess => {
|
|
70
|
+
return {
|
|
71
|
+
appId: resourceAccess.resourceAppId
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
const servicePrincipals = await Promise
|
|
75
|
+
.all(servicePrincipalsToResolve.map(servicePrincipalInfo => this.getServicePrincipal(servicePrincipalInfo, permissionType, logger)));
|
|
76
|
+
const apiPermissions = [];
|
|
77
|
+
requiredResourceAccess.forEach(requiredResourceAccess => {
|
|
78
|
+
const servicePrincipal = servicePrincipals
|
|
79
|
+
.find(servicePrincipal => servicePrincipal?.appId === requiredResourceAccess.resourceAppId);
|
|
80
|
+
const resourceName = servicePrincipal?.displayName ?? requiredResourceAccess.resourceAppId;
|
|
81
|
+
requiredResourceAccess.resourceAccess.forEach(permission => {
|
|
82
|
+
if (permissionType === 'application' && permission.type === 'Scope') {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (permissionType === 'delegated' && permission.type === 'Role') {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
apiPermissions.push({
|
|
89
|
+
resource: resourceName,
|
|
90
|
+
resourceId: requiredResourceAccess.resourceAppId,
|
|
91
|
+
permission: this.getPermissionName(permission.id, permission.type, servicePrincipal),
|
|
92
|
+
type: permission.type === 'Role' ? 'Application' : 'Delegated'
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
return apiPermissions;
|
|
97
|
+
}
|
|
98
|
+
getPermissionName(permissionId, permissionType, servicePrincipal) {
|
|
99
|
+
if (!servicePrincipal) {
|
|
100
|
+
return permissionId;
|
|
101
|
+
}
|
|
102
|
+
if (permissionType === 'Role') {
|
|
103
|
+
return servicePrincipal.appRoles
|
|
104
|
+
.find(appRole => appRole.id === permissionId)?.value ?? permissionId;
|
|
105
|
+
}
|
|
106
|
+
// permissionType === 'Scope'
|
|
107
|
+
return servicePrincipal.oauth2PermissionScopes
|
|
108
|
+
.find(permissionScope => permissionScope.id === permissionId)?.value ?? permissionId;
|
|
109
|
+
}
|
|
110
|
+
async getServicePrincipal(servicePrincipalInfo, permissionType, logger) {
|
|
111
|
+
if (this.verbose) {
|
|
112
|
+
await logger.logToStderr(`Retrieving service principal ${servicePrincipalInfo.appId}`);
|
|
113
|
+
}
|
|
114
|
+
const requestOptions = {
|
|
115
|
+
url: `${this.resource}/v1.0/servicePrincipals?$filter=appId eq '${servicePrincipalInfo.appId}'&$select=appId,id,displayName`,
|
|
116
|
+
headers: {
|
|
117
|
+
accept: 'application/json;odata.metadata=none'
|
|
118
|
+
},
|
|
119
|
+
responseType: 'json'
|
|
120
|
+
};
|
|
121
|
+
const response = await request.get(requestOptions);
|
|
122
|
+
if (servicePrincipalInfo.appId && response.value.length === 0) {
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
const servicePrincipal = response.value[0];
|
|
126
|
+
if (this.verbose) {
|
|
127
|
+
await logger.logToStderr(`Retrieving permissions for service principal ${servicePrincipal.id}...`);
|
|
128
|
+
}
|
|
129
|
+
const oauth2PermissionScopesRequestOptions = {
|
|
130
|
+
url: `${this.resource}/v1.0/servicePrincipals/${servicePrincipal.id}/oauth2PermissionScopes`,
|
|
131
|
+
headers: {
|
|
132
|
+
accept: 'application/json;odata.metadata=none'
|
|
133
|
+
},
|
|
134
|
+
responseType: 'json'
|
|
135
|
+
};
|
|
136
|
+
const appRolesRequestOptions = {
|
|
137
|
+
url: `${this.resource}/v1.0/servicePrincipals/${servicePrincipal.id}/appRoles`,
|
|
138
|
+
headers: {
|
|
139
|
+
accept: 'application/json;odata.metadata=none'
|
|
140
|
+
},
|
|
141
|
+
responseType: 'json'
|
|
142
|
+
};
|
|
143
|
+
let permissions;
|
|
144
|
+
if (permissionType === 'all' || permissionType === 'delegated') {
|
|
145
|
+
permissions = await request.get(oauth2PermissionScopesRequestOptions);
|
|
146
|
+
servicePrincipal.oauth2PermissionScopes = permissions.value;
|
|
147
|
+
}
|
|
148
|
+
if (permissionType === 'all' || permissionType === 'application') {
|
|
149
|
+
permissions = await request.get(appRolesRequestOptions);
|
|
150
|
+
servicePrincipal.appRoles = permissions.value;
|
|
151
|
+
}
|
|
152
|
+
return servicePrincipal;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
_EntraAppPermissionListCommand_instances = new WeakSet(), _EntraAppPermissionListCommand_initTelemetry = function _EntraAppPermissionListCommand_initTelemetry() {
|
|
156
|
+
this.telemetry.push((args) => {
|
|
157
|
+
Object.assign(this.telemetryProperties, {
|
|
158
|
+
appId: typeof args.options.appId !== 'undefined',
|
|
159
|
+
appObjectId: typeof args.options.appObjectId !== 'undefined',
|
|
160
|
+
type: typeof args.options.type !== 'undefined'
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}, _EntraAppPermissionListCommand_initOptions = function _EntraAppPermissionListCommand_initOptions() {
|
|
164
|
+
this.options.unshift({ option: '-i, --appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--type [type]', autocomplete: this.allowedTypes });
|
|
165
|
+
}, _EntraAppPermissionListCommand_initValidators = function _EntraAppPermissionListCommand_initValidators() {
|
|
166
|
+
this.validators.push(async (args) => {
|
|
167
|
+
if (args.options.appId && !validation.isValidGuid(args.options.appId)) {
|
|
168
|
+
return `${args.options.appId} is not a valid GUID`;
|
|
169
|
+
}
|
|
170
|
+
if (args.options.appObjectId && !validation.isValidGuid(args.options.appObjectId)) {
|
|
171
|
+
return `${args.options.appObjectId} is not a valid GUID`;
|
|
172
|
+
}
|
|
173
|
+
if (args.options.type && this.allowedTypes.indexOf(args.options.type.toLowerCase()) === -1) {
|
|
174
|
+
return `${args.options.type} is not a valid type. Allowed types are ${this.allowedTypes.join(', ')}`;
|
|
175
|
+
}
|
|
176
|
+
return true;
|
|
177
|
+
});
|
|
178
|
+
}, _EntraAppPermissionListCommand_initOptionSets = function _EntraAppPermissionListCommand_initOptionSets() {
|
|
179
|
+
this.optionSets.push({ options: ['appId', 'appObjectId'] });
|
|
180
|
+
};
|
|
181
|
+
export default new EntraAppPermissionListCommand();
|
|
182
|
+
//# sourceMappingURL=app-permission-list.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 _EntraAppRemoveCommand_instances, _EntraAppRemoveCommand_initTelemetry, _EntraAppRemoveCommand_initOptions, _EntraAppRemoveCommand_initValidators, _EntraAppRemoveCommand_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 EntraAppRemoveCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.APP_REMOVE;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Removes an
|
|
19
|
+
return 'Removes an Entra app registration';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.APP_REMOVE];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAppRemoveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAppRemoveCommand_instances, "m", _EntraAppRemoveCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppRemoveCommand_instances, "m", _EntraAppRemoveCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppRemoveCommand_instances, "m", _EntraAppRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAppRemoveCommand_instances, "m", _EntraAppRemoveCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
const deleteApp = async () => {
|
|
@@ -86,7 +90,7 @@ class AadAppRemoveCommand extends GraphCommand {
|
|
|
86
90
|
return result.id;
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
|
-
|
|
93
|
+
_EntraAppRemoveCommand_instances = new WeakSet(), _EntraAppRemoveCommand_initTelemetry = function _EntraAppRemoveCommand_initTelemetry() {
|
|
90
94
|
this.telemetry.push((args) => {
|
|
91
95
|
Object.assign(this.telemetryProperties, {
|
|
92
96
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -95,9 +99,9 @@ _AadAppRemoveCommand_instances = new WeakSet(), _AadAppRemoveCommand_initTelemet
|
|
|
95
99
|
force: (!(!args.options.force)).toString()
|
|
96
100
|
});
|
|
97
101
|
});
|
|
98
|
-
},
|
|
102
|
+
}, _EntraAppRemoveCommand_initOptions = function _EntraAppRemoveCommand_initOptions() {
|
|
99
103
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '--name [name]' }, { option: '-f, --force' });
|
|
100
|
-
},
|
|
104
|
+
}, _EntraAppRemoveCommand_initValidators = function _EntraAppRemoveCommand_initValidators() {
|
|
101
105
|
this.validators.push(async (args) => {
|
|
102
106
|
if (args.options.appId && !validation.isValidGuid(args.options.appId)) {
|
|
103
107
|
return `${args.options.appId} is not a valid GUID`;
|
|
@@ -107,8 +111,8 @@ _AadAppRemoveCommand_instances = new WeakSet(), _AadAppRemoveCommand_initTelemet
|
|
|
107
111
|
}
|
|
108
112
|
return true;
|
|
109
113
|
});
|
|
110
|
-
},
|
|
114
|
+
}, _EntraAppRemoveCommand_initOptionSets = function _EntraAppRemoveCommand_initOptionSets() {
|
|
111
115
|
this.optionSets.push({ options: ['appId', 'objectId', 'name'] });
|
|
112
116
|
};
|
|
113
|
-
export default new
|
|
117
|
+
export default new EntraAppRemoveCommand();
|
|
114
118
|
//# sourceMappingURL=app-remove.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 _EntraAppRoleAddCommand_instances, _a, _EntraAppRoleAddCommand_initTelemetry, _EntraAppRoleAddCommand_initOptions, _EntraAppRoleAddCommand_initValidators, _EntraAppRoleAddCommand_initOptionSets;
|
|
7
7
|
import { v4 } from 'uuid';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.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 EntraAppRoleAddCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.APP_ROLE_ADD;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Adds role to the specified
|
|
19
|
+
return 'Adds role to the specified Entra app registration';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.APP_ROLE_ADD];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAppRoleAddCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAppRoleAddCommand_instances, "m", _EntraAppRoleAddCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppRoleAddCommand_instances, "m", _EntraAppRoleAddCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppRoleAddCommand_instances, "m", _EntraAppRoleAddCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAppRoleAddCommand_instances, "m", _EntraAppRoleAddCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
try {
|
|
@@ -110,7 +114,7 @@ class AadAppRoleAddCommand extends GraphCommand {
|
|
|
110
114
|
return result.id;
|
|
111
115
|
}
|
|
112
116
|
}
|
|
113
|
-
_a =
|
|
117
|
+
_a = EntraAppRoleAddCommand, _EntraAppRoleAddCommand_instances = new WeakSet(), _EntraAppRoleAddCommand_initTelemetry = function _EntraAppRoleAddCommand_initTelemetry() {
|
|
114
118
|
this.telemetry.push((args) => {
|
|
115
119
|
Object.assign(this.telemetryProperties, {
|
|
116
120
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -118,11 +122,11 @@ _a = AadAppRoleAddCommand, _AadAppRoleAddCommand_instances = new WeakSet(), _Aad
|
|
|
118
122
|
appName: typeof args.options.appName !== 'undefined'
|
|
119
123
|
});
|
|
120
124
|
});
|
|
121
|
-
},
|
|
125
|
+
}, _EntraAppRoleAddCommand_initOptions = function _EntraAppRoleAddCommand_initOptions() {
|
|
122
126
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--appName [appName]' }, { option: '-n, --name <name>' }, { option: '-d, --description <description>' }, {
|
|
123
127
|
option: '-m, --allowedMembers <allowedMembers>', autocomplete: _a.allowedMembers
|
|
124
128
|
}, { option: '-c, --claim <claim>' });
|
|
125
|
-
},
|
|
129
|
+
}, _EntraAppRoleAddCommand_initValidators = function _EntraAppRoleAddCommand_initValidators() {
|
|
126
130
|
this.validators.push(async (args) => {
|
|
127
131
|
const { allowedMembers, claim } = args.options;
|
|
128
132
|
if (_a.allowedMembers.indexOf(allowedMembers) < 0) {
|
|
@@ -139,9 +143,9 @@ _a = AadAppRoleAddCommand, _AadAppRoleAddCommand_instances = new WeakSet(), _Aad
|
|
|
139
143
|
}
|
|
140
144
|
return true;
|
|
141
145
|
});
|
|
142
|
-
},
|
|
146
|
+
}, _EntraAppRoleAddCommand_initOptionSets = function _EntraAppRoleAddCommand_initOptionSets() {
|
|
143
147
|
this.optionSets.push({ options: ['appId', 'appObjectId', 'appName'] });
|
|
144
148
|
};
|
|
145
|
-
|
|
146
|
-
export default new
|
|
149
|
+
EntraAppRoleAddCommand.allowedMembers = ['usersGroups', 'applications', 'both'];
|
|
150
|
+
export default new EntraAppRoleAddCommand();
|
|
147
151
|
//# sourceMappingURL=app-role-add.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
|
|
6
|
+
var _EntraAppRoleListCommand_instances, _EntraAppRoleListCommand_initTelemetry, _EntraAppRoleListCommand_initOptions, _EntraAppRoleListCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.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
12
|
import { cli } from '../../../../cli/cli.js';
|
|
13
|
-
|
|
13
|
+
import aadCommands from '../../aadCommands.js';
|
|
14
|
+
class EntraAppRoleListCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.APP_ROLE_LIST;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Gets
|
|
19
|
+
return 'Gets Entra app registration roles';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.APP_ROLE_LIST];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAppRoleListCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAppRoleListCommand_instances, "m", _EntraAppRoleListCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppRoleListCommand_instances, "m", _EntraAppRoleListCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppRoleListCommand_instances, "m", _EntraAppRoleListCommand_initOptionSets).call(this);
|
|
26
30
|
}
|
|
27
31
|
defaultProperties() {
|
|
28
32
|
return ['displayName', 'description', 'id'];
|
|
@@ -68,7 +72,7 @@ class AadAppRoleListCommand extends GraphCommand {
|
|
|
68
72
|
return result.id;
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
|
-
|
|
75
|
+
_EntraAppRoleListCommand_instances = new WeakSet(), _EntraAppRoleListCommand_initTelemetry = function _EntraAppRoleListCommand_initTelemetry() {
|
|
72
76
|
this.telemetry.push((args) => {
|
|
73
77
|
Object.assign(this.telemetryProperties, {
|
|
74
78
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -76,10 +80,10 @@ _AadAppRoleListCommand_instances = new WeakSet(), _AadAppRoleListCommand_initTel
|
|
|
76
80
|
appName: typeof args.options.appName !== 'undefined'
|
|
77
81
|
});
|
|
78
82
|
});
|
|
79
|
-
},
|
|
83
|
+
}, _EntraAppRoleListCommand_initOptions = function _EntraAppRoleListCommand_initOptions() {
|
|
80
84
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--appName [appName]' });
|
|
81
|
-
},
|
|
85
|
+
}, _EntraAppRoleListCommand_initOptionSets = function _EntraAppRoleListCommand_initOptionSets() {
|
|
82
86
|
this.optionSets.push({ options: ['appId', 'appObjectId', 'appName'] });
|
|
83
87
|
};
|
|
84
|
-
export default new
|
|
88
|
+
export default new EntraAppRoleListCommand();
|
|
85
89
|
//# sourceMappingURL=app-role-list.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 _EntraAppRoleRemoveCommand_instances, _EntraAppRoleRemoveCommand_initTelemetry, _EntraAppRoleRemoveCommand_initOptions, _EntraAppRoleRemoveCommand_initValidators, _EntraAppRoleRemoveCommand_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
12
|
import commands from '../../commands.js';
|
|
13
|
-
|
|
13
|
+
import aadCommands from "../../aadCommands.js";
|
|
14
|
+
class EntraAppRoleRemoveCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.APP_ROLE_REMOVE;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Removes role from the specified
|
|
19
|
+
return 'Removes role from the specified Entra app registration';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.APP_ROLE_REMOVE];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAppRoleRemoveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAppRoleRemoveCommand_instances, "m", _EntraAppRoleRemoveCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppRoleRemoveCommand_instances, "m", _EntraAppRoleRemoveCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppRoleRemoveCommand_instances, "m", _EntraAppRoleRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAppRoleRemoveCommand_instances, "m", _EntraAppRoleRemoveCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
const deleteAppRole = async () => {
|
|
@@ -152,7 +156,7 @@ class AadAppRoleRemoveCommand extends GraphCommand {
|
|
|
152
156
|
return result.id;
|
|
153
157
|
}
|
|
154
158
|
}
|
|
155
|
-
|
|
159
|
+
_EntraAppRoleRemoveCommand_instances = new WeakSet(), _EntraAppRoleRemoveCommand_initTelemetry = function _EntraAppRoleRemoveCommand_initTelemetry() {
|
|
156
160
|
this.telemetry.push((args) => {
|
|
157
161
|
Object.assign(this.telemetryProperties, {
|
|
158
162
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -163,9 +167,9 @@ _AadAppRoleRemoveCommand_instances = new WeakSet(), _AadAppRoleRemoveCommand_ini
|
|
|
163
167
|
id: typeof args.options.id !== 'undefined'
|
|
164
168
|
});
|
|
165
169
|
});
|
|
166
|
-
},
|
|
170
|
+
}, _EntraAppRoleRemoveCommand_initOptions = function _EntraAppRoleRemoveCommand_initOptions() {
|
|
167
171
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--appName [appName]' }, { option: '-n, --name [name]' }, { option: '-i, --id [id]' }, { option: '-c, --claim [claim]' }, { option: '-f, --force' });
|
|
168
|
-
},
|
|
172
|
+
}, _EntraAppRoleRemoveCommand_initValidators = function _EntraAppRoleRemoveCommand_initValidators() {
|
|
169
173
|
this.validators.push(async (args) => {
|
|
170
174
|
if (args.options.id) {
|
|
171
175
|
if (!validation.isValidGuid(args.options.id)) {
|
|
@@ -174,8 +178,8 @@ _AadAppRoleRemoveCommand_instances = new WeakSet(), _AadAppRoleRemoveCommand_ini
|
|
|
174
178
|
}
|
|
175
179
|
return true;
|
|
176
180
|
});
|
|
177
|
-
},
|
|
181
|
+
}, _EntraAppRoleRemoveCommand_initOptionSets = function _EntraAppRoleRemoveCommand_initOptionSets() {
|
|
178
182
|
this.optionSets.push({ options: ['appId', 'appObjectId', 'appName'] }, { options: ['name', 'claim', 'id'] });
|
|
179
183
|
};
|
|
180
|
-
export default new
|
|
184
|
+
export default new EntraAppRoleRemoveCommand();
|
|
181
185
|
//# sourceMappingURL=app-role-remove.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 _EntraAppSetCommand_instances, _a, _EntraAppSetCommand_initTelemetry, _EntraAppSetCommand_initOptions, _EntraAppSetCommand_initValidators, _EntraAppSetCommand_initOptionSets;
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.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 EntraAppSetCommand extends GraphCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.APP_SET;
|
|
16
17
|
}
|
|
17
18
|
get description() {
|
|
18
|
-
return 'Updates
|
|
19
|
+
return 'Updates Entra app registration';
|
|
20
|
+
}
|
|
21
|
+
alias() {
|
|
22
|
+
return [aadCommands.APP_SET];
|
|
19
23
|
}
|
|
20
24
|
constructor() {
|
|
21
25
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
26
|
+
_EntraAppSetCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraAppSetCommand_instances, "m", _EntraAppSetCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppSetCommand_instances, "m", _EntraAppSetCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppSetCommand_instances, "m", _EntraAppSetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAppSetCommand_instances, "m", _EntraAppSetCommand_initOptionSets).call(this);
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
29
33
|
try {
|
|
@@ -232,7 +236,7 @@ class AadAppSetCommand extends GraphCommand {
|
|
|
232
236
|
return request.patch(requestOptions);
|
|
233
237
|
}
|
|
234
238
|
}
|
|
235
|
-
_a =
|
|
239
|
+
_a = EntraAppSetCommand, _EntraAppSetCommand_instances = new WeakSet(), _EntraAppSetCommand_initTelemetry = function _EntraAppSetCommand_initTelemetry() {
|
|
236
240
|
this.telemetry.push((args) => {
|
|
237
241
|
Object.assign(this.telemetryProperties, {
|
|
238
242
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -247,12 +251,12 @@ _a = AadAppSetCommand, _AadAppSetCommand_instances = new WeakSet(), _AadAppSetCo
|
|
|
247
251
|
certificateDisplayName: typeof args.options.certificateDisplayName !== 'undefined'
|
|
248
252
|
});
|
|
249
253
|
});
|
|
250
|
-
},
|
|
254
|
+
}, _EntraAppSetCommand_initOptions = function _EntraAppSetCommand_initOptions() {
|
|
251
255
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '-n, --name [name]' }, { option: '-u, --uris [uris]' }, { option: '-r, --redirectUris [redirectUris]' }, { option: '--certificateFile [certificateFile]' }, { option: '--certificateBase64Encoded [certificateBase64Encoded]' }, { option: '--certificateDisplayName [certificateDisplayName]' }, {
|
|
252
256
|
option: '--platform [platform]',
|
|
253
257
|
autocomplete: _a.aadApplicationPlatform
|
|
254
258
|
}, { option: '--redirectUrisToRemove [redirectUrisToRemove]' });
|
|
255
|
-
},
|
|
259
|
+
}, _EntraAppSetCommand_initValidators = function _EntraAppSetCommand_initValidators() {
|
|
256
260
|
this.validators.push(async (args) => {
|
|
257
261
|
if (args.options.certificateFile && args.options.certificateBase64Encoded) {
|
|
258
262
|
return 'Specify either certificateFile or certificateBase64Encoded but not both';
|
|
@@ -272,9 +276,9 @@ _a = AadAppSetCommand, _AadAppSetCommand_instances = new WeakSet(), _AadAppSetCo
|
|
|
272
276
|
}
|
|
273
277
|
return true;
|
|
274
278
|
});
|
|
275
|
-
},
|
|
279
|
+
}, _EntraAppSetCommand_initOptionSets = function _EntraAppSetCommand_initOptionSets() {
|
|
276
280
|
this.optionSets.push({ options: ['appId', 'objectId', 'name'] });
|
|
277
281
|
};
|
|
278
|
-
|
|
279
|
-
export default new
|
|
282
|
+
EntraAppSetCommand.aadApplicationPlatform = ['spa', 'web', 'publicClient'];
|
|
283
|
+
export default new EntraAppSetCommand();
|
|
280
284
|
//# sourceMappingURL=app-set.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraAppRoleAssignmentAddCommand_instances, _EntraAppRoleAssignmentAddCommand_initTelemetry, _EntraAppRoleAssignmentAddCommand_initOptions, _EntraAppRoleAssignmentAddCommand_initValidators, _EntraAppRoleAssignmentAddCommand_initOptionSets;
|
|
7
7
|
import os from 'os';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -11,20 +11,24 @@ import { validation } from '../../../../utils/validation.js';
|
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
13
|
import { cli } from '../../../../cli/cli.js';
|
|
14
|
-
|
|
14
|
+
import aadCommands from '../../aadCommands.js';
|
|
15
|
+
class EntraAppRoleAssignmentAddCommand extends GraphCommand {
|
|
15
16
|
get name() {
|
|
16
17
|
return commands.APPROLEASSIGNMENT_ADD;
|
|
17
18
|
}
|
|
18
19
|
get description() {
|
|
19
|
-
return 'Adds service principal permissions also known as scopes and app role assignments for specified
|
|
20
|
+
return 'Adds service principal permissions also known as scopes and app role assignments for specified Entra application registration';
|
|
21
|
+
}
|
|
22
|
+
alias() {
|
|
23
|
+
return [aadCommands.APPROLEASSIGNMENT_ADD];
|
|
20
24
|
}
|
|
21
25
|
constructor() {
|
|
22
26
|
super();
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
27
|
+
_EntraAppRoleAssignmentAddCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraAppRoleAssignmentAddCommand_instances, "m", _EntraAppRoleAssignmentAddCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraAppRoleAssignmentAddCommand_instances, "m", _EntraAppRoleAssignmentAddCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _EntraAppRoleAssignmentAddCommand_instances, "m", _EntraAppRoleAssignmentAddCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraAppRoleAssignmentAddCommand_instances, "m", _EntraAppRoleAssignmentAddCommand_initOptionSets).call(this);
|
|
28
32
|
}
|
|
29
33
|
async commandAction(logger, args) {
|
|
30
34
|
let objectId = '';
|
|
@@ -149,7 +153,7 @@ class AadAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
149
153
|
return request.post(requestOptions);
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
|
-
|
|
156
|
+
_EntraAppRoleAssignmentAddCommand_instances = new WeakSet(), _EntraAppRoleAssignmentAddCommand_initTelemetry = function _EntraAppRoleAssignmentAddCommand_initTelemetry() {
|
|
153
157
|
this.telemetry.push((args) => {
|
|
154
158
|
Object.assign(this.telemetryProperties, {
|
|
155
159
|
appId: typeof args.options.appId !== 'undefined',
|
|
@@ -157,7 +161,7 @@ _AadAppRoleAssignmentAddCommand_instances = new WeakSet(), _AadAppRoleAssignment
|
|
|
157
161
|
appDisplayName: typeof args.options.appDisplayName !== 'undefined'
|
|
158
162
|
});
|
|
159
163
|
});
|
|
160
|
-
},
|
|
164
|
+
}, _EntraAppRoleAssignmentAddCommand_initOptions = function _EntraAppRoleAssignmentAddCommand_initOptions() {
|
|
161
165
|
this.options.unshift({
|
|
162
166
|
option: '--appId [appId]'
|
|
163
167
|
}, {
|
|
@@ -170,7 +174,7 @@ _AadAppRoleAssignmentAddCommand_instances = new WeakSet(), _AadAppRoleAssignment
|
|
|
170
174
|
}, {
|
|
171
175
|
option: '-s, --scopes <scopes>'
|
|
172
176
|
});
|
|
173
|
-
},
|
|
177
|
+
}, _EntraAppRoleAssignmentAddCommand_initValidators = function _EntraAppRoleAssignmentAddCommand_initValidators() {
|
|
174
178
|
this.validators.push(async (args) => {
|
|
175
179
|
if (args.options.appId && !validation.isValidGuid(args.options.appId)) {
|
|
176
180
|
return `${args.options.appId} is not a valid GUID`;
|
|
@@ -180,8 +184,8 @@ _AadAppRoleAssignmentAddCommand_instances = new WeakSet(), _AadAppRoleAssignment
|
|
|
180
184
|
}
|
|
181
185
|
return true;
|
|
182
186
|
});
|
|
183
|
-
},
|
|
187
|
+
}, _EntraAppRoleAssignmentAddCommand_initOptionSets = function _EntraAppRoleAssignmentAddCommand_initOptionSets() {
|
|
184
188
|
this.optionSets.push({ options: ['appId', 'appObjectId', 'appDisplayName'] });
|
|
185
189
|
};
|
|
186
|
-
export default new
|
|
190
|
+
export default new EntraAppRoleAssignmentAddCommand();
|
|
187
191
|
//# sourceMappingURL=approleassignment-add.js.map
|