@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
|
@@ -50,7 +50,7 @@ class SpoListViewGetCommand extends SpoCommand_1.default {
|
|
|
50
50
|
const listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
51
51
|
listRestUrl = `/GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')`;
|
|
52
52
|
}
|
|
53
|
-
const viewRestUrl = `/views/${(args.options.
|
|
53
|
+
const viewRestUrl = `/views/${(args.options.id ? `getById('${formatting_1.formatting.encodeQueryParameter(args.options.id)}')` : `getByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.title)}')`)}`;
|
|
54
54
|
const requestOptions = {
|
|
55
55
|
url: `${baseRestUrl}${listRestUrl}${viewRestUrl}`,
|
|
56
56
|
headers: {
|
|
@@ -74,8 +74,8 @@ _SpoListViewGetCommand_instances = new WeakSet(), _SpoListViewGetCommand_initTel
|
|
|
74
74
|
listId: typeof args.options.listId !== 'undefined',
|
|
75
75
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
76
76
|
listUrl: typeof args.options.listUrl !== 'undefined',
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
id: typeof args.options.id !== 'undefined',
|
|
78
|
+
title: typeof args.options.title !== 'undefined'
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
81
|
}, _SpoListViewGetCommand_initOptions = function _SpoListViewGetCommand_initOptions() {
|
|
@@ -88,9 +88,9 @@ _SpoListViewGetCommand_instances = new WeakSet(), _SpoListViewGetCommand_initTel
|
|
|
88
88
|
}, {
|
|
89
89
|
option: '--listUrl [listUrl]'
|
|
90
90
|
}, {
|
|
91
|
-
option: '--
|
|
91
|
+
option: '--id [id]'
|
|
92
92
|
}, {
|
|
93
|
-
option: '--
|
|
93
|
+
option: '--title [title]'
|
|
94
94
|
});
|
|
95
95
|
}, _SpoListViewGetCommand_initValidators = function _SpoListViewGetCommand_initValidators() {
|
|
96
96
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -102,14 +102,14 @@ _SpoListViewGetCommand_instances = new WeakSet(), _SpoListViewGetCommand_initTel
|
|
|
102
102
|
!validation_1.validation.isValidGuid(args.options.listId)) {
|
|
103
103
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
104
104
|
}
|
|
105
|
-
if (args.options.
|
|
106
|
-
!validation_1.validation.isValidGuid(args.options.
|
|
107
|
-
return `${args.options.
|
|
105
|
+
if (args.options.id &&
|
|
106
|
+
!validation_1.validation.isValidGuid(args.options.id)) {
|
|
107
|
+
return `${args.options.id} in option id is not a valid GUID`;
|
|
108
108
|
}
|
|
109
109
|
return true;
|
|
110
110
|
}));
|
|
111
111
|
}, _SpoListViewGetCommand_initOptionSets = function _SpoListViewGetCommand_initOptionSets() {
|
|
112
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['
|
|
112
|
+
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['id', 'title']);
|
|
113
113
|
};
|
|
114
114
|
module.exports = new SpoListViewGetCommand();
|
|
115
115
|
//# sourceMappingURL=list-view-get.js.map
|
|
@@ -41,11 +41,11 @@ class SpoListViewRemoveCommand extends SpoCommand_1.default {
|
|
|
41
41
|
const removeViewFromList = () => __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
if (this.verbose) {
|
|
43
43
|
const list = (args.options.listId ? args.options.listId : args.options.listTitle);
|
|
44
|
-
logger.logToStderr(`Removing view ${args.options.
|
|
44
|
+
logger.logToStderr(`Removing view ${args.options.id || args.options.title} from list ${list} in site at ${args.options.webUrl}...`);
|
|
45
45
|
}
|
|
46
46
|
let requestUrl = '';
|
|
47
47
|
const listSelector = args.options.listId ? `(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')` : `/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
48
|
-
const viewSelector = args.options.
|
|
48
|
+
const viewSelector = args.options.id ? `(guid'${formatting_1.formatting.encodeQueryParameter(args.options.id)}')` : `/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.title)}')`;
|
|
49
49
|
requestUrl = `${args.options.webUrl}/_api/web/lists${listSelector}/views${viewSelector}`;
|
|
50
50
|
const requestOptions = {
|
|
51
51
|
url: requestUrl,
|
|
@@ -72,7 +72,7 @@ class SpoListViewRemoveCommand extends SpoCommand_1.default {
|
|
|
72
72
|
type: 'confirm',
|
|
73
73
|
name: 'continue',
|
|
74
74
|
default: false,
|
|
75
|
-
message: `Are you sure you want to remove the view ${args.options.
|
|
75
|
+
message: `Are you sure you want to remove the view ${args.options.id || args.options.title} from the list ${args.options.listId || args.options.listTitle} in site ${args.options.webUrl}?`
|
|
76
76
|
});
|
|
77
77
|
if (result.continue) {
|
|
78
78
|
yield removeViewFromList();
|
|
@@ -86,8 +86,8 @@ _SpoListViewRemoveCommand_instances = new WeakSet(), _SpoListViewRemoveCommand_i
|
|
|
86
86
|
Object.assign(this.telemetryProperties, {
|
|
87
87
|
listId: typeof args.options.listId !== 'undefined',
|
|
88
88
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
id: typeof args.options.id !== 'undefined',
|
|
90
|
+
title: typeof args.options.title !== 'undefined',
|
|
91
91
|
confirm: (!(!args.options.confirm)).toString()
|
|
92
92
|
});
|
|
93
93
|
});
|
|
@@ -99,9 +99,9 @@ _SpoListViewRemoveCommand_instances = new WeakSet(), _SpoListViewRemoveCommand_i
|
|
|
99
99
|
}, {
|
|
100
100
|
option: '--listTitle [listTitle]'
|
|
101
101
|
}, {
|
|
102
|
-
option: '--
|
|
102
|
+
option: '--id [id]'
|
|
103
103
|
}, {
|
|
104
|
-
option: '--
|
|
104
|
+
option: '--title [title]'
|
|
105
105
|
}, {
|
|
106
106
|
option: '--confirm'
|
|
107
107
|
});
|
|
@@ -116,15 +116,15 @@ _SpoListViewRemoveCommand_instances = new WeakSet(), _SpoListViewRemoveCommand_i
|
|
|
116
116
|
return `${args.options.listId} is not a valid GUID`;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
if (args.options.
|
|
120
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
121
|
-
return `${args.options.
|
|
119
|
+
if (args.options.id) {
|
|
120
|
+
if (!validation_1.validation.isValidGuid(args.options.id)) {
|
|
121
|
+
return `${args.options.id} is not a valid GUID`;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
return true;
|
|
125
125
|
}));
|
|
126
126
|
}, _SpoListViewRemoveCommand_initOptionSets = function _SpoListViewRemoveCommand_initOptionSets() {
|
|
127
|
-
this.optionSets.push(['listId', 'listTitle'], ['
|
|
127
|
+
this.optionSets.push(['listId', 'listTitle'], ['id', 'title']);
|
|
128
128
|
};
|
|
129
129
|
module.exports = new SpoListViewRemoveCommand();
|
|
130
130
|
//# sourceMappingURL=list-view-remove.js.map
|
|
@@ -45,7 +45,7 @@ class SpoListViewSetCommand extends SpoCommand_1.default {
|
|
|
45
45
|
const listRestUrl = args.options.listId ?
|
|
46
46
|
`(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')`
|
|
47
47
|
: `/getByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
48
|
-
const viewRestUrl = `/views/${(args.options.
|
|
48
|
+
const viewRestUrl = `/views/${(args.options.id ? `getById('${formatting_1.formatting.encodeQueryParameter(args.options.id)}')` : `getByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.title)}')`)}`;
|
|
49
49
|
try {
|
|
50
50
|
const res = yield spo_1.spo.getRequestDigest(args.options.webUrl);
|
|
51
51
|
const requestOptions = {
|
|
@@ -71,8 +71,8 @@ class SpoListViewSetCommand extends SpoCommand_1.default {
|
|
|
71
71
|
'webUrl',
|
|
72
72
|
'listId',
|
|
73
73
|
'listTitle',
|
|
74
|
-
'
|
|
75
|
-
'
|
|
74
|
+
'id',
|
|
75
|
+
'title',
|
|
76
76
|
'debug',
|
|
77
77
|
'verbose',
|
|
78
78
|
'output'
|
|
@@ -90,8 +90,8 @@ _SpoListViewSetCommand_instances = new WeakSet(), _SpoListViewSetCommand_initTel
|
|
|
90
90
|
Object.assign(this.telemetryProperties, {
|
|
91
91
|
listId: typeof args.options.listId !== 'undefined',
|
|
92
92
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
id: typeof args.options.id !== 'undefined',
|
|
94
|
+
title: typeof args.options.title !== 'undefined'
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
}, _SpoListViewSetCommand_initOptions = function _SpoListViewSetCommand_initOptions() {
|
|
@@ -102,9 +102,9 @@ _SpoListViewSetCommand_instances = new WeakSet(), _SpoListViewSetCommand_initTel
|
|
|
102
102
|
}, {
|
|
103
103
|
option: '--listTitle [listTitle]'
|
|
104
104
|
}, {
|
|
105
|
-
option: '--
|
|
105
|
+
option: '--id [id]'
|
|
106
106
|
}, {
|
|
107
|
-
option: '--
|
|
107
|
+
option: '--title [title]'
|
|
108
108
|
});
|
|
109
109
|
}, _SpoListViewSetCommand_initValidators = function _SpoListViewSetCommand_initValidators() {
|
|
110
110
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -116,14 +116,14 @@ _SpoListViewSetCommand_instances = new WeakSet(), _SpoListViewSetCommand_initTel
|
|
|
116
116
|
!validation_1.validation.isValidGuid(args.options.listId)) {
|
|
117
117
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
118
118
|
}
|
|
119
|
-
if (args.options.
|
|
120
|
-
!validation_1.validation.isValidGuid(args.options.
|
|
121
|
-
return `${args.options.
|
|
119
|
+
if (args.options.id &&
|
|
120
|
+
!validation_1.validation.isValidGuid(args.options.id)) {
|
|
121
|
+
return `${args.options.id} in option id is not a valid GUID`;
|
|
122
122
|
}
|
|
123
123
|
return true;
|
|
124
124
|
}));
|
|
125
125
|
}, _SpoListViewSetCommand_initOptionSets = function _SpoListViewSetCommand_initOptionSets() {
|
|
126
|
-
this.optionSets.push(['listId', 'listTitle'], ['
|
|
126
|
+
this.optionSets.push(['listId', 'listTitle'], ['id', 'title']);
|
|
127
127
|
};
|
|
128
128
|
module.exports = new SpoListViewSetCommand();
|
|
129
129
|
//# sourceMappingURL=list-view-set.js.map
|
|
@@ -15,7 +15,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoListWebhookListCommand_instances, _SpoListWebhookListCommand_initTelemetry, _SpoListWebhookListCommand_initOptions, _SpoListWebhookListCommand_initValidators, _SpoListWebhookListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const chalk = require("chalk");
|
|
19
18
|
const request_1 = require("../../../../request");
|
|
20
19
|
const formatting_1 = require("../../../../utils/formatting");
|
|
21
20
|
const urlUtil_1 = require("../../../../utils/urlUtil");
|
|
@@ -42,28 +41,16 @@ class SpoListWebhookListCommand extends SpoCommand_1.default {
|
|
|
42
41
|
}
|
|
43
42
|
commandAction(logger, args) {
|
|
44
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
if (args.options.title && this.verbose) {
|
|
46
|
-
logger.logToStderr(chalk.yellow(`Option 'title' is deprecated. Please use 'listTitle' instead`));
|
|
47
|
-
}
|
|
48
|
-
if (args.options.id && this.verbose) {
|
|
49
|
-
logger.logToStderr(chalk.yellow(`Option 'id' is deprecated. Please use 'listId' instead`));
|
|
50
|
-
}
|
|
51
44
|
if (this.verbose) {
|
|
52
|
-
logger.logToStderr(`Retrieving webhook information for list ${args.options.
|
|
45
|
+
logger.logToStderr(`Retrieving webhook information for list ${args.options.listTitle || args.options.listId || args.options.listUrl} in site at ${args.options.webUrl}...`);
|
|
53
46
|
}
|
|
54
47
|
let requestUrl = `${args.options.webUrl}/_api/web`;
|
|
55
|
-
if (args.options.
|
|
56
|
-
requestUrl += `/lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.id)}')/Subscriptions`;
|
|
57
|
-
}
|
|
58
|
-
else if (args.options.listId) {
|
|
48
|
+
if (args.options.listId) {
|
|
59
49
|
requestUrl += `/lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')/Subscriptions`;
|
|
60
50
|
}
|
|
61
51
|
else if (args.options.listTitle) {
|
|
62
52
|
requestUrl += `/lists/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')/Subscriptions`;
|
|
63
53
|
}
|
|
64
|
-
else if (args.options.title) {
|
|
65
|
-
requestUrl += `/lists/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.title)}')/Subscriptions`;
|
|
66
|
-
}
|
|
67
54
|
else if (args.options.listUrl) {
|
|
68
55
|
const listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
69
56
|
requestUrl += `/GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')/Subscriptions`;
|
|
@@ -99,11 +86,9 @@ class SpoListWebhookListCommand extends SpoCommand_1.default {
|
|
|
99
86
|
_SpoListWebhookListCommand_instances = new WeakSet(), _SpoListWebhookListCommand_initTelemetry = function _SpoListWebhookListCommand_initTelemetry() {
|
|
100
87
|
this.telemetry.push((args) => {
|
|
101
88
|
Object.assign(this.telemetryProperties, {
|
|
102
|
-
id: typeof args.options.id !== 'undefined',
|
|
103
89
|
listId: typeof args.options.listId !== 'undefined',
|
|
104
90
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
105
|
-
listUrl: typeof args.options.listUrl !== 'undefined'
|
|
106
|
-
title: typeof args.options.title !== 'undefined'
|
|
91
|
+
listUrl: typeof args.options.listUrl !== 'undefined'
|
|
107
92
|
});
|
|
108
93
|
});
|
|
109
94
|
}, _SpoListWebhookListCommand_initOptions = function _SpoListWebhookListCommand_initOptions() {
|
|
@@ -115,10 +100,6 @@ _SpoListWebhookListCommand_instances = new WeakSet(), _SpoListWebhookListCommand
|
|
|
115
100
|
option: '-t, --listTitle [listTitle]'
|
|
116
101
|
}, {
|
|
117
102
|
option: '--listUrl [listUrl]'
|
|
118
|
-
}, {
|
|
119
|
-
option: '--id [id]'
|
|
120
|
-
}, {
|
|
121
|
-
option: '--title [title]'
|
|
122
103
|
});
|
|
123
104
|
}, _SpoListWebhookListCommand_initValidators = function _SpoListWebhookListCommand_initValidators() {
|
|
124
105
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -126,11 +107,6 @@ _SpoListWebhookListCommand_instances = new WeakSet(), _SpoListWebhookListCommand
|
|
|
126
107
|
if (isValidSharePointUrl !== true) {
|
|
127
108
|
return isValidSharePointUrl;
|
|
128
109
|
}
|
|
129
|
-
if (args.options.id) {
|
|
130
|
-
if (!validation_1.validation.isValidGuid(args.options.id)) {
|
|
131
|
-
return `${args.options.id} is not a valid GUID`;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
110
|
if (args.options.listId) {
|
|
135
111
|
if (!validation_1.validation.isValidGuid(args.options.listId)) {
|
|
136
112
|
return `${args.options.listId} is not a valid GUID`;
|
|
@@ -139,7 +115,7 @@ _SpoListWebhookListCommand_instances = new WeakSet(), _SpoListWebhookListCommand
|
|
|
139
115
|
return true;
|
|
140
116
|
}));
|
|
141
117
|
}, _SpoListWebhookListCommand_initOptionSets = function _SpoListWebhookListCommand_initOptionSets() {
|
|
142
|
-
this.optionSets.push(['
|
|
118
|
+
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
143
119
|
};
|
|
144
120
|
module.exports = new SpoListWebhookListCommand();
|
|
145
121
|
//# sourceMappingURL=list-webhook-list.js.map
|
|
@@ -39,12 +39,6 @@ class SpoListItemListCommand extends SpoCommand_1.default {
|
|
|
39
39
|
}
|
|
40
40
|
commandAction(logger, args) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
if (args.options.id) {
|
|
43
|
-
this.warn(logger, `Option 'id' is deprecated. Please use 'listId' instead.`);
|
|
44
|
-
}
|
|
45
|
-
if (args.options.title) {
|
|
46
|
-
this.warn(logger, `Option 'title' is deprecated. Please use 'listTitle' instead.`);
|
|
47
|
-
}
|
|
48
42
|
let requestUrl = `${args.options.webUrl}/_api/web`;
|
|
49
43
|
if (args.options.listId) {
|
|
50
44
|
requestUrl += `/lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')`;
|
|
@@ -52,12 +46,6 @@ class SpoListItemListCommand extends SpoCommand_1.default {
|
|
|
52
46
|
else if (args.options.listTitle) {
|
|
53
47
|
requestUrl += `/lists/getByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
54
48
|
}
|
|
55
|
-
else if (args.options.id) {
|
|
56
|
-
requestUrl += `/lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.id)}')`;
|
|
57
|
-
}
|
|
58
|
-
else if (args.options.title) {
|
|
59
|
-
requestUrl += `/lists/getByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.title)}')`;
|
|
60
|
-
}
|
|
61
49
|
else if (args.options.listUrl) {
|
|
62
50
|
const listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
63
51
|
requestUrl += `/GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')`;
|
|
@@ -128,11 +116,9 @@ class SpoListItemListCommand extends SpoCommand_1.default {
|
|
|
128
116
|
_SpoListItemListCommand_instances = new WeakSet(), _SpoListItemListCommand_initTelemetry = function _SpoListItemListCommand_initTelemetry() {
|
|
129
117
|
this.telemetry.push((args) => {
|
|
130
118
|
Object.assign(this.telemetryProperties, {
|
|
131
|
-
id: typeof args.options.id !== 'undefined',
|
|
132
119
|
listId: typeof args.options.listId !== 'undefined',
|
|
133
120
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
134
121
|
listUrl: typeof args.options.listUrl !== 'undefined',
|
|
135
|
-
title: typeof args.options.title !== 'undefined',
|
|
136
122
|
fields: typeof args.options.fields !== 'undefined',
|
|
137
123
|
filter: typeof args.options.filter !== 'undefined',
|
|
138
124
|
pageNumber: typeof args.options.pageNumber !== 'undefined',
|
|
@@ -143,10 +129,6 @@ _SpoListItemListCommand_instances = new WeakSet(), _SpoListItemListCommand_initT
|
|
|
143
129
|
}, _SpoListItemListCommand_initOptions = function _SpoListItemListCommand_initOptions() {
|
|
144
130
|
this.options.unshift({
|
|
145
131
|
option: '-u, --webUrl <webUrl>'
|
|
146
|
-
}, {
|
|
147
|
-
option: '--id [id]'
|
|
148
|
-
}, {
|
|
149
|
-
option: '--title [title]'
|
|
150
132
|
}, {
|
|
151
133
|
option: '-i, --listId [listId]'
|
|
152
134
|
}, {
|
|
@@ -170,14 +152,10 @@ _SpoListItemListCommand_instances = new WeakSet(), _SpoListItemListCommand_initT
|
|
|
170
152
|
if (isValidSharePointUrl !== true) {
|
|
171
153
|
return isValidSharePointUrl;
|
|
172
154
|
}
|
|
173
|
-
if (!args.options.
|
|
155
|
+
if (!args.options.listId && !args.options.listTitle && !args.options.listUrl) {
|
|
174
156
|
return `Specify listId or listTitle or listUrl`;
|
|
175
157
|
}
|
|
176
|
-
if (args.options.
|
|
177
|
-
return `Specify list id or title but not both`;
|
|
178
|
-
}
|
|
179
|
-
// Check if only one of the 4 options is specified
|
|
180
|
-
if ([args.options.id, args.options.title, args.options.listId, args.options.listTitle, args.options.listUrl].filter(o => o).length > 1) {
|
|
158
|
+
if ([args.options.listId, args.options.listTitle, args.options.listUrl].filter(o => o).length > 1) {
|
|
181
159
|
return 'Specify listId or listTitle or listUrl but not multiple';
|
|
182
160
|
}
|
|
183
161
|
if (args.options.camlQuery && args.options.fields) {
|
|
@@ -201,13 +179,10 @@ _SpoListItemListCommand_instances = new WeakSet(), _SpoListItemListCommand_initT
|
|
|
201
179
|
if (args.options.listId && !validation_1.validation.isValidGuid(args.options.listId)) {
|
|
202
180
|
return `${args.options.listId} is not a valid GUID`;
|
|
203
181
|
}
|
|
204
|
-
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
205
|
-
return `${args.options.id} in option id is not a valid GUID`;
|
|
206
|
-
}
|
|
207
182
|
return true;
|
|
208
183
|
}));
|
|
209
184
|
}, _SpoListItemListCommand_initTypes = function _SpoListItemListCommand_initTypes() {
|
|
210
|
-
this.types.string.push('webUrl', '
|
|
185
|
+
this.types.string.push('webUrl', 'camlQuery', 'pageSize', 'pageNumber', 'fields', 'filter');
|
|
211
186
|
};
|
|
212
187
|
module.exports = new SpoListItemListCommand();
|
|
213
188
|
//# sourceMappingURL=listitem-list.js.map
|
|
@@ -68,7 +68,7 @@ class SpoListItemRecordDeclareCommand extends SpoCommand_1.default {
|
|
|
68
68
|
const formDigestValue = contextResponse.FormDigestValue;
|
|
69
69
|
const webIdentityResp = yield spo_1.spo.getCurrentWebIdentity(args.options.webUrl, formDigestValue);
|
|
70
70
|
const webIdentity = webIdentityResp.objectIdentity;
|
|
71
|
-
const requestBody = this.getDeclareRecordRequestBody(webIdentity, listId, args.options.
|
|
71
|
+
const requestBody = this.getDeclareRecordRequestBody(webIdentity, listId, args.options.listItemId, args.options.date || '');
|
|
72
72
|
const requestOptions = {
|
|
73
73
|
url: `${args.options.webUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
74
74
|
headers: {
|
|
@@ -123,7 +123,7 @@ _SpoListItemRecordDeclareCommand_instances = new WeakSet(), _SpoListItemRecordDe
|
|
|
123
123
|
}, {
|
|
124
124
|
option: '--listUrl [listUrl]'
|
|
125
125
|
}, {
|
|
126
|
-
option: '-i, --
|
|
126
|
+
option: '-i, --listItemId <listItemId>'
|
|
127
127
|
}, {
|
|
128
128
|
option: '-d, --date [date]'
|
|
129
129
|
});
|
|
@@ -136,9 +136,9 @@ _SpoListItemRecordDeclareCommand_instances = new WeakSet(), _SpoListItemRecordDe
|
|
|
136
136
|
if (args.options.listId && !validation_1.validation.isValidGuid(args.options.listId)) {
|
|
137
137
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
138
138
|
}
|
|
139
|
-
const id = parseInt(args.options.
|
|
139
|
+
const id = parseInt(args.options.listItemId);
|
|
140
140
|
if (isNaN(id)) {
|
|
141
|
-
return `${args.options.
|
|
141
|
+
return `${args.options.listItemId} is not a number`;
|
|
142
142
|
}
|
|
143
143
|
if (id < 1) {
|
|
144
144
|
return `Item ID must be a positive number`;
|
|
@@ -79,7 +79,7 @@ class SpoListItemRecordUndeclareCommand extends SpoCommand_1.default {
|
|
|
79
79
|
'Content-Type': 'text/xml',
|
|
80
80
|
'X-RequestDigest': formDigestValue
|
|
81
81
|
},
|
|
82
|
-
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><StaticMethod TypeId="{ea8e1356-5910-4e69-bc05-d0c30ed657fc}" Name="UndeclareItemAsRecord" Id="53"><Parameters><Parameter ObjectPathId="49" /></Parameters></StaticMethod></Actions><ObjectPaths><Identity Id="49" Name="${objectIdentity.objectIdentity}:list:${listId}:item:${args.options.
|
|
82
|
+
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><StaticMethod TypeId="{ea8e1356-5910-4e69-bc05-d0c30ed657fc}" Name="UndeclareItemAsRecord" Id="53"><Parameters><Parameter ObjectPathId="49" /></Parameters></StaticMethod></Actions><ObjectPaths><Identity Id="49" Name="${objectIdentity.objectIdentity}:list:${listId}:item:${args.options.listItemId},1" /></ObjectPaths></Request>`
|
|
83
83
|
};
|
|
84
84
|
yield request_1.default.post(requestOptions);
|
|
85
85
|
// REST post call doesn't return anything
|
|
@@ -102,7 +102,7 @@ _SpoListItemRecordUndeclareCommand_instances = new WeakSet(), _SpoListItemRecord
|
|
|
102
102
|
this.options.unshift({
|
|
103
103
|
option: '-u, --webUrl <webUrl>'
|
|
104
104
|
}, {
|
|
105
|
-
option: '-i, --
|
|
105
|
+
option: '-i, --listItemId <listItemId>'
|
|
106
106
|
}, {
|
|
107
107
|
option: '-l, --listId [listId]'
|
|
108
108
|
}, {
|
|
@@ -112,9 +112,9 @@ _SpoListItemRecordUndeclareCommand_instances = new WeakSet(), _SpoListItemRecord
|
|
|
112
112
|
});
|
|
113
113
|
}, _SpoListItemRecordUndeclareCommand_initValidators = function _SpoListItemRecordUndeclareCommand_initValidators() {
|
|
114
114
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
115
|
-
const id = parseInt(args.options.
|
|
115
|
+
const id = parseInt(args.options.listItemId);
|
|
116
116
|
if (isNaN(id)) {
|
|
117
|
-
return `${args.options.
|
|
117
|
+
return `${args.options.listItemId} is not a valid list item ID`;
|
|
118
118
|
}
|
|
119
119
|
const isValidSharePointUrl = validation_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
120
120
|
if (isValidSharePointUrl !== true) {
|
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoListItemRoleInheritanceBreakCommand_instances, _SpoListItemRoleInheritanceBreakCommand_initTelemetry, _SpoListItemRoleInheritanceBreakCommand_initOptions, _SpoListItemRoleInheritanceBreakCommand_initValidators, _SpoListItemRoleInheritanceBreakCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const Cli_1 = require("../../../../cli/Cli");
|
|
18
19
|
const request_1 = require("../../../../request");
|
|
19
20
|
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const urlUtil_1 = require("../../../../utils/urlUtil");
|
|
@@ -37,39 +38,56 @@ class SpoListItemRoleInheritanceBreakCommand extends SpoCommand_1.default {
|
|
|
37
38
|
return 'Break inheritance of list item';
|
|
38
39
|
}
|
|
39
40
|
commandAction(logger, args) {
|
|
41
|
+
var _a;
|
|
40
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
43
|
if (this.verbose) {
|
|
42
44
|
logger.logToStderr(`Breaking role inheritance of list item in site at ${args.options.webUrl}...`);
|
|
43
45
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
const breakListItemRoleInheritance = () => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
try {
|
|
48
|
+
let requestUrl = `${args.options.webUrl}/_api/web`;
|
|
49
|
+
if (args.options.listId) {
|
|
50
|
+
requestUrl += `/lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')`;
|
|
51
|
+
}
|
|
52
|
+
else if (args.options.listTitle) {
|
|
53
|
+
requestUrl += `/lists/getbytitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
54
|
+
}
|
|
55
|
+
else if (args.options.listUrl) {
|
|
56
|
+
const listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
57
|
+
requestUrl += `/GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')`;
|
|
58
|
+
}
|
|
59
|
+
let keepExistingPermissions = true;
|
|
60
|
+
if (args.options.clearExistingPermissions) {
|
|
61
|
+
keepExistingPermissions = !args.options.clearExistingPermissions;
|
|
62
|
+
}
|
|
63
|
+
const requestOptions = {
|
|
64
|
+
url: `${requestUrl}/items(${args.options.listItemId})/breakroleinheritance(${keepExistingPermissions})`,
|
|
65
|
+
method: 'POST',
|
|
66
|
+
headers: {
|
|
67
|
+
'accept': 'application/json;odata=nometadata',
|
|
68
|
+
'content-type': 'application/json'
|
|
69
|
+
},
|
|
70
|
+
responseType: 'json'
|
|
71
|
+
};
|
|
72
|
+
yield request_1.default.post(requestOptions);
|
|
73
|
+
}
|
|
74
|
+
catch (err) {
|
|
75
|
+
this.handleRejectedODataJsonPromise(err);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
if (args.options.confirm) {
|
|
79
|
+
yield breakListItemRoleInheritance();
|
|
47
80
|
}
|
|
48
|
-
else
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
const requestOptions = {
|
|
60
|
-
url: `${requestUrl}/items(${args.options.listItemId})/breakroleinheritance(${keepExistingPermissions})`,
|
|
61
|
-
method: 'POST',
|
|
62
|
-
headers: {
|
|
63
|
-
'accept': 'application/json;odata=nometadata',
|
|
64
|
-
'content-type': 'application/json'
|
|
65
|
-
},
|
|
66
|
-
responseType: 'json'
|
|
67
|
-
};
|
|
68
|
-
try {
|
|
69
|
-
yield request_1.default.post(requestOptions);
|
|
70
|
-
}
|
|
71
|
-
catch (err) {
|
|
72
|
-
this.handleRejectedODataJsonPromise(err);
|
|
81
|
+
else {
|
|
82
|
+
const result = yield Cli_1.Cli.prompt({
|
|
83
|
+
type: 'confirm',
|
|
84
|
+
name: 'continue',
|
|
85
|
+
default: false,
|
|
86
|
+
message: `Are you sure you want to break the role inheritance of ${args.options.listItemId} in list ${(_a = args.options.listId) !== null && _a !== void 0 ? _a : args.options.listTitle}?`
|
|
87
|
+
});
|
|
88
|
+
if (result.continue) {
|
|
89
|
+
yield breakListItemRoleInheritance();
|
|
90
|
+
}
|
|
73
91
|
}
|
|
74
92
|
});
|
|
75
93
|
}
|
|
@@ -80,7 +98,8 @@ _SpoListItemRoleInheritanceBreakCommand_instances = new WeakSet(), _SpoListItemR
|
|
|
80
98
|
listId: typeof args.options.listId !== 'undefined',
|
|
81
99
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
82
100
|
listUrl: typeof args.options.listUrl !== 'undefined',
|
|
83
|
-
clearExistingPermissions: args.options.clearExistingPermissions === true
|
|
101
|
+
clearExistingPermissions: args.options.clearExistingPermissions === true,
|
|
102
|
+
confirm: (!(!args.options.confirm)).toString()
|
|
84
103
|
});
|
|
85
104
|
});
|
|
86
105
|
}, _SpoListItemRoleInheritanceBreakCommand_initOptions = function _SpoListItemRoleInheritanceBreakCommand_initOptions() {
|
|
@@ -96,6 +115,8 @@ _SpoListItemRoleInheritanceBreakCommand_instances = new WeakSet(), _SpoListItemR
|
|
|
96
115
|
option: '--listUrl [listUrl]'
|
|
97
116
|
}, {
|
|
98
117
|
option: '-c, --clearExistingPermissions'
|
|
118
|
+
}, {
|
|
119
|
+
option: '--confirm'
|
|
99
120
|
});
|
|
100
121
|
}, _SpoListItemRoleInheritanceBreakCommand_initValidators = function _SpoListItemRoleInheritanceBreakCommand_initValidators() {
|
|
101
122
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoListItemRoleInheritanceResetCommand_instances, _SpoListItemRoleInheritanceResetCommand_initTelemetry, _SpoListItemRoleInheritanceResetCommand_initOptions, _SpoListItemRoleInheritanceResetCommand_initValidators, _SpoListItemRoleInheritanceResetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const Cli_1 = require("../../../../cli/Cli");
|
|
18
19
|
const request_1 = require("../../../../request");
|
|
19
20
|
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const urlUtil_1 = require("../../../../utils/urlUtil");
|
|
@@ -37,32 +38,52 @@ class SpoListItemRoleInheritanceResetCommand extends SpoCommand_1.default {
|
|
|
37
38
|
return 'Restores the role inheritance of list item, file, or folder';
|
|
38
39
|
}
|
|
39
40
|
commandAction(logger, args) {
|
|
41
|
+
var _a;
|
|
40
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
requestUrl += `/lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')`;
|
|
43
|
+
if (this.verbose) {
|
|
44
|
+
logger.logToStderr(`Restore role inheritance of list item in site at ${args.options.webUrl}...`);
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
const resetListItemRoleInheritance = () => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
try {
|
|
48
|
+
let requestUrl = `${args.options.webUrl}/_api/web`;
|
|
49
|
+
if (args.options.listId) {
|
|
50
|
+
requestUrl += `/lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')`;
|
|
51
|
+
}
|
|
52
|
+
else if (args.options.listTitle) {
|
|
53
|
+
requestUrl += `/lists/getbytitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
54
|
+
}
|
|
55
|
+
else if (args.options.listUrl) {
|
|
56
|
+
const listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
57
|
+
requestUrl += `/GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')`;
|
|
58
|
+
}
|
|
59
|
+
const requestOptions = {
|
|
60
|
+
url: `${requestUrl}/items(${args.options.listItemId})/resetroleinheritance`,
|
|
61
|
+
method: 'POST',
|
|
62
|
+
headers: {
|
|
63
|
+
'accept': 'application/json;odata=nometadata',
|
|
64
|
+
'content-type': 'application/json'
|
|
65
|
+
},
|
|
66
|
+
responseType: 'json'
|
|
67
|
+
};
|
|
68
|
+
yield request_1.default.post(requestOptions);
|
|
69
|
+
}
|
|
70
|
+
catch (err) {
|
|
71
|
+
this.handleRejectedODataJsonPromise(err);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
if (args.options.confirm) {
|
|
75
|
+
yield resetListItemRoleInheritance();
|
|
47
76
|
}
|
|
48
|
-
else
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
responseType: 'json'
|
|
60
|
-
};
|
|
61
|
-
try {
|
|
62
|
-
yield request_1.default.post(requestOptions);
|
|
63
|
-
}
|
|
64
|
-
catch (err) {
|
|
65
|
-
this.handleRejectedODataJsonPromise(err);
|
|
77
|
+
else {
|
|
78
|
+
const result = yield Cli_1.Cli.prompt({
|
|
79
|
+
type: 'confirm',
|
|
80
|
+
name: 'continue',
|
|
81
|
+
default: false,
|
|
82
|
+
message: `Are you sure you want to reset the role inheritance of ${args.options.listItemId} in list ${(_a = args.options.listId) !== null && _a !== void 0 ? _a : args.options.listTitle}?`
|
|
83
|
+
});
|
|
84
|
+
if (result.continue) {
|
|
85
|
+
yield resetListItemRoleInheritance();
|
|
86
|
+
}
|
|
66
87
|
}
|
|
67
88
|
});
|
|
68
89
|
}
|
|
@@ -72,7 +93,8 @@ _SpoListItemRoleInheritanceResetCommand_instances = new WeakSet(), _SpoListItemR
|
|
|
72
93
|
Object.assign(this.telemetryProperties, {
|
|
73
94
|
listId: typeof args.options.listId !== 'undefined',
|
|
74
95
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
75
|
-
listUrl: typeof args.options.listUrl !== 'undefined'
|
|
96
|
+
listUrl: typeof args.options.listUrl !== 'undefined',
|
|
97
|
+
confirm: (!(!args.options.confirm)).toString()
|
|
76
98
|
});
|
|
77
99
|
});
|
|
78
100
|
}, _SpoListItemRoleInheritanceResetCommand_initOptions = function _SpoListItemRoleInheritanceResetCommand_initOptions() {
|
|
@@ -86,6 +108,8 @@ _SpoListItemRoleInheritanceResetCommand_instances = new WeakSet(), _SpoListItemR
|
|
|
86
108
|
option: '--listTitle [listTitle]'
|
|
87
109
|
}, {
|
|
88
110
|
option: '--listUrl [listUrl]'
|
|
111
|
+
}, {
|
|
112
|
+
option: '--confirm'
|
|
89
113
|
});
|
|
90
114
|
}, _SpoListItemRoleInheritanceResetCommand_initValidators = function _SpoListItemRoleInheritanceResetCommand_initValidators() {
|
|
91
115
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -35,7 +35,7 @@ class SpoPageColumnGetCommand extends SpoCommand_1.default {
|
|
|
35
35
|
commandAction(logger, args) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
try {
|
|
38
|
-
const clientSidePage = yield Page_1.Page.getPage(args.options.
|
|
38
|
+
const clientSidePage = yield Page_1.Page.getPage(args.options.pageName, args.options.webUrl, logger, this.debug, this.verbose);
|
|
39
39
|
const sections = clientSidePage.sections
|
|
40
40
|
.filter(section => section.order === args.options.section);
|
|
41
41
|
if (sections.length) {
|
|
@@ -64,7 +64,7 @@ _SpoPageColumnGetCommand_instances = new WeakSet(), _SpoPageColumnGetCommand_ini
|
|
|
64
64
|
this.options.unshift({
|
|
65
65
|
option: '-u, --webUrl <webUrl>'
|
|
66
66
|
}, {
|
|
67
|
-
option: '-n, --
|
|
67
|
+
option: '-n, --pageName <pageName>'
|
|
68
68
|
}, {
|
|
69
69
|
option: '-s, --section <section>'
|
|
70
70
|
}, {
|