@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,10 +41,6 @@ class PlannerBucketRemoveCommand extends GraphCommand_1.default {
|
|
|
41
41
|
}
|
|
42
42
|
commandAction(logger, args) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
if (args.options.planName) {
|
|
45
|
-
args.options.planTitle = args.options.planName;
|
|
46
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
47
|
-
}
|
|
48
44
|
if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
49
45
|
this.handleError('This command does not support application permissions.');
|
|
50
46
|
return;
|
|
@@ -142,7 +138,6 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
142
138
|
id: typeof args.options.id !== 'undefined',
|
|
143
139
|
name: typeof args.options.name !== 'undefined',
|
|
144
140
|
planId: typeof args.options.planId !== 'undefined',
|
|
145
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
146
141
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
147
142
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
148
143
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
@@ -156,8 +151,6 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
156
151
|
option: '-n, --name [name]'
|
|
157
152
|
}, {
|
|
158
153
|
option: '--planId [planId]'
|
|
159
|
-
}, {
|
|
160
|
-
option: '--planName [planName]'
|
|
161
154
|
}, {
|
|
162
155
|
option: "--planTitle [planTitle]"
|
|
163
156
|
}, {
|
|
@@ -170,18 +163,18 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
170
163
|
}, _PlannerBucketRemoveCommand_initValidators = function _PlannerBucketRemoveCommand_initValidators() {
|
|
171
164
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
172
165
|
if (args.options.id) {
|
|
173
|
-
if (args.options.planId || args.options.
|
|
166
|
+
if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
174
167
|
return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
175
168
|
}
|
|
176
169
|
}
|
|
177
170
|
else {
|
|
178
|
-
if (!args.options.planId && !args.options.
|
|
171
|
+
if (!args.options.planId && !args.options.planTitle) {
|
|
179
172
|
return 'Specify either planId or planTitle when using name';
|
|
180
173
|
}
|
|
181
|
-
if (args.options.planId &&
|
|
174
|
+
if (args.options.planId && args.options.planTitle) {
|
|
182
175
|
return 'Specify either planId or planTitle when using name but not both';
|
|
183
176
|
}
|
|
184
|
-
if (args.options.
|
|
177
|
+
if (args.options.planTitle) {
|
|
185
178
|
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
186
179
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
187
180
|
}
|
|
@@ -40,10 +40,6 @@ class PlannerBucketSetCommand extends GraphCommand_1.default {
|
|
|
40
40
|
}
|
|
41
41
|
commandAction(logger, args) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
if (args.options.planName) {
|
|
44
|
-
args.options.planTitle = args.options.planName;
|
|
45
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
46
|
-
}
|
|
47
43
|
if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
48
44
|
this.handleError('This command does not support application permissions.');
|
|
49
45
|
return;
|
|
@@ -133,7 +129,6 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
133
129
|
id: typeof args.options.id !== 'undefined',
|
|
134
130
|
name: typeof args.options.name !== 'undefined',
|
|
135
131
|
planId: typeof args.options.planId !== 'undefined',
|
|
136
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
137
132
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
138
133
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
139
134
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
@@ -148,8 +143,6 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
148
143
|
option: '-n, --name [name]'
|
|
149
144
|
}, {
|
|
150
145
|
option: '--planId [planId]'
|
|
151
|
-
}, {
|
|
152
|
-
option: '--planName [planName]'
|
|
153
146
|
}, {
|
|
154
147
|
option: "--planTitle [planTitle]"
|
|
155
148
|
}, {
|
|
@@ -164,18 +157,18 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
164
157
|
}, _PlannerBucketSetCommand_initValidators = function _PlannerBucketSetCommand_initValidators() {
|
|
165
158
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
166
159
|
if (args.options.id) {
|
|
167
|
-
if (args.options.planId || args.options.
|
|
160
|
+
if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
168
161
|
return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
169
162
|
}
|
|
170
163
|
}
|
|
171
164
|
if (args.options.name) {
|
|
172
|
-
if (!args.options.planId && !args.options.
|
|
165
|
+
if (!args.options.planId && !args.options.planTitle) {
|
|
173
166
|
return 'Specify either planId or planTitle when using name';
|
|
174
167
|
}
|
|
175
|
-
if (args.options.planId &&
|
|
168
|
+
if (args.options.planId && args.options.planTitle) {
|
|
176
169
|
return 'Specify either planId or planTitle when using name but not both';
|
|
177
170
|
}
|
|
178
|
-
if (args.options.
|
|
171
|
+
if (args.options.planTitle) {
|
|
179
172
|
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
180
173
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
181
174
|
}
|
|
@@ -34,9 +34,6 @@ class PlannerPlanGetCommand extends GraphCommand_1.default {
|
|
|
34
34
|
get name() {
|
|
35
35
|
return commands_1.default.PLAN_GET;
|
|
36
36
|
}
|
|
37
|
-
alias() {
|
|
38
|
-
return [commands_1.default.PLAN_DETAILS_GET];
|
|
39
|
-
}
|
|
40
37
|
get description() {
|
|
41
38
|
return 'Get a Microsoft Planner plan';
|
|
42
39
|
}
|
|
@@ -45,17 +42,10 @@ class PlannerPlanGetCommand extends GraphCommand_1.default {
|
|
|
45
42
|
}
|
|
46
43
|
commandAction(logger, args) {
|
|
47
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
this.showDeprecationWarning(logger, commands_1.default.PLAN_DETAILS_GET, commands_1.default.PLAN_GET);
|
|
49
45
|
if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
50
46
|
this.handleError('This command does not support application permissions.');
|
|
51
47
|
return;
|
|
52
48
|
}
|
|
53
|
-
if (args.options.planId) {
|
|
54
|
-
args.options.id = args.options.planId;
|
|
55
|
-
}
|
|
56
|
-
if (args.options.planTitle) {
|
|
57
|
-
args.options.title = args.options.planTitle;
|
|
58
|
-
}
|
|
59
49
|
try {
|
|
60
50
|
if (args.options.id) {
|
|
61
51
|
const plan = yield planner_1.planner.getPlanById(args.options.id);
|
|
@@ -103,8 +93,6 @@ class PlannerPlanGetCommand extends GraphCommand_1.default {
|
|
|
103
93
|
_PlannerPlanGetCommand_instances = new WeakSet(), _PlannerPlanGetCommand_initTelemetry = function _PlannerPlanGetCommand_initTelemetry() {
|
|
104
94
|
this.telemetry.push((args) => {
|
|
105
95
|
Object.assign(this.telemetryProperties, {
|
|
106
|
-
planId: typeof args.options.planId !== 'undefined',
|
|
107
|
-
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
108
96
|
id: typeof args.options.id !== 'undefined',
|
|
109
97
|
title: typeof args.options.title !== 'undefined',
|
|
110
98
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
@@ -113,10 +101,6 @@ _PlannerPlanGetCommand_instances = new WeakSet(), _PlannerPlanGetCommand_initTel
|
|
|
113
101
|
});
|
|
114
102
|
}, _PlannerPlanGetCommand_initOptions = function _PlannerPlanGetCommand_initOptions() {
|
|
115
103
|
this.options.unshift({
|
|
116
|
-
option: '--planId [planId]'
|
|
117
|
-
}, {
|
|
118
|
-
option: '--planTitle [planTitle]'
|
|
119
|
-
}, {
|
|
120
104
|
option: '-i, --id [id]'
|
|
121
105
|
}, {
|
|
122
106
|
option: '-t, --title [title]'
|
|
@@ -127,20 +111,17 @@ _PlannerPlanGetCommand_instances = new WeakSet(), _PlannerPlanGetCommand_initTel
|
|
|
127
111
|
});
|
|
128
112
|
}, _PlannerPlanGetCommand_initValidators = function _PlannerPlanGetCommand_initValidators() {
|
|
129
113
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
130
|
-
if (args.options.
|
|
131
|
-
args.options.id && args.options.title ||
|
|
132
|
-
args.options.planId && args.options.title ||
|
|
133
|
-
args.options.id && args.options.planTitle) {
|
|
114
|
+
if (args.options.id && args.options.title) {
|
|
134
115
|
return 'Specify either id or title but not both';
|
|
135
116
|
}
|
|
136
|
-
if (!args.options.
|
|
137
|
-
if (!args.options.
|
|
117
|
+
if (!args.options.id) {
|
|
118
|
+
if (!args.options.title) {
|
|
138
119
|
return 'Specify either id or title';
|
|
139
120
|
}
|
|
140
|
-
if (
|
|
121
|
+
if (args.options.title && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
141
122
|
return 'Specify either ownerGroupId or ownerGroupName';
|
|
142
123
|
}
|
|
143
|
-
if (
|
|
124
|
+
if (args.options.title && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
144
125
|
return 'Specify either ownerGroupId or ownerGroupName but not both';
|
|
145
126
|
}
|
|
146
127
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
@@ -44,10 +44,6 @@ class PlannerTaskAddCommand extends GraphCommand_1.default {
|
|
|
44
44
|
}
|
|
45
45
|
commandAction(logger, args) {
|
|
46
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
if (args.options.planName) {
|
|
48
|
-
args.options.planTitle = args.options.planName;
|
|
49
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
50
|
-
}
|
|
51
47
|
if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
52
48
|
this.handleError('This command does not support application permissions.');
|
|
53
49
|
return;
|
|
@@ -223,7 +219,6 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
223
219
|
this.telemetry.push((args) => {
|
|
224
220
|
Object.assign(this.telemetryProperties, {
|
|
225
221
|
planId: typeof args.options.planId !== 'undefined',
|
|
226
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
227
222
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
228
223
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
229
224
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
@@ -243,7 +238,7 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
243
238
|
});
|
|
244
239
|
});
|
|
245
240
|
}, _PlannerTaskAddCommand_initOptions = function _PlannerTaskAddCommand_initOptions() {
|
|
246
|
-
this.options.unshift({ option: '-t, --title <title>' }, { option: '--planId [planId]' }, { option: '--
|
|
241
|
+
this.options.unshift({ option: '-t, --title <title>' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, {
|
|
247
242
|
option: '--appliedCategories [appliedCategories]',
|
|
248
243
|
autocomplete: this.allowedAppliedCategories
|
|
249
244
|
}, {
|
|
@@ -252,10 +247,10 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
252
247
|
}, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority_1.taskPriority.priorityValues });
|
|
253
248
|
}, _PlannerTaskAddCommand_initValidators = function _PlannerTaskAddCommand_initValidators() {
|
|
254
249
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
255
|
-
if (
|
|
250
|
+
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
256
251
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
257
252
|
}
|
|
258
|
-
if (
|
|
253
|
+
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
259
254
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
260
255
|
}
|
|
261
256
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
@@ -35,27 +35,15 @@ class PlannerTaskGetCommand extends GraphCommand_1.default {
|
|
|
35
35
|
get name() {
|
|
36
36
|
return commands_1.default.TASK_GET;
|
|
37
37
|
}
|
|
38
|
-
alias() {
|
|
39
|
-
return [commands_1.default.TASK_DETAILS_GET];
|
|
40
|
-
}
|
|
41
38
|
get description() {
|
|
42
39
|
return 'Retrieve the specified planner task';
|
|
43
40
|
}
|
|
44
41
|
commandAction(logger, args) {
|
|
45
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
this.showDeprecationWarning(logger, commands_1.default.TASK_DETAILS_GET, commands_1.default.TASK_GET);
|
|
47
|
-
if (args.options.planName) {
|
|
48
|
-
args.options.planTitle = args.options.planName;
|
|
49
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
50
|
-
}
|
|
51
43
|
if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
52
44
|
this.handleError('This command does not support application permissions.');
|
|
53
45
|
return;
|
|
54
46
|
}
|
|
55
|
-
// This check has been added to support task details get alias. Needs to be removed when deprecation is removed.
|
|
56
|
-
if (args.options.taskId) {
|
|
57
|
-
args.options.id = args.options.taskId;
|
|
58
|
-
}
|
|
59
47
|
try {
|
|
60
48
|
const taskId = yield this.getTaskId(args.options);
|
|
61
49
|
const task = yield this.getTask(taskId);
|
|
@@ -174,14 +162,12 @@ _PlannerTaskGetCommand_instances = new WeakSet(), _PlannerTaskGetCommand_initTel
|
|
|
174
162
|
bucketId: typeof args.options.bucketId !== 'undefined',
|
|
175
163
|
bucketName: typeof args.options.bucketName !== 'undefined',
|
|
176
164
|
planId: typeof args.options.planId !== 'undefined',
|
|
177
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
178
165
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
179
166
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
180
167
|
});
|
|
181
168
|
});
|
|
182
169
|
}, _PlannerTaskGetCommand_initOptions = function _PlannerTaskGetCommand_initOptions() {
|
|
183
|
-
this.options.unshift({ option: '--
|
|
184
|
-
{ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planName [planName]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' });
|
|
170
|
+
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' });
|
|
185
171
|
}, _PlannerTaskGetCommand_initValidators = function _PlannerTaskGetCommand_initValidators() {
|
|
186
172
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
187
173
|
if (args.options.id) {
|
|
@@ -197,16 +183,16 @@ _PlannerTaskGetCommand_instances = new WeakSet(), _PlannerTaskGetCommand_initTel
|
|
|
197
183
|
if (args.options.title && args.options.bucketId && args.options.bucketName) {
|
|
198
184
|
return 'Specify either bucketId or bucketName when using title but not both';
|
|
199
185
|
}
|
|
200
|
-
if (args.options.bucketName && !args.options.planId && !args.options.
|
|
186
|
+
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
201
187
|
return 'Specify either planId or planTitle when using bucketName';
|
|
202
188
|
}
|
|
203
|
-
if (args.options.bucketName && args.options.planId &&
|
|
189
|
+
if (args.options.bucketName && args.options.planId && args.options.planTitle) {
|
|
204
190
|
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
205
191
|
}
|
|
206
|
-
if (
|
|
192
|
+
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
207
193
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
208
194
|
}
|
|
209
|
-
if (
|
|
195
|
+
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
210
196
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
211
197
|
}
|
|
212
198
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
@@ -43,10 +43,6 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
|
|
|
43
43
|
}
|
|
44
44
|
commandAction(logger, args) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
if (args.options.planName) {
|
|
47
|
-
args.options.planTitle = args.options.planName;
|
|
48
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
49
|
-
}
|
|
50
46
|
if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
51
47
|
this.handleError('This command does not support application permissions.');
|
|
52
48
|
return;
|
|
@@ -149,7 +145,6 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
149
145
|
bucketId: typeof args.options.bucketId !== 'undefined',
|
|
150
146
|
bucketName: typeof args.options.bucketName !== 'undefined',
|
|
151
147
|
planId: typeof args.options.planId !== 'undefined',
|
|
152
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
153
148
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
154
149
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
155
150
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
@@ -162,8 +157,6 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
162
157
|
option: '--bucketName [bucketName]'
|
|
163
158
|
}, {
|
|
164
159
|
option: '--planId [planId]'
|
|
165
|
-
}, {
|
|
166
|
-
option: '--planName [planName]'
|
|
167
160
|
}, {
|
|
168
161
|
option: '--planTitle [planTitle]'
|
|
169
162
|
}, {
|
|
@@ -176,16 +169,16 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
176
169
|
if (args.options.bucketId && args.options.bucketName) {
|
|
177
170
|
return 'To retrieve tasks from a bucket, specify bucketId or bucketName, but not both';
|
|
178
171
|
}
|
|
179
|
-
if (args.options.bucketName && !args.options.planId && !args.options.
|
|
172
|
+
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
180
173
|
return 'Specify either planId or planTitle when using bucketName';
|
|
181
174
|
}
|
|
182
|
-
if (args.options.planId &&
|
|
175
|
+
if (args.options.planId && args.options.planTitle) {
|
|
183
176
|
return 'Specify either planId or planTitle but not both';
|
|
184
177
|
}
|
|
185
|
-
if (
|
|
178
|
+
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
186
179
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
187
180
|
}
|
|
188
|
-
if (
|
|
181
|
+
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
189
182
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
190
183
|
}
|
|
191
184
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
@@ -42,10 +42,6 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
|
42
42
|
}
|
|
43
43
|
commandAction(logger, args) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
if (args.options.planName) {
|
|
46
|
-
args.options.planTitle = args.options.planName;
|
|
47
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
48
|
-
}
|
|
49
45
|
if (accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
50
46
|
this.handleError('This command does not support application permissions.');
|
|
51
47
|
return;
|
|
@@ -264,7 +260,6 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
264
260
|
Object.assign(this.telemetryProperties, {
|
|
265
261
|
title: typeof args.options.title !== 'undefined',
|
|
266
262
|
planId: typeof args.options.planId !== 'undefined',
|
|
267
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
268
263
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
269
264
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
270
265
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
@@ -283,22 +278,22 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
283
278
|
});
|
|
284
279
|
});
|
|
285
280
|
}, _PlannerTaskSetCommand_initOptions = function _PlannerTaskSetCommand_initOptions() {
|
|
286
|
-
this.options.unshift({ option: '-i, --id <id>' }, { option: '-t, --title [title]' }, { option: '--planId [planId]' }, { option: '--
|
|
281
|
+
this.options.unshift({ option: '-i, --id <id>' }, { option: '-t, --title [title]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, { option: '--appliedCategories [appliedCategories]' }, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority_1.taskPriority.priorityValues });
|
|
287
282
|
}, _PlannerTaskSetCommand_initValidators = function _PlannerTaskSetCommand_initValidators() {
|
|
288
283
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
289
284
|
if (args.options.bucketId && args.options.bucketName) {
|
|
290
285
|
return 'Specify either bucketId or bucketName but not both';
|
|
291
286
|
}
|
|
292
|
-
if (args.options.bucketName && !args.options.planId && !args.options.
|
|
287
|
+
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
293
288
|
return 'Specify either planId or planTitle when using bucketName';
|
|
294
289
|
}
|
|
295
|
-
if (args.options.bucketName && args.options.planId &&
|
|
290
|
+
if (args.options.bucketName && args.options.planId && args.options.planTitle) {
|
|
296
291
|
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
297
292
|
}
|
|
298
|
-
if (
|
|
293
|
+
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
299
294
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
300
295
|
}
|
|
301
|
-
if (
|
|
296
|
+
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
302
297
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
303
298
|
}
|
|
304
299
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
@@ -8,7 +8,6 @@ exports.default = {
|
|
|
8
8
|
BUCKET_SET: `${prefix} bucket set`,
|
|
9
9
|
BUCKET_REMOVE: `${prefix} bucket remove`,
|
|
10
10
|
PLAN_ADD: `${prefix} plan add`,
|
|
11
|
-
PLAN_DETAILS_GET: `${prefix} plan details get`,
|
|
12
11
|
PLAN_GET: `${prefix} plan get`,
|
|
13
12
|
PLAN_LIST: `${prefix} plan list`,
|
|
14
13
|
PLAN_REMOVE: `${prefix} plan remove`,
|
|
@@ -16,7 +15,6 @@ exports.default = {
|
|
|
16
15
|
TASK_CHECKLISTITEM_ADD: `${prefix} task checklistitem add`,
|
|
17
16
|
TASK_CHECKLISTITEM_LIST: `${prefix} task checklistitem list`,
|
|
18
17
|
TASK_CHECKLISTITEM_REMOVE: `${prefix} task checklistitem remove`,
|
|
19
|
-
TASK_DETAILS_GET: `${prefix} task details get`,
|
|
20
18
|
TASK_GET: `${prefix} task get`,
|
|
21
19
|
TASK_LIST: `${prefix} task list`,
|
|
22
20
|
TASK_REFERENCE_ADD: `${prefix} task reference add`,
|
|
@@ -132,7 +132,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand_1.default {
|
|
|
132
132
|
if (this.debug) {
|
|
133
133
|
logger.log('Writing archive...');
|
|
134
134
|
}
|
|
135
|
-
this.archive.writeZip(`${args.options.
|
|
135
|
+
this.archive.writeZip(`${args.options.name}.sppkg`);
|
|
136
136
|
}
|
|
137
137
|
catch (err) {
|
|
138
138
|
error = err.message;
|
|
@@ -196,7 +196,7 @@ _SpfxPackageGenerateCommand_instances = new WeakSet(), _SpfxPackageGenerateComma
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
}, _SpfxPackageGenerateCommand_initOptions = function _SpfxPackageGenerateCommand_initOptions() {
|
|
199
|
-
this.options.unshift({ option: '-t, --webPartTitle <webPartTitle>' }, { option: '-d, --webPartDescription <webPartDescription>' }, { option: '-n, --
|
|
199
|
+
this.options.unshift({ option: '-t, --webPartTitle <webPartTitle>' }, { option: '-d, --webPartDescription <webPartDescription>' }, { option: '-n, --name <name>' }, { option: '--html <html>' }, {
|
|
200
200
|
option: '--enableForTeams [enableForTeams]',
|
|
201
201
|
autocomplete: SpfxPackageGenerateCommand.enableForTeamsOptions
|
|
202
202
|
}, { option: '--exposePageContextGlobally' }, { option: '--exposeTeamsContextGlobally' }, { option: '--allowTenantWideDeployment' }, { option: '--developerName [developerName]' }, { option: '--developerPrivacyUrl [developerPrivacyUrl]' }, { option: '--developerTermsOfUseUrl [developerTermsOfUseUrl]' }, { option: '--developerWebsiteUrl [developerWebsiteUrl]' }, { option: '--developerMpnId [developerMpnId]' });
|
|
@@ -6,7 +6,7 @@ const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
|
6
6
|
class SpoAppBaseCommand extends SpoCommand_1.default {
|
|
7
7
|
getAppCatalogSiteUrl(logger, authSiteUrl, args) {
|
|
8
8
|
return new Promise((resolve, reject) => {
|
|
9
|
-
if (args.options.
|
|
9
|
+
if (args.options.appCatalogScope === 'sitecollection') {
|
|
10
10
|
return resolve(args.options.appCatalogUrl.toLowerCase().replace('/appcatalog', ''));
|
|
11
11
|
}
|
|
12
12
|
if (args.options.appCatalogUrl) {
|
|
@@ -38,7 +38,7 @@ class SpoAppAddCommand extends SpoAppBaseCommand_1.SpoAppBaseCommand {
|
|
|
38
38
|
}
|
|
39
39
|
commandAction(logger, args) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const scope = (args.options.
|
|
41
|
+
const scope = (args.options.appCatalogScope) ? args.options.appCatalogScope.toLowerCase() : 'tenant';
|
|
42
42
|
const overwrite = args.options.overwrite || false;
|
|
43
43
|
try {
|
|
44
44
|
const spoUrl = yield spo_1.spo.getSpoUrl(logger, this.debug);
|
|
@@ -75,7 +75,7 @@ _SpoAppAddCommand_instances = new WeakSet(), _SpoAppAddCommand_initTelemetry = f
|
|
|
75
75
|
this.telemetry.push((args) => {
|
|
76
76
|
Object.assign(this.telemetryProperties, {
|
|
77
77
|
overwrite: (!(!args.options.overwrite)).toString(),
|
|
78
|
-
|
|
78
|
+
appCatalogScope: args.options.appCatalogScope || 'tenant',
|
|
79
79
|
appCatalogUrl: (!(!args.options.appCatalogUrl)).toString()
|
|
80
80
|
});
|
|
81
81
|
});
|
|
@@ -83,7 +83,7 @@ _SpoAppAddCommand_instances = new WeakSet(), _SpoAppAddCommand_initTelemetry = f
|
|
|
83
83
|
this.options.unshift({
|
|
84
84
|
option: '-p, --filePath <filePath>'
|
|
85
85
|
}, {
|
|
86
|
-
option: '-s, --
|
|
86
|
+
option: '-s, --appCatalogScope [appCatalogScope]',
|
|
87
87
|
autocomplete: ['tenant', 'sitecollection']
|
|
88
88
|
}, {
|
|
89
89
|
option: '-u, --appCatalogUrl [appCatalogUrl]'
|
|
@@ -93,13 +93,13 @@ _SpoAppAddCommand_instances = new WeakSet(), _SpoAppAddCommand_initTelemetry = f
|
|
|
93
93
|
}, _SpoAppAddCommand_initValidators = function _SpoAppAddCommand_initValidators() {
|
|
94
94
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
95
95
|
// verify either 'tenant' or 'sitecollection' specified if scope provided
|
|
96
|
-
if (args.options.
|
|
97
|
-
const testScope = args.options.
|
|
96
|
+
if (args.options.appCatalogScope) {
|
|
97
|
+
const testScope = args.options.appCatalogScope.toLowerCase();
|
|
98
98
|
if (!(testScope === 'tenant' || testScope === 'sitecollection')) {
|
|
99
|
-
return `
|
|
99
|
+
return `appCatalogScope must be either 'tenant' or 'sitecollection'`;
|
|
100
100
|
}
|
|
101
101
|
if (testScope === 'sitecollection' && !args.options.appCatalogUrl) {
|
|
102
|
-
return `You must specify appCatalogUrl when the
|
|
102
|
+
return `You must specify appCatalogUrl when the appCatalogScope is sitecollection`;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
const fullPath = path.resolve(args.options.filePath);
|
|
@@ -38,7 +38,7 @@ class SpoAppDeployCommand extends SpoAppBaseCommand_1.SpoAppBaseCommand {
|
|
|
38
38
|
commandAction(logger, args) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
let appId = '';
|
|
41
|
-
const scope = (args.options.
|
|
41
|
+
const scope = (args.options.appCatalogScope) ? args.options.appCatalogScope.toLowerCase() : 'tenant';
|
|
42
42
|
let appCatalogUrl = '';
|
|
43
43
|
try {
|
|
44
44
|
const spoUrl = yield spo_1.spo.getSpoUrl(logger, this.debug);
|
|
@@ -91,7 +91,7 @@ _SpoAppDeployCommand_instances = new WeakSet(), _SpoAppDeployCommand_initTelemet
|
|
|
91
91
|
name: (!(!args.options.name)).toString(),
|
|
92
92
|
appCatalogUrl: (!(!args.options.appCatalogUrl)).toString(),
|
|
93
93
|
skipFeatureDeployment: args.options.skipFeatureDeployment || false,
|
|
94
|
-
|
|
94
|
+
appCatalogScope: (!(!args.options.appCatalogScope)).toString()
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
}, _SpoAppDeployCommand_initOptions = function _SpoAppDeployCommand_initOptions() {
|
|
@@ -104,19 +104,19 @@ _SpoAppDeployCommand_instances = new WeakSet(), _SpoAppDeployCommand_initTelemet
|
|
|
104
104
|
}, {
|
|
105
105
|
option: '--skipFeatureDeployment'
|
|
106
106
|
}, {
|
|
107
|
-
option: '-s, --
|
|
107
|
+
option: '-s, --appCatalogScope [appCatalogScope]',
|
|
108
108
|
autocomplete: ['tenant', 'sitecollection']
|
|
109
109
|
});
|
|
110
110
|
}, _SpoAppDeployCommand_initValidators = function _SpoAppDeployCommand_initValidators() {
|
|
111
111
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
112
112
|
// verify either 'tenant' or 'sitecollection' specified if scope provided
|
|
113
|
-
if (args.options.
|
|
114
|
-
const testScope = args.options.
|
|
113
|
+
if (args.options.appCatalogScope) {
|
|
114
|
+
const testScope = args.options.appCatalogScope.toLowerCase();
|
|
115
115
|
if (!(testScope === 'tenant' || testScope === 'sitecollection')) {
|
|
116
|
-
return `
|
|
116
|
+
return `appCatalogScope must be either 'tenant' or 'sitecollection'`;
|
|
117
117
|
}
|
|
118
118
|
if (testScope === 'sitecollection' && !args.options.appCatalogUrl) {
|
|
119
|
-
return `You must specify appCatalogUrl when the
|
|
119
|
+
return `You must specify appCatalogUrl when the appCatalogScope is sitecollection`;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
@@ -38,7 +38,7 @@ class SpoAppGetCommand extends SpoAppBaseCommand_1.SpoAppBaseCommand {
|
|
|
38
38
|
commandAction(logger, args) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
try {
|
|
41
|
-
const scope = (args.options.
|
|
41
|
+
const scope = (args.options.appCatalogScope) ? args.options.appCatalogScope.toLowerCase() : 'tenant';
|
|
42
42
|
const spoUrl = yield spo_1.spo.getSpoUrl(logger, this.debug);
|
|
43
43
|
const appCatalogSiteUrl = yield this.getAppCatalogSiteUrl(logger, spoUrl, args);
|
|
44
44
|
let appId;
|
|
@@ -84,7 +84,7 @@ _SpoAppGetCommand_instances = new WeakSet(), _SpoAppGetCommand_initTelemetry = f
|
|
|
84
84
|
id: (!(!args.options.id)).toString(),
|
|
85
85
|
name: (!(!args.options.name)).toString(),
|
|
86
86
|
appCatalogUrl: (!(!args.options.appCatalogUrl)).toString(),
|
|
87
|
-
|
|
87
|
+
appCatalogScope: args.options.appCatalogScope || 'tenant'
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
}, _SpoAppGetCommand_initOptions = function _SpoAppGetCommand_initOptions() {
|
|
@@ -95,19 +95,19 @@ _SpoAppGetCommand_instances = new WeakSet(), _SpoAppGetCommand_initTelemetry = f
|
|
|
95
95
|
}, {
|
|
96
96
|
option: '-u, --appCatalogUrl [appCatalogUrl]'
|
|
97
97
|
}, {
|
|
98
|
-
option: '-s, --
|
|
98
|
+
option: '-s, --appCatalogScope [appCatalogScope]',
|
|
99
99
|
autocomplete: ['tenant', 'sitecollection']
|
|
100
100
|
});
|
|
101
101
|
}, _SpoAppGetCommand_initValidators = function _SpoAppGetCommand_initValidators() {
|
|
102
102
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
103
103
|
// verify either 'tenant' or 'sitecollection' specified if scope provided
|
|
104
|
-
if (args.options.
|
|
105
|
-
const testScope = args.options.
|
|
104
|
+
if (args.options.appCatalogScope) {
|
|
105
|
+
const testScope = args.options.appCatalogScope.toLowerCase();
|
|
106
106
|
if (!(testScope === 'tenant' || testScope === 'sitecollection')) {
|
|
107
|
-
return `
|
|
107
|
+
return `appCatalogScope must be either 'tenant' or 'sitecollection'`;
|
|
108
108
|
}
|
|
109
109
|
if (testScope === 'sitecollection' && !args.options.appCatalogUrl) {
|
|
110
|
-
return `You must specify appCatalogUrl when the
|
|
110
|
+
return `You must specify appCatalogUrl when the appCatalogScope is sitecollection`;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
@@ -35,7 +35,7 @@ class SpoAppInstallCommand extends SpoCommand_1.default {
|
|
|
35
35
|
}
|
|
36
36
|
commandAction(logger, args) {
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const scope = (args.options.
|
|
38
|
+
const scope = (args.options.appCatalogScope) ? args.options.appCatalogScope.toLowerCase() : 'tenant';
|
|
39
39
|
if (this.verbose) {
|
|
40
40
|
logger.logToStderr(`Installing app '${args.options.id}' in site '${args.options.siteUrl}'...`);
|
|
41
41
|
}
|
|
@@ -57,7 +57,7 @@ class SpoAppInstallCommand extends SpoCommand_1.default {
|
|
|
57
57
|
_SpoAppInstallCommand_instances = new WeakSet(), _SpoAppInstallCommand_initTelemetry = function _SpoAppInstallCommand_initTelemetry() {
|
|
58
58
|
this.telemetry.push((args) => {
|
|
59
59
|
Object.assign(this.telemetryProperties, {
|
|
60
|
-
|
|
60
|
+
appCatalogScope: args.options.appCatalogScope || 'tenant'
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
}, _SpoAppInstallCommand_initOptions = function _SpoAppInstallCommand_initOptions() {
|
|
@@ -66,15 +66,15 @@ _SpoAppInstallCommand_instances = new WeakSet(), _SpoAppInstallCommand_initTelem
|
|
|
66
66
|
}, {
|
|
67
67
|
option: '-s, --siteUrl <siteUrl>'
|
|
68
68
|
}, {
|
|
69
|
-
option: '--
|
|
69
|
+
option: '--appCatalogScope [appCatalogScope]',
|
|
70
70
|
autocomplete: ['tenant', 'sitecollection']
|
|
71
71
|
});
|
|
72
72
|
}, _SpoAppInstallCommand_initValidators = function _SpoAppInstallCommand_initValidators() {
|
|
73
73
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
if (args.options.
|
|
75
|
-
const testScope = args.options.
|
|
74
|
+
if (args.options.appCatalogScope) {
|
|
75
|
+
const testScope = args.options.appCatalogScope.toLowerCase();
|
|
76
76
|
if (!(testScope === 'tenant' || testScope === 'sitecollection')) {
|
|
77
|
-
return `
|
|
77
|
+
return `appCatalogScope must be either 'tenant' or 'sitecollection' if specified`;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
if (!validation_1.validation.isValidGuid(args.options.id)) {
|