@pnp/cli-microsoft365 5.1.0 → 5.2.0-beta.307d8f5
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/.mocharc.json +1 -0
- package/dist/Auth.js +2 -1
- package/dist/Command.js +10 -1
- package/dist/cli/Cli.js +2 -18
- package/dist/m365/aad/commands/user/user-signin-list.js +81 -0
- package/dist/m365/aad/commands.js +2 -1
- package/dist/m365/app/commands/app-get.js +3 -0
- package/dist/m365/cli/commands/cli-reconsent.js +20 -2
- package/dist/m365/cli/commands/config/config-set.js +1 -0
- package/dist/m365/pp/commands/environment/environment-list.js +57 -0
- package/dist/m365/pp/commands/managementapp/managementapp-list.js +24 -0
- package/dist/m365/pp/commands.js +3 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.0.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.0.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.15.0-beta.1.js → upgrade-1.15.0-beta.6.js} +27 -27
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.4.1.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.9.1.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +5 -2
- package/dist/m365/spfx/commands/spfx-doctor.js +1 -105
- package/dist/m365/spo/commands/file/file-checkout.js +2 -2
- package/dist/m365/spo/commands/site/site-remove.js +4 -3
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +10 -44
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +21 -0
- package/dist/m365/teams/commands/app/app-install.js +1 -1
- package/dist/m365/teams/commands/channel/channel-add.js +44 -14
- package/dist/m365/teams/commands/channel/channel-list.js +11 -1
- package/dist/m365/teams/commands/{conversationmember/conversationmember-add.js → channel/channel-member-add.js} +15 -22
- package/dist/m365/teams/commands/channel/channel-member-list.js +157 -0
- package/dist/m365/teams/commands/channel/channel-member-set.js +206 -0
- package/dist/m365/teams/commands/chat/chat-get.js +143 -0
- package/dist/m365/teams/commands/chat/chat-message-send.js +5 -30
- package/dist/m365/teams/commands/chat/chatUtil.js +62 -0
- package/dist/m365/teams/commands.js +4 -0
- package/dist/settingsNames.js +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/md.js +81 -0
- package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +1 -1
- package/docs/docs/cmd/aad/group/group-list.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-add.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-get.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-list.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-remove.md +1 -1
- package/docs/docs/cmd/aad/groupsetting/groupsetting-set.md +1 -1
- package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-get.md +1 -1
- package/docs/docs/cmd/aad/groupsettingtemplate/groupsettingtemplate-list.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-clear.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-remove.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-renew.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activitycounts.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activityfilecounts.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-report-activitygroupcounts.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-teamify.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-user-add.md +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-user-remove.md +1 -1
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-add.md +1 -1
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-list.md +1 -1
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.md +1 -1
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.md +1 -1
- package/docs/docs/cmd/aad/siteclassification/siteclassification-disable.md +1 -1
- package/docs/docs/cmd/aad/siteclassification/siteclassification-enable.md +1 -1
- package/docs/docs/cmd/aad/siteclassification/siteclassification-get.md +1 -1
- package/docs/docs/cmd/aad/siteclassification/siteclassification-set.md +1 -1
- package/docs/docs/cmd/aad/sp/sp-get.md +1 -1
- package/docs/docs/cmd/aad/user/user-password-validate.md +1 -1
- package/docs/docs/cmd/aad/user/user-signin-list.md +81 -0
- package/docs/docs/cmd/cli/cli-doctor.md +1 -1
- package/docs/docs/cmd/flow/environment/environment-get.md +1 -1
- package/docs/docs/cmd/flow/environment/environment-list.md +1 -1
- package/docs/docs/cmd/flow/run/run-list.md +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.md +1 -1
- package/docs/docs/cmd/logout.md +1 -1
- package/docs/docs/cmd/onedrive/onedrive-list.md +1 -1
- package/docs/docs/cmd/planner/bucket/bucket-list.md +1 -1
- package/docs/docs/cmd/planner/task/task-list.md +1 -1
- package/docs/docs/cmd/pp/environment/environment-list.md +37 -0
- package/docs/docs/cmd/pp/managementapp/managementapp-list.md +21 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spfx/spfx-doctor.md +1 -1
- package/docs/docs/cmd/spo/app/app-add.md +1 -1
- package/docs/docs/cmd/spo/app/app-deploy.md +1 -1
- package/docs/docs/cmd/spo/app/app-get.md +1 -1
- package/docs/docs/cmd/spo/app/app-install.md +1 -1
- package/docs/docs/cmd/spo/app/app-instance-list.md +1 -1
- package/docs/docs/cmd/spo/app/app-list.md +1 -1
- package/docs/docs/cmd/spo/app/app-remove.md +1 -1
- package/docs/docs/cmd/spo/app/app-retract.md +1 -1
- package/docs/docs/cmd/spo/app/app-uninstall.md +1 -1
- package/docs/docs/cmd/spo/app/app-upgrade.md +1 -1
- package/docs/docs/cmd/spo/apppage/apppage-add.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-get.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-add.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-remove.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-add.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-clear.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-get.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-list.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-remove.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-set.md +1 -1
- package/docs/docs/cmd/spo/externaluser/externaluser-list.md +1 -1
- package/docs/docs/cmd/spo/feature/feature-list.md +1 -1
- package/docs/docs/cmd/spo/field/field-add.md +1 -1
- package/docs/docs/cmd/spo/field/field-get.md +1 -1
- package/docs/docs/cmd/spo/field/field-set.md +1 -1
- package/docs/docs/cmd/spo/file/file-add.md +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.md +1 -1
- package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
- package/docs/docs/cmd/spo/file/file-copy.md +1 -1
- package/docs/docs/cmd/spo/file/file-get.md +1 -1
- package/docs/docs/cmd/spo/file/file-move.md +1 -1
- package/docs/docs/cmd/spo/file/file-remove.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-add.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-copy.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-list.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-move.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-remove.md +1 -1
- package/docs/docs/cmd/spo/folder/folder-rename.md +1 -1
- package/docs/docs/cmd/spo/group/group-user-add.md +1 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.md +1 -1
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.md +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-get.md +1 -1
- package/docs/docs/cmd/spo/homesite/homesite-set.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-list.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-set.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-theme-sync.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +1 -1
- package/docs/docs/cmd/spo/list/list-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-list.md +1 -1
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-label-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-label-set.md +1 -1
- package/docs/docs/cmd/spo/list/list-list.md +1 -1
- package/docs/docs/cmd/spo/list/list-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-set.md +1 -1
- package/docs/docs/cmd/spo/list/list-sitescript-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-field-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-field-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-view-set.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-get.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-list.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-remove.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-set.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-add.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-list.md +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-set.md +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-list.md +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-remove.md +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +1 -1
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +1 -1
- package/docs/docs/cmd/spo/page/page-add.md +1 -1
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +1 -1
- package/docs/docs/cmd/spo/page/page-column-get.md +1 -1
- package/docs/docs/cmd/spo/page/page-column-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-control-get.md +1 -1
- package/docs/docs/cmd/spo/page/page-control-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-remove.md +1 -1
- package/docs/docs/cmd/spo/page/page-section-add.md +1 -1
- package/docs/docs/cmd/spo/page/page-section-get.md +1 -1
- package/docs/docs/cmd/spo/page/page-section-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-set.md +1 -1
- package/docs/docs/cmd/spo/page/page-template-list.md +1 -1
- package/docs/docs/cmd/spo/page/page-text-add.md +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-get.md +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-list.md +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-remove.md +1 -1
- package/docs/docs/cmd/spo/propertybag/propertybag-set.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +1 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +1 -1
- package/docs/docs/cmd/spo/site/site-add.md +1 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-add.md +1 -1
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +1 -1
- package/docs/docs/cmd/spo/site/site-classic-add.md +1 -1
- package/docs/docs/cmd/spo/site/site-commsite-enable.md +1 -1
- package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.md +1 -1
- package/docs/docs/cmd/spo/site/site-set.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-get.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-list.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.md +1 -1
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-add.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-get.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-list.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-remove.md +1 -1
- package/docs/docs/cmd/spo/sitescript/sitescript-set.md +1 -1
- package/docs/docs/cmd/spo/spo-get.md +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-list.md +1 -1
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.md +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.md +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-settings-list.md +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.md +52 -33
- package/docs/docs/cmd/spo/term/term-add.md +1 -1
- package/docs/docs/cmd/spo/term/term-get.md +1 -1
- package/docs/docs/cmd/spo/term/term-group-add.md +1 -1
- package/docs/docs/cmd/spo/term/term-group-get.md +1 -1
- package/docs/docs/cmd/spo/term/term-group-list.md +1 -1
- package/docs/docs/cmd/spo/term/term-list.md +1 -1
- package/docs/docs/cmd/spo/term/term-set-add.md +1 -1
- package/docs/docs/cmd/spo/term/term-set-get.md +1 -1
- package/docs/docs/cmd/spo/term/term-set-list.md +1 -1
- package/docs/docs/cmd/spo/theme/theme-apply.md +1 -1
- package/docs/docs/cmd/spo/theme/theme-get.md +1 -1
- package/docs/docs/cmd/spo/theme/theme-list.md +1 -1
- package/docs/docs/cmd/spo/theme/theme-remove.md +1 -1
- package/docs/docs/cmd/spo/user/user-remove.md +1 -1
- package/docs/docs/cmd/spo/web/web-add.md +1 -1
- package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.md +1 -1
- package/docs/docs/cmd/spo/web/web-get.md +1 -1
- package/docs/docs/cmd/spo/web/web-list.md +1 -1
- package/docs/docs/cmd/spo/web/web-reindex.md +1 -1
- package/docs/docs/cmd/spo/web/web-remove.md +1 -1
- package/docs/docs/cmd/teams/app/app-publish.md +1 -1
- package/docs/docs/cmd/teams/app/app-remove.md +1 -1
- package/docs/docs/cmd/teams/app/app-uninstall.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-add.md +18 -0
- package/docs/docs/cmd/teams/channel/channel-list.md +12 -3
- package/docs/docs/cmd/teams/{conversationmember/conversationmember-add.md → channel/channel-member-add.md} +10 -4
- package/docs/docs/cmd/teams/channel/channel-member-list.md +54 -0
- package/docs/docs/cmd/teams/channel/channel-member-set.md +51 -0
- package/docs/docs/cmd/teams/channel/channel-set.md +1 -1
- package/docs/docs/cmd/teams/chat/chat-get.md +53 -0
- package/docs/docs/cmd/teams/guestsettings/guestsettings-list.md +1 -1
- package/docs/docs/cmd/teams/guestsettings/guestsettings-set.md +1 -1
- package/docs/docs/cmd/teams/membersettings/membersettings-list.md +1 -1
- package/docs/docs/cmd/teams/membersettings/membersettings-set.md +1 -1
- package/docs/docs/cmd/teams/message/message-get.md +1 -1
- package/docs/docs/cmd/teams/message/message-reply-list.md +1 -1
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.md +1 -1
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.md +1 -1
- package/docs/docs/cmd/teams/report/report-pstncalls.md +1 -1
- package/docs/docs/cmd/teams/tab/tab-list.md +1 -1
- package/docs/docs/cmd/teams/team/team-archive.md +1 -1
- package/docs/docs/cmd/teams/team/team-clone.md +1 -1
- package/docs/docs/cmd/teams/team/team-get.md +1 -1
- package/docs/docs/cmd/teams/team/team-list.md +1 -1
- package/docs/docs/cmd/teams/team/team-remove.md +1 -1
- package/docs/docs/cmd/teams/team/team-set.md +1 -1
- package/docs/docs/cmd/teams/team/team-unarchive.md +1 -1
- package/docs/docs/cmd/todo/task/task-list.md +1 -1
- package/docs/docs/cmd/todo/task/task-set.md +1 -1
- package/npm-shrinkwrap.json +24 -738
- package/package.json +5 -4
- package/dist/m365/teams/commands/conversationmember/conversationmember-list.js +0 -164
- package/docs/docs/cmd/teams/conversationmember/conversationmember-list.md +0 -39
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-beta.307d8f5",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test": "npm run test:version && npm run lint && npm run test:cov",
|
|
26
26
|
"test:version": "node scripts/check-version.js",
|
|
27
27
|
"test:cov": "c8 npm run test:test",
|
|
28
|
-
"test:test": "mocha
|
|
28
|
+
"test:test": "mocha",
|
|
29
29
|
"lint": "eslint --ext .ts src"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
],
|
|
86
86
|
"contributors": [
|
|
87
|
+
"Abhishek K M <67158080+Sync271@users.noreply.github.com>",
|
|
87
88
|
"Ågren, Simon <simon.agren@sogeti.com>",
|
|
88
89
|
"Akash Karda <akashkarda@gmail.com>",
|
|
89
90
|
"Albany, Bruce <bruce.albany@gmail.com>",
|
|
@@ -111,6 +112,7 @@
|
|
|
111
112
|
"Harding, Phil <pil.harding@platinumdogs.co.uk>",
|
|
112
113
|
"Hawrylak, Paweł <phawrylak@outlook.com>",
|
|
113
114
|
"Holemans, Milan <Milan.Holemans@vanroey.be>",
|
|
115
|
+
"Honen, Nicholas <nickhonen@gmail.com>",
|
|
114
116
|
"Högberg, Joakim <joakim.hogberg@bravero.se>",
|
|
115
117
|
"Hvam, Allan <ahp@delegate.dk>",
|
|
116
118
|
"Jaakke, Robert <robert.jaakke@mavention.nl>",
|
|
@@ -193,7 +195,6 @@
|
|
|
193
195
|
"inquirer": "^8.2.0",
|
|
194
196
|
"jmespath": "^0.16.0",
|
|
195
197
|
"json-to-ast": "^2.1.0",
|
|
196
|
-
"markshell": "^1.3.8",
|
|
197
198
|
"minimist": "^1.2.5",
|
|
198
199
|
"node-forge": "^1.2.1",
|
|
199
200
|
"omelette": "^0.4.17",
|
|
@@ -233,4 +234,4 @@
|
|
|
233
234
|
"sinon": "^13.0.1",
|
|
234
235
|
"source-map-support": "^0.5.21"
|
|
235
236
|
}
|
|
236
|
-
}
|
|
237
|
+
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const request_1 = require("../../../../request");
|
|
4
|
-
const utils_1 = require("../../../../utils");
|
|
5
|
-
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
6
|
-
const commands_1 = require("../../commands");
|
|
7
|
-
class TeamsConversationMemberListCommand extends GraphCommand_1.default {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.teamId = "";
|
|
11
|
-
}
|
|
12
|
-
get name() {
|
|
13
|
-
return commands_1.default.CONVERSATIONMEMBER_LIST;
|
|
14
|
-
}
|
|
15
|
-
get description() {
|
|
16
|
-
return 'Lists members of a channel in Microsoft Teams in the current tenant.';
|
|
17
|
-
}
|
|
18
|
-
getTelemetryProperties(args) {
|
|
19
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
20
|
-
telemetryProps.teamId = typeof args.options.teamId !== 'undefined';
|
|
21
|
-
telemetryProps.teamName = typeof args.options.teamName !== 'undefined';
|
|
22
|
-
telemetryProps.channelId = typeof args.options.channelId !== 'undefined';
|
|
23
|
-
telemetryProps.channelName = typeof args.options.channelName !== 'undefined';
|
|
24
|
-
return telemetryProps;
|
|
25
|
-
}
|
|
26
|
-
commandAction(logger, args, cb) {
|
|
27
|
-
this
|
|
28
|
-
.getTeamId(args)
|
|
29
|
-
.then((teamId) => {
|
|
30
|
-
this.teamId = teamId;
|
|
31
|
-
return this.getChannelId(teamId, args);
|
|
32
|
-
}).then((channelId) => {
|
|
33
|
-
const endpoint = `${this.resource}/v1.0/teams/${encodeURIComponent(this.teamId)}/channels/${encodeURIComponent(channelId)}/members`;
|
|
34
|
-
return utils_1.odata.getAllItems(endpoint, logger);
|
|
35
|
-
}).then((items) => {
|
|
36
|
-
if (args.options.output === 'json') {
|
|
37
|
-
logger.log(items);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
logger.log(items.map((c) => {
|
|
41
|
-
return {
|
|
42
|
-
id: c.id,
|
|
43
|
-
displayName: c.displayName,
|
|
44
|
-
userId: c.userId,
|
|
45
|
-
email: c.email
|
|
46
|
-
};
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
cb();
|
|
50
|
-
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
51
|
-
}
|
|
52
|
-
options() {
|
|
53
|
-
const options = [
|
|
54
|
-
{
|
|
55
|
-
option: '-i, --teamId [teamId]'
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
option: '--teamName [teamName]'
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
option: '-c, --channelId [channelId]'
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
option: '--channelName [channelName]'
|
|
65
|
-
}
|
|
66
|
-
];
|
|
67
|
-
const parentOptions = super.options();
|
|
68
|
-
return options.concat(parentOptions);
|
|
69
|
-
}
|
|
70
|
-
validate(args) {
|
|
71
|
-
if (args.options.teamId && args.options.teamName) {
|
|
72
|
-
return 'Specify either teamId or teamName, but not both.';
|
|
73
|
-
}
|
|
74
|
-
if (!args.options.teamId && !args.options.teamName) {
|
|
75
|
-
return 'Specify teamId or teamName, one is required';
|
|
76
|
-
}
|
|
77
|
-
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
78
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
79
|
-
}
|
|
80
|
-
if (args.options.channelId && args.options.channelName) {
|
|
81
|
-
return 'Specify either channelId or channelName, but not both.';
|
|
82
|
-
}
|
|
83
|
-
if (!args.options.channelId && !args.options.channelName) {
|
|
84
|
-
return 'Specify channelId or channelName, one is required';
|
|
85
|
-
}
|
|
86
|
-
if (args.options.channelId && !utils_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
87
|
-
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
88
|
-
}
|
|
89
|
-
return true;
|
|
90
|
-
}
|
|
91
|
-
getTeamId(args) {
|
|
92
|
-
if (args.options.teamId) {
|
|
93
|
-
return Promise.resolve(args.options.teamId);
|
|
94
|
-
}
|
|
95
|
-
const requestOptions = {
|
|
96
|
-
url: `${this.resource}/v1.0/groups?$filter=displayName eq '${encodeURIComponent(args.options.teamName)}'`,
|
|
97
|
-
headers: {
|
|
98
|
-
accept: 'application/json;odata.metadata=none'
|
|
99
|
-
},
|
|
100
|
-
responseType: 'json'
|
|
101
|
-
};
|
|
102
|
-
return request_1.default
|
|
103
|
-
.get(requestOptions)
|
|
104
|
-
.then(response => {
|
|
105
|
-
const filteredResponseByTeam = response.value.filter(t => t.resourceProvisioningOptions.includes('Team'));
|
|
106
|
-
const groupItem = filteredResponseByTeam[0];
|
|
107
|
-
if (!groupItem) {
|
|
108
|
-
return Promise.reject(`The specified team '${args.options.teamName}' does not exist in the Microsoft Teams`);
|
|
109
|
-
}
|
|
110
|
-
if (filteredResponseByTeam.length > 1) {
|
|
111
|
-
return Promise.reject(`Multiple Microsoft Teams teams with name '${args.options.teamName}' found: ${filteredResponseByTeam.map(x => x.id)}`);
|
|
112
|
-
}
|
|
113
|
-
return Promise.resolve(groupItem.id);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
getChannelId(teamId, args) {
|
|
117
|
-
if (args.options.channelId) {
|
|
118
|
-
const channelIdRequestOptions = {
|
|
119
|
-
url: `${this.resource}/v1.0/teams/${encodeURIComponent(teamId)}/channels/${encodeURIComponent(args.options.channelId)}`,
|
|
120
|
-
headers: {
|
|
121
|
-
accept: 'application/json;odata.metadata=none'
|
|
122
|
-
},
|
|
123
|
-
responseType: 'json'
|
|
124
|
-
};
|
|
125
|
-
return new Promise((resolve, reject) => {
|
|
126
|
-
request_1.default
|
|
127
|
-
.get(channelIdRequestOptions)
|
|
128
|
-
.then((response) => {
|
|
129
|
-
const channelItem = response;
|
|
130
|
-
return resolve(channelItem.id);
|
|
131
|
-
}, (err) => {
|
|
132
|
-
if (err.error && err.error.code === "NotFound") {
|
|
133
|
-
return reject(`The specified channel '${args.options.channelId}' does not exist or is invalid in the Microsoft Teams team with ID '${teamId}'`);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
return reject(err);
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
const channelRequestOptions = {
|
|
143
|
-
url: `${this.resource}/v1.0/teams/${encodeURIComponent(teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.channelName)}'`,
|
|
144
|
-
headers: {
|
|
145
|
-
accept: 'application/json;odata.metadata=none'
|
|
146
|
-
},
|
|
147
|
-
responseType: 'json'
|
|
148
|
-
};
|
|
149
|
-
return new Promise((resolve, reject) => {
|
|
150
|
-
request_1.default
|
|
151
|
-
.get(channelRequestOptions)
|
|
152
|
-
.then(response => {
|
|
153
|
-
const channelItem = response.value[0];
|
|
154
|
-
if (!channelItem) {
|
|
155
|
-
return reject(`The specified channel '${args.options.channelName}' does not exist in the Microsoft Teams team with ID '${teamId}'`);
|
|
156
|
-
}
|
|
157
|
-
return resolve(channelItem.id);
|
|
158
|
-
}, err => reject(err));
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
module.exports = new TeamsConversationMemberListCommand();
|
|
164
|
-
//# sourceMappingURL=conversationmember-list.js.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# teams conversationmember list
|
|
2
|
-
|
|
3
|
-
Lists members of a channel in Microsoft Teams in the current tenant
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
m365 teams conversationmember list [options]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Options
|
|
12
|
-
|
|
13
|
-
`-i, --teamId [teamId]`
|
|
14
|
-
: The ID of the team where the channel is located. Specify either `teamId` or `teamName`, but not both.
|
|
15
|
-
|
|
16
|
-
`--teamName [teamName]`
|
|
17
|
-
: The name of the team where the channel is located. Specify either `teamId` or `teamName`, but not both.
|
|
18
|
-
|
|
19
|
-
`-c, --channelId [channelId]`
|
|
20
|
-
: The ID of the channel for which to list members. Specify either `channelId` or `channelName`, but not both.
|
|
21
|
-
|
|
22
|
-
`--channelName [channelName]`
|
|
23
|
-
: The name of the channel for which to list members. Specify either `channelId` or `channelName`, but not both.
|
|
24
|
-
|
|
25
|
-
--8<-- "docs/cmd/_global.md"
|
|
26
|
-
|
|
27
|
-
## Examples
|
|
28
|
-
|
|
29
|
-
List all members of a channel based on their ids
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
m365 teams conversationmember list --teamId 47d6625d-a540-4b59-a4ab-19b787e40593 --channelId 19:586a8b9e36c4479bbbd378e439a96df2@thread.skype
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
List all members of a channel based on their names
|
|
36
|
-
|
|
37
|
-
```sh
|
|
38
|
-
m365 teams conversationmember list --teamName "Human Resources" --channelName "Private Channel"
|
|
39
|
-
```
|