@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 _EntraUserRecycleBinItemRestoreCommand_instances, _EntraUserRecycleBinItemRestoreCommand_initOptions, _EntraUserRecycleBinItemRestoreCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { validation } from '../../../../utils/validation.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
|
|
11
|
+
import aadCommands from '../../aadCommands.js';
|
|
12
|
+
class EntraUserRecycleBinItemRestoreCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.USER_RECYCLEBINITEM_RESTORE;
|
|
14
15
|
}
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Restores a user from the tenant recycle bin';
|
|
17
18
|
}
|
|
19
|
+
alias() {
|
|
20
|
+
return [aadCommands.USER_RECYCLEBINITEM_RESTORE];
|
|
21
|
+
}
|
|
18
22
|
constructor() {
|
|
19
23
|
super();
|
|
20
|
-
|
|
21
|
-
__classPrivateFieldGet(this,
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
24
|
+
_EntraUserRecycleBinItemRestoreCommand_instances.add(this);
|
|
25
|
+
__classPrivateFieldGet(this, _EntraUserRecycleBinItemRestoreCommand_instances, "m", _EntraUserRecycleBinItemRestoreCommand_initOptions).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraUserRecycleBinItemRestoreCommand_instances, "m", _EntraUserRecycleBinItemRestoreCommand_initValidators).call(this);
|
|
23
27
|
}
|
|
24
28
|
async commandAction(logger, args) {
|
|
25
29
|
if (this.verbose) {
|
|
@@ -41,11 +45,11 @@ class AadUserRecycleBinItemRestoreCommand extends GraphCommand {
|
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
|
-
|
|
48
|
+
_EntraUserRecycleBinItemRestoreCommand_instances = new WeakSet(), _EntraUserRecycleBinItemRestoreCommand_initOptions = function _EntraUserRecycleBinItemRestoreCommand_initOptions() {
|
|
45
49
|
this.options.unshift({
|
|
46
50
|
option: '--id <id>'
|
|
47
51
|
});
|
|
48
|
-
},
|
|
52
|
+
}, _EntraUserRecycleBinItemRestoreCommand_initValidators = function _EntraUserRecycleBinItemRestoreCommand_initValidators() {
|
|
49
53
|
this.validators.push(async (args) => {
|
|
50
54
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
51
55
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -53,5 +57,5 @@ _AadUserRecycleBinItemRestoreCommand_instances = new WeakSet(), _AadUserRecycleB
|
|
|
53
57
|
return true;
|
|
54
58
|
});
|
|
55
59
|
};
|
|
56
|
-
export default new
|
|
60
|
+
export default new EntraUserRecycleBinItemRestoreCommand();
|
|
57
61
|
//# sourceMappingURL=user-recyclebinitem-restore.js.map
|
|
@@ -3,26 +3,30 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraUserRemoveCommand_instances, _EntraUserRemoveCommand_initTelemetry, _EntraUserRemoveCommand_initOptions, _EntraUserRemoveCommand_initOptionSets, _EntraUserRemoveCommand_initValidators;
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import { cli } from '../../../../cli/cli.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
|
-
|
|
12
|
+
import aadCommands from '../../aadCommands.js';
|
|
13
|
+
class EntraUserRemoveCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.USER_REMOVE;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Removes a specific user';
|
|
18
19
|
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.USER_REMOVE];
|
|
22
|
+
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraUserRemoveCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraUserRemoveCommand_instances, "m", _EntraUserRemoveCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraUserRemoveCommand_instances, "m", _EntraUserRemoveCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserRemoveCommand_instances, "m", _EntraUserRemoveCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _EntraUserRemoveCommand_instances, "m", _EntraUserRemoveCommand_initOptionSets).call(this);
|
|
26
30
|
}
|
|
27
31
|
async commandAction(logger, args) {
|
|
28
32
|
if (this.verbose) {
|
|
@@ -54,7 +58,7 @@ class AadUserRemoveCommand extends GraphCommand {
|
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
|
-
|
|
61
|
+
_EntraUserRemoveCommand_instances = new WeakSet(), _EntraUserRemoveCommand_initTelemetry = function _EntraUserRemoveCommand_initTelemetry() {
|
|
58
62
|
this.telemetry.push((args) => {
|
|
59
63
|
Object.assign(this.telemetryProperties, {
|
|
60
64
|
id: typeof args.options.id !== 'undefined',
|
|
@@ -62,7 +66,7 @@ _AadUserRemoveCommand_instances = new WeakSet(), _AadUserRemoveCommand_initTelem
|
|
|
62
66
|
force: !!args.options.force
|
|
63
67
|
});
|
|
64
68
|
});
|
|
65
|
-
},
|
|
69
|
+
}, _EntraUserRemoveCommand_initOptions = function _EntraUserRemoveCommand_initOptions() {
|
|
66
70
|
this.options.unshift({
|
|
67
71
|
option: '--id [id]'
|
|
68
72
|
}, {
|
|
@@ -70,9 +74,9 @@ _AadUserRemoveCommand_instances = new WeakSet(), _AadUserRemoveCommand_initTelem
|
|
|
70
74
|
}, {
|
|
71
75
|
option: '-f, --force'
|
|
72
76
|
});
|
|
73
|
-
},
|
|
77
|
+
}, _EntraUserRemoveCommand_initOptionSets = function _EntraUserRemoveCommand_initOptionSets() {
|
|
74
78
|
this.optionSets.push({ options: ['id', 'userName'] });
|
|
75
|
-
},
|
|
79
|
+
}, _EntraUserRemoveCommand_initValidators = function _EntraUserRemoveCommand_initValidators() {
|
|
76
80
|
this.validators.push(async (args) => {
|
|
77
81
|
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
78
82
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -83,5 +87,5 @@ _AadUserRemoveCommand_instances = new WeakSet(), _AadUserRemoveCommand_initTelem
|
|
|
83
87
|
return true;
|
|
84
88
|
});
|
|
85
89
|
};
|
|
86
|
-
export default new
|
|
90
|
+
export default new EntraUserRemoveCommand();
|
|
87
91
|
//# sourceMappingURL=user-remove.js.map
|
|
@@ -3,32 +3,36 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraUserSetCommand_instances, _EntraUserSetCommand_initTelemetry, _EntraUserSetCommand_initOptions, _EntraUserSetCommand_initTypes, _EntraUserSetCommand_initValidators, _EntraUserSetCommand_initOptionSets;
|
|
7
7
|
import auth from '../../../../Auth.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
10
10
|
import { formatting } from '../../../../utils/formatting.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
|
+
import aadCommands from '../../aadCommands.js';
|
|
13
14
|
import commands from '../../commands.js';
|
|
14
|
-
class
|
|
15
|
+
class EntraUserSetCommand extends GraphCommand {
|
|
15
16
|
get name() {
|
|
16
17
|
return commands.USER_SET;
|
|
17
18
|
}
|
|
18
19
|
get description() {
|
|
19
20
|
return 'Updates information about the specified user';
|
|
20
21
|
}
|
|
22
|
+
alias() {
|
|
23
|
+
return [aadCommands.USER_SET];
|
|
24
|
+
}
|
|
21
25
|
allowUnknownOptions() {
|
|
22
26
|
return true;
|
|
23
27
|
}
|
|
24
28
|
constructor() {
|
|
25
29
|
super();
|
|
26
|
-
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
29
|
-
__classPrivateFieldGet(this,
|
|
30
|
-
__classPrivateFieldGet(this,
|
|
31
|
-
__classPrivateFieldGet(this,
|
|
30
|
+
_EntraUserSetCommand_instances.add(this);
|
|
31
|
+
__classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initTelemetry).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initOptions).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initTypes).call(this);
|
|
34
|
+
__classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initValidators).call(this);
|
|
35
|
+
__classPrivateFieldGet(this, _EntraUserSetCommand_instances, "m", _EntraUserSetCommand_initOptionSets).call(this);
|
|
32
36
|
}
|
|
33
37
|
async commandAction(logger, args) {
|
|
34
38
|
try {
|
|
@@ -149,7 +153,7 @@ class AadUserSetCommand extends GraphCommand {
|
|
|
149
153
|
await request.delete(managerRequestOptions);
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
|
-
|
|
156
|
+
_EntraUserSetCommand_instances = new WeakSet(), _EntraUserSetCommand_initTelemetry = function _EntraUserSetCommand_initTelemetry() {
|
|
153
157
|
this.telemetry.push((args) => {
|
|
154
158
|
Object.assign(this.telemetryProperties, {
|
|
155
159
|
id: typeof args.options.id !== 'undefined',
|
|
@@ -174,7 +178,7 @@ _AadUserSetCommand_instances = new WeakSet(), _AadUserSetCommand_initTelemetry =
|
|
|
174
178
|
removeManager: typeof args.options.removeManager !== 'undefined'
|
|
175
179
|
});
|
|
176
180
|
});
|
|
177
|
-
},
|
|
181
|
+
}, _EntraUserSetCommand_initOptions = function _EntraUserSetCommand_initOptions() {
|
|
178
182
|
this.options.unshift({
|
|
179
183
|
option: '-i, --id [id]'
|
|
180
184
|
}, {
|
|
@@ -217,9 +221,9 @@ _AadUserSetCommand_instances = new WeakSet(), _AadUserSetCommand_initTelemetry =
|
|
|
217
221
|
}, {
|
|
218
222
|
option: '--removeManager'
|
|
219
223
|
});
|
|
220
|
-
},
|
|
224
|
+
}, _EntraUserSetCommand_initTypes = function _EntraUserSetCommand_initTypes() {
|
|
221
225
|
this.types.boolean.push('accountEnabled');
|
|
222
|
-
},
|
|
226
|
+
}, _EntraUserSetCommand_initValidators = function _EntraUserSetCommand_initValidators() {
|
|
223
227
|
this.validators.push(async (args) => {
|
|
224
228
|
if (args.options.id &&
|
|
225
229
|
!validation.isValidGuid(args.options.id)) {
|
|
@@ -275,7 +279,7 @@ _AadUserSetCommand_instances = new WeakSet(), _AadUserSetCommand_initTelemetry =
|
|
|
275
279
|
}
|
|
276
280
|
return true;
|
|
277
281
|
});
|
|
278
|
-
},
|
|
282
|
+
}, _EntraUserSetCommand_initOptionSets = function _EntraUserSetCommand_initOptionSets() {
|
|
279
283
|
this.optionSets.push({
|
|
280
284
|
options: ['id', 'userName']
|
|
281
285
|
}, {
|
|
@@ -283,5 +287,5 @@ _AadUserSetCommand_instances = new WeakSet(), _AadUserSetCommand_initTelemetry =
|
|
|
283
287
|
runsWhen: (args) => args.options.managerUserId || args.options.managerUserName || args.options.removeManager
|
|
284
288
|
});
|
|
285
289
|
};
|
|
286
|
-
export default new
|
|
290
|
+
export default new EntraUserSetCommand();
|
|
287
291
|
//# sourceMappingURL=user-set.js.map
|
|
@@ -3,25 +3,29 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _EntraUserSigninListCommand_instances, _EntraUserSigninListCommand_initTelemetry, _EntraUserSigninListCommand_initOptions, _EntraUserSigninListCommand_initValidators;
|
|
7
7
|
import { formatting } from '../../../../utils/formatting.js';
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
-
|
|
12
|
+
import aadCommands from '../../aadCommands.js';
|
|
13
|
+
class EntraUserSigninListCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.USER_SIGNIN_LIST;
|
|
15
16
|
}
|
|
16
17
|
get description() {
|
|
17
|
-
return 'Retrieves the
|
|
18
|
+
return 'Retrieves the Entra ID user sign-ins for the tenant';
|
|
19
|
+
}
|
|
20
|
+
alias() {
|
|
21
|
+
return [aadCommands.USER_SIGNIN_LIST];
|
|
18
22
|
}
|
|
19
23
|
constructor() {
|
|
20
24
|
super();
|
|
21
|
-
|
|
22
|
-
__classPrivateFieldGet(this,
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_EntraUserSigninListCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _EntraUserSigninListCommand_instances, "m", _EntraUserSigninListCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _EntraUserSigninListCommand_instances, "m", _EntraUserSigninListCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _EntraUserSigninListCommand_instances, "m", _EntraUserSigninListCommand_initValidators).call(this);
|
|
25
29
|
}
|
|
26
30
|
defaultProperties() {
|
|
27
31
|
return ['id', 'userPrincipalName', 'appId', 'appDisplayName', 'createdDateTime'];
|
|
@@ -50,7 +54,7 @@ class AadUserSigninListCommand extends GraphCommand {
|
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
|
-
|
|
57
|
+
_EntraUserSigninListCommand_instances = new WeakSet(), _EntraUserSigninListCommand_initTelemetry = function _EntraUserSigninListCommand_initTelemetry() {
|
|
54
58
|
this.telemetry.push((args) => {
|
|
55
59
|
Object.assign(this.telemetryProperties, {
|
|
56
60
|
userName: typeof args.options.userName !== 'undefined',
|
|
@@ -59,7 +63,7 @@ _AadUserSigninListCommand_instances = new WeakSet(), _AadUserSigninListCommand_i
|
|
|
59
63
|
appId: typeof args.options.appId !== 'undefined'
|
|
60
64
|
});
|
|
61
65
|
});
|
|
62
|
-
},
|
|
66
|
+
}, _EntraUserSigninListCommand_initOptions = function _EntraUserSigninListCommand_initOptions() {
|
|
63
67
|
this.options.unshift({
|
|
64
68
|
option: '-n, --userName [userName]'
|
|
65
69
|
}, {
|
|
@@ -69,7 +73,7 @@ _AadUserSigninListCommand_instances = new WeakSet(), _AadUserSigninListCommand_i
|
|
|
69
73
|
}, {
|
|
70
74
|
option: '--appId [appId]'
|
|
71
75
|
});
|
|
72
|
-
},
|
|
76
|
+
}, _EntraUserSigninListCommand_initValidators = function _EntraUserSigninListCommand_initValidators() {
|
|
73
77
|
this.validators.push(async (args) => {
|
|
74
78
|
if (args.options.userId && args.options.userName) {
|
|
75
79
|
return 'Specify either userId or userName, but not both';
|
|
@@ -89,5 +93,5 @@ _AadUserSigninListCommand_instances = new WeakSet(), _AadUserSigninListCommand_i
|
|
|
89
93
|
return true;
|
|
90
94
|
});
|
|
91
95
|
};
|
|
92
|
-
export default new
|
|
96
|
+
export default new EntraUserSigninListCommand();
|
|
93
97
|
//# sourceMappingURL=user-signin-list.js.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
const prefix = 'entra';
|
|
2
|
+
export default {
|
|
3
|
+
ADMINISTRATIVEUNIT_ADD: `${prefix} administrativeunit add`,
|
|
4
|
+
ADMINISTRATIVEUNIT_GET: `${prefix} administrativeunit get`,
|
|
5
|
+
ADMINISTRATIVEUNIT_LIST: `${prefix} administrativeunit list`,
|
|
6
|
+
ADMINISTRATIVEUNIT_REMOVE: `${prefix} administrativeunit remove`,
|
|
7
|
+
ADMINISTRATIVEUNIT_MEMBER_ADD: `${prefix} administrativeunit member add`,
|
|
8
|
+
ADMINISTRATIVEUNIT_MEMBER_GET: `${prefix} administrativeunit member get`,
|
|
9
|
+
ADMINISTRATIVEUNIT_MEMBER_LIST: `${prefix} administrativeunit member list`,
|
|
10
|
+
ADMINISTRATIVEUNIT_ROLEASSIGNMENT_ADD: `${prefix} administrativeunit roleassignment add`,
|
|
11
|
+
APP_ADD: `${prefix} app add`,
|
|
12
|
+
APP_GET: `${prefix} app get`,
|
|
13
|
+
APP_LIST: `${prefix} app list`,
|
|
14
|
+
APP_REMOVE: `${prefix} app remove`,
|
|
15
|
+
APP_SET: `${prefix} app set`,
|
|
16
|
+
APP_PERMISSION_ADD: `${prefix} app permission add`,
|
|
17
|
+
APP_PERMISSION_LIST: `${prefix} app permission list`,
|
|
18
|
+
APP_ROLE_ADD: `${prefix} app role add`,
|
|
19
|
+
APP_ROLE_LIST: `${prefix} app role list`,
|
|
20
|
+
APP_ROLE_REMOVE: `${prefix} app role remove`,
|
|
21
|
+
APPROLEASSIGNMENT_ADD: `${prefix} approleassignment add`,
|
|
22
|
+
APPROLEASSIGNMENT_LIST: `${prefix} approleassignment list`,
|
|
23
|
+
APPROLEASSIGNMENT_REMOVE: `${prefix} approleassignment remove`,
|
|
24
|
+
GROUP_ADD: `${prefix} group add`,
|
|
25
|
+
GROUP_GET: `${prefix} group get`,
|
|
26
|
+
GROUP_LIST: `${prefix} group list`,
|
|
27
|
+
GROUP_REMOVE: `${prefix} group remove`,
|
|
28
|
+
GROUP_USER_ADD: `${prefix} group user add`,
|
|
29
|
+
GROUP_USER_LIST: `${prefix} group user list`,
|
|
30
|
+
GROUPSETTING_ADD: `${prefix} groupsetting add`,
|
|
31
|
+
GROUPSETTING_GET: `${prefix} groupsetting get`,
|
|
32
|
+
GROUPSETTING_LIST: `${prefix} groupsetting list`,
|
|
33
|
+
GROUPSETTING_REMOVE: `${prefix} groupsetting remove`,
|
|
34
|
+
GROUPSETTING_SET: `${prefix} groupsetting set`,
|
|
35
|
+
GROUPSETTINGTEMPLATE_GET: `${prefix} groupsettingtemplate get`,
|
|
36
|
+
GROUPSETTINGTEMPLATE_LIST: `${prefix} groupsettingtemplate list`,
|
|
37
|
+
LICENSE_LIST: `${prefix} license list`,
|
|
38
|
+
M365GROUP_ADD: `${prefix} m365group add`,
|
|
39
|
+
M365GROUP_GET: `${prefix} m365group get`,
|
|
40
|
+
M365GROUP_LIST: `${prefix} m365group list`,
|
|
41
|
+
M365GROUP_CONVERSATION_LIST: `${prefix} m365group conversation list`,
|
|
42
|
+
M365GROUP_CONVERSATION_POST_LIST: `${prefix} m365group conversation post list`,
|
|
43
|
+
M365GROUP_RECYCLEBINITEM_CLEAR: `${prefix} m365group recyclebinitem clear`,
|
|
44
|
+
M365GROUP_RECYCLEBINITEM_LIST: `${prefix} m365group recyclebinitem list`,
|
|
45
|
+
M365GROUP_RECYCLEBINITEM_REMOVE: `${prefix} m365group recyclebinitem remove`,
|
|
46
|
+
M365GROUP_RECYCLEBINITEM_RESTORE: `${prefix} m365group recyclebinitem restore`,
|
|
47
|
+
M365GROUP_SET: `${prefix} m365group set`,
|
|
48
|
+
M365GROUP_TEAMIFY: `${prefix} m365group teamify`,
|
|
49
|
+
M365GROUP_REMOVE: `${prefix} m365group remove`,
|
|
50
|
+
M365GROUP_RENEW: `${prefix} m365group renew`,
|
|
51
|
+
M365GROUP_REPORT_ACTIVITYCOUNTS: `${prefix} m365group report activitycounts`,
|
|
52
|
+
M365GROUP_REPORT_ACTIVITYDETAIL: `${prefix} m365group report activitydetail`,
|
|
53
|
+
M365GROUP_REPORT_ACTIVITYFILECOUNTS: `${prefix} m365group report activityfilecounts`,
|
|
54
|
+
M365GROUP_REPORT_ACTIVITYGROUPCOUNTS: `${prefix} m365group report activitygroupcounts`,
|
|
55
|
+
M365GROUP_REPORT_ACTIVITYSTORAGE: `${prefix} m365group report activitystorage`,
|
|
56
|
+
M365GROUP_USER_ADD: `${prefix} m365group user add`,
|
|
57
|
+
M365GROUP_USER_LIST: `${prefix} m365group user list`,
|
|
58
|
+
M365GROUP_USER_REMOVE: `${prefix} m365group user remove`,
|
|
59
|
+
M365GROUP_USER_SET: `${prefix} m365group user set`,
|
|
60
|
+
OAUTH2GRANT_ADD: `${prefix} oauth2grant add`,
|
|
61
|
+
OAUTH2GRANT_LIST: `${prefix} oauth2grant list`,
|
|
62
|
+
OAUTH2GRANT_REMOVE: `${prefix} oauth2grant remove`,
|
|
63
|
+
OAUTH2GRANT_SET: `${prefix} oauth2grant set`,
|
|
64
|
+
POLICY_LIST: `${prefix} policy list`,
|
|
65
|
+
SITECLASSIFICATION_DISABLE: `${prefix} siteclassification disable`,
|
|
66
|
+
SITECLASSIFICATION_ENABLE: `${prefix} siteclassification enable`,
|
|
67
|
+
SITECLASSIFICATION_GET: `${prefix} siteclassification get`,
|
|
68
|
+
SITECLASSIFICATION_SET: `${prefix} siteclassification set`,
|
|
69
|
+
SP_ADD: `${prefix} sp add`,
|
|
70
|
+
SP_GET: `${prefix} sp get`,
|
|
71
|
+
SP_LIST: `${prefix} sp list`,
|
|
72
|
+
USER_ADD: `${prefix} user add`,
|
|
73
|
+
USER_GET: `${prefix} user get`,
|
|
74
|
+
USER_GUEST_ADD: `${prefix} user guest add`,
|
|
75
|
+
USER_HIBP: `${prefix} user hibp`,
|
|
76
|
+
USER_LICENSE_ADD: `${prefix} user license add`,
|
|
77
|
+
USER_LICENSE_LIST: `${prefix} user license list`,
|
|
78
|
+
USER_LICENSE_REMOVE: `${prefix} user license remove`,
|
|
79
|
+
USER_LIST: `${prefix} user list`,
|
|
80
|
+
USER_PASSWORD_VALIDATE: `${prefix} user password validate`,
|
|
81
|
+
USER_RECYCLEBINITEM_CLEAR: `${prefix} user recyclebinitem clear`,
|
|
82
|
+
USER_RECYCLEBINITEM_LIST: `${prefix} user recyclebinitem list`,
|
|
83
|
+
USER_RECYCLEBINITEM_REMOVE: `${prefix} user recyclebinitem remove`,
|
|
84
|
+
USER_REMOVE: `${prefix} user remove`,
|
|
85
|
+
USER_RECYCLEBINITEM_RESTORE: `${prefix} user recyclebinitem restore`,
|
|
86
|
+
USER_SET: `${prefix} user set`,
|
|
87
|
+
USER_SIGNIN_LIST: `${prefix} user signin list`
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -228,7 +228,8 @@ class ExternalConnectionDoctorCommand extends GraphCommand {
|
|
|
228
228
|
const requestOptions = {
|
|
229
229
|
url: `${this.resource}/v1.0/external/connections/${args.options.id}/schema`,
|
|
230
230
|
headers: {
|
|
231
|
-
accept: 'application/json;odata.metadata=none'
|
|
231
|
+
accept: 'application/json;odata.metadata=none',
|
|
232
|
+
prefer: 'include-unknown-enum-members'
|
|
232
233
|
},
|
|
233
234
|
responseType: 'json'
|
|
234
235
|
};
|
|
@@ -0,0 +1,69 @@
|
|
|
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 _ExternalConnectionUrlToItemResolverAddCommand_instances, _ExternalConnectionUrlToItemResolverAddCommand_initOptions;
|
|
7
|
+
import request from '../../../../request.js';
|
|
8
|
+
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
|
+
import commands from '../../commands.js';
|
|
10
|
+
class ExternalConnectionUrlToItemResolverAddCommand extends GraphCommand {
|
|
11
|
+
get name() {
|
|
12
|
+
return commands.CONNECTION_URLTOITEMRESOLVER_ADD;
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Adds a URL to item resolver to an external connection';
|
|
16
|
+
}
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
_ExternalConnectionUrlToItemResolverAddCommand_instances.add(this);
|
|
20
|
+
__classPrivateFieldGet(this, _ExternalConnectionUrlToItemResolverAddCommand_instances, "m", _ExternalConnectionUrlToItemResolverAddCommand_initOptions).call(this);
|
|
21
|
+
}
|
|
22
|
+
async commandAction(logger, args) {
|
|
23
|
+
const baseUrls = args.options.baseUrls.split(',').map(b => b.trim());
|
|
24
|
+
const itemIdResolver = {
|
|
25
|
+
itemId: args.options.itemId,
|
|
26
|
+
priority: args.options.priority,
|
|
27
|
+
urlMatchInfo: {
|
|
28
|
+
baseUrls: baseUrls,
|
|
29
|
+
urlPattern: args.options.urlPattern
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
// not a part of the type definition, but required by the API
|
|
33
|
+
itemIdResolver['@odata.type'] = '#microsoft.graph.externalConnectors.itemIdResolver';
|
|
34
|
+
const requestOptions = {
|
|
35
|
+
url: `${this.resource}/v1.0/external/connections/${args.options.externalConnectionId}`,
|
|
36
|
+
headers: {
|
|
37
|
+
accept: 'application/json;odata.metadata=none',
|
|
38
|
+
'content-type': 'application/json'
|
|
39
|
+
},
|
|
40
|
+
responseType: 'json',
|
|
41
|
+
data: {
|
|
42
|
+
activitySettings: {
|
|
43
|
+
urlToItemResolvers: [itemIdResolver]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
try {
|
|
48
|
+
await request.patch(requestOptions);
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
this.handleRejectedODataJsonPromise(err);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
_ExternalConnectionUrlToItemResolverAddCommand_instances = new WeakSet(), _ExternalConnectionUrlToItemResolverAddCommand_initOptions = function _ExternalConnectionUrlToItemResolverAddCommand_initOptions() {
|
|
56
|
+
this.options.unshift({
|
|
57
|
+
option: '-c, --externalConnectionId <externalConnectionId>'
|
|
58
|
+
}, {
|
|
59
|
+
option: '--baseUrls <baseUrls>'
|
|
60
|
+
}, {
|
|
61
|
+
option: '--urlPattern <urlPattern>'
|
|
62
|
+
}, {
|
|
63
|
+
option: '-i, --itemId <itemId>'
|
|
64
|
+
}, {
|
|
65
|
+
option: '-p, --priority <priority>'
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
export default new ExternalConnectionUrlToItemResolverAddCommand();
|
|
69
|
+
//# sourceMappingURL=connection-urltoitemresolver-add.js.map
|
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
CONNECTION_LIST: `${prefix} connection list`,
|
|
8
8
|
CONNECTION_REMOVE: `${prefix} connection remove`,
|
|
9
9
|
CONNECTION_SCHEMA_ADD: `${prefix} connection schema add`,
|
|
10
|
+
CONNECTION_URLTOITEMRESOLVER_ADD: `${prefix} connection urltoitemresolver add`,
|
|
10
11
|
EXTERNALCONNECTION_ADD: `${searchPrefix} externalconnection add`,
|
|
11
12
|
EXTERNALCONNECTION_GET: `${searchPrefix} externalconnection get`,
|
|
12
13
|
EXTERNALCONNECTION_LIST: `${searchPrefix} externalconnection list`,
|
|
@@ -0,0 +1,151 @@
|
|
|
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 _FileCopyCommand_instances, _FileCopyCommand_initTelemetry, _FileCopyCommand_initOptions, _FileCopyCommand_initValidators;
|
|
7
|
+
import request from '../../../request.js';
|
|
8
|
+
import { urlUtil } from '../../../utils/urlUtil.js';
|
|
9
|
+
import { spo } from '../../../utils/spo.js';
|
|
10
|
+
import { validation } from '../../../utils/validation.js';
|
|
11
|
+
import GraphCommand from '../../base/GraphCommand.js';
|
|
12
|
+
import commands from '../commands.js';
|
|
13
|
+
class FileCopyCommand extends GraphCommand {
|
|
14
|
+
get name() {
|
|
15
|
+
return commands.COPY;
|
|
16
|
+
}
|
|
17
|
+
get description() {
|
|
18
|
+
return 'Copies a file to another location using the Microsoft Graph';
|
|
19
|
+
}
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
_FileCopyCommand_instances.add(this);
|
|
23
|
+
this.nameConflictBehaviorOptions = ['fail', 'replace', 'rename'];
|
|
24
|
+
__classPrivateFieldGet(this, _FileCopyCommand_instances, "m", _FileCopyCommand_initTelemetry).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _FileCopyCommand_instances, "m", _FileCopyCommand_initOptions).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _FileCopyCommand_instances, "m", _FileCopyCommand_initValidators).call(this);
|
|
27
|
+
}
|
|
28
|
+
async commandAction(logger, args) {
|
|
29
|
+
try {
|
|
30
|
+
const { webUrl, sourceUrl, targetUrl, newName, verbose } = args.options;
|
|
31
|
+
const sourcePath = this.getAbsoluteUrl(webUrl, sourceUrl);
|
|
32
|
+
const destinationPath = this.getAbsoluteUrl(webUrl, targetUrl);
|
|
33
|
+
if (this.verbose) {
|
|
34
|
+
logger.logToStderr(`Copying file '${sourcePath}' to '${destinationPath}'...`);
|
|
35
|
+
}
|
|
36
|
+
const copyUrl = await this.getCopyUrl(args.options, sourcePath, logger);
|
|
37
|
+
const { targetDriveId, targetItemId } = await this.getTargetDriveAndItemId(webUrl, targetUrl, logger, verbose);
|
|
38
|
+
const requestOptions = {
|
|
39
|
+
url: copyUrl,
|
|
40
|
+
headers: {
|
|
41
|
+
accept: 'application/json;odata.metadata=none'
|
|
42
|
+
},
|
|
43
|
+
responseType: 'json',
|
|
44
|
+
data: {
|
|
45
|
+
parentReference: {
|
|
46
|
+
driveId: targetDriveId,
|
|
47
|
+
id: targetItemId
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
if (newName) {
|
|
52
|
+
const sourceFileName = sourcePath.substring(sourcePath.lastIndexOf('/') + 1);
|
|
53
|
+
const sourceFileExtension = sourceFileName.includes('.') ? sourceFileName.substring(sourceFileName.lastIndexOf('.')) : '';
|
|
54
|
+
const newNameExtension = newName.includes('.') ? newName.substring(newName.lastIndexOf('.')) : '';
|
|
55
|
+
requestOptions.data.name = newNameExtension ? `${newName.replace(newNameExtension, "")}${sourceFileExtension}` : `${newName}${sourceFileExtension}`;
|
|
56
|
+
}
|
|
57
|
+
await request.post(requestOptions);
|
|
58
|
+
}
|
|
59
|
+
catch (err) {
|
|
60
|
+
this.handleRejectedODataJsonPromise(err);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async getCopyUrl(options, sourcePath, logger) {
|
|
64
|
+
const { webUrl, sourceUrl, verbose, nameConflictBehavior } = options;
|
|
65
|
+
const folderUrl = new URL(sourcePath);
|
|
66
|
+
const siteId = await spo.getSiteId(webUrl, logger, verbose);
|
|
67
|
+
const drive = await this.getDocumentLibrary(siteId, folderUrl, sourceUrl, logger);
|
|
68
|
+
const itemId = await this.getStartingFolderId(drive, folderUrl, logger);
|
|
69
|
+
const queryParameters = nameConflictBehavior && nameConflictBehavior !== 'fail'
|
|
70
|
+
? `@microsoft.graph.conflictBehavior=${nameConflictBehavior}`
|
|
71
|
+
: '';
|
|
72
|
+
const copyUrl = `${this.resource}/v1.0/sites/${siteId}/drives/${drive.id}/items/${itemId}/copy${queryParameters ? `?${queryParameters}` : ''}`;
|
|
73
|
+
return copyUrl;
|
|
74
|
+
}
|
|
75
|
+
async getTargetDriveAndItemId(webUrl, targetUrl, logger, verbose) {
|
|
76
|
+
const targetSiteUrl = urlUtil.getTargetSiteAbsoluteUrl(webUrl, targetUrl);
|
|
77
|
+
const targetSiteId = await spo.getSiteId(targetSiteUrl, logger, verbose);
|
|
78
|
+
const targetFolderUrl = new URL(this.getAbsoluteUrl(targetSiteUrl, targetUrl));
|
|
79
|
+
const targetDrive = await this.getDocumentLibrary(targetSiteId, targetFolderUrl, targetUrl, logger);
|
|
80
|
+
const targetDriveId = targetDrive.id;
|
|
81
|
+
const targetItemId = await this.getStartingFolderId(targetDrive, targetFolderUrl, logger);
|
|
82
|
+
return { targetDriveId, targetItemId };
|
|
83
|
+
}
|
|
84
|
+
async getDocumentLibrary(siteId, folderUrl, folderUrlFromUser, logger) {
|
|
85
|
+
if (this.verbose) {
|
|
86
|
+
logger.logToStderr(`Getting document library...`);
|
|
87
|
+
}
|
|
88
|
+
const requestOptions = {
|
|
89
|
+
url: `${this.resource}/v1.0/sites/${siteId}/drives?$select=webUrl,id`,
|
|
90
|
+
headers: {
|
|
91
|
+
accept: 'application/json;odata.metadata=none'
|
|
92
|
+
},
|
|
93
|
+
responseType: 'json'
|
|
94
|
+
};
|
|
95
|
+
const drives = await request.get(requestOptions);
|
|
96
|
+
const lowerCaseFolderUrl = folderUrl.href.toLowerCase();
|
|
97
|
+
const drive = drives.value
|
|
98
|
+
.sort((a, b) => b.webUrl.localeCompare(a.webUrl))
|
|
99
|
+
.find((d) => {
|
|
100
|
+
const driveUrl = d.webUrl.toLowerCase();
|
|
101
|
+
// ensure that the drive url is a prefix of the folder url
|
|
102
|
+
return lowerCaseFolderUrl.startsWith(driveUrl) &&
|
|
103
|
+
(driveUrl.length === lowerCaseFolderUrl.length ||
|
|
104
|
+
lowerCaseFolderUrl[driveUrl.length] === '/');
|
|
105
|
+
});
|
|
106
|
+
if (!drive) {
|
|
107
|
+
throw `Document library '${folderUrlFromUser}' not found`;
|
|
108
|
+
}
|
|
109
|
+
return drive;
|
|
110
|
+
}
|
|
111
|
+
async getStartingFolderId(documentLibrary, folderUrl, logger) {
|
|
112
|
+
if (this.verbose) {
|
|
113
|
+
logger.logToStderr(`Getting starting folder id...`);
|
|
114
|
+
}
|
|
115
|
+
const documentLibraryRelativeFolderUrl = folderUrl.href.replace(new RegExp(`${documentLibrary.webUrl}`, 'i'), '').replace(/\/+$/, '');
|
|
116
|
+
const requestOptions = {
|
|
117
|
+
url: `${this.resource}/v1.0/drives/${documentLibrary.id}/root${documentLibraryRelativeFolderUrl ? `:${documentLibraryRelativeFolderUrl}` : ''}?$select=id`,
|
|
118
|
+
headers: {
|
|
119
|
+
accept: 'application/json;odata.metadata=none'
|
|
120
|
+
},
|
|
121
|
+
responseType: 'json'
|
|
122
|
+
};
|
|
123
|
+
const folder = await request.get(requestOptions);
|
|
124
|
+
return folder?.id;
|
|
125
|
+
}
|
|
126
|
+
getAbsoluteUrl(webUrl, url) {
|
|
127
|
+
return url.startsWith('https://') ? url : urlUtil.getAbsoluteUrl(webUrl, url);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
_FileCopyCommand_instances = new WeakSet(), _FileCopyCommand_initTelemetry = function _FileCopyCommand_initTelemetry() {
|
|
131
|
+
this.telemetry.push((args) => {
|
|
132
|
+
Object.assign(this.telemetryProperties, {
|
|
133
|
+
webUrl: typeof args.options.webUrl !== 'undefined',
|
|
134
|
+
sourceUrl: typeof args.options.sourceUrl !== 'undefined',
|
|
135
|
+
targetUrl: typeof args.options.targetUrl !== 'undefined',
|
|
136
|
+
newName: typeof args.options.newName !== 'undefined',
|
|
137
|
+
nameConflictBehavior: typeof args.options.nameConflictBehavior !== 'undefined'
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}, _FileCopyCommand_initOptions = function _FileCopyCommand_initOptions() {
|
|
141
|
+
this.options.unshift({ option: '-u, --webUrl <webUrl>' }, { option: '-s, --sourceUrl <sourceUrl>' }, { option: '-t, --targetUrl <targetUrl>' }, { option: '--newName [newName]' }, { option: '--nameConflictBehavior [nameConflictBehavior]', autocomplete: this.nameConflictBehaviorOptions });
|
|
142
|
+
}, _FileCopyCommand_initValidators = function _FileCopyCommand_initValidators() {
|
|
143
|
+
this.validators.push(async (args) => {
|
|
144
|
+
if (args.options.nameConflictBehavior && this.nameConflictBehaviorOptions.indexOf(args.options.nameConflictBehavior) === -1) {
|
|
145
|
+
return `${args.options.nameConflictBehavior} is not a valid nameConflictBehavior value. Allowed values: ${this.nameConflictBehaviorOptions.join(', ')}.`;
|
|
146
|
+
}
|
|
147
|
+
return validation.isValidSharePointUrl(args.options.webUrl);
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
export default new FileCopyCommand();
|
|
151
|
+
//# sourceMappingURL=file-copy.js.map
|