@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
|
@@ -49,10 +49,6 @@ class TeamsTeamArchiveCommand extends GraphCommand_1.default {
|
|
|
49
49
|
}
|
|
50
50
|
commandAction(logger, args) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
if (args.options.teamId) {
|
|
53
|
-
args.options.id = args.options.teamId;
|
|
54
|
-
this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
|
|
55
|
-
}
|
|
56
52
|
const siteReadOnlyForMembers = args.options.shouldSetSpoSiteReadOnlyForMembers === true;
|
|
57
53
|
try {
|
|
58
54
|
const teamId = yield this.getTeamId(args);
|
|
@@ -80,8 +76,7 @@ _TeamsTeamArchiveCommand_instances = new WeakSet(), _TeamsTeamArchiveCommand_ini
|
|
|
80
76
|
Object.assign(this.telemetryProperties, {
|
|
81
77
|
id: typeof args.options.id !== 'undefined',
|
|
82
78
|
name: typeof args.options.name !== 'undefined',
|
|
83
|
-
shouldSetSpoSiteReadOnlyForMembers: args.options.shouldSetSpoSiteReadOnlyForMembers === true
|
|
84
|
-
teamId: typeof args.options.teamId !== 'undefined'
|
|
79
|
+
shouldSetSpoSiteReadOnlyForMembers: args.options.shouldSetSpoSiteReadOnlyForMembers === true
|
|
85
80
|
});
|
|
86
81
|
});
|
|
87
82
|
}, _TeamsTeamArchiveCommand_initOptions = function _TeamsTeamArchiveCommand_initOptions() {
|
|
@@ -89,22 +84,17 @@ _TeamsTeamArchiveCommand_instances = new WeakSet(), _TeamsTeamArchiveCommand_ini
|
|
|
89
84
|
option: '-i, --id [id]'
|
|
90
85
|
}, {
|
|
91
86
|
option: '-n, --name [name]'
|
|
92
|
-
}, {
|
|
93
|
-
option: '--teamId [teamId]'
|
|
94
87
|
}, {
|
|
95
88
|
option: '--shouldSetSpoSiteReadOnlyForMembers'
|
|
96
89
|
});
|
|
97
90
|
}, _TeamsTeamArchiveCommand_initValidators = function _TeamsTeamArchiveCommand_initValidators() {
|
|
98
91
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
99
|
-
if (!args.options.id && !args.options.name
|
|
92
|
+
if (!args.options.id && !args.options.name) {
|
|
100
93
|
return 'Specify either id or name';
|
|
101
94
|
}
|
|
102
|
-
if (args.options.name &&
|
|
95
|
+
if (args.options.name && args.options.id) {
|
|
103
96
|
return 'Specify either id or name but not both';
|
|
104
97
|
}
|
|
105
|
-
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
106
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
107
|
-
}
|
|
108
98
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
109
99
|
return `${args.options.id} is not a valid GUID`;
|
|
110
100
|
}
|
|
@@ -36,14 +36,6 @@ class TeamsTeamCloneCommand extends GraphCommand_1.default {
|
|
|
36
36
|
}
|
|
37
37
|
commandAction(logger, args) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
if (args.options.teamId) {
|
|
40
|
-
args.options.id = args.options.teamId;
|
|
41
|
-
this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
|
|
42
|
-
}
|
|
43
|
-
if (args.options.displayName) {
|
|
44
|
-
args.options.name = args.options.displayName;
|
|
45
|
-
this.warn(logger, `Option 'displayName' is deprecated. Please use 'name' instead.`);
|
|
46
|
-
}
|
|
47
39
|
const data = {
|
|
48
40
|
displayName: args.options.name,
|
|
49
41
|
mailNickname: this.generateMailNickname(args.options.name),
|
|
@@ -97,20 +89,14 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
|
|
|
97
89
|
classification: typeof args.options.classification !== 'undefined',
|
|
98
90
|
visibility: typeof args.options.visibility !== 'undefined',
|
|
99
91
|
id: typeof args.options.id !== 'undefined',
|
|
100
|
-
|
|
101
|
-
name: typeof args.options.name !== 'undefined',
|
|
102
|
-
displayName: typeof args.options.displayName !== 'undefined'
|
|
92
|
+
name: typeof args.options.name !== 'undefined'
|
|
103
93
|
});
|
|
104
94
|
});
|
|
105
95
|
}, _TeamsTeamCloneCommand_initOptions = function _TeamsTeamCloneCommand_initOptions() {
|
|
106
96
|
this.options.unshift({
|
|
107
|
-
option: '-i, --id [
|
|
108
|
-
}, {
|
|
109
|
-
option: '--teamId [teamId]'
|
|
97
|
+
option: '-i, --id [id]'
|
|
110
98
|
}, {
|
|
111
99
|
option: '-n, --name [name]'
|
|
112
|
-
}, {
|
|
113
|
-
option: '--displayName [displayName]'
|
|
114
100
|
}, {
|
|
115
101
|
option: '-p, --partsToClone <partsToClone>',
|
|
116
102
|
autocomplete: ['apps', 'channels', 'members', 'settings', 'tabs']
|
|
@@ -124,9 +110,6 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
|
|
|
124
110
|
});
|
|
125
111
|
}, _TeamsTeamCloneCommand_initValidators = function _TeamsTeamCloneCommand_initValidators() {
|
|
126
112
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
128
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
129
|
-
}
|
|
130
113
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
131
114
|
return `${args.options.id} is not a valid GUID`;
|
|
132
115
|
}
|
|
@@ -151,7 +134,7 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
|
|
|
151
134
|
return true;
|
|
152
135
|
}));
|
|
153
136
|
}, _TeamsTeamCloneCommand_initOptionSets = function _TeamsTeamCloneCommand_initOptionSets() {
|
|
154
|
-
this.optionSets.push(['id', '
|
|
137
|
+
this.optionSets.push(['id', 'name']);
|
|
155
138
|
};
|
|
156
139
|
module.exports = new TeamsTeamCloneCommand();
|
|
157
140
|
//# sourceMappingURL=team-clone.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _TeamsTeamRemoveCommand_instances, _TeamsTeamRemoveCommand_initTelemetry, _TeamsTeamRemoveCommand_initOptions, _TeamsTeamRemoveCommand_initValidators;
|
|
16
|
+
var _TeamsTeamRemoveCommand_instances, _TeamsTeamRemoveCommand_initTelemetry, _TeamsTeamRemoveCommand_initOptions, _TeamsTeamRemoveCommand_initOptionSets, _TeamsTeamRemoveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -28,6 +28,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.TEAM_REMOVE;
|
|
@@ -50,10 +51,6 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
50
51
|
}
|
|
51
52
|
commandAction(logger, args) {
|
|
52
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
if (args.options.teamId) {
|
|
54
|
-
args.options.id = args.options.teamId;
|
|
55
|
-
this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
|
|
56
|
-
}
|
|
57
54
|
const removeTeam = () => __awaiter(this, void 0, void 0, function* () {
|
|
58
55
|
try {
|
|
59
56
|
const teamId = yield this.getTeamId(args);
|
|
@@ -78,7 +75,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
78
75
|
type: 'confirm',
|
|
79
76
|
name: 'continue',
|
|
80
77
|
default: false,
|
|
81
|
-
message: `Are you sure you want to remove the team ${args.options.
|
|
78
|
+
message: `Are you sure you want to remove the team ${args.options.id ? args.options.id : args.options.name}?`
|
|
82
79
|
});
|
|
83
80
|
if (result.continue) {
|
|
84
81
|
yield removeTeam();
|
|
@@ -98,22 +95,13 @@ _TeamsTeamRemoveCommand_instances = new WeakSet(), _TeamsTeamRemoveCommand_initT
|
|
|
98
95
|
option: '-i, --id [id]'
|
|
99
96
|
}, {
|
|
100
97
|
option: '-n, --name [name]'
|
|
101
|
-
}, {
|
|
102
|
-
option: '--teamId [teamId]'
|
|
103
98
|
}, {
|
|
104
99
|
option: '--confirm'
|
|
105
100
|
});
|
|
101
|
+
}, _TeamsTeamRemoveCommand_initOptionSets = function _TeamsTeamRemoveCommand_initOptionSets() {
|
|
102
|
+
this.optionSets.push(['id', 'name']);
|
|
106
103
|
}, _TeamsTeamRemoveCommand_initValidators = function _TeamsTeamRemoveCommand_initValidators() {
|
|
107
104
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
if (!args.options.id && !args.options.name && !args.options.teamId) {
|
|
109
|
-
return 'Specify either id or name';
|
|
110
|
-
}
|
|
111
|
-
if (args.options.name && (args.options.id || args.options.teamId)) {
|
|
112
|
-
return 'Specify either id or name but not both';
|
|
113
|
-
}
|
|
114
|
-
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
115
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
116
|
-
}
|
|
117
105
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
118
106
|
return `${args.options.id} is not a valid GUID`;
|
|
119
107
|
}
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators
|
|
16
|
+
var _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
@@ -26,7 +26,6 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initValidators).call(this);
|
|
29
|
-
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initOptionSets).call(this);
|
|
30
29
|
}
|
|
31
30
|
get name() {
|
|
32
31
|
return commands_1.default.TEAM_SET;
|
|
@@ -55,14 +54,6 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
|
55
54
|
}
|
|
56
55
|
commandAction(logger, args) {
|
|
57
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
if (args.options.teamId) {
|
|
59
|
-
args.options.id = args.options.teamId;
|
|
60
|
-
this.warn(logger, `Option 'teamId' is deprecated. Please use 'id' instead.`);
|
|
61
|
-
}
|
|
62
|
-
if (args.options.displayName) {
|
|
63
|
-
args.options.name = args.options.displayName;
|
|
64
|
-
this.warn(logger, `Option 'displayName' is deprecated. Please use 'name' instead.`);
|
|
65
|
-
}
|
|
66
57
|
const data = this.mapRequestBody(args.options);
|
|
67
58
|
const requestOptions = {
|
|
68
59
|
url: `${this.resource}/v1.0/groups/${encodeURIComponent(args.options.id)}`,
|
|
@@ -90,12 +81,8 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
90
81
|
}, _TeamsTeamSetCommand_initOptions = function _TeamsTeamSetCommand_initOptions() {
|
|
91
82
|
this.options.unshift({
|
|
92
83
|
option: '-i, --id [id]'
|
|
93
|
-
}, {
|
|
94
|
-
option: '--teamId [teamId]'
|
|
95
84
|
}, {
|
|
96
85
|
option: '-n, --name [name]'
|
|
97
|
-
}, {
|
|
98
|
-
option: '--displayName [displayName]'
|
|
99
86
|
}, {
|
|
100
87
|
option: '--description [description]'
|
|
101
88
|
}, {
|
|
@@ -108,9 +95,6 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
108
95
|
});
|
|
109
96
|
}, _TeamsTeamSetCommand_initValidators = function _TeamsTeamSetCommand_initValidators() {
|
|
110
97
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
111
|
-
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
112
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
113
|
-
}
|
|
114
98
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
115
99
|
return `${args.options.id} is not a valid GUID`;
|
|
116
100
|
}
|
|
@@ -121,11 +105,8 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
121
105
|
}
|
|
122
106
|
return true;
|
|
123
107
|
}));
|
|
124
|
-
}, _TeamsTeamSetCommand_initOptionSets = function _TeamsTeamSetCommand_initOptionSets() {
|
|
125
|
-
this.optionSets.push(['id', 'teamId']);
|
|
126
108
|
};
|
|
127
109
|
TeamsTeamSetCommand.props = [
|
|
128
|
-
'displayName',
|
|
129
110
|
'description',
|
|
130
111
|
'mailNickName',
|
|
131
112
|
'classification',
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _TeamsTeamUnarchiveCommand_instances, _TeamsTeamUnarchiveCommand_initOptions, _TeamsTeamUnarchiveCommand_initValidators;
|
|
16
|
+
var _TeamsTeamUnarchiveCommand_instances, _TeamsTeamUnarchiveCommand_initOptions, _TeamsTeamUnarchiveCommand_initOptionSets, _TeamsTeamUnarchiveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
@@ -26,6 +26,7 @@ class TeamsTeamUnarchiveCommand extends GraphCommand_1.default {
|
|
|
26
26
|
_TeamsTeamUnarchiveCommand_instances.add(this);
|
|
27
27
|
__classPrivateFieldGet(this, _TeamsTeamUnarchiveCommand_instances, "m", _TeamsTeamUnarchiveCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _TeamsTeamUnarchiveCommand_instances, "m", _TeamsTeamUnarchiveCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsTeamUnarchiveCommand_instances, "m", _TeamsTeamUnarchiveCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.TEAM_UNARCHIVE;
|
|
@@ -48,10 +49,6 @@ class TeamsTeamUnarchiveCommand extends GraphCommand_1.default {
|
|
|
48
49
|
}
|
|
49
50
|
commandAction(logger, args) {
|
|
50
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
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
52
|
const endpoint = `${this.resource}/v1.0`;
|
|
56
53
|
try {
|
|
57
54
|
const teamId = yield this.getTeamId(args);
|
|
@@ -76,20 +73,11 @@ _TeamsTeamUnarchiveCommand_instances = new WeakSet(), _TeamsTeamUnarchiveCommand
|
|
|
76
73
|
option: '-i, --id [id]'
|
|
77
74
|
}, {
|
|
78
75
|
option: '-n, --name [name]'
|
|
79
|
-
}, {
|
|
80
|
-
option: '--teamId [teamId]'
|
|
81
76
|
});
|
|
77
|
+
}, _TeamsTeamUnarchiveCommand_initOptionSets = function _TeamsTeamUnarchiveCommand_initOptionSets() {
|
|
78
|
+
this.optionSets.push(['id', 'name']);
|
|
82
79
|
}, _TeamsTeamUnarchiveCommand_initValidators = function _TeamsTeamUnarchiveCommand_initValidators() {
|
|
83
80
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
if (!args.options.id && !args.options.name && !args.options.teamId) {
|
|
85
|
-
return 'Specify either id or name';
|
|
86
|
-
}
|
|
87
|
-
if (args.options.name && (args.options.id || args.options.teamId)) {
|
|
88
|
-
return 'Specify either id or name but not both';
|
|
89
|
-
}
|
|
90
|
-
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
91
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
92
|
-
}
|
|
93
81
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
94
82
|
return `${args.options.id} is not a valid GUID`;
|
|
95
83
|
}
|
|
@@ -43,7 +43,7 @@ class TeamsUserAppAddCommand extends GraphCommand_1.default {
|
|
|
43
43
|
},
|
|
44
44
|
responseType: 'json',
|
|
45
45
|
data: {
|
|
46
|
-
'teamsApp@odata.bind': `${endpoint}/appCatalogs/teamsApps/${args.options.
|
|
46
|
+
'teamsApp@odata.bind': `${endpoint}/appCatalogs/teamsApps/${args.options.id}`
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
try {
|
|
@@ -57,14 +57,14 @@ class TeamsUserAppAddCommand extends GraphCommand_1.default {
|
|
|
57
57
|
}
|
|
58
58
|
_TeamsUserAppAddCommand_instances = new WeakSet(), _TeamsUserAppAddCommand_initOptions = function _TeamsUserAppAddCommand_initOptions() {
|
|
59
59
|
this.options.unshift({
|
|
60
|
-
option: '--
|
|
60
|
+
option: '--id <id>'
|
|
61
61
|
}, {
|
|
62
62
|
option: '--userId <userId>'
|
|
63
63
|
});
|
|
64
64
|
}, _TeamsUserAppAddCommand_initValidators = function _TeamsUserAppAddCommand_initValidators() {
|
|
65
65
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
if (!validation_1.validation.isValidGuid(args.options.
|
|
67
|
-
return `${args.options.
|
|
66
|
+
if (!validation_1.validation.isValidGuid(args.options.id)) {
|
|
67
|
+
return `${args.options.id} is not a valid GUID`;
|
|
68
68
|
}
|
|
69
69
|
if (!validation_1.validation.isValidGuid(args.options.userId)) {
|
|
70
70
|
return `${args.options.userId} is not a valid GUID`;
|
|
@@ -39,7 +39,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
|
|
|
39
39
|
const removeApp = () => __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const endpoint = `${this.resource}/v1.0`;
|
|
41
41
|
const requestOptions = {
|
|
42
|
-
url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.
|
|
42
|
+
url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.id}`,
|
|
43
43
|
headers: {
|
|
44
44
|
'accept': 'application/json;odata.metadata=none'
|
|
45
45
|
},
|
|
@@ -60,7 +60,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
|
|
|
60
60
|
type: 'confirm',
|
|
61
61
|
name: 'continue',
|
|
62
62
|
default: false,
|
|
63
|
-
message: `Are you sure you want to remove the app with id ${args.options.
|
|
63
|
+
message: `Are you sure you want to remove the app with id ${args.options.id} for user ${args.options.userId}?`
|
|
64
64
|
});
|
|
65
65
|
if (result.continue) {
|
|
66
66
|
yield removeApp();
|
|
@@ -77,7 +77,7 @@ _TeamsUserAppRemoveCommand_instances = new WeakSet(), _TeamsUserAppRemoveCommand
|
|
|
77
77
|
});
|
|
78
78
|
}, _TeamsUserAppRemoveCommand_initOptions = function _TeamsUserAppRemoveCommand_initOptions() {
|
|
79
79
|
this.options.unshift({
|
|
80
|
-
option: '--
|
|
80
|
+
option: '--id <id>'
|
|
81
81
|
}, {
|
|
82
82
|
option: '--userId <userId>'
|
|
83
83
|
}, {
|
|
@@ -23,9 +23,6 @@ exports.default = {
|
|
|
23
23
|
CHAT_MEMBER_LIST: `${prefix} chat member list`,
|
|
24
24
|
CHAT_MESSAGE_LIST: `${prefix} chat message list`,
|
|
25
25
|
CHAT_MESSAGE_SEND: `${prefix} chat message send`,
|
|
26
|
-
CONVERSATIONMEMBER_ADD: `${prefix} conversationmember add`,
|
|
27
|
-
CONVERSATIONMEMBER_LIST: `${prefix} conversationmember list`,
|
|
28
|
-
CONVERSATIONMEMBER_REMOVE: `${prefix} conversationmember remove`,
|
|
29
26
|
FUNSETTINGS_LIST: `${prefix} funsettings list`,
|
|
30
27
|
FUNSETTINGS_SET: `${prefix} funsettings set`,
|
|
31
28
|
GUESTSETTINGS_LIST: `${prefix} guestsettings list`,
|
|
@@ -74,7 +74,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
74
74
|
"manifestVersion": "1.9",
|
|
75
75
|
"version": "1.0",
|
|
76
76
|
"id": appId,
|
|
77
|
-
"packageName": `com.microsoft.teams.${args.options.
|
|
77
|
+
"packageName": `com.microsoft.teams.${args.options.name}`,
|
|
78
78
|
"developer": {
|
|
79
79
|
"name": args.options.companyName,
|
|
80
80
|
"websiteUrl": args.options.companyWebsiteUrl,
|
|
@@ -86,8 +86,8 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
86
86
|
"outline": outlineIconFileName
|
|
87
87
|
},
|
|
88
88
|
"name": {
|
|
89
|
-
"short": args.options.
|
|
90
|
-
"full": args.options.
|
|
89
|
+
"short": args.options.name,
|
|
90
|
+
"full": args.options.name
|
|
91
91
|
},
|
|
92
92
|
"description": {
|
|
93
93
|
"short": `${args.options.description}`,
|
|
@@ -98,7 +98,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
98
98
|
"staticTabs": [
|
|
99
99
|
{
|
|
100
100
|
"entityId": `sharepointportal_${appId}`,
|
|
101
|
-
"name": `Portals-${args.options.
|
|
101
|
+
"name": `Portals-${args.options.name}`,
|
|
102
102
|
"contentUrl": `https://${domain}/_layouts/15/teamslogon.aspx?spfx=true&dest=${appPortalUrl}`,
|
|
103
103
|
"websiteUrl": portalUrl,
|
|
104
104
|
"searchUrl": `https://${searchUrlPath}/_layouts/15/search.aspx?q={searchQuery}`,
|
|
@@ -135,7 +135,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
135
135
|
this.archive.addFile('manifest.json', Buffer.alloc(manifestString.length, manifestString, 'utf8'));
|
|
136
136
|
this.archive.addLocalFile(coloredIconPath, undefined, coloredIconFileName);
|
|
137
137
|
this.archive.addLocalFile(outlineIconPath, undefined, outlineIconFileName);
|
|
138
|
-
this.archive.writeZip(`${args.options.
|
|
138
|
+
this.archive.writeZip(`${args.options.name}.zip`);
|
|
139
139
|
}
|
|
140
140
|
catch (ex) {
|
|
141
141
|
throw ex.message;
|
|
@@ -151,7 +151,7 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
151
151
|
logger.logToStderr(`Checking if site ${args.options.url} exists...`);
|
|
152
152
|
}
|
|
153
153
|
const options = {
|
|
154
|
-
|
|
154
|
+
url: args.options.portalUrl,
|
|
155
155
|
output: 'json',
|
|
156
156
|
debug: this.debug,
|
|
157
157
|
verbose: this.verbose
|
|
@@ -160,10 +160,10 @@ class VivaConnectionsAppCreateCommand extends AnonymousCommand_1.default {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
_VivaConnectionsAppCreateCommand_instances = new WeakSet(), _VivaConnectionsAppCreateCommand_initOptions = function _VivaConnectionsAppCreateCommand_initOptions() {
|
|
163
|
-
this.options.unshift({ option: '--portalUrl <portalUrl>' }, { option: '--
|
|
163
|
+
this.options.unshift({ option: '--portalUrl <portalUrl>' }, { option: '--name <name>' }, { option: '--description <description>' }, { option: '--longDescription <longDescription>' }, { option: '--privacyPolicyUrl [privacyPolicyUrl]' }, { option: '--termsOfUseUrl [termsOfUseUrl]' }, { option: '--companyName <companyName>' }, { option: '--companyWebsiteUrl <companyWebsiteUrl>' }, { option: '--coloredIconPath <coloredIconPath>' }, { option: '--outlineIconPath <outlineIconPath>' }, { option: '--accentColor [accentColor]' }, { option: '--force' });
|
|
164
164
|
}, _VivaConnectionsAppCreateCommand_initValidators = function _VivaConnectionsAppCreateCommand_initValidators() {
|
|
165
165
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
166
|
-
if (args.options.
|
|
166
|
+
if (args.options.name.length > 30) {
|
|
167
167
|
return `App name must not exceed 30 characters`;
|
|
168
168
|
}
|
|
169
169
|
if (args.options.description &&
|
|
@@ -174,7 +174,7 @@ _VivaConnectionsAppCreateCommand_instances = new WeakSet(), _VivaConnectionsAppC
|
|
|
174
174
|
args.options.longDescription.length > 4000) {
|
|
175
175
|
return 'Long description must not exceed 4000 characters';
|
|
176
176
|
}
|
|
177
|
-
const appFilePath = path.resolve(`${args.options.
|
|
177
|
+
const appFilePath = path.resolve(`${args.options.name}.zip`);
|
|
178
178
|
if (fs.existsSync(appFilePath) && !args.options.force) {
|
|
179
179
|
return `File ${appFilePath} already exists. Delete the file or use the --force option to overwrite the existing file`;
|
|
180
180
|
}
|
|
@@ -42,8 +42,8 @@ class YammerGroupUserAddCommand extends YammerCommand_1.default {
|
|
|
42
42
|
},
|
|
43
43
|
responseType: 'json',
|
|
44
44
|
data: {
|
|
45
|
-
group_id: args.options.
|
|
46
|
-
user_id: args.options.
|
|
45
|
+
group_id: args.options.groupId,
|
|
46
|
+
user_id: args.options.id,
|
|
47
47
|
email: args.options.email
|
|
48
48
|
}
|
|
49
49
|
};
|
|
@@ -59,26 +59,26 @@ class YammerGroupUserAddCommand extends YammerCommand_1.default {
|
|
|
59
59
|
_YammerGroupUserAddCommand_instances = new WeakSet(), _YammerGroupUserAddCommand_initTelemetry = function _YammerGroupUserAddCommand_initTelemetry() {
|
|
60
60
|
this.telemetry.push((args) => {
|
|
61
61
|
Object.assign(this.telemetryProperties, {
|
|
62
|
-
|
|
62
|
+
id: typeof args.options.id !== 'undefined',
|
|
63
63
|
email: typeof args.options.email !== 'undefined'
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
}, _YammerGroupUserAddCommand_initOptions = function _YammerGroupUserAddCommand_initOptions() {
|
|
67
67
|
this.options.unshift({
|
|
68
|
-
option: '--
|
|
68
|
+
option: '--groupId <groupId>'
|
|
69
69
|
}, {
|
|
70
|
-
option: '--
|
|
70
|
+
option: '--id [id]'
|
|
71
71
|
}, {
|
|
72
72
|
option: '--email [email]'
|
|
73
73
|
});
|
|
74
74
|
}, _YammerGroupUserAddCommand_initValidators = function _YammerGroupUserAddCommand_initValidators() {
|
|
75
75
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (typeof args.options.groupId !== 'number') {
|
|
77
|
+
return `${args.options.groupId} is not a number`;
|
|
78
|
+
}
|
|
76
79
|
if (args.options.id && typeof args.options.id !== 'number') {
|
|
77
80
|
return `${args.options.id} is not a number`;
|
|
78
81
|
}
|
|
79
|
-
if (args.options.userId && typeof args.options.userId !== 'number') {
|
|
80
|
-
return `${args.options.userId} is not a number`;
|
|
81
|
-
}
|
|
82
82
|
return true;
|
|
83
83
|
}));
|
|
84
84
|
};
|
|
@@ -45,8 +45,8 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
|
|
|
45
45
|
},
|
|
46
46
|
responseType: 'json',
|
|
47
47
|
data: {
|
|
48
|
-
group_id: args.options.
|
|
49
|
-
user_id: args.options.
|
|
48
|
+
group_id: args.options.groupId,
|
|
49
|
+
user_id: args.options.id
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
try {
|
|
@@ -60,9 +60,9 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
|
|
|
60
60
|
yield executeRemoveAction();
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
63
|
-
let messagePrompt = `Are you sure you want to leave group ${args.options.
|
|
64
|
-
if (args.options.
|
|
65
|
-
messagePrompt = `Are you sure you want to remove the user ${args.options.
|
|
63
|
+
let messagePrompt = `Are you sure you want to leave group ${args.options.groupId}?`;
|
|
64
|
+
if (args.options.id) {
|
|
65
|
+
messagePrompt = `Are you sure you want to remove the user ${args.options.id} from the group ${args.options.groupId}?`;
|
|
66
66
|
}
|
|
67
67
|
const result = yield Cli_1.Cli.prompt({
|
|
68
68
|
type: 'confirm',
|
|
@@ -80,26 +80,26 @@ class YammerGroupUserRemoveCommand extends YammerCommand_1.default {
|
|
|
80
80
|
_YammerGroupUserRemoveCommand_instances = new WeakSet(), _YammerGroupUserRemoveCommand_initTelemetry = function _YammerGroupUserRemoveCommand_initTelemetry() {
|
|
81
81
|
this.telemetry.push((args) => {
|
|
82
82
|
Object.assign(this.telemetryProperties, {
|
|
83
|
-
userId: args.options.
|
|
83
|
+
userId: args.options.id !== undefined,
|
|
84
84
|
confirm: (!(!args.options.confirm)).toString()
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
87
|
}, _YammerGroupUserRemoveCommand_initOptions = function _YammerGroupUserRemoveCommand_initOptions() {
|
|
88
88
|
this.options.unshift({
|
|
89
|
-
option: '--
|
|
89
|
+
option: '--groupId <groupId>'
|
|
90
90
|
}, {
|
|
91
|
-
option: '--
|
|
91
|
+
option: '--id [id]'
|
|
92
92
|
}, {
|
|
93
93
|
option: '--confirm'
|
|
94
94
|
});
|
|
95
95
|
}, _YammerGroupUserRemoveCommand_initValidators = function _YammerGroupUserRemoveCommand_initValidators() {
|
|
96
96
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
if (args.options.groupId && typeof args.options.groupId !== 'number') {
|
|
98
|
+
return `${args.options.groupId} is not a number`;
|
|
99
|
+
}
|
|
97
100
|
if (args.options.id && typeof args.options.id !== 'number') {
|
|
98
101
|
return `${args.options.id} is not a number`;
|
|
99
102
|
}
|
|
100
|
-
if (args.options.userId && typeof args.options.userId !== 'number') {
|
|
101
|
-
return `${args.options.userId} is not a number`;
|
|
102
|
-
}
|
|
103
103
|
return true;
|
|
104
104
|
}));
|
|
105
105
|
};
|
|
@@ -45,7 +45,7 @@ class YammerMessageLikeSetCommand extends YammerCommand_1.default {
|
|
|
45
45
|
},
|
|
46
46
|
responseType: 'json',
|
|
47
47
|
data: {
|
|
48
|
-
message_id: args.options.
|
|
48
|
+
message_id: args.options.messageId
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
try {
|
|
@@ -65,7 +65,7 @@ class YammerMessageLikeSetCommand extends YammerCommand_1.default {
|
|
|
65
65
|
yield executeLikeAction();
|
|
66
66
|
}
|
|
67
67
|
else {
|
|
68
|
-
const messagePrompt = `Are you sure you want to unlike message ${args.options.
|
|
68
|
+
const messagePrompt = `Are you sure you want to unlike message ${args.options.messageId}?`;
|
|
69
69
|
const result = yield Cli_1.Cli.prompt({
|
|
70
70
|
type: 'confirm',
|
|
71
71
|
name: 'continue',
|
|
@@ -92,7 +92,7 @@ _YammerMessageLikeSetCommand_instances = new WeakSet(), _YammerMessageLikeSetCom
|
|
|
92
92
|
});
|
|
93
93
|
}, _YammerMessageLikeSetCommand_initOptions = function _YammerMessageLikeSetCommand_initOptions() {
|
|
94
94
|
this.options.unshift({
|
|
95
|
-
option: '--
|
|
95
|
+
option: '--messageId <messageId>'
|
|
96
96
|
}, {
|
|
97
97
|
option: '--enable [enable]'
|
|
98
98
|
}, {
|
|
@@ -100,8 +100,8 @@ _YammerMessageLikeSetCommand_instances = new WeakSet(), _YammerMessageLikeSetCom
|
|
|
100
100
|
});
|
|
101
101
|
}, _YammerMessageLikeSetCommand_initValidators = function _YammerMessageLikeSetCommand_initValidators() {
|
|
102
102
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
103
|
-
if (args.options.
|
|
104
|
-
return `${args.options.
|
|
103
|
+
if (args.options.messageId && typeof args.options.messageId !== 'number') {
|
|
104
|
+
return `${args.options.messageId} is not a number`;
|
|
105
105
|
}
|
|
106
106
|
if (args.options.enable &&
|
|
107
107
|
args.options.enable !== 'true' &&
|
|
@@ -38,8 +38,8 @@ class YammerUserGetCommand extends YammerCommand_1.default {
|
|
|
38
38
|
commandAction(logger, args) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
let endPoint = `${this.resource}/v1/users/current.json`;
|
|
41
|
-
if (args.options.
|
|
42
|
-
endPoint = `${this.resource}/v1/users/${encodeURIComponent(args.options.
|
|
41
|
+
if (args.options.id) {
|
|
42
|
+
endPoint = `${this.resource}/v1/users/${encodeURIComponent(args.options.id)}.json`;
|
|
43
43
|
}
|
|
44
44
|
else if (args.options.email) {
|
|
45
45
|
endPoint = `${this.resource}/v1/users/by_email.json?email=${encodeURIComponent(args.options.email)}`;
|
|
@@ -65,19 +65,19 @@ class YammerUserGetCommand extends YammerCommand_1.default {
|
|
|
65
65
|
_YammerUserGetCommand_instances = new WeakSet(), _YammerUserGetCommand_initTelemetry = function _YammerUserGetCommand_initTelemetry() {
|
|
66
66
|
this.telemetry.push((args) => {
|
|
67
67
|
Object.assign(this.telemetryProperties, {
|
|
68
|
-
userId: args.options.
|
|
68
|
+
userId: args.options.id !== undefined,
|
|
69
69
|
email: args.options.email !== undefined
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
}, _YammerUserGetCommand_initOptions = function _YammerUserGetCommand_initOptions() {
|
|
73
73
|
this.options.unshift({
|
|
74
|
-
option: '-i, --
|
|
74
|
+
option: '-i, --id [id]'
|
|
75
75
|
}, {
|
|
76
76
|
option: '--email [email]'
|
|
77
77
|
});
|
|
78
78
|
}, _YammerUserGetCommand_initValidators = function _YammerUserGetCommand_initValidators() {
|
|
79
79
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
if (args.options.
|
|
80
|
+
if (args.options.id !== undefined && args.options.email !== undefined) {
|
|
81
81
|
return `You are only allowed to search by ID or e-mail but not both`;
|
|
82
82
|
}
|
|
83
83
|
return true;
|
package/dist/settingsNames.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.settingsNames = void 0;
|
|
4
4
|
const settingsNames = {
|
|
5
|
-
autoOpenBrowserOnLogin: 'autoOpenBrowserOnLogin',
|
|
6
5
|
autoOpenLinksInBrowser: 'autoOpenLinksInBrowser',
|
|
7
6
|
copyDeviceCodeToClipboard: 'copyDeviceCodeToClipboard',
|
|
8
7
|
csvEscape: 'csvEscape',
|
|
@@ -4,8 +4,7 @@ Following is the list of configuration settings available in CLI for Microsoft 3
|
|
|
4
4
|
|
|
5
5
|
Setting name|Definition|Default value
|
|
6
6
|
------------|----------|-------------
|
|
7
|
-
`
|
|
8
|
-
`autoOpenLinksInBrowser`|Automatically open the browser for all commands which return a url and expect the user to copy paste this to the browser. For example when logging in, using `m365 login` in device code mode. This setting will replace `autoOpenBrowserOnLogin` in the next major release.|`false`
|
|
7
|
+
`autoOpenLinksInBrowser`|Automatically open the browser for all commands which return a url and expect the user to copy paste this to the browser. For example when logging in, using `m365 login` in device code mode.|`false`
|
|
9
8
|
`copyDeviceCodeToClipboard`|Automatically copy the device code to the clipboard when running `m365 login` command in device code mode|`false`
|
|
10
9
|
`csvEscape`|Single character used for escaping; only apply to characters matching the quote and the escape options|`"`
|
|
11
10
|
`csvHeader`|Display the column names on the first line|`true`
|