@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
|
@@ -41,7 +41,7 @@ class SpoListContentTypeAddCommand extends SpoCommand_1.default {
|
|
|
41
41
|
return __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 ? args.options.listTitle : args.options.listUrl);
|
|
44
|
-
logger.logToStderr(`Adding content type ${args.options.
|
|
44
|
+
logger.logToStderr(`Adding content type ${args.options.id} to list ${list} in site at ${args.options.webUrl}...`);
|
|
45
45
|
}
|
|
46
46
|
let requestUrl = `${args.options.webUrl}/_api/web/`;
|
|
47
47
|
if (args.options.listId) {
|
|
@@ -55,7 +55,7 @@ class SpoListContentTypeAddCommand extends SpoCommand_1.default {
|
|
|
55
55
|
requestUrl += `GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')`;
|
|
56
56
|
}
|
|
57
57
|
const requestBody = {
|
|
58
|
-
contentTypeId: args.options.
|
|
58
|
+
contentTypeId: args.options.id
|
|
59
59
|
};
|
|
60
60
|
const requestOptions = {
|
|
61
61
|
url: `${requestUrl}/ContentTypes/AddAvailableContentType`,
|
|
@@ -93,7 +93,7 @@ _SpoListContentTypeAddCommand_instances = new WeakSet(), _SpoListContentTypeAddC
|
|
|
93
93
|
}, {
|
|
94
94
|
option: '--listUrl [listUrl]'
|
|
95
95
|
}, {
|
|
96
|
-
option: '-
|
|
96
|
+
option: '-i, --id <id>'
|
|
97
97
|
});
|
|
98
98
|
}, _SpoListContentTypeAddCommand_initValidators = function _SpoListContentTypeAddCommand_initValidators() {
|
|
99
99
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -107,7 +107,7 @@ _SpoListContentTypeAddCommand_instances = new WeakSet(), _SpoListContentTypeAddC
|
|
|
107
107
|
return true;
|
|
108
108
|
}));
|
|
109
109
|
}, _SpoListContentTypeAddCommand_initTypes = function _SpoListContentTypeAddCommand_initTypes() {
|
|
110
|
-
this.types.string.push('
|
|
110
|
+
this.types.string.push('id', 'i');
|
|
111
111
|
}, _SpoListContentTypeAddCommand_initOptionSets = function _SpoListContentTypeAddCommand_initOptionSets() {
|
|
112
112
|
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
113
113
|
};
|
|
@@ -43,7 +43,7 @@ class SpoListContentTypeRemoveCommand extends SpoCommand_1.default {
|
|
|
43
43
|
const removeContentTypeFromList = () => __awaiter(this, void 0, void 0, function* () {
|
|
44
44
|
if (this.verbose) {
|
|
45
45
|
const list = (args.options.listId ? args.options.listId : args.options.listTitle ? args.options.listTitle : args.options.listUrl);
|
|
46
|
-
logger.logToStderr(`Removing content type ${args.options.
|
|
46
|
+
logger.logToStderr(`Removing content type ${args.options.id} from list ${list} in site at ${args.options.webUrl}...`);
|
|
47
47
|
}
|
|
48
48
|
let requestUrl = `${args.options.webUrl}/_api/web/`;
|
|
49
49
|
if (args.options.listId) {
|
|
@@ -57,7 +57,7 @@ class SpoListContentTypeRemoveCommand extends SpoCommand_1.default {
|
|
|
57
57
|
requestUrl += `GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')`;
|
|
58
58
|
}
|
|
59
59
|
const requestOptions = {
|
|
60
|
-
url: `${requestUrl}/ContentTypes('${encodeURIComponent(args.options.
|
|
60
|
+
url: `${requestUrl}/ContentTypes('${encodeURIComponent(args.options.id)}')`,
|
|
61
61
|
headers: {
|
|
62
62
|
'X-HTTP-Method': 'DELETE',
|
|
63
63
|
'If-Match': '*',
|
|
@@ -80,7 +80,7 @@ class SpoListContentTypeRemoveCommand extends SpoCommand_1.default {
|
|
|
80
80
|
type: 'confirm',
|
|
81
81
|
name: 'continue',
|
|
82
82
|
default: false,
|
|
83
|
-
message: `Are you sure you want to remove the content type ${args.options.
|
|
83
|
+
message: `Are you sure you want to remove the content type ${args.options.id} from the list ${args.options.listId ? args.options.listId : args.options.listTitle ? args.options.listTitle : args.options.listUrl} in site ${args.options.webUrl}?`
|
|
84
84
|
});
|
|
85
85
|
if (result.continue) {
|
|
86
86
|
yield removeContentTypeFromList();
|
|
@@ -108,7 +108,7 @@ _SpoListContentTypeRemoveCommand_instances = new WeakSet(), _SpoListContentTypeR
|
|
|
108
108
|
}, {
|
|
109
109
|
option: '--listUrl [listUrl]'
|
|
110
110
|
}, {
|
|
111
|
-
option: '-
|
|
111
|
+
option: '-i, --id <id>'
|
|
112
112
|
}, {
|
|
113
113
|
option: '--confirm'
|
|
114
114
|
});
|
|
@@ -126,7 +126,7 @@ _SpoListContentTypeRemoveCommand_instances = new WeakSet(), _SpoListContentTypeR
|
|
|
126
126
|
return true;
|
|
127
127
|
}));
|
|
128
128
|
}, _SpoListContentTypeRemoveCommand_initTypes = function _SpoListContentTypeRemoveCommand_initTypes() {
|
|
129
|
-
this.types.string.push('
|
|
129
|
+
this.types.string.push('id', 'i');
|
|
130
130
|
}, _SpoListContentTypeRemoveCommand_initOptionSets = function _SpoListContentTypeRemoveCommand_initOptionSets() {
|
|
131
131
|
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
132
132
|
};
|
|
@@ -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 _SpoListListCommand_instances,
|
|
16
|
+
var _SpoListListCommand_instances, _SpoListListCommand_initOptions, _SpoListListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
@@ -23,7 +23,6 @@ class SpoListListCommand extends SpoCommand_1.default {
|
|
|
23
23
|
constructor() {
|
|
24
24
|
super();
|
|
25
25
|
_SpoListListCommand_instances.add(this);
|
|
26
|
-
__classPrivateFieldGet(this, _SpoListListCommand_instances, "m", _SpoListListCommand_initTelemetry).call(this);
|
|
27
26
|
__classPrivateFieldGet(this, _SpoListListCommand_instances, "m", _SpoListListCommand_initOptions).call(this);
|
|
28
27
|
__classPrivateFieldGet(this, _SpoListListCommand_instances, "m", _SpoListListCommand_initValidators).call(this);
|
|
29
28
|
}
|
|
@@ -41,9 +40,8 @@ class SpoListListCommand extends SpoCommand_1.default {
|
|
|
41
40
|
if (this.verbose) {
|
|
42
41
|
logger.logToStderr(`Retrieving all lists in site at ${args.options.webUrl}...`);
|
|
43
42
|
}
|
|
44
|
-
const suffix = args.options.executeWithLimitedPermissions ? '&$select=RootFolder/ServerRelativeUrl,*' : '';
|
|
45
43
|
const requestOptions = {
|
|
46
|
-
url: `${args.options.webUrl}/_api/web/lists?$expand=RootFolder
|
|
44
|
+
url: `${args.options.webUrl}/_api/web/lists?$expand=RootFolder&$select=RootFolder/ServerRelativeUrl,*`,
|
|
47
45
|
method: 'GET',
|
|
48
46
|
headers: {
|
|
49
47
|
'accept': 'application/json;odata=nometadata'
|
|
@@ -63,17 +61,9 @@ class SpoListListCommand extends SpoCommand_1.default {
|
|
|
63
61
|
});
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
|
-
_SpoListListCommand_instances = new WeakSet(),
|
|
67
|
-
this.telemetry.push((args) => {
|
|
68
|
-
Object.assign(this.telemetryProperties, {
|
|
69
|
-
executeWithLimitedPermissions: !!args.options.executeWithLimitedPermissions
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
}, _SpoListListCommand_initOptions = function _SpoListListCommand_initOptions() {
|
|
64
|
+
_SpoListListCommand_instances = new WeakSet(), _SpoListListCommand_initOptions = function _SpoListListCommand_initOptions() {
|
|
73
65
|
this.options.unshift({
|
|
74
66
|
option: '-u, --webUrl <webUrl>'
|
|
75
|
-
}, {
|
|
76
|
-
option: '--executeWithLimitedPermissions'
|
|
77
67
|
});
|
|
78
68
|
}, _SpoListListCommand_initValidators = function _SpoListListCommand_initValidators() {
|
|
79
69
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.webUrl); }));
|
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoListRoleInheritanceBreakCommand_instances, _SpoListRoleInheritanceBreakCommand_initTelemetry, _SpoListRoleInheritanceBreakCommand_initOptions, _SpoListRoleInheritanceBreakCommand_initValidators, _SpoListRoleInheritanceBreakCommand_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 SpoListRoleInheritanceBreakCommand extends SpoCommand_1.default {
|
|
|
37
38
|
return 'Breaks role inheritance on list or library';
|
|
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 in site at ${args.options.webUrl}...`);
|
|
43
45
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
const breakListRoleInheritance = () => __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}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 breakListRoleInheritance();
|
|
47
80
|
}
|
|
48
|
-
else
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
const requestOptions = {
|
|
60
|
-
url: `${requestUrl}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 ${(_a = args.options.listId) !== null && _a !== void 0 ? _a : args.options.listTitle}?`
|
|
87
|
+
});
|
|
88
|
+
if (result.continue) {
|
|
89
|
+
yield breakListRoleInheritance();
|
|
90
|
+
}
|
|
73
91
|
}
|
|
74
92
|
});
|
|
75
93
|
}
|
|
@@ -80,7 +98,8 @@ _SpoListRoleInheritanceBreakCommand_instances = new WeakSet(), _SpoListRoleInher
|
|
|
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
|
}, _SpoListRoleInheritanceBreakCommand_initOptions = function _SpoListRoleInheritanceBreakCommand_initOptions() {
|
|
@@ -94,6 +113,8 @@ _SpoListRoleInheritanceBreakCommand_instances = new WeakSet(), _SpoListRoleInher
|
|
|
94
113
|
option: '--listUrl [listUrl]'
|
|
95
114
|
}, {
|
|
96
115
|
option: '-c, --clearExistingPermissions'
|
|
116
|
+
}, {
|
|
117
|
+
option: '--confirm'
|
|
97
118
|
});
|
|
98
119
|
}, _SpoListRoleInheritanceBreakCommand_initValidators = function _SpoListRoleInheritanceBreakCommand_initValidators() {
|
|
99
120
|
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 _SpoListRoleInheritanceResetCommand_instances, _SpoListRoleInheritanceResetCommand_initTelemetry, _SpoListRoleInheritanceResetCommand_initOptions, _SpoListRoleInheritanceResetCommand_initValidators, _SpoListRoleInheritanceResetCommand_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,35 +38,52 @@ class SpoListRoleInheritanceResetCommand extends SpoCommand_1.default {
|
|
|
37
38
|
return 'Restores role inheritance on list or library';
|
|
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(`Restore role inheritance of list in site at ${args.options.webUrl}...`);
|
|
43
45
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
const resetListRoleInheritance = () => __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}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 resetListRoleInheritance();
|
|
47
76
|
}
|
|
48
|
-
else
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
headers: {
|
|
59
|
-
'accept': 'application/json;odata=nometadata',
|
|
60
|
-
'content-type': 'application/json'
|
|
61
|
-
},
|
|
62
|
-
responseType: 'json'
|
|
63
|
-
};
|
|
64
|
-
try {
|
|
65
|
-
yield request_1.default.post(requestOptions);
|
|
66
|
-
}
|
|
67
|
-
catch (err) {
|
|
68
|
-
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 ${(_a = args.options.listId) !== null && _a !== void 0 ? _a : args.options.listTitle}?`
|
|
83
|
+
});
|
|
84
|
+
if (result.continue) {
|
|
85
|
+
yield resetListRoleInheritance();
|
|
86
|
+
}
|
|
69
87
|
}
|
|
70
88
|
});
|
|
71
89
|
}
|
|
@@ -75,7 +93,8 @@ _SpoListRoleInheritanceResetCommand_instances = new WeakSet(), _SpoListRoleInher
|
|
|
75
93
|
Object.assign(this.telemetryProperties, {
|
|
76
94
|
listId: typeof args.options.listId !== 'undefined',
|
|
77
95
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
78
|
-
listUrl: typeof args.options.listUrl !== 'undefined'
|
|
96
|
+
listUrl: typeof args.options.listUrl !== 'undefined',
|
|
97
|
+
confirm: (!(!args.options.confirm)).toString()
|
|
79
98
|
});
|
|
80
99
|
});
|
|
81
100
|
}, _SpoListRoleInheritanceResetCommand_initOptions = function _SpoListRoleInheritanceResetCommand_initOptions() {
|
|
@@ -87,6 +106,8 @@ _SpoListRoleInheritanceResetCommand_instances = new WeakSet(), _SpoListRoleInher
|
|
|
87
106
|
option: '-t, --listTitle [listTitle]'
|
|
88
107
|
}, {
|
|
89
108
|
option: '--listUrl [listUrl]'
|
|
109
|
+
}, {
|
|
110
|
+
option: '--confirm'
|
|
90
111
|
});
|
|
91
112
|
}, _SpoListRoleInheritanceResetCommand_initValidators = function _SpoListRoleInheritanceResetCommand_initValidators() {
|
|
92
113
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -41,12 +41,12 @@ class SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
|
41
41
|
let viewSelector = '';
|
|
42
42
|
let currentField;
|
|
43
43
|
if (this.verbose) {
|
|
44
|
-
logger.logToStderr(`Getting field ${args.options.
|
|
44
|
+
logger.logToStderr(`Getting field ${args.options.id || args.options.title}...`);
|
|
45
45
|
}
|
|
46
46
|
try {
|
|
47
47
|
const field = yield this.getField(args.options, listSelector);
|
|
48
48
|
if (this.verbose) {
|
|
49
|
-
logger.logToStderr(`Adding the field ${args.options.
|
|
49
|
+
logger.logToStderr(`Adding the field ${args.options.id || args.options.title} to the view ${args.options.viewId || args.options.viewTitle}...`);
|
|
50
50
|
}
|
|
51
51
|
currentField = field;
|
|
52
52
|
viewSelector = args.options.viewId ? `('${formatting_1.formatting.encodeQueryParameter(args.options.viewId)}')` : `/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.viewTitle)}')`;
|
|
@@ -59,7 +59,7 @@ class SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
|
59
59
|
responseType: 'json'
|
|
60
60
|
};
|
|
61
61
|
yield request_1.default.post(postRequestOptions);
|
|
62
|
-
if (typeof args.options.
|
|
62
|
+
if (typeof args.options.position === 'undefined') {
|
|
63
63
|
if (this.debug) {
|
|
64
64
|
logger.logToStderr(`No field position.`);
|
|
65
65
|
}
|
|
@@ -67,10 +67,10 @@ class SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
|
67
67
|
}
|
|
68
68
|
if (this.debug) {
|
|
69
69
|
logger.logToStderr(`moveField request...`);
|
|
70
|
-
logger.logToStderr(args.options.
|
|
70
|
+
logger.logToStderr(args.options.position);
|
|
71
71
|
}
|
|
72
72
|
if (this.verbose) {
|
|
73
|
-
logger.logToStderr(`Moving the field ${args.options.
|
|
73
|
+
logger.logToStderr(`Moving the field ${args.options.id || args.options.title} to the position ${args.options.position} from view ${args.options.viewId || args.options.viewTitle}...`);
|
|
74
74
|
}
|
|
75
75
|
const moveRequestUrl = `${args.options.webUrl}/_api/web/lists${listSelector}/views${viewSelector}/viewfields/moveviewfieldto`;
|
|
76
76
|
const moveRequestOptions = {
|
|
@@ -78,7 +78,7 @@ class SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
|
78
78
|
headers: {
|
|
79
79
|
'accept': 'application/json;odata=nometadata'
|
|
80
80
|
},
|
|
81
|
-
data: { 'field': currentField.InternalName, 'index': args.options.
|
|
81
|
+
data: { 'field': currentField.InternalName, 'index': args.options.position },
|
|
82
82
|
responseType: 'json'
|
|
83
83
|
};
|
|
84
84
|
yield request_1.default.post(moveRequestOptions);
|
|
@@ -90,7 +90,7 @@ class SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
getField(options, listSelector) {
|
|
93
|
-
const fieldSelector = options.
|
|
93
|
+
const fieldSelector = options.id ? `/getbyid('${encodeURIComponent(options.id)}')` : `/getbyinternalnameortitle('${encodeURIComponent(options.title)}')`;
|
|
94
94
|
const getRequestUrl = `${options.webUrl}/_api/web/lists${listSelector}/fields${fieldSelector}`;
|
|
95
95
|
const requestOptions = {
|
|
96
96
|
url: getRequestUrl,
|
|
@@ -109,9 +109,9 @@ _SpoListViewFieldAddCommand_instances = new WeakSet(), _SpoListViewFieldAddComma
|
|
|
109
109
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
110
110
|
viewId: typeof args.options.viewId !== 'undefined',
|
|
111
111
|
viewTitle: typeof args.options.viewTitle !== 'undefined',
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
id: typeof args.options.id !== 'undefined',
|
|
113
|
+
title: typeof args.options.title !== 'undefined',
|
|
114
|
+
position: typeof args.options.position !== 'undefined'
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
117
|
}, _SpoListViewFieldAddCommand_initOptions = function _SpoListViewFieldAddCommand_initOptions() {
|
|
@@ -126,11 +126,11 @@ _SpoListViewFieldAddCommand_instances = new WeakSet(), _SpoListViewFieldAddComma
|
|
|
126
126
|
}, {
|
|
127
127
|
option: '--viewTitle [viewTitle]'
|
|
128
128
|
}, {
|
|
129
|
-
option: '--
|
|
129
|
+
option: '--id [id]'
|
|
130
130
|
}, {
|
|
131
|
-
option: '--
|
|
131
|
+
option: '--title [title]'
|
|
132
132
|
}, {
|
|
133
|
-
option: '--
|
|
133
|
+
option: '--position [position]'
|
|
134
134
|
});
|
|
135
135
|
}, _SpoListViewFieldAddCommand_initValidators = function _SpoListViewFieldAddCommand_initValidators() {
|
|
136
136
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -148,21 +148,21 @@ _SpoListViewFieldAddCommand_instances = new WeakSet(), _SpoListViewFieldAddComma
|
|
|
148
148
|
return `${args.options.viewId} is not a valid GUID`;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
if (args.options.
|
|
152
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
153
|
-
return `${args.options.
|
|
151
|
+
if (args.options.id) {
|
|
152
|
+
if (!validation_1.validation.isValidGuid(args.options.id)) {
|
|
153
|
+
return `${args.options.id} is not a valid GUID`;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
if (args.options.
|
|
157
|
-
const position = parseInt(args.options.
|
|
156
|
+
if (args.options.position) {
|
|
157
|
+
const position = parseInt(args.options.position);
|
|
158
158
|
if (isNaN(position)) {
|
|
159
|
-
return `${args.options.
|
|
159
|
+
return `${args.options.position} is not a number`;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
return true;
|
|
163
163
|
}));
|
|
164
164
|
}, _SpoListViewFieldAddCommand_initOptionSets = function _SpoListViewFieldAddCommand_initOptionSets() {
|
|
165
|
-
this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['
|
|
165
|
+
this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['id', 'title']);
|
|
166
166
|
};
|
|
167
167
|
module.exports = new SpoListViewFieldAddCommand();
|
|
168
168
|
//# sourceMappingURL=list-view-field-add.js.map
|
|
@@ -42,11 +42,11 @@ class SpoListViewFieldRemoveCommand extends SpoCommand_1.default {
|
|
|
42
42
|
const removeFieldFromView = () => __awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
try {
|
|
44
44
|
if (this.verbose) {
|
|
45
|
-
logger.logToStderr(`Getting field ${args.options.
|
|
45
|
+
logger.logToStderr(`Getting field ${args.options.id || args.options.title}...`);
|
|
46
46
|
}
|
|
47
47
|
const field = yield this.getField(args.options, listSelector);
|
|
48
48
|
if (this.verbose) {
|
|
49
|
-
logger.logToStderr(`Removing field ${args.options.
|
|
49
|
+
logger.logToStderr(`Removing field ${args.options.id || args.options.title} from view ${args.options.viewId || args.options.viewTitle}...`);
|
|
50
50
|
}
|
|
51
51
|
const viewSelector = args.options.viewId ? `('${formatting_1.formatting.encodeQueryParameter(args.options.viewId)}')` : `/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.viewTitle)}')`;
|
|
52
52
|
const postRequestUrl = `${args.options.webUrl}/_api/web/lists${listSelector}/views${viewSelector}/viewfields/removeviewfield('${field.InternalName}')`;
|
|
@@ -72,7 +72,7 @@ class SpoListViewFieldRemoveCommand 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 field ${args.options.
|
|
75
|
+
message: `Are you sure you want to remove the field ${args.options.id || args.options.title} from the view ${args.options.viewId || args.options.viewTitle} from list ${args.options.listId || args.options.listTitle} in site ${args.options.webUrl}?`
|
|
76
76
|
});
|
|
77
77
|
if (result.continue) {
|
|
78
78
|
yield removeFieldFromView();
|
|
@@ -81,7 +81,7 @@ class SpoListViewFieldRemoveCommand extends SpoCommand_1.default {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
getField(options, listSelector) {
|
|
84
|
-
const fieldSelector = options.
|
|
84
|
+
const fieldSelector = options.id ? `/getbyid('${encodeURIComponent(options.id)}')` : `/getbyinternalnameortitle('${encodeURIComponent(options.title)}')`;
|
|
85
85
|
const getRequestUrl = `${options.webUrl}/_api/web/lists${listSelector}/fields${fieldSelector}`;
|
|
86
86
|
const requestOptions = {
|
|
87
87
|
url: getRequestUrl,
|
|
@@ -100,8 +100,8 @@ _SpoListViewFieldRemoveCommand_instances = new WeakSet(), _SpoListViewFieldRemov
|
|
|
100
100
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
101
101
|
viewId: typeof args.options.viewId !== 'undefined',
|
|
102
102
|
viewTitle: typeof args.options.viewTitle !== 'undefined',
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
id: typeof args.options.id !== 'undefined',
|
|
104
|
+
title: typeof args.options.title !== 'undefined',
|
|
105
105
|
confirm: (!(!args.options.confirm)).toString()
|
|
106
106
|
});
|
|
107
107
|
});
|
|
@@ -117,9 +117,9 @@ _SpoListViewFieldRemoveCommand_instances = new WeakSet(), _SpoListViewFieldRemov
|
|
|
117
117
|
}, {
|
|
118
118
|
option: '--viewTitle [viewTitle]'
|
|
119
119
|
}, {
|
|
120
|
-
option: '--
|
|
120
|
+
option: '--id [id]'
|
|
121
121
|
}, {
|
|
122
|
-
option: '--
|
|
122
|
+
option: '--title [title]'
|
|
123
123
|
}, {
|
|
124
124
|
option: '--confirm'
|
|
125
125
|
});
|
|
@@ -139,15 +139,15 @@ _SpoListViewFieldRemoveCommand_instances = new WeakSet(), _SpoListViewFieldRemov
|
|
|
139
139
|
return `${args.options.viewId} is not a valid GUID`;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
if (args.options.
|
|
143
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
142
|
+
if (args.options.id) {
|
|
143
|
+
if (!validation_1.validation.isValidGuid(args.options.id)) {
|
|
144
144
|
return `${args.options.viewId} is not a valid GUID`;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
return true;
|
|
148
148
|
}));
|
|
149
149
|
}, _SpoListViewFieldRemoveCommand_initOptionSets = function _SpoListViewFieldRemoveCommand_initOptionSets() {
|
|
150
|
-
this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['
|
|
150
|
+
this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['id', 'title']);
|
|
151
151
|
};
|
|
152
152
|
module.exports = new SpoListViewFieldRemoveCommand();
|
|
153
153
|
//# sourceMappingURL=list-view-field-remove.js.map
|
|
@@ -40,12 +40,12 @@ class SpoListViewFieldSetCommand extends SpoCommand_1.default {
|
|
|
40
40
|
const listSelector = args.options.listId ? `(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')` : `/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
41
41
|
const viewSelector = args.options.viewId ? `('${formatting_1.formatting.encodeQueryParameter(args.options.viewId)}')` : `/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.viewTitle)}')`;
|
|
42
42
|
if (this.verbose) {
|
|
43
|
-
logger.logToStderr(`Getting field ${args.options.
|
|
43
|
+
logger.logToStderr(`Getting field ${args.options.id || args.options.title}...`);
|
|
44
44
|
}
|
|
45
45
|
try {
|
|
46
46
|
const field = yield this.getField(args.options, listSelector);
|
|
47
47
|
if (this.verbose) {
|
|
48
|
-
logger.logToStderr(`Moving the field ${args.options.
|
|
48
|
+
logger.logToStderr(`Moving the field ${args.options.id || args.options.title} in view ${args.options.viewId || args.options.viewTitle} to position ${args.options.position}...`);
|
|
49
49
|
}
|
|
50
50
|
const moveRequestUrl = `${args.options.webUrl}/_api/web/lists${listSelector}/views${viewSelector}/viewfields/moveviewfieldto`;
|
|
51
51
|
const moveRequestOptions = {
|
|
@@ -55,7 +55,7 @@ class SpoListViewFieldSetCommand extends SpoCommand_1.default {
|
|
|
55
55
|
},
|
|
56
56
|
data: {
|
|
57
57
|
field: field.InternalName,
|
|
58
|
-
index: args.options.
|
|
58
|
+
index: args.options.position
|
|
59
59
|
},
|
|
60
60
|
responseType: 'json'
|
|
61
61
|
};
|
|
@@ -67,7 +67,7 @@ class SpoListViewFieldSetCommand extends SpoCommand_1.default {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
getField(options, listSelector) {
|
|
70
|
-
const fieldSelector = options.
|
|
70
|
+
const fieldSelector = options.id ? `/getbyid('${encodeURIComponent(options.id)}')` : `/getbyinternalnameortitle('${encodeURIComponent(options.title)}')`;
|
|
71
71
|
const getRequestUrl = `${options.webUrl}/_api/web/lists${listSelector}/fields${fieldSelector}`;
|
|
72
72
|
const requestOptions = {
|
|
73
73
|
url: getRequestUrl,
|
|
@@ -86,8 +86,8 @@ _SpoListViewFieldSetCommand_instances = new WeakSet(), _SpoListViewFieldSetComma
|
|
|
86
86
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
87
87
|
viewId: typeof args.options.viewId !== 'undefined',
|
|
88
88
|
viewTitle: typeof args.options.viewTitle !== 'undefined',
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
id: typeof args.options.id !== 'undefined',
|
|
90
|
+
title: typeof args.options.title !== 'undefined'
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
}, _SpoListViewFieldSetCommand_initOptions = function _SpoListViewFieldSetCommand_initOptions() {
|
|
@@ -102,11 +102,11 @@ _SpoListViewFieldSetCommand_instances = new WeakSet(), _SpoListViewFieldSetComma
|
|
|
102
102
|
}, {
|
|
103
103
|
option: '--viewTitle [viewTitle]'
|
|
104
104
|
}, {
|
|
105
|
-
option: '--
|
|
105
|
+
option: '--id [id]'
|
|
106
106
|
}, {
|
|
107
|
-
option: '--
|
|
107
|
+
option: '--title [title]'
|
|
108
108
|
}, {
|
|
109
|
-
option: '--
|
|
109
|
+
option: '--position <position>'
|
|
110
110
|
});
|
|
111
111
|
}, _SpoListViewFieldSetCommand_initValidators = function _SpoListViewFieldSetCommand_initValidators() {
|
|
112
112
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -124,19 +124,19 @@ _SpoListViewFieldSetCommand_instances = new WeakSet(), _SpoListViewFieldSetComma
|
|
|
124
124
|
return `${args.options.viewId} is not a valid GUID`;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
if (args.options.
|
|
128
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
129
|
-
return `${args.options.
|
|
127
|
+
if (args.options.id) {
|
|
128
|
+
if (!validation_1.validation.isValidGuid(args.options.id)) {
|
|
129
|
+
return `${args.options.id} is not a valid GUID`;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
const position = parseInt(args.options.
|
|
132
|
+
const position = parseInt(args.options.position);
|
|
133
133
|
if (isNaN(position)) {
|
|
134
|
-
return `${args.options.
|
|
134
|
+
return `${args.options.position} is not a number`;
|
|
135
135
|
}
|
|
136
136
|
return true;
|
|
137
137
|
}));
|
|
138
138
|
}, _SpoListViewFieldSetCommand_initOptionSets = function _SpoListViewFieldSetCommand_initOptionSets() {
|
|
139
|
-
this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['
|
|
139
|
+
this.optionSets.push(['listId', 'listTitle'], ['viewId', 'viewTitle'], ['id', 'title']);
|
|
140
140
|
};
|
|
141
141
|
module.exports = new SpoListViewFieldSetCommand();
|
|
142
142
|
//# sourceMappingURL=list-view-field-set.js.map
|