@pnp/cli-microsoft365 5.8.0-beta.f956c5d → 6.0.0-beta.0b0fb88
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 -4
- 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 +9 -9
- 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.js +0 -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-move.js +2 -2
- package/dist/m365/outlook/commands.js +1 -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 +0 -4
- 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 +2 -9
- 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 +2 -2
- 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/hubsite/hubsite-connect.js +7 -7
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -6
- 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 +6 -6
- package/dist/m365/spo/commands/list/list-list.js +3 -13
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +46 -21
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +42 -17
- 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/listitem/listitem-list.js +6 -25
- 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 +46 -21
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +45 -17
- 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/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-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/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 +5 -5
- 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 +43 -13
- package/dist/m365/spo/commands/web/web-set.js +4 -4
- package/dist/m365/spo/commands.js +0 -3
- 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 +12 -12
- 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 -13
- 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/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 +1 -7
- 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/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/outlook/mail/mail-send.md +1 -7
- 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 -6
- package/docs/docs/cmd/planner/task/task-add.md +0 -3
- package/docs/docs/cmd/planner/task/task-get.md +0 -3
- 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 +10 -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 +7 -7
- 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 +0 -3
- 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 +2 -2
- 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/hubsite/hubsite-connect.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +4 -4
- 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 +3 -3
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +3 -3
- 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 +7 -7
- 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 +9 -0
- 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 +4 -4
- 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 -2
- 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/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/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 -3
- package/docs/docs/cmd/teams/team/team-remove.md +0 -3
- package/docs/docs/cmd/teams/team/team-set.md +0 -3
- 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 -342
- package/dist/m365/spo/commands/site/site-classic-list.js +0 -106
- package/dist/m365/spo/commands/site/site-classic-set.js +0 -367
- 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
|
@@ -37,7 +37,7 @@ class SpoWebRemoveCommand extends SpoCommand_1.default {
|
|
|
37
37
|
commandAction(logger, args, cb) {
|
|
38
38
|
const removeWeb = () => {
|
|
39
39
|
const requestOptions = {
|
|
40
|
-
url: `${encodeURI(args.options.
|
|
40
|
+
url: `${encodeURI(args.options.url)}/_api/web`,
|
|
41
41
|
headers: {
|
|
42
42
|
accept: 'application/json;odata=nometadata',
|
|
43
43
|
'X-HTTP-Method': 'DELETE'
|
|
@@ -45,7 +45,7 @@ class SpoWebRemoveCommand extends SpoCommand_1.default {
|
|
|
45
45
|
responseType: 'json'
|
|
46
46
|
};
|
|
47
47
|
if (this.verbose) {
|
|
48
|
-
logger.logToStderr(`Deleting subsite ${args.options.
|
|
48
|
+
logger.logToStderr(`Deleting subsite ${args.options.url} ...`);
|
|
49
49
|
}
|
|
50
50
|
request_1.default
|
|
51
51
|
.post(requestOptions)
|
|
@@ -59,7 +59,7 @@ class SpoWebRemoveCommand extends SpoCommand_1.default {
|
|
|
59
59
|
type: 'confirm',
|
|
60
60
|
name: 'continue',
|
|
61
61
|
default: false,
|
|
62
|
-
message: `Are you sure you want to remove the subsite ${args.options.
|
|
62
|
+
message: `Are you sure you want to remove the subsite ${args.options.url}`
|
|
63
63
|
}, (result) => {
|
|
64
64
|
if (!result.continue) {
|
|
65
65
|
cb();
|
|
@@ -79,12 +79,12 @@ _SpoWebRemoveCommand_instances = new WeakSet(), _SpoWebRemoveCommand_initTelemet
|
|
|
79
79
|
});
|
|
80
80
|
}, _SpoWebRemoveCommand_initOptions = function _SpoWebRemoveCommand_initOptions() {
|
|
81
81
|
this.options.unshift({
|
|
82
|
-
option: '-u, --
|
|
82
|
+
option: '-u, --url <url>'
|
|
83
83
|
}, {
|
|
84
84
|
option: '--confirm'
|
|
85
85
|
});
|
|
86
86
|
}, _SpoWebRemoveCommand_initValidators = function _SpoWebRemoveCommand_initValidators() {
|
|
87
|
-
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.
|
|
87
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.url); }));
|
|
88
88
|
};
|
|
89
89
|
module.exports = new SpoWebRemoveCommand();
|
|
90
90
|
//# sourceMappingURL=web-remove.js.map
|
|
@@ -13,8 +13,9 @@ 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 _SpoWebRoleInheritanceResetCommand_instances, _SpoWebRoleInheritanceResetCommand_initOptions, _SpoWebRoleInheritanceResetCommand_initValidators;
|
|
16
|
+
var _SpoWebRoleInheritanceResetCommand_instances, _SpoWebRoleInheritanceResetCommand_initTelemetry, _SpoWebRoleInheritanceResetCommand_initOptions, _SpoWebRoleInheritanceResetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const cli_1 = require("../../../../cli");
|
|
18
19
|
const request_1 = require("../../../../request");
|
|
19
20
|
const utils_1 = require("../../../../utils");
|
|
20
21
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
@@ -23,6 +24,7 @@ class SpoWebRoleInheritanceResetCommand extends SpoCommand_1.default {
|
|
|
23
24
|
constructor() {
|
|
24
25
|
super();
|
|
25
26
|
_SpoWebRoleInheritanceResetCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoWebRoleInheritanceResetCommand_instances, "m", _SpoWebRoleInheritanceResetCommand_initTelemetry).call(this);
|
|
26
28
|
__classPrivateFieldGet(this, _SpoWebRoleInheritanceResetCommand_instances, "m", _SpoWebRoleInheritanceResetCommand_initOptions).call(this);
|
|
27
29
|
__classPrivateFieldGet(this, _SpoWebRoleInheritanceResetCommand_instances, "m", _SpoWebRoleInheritanceResetCommand_initValidators).call(this);
|
|
28
30
|
}
|
|
@@ -36,23 +38,51 @@ class SpoWebRoleInheritanceResetCommand extends SpoCommand_1.default {
|
|
|
36
38
|
if (this.verbose) {
|
|
37
39
|
logger.logToStderr(`Restore role inheritance of subsite at ${args.options.webUrl}...`);
|
|
38
40
|
}
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
const resetWebRoleInheritance = () => {
|
|
42
|
+
const requestOptions = {
|
|
43
|
+
url: `${args.options.webUrl}/_api/web/resetroleinheritance`,
|
|
44
|
+
method: 'POST',
|
|
45
|
+
headers: {
|
|
46
|
+
'accept': 'application/json;odata=nometadata',
|
|
47
|
+
'content-type': 'application/json'
|
|
48
|
+
},
|
|
49
|
+
responseType: 'json'
|
|
50
|
+
};
|
|
51
|
+
request_1.default
|
|
52
|
+
.post(requestOptions)
|
|
53
|
+
.then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
47
54
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
if (args.options.confirm) {
|
|
56
|
+
resetWebRoleInheritance();
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
cli_1.Cli.prompt({
|
|
60
|
+
type: 'confirm',
|
|
61
|
+
name: 'continue',
|
|
62
|
+
default: false,
|
|
63
|
+
message: `Are you sure you want to reset the role inheritance of ${args.options.webUrl}`
|
|
64
|
+
}, (result) => {
|
|
65
|
+
if (!result.continue) {
|
|
66
|
+
cb();
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
resetWebRoleInheritance();
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
51
73
|
}
|
|
52
74
|
}
|
|
53
|
-
_SpoWebRoleInheritanceResetCommand_instances = new WeakSet(),
|
|
75
|
+
_SpoWebRoleInheritanceResetCommand_instances = new WeakSet(), _SpoWebRoleInheritanceResetCommand_initTelemetry = function _SpoWebRoleInheritanceResetCommand_initTelemetry() {
|
|
76
|
+
this.telemetry.push((args) => {
|
|
77
|
+
Object.assign(this.telemetryProperties, {
|
|
78
|
+
confirm: (!(!args.options.confirm)).toString()
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
}, _SpoWebRoleInheritanceResetCommand_initOptions = function _SpoWebRoleInheritanceResetCommand_initOptions() {
|
|
54
82
|
this.options.unshift({
|
|
55
83
|
option: '-u, --webUrl <webUrl>'
|
|
84
|
+
}, {
|
|
85
|
+
option: '--confirm'
|
|
56
86
|
});
|
|
57
87
|
}, _SpoWebRoleInheritanceResetCommand_initValidators = function _SpoWebRoleInheritanceResetCommand_initValidators() {
|
|
58
88
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -65,7 +65,7 @@ class SpoWebSetCommand extends SpoCommand_1.default {
|
|
|
65
65
|
payload.SearchScope = SpoWebSetCommand.searchScopeOptions.indexOf(searchScope);
|
|
66
66
|
}
|
|
67
67
|
const requestOptions = {
|
|
68
|
-
url: `${args.options.
|
|
68
|
+
url: `${args.options.url}/_api/web`,
|
|
69
69
|
headers: {
|
|
70
70
|
'content-type': 'application/json;odata=nometadata',
|
|
71
71
|
accept: 'application/json;odata=nometadata'
|
|
@@ -74,7 +74,7 @@ class SpoWebSetCommand extends SpoCommand_1.default {
|
|
|
74
74
|
data: payload
|
|
75
75
|
};
|
|
76
76
|
if (this.verbose) {
|
|
77
|
-
logger.logToStderr(`Updating properties of subsite ${args.options.
|
|
77
|
+
logger.logToStderr(`Updating properties of subsite ${args.options.url}...`);
|
|
78
78
|
}
|
|
79
79
|
request_1.default
|
|
80
80
|
.patch(requestOptions)
|
|
@@ -101,7 +101,7 @@ _SpoWebSetCommand_instances = new WeakSet(), _SpoWebSetCommand_initTelemetry = f
|
|
|
101
101
|
});
|
|
102
102
|
}, _SpoWebSetCommand_initOptions = function _SpoWebSetCommand_initOptions() {
|
|
103
103
|
this.options.unshift({
|
|
104
|
-
option: '-u, --
|
|
104
|
+
option: '-u, --url <url>'
|
|
105
105
|
}, {
|
|
106
106
|
option: '-t, --title [title]'
|
|
107
107
|
}, {
|
|
@@ -128,7 +128,7 @@ _SpoWebSetCommand_instances = new WeakSet(), _SpoWebSetCommand_initTelemetry = f
|
|
|
128
128
|
});
|
|
129
129
|
}, _SpoWebSetCommand_initValidators = function _SpoWebSetCommand_initValidators() {
|
|
130
130
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
131
|
-
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.
|
|
131
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.url);
|
|
132
132
|
if (isValidSharePointUrl !== true) {
|
|
133
133
|
return isValidSharePointUrl;
|
|
134
134
|
}
|
|
@@ -193,9 +193,6 @@ exports.default = {
|
|
|
193
193
|
SITE_APPPERMISSION_LIST: `${prefix} site apppermission list`,
|
|
194
194
|
SITE_APPPERMISSION_REMOVE: `${prefix} site apppermission remove`,
|
|
195
195
|
SITE_APPPERMISSION_SET: `${prefix} site apppermission set`,
|
|
196
|
-
SITE_CLASSIC_ADD: `${prefix} site classic add`,
|
|
197
|
-
SITE_CLASSIC_LIST: `${prefix} site classic list`,
|
|
198
|
-
SITE_CLASSIC_SET: `${prefix} site classic set`,
|
|
199
196
|
SITE_COMMSITE_ENABLE: `${prefix} site commsite enable`,
|
|
200
197
|
SITE_ENSURE: `${prefix} site ensure`,
|
|
201
198
|
SITE_GET: `${prefix} site get`,
|
|
@@ -56,7 +56,7 @@ class TeamsAppInstallCommand extends GraphCommand_1.default {
|
|
|
56
56
|
},
|
|
57
57
|
responseType: 'json',
|
|
58
58
|
data: {
|
|
59
|
-
'teamsApp@odata.bind': `${this.resource}/v1.0/appCatalogs/teamsApps/${args.options.
|
|
59
|
+
'teamsApp@odata.bind': `${this.resource}/v1.0/appCatalogs/teamsApps/${args.options.id}`
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
return request_1.default.post(requestOptions);
|
|
@@ -102,11 +102,11 @@ _TeamsAppInstallCommand_instances = new WeakSet(), _TeamsAppInstallCommand_initT
|
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
104
|
}, _TeamsAppInstallCommand_initOptions = function _TeamsAppInstallCommand_initOptions() {
|
|
105
|
-
this.options.unshift({ option: '--
|
|
105
|
+
this.options.unshift({ option: '--id <id>' }, { option: '--teamId [teamId]' }, { option: '--userId [userId]' }, { option: '--userName [userName]' });
|
|
106
106
|
}, _TeamsAppInstallCommand_initValidators = function _TeamsAppInstallCommand_initValidators() {
|
|
107
107
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
if (!utils_1.validation.isValidGuid(args.options.
|
|
109
|
-
return `${args.options.
|
|
108
|
+
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
109
|
+
return `${args.options.id} is not a valid GUID`;
|
|
110
110
|
}
|
|
111
111
|
if (args.options.teamId &&
|
|
112
112
|
!utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
@@ -37,7 +37,7 @@ class TeamsAppUninstallCommand extends GraphCommand_1.default {
|
|
|
37
37
|
commandAction(logger, args, cb) {
|
|
38
38
|
const uninstallApp = () => {
|
|
39
39
|
const requestOptions = {
|
|
40
|
-
url: `${this.resource}/v1.0/teams/${args.options.teamId}/installedApps/${args.options.
|
|
40
|
+
url: `${this.resource}/v1.0/teams/${args.options.teamId}/installedApps/${args.options.id}`,
|
|
41
41
|
headers: {
|
|
42
42
|
accept: 'application/json;odata.metadata=none'
|
|
43
43
|
}
|
|
@@ -54,7 +54,7 @@ class TeamsAppUninstallCommand extends GraphCommand_1.default {
|
|
|
54
54
|
type: 'confirm',
|
|
55
55
|
name: 'continue',
|
|
56
56
|
default: false,
|
|
57
|
-
message: `Are you sure you want to uninstall the app with id ${args.options.
|
|
57
|
+
message: `Are you sure you want to uninstall the app with id ${args.options.id} from the Microsoft Teams team ${args.options.teamId}?`
|
|
58
58
|
}, (result) => {
|
|
59
59
|
if (!result.continue) {
|
|
60
60
|
cb();
|
|
@@ -74,7 +74,7 @@ _TeamsAppUninstallCommand_instances = new WeakSet(), _TeamsAppUninstallCommand_i
|
|
|
74
74
|
});
|
|
75
75
|
}, _TeamsAppUninstallCommand_initOptions = function _TeamsAppUninstallCommand_initOptions() {
|
|
76
76
|
this.options.unshift({
|
|
77
|
-
option: '--
|
|
77
|
+
option: '--id <id>'
|
|
78
78
|
}, {
|
|
79
79
|
option: '--teamId <teamId>'
|
|
80
80
|
}, {
|
|
@@ -50,14 +50,14 @@ class TeamsChannelGetCommand extends GraphCommand_1.default {
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
getChannelId(args) {
|
|
53
|
-
if (args.options.
|
|
54
|
-
return Promise.resolve(args.options.
|
|
53
|
+
if (args.options.id) {
|
|
54
|
+
return Promise.resolve(args.options.id);
|
|
55
55
|
}
|
|
56
56
|
if (args.options.primary) {
|
|
57
57
|
return Promise.resolve('');
|
|
58
58
|
}
|
|
59
59
|
const channelRequestOptions = {
|
|
60
|
-
url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.
|
|
60
|
+
url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
|
|
61
61
|
headers: {
|
|
62
62
|
accept: 'application/json;odata.metadata=none'
|
|
63
63
|
},
|
|
@@ -108,8 +108,8 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
|
|
|
108
108
|
Object.assign(this.telemetryProperties, {
|
|
109
109
|
teamId: typeof args.options.teamId !== 'undefined',
|
|
110
110
|
teamName: typeof args.options.teamName !== 'undefined',
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
id: typeof args.options.id !== 'undefined',
|
|
112
|
+
name: typeof args.options.name !== 'undefined',
|
|
113
113
|
primary: (!(!args.options.primary)).toString()
|
|
114
114
|
});
|
|
115
115
|
});
|
|
@@ -119,9 +119,9 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
|
|
|
119
119
|
}, {
|
|
120
120
|
option: '--teamName [teamName]'
|
|
121
121
|
}, {
|
|
122
|
-
option: '-c, --
|
|
122
|
+
option: '-c, --id [id]'
|
|
123
123
|
}, {
|
|
124
|
-
option: '--
|
|
124
|
+
option: '--name [name]'
|
|
125
125
|
}, {
|
|
126
126
|
option: '--primary'
|
|
127
127
|
});
|
|
@@ -130,13 +130,13 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
|
|
|
130
130
|
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
131
131
|
return `${args.options.teamId} is not a valid GUID`;
|
|
132
132
|
}
|
|
133
|
-
if (args.options.
|
|
134
|
-
return `${args.options.
|
|
133
|
+
if (args.options.id && !utils_1.validation.isValidTeamsChannelId(args.options.id)) {
|
|
134
|
+
return `${args.options.id} is not a valid Teams channel id`;
|
|
135
135
|
}
|
|
136
136
|
return true;
|
|
137
137
|
}));
|
|
138
138
|
}, _TeamsChannelGetCommand_initOptionSets = function _TeamsChannelGetCommand_initOptionSets() {
|
|
139
|
-
this.optionSets.push(['teamId', 'teamName'], ['
|
|
139
|
+
this.optionSets.push(['teamId', 'teamName'], ['id', 'name', 'primary']);
|
|
140
140
|
};
|
|
141
141
|
module.exports = new TeamsChannelGetCommand();
|
|
142
142
|
//# sourceMappingURL=channel-get.js.map
|
|
@@ -36,11 +36,7 @@ class TeamsChannelMemberAddCommand extends GraphCommand_1.default {
|
|
|
36
36
|
get description() {
|
|
37
37
|
return 'Adds a conversation member in a private channel.';
|
|
38
38
|
}
|
|
39
|
-
alias() {
|
|
40
|
-
return [commands_1.default.CONVERSATIONMEMBER_ADD];
|
|
41
|
-
}
|
|
42
39
|
commandAction(logger, args, cb) {
|
|
43
|
-
this.showDeprecationWarning(logger, commands_1.default.CONVERSATIONMEMBER_ADD, commands_1.default.CHANNEL_MEMBER_ADD);
|
|
44
40
|
let teamId = '';
|
|
45
41
|
let channelId = '';
|
|
46
42
|
this
|
|
@@ -36,14 +36,10 @@ class TeamsChannelMemberListCommand extends GraphCommand_1.default {
|
|
|
36
36
|
get description() {
|
|
37
37
|
return 'Lists members of the specified Microsoft Teams team channel';
|
|
38
38
|
}
|
|
39
|
-
alias() {
|
|
40
|
-
return [commands_1.default.CONVERSATIONMEMBER_LIST];
|
|
41
|
-
}
|
|
42
39
|
defaultProperties() {
|
|
43
40
|
return ['id', 'roles', 'displayName', 'userId', 'email'];
|
|
44
41
|
}
|
|
45
42
|
commandAction(logger, args, cb) {
|
|
46
|
-
this.showDeprecationWarning(logger, commands_1.default.CONVERSATIONMEMBER_LIST, commands_1.default.CHANNEL_MEMBER_LIST);
|
|
47
43
|
this
|
|
48
44
|
.getTeamId(args)
|
|
49
45
|
.then((teamId) => {
|
|
@@ -38,11 +38,7 @@ class TeamsChannelMemberRemoveCommand extends GraphCommand_1.default {
|
|
|
38
38
|
get description() {
|
|
39
39
|
return 'Updates the role of the specified member in the specified Microsoft Teams private team channel';
|
|
40
40
|
}
|
|
41
|
-
alias() {
|
|
42
|
-
return [commands_1.default.CONVERSATIONMEMBER_REMOVE];
|
|
43
|
-
}
|
|
44
41
|
commandAction(logger, args, cb) {
|
|
45
|
-
this.showDeprecationWarning(logger, commands_1.default.CONVERSATIONMEMBER_REMOVE, commands_1.default.CHANNEL_MEMBER_REMOVE);
|
|
46
42
|
const removeMember = () => {
|
|
47
43
|
this
|
|
48
44
|
.removeMemberFromChannel(args)
|
|
@@ -37,9 +37,9 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
|
37
37
|
}
|
|
38
38
|
commandAction(logger, args, cb) {
|
|
39
39
|
const removeChannel = () => {
|
|
40
|
-
if (args.options.
|
|
40
|
+
if (args.options.name) {
|
|
41
41
|
const requestOptions = {
|
|
42
|
-
url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.
|
|
42
|
+
url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
|
|
43
43
|
headers: {
|
|
44
44
|
accept: 'application/json;odata.metadata=none'
|
|
45
45
|
},
|
|
@@ -64,9 +64,9 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
|
64
64
|
})
|
|
65
65
|
.then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
66
66
|
}
|
|
67
|
-
if (args.options.
|
|
67
|
+
if (args.options.id) {
|
|
68
68
|
const requestOptions = {
|
|
69
|
-
url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${encodeURIComponent(args.options.
|
|
69
|
+
url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${encodeURIComponent(args.options.id)}`,
|
|
70
70
|
headers: {
|
|
71
71
|
accept: 'application/json;odata.metadata=none'
|
|
72
72
|
},
|
|
@@ -81,7 +81,7 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
|
81
81
|
removeChannel();
|
|
82
82
|
}
|
|
83
83
|
else {
|
|
84
|
-
const channelName = args.options.
|
|
84
|
+
const channelName = args.options.name ? args.options.name : args.options.id;
|
|
85
85
|
cli_1.Cli.prompt({
|
|
86
86
|
type: 'confirm',
|
|
87
87
|
name: 'continue',
|
|
@@ -101,16 +101,16 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
|
101
101
|
_TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand_initTelemetry = function _TeamsChannelRemoveCommand_initTelemetry() {
|
|
102
102
|
this.telemetry.push((args) => {
|
|
103
103
|
Object.assign(this.telemetryProperties, {
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
id: typeof args.options.id !== 'undefined',
|
|
105
|
+
name: typeof args.options.name !== 'undefined',
|
|
106
106
|
confirm: (!(!args.options.confirm)).toString()
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
}, _TeamsChannelRemoveCommand_initOptions = function _TeamsChannelRemoveCommand_initOptions() {
|
|
110
110
|
this.options.unshift({
|
|
111
|
-
option: '-c, --
|
|
111
|
+
option: '-c, --id [id]'
|
|
112
112
|
}, {
|
|
113
|
-
option: '-n, --
|
|
113
|
+
option: '-n, --name [name]'
|
|
114
114
|
}, {
|
|
115
115
|
option: '-i, --teamId <teamId>'
|
|
116
116
|
}, {
|
|
@@ -118,8 +118,8 @@ _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand
|
|
|
118
118
|
});
|
|
119
119
|
}, _TeamsChannelRemoveCommand_initValidators = function _TeamsChannelRemoveCommand_initValidators() {
|
|
120
120
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
121
|
-
if (args.options.
|
|
122
|
-
return `${args.options.
|
|
121
|
+
if (args.options.id && !utils_1.validation.isValidTeamsChannelId(args.options.id)) {
|
|
122
|
+
return `${args.options.id} is not a valid Teams channel id`;
|
|
123
123
|
}
|
|
124
124
|
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
125
125
|
return `${args.options.teamId} is not a valid GUID`;
|
|
@@ -127,7 +127,7 @@ _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand
|
|
|
127
127
|
return true;
|
|
128
128
|
}));
|
|
129
129
|
}, _TeamsChannelRemoveCommand_initOptionSets = function _TeamsChannelRemoveCommand_initOptionSets() {
|
|
130
|
-
this.optionSets.push(['
|
|
130
|
+
this.optionSets.push(['id', 'name']);
|
|
131
131
|
};
|
|
132
132
|
module.exports = new TeamsChannelRemoveCommand();
|
|
133
133
|
//# sourceMappingURL=channel-remove.js.map
|
|
@@ -35,7 +35,7 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
|
|
|
35
35
|
}
|
|
36
36
|
commandAction(logger, args, cb) {
|
|
37
37
|
const requestOptions = {
|
|
38
|
-
url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.
|
|
38
|
+
url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
|
|
39
39
|
headers: {
|
|
40
40
|
accept: 'application/json;odata.metadata=none'
|
|
41
41
|
},
|
|
@@ -64,8 +64,8 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
|
|
|
64
64
|
}
|
|
65
65
|
mapRequestBody(options) {
|
|
66
66
|
const requestBody = {};
|
|
67
|
-
if (options.
|
|
68
|
-
requestBody.displayName = options.
|
|
67
|
+
if (options.newName) {
|
|
68
|
+
requestBody.displayName = options.newName;
|
|
69
69
|
}
|
|
70
70
|
if (options.description) {
|
|
71
71
|
requestBody.description = options.description;
|
|
@@ -76,7 +76,7 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
|
|
|
76
76
|
_TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initTelemetry = function _TeamsChannelSetCommand_initTelemetry() {
|
|
77
77
|
this.telemetry.push((args) => {
|
|
78
78
|
Object.assign(this.telemetryProperties, {
|
|
79
|
-
|
|
79
|
+
newName: typeof args.options.newName !== 'undefined',
|
|
80
80
|
description: typeof args.options.description !== 'undefined'
|
|
81
81
|
});
|
|
82
82
|
});
|
|
@@ -84,9 +84,9 @@ _TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initT
|
|
|
84
84
|
this.options.unshift({
|
|
85
85
|
option: '-i, --teamId <teamId>'
|
|
86
86
|
}, {
|
|
87
|
-
option: '--
|
|
87
|
+
option: '--name <name>'
|
|
88
88
|
}, {
|
|
89
|
-
option: '--
|
|
89
|
+
option: '--newName [newName]'
|
|
90
90
|
}, {
|
|
91
91
|
option: '--description [description]'
|
|
92
92
|
});
|
|
@@ -95,7 +95,7 @@ _TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initT
|
|
|
95
95
|
if (!utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
96
96
|
return `${args.options.teamId} is not a valid GUID`;
|
|
97
97
|
}
|
|
98
|
-
if (args.options.
|
|
98
|
+
if (args.options.name.toLowerCase() === "general") {
|
|
99
99
|
return 'General channel cannot be updated';
|
|
100
100
|
}
|
|
101
101
|
return true;
|
|
@@ -34,7 +34,7 @@ class TeamsMessageGetCommand extends GraphCommand_1.default {
|
|
|
34
34
|
}
|
|
35
35
|
commandAction(logger, args, cb) {
|
|
36
36
|
const requestOptions = {
|
|
37
|
-
url: `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages/${args.options.
|
|
37
|
+
url: `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages/${args.options.id}`,
|
|
38
38
|
headers: {
|
|
39
39
|
accept: 'application/json;odata.metadata=none'
|
|
40
40
|
},
|
|
@@ -50,11 +50,11 @@ class TeamsMessageGetCommand extends GraphCommand_1.default {
|
|
|
50
50
|
}
|
|
51
51
|
_TeamsMessageGetCommand_instances = new WeakSet(), _TeamsMessageGetCommand_initOptions = function _TeamsMessageGetCommand_initOptions() {
|
|
52
52
|
this.options.unshift({
|
|
53
|
-
option: '-
|
|
53
|
+
option: '-t, --teamId <teamId>'
|
|
54
54
|
}, {
|
|
55
55
|
option: '-c, --channelId <channelId>'
|
|
56
56
|
}, {
|
|
57
|
-
option: '-
|
|
57
|
+
option: '-i, --id <id>'
|
|
58
58
|
});
|
|
59
59
|
}, _TeamsMessageGetCommand_initValidators = function _TeamsMessageGetCommand_initValidators() {
|
|
60
60
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -72,11 +72,11 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
getTabId(args) {
|
|
75
|
-
if (args.options.
|
|
76
|
-
return Promise.resolve(args.options.
|
|
75
|
+
if (args.options.id) {
|
|
76
|
+
return Promise.resolve(args.options.id);
|
|
77
77
|
}
|
|
78
78
|
const tabRequestOptions = {
|
|
79
|
-
url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels/${encodeURIComponent(this.channelId)}/tabs?$filter=displayName eq '${encodeURIComponent(args.options.
|
|
79
|
+
url: `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels/${encodeURIComponent(this.channelId)}/tabs?$filter=displayName eq '${encodeURIComponent(args.options.name)}'`,
|
|
80
80
|
headers: {
|
|
81
81
|
accept: 'application/json;odata.metadata=none'
|
|
82
82
|
},
|
|
@@ -127,8 +127,8 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
|
|
|
127
127
|
teamName: typeof args.options.teamName !== 'undefined',
|
|
128
128
|
channelId: typeof args.options.channelId !== 'undefined',
|
|
129
129
|
channelName: typeof args.options.channelName !== 'undefined',
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
id: typeof args.options.id !== 'undefined',
|
|
131
|
+
name: typeof args.options.name !== 'undefined'
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
}, _TeamsTabGetCommand_initOptions = function _TeamsTabGetCommand_initOptions() {
|
|
@@ -141,9 +141,9 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
|
|
|
141
141
|
}, {
|
|
142
142
|
option: '--channelName [channelName]'
|
|
143
143
|
}, {
|
|
144
|
-
option: '-i, --
|
|
144
|
+
option: '-i, --id [id]'
|
|
145
145
|
}, {
|
|
146
|
-
option: '-n, --
|
|
146
|
+
option: '-n, --name [name]'
|
|
147
147
|
});
|
|
148
148
|
}, _TeamsTabGetCommand_initValidators = function _TeamsTabGetCommand_initValidators() {
|
|
149
149
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -151,15 +151,15 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
|
|
|
151
151
|
return `${args.options.teamId} is not a valid GUID`;
|
|
152
152
|
}
|
|
153
153
|
if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
154
|
-
return `${args.options.channelId} is not a valid Teams
|
|
154
|
+
return `${args.options.channelId} is not a valid Teams channel id`;
|
|
155
155
|
}
|
|
156
|
-
if (args.options.
|
|
156
|
+
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
157
157
|
return `${args.options.tabId} is not a valid GUID`;
|
|
158
158
|
}
|
|
159
159
|
return true;
|
|
160
160
|
}));
|
|
161
161
|
}, _TeamsTabGetCommand_initOptionSets = function _TeamsTabGetCommand_initOptionSets() {
|
|
162
|
-
this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['
|
|
162
|
+
this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['id', 'name']);
|
|
163
163
|
};
|
|
164
164
|
module.exports = new TeamsTabGetCommand();
|
|
165
165
|
//# sourceMappingURL=tab-get.js.map
|
|
@@ -37,7 +37,7 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
|
|
|
37
37
|
commandAction(logger, args, cb) {
|
|
38
38
|
const removeTab = () => {
|
|
39
39
|
const requestOptions = {
|
|
40
|
-
url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${args.options.channelId}/tabs/${encodeURIComponent(args.options.
|
|
40
|
+
url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels/${args.options.channelId}/tabs/${encodeURIComponent(args.options.id)}`,
|
|
41
41
|
headers: {
|
|
42
42
|
accept: "application/json;odata.metadata=none"
|
|
43
43
|
},
|
|
@@ -53,7 +53,7 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
|
|
|
53
53
|
type: "confirm",
|
|
54
54
|
name: "continue",
|
|
55
55
|
default: false,
|
|
56
|
-
message: `Are you sure you want to remove the tab with id ${args.options.
|
|
56
|
+
message: `Are you sure you want to remove the tab with id ${args.options.id} from channel ${args.options.channelId} in team ${args.options.teamId}?`
|
|
57
57
|
}, (result) => {
|
|
58
58
|
if (!result.continue) {
|
|
59
59
|
cb();
|
|
@@ -73,11 +73,11 @@ _TeamsTabRemoveCommand_instances = new WeakSet(), _TeamsTabRemoveCommand_initTel
|
|
|
73
73
|
});
|
|
74
74
|
}, _TeamsTabRemoveCommand_initOptions = function _TeamsTabRemoveCommand_initOptions() {
|
|
75
75
|
this.options.unshift({
|
|
76
|
-
option: "-
|
|
76
|
+
option: "-t, --teamId <teamId>"
|
|
77
77
|
}, {
|
|
78
78
|
option: "-c, --channelId <channelId>"
|
|
79
79
|
}, {
|
|
80
|
-
option: "-
|
|
80
|
+
option: "-i, --id <id>"
|
|
81
81
|
}, {
|
|
82
82
|
option: "--confirm"
|
|
83
83
|
});
|
|
@@ -89,8 +89,8 @@ _TeamsTabRemoveCommand_instances = new WeakSet(), _TeamsTabRemoveCommand_initTel
|
|
|
89
89
|
if (!utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
90
90
|
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
91
91
|
}
|
|
92
|
-
if (!utils_1.validation.isValidGuid(args.options.
|
|
93
|
-
return `${args.options.
|
|
92
|
+
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
93
|
+
return `${args.options.id} is not a valid GUID`;
|
|
94
94
|
}
|
|
95
95
|
return true;
|
|
96
96
|
}));
|
|
@@ -48,10 +48,6 @@ class TeamsTeamArchiveCommand extends GraphCommand_1.default {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
commandAction(logger, args, cb) {
|
|
51
|
-
if (args.options.teamId) {
|
|
52
|
-
args.options.id = args.options.teamId;
|
|
53
|
-
this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
|
|
54
|
-
}
|
|
55
51
|
const siteReadOnlyForMembers = args.options.shouldSetSpoSiteReadOnlyForMembers === true;
|
|
56
52
|
this
|
|
57
53
|
.getTeamId(args)
|
|
@@ -77,8 +73,7 @@ _TeamsTeamArchiveCommand_instances = new WeakSet(), _TeamsTeamArchiveCommand_ini
|
|
|
77
73
|
Object.assign(this.telemetryProperties, {
|
|
78
74
|
id: typeof args.options.id !== 'undefined',
|
|
79
75
|
name: typeof args.options.name !== 'undefined',
|
|
80
|
-
shouldSetSpoSiteReadOnlyForMembers: args.options.shouldSetSpoSiteReadOnlyForMembers === true
|
|
81
|
-
teamId: typeof args.options.teamId !== 'undefined'
|
|
76
|
+
shouldSetSpoSiteReadOnlyForMembers: args.options.shouldSetSpoSiteReadOnlyForMembers === true
|
|
82
77
|
});
|
|
83
78
|
});
|
|
84
79
|
}, _TeamsTeamArchiveCommand_initOptions = function _TeamsTeamArchiveCommand_initOptions() {
|
|
@@ -86,22 +81,17 @@ _TeamsTeamArchiveCommand_instances = new WeakSet(), _TeamsTeamArchiveCommand_ini
|
|
|
86
81
|
option: '-i, --id [id]'
|
|
87
82
|
}, {
|
|
88
83
|
option: '-n, --name [name]'
|
|
89
|
-
}, {
|
|
90
|
-
option: '--teamId [teamId]'
|
|
91
84
|
}, {
|
|
92
85
|
option: '--shouldSetSpoSiteReadOnlyForMembers'
|
|
93
86
|
});
|
|
94
87
|
}, _TeamsTeamArchiveCommand_initValidators = function _TeamsTeamArchiveCommand_initValidators() {
|
|
95
88
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
if (!args.options.id && !args.options.name
|
|
89
|
+
if (!args.options.id && !args.options.name) {
|
|
97
90
|
return 'Specify either id or name';
|
|
98
91
|
}
|
|
99
|
-
if (args.options.name &&
|
|
92
|
+
if (args.options.name && args.options.id) {
|
|
100
93
|
return 'Specify either id or name but not both';
|
|
101
94
|
}
|
|
102
|
-
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
103
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
104
|
-
}
|
|
105
95
|
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
106
96
|
return `${args.options.id} is not a valid GUID`;
|
|
107
97
|
}
|