@pnp/cli-microsoft365 11.6.0-beta.ab6d130 → 11.6.0
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 +0 -1
- package/.devproxy/api-specs/sharepoint-admin.yaml +40 -0
- package/.devproxy/api-specs/sharepoint.yaml +48 -0
- package/Dockerfile +0 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/cli/cli.js +3 -0
- package/dist/m365/base/PeriodBasedReport.js +1 -1
- package/dist/m365/cli/commands/config/config-set.js +1 -1
- package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +2 -2
- package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +1 -1
- package/dist/m365/entra/commands/group/group-add.js +2 -4
- package/dist/m365/entra/commands/group/group-member-list.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-add.js +4 -8
- package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +5 -0
- package/dist/m365/file/commands/convert/convert-pdf.js +3 -5
- package/dist/m365/file/commands/file-add.js +3 -5
- package/dist/m365/file/commands/file-list.js +1 -2
- package/dist/m365/flow/commands/flow-export.js +1 -2
- package/dist/m365/flow/commands/owner/owner-remove.js +1 -1
- package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +1 -1
- package/dist/m365/outlook/commands/calendargroup/calendargroup-list.js +87 -0
- package/dist/m365/outlook/commands.js +1 -0
- package/dist/m365/planner/commands/task/task-add.js +1 -2
- package/dist/m365/planner/commands/task/task-list.js +1 -1
- package/dist/m365/planner/commands/task/task-set.js +1 -2
- package/dist/m365/pp/commands/environment/environment-list.js +1 -1
- package/dist/m365/spfx/commands/project/project-doctor/rules/DependencyRule.js +1 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003003_CFG_bundles.js +4 -5
- package/dist/m365/spfx/commands/spfx-doctor.js +1 -2
- package/dist/m365/spo/commands/agent/agent-add.js +172 -0
- package/dist/m365/spo/commands/app/app-deploy.js +2 -4
- package/dist/m365/spo/commands/app/app-list.js +2 -4
- package/dist/m365/spo/commands/cdn/cdn-get.js +2 -4
- package/dist/m365/spo/commands/cdn/cdn-origin-add.js +2 -4
- package/dist/m365/spo/commands/cdn/cdn-origin-list.js +2 -4
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +2 -4
- package/dist/m365/spo/commands/cdn/cdn-set.js +2 -3
- package/dist/m365/spo/commands/contenttype/contenttype-set.js +2 -2
- package/dist/m365/spo/commands/field/field-get.js +1 -1
- package/dist/m365/spo/commands/field/field-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/list/list-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-set.js +186 -378
- package/dist/m365/spo/commands/list/list-view-field-add.js +1 -2
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +2 -3
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +1 -1
- package/dist/m365/spo/commands/navigation/navigation-node-get.js +18 -28
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +14 -39
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +1 -2
- package/dist/m365/spo/commands/page/clientsidepages.js +6 -6
- package/dist/m365/spo/commands/page/page-add.js +2 -4
- package/dist/m365/spo/commands/page/page-header-set.js +4 -6
- package/dist/m365/spo/commands/page/page-section-add.js +7 -7
- package/dist/m365/spo/commands/page/page-set.js +6 -12
- package/dist/m365/spo/commands/page/page-text-add.js +1 -2
- package/dist/m365/spo/commands/site/site-accessrequest-setting-set.js +102 -0
- package/dist/m365/spo/commands/site/site-add.js +38 -8
- package/dist/m365/spo/commands/site/site-apppermission-add.js +1 -1
- package/dist/m365/spo/commands/site/site-set.js +1 -1
- package/dist/m365/spo/commands/spo-search.js +1 -1
- package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +1 -1
- package/dist/m365/spo/commands/tenant/tenant-site-get.js +112 -0
- package/dist/m365/spo/commands/term/term-group-add.js +1 -2
- package/dist/m365/spo/commands/term/term-set-add.js +1 -2
- package/dist/m365/spo/commands/theme/theme-apply.js +1 -1
- package/dist/m365/spo/commands/user/user-list.js +1 -3
- package/dist/m365/spo/commands/web/web-add.js +2 -4
- package/dist/m365/spo/commands/web/web-reindex.js +1 -2
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/spp/commands/autofillcolumn/autofillcolumn-set.js +1 -1
- package/dist/m365/viva/commands/engage/engage-role-member-remove.js +83 -0
- package/dist/m365/viva/commands/engage/engage-search.js +1 -1
- package/dist/m365/viva/commands.js +1 -0
- package/dist/utils/accessToken.js +21 -0
- package/dist/utils/brandCenter.js +29 -0
- package/dist/utils/odata.js +1 -2
- package/dist/utils/powerPlatform.js +1 -1
- package/dist/utils/spo.js +2 -2
- package/dist/utils/urlUtil.js +2 -12
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
- package/docs/docs/cmd/app/app-get.mdx +1 -1
- package/docs/docs/cmd/app/app-open.mdx +1 -1
- package/docs/docs/cmd/app/permission/permission-add.mdx +1 -1
- package/docs/docs/cmd/app/permission/permission-list.mdx +1 -1
- package/docs/docs/cmd/booking/business/business-get.mdx +1 -1
- package/docs/docs/cmd/booking/business/business-list.mdx +1 -1
- package/docs/docs/cmd/cli/app/app-add.mdx +1 -1
- package/docs/docs/cmd/cli/app/app-reconsent.mdx +1 -1
- package/docs/docs/cmd/cli/cli-consent.mdx +1 -1
- package/docs/docs/cmd/cli/cli-doctor.mdx +1 -1
- package/docs/docs/cmd/cli/cli-issue.mdx +1 -1
- package/docs/docs/cmd/cli/completion/completion-clink-update.mdx +1 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-setup.mdx +1 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-update.mdx +1 -1
- package/docs/docs/cmd/cli/completion/completion-sh-setup.mdx +1 -1
- package/docs/docs/cmd/cli/completion/completion-sh-update.mdx +1 -1
- package/docs/docs/cmd/cli/config/config-get.mdx +2 -2
- package/docs/docs/cmd/cli/config/config-list.mdx +2 -2
- package/docs/docs/cmd/cli/config/config-reset.mdx +2 -2
- package/docs/docs/cmd/cli/config/config-set.mdx +2 -2
- package/docs/docs/cmd/connection/connection-list.mdx +1 -1
- package/docs/docs/cmd/connection/connection-remove.mdx +1 -1
- package/docs/docs/cmd/connection/connection-set.mdx +1 -1
- package/docs/docs/cmd/connection/connection-use.mdx +1 -1
- package/docs/docs/cmd/context/context-init.mdx +1 -1
- package/docs/docs/cmd/context/context-remove.mdx +1 -1
- package/docs/docs/cmd/context/option/option-list.mdx +1 -1
- package/docs/docs/cmd/context/option/option-remove.mdx +1 -1
- package/docs/docs/cmd/context/option/option-set.mdx +1 -1
- package/docs/docs/cmd/docs.mdx +1 -1
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-add.mdx +1 -1
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-get.mdx +1 -1
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-list.mdx +1 -1
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +1 -1
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-get.mdx +1 -1
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-list.mdx +1 -1
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-remove.mdx +1 -1
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-remove.mdx +1 -1
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/entra/app/app-add.mdx +1 -1
- package/docs/docs/cmd/entra/app/app-get.mdx +1 -1
- package/docs/docs/cmd/entra/app/app-list.mdx +1 -1
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +1 -1
- package/docs/docs/cmd/entra/app/app-permission-list.mdx +1 -1
- package/docs/docs/cmd/entra/app/app-permission-remove.mdx +1 -1
- package/docs/docs/cmd/entra/app/app-remove.mdx +1 -1
- package/docs/docs/cmd/entra/app/app-role-add.mdx +22 -1
- package/docs/docs/cmd/entra/app/app-role-list.mdx +21 -2
- package/docs/docs/cmd/entra/app/app-role-remove.mdx +23 -2
- package/docs/docs/cmd/entra/app/app-set.mdx +1 -1
- package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +1 -1
- package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +1 -1
- package/docs/docs/cmd/entra/approleassignment/approleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +1 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +1 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +1 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-add.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-get.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-list.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-member-add.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-member-list.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-member-remove.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-member-set.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-remove.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-set.mdx +1 -1
- package/docs/docs/cmd/entra/groupsetting/groupsetting-add.mdx +1 -1
- package/docs/docs/cmd/entra/groupsetting/groupsetting-get.mdx +1 -1
- package/docs/docs/cmd/entra/groupsetting/groupsetting-list.mdx +1 -1
- package/docs/docs/cmd/entra/groupsetting/groupsetting-remove.mdx +1 -1
- package/docs/docs/cmd/entra/groupsetting/groupsetting-set.mdx +1 -1
- package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-get.mdx +1 -1
- package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-list.mdx +1 -1
- package/docs/docs/cmd/entra/license/license-list.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-add.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-get.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-list.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-clear.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-remove.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-restore.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-renew.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-report-activitycounts.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-report-activitydetail.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-report-activityfilecounts.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-set.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +1 -1
- package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +1 -1
- package/docs/docs/cmd/entra/multitenant/multitenant-get.mdx +1 -1
- package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +1 -1
- package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +1 -1
- package/docs/docs/cmd/entra/organization/organization-list.mdx +1 -1
- package/docs/docs/cmd/entra/organization/organization-set.mdx +1 -1
- package/docs/docs/cmd/entra/pim/pim-role-assignment-add.mdx +1 -1
- package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +1 -1
- package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +1 -1
- package/docs/docs/cmd/entra/pim/pim-role-assignment-remove.mdx +1 -1
- package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +1 -1
- package/docs/docs/cmd/entra/policy/policy-list.mdx +20 -1
- package/docs/docs/cmd/entra/resourcenamespace/resourcenamespace-list.mdx +20 -1
- package/docs/docs/cmd/entra/roleassignment/roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/entra/roledefinition/roledefinition-add.mdx +1 -1
- package/docs/docs/cmd/entra/roledefinition/roledefinition-get.mdx +1 -1
- package/docs/docs/cmd/entra/roledefinition/roledefinition-list.mdx +1 -1
- package/docs/docs/cmd/entra/roledefinition/roledefinition-remove.mdx +1 -1
- package/docs/docs/cmd/entra/roledefinition/roledefinition-set.mdx +1 -1
- package/docs/docs/cmd/entra/rolepermission/rolepermission-list.mdx +1 -1
- package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +1 -1
- package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +1 -1
- package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +1 -1
- package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-add.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-get.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-groupmembership-list.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-guest-add.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-hibp.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-license-add.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-license-list.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-license-remove.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-list.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-password-validate.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-remove.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-session-revoke.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-set.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-signin-list.mdx +1 -1
- package/docs/docs/cmd/exo/approleassignment/approleassignment-add.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-add.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-doctor.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-get.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-list.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-remove.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-schema-add.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +1 -1
- package/docs/docs/cmd/external/item/item-add.mdx +1 -1
- package/docs/docs/cmd/file/convert/convert-pdf.mdx +1 -1
- package/docs/docs/cmd/file/file-add.mdx +1 -1
- package/docs/docs/cmd/file/file-copy.mdx +1 -1
- package/docs/docs/cmd/file/file-list.mdx +1 -1
- package/docs/docs/cmd/file/file-move.mdx +1 -1
- package/docs/docs/cmd/flow/environment/environment-get.mdx +1 -1
- package/docs/docs/cmd/flow/environment/environment-list.mdx +1 -1
- package/docs/docs/cmd/flow/flow-disable.mdx +1 -1
- package/docs/docs/cmd/flow/flow-enable.mdx +1 -1
- package/docs/docs/cmd/flow/flow-export.mdx +1 -1
- package/docs/docs/cmd/flow/flow-get.mdx +1 -1
- package/docs/docs/cmd/flow/flow-list.mdx +1 -1
- package/docs/docs/cmd/flow/flow-remove.mdx +1 -1
- package/docs/docs/cmd/flow/owner/owner-ensure.mdx +1 -1
- package/docs/docs/cmd/flow/owner/owner-list.mdx +1 -1
- package/docs/docs/cmd/flow/owner/owner-remove.mdx +1 -1
- package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-restore.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-cancel.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-list.mdx +1 -1
- package/docs/docs/cmd/flow/run/run-resubmit.mdx +1 -1
- package/docs/docs/cmd/graph/changelog/changelog-list.mdx +1 -1
- package/docs/docs/cmd/graph/directoryextension/directoryextension-add.mdx +1 -1
- package/docs/docs/cmd/graph/directoryextension/directoryextension-get.mdx +1 -1
- package/docs/docs/cmd/graph/directoryextension/directoryextension-list.mdx +1 -1
- package/docs/docs/cmd/graph/directoryextension/directoryextension-remove.mdx +1 -1
- package/docs/docs/cmd/graph/openextension/openextension-add.mdx +1 -1
- package/docs/docs/cmd/graph/openextension/openextension-get.mdx +1 -1
- package/docs/docs/cmd/graph/openextension/openextension-list.mdx +1 -1
- package/docs/docs/cmd/graph/openextension/openextension-remove.mdx +1 -1
- package/docs/docs/cmd/graph/openextension/openextension-set.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-get.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- package/docs/docs/cmd/graph/subscription/subscription-add.mdx +1 -1
- package/docs/docs/cmd/login.mdx +1 -1
- package/docs/docs/cmd/logout.mdx +1 -1
- package/docs/docs/cmd/onedrive/onedrive-list.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +1 -1
- package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +1 -1
- package/docs/docs/cmd/onenote/notebook/notebook-add.mdx +1 -1
- package/docs/docs/cmd/onenote/notebook/notebook-list.mdx +1 -1
- package/docs/docs/cmd/onenote/page/page-list.mdx +1 -1
- package/docs/docs/cmd/outlook/calendargroup/calendargroup-list.mdx +120 -0
- package/docs/docs/cmd/outlook/mail/mail-searchfolder-add.mdx +1 -1
- package/docs/docs/cmd/outlook/mail/mail-send.mdx +1 -1
- package/docs/docs/cmd/outlook/mailbox/mailbox-settings-get.mdx +1 -1
- package/docs/docs/cmd/outlook/mailbox/mailbox-settings-set.mdx +1 -1
- package/docs/docs/cmd/outlook/message/message-get.mdx +1 -1
- package/docs/docs/cmd/outlook/message/message-list.mdx +1 -1
- package/docs/docs/cmd/outlook/message/message-move.mdx +1 -1
- package/docs/docs/cmd/outlook/message/message-remove.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +1 -1
- package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +1 -1
- package/docs/docs/cmd/outlook/room/room-list.mdx +1 -1
- package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-consent-set.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-export.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-get.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-list.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-owner-set.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-permission-list.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-remove.mdx +1 -1
- package/docs/docs/cmd/pa/connector/connector-export.mdx +1 -1
- package/docs/docs/cmd/pa/connector/connector-list.mdx +1 -1
- package/docs/docs/cmd/pa/environment/environment-get.mdx +1 -1
- package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-add.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-get.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-list.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-set.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-get.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-list.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-remove.mdx +1 -1
- package/docs/docs/cmd/planner/plan/plan-set.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-add.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-get.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-member-add.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-member-get.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-remove.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-get.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-list.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-reference-add.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-reference-list.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-reference-remove.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +1 -1
- package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +1 -1
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +1 -1
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +1 -1
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-remove.mdx +1 -1
- package/docs/docs/cmd/pp/copilot/copilot-get.mdx +1 -1
- package/docs/docs/cmd/pp/copilot/copilot-list.mdx +1 -1
- package/docs/docs/cmd/pp/copilot/copilot-remove.mdx +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.mdx +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
- package/docs/docs/cmd/pp/gateway/gateway-get.mdx +1 -1
- package/docs/docs/cmd/pp/gateway/gateway-list.mdx +1 -1
- package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +1 -1
- package/docs/docs/cmd/pp/managementapp/managementapp-list.mdx +1 -1
- package/docs/docs/cmd/pp/solution/solution-get.mdx +1 -1
- package/docs/docs/cmd/pp/solution/solution-list.mdx +1 -1
- package/docs/docs/cmd/pp/solution/solution-publish.mdx +1 -1
- package/docs/docs/cmd/pp/solution/solution-publisher-add.mdx +1 -1
- package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +1 -1
- package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +1 -1
- package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +1 -1
- package/docs/docs/cmd/pp/solution/solution-remove.mdx +1 -1
- package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +1 -1
- package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +1 -1
- package/docs/docs/cmd/pp/website/website-get.mdx +1 -1
- package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +1 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +1 -1
- package/docs/docs/cmd/purview/threatassessment/threatassessment-add.mdx +1 -1
- package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +1 -1
- package/docs/docs/cmd/purview/threatassessment/threatassessment-list.mdx +1 -1
- package/docs/docs/cmd/request.mdx +1 -1
- package/docs/docs/cmd/search.mdx +1 -1
- package/docs/docs/cmd/setup.mdx +1 -1
- package/docs/docs/cmd/spe/container/container-activate.mdx +1 -1
- package/docs/docs/cmd/spe/container/container-add.mdx +1 -1
- package/docs/docs/cmd/spe/container/container-get.mdx +1 -1
- package/docs/docs/cmd/spe/container/container-list.mdx +1 -1
- package/docs/docs/cmd/spe/container/container-permission-list.mdx +1 -1
- package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/spe/container/container-recyclebinitem-remove.mdx +1 -1
- package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +1 -1
- package/docs/docs/cmd/spe/container/container-remove.mdx +1 -1
- package/docs/docs/cmd/spe/containertype/containertype-add.mdx +1 -1
- package/docs/docs/cmd/spe/containertype/containertype-get.mdx +1 -1
- package/docs/docs/cmd/spe/containertype/containertype-list.mdx +1 -1
- package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +1 -1
- package/docs/docs/cmd/spfx/package/package-generate.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-azuredevops-pipeline-add.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-permissions-grant.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-rename.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/agent/agent-add.mdx +190 -0
- package/docs/docs/cmd/spo/app/app-add.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-deploy.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-get.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-install.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-instance-list.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-list.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-remove.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-retract.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-uninstall.mdx +1 -1
- package/docs/docs/cmd/spo/app/app-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/apppage/apppage-add.mdx +1 -1
- package/docs/docs/cmd/spo/apppage/apppage-set.mdx +1 -1
- package/docs/docs/cmd/spo/brandcenter/brandcenter-settings-list.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-get.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-set.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-get.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-list.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-field-list.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-sync.mdx +1 -1
- package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-get.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-list.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +1 -1
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +1 -1
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +1 -1
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +1 -1
- package/docs/docs/cmd/spo/feature/feature-disable.mdx +1 -1
- package/docs/docs/cmd/spo/feature/feature-enable.mdx +1 -1
- package/docs/docs/cmd/spo/feature/feature-list.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-add.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-get.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-list.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-remove.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-copy.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-move.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-rename.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-keep.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-add.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-move.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-set.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-set.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-add.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-get.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-list.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-member-add.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-member-list.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-remove.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-set.mdx +1 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +1 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-add.mdx +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-get.mdx +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-list.mdx +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-set.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-register.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-set.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.mdx +1 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.mdx +1 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.mdx +1 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-add.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-default-set.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-defaultvalue-clear.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-defaultvalue-get.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-defaultvalue-list.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-defaultvalue-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-defaultvalue-set.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-get.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-list.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-retentionlabel-get.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-set.mdx +20 -2
- package/docs/docs/cmd/spo/list/list-sitescript-get.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-add.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-field-add.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-field-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-field-set.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-get.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-list.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-add.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-get.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-list.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-remove.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-set.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-get.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-set.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-isrecord.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-record-lock.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-record-unlock.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +44 -11
- package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +37 -4
- package/docs/docs/cmd/spo/navigation/navigation-node-remove.mdx +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.mdx +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.mdx +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.mdx +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-add.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-column-get.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-column-list.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-control-get.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-control-list.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-control-remove.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-copy.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-get.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-header-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-list.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-publish.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-remove.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-section-add.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-section-get.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-section-list.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-section-remove.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-template-list.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-text-add.mdx +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-get.mdx +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-list.mdx +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-remove.mdx +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-activitypages.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +1 -1
- package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +1 -1
- package/docs/docs/cmd/spo/roledefinition/roledefinition-add.mdx +1 -1
- package/docs/docs/cmd/spo/roledefinition/roledefinition-get.mdx +1 -1
- package/docs/docs/cmd/spo/roledefinition/roledefinition-list.mdx +1 -1
- package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.mdx +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.mdx +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.mdx +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.mdx +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.mdx +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.mdx +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-accessrequest-setting-set.mdx +77 -0
- package/docs/docs/cmd/spo/site/site-add.mdx +15 -6
- package/docs/docs/cmd/spo/site/site-admin-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-admin-list.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-admin-remove.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-list.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-apppermission-get.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-apppermission-list.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-apppermission-remove.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-archive.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-chrome-set.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-get.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-groupify.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-hubsite-connect.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-hubsite-disconnect.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-list.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-membership-list.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-move.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-remove.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-rename.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-set.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-sharingpermission-set.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-unarchive.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-versionpolicy-get.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-add.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-get.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-list.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-set.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.mdx +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.mdx +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-add.mdx +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-list.mdx +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-remove.mdx +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +1 -1
- package/docs/docs/cmd/spo/spo-get.mdx +1 -1
- package/docs/docs/cmd/spo/spo-search.mdx +1 -1
- package/docs/docs/cmd/spo/spo-set.mdx +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.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-get.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-site-get.mdx +479 -0
- package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-get.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-group-get.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-group-list.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-list.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-set-get.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-set-list.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-apply.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-get.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-list.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-remove.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-set.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-get.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-list.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-remove.mdx +1 -1
- package/docs/docs/cmd/spo/userprofile/userprofile-get.mdx +1 -1
- package/docs/docs/cmd/spo/userprofile/userprofile-set.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-add.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-alert-list.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-alert-remove.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-get.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-installedlanguage-list.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-list.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-reindex.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-remove.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-retentionlabel-list.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-set.mdx +1 -1
- package/docs/docs/cmd/spp/autofillcolumn/autofillcolumn-set.mdx +1 -1
- package/docs/docs/cmd/spp/contentcenter/contentcenter-list.mdx +1 -1
- package/docs/docs/cmd/spp/model/model-apply.mdx +1 -1
- package/docs/docs/cmd/spp/model/model-get.mdx +1 -1
- package/docs/docs/cmd/spp/model/model-list.mdx +1 -1
- package/docs/docs/cmd/spp/model/model-remove.mdx +1 -1
- package/docs/docs/cmd/status.mdx +1 -1
- package/docs/docs/cmd/teams/app/app-install.mdx +1 -1
- package/docs/docs/cmd/teams/app/app-list.mdx +1 -1
- package/docs/docs/cmd/teams/app/app-publish.mdx +1 -1
- package/docs/docs/cmd/teams/app/app-remove.mdx +1 -1
- package/docs/docs/cmd/teams/app/app-uninstall.mdx +1 -1
- package/docs/docs/cmd/teams/app/app-update.mdx +1 -1
- package/docs/docs/cmd/teams/cache/cache-remove.mdx +1 -1
- package/docs/docs/cmd/teams/callrecord/callrecord-get.mdx +1 -1
- package/docs/docs/cmd/teams/callrecord/callrecord-list.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-add.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-get.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-list.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-add.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-list.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-set.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-remove.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-set.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-get.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-list.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-member-add.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-member-list.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-message-list.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-message-send.mdx +1 -1
- package/docs/docs/cmd/teams/funsettings/funsettings-list.mdx +1 -1
- package/docs/docs/cmd/teams/funsettings/funsettings-set.mdx +1 -1
- package/docs/docs/cmd/teams/guestsettings/guestsettings-list.mdx +1 -1
- package/docs/docs/cmd/teams/guestsettings/guestsettings-set.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-add.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-attendancereport-get.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-attendancereport-list.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-get.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-list.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-transcript-get.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +1 -1
- package/docs/docs/cmd/teams/membersettings/membersettings-list.mdx +1 -1
- package/docs/docs/cmd/teams/membersettings/membersettings-set.mdx +1 -1
- package/docs/docs/cmd/teams/message/message-get.mdx +1 -1
- package/docs/docs/cmd/teams/message/message-list.mdx +1 -1
- package/docs/docs/cmd/teams/message/message-remove.mdx +1 -1
- package/docs/docs/cmd/teams/message/message-reply-list.mdx +1 -1
- package/docs/docs/cmd/teams/message/message-restore.mdx +1 -1
- package/docs/docs/cmd/teams/message/message-send.mdx +1 -1
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.mdx +1 -1
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-pstncalls.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-add.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-get.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-list.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-remove.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-app-list.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-archive.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-clone.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-get.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-list.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-remove.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-set.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-unarchive.mdx +1 -1
- package/docs/docs/cmd/teams/user/user-app-add.mdx +1 -1
- package/docs/docs/cmd/teams/user/user-app-list.mdx +1 -1
- package/docs/docs/cmd/teams/user/user-app-remove.mdx +1 -1
- package/docs/docs/cmd/teams/user/user-app-upgrade.mdx +1 -1
- package/docs/docs/cmd/teams/user/user-list.mdx +1 -1
- package/docs/docs/cmd/tenant/id/id-get.mdx +1 -1
- package/docs/docs/cmd/tenant/info/info-get.mdx +1 -1
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +1 -1
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-get.mdx +1 -1
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-list.mdx +1 -1
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +1 -1
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +1 -1
- package/docs/docs/cmd/tenant/people/people-pronouns-get.mdx +1 -1
- package/docs/docs/cmd/tenant/people/people-pronouns-set.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-office365activationcounts.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-settings-get.mdx +1 -1
- package/docs/docs/cmd/tenant/report/report-settings-set.mdx +1 -1
- package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.mdx +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.mdx +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.mdx +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +1 -1
- package/docs/docs/cmd/todo/list/list-add.mdx +1 -1
- package/docs/docs/cmd/todo/list/list-get.mdx +1 -1
- package/docs/docs/cmd/todo/list/list-list.mdx +1 -1
- package/docs/docs/cmd/todo/list/list-remove.mdx +1 -1
- package/docs/docs/cmd/todo/list/list-set.mdx +1 -1
- package/docs/docs/cmd/todo/task/task-add.mdx +1 -1
- package/docs/docs/cmd/todo/task/task-get.mdx +1 -1
- package/docs/docs/cmd/todo/task/task-list.mdx +1 -1
- package/docs/docs/cmd/todo/task/task-remove.mdx +1 -1
- package/docs/docs/cmd/todo/task/task-set.mdx +1 -1
- package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +1 -1
- package/docs/docs/cmd/version.mdx +1 -1
- package/docs/docs/cmd/viva/connections/connections-app-create.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-community-add.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-community-get.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-community-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-community-remove.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-community-set.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-community-user-add.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-community-user-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-community-user-remove.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-add.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-get.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-like-set.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-network-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-report-activitycounts.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-report-activityusercounts.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-report-activityuserdetail.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-report-deviceusagedistributionusercounts.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-report-deviceusageusercounts.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-report-deviceusageuserdetail.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-report-groupsactivitycounts.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-report-groupsactivitydetail.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-report-groupsactivitygroupcounts.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-role-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-role-member-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-role-member-remove.mdx +71 -0
- package/docs/docs/cmd/viva/engage/engage-search.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-user-get.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-user-list.mdx +1 -1
- package/npm-shrinkwrap.json +289 -249
- package/package.json +8 -11
package/dist/cli/cli.js
CHANGED
|
@@ -26,11 +26,14 @@ const commands = [];
|
|
|
26
26
|
/**
|
|
27
27
|
* Command to execute
|
|
28
28
|
*/
|
|
29
|
+
// eslint-disable-next-line no-unassigned-vars
|
|
29
30
|
let commandToExecute;
|
|
30
31
|
/**
|
|
31
32
|
* Name of the command specified through args
|
|
32
33
|
*/
|
|
34
|
+
// eslint-disable-next-line no-unassigned-vars
|
|
33
35
|
let currentCommandName;
|
|
36
|
+
// eslint-disable-next-line no-unassigned-vars
|
|
34
37
|
let optionsFromArgs;
|
|
35
38
|
const defaultHelpMode = 'options';
|
|
36
39
|
const defaultHelpTarget = 'console';
|
|
@@ -37,7 +37,7 @@ class PeriodBasedReport extends GraphCommand {
|
|
|
37
37
|
this.handleRejectedODataJsonPromise(err);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
let content
|
|
40
|
+
let content;
|
|
41
41
|
const cleanResponse = this.removeEmptyLines(res);
|
|
42
42
|
if (output && output.toLowerCase() === 'json') {
|
|
43
43
|
const reportData = this.getReport(cleanResponse);
|
|
@@ -25,7 +25,7 @@ class CliConfigSetCommand extends AnonymousCommand {
|
|
|
25
25
|
__classPrivateFieldGet(this, _CliConfigSetCommand_instances, "m", _CliConfigSetCommand_initValidators).call(this);
|
|
26
26
|
}
|
|
27
27
|
async commandAction(logger, args) {
|
|
28
|
-
let value
|
|
28
|
+
let value;
|
|
29
29
|
switch (args.options.key) {
|
|
30
30
|
case settingsNames.autoOpenLinksInBrowser:
|
|
31
31
|
case settingsNames.copyDeviceCodeToClipboard:
|
|
@@ -27,8 +27,8 @@ class EntraAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
27
27
|
__classPrivateFieldGet(this, _EntraAppRoleAssignmentAddCommand_instances, "m", _EntraAppRoleAssignmentAddCommand_initOptionSets).call(this);
|
|
28
28
|
}
|
|
29
29
|
async commandAction(logger, args) {
|
|
30
|
-
let objectId
|
|
31
|
-
let queryFilter
|
|
30
|
+
let objectId;
|
|
31
|
+
let queryFilter;
|
|
32
32
|
if (args.options.appId) {
|
|
33
33
|
queryFilter = `$filter=appId eq '${formatting.encodeQueryParameter(args.options.appId)}'`;
|
|
34
34
|
}
|
|
@@ -30,7 +30,7 @@ class EntraAppRoleAssignmentRemoveCommand extends GraphCommand {
|
|
|
30
30
|
const removeAppRoleAssignment = async () => {
|
|
31
31
|
let sp;
|
|
32
32
|
// get the service principal associated with the appId
|
|
33
|
-
let spMatchQuery
|
|
33
|
+
let spMatchQuery;
|
|
34
34
|
if (args.options.appId) {
|
|
35
35
|
spMatchQuery = `appId eq '${formatting.encodeQueryParameter(args.options.appId)}'`;
|
|
36
36
|
}
|
|
@@ -28,8 +28,6 @@ class EntraGroupAddCommand extends GraphCommand {
|
|
|
28
28
|
}
|
|
29
29
|
async commandAction(logger, args) {
|
|
30
30
|
let group;
|
|
31
|
-
let ownerIds = [];
|
|
32
|
-
let memberIds = [];
|
|
33
31
|
try {
|
|
34
32
|
const manifest = this.createRequestBody(args.options);
|
|
35
33
|
const requestOptions = {
|
|
@@ -40,8 +38,8 @@ class EntraGroupAddCommand extends GraphCommand {
|
|
|
40
38
|
responseType: 'json',
|
|
41
39
|
data: manifest
|
|
42
40
|
};
|
|
43
|
-
ownerIds = await this.getUserIds(logger, args.options.ownerIds, args.options.ownerUserNames);
|
|
44
|
-
memberIds = await this.getUserIds(logger, args.options.memberIds, args.options.memberUserNames);
|
|
41
|
+
const ownerIds = await this.getUserIds(logger, args.options.ownerIds, args.options.ownerUserNames);
|
|
42
|
+
const memberIds = await this.getUserIds(logger, args.options.memberIds, args.options.memberUserNames);
|
|
45
43
|
group = await request.post(requestOptions);
|
|
46
44
|
if (ownerIds.length !== 0) {
|
|
47
45
|
await this.addUsers(group.id, 'owners', ownerIds);
|
|
@@ -82,7 +82,7 @@ class EntraGroupMemberListCommand extends GraphCommand {
|
|
|
82
82
|
const expandParam = fieldExpand.length > 0 ? `&$expand=${fieldExpand}` : '';
|
|
83
83
|
const selectParam = allSelectProperties.filter(item => !item.includes('/'));
|
|
84
84
|
const endpoint = `${this.resource}/v1.0/groups/${groupId}/${role}?$select=${selectParam}${expandParam}`;
|
|
85
|
-
let users
|
|
85
|
+
let users;
|
|
86
86
|
if (filter) {
|
|
87
87
|
// While using the filter, we need to specify the ConsistencyLevel header.
|
|
88
88
|
// Can be refactored when the header is no longer necessary.
|
|
@@ -30,8 +30,6 @@ class EntraM365GroupAddCommand extends GraphCommand {
|
|
|
30
30
|
}
|
|
31
31
|
async commandAction(logger, args) {
|
|
32
32
|
let group;
|
|
33
|
-
let ownerIds = [];
|
|
34
|
-
let memberIds = [];
|
|
35
33
|
const resourceBehaviorOptionsCollection = [];
|
|
36
34
|
const resolvedVisibility = args.options.visibility || 'Public';
|
|
37
35
|
if (this.verbose) {
|
|
@@ -69,8 +67,8 @@ class EntraM365GroupAddCommand extends GraphCommand {
|
|
|
69
67
|
}
|
|
70
68
|
};
|
|
71
69
|
try {
|
|
72
|
-
ownerIds = await this.getUserIds(logger, args.options.owners);
|
|
73
|
-
memberIds = await this.getUserIds(logger, args.options.members);
|
|
70
|
+
const ownerIds = await this.getUserIds(logger, args.options.owners);
|
|
71
|
+
const memberIds = await this.getUserIds(logger, args.options.members);
|
|
74
72
|
group = await request.post(requestOptions);
|
|
75
73
|
if (!args.options.logoPath) {
|
|
76
74
|
if (this.debug) {
|
|
@@ -132,9 +130,7 @@ class EntraM365GroupAddCommand extends GraphCommand {
|
|
|
132
130
|
await logger.logToStderr('Retrieving user information.');
|
|
133
131
|
}
|
|
134
132
|
const userArr = users.split(',').map(o => o.trim());
|
|
135
|
-
|
|
136
|
-
let userIds = [];
|
|
137
|
-
promises = userArr.map(user => {
|
|
133
|
+
const promises = userArr.map(user => {
|
|
138
134
|
const requestOptions = {
|
|
139
135
|
url: `${this.resource}/v1.0/users?$filter=userPrincipalName eq '${formatting.encodeQueryParameter(user)}'&$select=id,userPrincipalName`,
|
|
140
136
|
headers: {
|
|
@@ -147,7 +143,7 @@ class EntraM365GroupAddCommand extends GraphCommand {
|
|
|
147
143
|
const usersRes = await Promise.all(promises);
|
|
148
144
|
let userUpns = [];
|
|
149
145
|
userUpns = usersRes.map(res => res.value[0]?.userPrincipalName);
|
|
150
|
-
userIds = usersRes.map(res => res.value[0]?.id);
|
|
146
|
+
const userIds = usersRes.map(res => res.value[0]?.id);
|
|
151
147
|
// Find the members where no graph response was found
|
|
152
148
|
const invalidUsers = userArr.filter(user => !userUpns.some((upn) => upn?.toLowerCase() === user.toLowerCase()));
|
|
153
149
|
if (invalidUsers && invalidUsers.length > 0) {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
1
2
|
import { odata } from '../../../../utils/odata.js';
|
|
2
3
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
3
4
|
import commands from '../../commands.js';
|
|
5
|
+
export const options = globalOptionsZod.strict();
|
|
4
6
|
class EntraUserRecycleBinItemListCommand extends GraphCommand {
|
|
5
7
|
get name() {
|
|
6
8
|
return commands.USER_RECYCLEBINITEM_LIST;
|
|
@@ -8,6 +10,9 @@ class EntraUserRecycleBinItemListCommand extends GraphCommand {
|
|
|
8
10
|
get description() {
|
|
9
11
|
return 'Lists users from the recycle bin in the current tenant';
|
|
10
12
|
}
|
|
13
|
+
get schema() {
|
|
14
|
+
return options;
|
|
15
|
+
}
|
|
11
16
|
defaultProperties() {
|
|
12
17
|
return ['id', 'displayName', 'userPrincipalName'];
|
|
13
18
|
}
|
|
@@ -174,17 +174,15 @@ class FileConvertPdfCommand extends GraphCommand {
|
|
|
174
174
|
return fileGraphUrl;
|
|
175
175
|
}
|
|
176
176
|
const _url = new URL(fileWebUrl);
|
|
177
|
-
let siteId = '';
|
|
178
|
-
let driveRelativeFileUrl = '';
|
|
179
177
|
const siteInfo = await this.getGraphSiteInfoFromFullUrl(_url.hostname, _url.pathname);
|
|
180
|
-
siteId = siteInfo.id;
|
|
178
|
+
const siteId = siteInfo.id;
|
|
181
179
|
let siteRelativeFileUrl = _url.pathname.replace(siteInfo.serverRelativeUrl, '');
|
|
182
180
|
// normalize site-relative URLs for root site collections and root sites
|
|
183
181
|
if (!siteRelativeFileUrl.startsWith('/')) {
|
|
184
182
|
siteRelativeFileUrl = '/' + siteRelativeFileUrl;
|
|
185
183
|
}
|
|
186
184
|
const siteRelativeFileUrlChunks = siteRelativeFileUrl.split('/');
|
|
187
|
-
driveRelativeFileUrl = `/${siteRelativeFileUrlChunks.slice(2).join('/')}`;
|
|
185
|
+
const driveRelativeFileUrl = `/${siteRelativeFileUrlChunks.slice(2).join('/')}`;
|
|
188
186
|
// chunk 0 is empty because the URL starts with /
|
|
189
187
|
const driveId = await this.getDriveId(logger, siteId, siteRelativeFileUrlChunks[1]);
|
|
190
188
|
const graphUrl = `${this.resource}/v1.0/sites/${siteId}/drives/${driveId}/root:${driveRelativeFileUrl}`;
|
|
@@ -224,7 +222,7 @@ class FileConvertPdfCommand extends GraphCommand {
|
|
|
224
222
|
if (currentPath.endsWith('/sites') ||
|
|
225
223
|
currentPath.endsWith('/teams') ||
|
|
226
224
|
currentPath.endsWith('/personal')) {
|
|
227
|
-
return await this.getGraphSiteInfo(hostName, urlChunks,
|
|
225
|
+
return await this.getGraphSiteInfo(hostName, urlChunks, currentChunk + 1, '');
|
|
228
226
|
}
|
|
229
227
|
if (!currentPath.startsWith('/')) {
|
|
230
228
|
currentPath = '/' + currentPath;
|
|
@@ -99,17 +99,15 @@ class FileAddCommand extends GraphCommand {
|
|
|
99
99
|
const _fileWebUrl = new URL(fileWebUrl);
|
|
100
100
|
const _siteUrl = new URL(siteUrl || fileWebUrl);
|
|
101
101
|
const isSiteUrl = typeof siteUrl !== 'undefined';
|
|
102
|
-
let siteId = '';
|
|
103
|
-
let driveRelativeFileUrl = '';
|
|
104
102
|
const siteInfo = await this.getGraphSiteInfoFromFullUrl(_siteUrl.host, _siteUrl.pathname, isSiteUrl);
|
|
105
|
-
siteId = siteInfo.id;
|
|
103
|
+
let siteId = siteInfo.id;
|
|
106
104
|
let siteRelativeFileUrl = _fileWebUrl.pathname.replace(siteInfo.serverRelativeUrl, '');
|
|
107
105
|
// normalize site-relative URLs for root site collections and root sites
|
|
108
106
|
if (!siteRelativeFileUrl.startsWith('/')) {
|
|
109
107
|
siteRelativeFileUrl = '/' + siteRelativeFileUrl;
|
|
110
108
|
}
|
|
111
109
|
const siteRelativeFileUrlChunks = siteRelativeFileUrl.split('/');
|
|
112
|
-
driveRelativeFileUrl = `/${siteRelativeFileUrlChunks.slice(2).join('/')}`;
|
|
110
|
+
let driveRelativeFileUrl = `/${siteRelativeFileUrlChunks.slice(2).join('/')}`;
|
|
113
111
|
// chunk 0 is empty because the URL starts with /
|
|
114
112
|
const driveId = await this.getDriveId(logger, siteId, siteRelativeFileUrlChunks[1]);
|
|
115
113
|
const graphUrl = `${this.resource}/v1.0/sites/${siteId}/drives/${driveId}/root:${driveRelativeFileUrl}`;
|
|
@@ -148,7 +146,7 @@ class FileAddCommand extends GraphCommand {
|
|
|
148
146
|
if (currentPath.endsWith('/sites') ||
|
|
149
147
|
currentPath.endsWith('/teams') ||
|
|
150
148
|
currentPath.endsWith('/personal')) {
|
|
151
|
-
return await this.getGraphSiteInfo(hostName, urlChunks,
|
|
149
|
+
return await this.getGraphSiteInfo(hostName, urlChunks, currentChunk + 1, '');
|
|
152
150
|
}
|
|
153
151
|
if (!currentPath.startsWith('/')) {
|
|
154
152
|
currentPath = '/' + currentPath;
|
|
@@ -38,11 +38,10 @@ class FileListCommand extends GraphCommand {
|
|
|
38
38
|
folderUrlValue = folderUrlValue.slice(0, -1);
|
|
39
39
|
}
|
|
40
40
|
const folderUrl = new URL(folderUrlValue, webUrl);
|
|
41
|
-
let driveId = '';
|
|
42
41
|
try {
|
|
43
42
|
const siteId = await this.getSiteId(args.options.webUrl, logger);
|
|
44
43
|
const drive = await this.getDocumentLibrary(siteId, folderUrl, args.options.folderUrl, logger);
|
|
45
|
-
driveId = drive.id;
|
|
44
|
+
const driveId = drive.id;
|
|
46
45
|
const folderId = await this.getStartingFolderId(drive, folderUrl, logger);
|
|
47
46
|
if (this.verbose) {
|
|
48
47
|
await logger.logToStderr(`Loading folders to get files from...`);
|
|
@@ -27,7 +27,6 @@ class FlowExportCommand extends PowerPlatformCommand {
|
|
|
27
27
|
__classPrivateFieldGet(this, _FlowExportCommand_instances, "m", _FlowExportCommand_initValidators).call(this);
|
|
28
28
|
}
|
|
29
29
|
async commandAction(logger, args) {
|
|
30
|
-
let filenameFromApi = '';
|
|
31
30
|
const formatArgument = args.options.format?.toLowerCase() || '';
|
|
32
31
|
if (this.verbose) {
|
|
33
32
|
await logger.logToStderr(`Retrieving package resources for Microsoft Flow ${args.options.name}...`);
|
|
@@ -99,7 +98,7 @@ class FlowExportCommand extends PowerPlatformCommand {
|
|
|
99
98
|
}
|
|
100
99
|
const downloadFileUrl = formatArgument === 'json' ? '' : res.packageLink.value;
|
|
101
100
|
const filenameRegEx = /([^/]+\.zip)/i;
|
|
102
|
-
filenameFromApi = formatArgument === 'json' ? `${res.properties.displayName}.json` : (filenameRegEx.exec(downloadFileUrl) || ['output.zip'])[0];
|
|
101
|
+
let filenameFromApi = formatArgument === 'json' ? `${res.properties.displayName}.json` : (filenameRegEx.exec(downloadFileUrl) || ['output.zip'])[0];
|
|
103
102
|
// Replace all illegal characters from the file name
|
|
104
103
|
const illegalCharsRegEx = /[\\/:*?"<>|]/g;
|
|
105
104
|
filenameFromApi = filenameFromApi.replace(illegalCharsRegEx, '_');
|
|
@@ -33,7 +33,7 @@ class FlowOwnerRemoveCommand extends PowerAutomateCommand {
|
|
|
33
33
|
await logger.logToStderr(`Removing owner ${args.options.userId || args.options.userName || args.options.groupId || args.options.groupName} from flow ${args.options.flowName} in environment ${args.options.environmentName}`);
|
|
34
34
|
}
|
|
35
35
|
const removeFlowOwner = async () => {
|
|
36
|
-
let idToRemove
|
|
36
|
+
let idToRemove;
|
|
37
37
|
if (args.options.userId) {
|
|
38
38
|
idToRemove = args.options.userId;
|
|
39
39
|
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
3
|
+
import GraphCommand from '../../../base/GraphCommand.js';
|
|
4
|
+
import commands from '../../commands.js';
|
|
5
|
+
import { validation } from '../../../../utils/validation.js';
|
|
6
|
+
import { odata } from '../../../../utils/odata.js';
|
|
7
|
+
import { accessToken } from '../../../../utils/accessToken.js';
|
|
8
|
+
import auth from '../../../../Auth.js';
|
|
9
|
+
export const options = z.strictObject({
|
|
10
|
+
...globalOptionsZod.shape,
|
|
11
|
+
userId: z.string().refine(id => validation.isValidGuid(id), {
|
|
12
|
+
error: e => `'${e.input}' is not a valid GUID.`
|
|
13
|
+
}).optional(),
|
|
14
|
+
userName: z.string().refine(name => validation.isValidUserPrincipalName(name), {
|
|
15
|
+
error: e => `'${e.input}' is not a valid UPN.`
|
|
16
|
+
}).optional()
|
|
17
|
+
});
|
|
18
|
+
class OutlookCalendarGroupListCommand extends GraphCommand {
|
|
19
|
+
get name() {
|
|
20
|
+
return commands.CALENDARGROUP_LIST;
|
|
21
|
+
}
|
|
22
|
+
get description() {
|
|
23
|
+
return 'Retrieves calendar groups for a user';
|
|
24
|
+
}
|
|
25
|
+
get schema() {
|
|
26
|
+
return options;
|
|
27
|
+
}
|
|
28
|
+
getRefinedSchema(schema) {
|
|
29
|
+
return schema
|
|
30
|
+
.refine(options => !(options.userId && options.userName), {
|
|
31
|
+
error: 'Specify either userId or userName, but not both.'
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
defaultProperties() {
|
|
35
|
+
return ['id', 'name'];
|
|
36
|
+
}
|
|
37
|
+
async commandAction(logger, args) {
|
|
38
|
+
try {
|
|
39
|
+
const token = auth.connection.accessTokens[auth.defaultResource].accessToken;
|
|
40
|
+
const isAppOnlyAccessToken = accessToken.isAppOnlyAccessToken(token);
|
|
41
|
+
if (isAppOnlyAccessToken) {
|
|
42
|
+
if (!args.options.userId && !args.options.userName) {
|
|
43
|
+
throw 'When running with application permissions either userId or userName is required.';
|
|
44
|
+
}
|
|
45
|
+
const userIdentifier = args.options.userId ?? args.options.userName;
|
|
46
|
+
if (this.verbose) {
|
|
47
|
+
await logger.logToStderr(`Retrieving calendar groups for user '${userIdentifier}'...`);
|
|
48
|
+
}
|
|
49
|
+
const calendarGroups = await odata.getAllItems(`${this.resource}/v1.0/users('${userIdentifier}')/calendarGroups`);
|
|
50
|
+
await logger.log(calendarGroups);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
if (args.options.userId || args.options.userName) {
|
|
54
|
+
const currentUserId = accessToken.getUserIdFromAccessToken(token);
|
|
55
|
+
const currentUserName = accessToken.getUserNameFromAccessToken(token);
|
|
56
|
+
const isOtherUser = (args.options.userId && args.options.userId !== currentUserId) ||
|
|
57
|
+
(args.options.userName && args.options.userName.toLowerCase() !== currentUserName?.toLowerCase());
|
|
58
|
+
if (isOtherUser) {
|
|
59
|
+
const scopes = accessToken.getScopesFromAccessToken(token);
|
|
60
|
+
const hasSharedScope = scopes.some(s => s === 'Calendars.Read.Shared' || s === 'Calendars.ReadWrite.Shared');
|
|
61
|
+
if (!hasSharedScope) {
|
|
62
|
+
throw `To retrieve calendar groups of other users, the Entra ID application used for authentication must have either the Calendars.Read.Shared or Calendars.ReadWrite.Shared delegated permission assigned.`;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const userIdentifier = args.options.userId ?? args.options.userName;
|
|
66
|
+
if (this.verbose) {
|
|
67
|
+
await logger.logToStderr(`Retrieving calendar groups for user '${userIdentifier}'...`);
|
|
68
|
+
}
|
|
69
|
+
const calendarGroups = await odata.getAllItems(`${this.resource}/v1.0/users('${userIdentifier}')/calendarGroups`);
|
|
70
|
+
await logger.log(calendarGroups);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
if (this.verbose) {
|
|
74
|
+
await logger.logToStderr('Retrieving calendar groups for the signed-in user...');
|
|
75
|
+
}
|
|
76
|
+
const calendarGroups = await odata.getAllItems(`${this.resource}/v1.0/me/calendarGroups`);
|
|
77
|
+
await logger.log(calendarGroups);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch (err) {
|
|
82
|
+
this.handleRejectedODataJsonPromise(err);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export default new OutlookCalendarGroupListCommand();
|
|
87
|
+
//# sourceMappingURL=calendargroup-list.js.map
|
|
@@ -151,7 +151,6 @@ class PlannerTaskAddCommand extends GraphCommand {
|
|
|
151
151
|
// Hitting this section means assignedToUserNames won't be undefined
|
|
152
152
|
const userNames = options.assignedToUserNames;
|
|
153
153
|
const userArr = userNames.split(',').map(o => o.trim());
|
|
154
|
-
let userIds = [];
|
|
155
154
|
const promises = userArr.map(user => {
|
|
156
155
|
const requestOptions = {
|
|
157
156
|
url: `${this.resource}/v1.0/users?$filter=userPrincipalName eq '${formatting.encodeQueryParameter(user)}'&$select=id,userPrincipalName`,
|
|
@@ -165,7 +164,7 @@ class PlannerTaskAddCommand extends GraphCommand {
|
|
|
165
164
|
const usersRes = await Promise.all(promises);
|
|
166
165
|
let userUpns = [];
|
|
167
166
|
userUpns = usersRes.map(res => res.value[0]?.userPrincipalName);
|
|
168
|
-
userIds = usersRes.map(res => res.value[0]?.id);
|
|
167
|
+
const userIds = usersRes.map(res => res.value[0]?.id);
|
|
169
168
|
// Find the members where no graph response was found
|
|
170
169
|
const invalidUsers = userArr.filter(user => !userUpns.some((upn) => upn?.toLowerCase() === user.toLowerCase()));
|
|
171
170
|
if (invalidUsers && invalidUsers.length > 0) {
|
|
@@ -35,7 +35,7 @@ class PlannerTaskListCommand extends GraphCommand {
|
|
|
35
35
|
let bucketId = args.options.bucketId;
|
|
36
36
|
const planTitle = args.options.planTitle;
|
|
37
37
|
let planId = args.options.planId;
|
|
38
|
-
let taskItems
|
|
38
|
+
let taskItems;
|
|
39
39
|
try {
|
|
40
40
|
if (bucketId || bucketName) {
|
|
41
41
|
bucketId = await this.getBucketId(args);
|
|
@@ -124,7 +124,6 @@ class PlannerTaskSetCommand extends GraphCommand {
|
|
|
124
124
|
// Hitting this section means assignedToUserNames won't be undefined
|
|
125
125
|
const userNames = options.assignedToUserNames;
|
|
126
126
|
const userArr = userNames.split(',').map(o => o.trim());
|
|
127
|
-
let userIds = [];
|
|
128
127
|
const promises = userArr.map(user => {
|
|
129
128
|
const requestOptions = {
|
|
130
129
|
url: `${this.resource}/v1.0/users?$filter=userPrincipalName eq '${formatting.encodeQueryParameter(user)}'&$select=id,userPrincipalName`,
|
|
@@ -138,7 +137,7 @@ class PlannerTaskSetCommand extends GraphCommand {
|
|
|
138
137
|
const usersRes = await Promise.all(promises);
|
|
139
138
|
let userUpns = [];
|
|
140
139
|
userUpns = usersRes.map(res => res.value[0]?.userPrincipalName);
|
|
141
|
-
userIds = usersRes.map(res => res.value[0]?.id);
|
|
140
|
+
const userIds = usersRes.map(res => res.value[0]?.id);
|
|
142
141
|
// Find the members where no graph response was found
|
|
143
142
|
const invalidUsers = userArr.filter(user => !userUpns.some((upn) => upn?.toLowerCase() === user.toLowerCase()));
|
|
144
143
|
if (invalidUsers && invalidUsers.length > 0) {
|
|
@@ -24,7 +24,7 @@ class PpEnvironmentListCommand extends PowerPlatformCommand {
|
|
|
24
24
|
if (this.verbose) {
|
|
25
25
|
await logger.logToStderr(`Retrieving list of Microsoft Power Platform environments...`);
|
|
26
26
|
}
|
|
27
|
-
let url
|
|
27
|
+
let url;
|
|
28
28
|
if (args.options.asAdmin) {
|
|
29
29
|
url = `${this.resource}/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments`;
|
|
30
30
|
}
|
|
@@ -36,12 +36,11 @@ export class DependencyRule extends JsonRule {
|
|
|
36
36
|
// if the project has no dependencies, then we assume the package is missing
|
|
37
37
|
let packageNotFound = (this.isDevDep && !project.packageJson.devDependencies) ||
|
|
38
38
|
(!this.isDevDep && !project.packageJson.dependencies);
|
|
39
|
-
let packageVersionFromProject = undefined;
|
|
40
39
|
let minSemVer = null;
|
|
41
40
|
if (!packageNotFound) {
|
|
42
41
|
// try to get the current version of the dependency installed in the
|
|
43
42
|
// project. If not possible, we assume the dependency is missing
|
|
44
|
-
packageVersionFromProject = this.isDevDep ? project.packageJson.devDependencies[this.packageName] : project.packageJson.dependencies[this.packageName];
|
|
43
|
+
const packageVersionFromProject = this.isDevDep ? project.packageJson.devDependencies[this.packageName] : project.packageJson.dependencies[this.packageName];
|
|
45
44
|
if (!packageVersionFromProject) {
|
|
46
45
|
packageNotFound = true;
|
|
47
46
|
}
|
|
@@ -31,8 +31,8 @@ export class FN003003_CFG_bundles extends JsonRule {
|
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
const resolution = { bundles: {} };
|
|
34
|
-
entries.forEach((e
|
|
35
|
-
resolution.bundles[this.tryGetBundleName(e.entry
|
|
34
|
+
entries.forEach((e) => {
|
|
35
|
+
resolution.bundles[this.tryGetBundleName(e.entry)] = {
|
|
36
36
|
components: [{
|
|
37
37
|
entrypoint: e.entry,
|
|
38
38
|
manifest: e.manifest
|
|
@@ -50,9 +50,8 @@ export class FN003003_CFG_bundles extends JsonRule {
|
|
|
50
50
|
* Smart guess on the bundle name.
|
|
51
51
|
* @param entry the entry value
|
|
52
52
|
*/
|
|
53
|
-
tryGetBundleName(entry
|
|
54
|
-
let name =
|
|
55
|
-
name = entry.substring(entry.lastIndexOf('/') + 1, entry.length);
|
|
53
|
+
tryGetBundleName(entry) {
|
|
54
|
+
let name = entry.substring(entry.lastIndexOf('/') + 1, entry.length);
|
|
56
55
|
name = name.replace('.js', '');
|
|
57
56
|
name = name.replace(/([a-z](?=[A-Z]))/g, '$1-');
|
|
58
57
|
name = name.toLowerCase();
|
|
@@ -684,10 +684,9 @@ class SpfxDoctorCommand extends BaseProjectCommand {
|
|
|
684
684
|
await this.logMessage('CLI for Microsoft 365 SharePoint Framework doctor');
|
|
685
685
|
await this.logMessage('Verifying configuration of your system for working with the SharePoint Framework');
|
|
686
686
|
await this.logMessage(' ');
|
|
687
|
-
let spfxVersion = '';
|
|
688
687
|
let prerequisites;
|
|
689
688
|
try {
|
|
690
|
-
spfxVersion = args.options.spfxVersion ?? await this.getSharePointFrameworkVersion();
|
|
689
|
+
const spfxVersion = args.options.spfxVersion ?? await this.getSharePointFrameworkVersion();
|
|
691
690
|
if (!spfxVersion) {
|
|
692
691
|
await this.logMessage(formatting.getStatus(CheckStatus.Failure, `SharePoint Framework`));
|
|
693
692
|
this.resultsObject.push({
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
4
|
+
import request from '../../../../request.js';
|
|
5
|
+
import { validation } from '../../../../utils/validation.js';
|
|
6
|
+
import SpoCommand from '../../../base/SpoCommand.js';
|
|
7
|
+
import commands from '../../commands.js';
|
|
8
|
+
import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
9
|
+
import { spo } from '../../../../utils/spo.js';
|
|
10
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
11
|
+
const options = z.strictObject({
|
|
12
|
+
...globalOptionsZod.shape,
|
|
13
|
+
webUrl: z.string().alias('u').refine(url => validation.isValidSharePointUrl(url) === true, {
|
|
14
|
+
message: 'Specify a valid SharePoint site URL'
|
|
15
|
+
}),
|
|
16
|
+
name: z.string().alias('n'),
|
|
17
|
+
agentInstructions: z.string().alias('a'),
|
|
18
|
+
welcomeMessage: z.string().alias('w'),
|
|
19
|
+
sourceUrls: z.string().alias('s').refine(urls => {
|
|
20
|
+
const urlArray = urls.split(',').map(url => url.trim());
|
|
21
|
+
return urlArray.every(url => url && validation.isValidSharePointUrl(url) === true);
|
|
22
|
+
}, {
|
|
23
|
+
message: 'All source URLs must be valid SharePoint URLs'
|
|
24
|
+
}),
|
|
25
|
+
description: z.string().alias('d'),
|
|
26
|
+
icon: z.string().optional().alias('i'),
|
|
27
|
+
conversationStarters: z.string().optional().alias('c')
|
|
28
|
+
});
|
|
29
|
+
const urlSourceMap = {
|
|
30
|
+
STS_ListItem_DocumentLibrary: 'File',
|
|
31
|
+
STS_List_DocumentLibrary: 'List',
|
|
32
|
+
STS_Web: 'Site',
|
|
33
|
+
STS_Site: 'Site'
|
|
34
|
+
};
|
|
35
|
+
class SpoAgentAddCommand extends SpoCommand {
|
|
36
|
+
get name() {
|
|
37
|
+
return commands.AGENT_ADD;
|
|
38
|
+
}
|
|
39
|
+
get description() {
|
|
40
|
+
return 'Adds a new SharePoint agent';
|
|
41
|
+
}
|
|
42
|
+
get schema() {
|
|
43
|
+
return options;
|
|
44
|
+
}
|
|
45
|
+
async commandAction(logger, args) {
|
|
46
|
+
try {
|
|
47
|
+
if (this.verbose) {
|
|
48
|
+
await logger.logToStderr(`Adding SharePoint agent '${args.options.name}' to site '${args.options.webUrl}'...`);
|
|
49
|
+
}
|
|
50
|
+
await this.ensureSiteAssetsLibrary(args.options.webUrl, logger);
|
|
51
|
+
await spo.ensureFolder(args.options.webUrl, 'SiteAssets/Copilots', logger, this.verbose);
|
|
52
|
+
const sourceUrls = args.options.sourceUrls.split(',');
|
|
53
|
+
const capabilities = await this.resolveSourceUrls(sourceUrls, args.options.webUrl, logger);
|
|
54
|
+
const conversationStartersArray = args.options.conversationStarters
|
|
55
|
+
? args.options.conversationStarters.split(',').map((starter) => { return { text: starter }; })
|
|
56
|
+
: [];
|
|
57
|
+
const cliM365DefaultIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAIJklEQVR4nO2bCWwUVRjHv9m73RYEBEQR5RLKpSgKqHggtBQRBAQFEY94GzUcVlBDQIkhGhUFJCqCBFDuUzkrN4qCii1GG4UKqFwCgba7OzO7M37fN3a729mFbh+IJO+XkG135r33vf981xtAOTGgnwmSauM43wZc6EgBBZECCiIFFEQKKIgUUBApoCBSQEGkgIJIAQWRAgoiBRRECiiIFFAQKaAgUkBBpICCSAEFkQIKIgUURAooiBRQECmgIFJAQaSAgkgBBZECCiIFFMQuoOMC0NTlAsXjOd9WMK7KX6Q/+TQYhw+B+vkKMFX1fNiUGEUBb7ds8OTmgvOyhvy7cewY6Fs3Q2jRQjBDoaTj3FdfA+7ON4Kz0RUATieU5I2w3eaoXx8yXnol6fL6zp0QnDXT9r1NQMXnA9+9g8DTPQdC8+eCtnEDgGGksNNzQ/rjT4Lnjm5glpSAtmUz7kgHV5u24O3TF5wtsqB03BiASCRujJKRAf7nh4ELBSTMU6cggs6RCEedi8HR4FJrrwn2q9SokXCcTUBt+9fgbJkFjtq12Ru9Pe+E0OxZoO/6IeVNny1cWa1YPOPwYSh5eTQKcdK64HZD5rjXwNWyJbg7dgL9q20Vg9DT/C++BK4WLSBcWADBObMgsndv0jUctWrxZ2jJIgjNm1tl22wJj4woee4Z9L55YAaD7PZ+dO2MV8aA88rGVZ7Ymt0Rl1MddeuBs1nzqLGx9zkbXg7Opk1B8WfYpnG1b8+fav7aCvHYWB20zZuse1q0jBvjRcFJPP3776D09fGnFY9Q/rWJ0kIq2DyQoHwSWjgf1HVrwNd/AOae7uBqdzVkTmjL4ROa+xku9PcZJ6ecQuMCUyaDN7cnOJs0iV6jjQUmvcvX04Y+hCFUx7qA4aNtWA+BaR9hSIb5K3XFctDy8zF8T9ltRREZ9LhYPLgehXSQ54nYxlXGUau2NV+KAjpHtc4am/QqFpHwD9+DtnUrKDVrojc2Yi/0ZGeD4vXhU93DXpAMzy23YnK+BNwdOkBk/z7QUZhI8V5wXtIAnI0bgxs9y5uTC+GiX0DfiNcOHEBPbGh5E84b/uVnayJNA7OsDCAcjl8AC0Ta4Ae4AKhYSIy//rLEqFsX0u4bzOPDu3eDD/OkN6cHuK+9jqs3rWOz9fauvD8a4+lyC3i73gGutu1AwQdqHEqcN9mEVP6NNHkQGexq145/p6TMnpq/zr45hMKePExdtRKCMz6umOfyRpD51jv8s7p6FQSnT4tec7e/FvyjX2bBS0YOt9vQHFNA7Toc6p4uXcDVug1omzawl0fn6HA9+PNGgXHkiOXZKDR1FFQg6Wd9x7dQ9tabccUiY+yr4GrVOuG+KeoCk9/DDdulShjCyaA8Ujp+nBV29w9BL0JBH3mUwzP46RzQv9mecBwZHDfPgf1gnDjOYUMCxlLudZQvE+Hr1ZtbklibgjM/ibuHKip/1qvHOTKEBcQ4cYKjxz8yD9zX3wDe7tmgrlkdHUO5zwwEQF2+FDQqRhj25LG+IUPZIyNFRaCuXQ2VqVbXHC74EUpG5UHgvYmWEFj+/SNe4GpZ9UksjzUDZfHfU76iJ52koQ/hBsvemACB9yfzA6OoyJzwBqaYiypu8nqtJTB8A1MmsXg89e/FmFs/4J89XbvFzUv5+OTDQyG0eBGHrHH0KAsc/NiKDk92TkJ7qn3sUGpgTsRc5ci0+iNTxzwVDKQ+UYr/ySKyZw82tTu4P6UwVJcvQ0+rD75+/WOMsz4ot1YOu3BhIYcz5Ts60cTbYjdG27YFB+mcmxOdflIKYbYtLQ28GEbeu3pbOcU0/q3Mn/JTSxkl9SGxUIh6e/eJ834KRZ46Pd0+AD2c2jMqigoKaCbI3XFgMTMDQauRJgGxoMVSdQFxMWpnqK2hxYnw7kIIzp5lVePqUgUPTHvsCT6OBT6Yyk1x/Hj7BOU9n6v5VbZrJKojM5OrevlRlXPd0AfZq9WlS2z3K34/mJrKwlfmzALSWfLGm7AtGMQtCRuIRSA0Zzb3cv8FJuYwKgjUFlUW0N2xo2XTb79Gv6MHGvnzD2zam3FV17EVK8eD52nqGfUfd0XF5/YJ87g3uwdomPdihaL2hu4PFxQk7CdPKyD1QVxtmzTl3ykZ0wlFw56tKs3p2UJdu4aTuOfW2zgSuNpj6PFZuEcubziEuTAKChOcMZ0b+fRhI9CrFmNbtB+PfFmYfnqx56kLF0RvN44eAW39l3xcpHZGXfkFn7mdmBZ8ve7ivaqLF9gNgyQCcnuCwlG7wvbgyURdsYxPBEnfepxD6PhWOnYMns2fAs9NN/Ofcsh7AlOnYOU8GDeGOoWyiW9DOoa/D5vqckgs6hnJQ2MJYLU1sVjQG5/0Z56tuB+dJjjtQyxIRQltszXSvnsGgm/AQA5dMCL4ZNZDaMG8aCuQCtzEYktBx6PKr8bo9EChYRw6zOtUWKRgW9SAvcg4eBAqQ9fo3ExtDr12i+zblzAPRqfD9alboFxGqSBMoX6a6KH87mrajF9UmCdPWvefptDYBPQPHwnuTp1B/24n57nIH/Zjj6QCWwhHiou5gQz/tPt82HPBYROQ3odJqk7KjXRVobfBvrv74gru6k+CuZH+asE4fvzsGXaWOacC8qt0QQG1bXiw/x8LmNLrLImdC+DvMP/fSAEFkQIKIgUURAooiBRQECmgIFJAQaSAgkgBBZECCiIFFEQKKIgUUBApoCBSQEGkgIJIAQWRAgoiBRRECiiIFFAQKaAgUkBBpICCSAEFkQIKIgUU5B91HS13TtrWPgAAAABJRU5ErkJggg==';
|
|
58
|
+
const requestBody = {
|
|
59
|
+
schemaVersion: "0.2.0",
|
|
60
|
+
customCopilotConfig: {
|
|
61
|
+
conversationStarters: {
|
|
62
|
+
conversationStarterList: conversationStartersArray,
|
|
63
|
+
welcomeMessage: {
|
|
64
|
+
text: args.options.welcomeMessage
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
gptDefinition: {
|
|
68
|
+
name: args.options.name,
|
|
69
|
+
description: args.options.description,
|
|
70
|
+
instructions: args.options.agentInstructions,
|
|
71
|
+
capabilities: [capabilities]
|
|
72
|
+
},
|
|
73
|
+
icon: args.options.icon || cliM365DefaultIcon
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const serverRelativePath = urlUtil.getServerRelativePath(args.options.webUrl, '/SiteAssets/Copilots/');
|
|
77
|
+
const requestOptions = {
|
|
78
|
+
url: `${args.options.webUrl}/_api/web/GetFolderByServerRelativePath(DecodedUrl='${serverRelativePath}')/Files/AddUsingPath(DecodedUrl='${formatting.encodeQueryParameter(args.options.name)}.agent',EnsureUniqueFileName=true,AutoCheckoutOnInvalidData=true)`,
|
|
79
|
+
headers: {
|
|
80
|
+
'Accept': 'application/json;odata=nometadata',
|
|
81
|
+
'Content-Type': 'application/json;odata=nometadata'
|
|
82
|
+
},
|
|
83
|
+
data: requestBody,
|
|
84
|
+
responseType: 'json'
|
|
85
|
+
};
|
|
86
|
+
const result = await request.post(requestOptions);
|
|
87
|
+
if (this.verbose) {
|
|
88
|
+
await logger.logToStderr(`Agent '${args.options.name}' has been successfully created.`);
|
|
89
|
+
}
|
|
90
|
+
await logger.log(result);
|
|
91
|
+
}
|
|
92
|
+
catch (err) {
|
|
93
|
+
this.handleRejectedODataJsonPromise(err);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
async ensureSiteAssetsLibrary(webUrl, logger) {
|
|
97
|
+
if (this.verbose) {
|
|
98
|
+
await logger.logToStderr(`Ensuring Site Assets library exists at ${webUrl}...`);
|
|
99
|
+
}
|
|
100
|
+
const requestOptions = {
|
|
101
|
+
url: `${webUrl}/_api/web/lists/EnsureSiteAssetsLibrary()`,
|
|
102
|
+
headers: {
|
|
103
|
+
'Accept': 'application/json;odata=nometadata'
|
|
104
|
+
},
|
|
105
|
+
responseType: 'json'
|
|
106
|
+
};
|
|
107
|
+
await request.post(requestOptions);
|
|
108
|
+
}
|
|
109
|
+
async resolveSourceUrls(sourceUrls, webUrl, logger) {
|
|
110
|
+
const resolvedUrls = [];
|
|
111
|
+
const resolvedFiles = [];
|
|
112
|
+
for (const sourceUrl of sourceUrls) {
|
|
113
|
+
if (this.verbose) {
|
|
114
|
+
await logger.logToStderr(`Resolving source URL: ${sourceUrl}`);
|
|
115
|
+
}
|
|
116
|
+
const requestBody = {
|
|
117
|
+
request: {
|
|
118
|
+
QueryTemplate: "({searchterms}) (contentclass:STS_Web OR contentclass:STS_Site OR contentclass:STS_ListItem_DocumentLibrary OR contentclass:STS_List_DocumentLibrary)",
|
|
119
|
+
Querytext: `Path="${sourceUrl}"`,
|
|
120
|
+
SelectProperties: ["contentclass", "Title", "Path", "SiteName", "SiteTitle", "ListID", "ListItemID", "SiteID", "WebId", "UniqueID", "IsDocument", "IsContainer"],
|
|
121
|
+
RowLimit: 1,
|
|
122
|
+
TrimDuplicates: false
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
const requestOptions = {
|
|
126
|
+
url: `${webUrl}/_api/search/postquery`,
|
|
127
|
+
headers: {
|
|
128
|
+
'Accept': 'application/json;odata=nometadata'
|
|
129
|
+
},
|
|
130
|
+
responseType: 'json',
|
|
131
|
+
data: requestBody
|
|
132
|
+
};
|
|
133
|
+
const response = await request.post(requestOptions);
|
|
134
|
+
if (response.PrimaryQueryResult.RelevantResults.Table.Rows.length === 0) {
|
|
135
|
+
await logger.logToStderr(`${sourceUrl} has been skipped because no results were found.`);
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
const row = response.PrimaryQueryResult.RelevantResults.Table.Rows[0];
|
|
139
|
+
const isContainer = this.getCellValue(row, "IsContainer");
|
|
140
|
+
let uniqueId = this.getCellValue(row, "UniqueID");
|
|
141
|
+
if (uniqueId.startsWith('{') && uniqueId.endsWith('}')) {
|
|
142
|
+
uniqueId = uniqueId.slice(1, -1);
|
|
143
|
+
}
|
|
144
|
+
const contentClass = this.getCellValue(row, "contentclass");
|
|
145
|
+
const resolvedItem = {
|
|
146
|
+
url: sourceUrl,
|
|
147
|
+
name: this.getCellValue(row, "Title"),
|
|
148
|
+
site_id: this.getCellValue(row, "SiteID"),
|
|
149
|
+
web_id: this.getCellValue(row, "WebId"),
|
|
150
|
+
list_id: this.getCellValue(row, "ListID") || '',
|
|
151
|
+
unique_id: uniqueId,
|
|
152
|
+
type: isContainer === 'true' && contentClass === 'STS_ListItem_DocumentLibrary' ? 'Folder' : urlSourceMap[contentClass]
|
|
153
|
+
};
|
|
154
|
+
if (resolvedItem.type === 'File') {
|
|
155
|
+
resolvedFiles.push(resolvedItem);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
resolvedUrls.push(resolvedItem);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
name: "OneDriveAndSharePoint",
|
|
163
|
+
items_by_sharepoint_ids: resolvedFiles,
|
|
164
|
+
items_by_url: resolvedUrls
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
getCellValue(row, key) {
|
|
168
|
+
return row.Cells.find((cell) => cell.Key === key)?.Value || '';
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
export default new SpoAgentAddCommand();
|
|
172
|
+
//# sourceMappingURL=agent-add.js.map
|