@pnp/cli-microsoft365 5.9.0 → 6.0.0-beta.01ba480
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/dist/Auth.js +1 -2
- package/dist/m365/aad/commands/app/app-add.js +4 -5
- package/dist/m365/aad/commands/app/app-remove.js +0 -4
- package/dist/m365/aad/commands/app/app-role-remove.js +0 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -11
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +10 -10
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +10 -10
- package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +0 -3
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +7 -7
- package/dist/m365/aad/commands/policy/policy-list.js +6 -6
- package/dist/m365/aad/commands/sp/sp-get.js +12 -12
- package/dist/m365/aad/commands/user/user-guest-add.js +103 -0
- package/dist/m365/aad/commands.js +1 -3
- package/dist/m365/cli/commands/config/config-set.js +0 -1
- package/dist/m365/flow/commands/flow-disable.js +2 -2
- package/dist/m365/flow/commands/flow-enable.js +2 -2
- package/dist/m365/flow/commands/flow-export.js +5 -5
- package/dist/m365/flow/commands/flow-get.js +2 -2
- package/dist/m365/flow/commands/flow-list.js +2 -2
- package/dist/m365/flow/commands/flow-remove.js +3 -3
- package/dist/m365/flow/commands/run/run-cancel.js +6 -6
- package/dist/m365/flow/commands/run/run-get.js +4 -4
- package/dist/m365/flow/commands/run/run-list.js +4 -4
- package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
- package/dist/m365/outlook/commands/mail/mail-send.js +0 -3
- package/dist/m365/outlook/commands/message/message-get.js +97 -0
- package/dist/m365/outlook/commands/message/message-move.js +2 -2
- package/dist/m365/outlook/commands.js +2 -2
- package/dist/m365/pa/commands/connector/connector-export.js +3 -3
- package/dist/m365/pa/commands/connector/connector-list.js +2 -2
- package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -9
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -9
- package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-set.js +4 -11
- package/dist/m365/planner/commands/plan/plan-get.js +5 -24
- package/dist/m365/planner/commands/task/task-add.js +3 -8
- package/dist/m365/planner/commands/task/task-get.js +5 -19
- package/dist/m365/planner/commands/task/task-list.js +4 -11
- package/dist/m365/planner/commands/task/task-set.js +5 -10
- package/dist/m365/planner/commands.js +0 -2
- package/dist/m365/spfx/commands/package/package-generate.js +2 -2
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
- package/dist/m365/spo/commands/app/app-add.js +7 -7
- package/dist/m365/spo/commands/app/app-deploy.js +7 -7
- package/dist/m365/spo/commands/app/app-get.js +7 -7
- package/dist/m365/spo/commands/app/app-install.js +6 -6
- package/dist/m365/spo/commands/app/app-list.js +7 -7
- package/dist/m365/spo/commands/app/app-remove.js +7 -7
- package/dist/m365/spo/commands/app/app-retract.js +7 -7
- package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
- package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
- package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
- package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
- package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
- package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
- package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
- package/dist/m365/spo/commands/feature/feature-list.js +3 -3
- package/dist/m365/spo/commands/field/field-get.js +1 -7
- package/dist/m365/spo/commands/field/field-remove.js +1 -7
- package/dist/m365/spo/commands/field/field-set.js +1 -8
- package/dist/m365/spo/commands/file/file-checkin.js +5 -5
- package/dist/m365/spo/commands/file/file-checkout.js +5 -5
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +13 -13
- package/dist/m365/spo/commands/folder/folder-get.js +6 -6
- package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
- package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +11 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +12 -1
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
- package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -4
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +5 -5
- package/dist/m365/spo/commands/list/list-list.js +3 -13
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +50 -29
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +46 -25
- package/dist/m365/spo/commands/list/list-view-field-add.js +20 -20
- package/dist/m365/spo/commands/list/list-view-field-remove.js +11 -11
- package/dist/m365/spo/commands/list/list-view-field-set.js +15 -15
- package/dist/m365/spo/commands/list/list-view-get.js +9 -9
- package/dist/m365/spo/commands/list/list-view-remove.js +11 -11
- package/dist/m365/spo/commands/list/list-view-set.js +11 -11
- package/dist/m365/spo/commands/list/list-webhook-list.js +4 -28
- package/dist/m365/spo/commands/listitem/listitem-list.js +3 -28
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +50 -29
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +48 -24
- package/dist/m365/spo/commands/page/page-column-get.js +2 -2
- package/dist/m365/spo/commands/page/page-column-list.js +2 -2
- package/dist/m365/spo/commands/page/page-control-get.js +4 -4
- package/dist/m365/spo/commands/page/page-control-list.js +3 -3
- package/dist/m365/spo/commands/page/page-control-set.js +3 -3
- package/dist/m365/spo/commands/page/page-section-add.js +2 -2
- package/dist/m365/spo/commands/page/page-section-get.js +2 -2
- package/dist/m365/spo/commands/page/page-section-list.js +2 -2
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +15 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
- package/dist/m365/spo/commands/site/site-add.js +4 -11
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
- package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +5 -5
- package/dist/m365/spo/commands/site/site-apppermission-set.js +5 -5
- package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
- package/dist/m365/spo/commands/site/site-ensure.js +1 -1
- package/dist/m365/spo/commands/site/site-groupify.js +3 -3
- package/dist/m365/spo/commands/{hubsite/hubsite-connect.js → site/site-hubsite-connect.js} +17 -17
- package/dist/m365/spo/commands/{hubsite/hubsite-disconnect.js → site/site-hubsite-disconnect.js} +18 -18
- package/dist/m365/spo/commands/{hubsite/hubsite-theme-sync.js → site/site-hubsite-theme-sync.js} +11 -11
- package/dist/m365/spo/commands/site/site-list.js +6 -17
- package/dist/m365/spo/commands/site/site-rename.js +9 -9
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
- package/dist/m365/spo/commands/web/web-add.js +4 -4
- package/dist/m365/spo/commands/web/web-get.js +3 -3
- package/dist/m365/spo/commands/web/web-list.js +4 -4
- package/dist/m365/spo/commands/web/web-reindex.js +8 -8
- package/dist/m365/spo/commands/web/web-remove.js +5 -5
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +41 -15
- package/dist/m365/spo/commands/web/web-set.js +4 -4
- package/dist/m365/spo/commands.js +3 -6
- package/dist/m365/teams/commands/app/app-install.js +4 -4
- package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
- package/dist/m365/teams/commands/channel/channel-get.js +10 -10
- package/dist/m365/teams/commands/channel/channel-member-add.js +0 -4
- package/dist/m365/teams/commands/channel/channel-member-list.js +0 -4
- package/dist/m365/teams/commands/channel/channel-member-remove.js +0 -4
- package/dist/m365/teams/commands/channel/channel-remove.js +16 -16
- package/dist/m365/teams/commands/channel/channel-set.js +7 -7
- package/dist/m365/teams/commands/message/message-get.js +3 -3
- package/dist/m365/teams/commands/tab/tab-get.js +10 -10
- package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
- package/dist/m365/teams/commands/team/team-archive.js +3 -13
- package/dist/m365/teams/commands/team/team-clone.js +3 -20
- package/dist/m365/teams/commands/team/team-remove.js +5 -17
- package/dist/m365/teams/commands/team/team-set.js +1 -20
- package/dist/m365/teams/commands/team/team-unarchive.js +4 -16
- package/dist/m365/teams/commands/user/user-app-add.js +4 -4
- package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
- package/dist/m365/teams/commands.js +0 -3
- package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
- package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
- package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
- package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
- package/dist/m365/yammer/commands/user/user-get.js +5 -5
- package/dist/settingsNames.js +0 -1
- package/docs/docs/_clisettings.md +1 -2
- package/docs/docs/cmd/aad/app/app-remove.md +0 -6
- package/docs/docs/cmd/aad/app/app-role-remove.md +0 -6
- package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
- package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +0 -6
- package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
- package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
- package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
- package/docs/docs/cmd/aad/user/user-guest-add.md +107 -0
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +3 -0
- package/docs/docs/cmd/flow/flow-disable.md +3 -3
- package/docs/docs/cmd/flow/flow-enable.md +1 -1
- package/docs/docs/cmd/flow/flow-export.md +5 -5
- package/docs/docs/cmd/flow/flow-get.md +3 -3
- package/docs/docs/cmd/flow/flow-list.md +3 -3
- package/docs/docs/cmd/flow/flow-remove.md +5 -5
- package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
- package/docs/docs/cmd/flow/run/run-get.md +3 -3
- package/docs/docs/cmd/flow/run/run-list.md +3 -3
- package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.md +4 -11
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.md +4 -10
- package/docs/docs/cmd/outlook/mail/mail-send.md +0 -6
- package/docs/docs/cmd/outlook/message/message-get.md +48 -0
- package/docs/docs/cmd/outlook/message/message-move.md +4 -4
- package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
- package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
- package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
- package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
- package/docs/docs/cmd/planner/plan/plan-get.md +0 -12
- package/docs/docs/cmd/planner/task/task-add.md +0 -3
- package/docs/docs/cmd/planner/task/task-get.md +0 -6
- package/docs/docs/cmd/planner/task/task-list.md +0 -3
- package/docs/docs/cmd/planner/task/task-set.md +0 -3
- package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
- package/docs/docs/cmd/spo/app/app-add.md +2 -2
- package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
- package/docs/docs/cmd/spo/app/app-get.md +2 -2
- package/docs/docs/cmd/spo/app/app-install.md +2 -2
- package/docs/docs/cmd/spo/app/app-list.md +2 -2
- package/docs/docs/cmd/spo/app/app-remove.md +2 -2
- package/docs/docs/cmd/spo/app/app-retract.md +2 -2
- package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
- package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
- package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-add.md +13 -10
- package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
- package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
- package/docs/docs/cmd/spo/customaction/customaction-set.md +10 -9
- package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
- package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
- package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
- package/docs/docs/cmd/spo/field/field-get.md +0 -3
- package/docs/docs/cmd/spo/field/field-remove.md +0 -3
- package/docs/docs/cmd/spo/field/field-set.md +4 -4
- package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
- package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
- package/docs/docs/cmd/spo/folder/folder-get.md +3 -3
- package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
- package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.md +6 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +6 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +4 -4
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +4 -4
- package/docs/docs/cmd/spo/list/list-list.md +0 -3
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +9 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +9 -0
- package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
- package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-set.md +20 -9
- package/docs/docs/cmd/spo/list/list-webhook-list.md +3 -9
- package/docs/docs/cmd/spo/listitem/listitem-list.md +0 -6
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +5 -5
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +3 -3
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +9 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +5 -2
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +5 -10
- package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-set.md +6 -5
- package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
- package/docs/docs/cmd/spo/site/site-add.md +2 -5
- package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
- package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
- package/docs/docs/cmd/spo/site/site-groupify.md +5 -11
- package/docs/docs/cmd/spo/{hubsite/hubsite-connect.md → site/site-hubsite-connect.md} +7 -7
- package/docs/docs/cmd/spo/{hubsite/hubsite-disconnect.md → site/site-hubsite-disconnect.md} +8 -8
- package/docs/docs/cmd/spo/{hubsite/hubsite-theme-sync.md → site/site-hubsite-theme-sync.md} +5 -5
- package/docs/docs/cmd/spo/site/site-list.md +6 -6
- package/docs/docs/cmd/spo/site/site-rename.md +6 -6
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
- package/docs/docs/cmd/spo/term/term-add.md +5 -0
- package/docs/docs/cmd/spo/term/term-set-add.md +6 -1
- package/docs/docs/cmd/spo/web/web-add.md +4 -4
- package/docs/docs/cmd/spo/web/web-get.md +3 -3
- package/docs/docs/cmd/spo/web/web-list.md +2 -2
- package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
- package/docs/docs/cmd/spo/web/web-remove.md +2 -2
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +9 -0
- package/docs/docs/cmd/spo/web/web-set.md +9 -9
- package/docs/docs/cmd/teams/app/app-install.md +5 -5
- package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
- package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-member-add.md +0 -6
- package/docs/docs/cmd/teams/channel/channel-member-list.md +0 -6
- package/docs/docs/cmd/teams/channel/channel-member-remove.md +0 -6
- package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
- package/docs/docs/cmd/teams/message/message-get.md +3 -3
- package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
- package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
- package/docs/docs/cmd/teams/team/team-archive.md +0 -3
- package/docs/docs/cmd/teams/team/team-clone.md +0 -6
- package/docs/docs/cmd/teams/team/team-remove.md +0 -3
- package/docs/docs/cmd/teams/team/team-set.md +0 -6
- package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
- package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
- package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
- package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
- package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
- package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
- package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
- package/docs/docs/cmd/yammer/user/user-get.md +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/m365/spo/commands/site/site-classic-add.js +0 -328
- package/dist/m365/spo/commands/site/site-classic-list.js +0 -115
- package/dist/m365/spo/commands/site/site-classic-set.js +0 -351
- package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
- package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
- package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
package/dist/m365/spo/commands/{hubsite/hubsite-disconnect.js → site/site-hubsite-disconnect.js}
RENAMED
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var
|
|
16
|
+
var _SpoSiteHubSiteDisconnectCommand_instances, _SpoSiteHubSiteDisconnectCommand_initTelemetry, _SpoSiteHubSiteDisconnectCommand_initOptions, _SpoSiteHubSiteDisconnectCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -21,16 +21,16 @@ const spo_1 = require("../../../../utils/spo");
|
|
|
21
21
|
const validation_1 = require("../../../../utils/validation");
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
|
-
class
|
|
24
|
+
class SpoSiteHubSiteDisconnectCommand extends SpoCommand_1.default {
|
|
25
25
|
constructor() {
|
|
26
26
|
super();
|
|
27
|
-
|
|
28
|
-
__classPrivateFieldGet(this,
|
|
29
|
-
__classPrivateFieldGet(this,
|
|
30
|
-
__classPrivateFieldGet(this,
|
|
27
|
+
_SpoSiteHubSiteDisconnectCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _SpoSiteHubSiteDisconnectCommand_instances, "m", _SpoSiteHubSiteDisconnectCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoSiteHubSiteDisconnectCommand_instances, "m", _SpoSiteHubSiteDisconnectCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoSiteHubSiteDisconnectCommand_instances, "m", _SpoSiteHubSiteDisconnectCommand_initValidators).call(this);
|
|
31
31
|
}
|
|
32
32
|
get name() {
|
|
33
|
-
return commands_1.default.
|
|
33
|
+
return commands_1.default.SITE_HUBSITE_DISCONNECT;
|
|
34
34
|
}
|
|
35
35
|
get description() {
|
|
36
36
|
return 'Disconnects the specifies site collection from its hub site';
|
|
@@ -39,12 +39,12 @@ class SpoHubSiteDisconnectCommand extends SpoCommand_1.default {
|
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const disconnectHubSite = () => __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
try {
|
|
42
|
-
const res = yield spo_1.spo.getRequestDigest(args.options.
|
|
42
|
+
const res = yield spo_1.spo.getRequestDigest(args.options.siteUrl);
|
|
43
43
|
if (this.verbose) {
|
|
44
|
-
logger.logToStderr(`Disconnecting site collection ${args.options.
|
|
44
|
+
logger.logToStderr(`Disconnecting site collection ${args.options.siteUrl} from its hubsite...`);
|
|
45
45
|
}
|
|
46
46
|
const requestOptions = {
|
|
47
|
-
url: `${args.options.
|
|
47
|
+
url: `${args.options.siteUrl}/_api/site/JoinHubSite('00000000-0000-0000-0000-000000000000')`,
|
|
48
48
|
headers: {
|
|
49
49
|
'X-RequestDigest': res.FormDigestValue,
|
|
50
50
|
accept: 'application/json;odata=nometadata'
|
|
@@ -65,7 +65,7 @@ class SpoHubSiteDisconnectCommand extends SpoCommand_1.default {
|
|
|
65
65
|
type: 'confirm',
|
|
66
66
|
name: 'continue',
|
|
67
67
|
default: false,
|
|
68
|
-
message: `Are you sure you want to disconnect the site collection ${args.options.
|
|
68
|
+
message: `Are you sure you want to disconnect the site collection ${args.options.siteUrl} from its hub site?`
|
|
69
69
|
});
|
|
70
70
|
if (result.continue) {
|
|
71
71
|
yield disconnectHubSite();
|
|
@@ -74,20 +74,20 @@ class SpoHubSiteDisconnectCommand extends SpoCommand_1.default {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
_SpoSiteHubSiteDisconnectCommand_instances = new WeakSet(), _SpoSiteHubSiteDisconnectCommand_initTelemetry = function _SpoSiteHubSiteDisconnectCommand_initTelemetry() {
|
|
78
78
|
this.telemetry.push((args) => {
|
|
79
79
|
Object.assign(this.telemetryProperties, {
|
|
80
80
|
confirm: args.options.confirm || false
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
-
},
|
|
83
|
+
}, _SpoSiteHubSiteDisconnectCommand_initOptions = function _SpoSiteHubSiteDisconnectCommand_initOptions() {
|
|
84
84
|
this.options.unshift({
|
|
85
|
-
option: '-u, --
|
|
85
|
+
option: '-u, --siteUrl <siteUrl>'
|
|
86
86
|
}, {
|
|
87
87
|
option: '--confirm'
|
|
88
88
|
});
|
|
89
|
-
},
|
|
90
|
-
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.
|
|
89
|
+
}, _SpoSiteHubSiteDisconnectCommand_initValidators = function _SpoSiteHubSiteDisconnectCommand_initValidators() {
|
|
90
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.siteUrl); }));
|
|
91
91
|
};
|
|
92
|
-
module.exports = new
|
|
93
|
-
//# sourceMappingURL=hubsite-disconnect.js.map
|
|
92
|
+
module.exports = new SpoSiteHubSiteDisconnectCommand();
|
|
93
|
+
//# sourceMappingURL=site-hubsite-disconnect.js.map
|
package/dist/m365/spo/commands/{hubsite/hubsite-theme-sync.js → site/site-hubsite-theme-sync.js}
RENAMED
|
@@ -13,24 +13,24 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var
|
|
16
|
+
var _SpoSiteHubSiteThemeSyncCommand_instances, _SpoSiteHubSiteThemeSyncCommand_initOptions, _SpoSiteHubSiteThemeSyncCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
|
-
class
|
|
22
|
+
class SpoSiteHubSiteThemeSyncCommand extends SpoCommand_1.default {
|
|
23
23
|
constructor() {
|
|
24
24
|
super();
|
|
25
|
-
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
25
|
+
_SpoSiteHubSiteThemeSyncCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _SpoSiteHubSiteThemeSyncCommand_instances, "m", _SpoSiteHubSiteThemeSyncCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoSiteHubSiteThemeSyncCommand_instances, "m", _SpoSiteHubSiteThemeSyncCommand_initValidators).call(this);
|
|
28
28
|
}
|
|
29
29
|
get name() {
|
|
30
|
-
return commands_1.default.
|
|
30
|
+
return commands_1.default.SITE_HUBSITE_THEME_SYNC;
|
|
31
31
|
}
|
|
32
32
|
get description() {
|
|
33
|
-
return 'Applies any theme updates from the
|
|
33
|
+
return 'Applies any theme updates from the hub site the site is connected to.';
|
|
34
34
|
}
|
|
35
35
|
commandAction(logger, args) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -53,12 +53,12 @@ class SpoHubSiteThemeSyncCommand extends SpoCommand_1.default {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
_SpoSiteHubSiteThemeSyncCommand_instances = new WeakSet(), _SpoSiteHubSiteThemeSyncCommand_initOptions = function _SpoSiteHubSiteThemeSyncCommand_initOptions() {
|
|
57
57
|
this.options.unshift({
|
|
58
58
|
option: '-u, --webUrl <webUrl>'
|
|
59
59
|
});
|
|
60
|
-
},
|
|
60
|
+
}, _SpoSiteHubSiteThemeSyncCommand_initValidators = function _SpoSiteHubSiteThemeSyncCommand_initValidators() {
|
|
61
61
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.webUrl); }));
|
|
62
62
|
};
|
|
63
|
-
module.exports = new
|
|
64
|
-
//# sourceMappingURL=hubsite-theme-sync.js.map
|
|
63
|
+
module.exports = new SpoSiteHubSiteThemeSyncCommand();
|
|
64
|
+
//# sourceMappingURL=site-hubsite-theme-sync.js.map
|
|
@@ -97,11 +97,6 @@ class SpoSiteListCommand extends SpoCommand_1.default {
|
|
|
97
97
|
}, err => reject(err));
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
/*
|
|
101
|
-
The type property currently defaults to Teamsite.
|
|
102
|
-
It makes more sense to default to All. Certainly after adding the 'includeOneDriveSites' option.
|
|
103
|
-
Changing this will be a breaking change. We'll remove the default the next major version.
|
|
104
|
-
*/
|
|
105
100
|
getWebTemplateId(options) {
|
|
106
101
|
if (options.webTemplate) {
|
|
107
102
|
return options.webTemplate;
|
|
@@ -109,11 +104,7 @@ class SpoSiteListCommand extends SpoCommand_1.default {
|
|
|
109
104
|
if (options.includeOneDriveSites) {
|
|
110
105
|
return '';
|
|
111
106
|
}
|
|
112
|
-
|
|
113
|
-
if (!siteType) {
|
|
114
|
-
siteType = 'TeamSite';
|
|
115
|
-
}
|
|
116
|
-
switch (siteType) {
|
|
107
|
+
switch (options.type) {
|
|
117
108
|
case "TeamSite":
|
|
118
109
|
return 'GROUP#0';
|
|
119
110
|
case "CommunicationSite":
|
|
@@ -127,7 +118,7 @@ _SpoSiteListCommand_instances = new WeakSet(), _SpoSiteListCommand_initTelemetry
|
|
|
127
118
|
this.telemetry.push((args) => {
|
|
128
119
|
Object.assign(this.telemetryProperties, {
|
|
129
120
|
webTemplate: args.options.webTemplate,
|
|
130
|
-
|
|
121
|
+
type: args.options.type,
|
|
131
122
|
filter: (!(!args.options.filter)).toString(),
|
|
132
123
|
deleted: args.options.deleted,
|
|
133
124
|
includeOneDriveSites: typeof args.options.includeOneDriveSites !== 'undefined'
|
|
@@ -136,9 +127,7 @@ _SpoSiteListCommand_instances = new WeakSet(), _SpoSiteListCommand_initTelemetry
|
|
|
136
127
|
}, _SpoSiteListCommand_initOptions = function _SpoSiteListCommand_initOptions() {
|
|
137
128
|
this.options.unshift({
|
|
138
129
|
option: '-t, --type [type]',
|
|
139
|
-
|
|
140
|
-
// You should use all when using '--includeOneDriveSites'
|
|
141
|
-
autocomplete: ['TeamSite', 'CommunicationSite', 'All']
|
|
130
|
+
autocomplete: ['TeamSite', 'CommunicationSite']
|
|
142
131
|
}, {
|
|
143
132
|
option: '--webTemplate [webTemplate]'
|
|
144
133
|
}, {
|
|
@@ -153,14 +142,14 @@ _SpoSiteListCommand_instances = new WeakSet(), _SpoSiteListCommand_initTelemetry
|
|
|
153
142
|
if (args.options.type && args.options.webTemplate) {
|
|
154
143
|
return 'Specify either type or webTemplate, but not both';
|
|
155
144
|
}
|
|
156
|
-
const typeValues = ['TeamSite', 'CommunicationSite'
|
|
145
|
+
const typeValues = ['TeamSite', 'CommunicationSite'];
|
|
157
146
|
if (args.options.type &&
|
|
158
147
|
typeValues.indexOf(args.options.type) < 0) {
|
|
159
148
|
return `${args.options.type} is not a valid value for the type option. Allowed values are ${typeValues.join('|')}`;
|
|
160
149
|
}
|
|
161
150
|
if (args.options.includeOneDriveSites
|
|
162
|
-
&& (
|
|
163
|
-
return 'When using includeOneDriveSites, specify
|
|
151
|
+
&& (args.options.type || args.options.webTemplate)) {
|
|
152
|
+
return 'When using includeOneDriveSites, don\'t specify the type or webTemplate options';
|
|
164
153
|
}
|
|
165
154
|
return true;
|
|
166
155
|
}));
|
|
@@ -51,9 +51,9 @@ class SpoSiteRenameCommand extends SpoCommand_1.default {
|
|
|
51
51
|
optionsBitmask = optionsBitmask | 16;
|
|
52
52
|
}
|
|
53
53
|
const requestOptions = {
|
|
54
|
-
"SourceSiteUrl": options.
|
|
55
|
-
"TargetSiteUrl": options.
|
|
56
|
-
"TargetSiteTitle": options.
|
|
54
|
+
"SourceSiteUrl": options.url,
|
|
55
|
+
"TargetSiteUrl": options.newUrl,
|
|
56
|
+
"TargetSiteTitle": options.newTitle || null,
|
|
57
57
|
"Option": optionsBitmask,
|
|
58
58
|
"Reserve": null,
|
|
59
59
|
"SkipGestures": null,
|
|
@@ -78,7 +78,7 @@ class SpoSiteRenameCommand extends SpoCommand_1.default {
|
|
|
78
78
|
}
|
|
79
79
|
const isComplete = this.operationData.JobState === "Success";
|
|
80
80
|
if (options.wait && !isComplete) {
|
|
81
|
-
yield this.waitForRenameCompletion(this, true, spoAdminUrl, options.
|
|
81
|
+
yield this.waitForRenameCompletion(this, true, spoAdminUrl, options.url, 0);
|
|
82
82
|
}
|
|
83
83
|
logger.log(this.operationData);
|
|
84
84
|
}
|
|
@@ -116,7 +116,7 @@ class SpoSiteRenameCommand extends SpoCommand_1.default {
|
|
|
116
116
|
_SpoSiteRenameCommand_instances = new WeakSet(), _SpoSiteRenameCommand_initTelemetry = function _SpoSiteRenameCommand_initTelemetry() {
|
|
117
117
|
this.telemetry.push((args) => {
|
|
118
118
|
Object.assign(this.telemetryProperties, {
|
|
119
|
-
|
|
119
|
+
newTitle: args.options.newTitle ? true : false,
|
|
120
120
|
suppressMarketplaceAppCheck: args.options.suppressMarketplaceAppCheck,
|
|
121
121
|
suppressWorkflow2013Check: args.options.suppressWorkflow2013Check,
|
|
122
122
|
wait: args.options.wait
|
|
@@ -124,11 +124,11 @@ _SpoSiteRenameCommand_instances = new WeakSet(), _SpoSiteRenameCommand_initTelem
|
|
|
124
124
|
});
|
|
125
125
|
}, _SpoSiteRenameCommand_initOptions = function _SpoSiteRenameCommand_initOptions() {
|
|
126
126
|
this.options.unshift({
|
|
127
|
-
option: '-u, --
|
|
127
|
+
option: '-u, --url <url>'
|
|
128
128
|
}, {
|
|
129
|
-
option: '--
|
|
129
|
+
option: '--newUrl <newUrl>'
|
|
130
130
|
}, {
|
|
131
|
-
option: '--
|
|
131
|
+
option: '--newTitle [newTitle]'
|
|
132
132
|
}, {
|
|
133
133
|
option: '--suppressMarketplaceAppCheck'
|
|
134
134
|
}, {
|
|
@@ -138,7 +138,7 @@ _SpoSiteRenameCommand_instances = new WeakSet(), _SpoSiteRenameCommand_initTelem
|
|
|
138
138
|
});
|
|
139
139
|
}, _SpoSiteRenameCommand_initValidators = function _SpoSiteRenameCommand_initValidators() {
|
|
140
140
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
141
|
-
if (args.options.
|
|
141
|
+
if (args.options.url.toLowerCase() === args.options.newUrl.toLowerCase()) {
|
|
142
142
|
return 'The new URL cannot be the same as the target URL.';
|
|
143
143
|
}
|
|
144
144
|
return true;
|
|
@@ -47,7 +47,7 @@ class SpoSiteDesignRightsGrantCommand extends SpoCommand_1.default {
|
|
|
47
47
|
accept: 'application/json;odata=nometadata'
|
|
48
48
|
},
|
|
49
49
|
data: {
|
|
50
|
-
id: args.options.
|
|
50
|
+
id: args.options.siteDesignId,
|
|
51
51
|
principalNames: args.options.principals.split(',').map(p => p.trim()),
|
|
52
52
|
grantedRights: grantedRights
|
|
53
53
|
},
|
|
@@ -63,7 +63,7 @@ class SpoSiteDesignRightsGrantCommand extends SpoCommand_1.default {
|
|
|
63
63
|
}
|
|
64
64
|
_SpoSiteDesignRightsGrantCommand_instances = new WeakSet(), _SpoSiteDesignRightsGrantCommand_initOptions = function _SpoSiteDesignRightsGrantCommand_initOptions() {
|
|
65
65
|
this.options.unshift({
|
|
66
|
-
option: '-i, --
|
|
66
|
+
option: '-i, --siteDesignId <siteDesignId>'
|
|
67
67
|
}, {
|
|
68
68
|
option: '-p, --principals <principals>'
|
|
69
69
|
}, {
|
|
@@ -72,8 +72,8 @@ _SpoSiteDesignRightsGrantCommand_instances = new WeakSet(), _SpoSiteDesignRights
|
|
|
72
72
|
});
|
|
73
73
|
}, _SpoSiteDesignRightsGrantCommand_initValidators = function _SpoSiteDesignRightsGrantCommand_initValidators() {
|
|
74
74
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
76
|
-
return `${args.options.
|
|
75
|
+
if (!validation_1.validation.isValidGuid(args.options.siteDesignId)) {
|
|
76
|
+
return `${args.options.siteDesignId} is not a valid GUID`;
|
|
77
77
|
}
|
|
78
78
|
if (args.options.rights !== 'View') {
|
|
79
79
|
return `${args.options.rights} is not a valid rights value. Allowed values View`;
|
|
@@ -45,7 +45,7 @@ class SpoSiteDesignRightsListCommand extends SpoCommand_1.default {
|
|
|
45
45
|
'content-type': 'application/json;charset=utf-8',
|
|
46
46
|
accept: 'application/json;odata=nometadata'
|
|
47
47
|
},
|
|
48
|
-
data: { id: args.options.
|
|
48
|
+
data: { id: args.options.siteDesignId },
|
|
49
49
|
responseType: 'json'
|
|
50
50
|
};
|
|
51
51
|
const res = yield request_1.default.post(requestOptions);
|
|
@@ -62,12 +62,12 @@ class SpoSiteDesignRightsListCommand extends SpoCommand_1.default {
|
|
|
62
62
|
}
|
|
63
63
|
_SpoSiteDesignRightsListCommand_instances = new WeakSet(), _SpoSiteDesignRightsListCommand_initOptions = function _SpoSiteDesignRightsListCommand_initOptions() {
|
|
64
64
|
this.options.unshift({
|
|
65
|
-
option: '-i, --
|
|
65
|
+
option: '-i, --siteDesignId <siteDesignId>'
|
|
66
66
|
});
|
|
67
67
|
}, _SpoSiteDesignRightsListCommand_initValidators = function _SpoSiteDesignRightsListCommand_initValidators() {
|
|
68
68
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
70
|
-
return `${args.options.
|
|
69
|
+
if (!validation_1.validation.isValidGuid(args.options.siteDesignId)) {
|
|
70
|
+
return `${args.options.siteDesignId} is not a valid GUID`;
|
|
71
71
|
}
|
|
72
72
|
return true;
|
|
73
73
|
}));
|
|
@@ -49,7 +49,7 @@ class SpoSiteDesignRightsRevokeCommand extends SpoCommand_1.default {
|
|
|
49
49
|
accept: 'application/json;odata=nometadata'
|
|
50
50
|
},
|
|
51
51
|
data: {
|
|
52
|
-
id: args.options.
|
|
52
|
+
id: args.options.siteDesignId,
|
|
53
53
|
principalNames: args.options.principals.split(',').map(p => p.trim())
|
|
54
54
|
},
|
|
55
55
|
responseType: 'json'
|
|
@@ -68,7 +68,7 @@ class SpoSiteDesignRightsRevokeCommand extends SpoCommand_1.default {
|
|
|
68
68
|
type: 'confirm',
|
|
69
69
|
name: 'continue',
|
|
70
70
|
default: false,
|
|
71
|
-
message: `Are you sure you want to revoke access to site design ${args.options.
|
|
71
|
+
message: `Are you sure you want to revoke access to site design ${args.options.siteDesignId} from the specified users?`
|
|
72
72
|
});
|
|
73
73
|
if (result.continue) {
|
|
74
74
|
yield revokePermissions();
|
|
@@ -85,7 +85,7 @@ _SpoSiteDesignRightsRevokeCommand_instances = new WeakSet(), _SpoSiteDesignRight
|
|
|
85
85
|
});
|
|
86
86
|
}, _SpoSiteDesignRightsRevokeCommand_initOptions = function _SpoSiteDesignRightsRevokeCommand_initOptions() {
|
|
87
87
|
this.options.unshift({
|
|
88
|
-
option: '-i, --
|
|
88
|
+
option: '-i, --siteDesignId <siteDesignId>'
|
|
89
89
|
}, {
|
|
90
90
|
option: '-p, --principals <principals>'
|
|
91
91
|
}, {
|
|
@@ -93,8 +93,8 @@ _SpoSiteDesignRightsRevokeCommand_instances = new WeakSet(), _SpoSiteDesignRight
|
|
|
93
93
|
});
|
|
94
94
|
}, _SpoSiteDesignRightsRevokeCommand_initValidators = function _SpoSiteDesignRightsRevokeCommand_initValidators() {
|
|
95
95
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
97
|
-
return `${args.options.
|
|
96
|
+
if (!validation_1.validation.isValidGuid(args.options.siteDesignId)) {
|
|
97
|
+
return `${args.options.siteDesignId} is not a valid GUID`;
|
|
98
98
|
}
|
|
99
99
|
return true;
|
|
100
100
|
}));
|
|
@@ -43,7 +43,7 @@ class SpoSiteDesignTaskGetCommand extends SpoCommand_1.default {
|
|
|
43
43
|
accept: 'application/json;odata=nometadata'
|
|
44
44
|
},
|
|
45
45
|
data: {
|
|
46
|
-
taskId: args.options.
|
|
46
|
+
taskId: args.options.id
|
|
47
47
|
},
|
|
48
48
|
responseType: 'json'
|
|
49
49
|
};
|
|
@@ -60,12 +60,12 @@ class SpoSiteDesignTaskGetCommand extends SpoCommand_1.default {
|
|
|
60
60
|
}
|
|
61
61
|
_SpoSiteDesignTaskGetCommand_instances = new WeakSet(), _SpoSiteDesignTaskGetCommand_initOptions = function _SpoSiteDesignTaskGetCommand_initOptions() {
|
|
62
62
|
this.options.unshift({
|
|
63
|
-
option: '-i, --
|
|
63
|
+
option: '-i, --id <id>'
|
|
64
64
|
});
|
|
65
65
|
}, _SpoSiteDesignTaskGetCommand_initValidators = function _SpoSiteDesignTaskGetCommand_initValidators() {
|
|
66
66
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
68
|
-
return `${args.options.
|
|
67
|
+
if (!validation_1.validation.isValidGuid(args.options.id)) {
|
|
68
|
+
return `${args.options.id} is not a valid GUID`;
|
|
69
69
|
}
|
|
70
70
|
return true;
|
|
71
71
|
}));
|
|
@@ -46,7 +46,7 @@ class SpoSiteDesignTaskRemoveCommand extends SpoCommand_1.default {
|
|
|
46
46
|
accept: 'application/json;odata=nometadata'
|
|
47
47
|
},
|
|
48
48
|
data: {
|
|
49
|
-
taskId: args.options.
|
|
49
|
+
taskId: args.options.id
|
|
50
50
|
},
|
|
51
51
|
responseType: 'json'
|
|
52
52
|
};
|
|
@@ -64,7 +64,7 @@ class SpoSiteDesignTaskRemoveCommand extends SpoCommand_1.default {
|
|
|
64
64
|
type: 'confirm',
|
|
65
65
|
name: 'continue',
|
|
66
66
|
default: false,
|
|
67
|
-
message: `Are you sure you want to remove the site design task ${args.options.
|
|
67
|
+
message: `Are you sure you want to remove the site design task ${args.options.id}?`
|
|
68
68
|
});
|
|
69
69
|
if (result.continue) {
|
|
70
70
|
yield removeSiteDesignTask();
|
|
@@ -81,14 +81,14 @@ _SpoSiteDesignTaskRemoveCommand_instances = new WeakSet(), _SpoSiteDesignTaskRem
|
|
|
81
81
|
});
|
|
82
82
|
}, _SpoSiteDesignTaskRemoveCommand_initOptions = function _SpoSiteDesignTaskRemoveCommand_initOptions() {
|
|
83
83
|
this.options.unshift({
|
|
84
|
-
option: '-i, --
|
|
84
|
+
option: '-i, --id <id>'
|
|
85
85
|
}, {
|
|
86
86
|
option: '--confirm'
|
|
87
87
|
});
|
|
88
88
|
}, _SpoSiteDesignTaskRemoveCommand_initValidators = function _SpoSiteDesignTaskRemoveCommand_initValidators() {
|
|
89
89
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
91
|
-
return `${args.options.
|
|
90
|
+
if (!validation_1.validation.isValidGuid(args.options.id)) {
|
|
91
|
+
return `${args.options.id} is not a valid GUID`;
|
|
92
92
|
}
|
|
93
93
|
return true;
|
|
94
94
|
}));
|
|
@@ -44,14 +44,14 @@ class SpoTenantRecycleBinItemRemoveCommand extends SpoCommand_1.default {
|
|
|
44
44
|
const adminUrl = yield spo_1.spo.getSpoAdminUrl(logger, this.debug);
|
|
45
45
|
const res = yield spo_1.spo.ensureFormDigest(adminUrl, logger, this.context, this.debug);
|
|
46
46
|
if (this.verbose) {
|
|
47
|
-
logger.logToStderr(`Removing deleted site collection ${args.options.
|
|
47
|
+
logger.logToStderr(`Removing deleted site collection ${args.options.siteUrl}...`);
|
|
48
48
|
}
|
|
49
49
|
const requestOptions = {
|
|
50
50
|
url: `${this.spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
51
51
|
headers: {
|
|
52
52
|
'X-RequestDigest': res.FormDigestValue
|
|
53
53
|
},
|
|
54
|
-
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="16" ObjectPathId="15" /><Query Id="17" ObjectPathId="15"><Query SelectAllProperties="false"><Properties><Property Name="PollingInterval" ScalarProperty="true" /><Property Name="IsComplete" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Method Id="15" ParentId="1" Name="RemoveDeletedSite"><Parameters><Parameter Type="String">${formatting_1.formatting.escapeXml(args.options.
|
|
54
|
+
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="16" ObjectPathId="15" /><Query Id="17" ObjectPathId="15"><Query SelectAllProperties="false"><Properties><Property Name="PollingInterval" ScalarProperty="true" /><Property Name="IsComplete" ScalarProperty="true" /></Properties></Query></Query></Actions><ObjectPaths><Method Id="15" ParentId="1" Name="RemoveDeletedSite"><Parameters><Parameter Type="String">${formatting_1.formatting.escapeXml(args.options.siteUrl)}</Parameter></Parameters></Method><Constructor Id="1" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
|
|
55
55
|
};
|
|
56
56
|
const processQuery = yield request_1.default.post(requestOptions);
|
|
57
57
|
const json = JSON.parse(processQuery);
|
|
@@ -94,7 +94,7 @@ class SpoTenantRecycleBinItemRemoveCommand extends SpoCommand_1.default {
|
|
|
94
94
|
type: 'confirm',
|
|
95
95
|
name: 'continue',
|
|
96
96
|
default: false,
|
|
97
|
-
message: `Are you sure you want to remove the deleted site collection ${args.options.
|
|
97
|
+
message: `Are you sure you want to remove the deleted site collection ${args.options.siteUrl} from tenant recycle bin?`
|
|
98
98
|
});
|
|
99
99
|
if (result.continue) {
|
|
100
100
|
yield removeDeletedSite();
|
|
@@ -112,14 +112,14 @@ _SpoTenantRecycleBinItemRemoveCommand_instances = new WeakSet(), _SpoTenantRecyc
|
|
|
112
112
|
});
|
|
113
113
|
}, _SpoTenantRecycleBinItemRemoveCommand_initOptions = function _SpoTenantRecycleBinItemRemoveCommand_initOptions() {
|
|
114
114
|
this.options.unshift({
|
|
115
|
-
option: '-u, --
|
|
115
|
+
option: '-u, --siteUrl <siteUrl>'
|
|
116
116
|
}, {
|
|
117
117
|
option: '--wait'
|
|
118
118
|
}, {
|
|
119
119
|
option: '--confirm'
|
|
120
120
|
});
|
|
121
121
|
}, _SpoTenantRecycleBinItemRemoveCommand_initValidators = function _SpoTenantRecycleBinItemRemoveCommand_initValidators() {
|
|
122
|
-
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.
|
|
122
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.siteUrl); }));
|
|
123
123
|
};
|
|
124
124
|
module.exports = new SpoTenantRecycleBinItemRemoveCommand();
|
|
125
125
|
//# sourceMappingURL=tenant-recyclebinitem-remove.js.map
|
|
@@ -45,7 +45,7 @@ class SpoTenantRecycleBinItemRestoreCommand extends SpoCommand_1.default {
|
|
|
45
45
|
'content-type': 'application/json;charset=utf-8'
|
|
46
46
|
},
|
|
47
47
|
data: {
|
|
48
|
-
siteUrl: args.options.
|
|
48
|
+
siteUrl: args.options.siteUrl
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
const res = yield request_1.default.post(requestOptions);
|
|
@@ -65,12 +65,12 @@ _SpoTenantRecycleBinItemRestoreCommand_instances = new WeakSet(), _SpoTenantRecy
|
|
|
65
65
|
});
|
|
66
66
|
}, _SpoTenantRecycleBinItemRestoreCommand_initOptions = function _SpoTenantRecycleBinItemRestoreCommand_initOptions() {
|
|
67
67
|
this.options.unshift({
|
|
68
|
-
option: '-u, --
|
|
68
|
+
option: '-u, --siteUrl <siteUrl>'
|
|
69
69
|
}, {
|
|
70
70
|
option: '--wait'
|
|
71
71
|
});
|
|
72
72
|
}, _SpoTenantRecycleBinItemRestoreCommand_initValidators = function _SpoTenantRecycleBinItemRestoreCommand_initValidators() {
|
|
73
|
-
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.
|
|
73
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.siteUrl); }));
|
|
74
74
|
};
|
|
75
75
|
module.exports = new SpoTenantRecycleBinItemRestoreCommand();
|
|
76
76
|
//# sourceMappingURL=tenant-recyclebinitem-restore.js.map
|
|
@@ -37,7 +37,7 @@ class SpoWebAddCommand extends SpoCommand_1.default {
|
|
|
37
37
|
return 'Create new subsite';
|
|
38
38
|
}
|
|
39
39
|
getExcludedOptionsWithUrls() {
|
|
40
|
-
return ['
|
|
40
|
+
return ['url'];
|
|
41
41
|
}
|
|
42
42
|
commandAction(logger, args) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -55,7 +55,7 @@ class SpoWebAddCommand extends SpoCommand_1.default {
|
|
|
55
55
|
responseType: 'json',
|
|
56
56
|
data: {
|
|
57
57
|
parameters: {
|
|
58
|
-
Url: args.options.
|
|
58
|
+
Url: args.options.url,
|
|
59
59
|
Title: args.options.title,
|
|
60
60
|
Description: args.options.description,
|
|
61
61
|
Language: args.options.locale,
|
|
@@ -72,7 +72,7 @@ class SpoWebAddCommand extends SpoCommand_1.default {
|
|
|
72
72
|
if (this.verbose) {
|
|
73
73
|
logger.logToStderr("Setting inheriting navigation from the parent site...");
|
|
74
74
|
}
|
|
75
|
-
subsiteFullUrl = `${args.options.parentWebUrl}/${encodeURIComponent(args.options.
|
|
75
|
+
subsiteFullUrl = `${args.options.parentWebUrl}/${encodeURIComponent(args.options.url)}`;
|
|
76
76
|
const requestOptionsPer = {
|
|
77
77
|
url: `${subsiteFullUrl}/_api/web/effectivebasepermissions`,
|
|
78
78
|
headers: {
|
|
@@ -134,7 +134,7 @@ _SpoWebAddCommand_instances = new WeakSet(), _SpoWebAddCommand_initTelemetry = f
|
|
|
134
134
|
}, {
|
|
135
135
|
option: '-d, --description [description]'
|
|
136
136
|
}, {
|
|
137
|
-
option: '-u, --
|
|
137
|
+
option: '-u, --url <url>'
|
|
138
138
|
}, {
|
|
139
139
|
option: '-w, --webTemplate <webTemplate>'
|
|
140
140
|
}, {
|
|
@@ -35,7 +35,7 @@ class SpoWebGetCommand extends SpoCommand_1.default {
|
|
|
35
35
|
}
|
|
36
36
|
commandAction(logger, args) {
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
let url = `${args.options.
|
|
38
|
+
let url = `${args.options.url}/_api/web`;
|
|
39
39
|
if (args.options.withGroups) {
|
|
40
40
|
url += '?$expand=AssociatedMemberGroup,AssociatedOwnerGroup,AssociatedVisitorGroup';
|
|
41
41
|
}
|
|
@@ -64,12 +64,12 @@ _SpoWebGetCommand_instances = new WeakSet(), _SpoWebGetCommand_initTelemetry = f
|
|
|
64
64
|
});
|
|
65
65
|
}, _SpoWebGetCommand_initOptions = function _SpoWebGetCommand_initOptions() {
|
|
66
66
|
this.options.unshift({
|
|
67
|
-
option: '-u, --
|
|
67
|
+
option: '-u, --url <url>'
|
|
68
68
|
}, {
|
|
69
69
|
option: '--withGroups'
|
|
70
70
|
});
|
|
71
71
|
}, _SpoWebGetCommand_initValidators = function _SpoWebGetCommand_initValidators() {
|
|
72
|
-
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.
|
|
72
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.url); }));
|
|
73
73
|
};
|
|
74
74
|
module.exports = new SpoWebGetCommand();
|
|
75
75
|
//# sourceMappingURL=web-get.js.map
|
|
@@ -38,9 +38,9 @@ class SpoWebListCommand extends SpoCommand_1.default {
|
|
|
38
38
|
commandAction(logger, args) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (this.verbose) {
|
|
41
|
-
logger.logToStderr(`Retrieving all webs in site at ${args.options.
|
|
41
|
+
logger.logToStderr(`Retrieving all webs in site at ${args.options.url}...`);
|
|
42
42
|
}
|
|
43
|
-
let requestUrl = `${args.options.
|
|
43
|
+
let requestUrl = `${args.options.url}/_api/web/webs`;
|
|
44
44
|
if (args.options.output !== 'json') {
|
|
45
45
|
requestUrl += '?$select=Title,Id,URL';
|
|
46
46
|
}
|
|
@@ -63,10 +63,10 @@ class SpoWebListCommand extends SpoCommand_1.default {
|
|
|
63
63
|
}
|
|
64
64
|
_SpoWebListCommand_instances = new WeakSet(), _SpoWebListCommand_initOptions = function _SpoWebListCommand_initOptions() {
|
|
65
65
|
this.options.unshift({
|
|
66
|
-
option: '-u, --
|
|
66
|
+
option: '-u, --url <url>'
|
|
67
67
|
});
|
|
68
68
|
}, _SpoWebListCommand_initValidators = function _SpoWebListCommand_initValidators() {
|
|
69
|
-
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.
|
|
69
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.url); }));
|
|
70
70
|
};
|
|
71
71
|
module.exports = new SpoWebListCommand();
|
|
72
72
|
//# sourceMappingURL=web-list.js.map
|
|
@@ -39,12 +39,12 @@ class SpoWebReindexCommand extends SpoCommand_1.default {
|
|
|
39
39
|
let requestDigest = '';
|
|
40
40
|
let webIdentityResp;
|
|
41
41
|
try {
|
|
42
|
-
const res = yield spo_1.spo.getRequestDigest(args.options.
|
|
42
|
+
const res = yield spo_1.spo.getRequestDigest(args.options.url);
|
|
43
43
|
requestDigest = res.FormDigestValue;
|
|
44
44
|
if (this.debug) {
|
|
45
45
|
logger.logToStderr(`Retrieved request digest. Retrieving web identity...`);
|
|
46
46
|
}
|
|
47
|
-
const identityResp = yield spo_1.spo.getCurrentWebIdentity(args.options.
|
|
47
|
+
const identityResp = yield spo_1.spo.getCurrentWebIdentity(args.options.url, requestDigest);
|
|
48
48
|
webIdentityResp = identityResp;
|
|
49
49
|
if (this.debug) {
|
|
50
50
|
logger.logToStderr(`Retrieved web identity.`);
|
|
@@ -52,18 +52,18 @@ class SpoWebReindexCommand extends SpoCommand_1.default {
|
|
|
52
52
|
if (this.verbose) {
|
|
53
53
|
logger.logToStderr(`Checking if the site is a no-script site...`);
|
|
54
54
|
}
|
|
55
|
-
const isNoScriptSite = yield propertybag_base_1.SpoPropertyBagBaseCommand.isNoScriptSite(args.options.
|
|
55
|
+
const isNoScriptSite = yield propertybag_base_1.SpoPropertyBagBaseCommand.isNoScriptSite(args.options.url, requestDigest, webIdentityResp, logger, this.debug);
|
|
56
56
|
if (isNoScriptSite) {
|
|
57
57
|
if (this.verbose) {
|
|
58
58
|
logger.logToStderr(`Site is a no-script site. Reindexing lists instead...`);
|
|
59
59
|
}
|
|
60
|
-
yield this.reindexLists(args.options.
|
|
60
|
+
yield this.reindexLists(args.options.url, requestDigest, logger, webIdentityResp);
|
|
61
61
|
}
|
|
62
62
|
if (this.verbose) {
|
|
63
63
|
logger.logToStderr(`Site is not a no-script site. Reindexing site...`);
|
|
64
64
|
}
|
|
65
65
|
const requestOptions = {
|
|
66
|
-
url: `${args.options.
|
|
66
|
+
url: `${args.options.url}/_api/web/allproperties`,
|
|
67
67
|
headers: {
|
|
68
68
|
'accept': 'application/json;odata=nometadata'
|
|
69
69
|
},
|
|
@@ -72,7 +72,7 @@ class SpoWebReindexCommand extends SpoCommand_1.default {
|
|
|
72
72
|
const webProperties = yield request_1.default.get(requestOptions);
|
|
73
73
|
let searchVersion = webProperties.vti_x005f_searchversion || 0;
|
|
74
74
|
searchVersion++;
|
|
75
|
-
yield propertybag_base_1.SpoPropertyBagBaseCommand.setProperty('vti_searchversion', searchVersion.toString(), args.options.
|
|
75
|
+
yield propertybag_base_1.SpoPropertyBagBaseCommand.setProperty('vti_searchversion', searchVersion.toString(), args.options.url, requestDigest, webIdentityResp, logger, this.debug);
|
|
76
76
|
}
|
|
77
77
|
catch (err) {
|
|
78
78
|
this.handleRejectedPromise(err);
|
|
@@ -127,10 +127,10 @@ class SpoWebReindexCommand extends SpoCommand_1.default {
|
|
|
127
127
|
}
|
|
128
128
|
_SpoWebReindexCommand_instances = new WeakSet(), _SpoWebReindexCommand_initOptions = function _SpoWebReindexCommand_initOptions() {
|
|
129
129
|
this.options.unshift({
|
|
130
|
-
option: '-u, --
|
|
130
|
+
option: '-u, --url <url>'
|
|
131
131
|
});
|
|
132
132
|
}, _SpoWebReindexCommand_initValidators = function _SpoWebReindexCommand_initValidators() {
|
|
133
|
-
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.
|
|
133
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.url); }));
|
|
134
134
|
};
|
|
135
135
|
module.exports = new SpoWebReindexCommand();
|
|
136
136
|
//# sourceMappingURL=web-reindex.js.map
|