@pnp/cli-microsoft365 6.0.0-beta.b62b543 → 6.0.0-beta.ba3c436
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/cli/Cli.js +7 -10
- package/dist/m365/aad/commands/app/app-get.js +3 -2
- package/dist/m365/aad/commands/app/app-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-role-add.js +3 -2
- package/dist/m365/aad/commands/app/app-role-list.js +3 -2
- package/dist/m365/aad/commands/app/app-role-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-set.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +5 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +5 -4
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +2 -1
- package/dist/m365/aad/commands/sp/sp-add.js +3 -2
- package/dist/m365/aad/commands/sp/sp-get.js +3 -2
- package/dist/m365/aad/commands/user/user-get.js +5 -4
- package/dist/m365/aad/commands/user/user-hibp.js +2 -1
- package/dist/m365/aad/commands/user/user-list.js +2 -1
- package/dist/m365/aad/commands/user/user-set.js +2 -1
- package/dist/m365/aad/commands/user/user-signin-list.js +5 -4
- package/dist/m365/base/DateAndPeriodBasedReport.js +3 -2
- package/dist/m365/base/PeriodBasedReport.js +2 -1
- package/dist/m365/booking/commands/business/business-get.js +2 -1
- package/dist/m365/cli/commands/config/config-set.js +1 -0
- package/dist/m365/commands/login.js +6 -1
- package/dist/m365/file/commands/file-list.js +2 -1
- package/dist/m365/flow/commands/environment/environment-get.js +2 -1
- package/dist/m365/flow/commands/flow-disable.js +2 -1
- package/dist/m365/flow/commands/flow-enable.js +2 -1
- package/dist/m365/flow/commands/flow-export.js +5 -4
- package/dist/m365/flow/commands/flow-get.js +2 -1
- package/dist/m365/flow/commands/flow-list.js +2 -1
- package/dist/m365/flow/commands/flow-remove.js +2 -1
- package/dist/m365/flow/commands/run/run-cancel.js +2 -1
- package/dist/m365/flow/commands/run/run-get.js +2 -1
- package/dist/m365/flow/commands/run/run-list.js +2 -1
- package/dist/m365/flow/commands/run/run-resubmit.js +3 -2
- package/dist/m365/outlook/commands/mail/mail-send.js +2 -1
- package/dist/m365/outlook/commands/message/message-list.js +2 -1
- package/dist/m365/outlook/commands/message/message-move.js +2 -1
- package/dist/m365/pa/commands/app/app-get.js +2 -1
- package/dist/m365/pa/commands/app/app-list.js +2 -1
- package/dist/m365/pa/commands/app/app-remove.js +2 -1
- package/dist/m365/pa/commands/connector/connector-export.js +2 -1
- package/dist/m365/pa/commands/connector/connector-list.js +2 -1
- package/dist/m365/pa/commands/environment/environment-get.js +2 -1
- package/dist/m365/planner/commands/task/task-add.js +1 -1
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +3 -2
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -1
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -1
- package/dist/m365/planner/commands/task/task-get.js +2 -1
- package/dist/m365/planner/commands/task/task-list.js +4 -3
- package/dist/m365/planner/commands/task/task-reference-add.js +2 -2
- package/dist/m365/planner/commands/task/task-reference-list.js +2 -1
- package/dist/m365/planner/commands/task/task-reference-remove.js +1 -1
- package/dist/m365/planner/commands/task/task-set.js +2 -2
- package/dist/m365/pp/commands/dataverse/dataverse-table-get.js +77 -0
- package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +95 -0
- package/dist/m365/pp/commands/gateway/gateway-get.js +2 -1
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +3 -2
- package/dist/m365/pp/commands/solution/solution-list.js +5 -11
- package/dist/m365/pp/commands/solution/solution-publisher-get.js +107 -0
- package/dist/m365/pp/commands/solution/solution-publisher-list.js +78 -0
- package/dist/m365/pp/commands/solution/solution-publisher-remove.js +130 -0
- package/dist/m365/pp/commands.js +5 -0
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +3 -2
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -2
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.16.0-rc.0.js → doctor-1.16.0.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.16.0-rc.0.js → upgrade-1.16.0.js} +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
- package/dist/m365/spfx/commands/spfx-doctor.js +1 -1
- package/dist/m365/spo/commands/app/app-get.js +2 -1
- package/dist/m365/spo/commands/app/app-install.js +2 -1
- package/dist/m365/spo/commands/app/app-remove.js +2 -1
- package/dist/m365/spo/commands/app/app-retract.js +2 -1
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +2 -1
- package/dist/m365/spo/commands/app/app-uninstall.js +2 -1
- package/dist/m365/spo/commands/app/app-upgrade.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-get.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-set.js +2 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +43 -27
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +4 -3
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +43 -58
- package/dist/m365/spo/commands/file/file-add.js +14 -13
- package/dist/m365/spo/commands/file/file-checkin.js +4 -3
- package/dist/m365/spo/commands/file/file-checkout.js +3 -2
- package/dist/m365/spo/commands/file/file-copy.js +2 -1
- package/dist/m365/spo/commands/file/file-get.js +3 -2
- package/dist/m365/spo/commands/file/file-move.js +2 -1
- package/dist/m365/spo/commands/file/file-remove.js +3 -2
- package/dist/m365/spo/commands/file/file-rename.js +3 -2
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +114 -0
- package/dist/m365/spo/commands/file/file-version-get.js +104 -0
- package/dist/m365/spo/commands/file/file-version-list.js +1 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +119 -0
- package/dist/m365/spo/commands/file/file-version-restore.js +119 -0
- package/dist/m365/spo/commands/folder/folder-get.js +3 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +2 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +215 -0
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +2 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/group/group-get.js +3 -2
- package/dist/m365/spo/commands/group/{group-user-add.js → group-member-add.js} +17 -16
- package/dist/m365/spo/commands/group/{group-user-list.js → group-member-list.js} +19 -18
- package/dist/m365/spo/commands/group/{group-user-remove.js → group-member-remove.js} +18 -17
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-get.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-add.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-set.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-get.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-list.js +3 -3
- package/dist/m365/spo/commands/page/Page.js +3 -2
- package/dist/m365/spo/commands/page/page-add.js +2 -1
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +4 -3
- package/dist/m365/spo/commands/page/page-control-get.js +2 -1
- package/dist/m365/spo/commands/page/page-control-list.js +2 -1
- package/dist/m365/spo/commands/page/page-control-set.js +3 -2
- package/dist/m365/spo/commands/page/page-get.js +2 -1
- package/dist/m365/spo/commands/page/page-header-set.js +6 -5
- package/dist/m365/spo/commands/page/page-section-add.js +4 -3
- package/dist/m365/spo/commands/page/page-set.js +2 -1
- package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -2
- package/dist/m365/spo/commands/site/site-hubsite-connect.js +2 -1
- package/dist/m365/spo/commands/site/site-rename.js +2 -1
- package/dist/m365/spo/commands/site/site-set.js +1 -1
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +2 -1
- package/dist/m365/spo/commands/spo-search.js +3 -2
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -1
- package/dist/m365/spo/commands/user/user-get.js +4 -3
- package/dist/m365/spo/commands/user/user-remove.js +2 -1
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -1
- package/dist/m365/spo/commands/web/web-add.js +2 -1
- package/dist/m365/spo/commands.js +8 -3
- package/dist/m365/teams/commands/app/app-install.js +3 -2
- package/dist/m365/teams/commands/app/app-list.js +2 -1
- package/dist/m365/teams/commands/app/app-publish.js +14 -15
- package/dist/m365/teams/commands/app/app-update.js +2 -1
- package/dist/m365/teams/commands/channel/channel-get.js +4 -3
- package/dist/m365/teams/commands/channel/channel-member-add.js +4 -3
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -1
- package/dist/m365/teams/commands/channel/channel-remove.js +4 -3
- package/dist/m365/teams/commands/channel/channel-set.js +3 -2
- package/dist/m365/teams/commands/chat/chat-get.js +2 -1
- package/dist/m365/teams/commands/chat/chatUtil.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -1
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -1
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +2 -1
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -2
- package/dist/m365/teams/commands/report/report-pstncalls.js +3 -2
- package/dist/m365/teams/commands/tab/tab-add.js +2 -1
- package/dist/m365/teams/commands/tab/tab-get.js +4 -3
- package/dist/m365/teams/commands/tab/tab-list.js +2 -1
- package/dist/m365/teams/commands/tab/tab-remove.js +2 -1
- package/dist/m365/teams/commands/team/team-archive.js +2 -1
- package/dist/m365/teams/commands/team/team-clone.js +2 -1
- package/dist/m365/teams/commands/team/team-get.js +2 -1
- package/dist/m365/teams/commands/team/team-remove.js +2 -1
- package/dist/m365/teams/commands/team/team-set.js +2 -1
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -1
- package/dist/m365/teams/commands/user/user-app-list.js +3 -2
- package/dist/m365/tenant/commands/security/security-alerts-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +2 -1
- package/dist/m365/todo/commands/task/task-set.js +2 -1
- package/dist/m365/yammer/commands/group/group-list.js +12 -27
- package/dist/m365/yammer/commands/user/user-get.js +3 -2
- package/dist/m365/yammer/commands/yammer-search.js +6 -2
- package/dist/utils/aadGroup.js +2 -1
- package/dist/utils/powerPlatform.js +3 -2
- package/dist/utils/spo.js +3 -2
- package/docs/docs/cmd/flow/flow-get.md +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.md +120 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.md +49 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-get.md +83 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-list.md +71 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-remove.md +58 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +42 -2
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +6 -1
- package/docs/docs/cmd/spo/file/file-version-clear.md +55 -0
- package/docs/docs/cmd/spo/file/file-version-get.md +76 -0
- package/docs/docs/cmd/spo/file/file-version-remove.md +58 -0
- package/docs/docs/cmd/spo/file/file-version-restore.md +58 -0
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.md +59 -0
- package/docs/docs/cmd/spo/group/{group-user-add.md → group-member-add.md} +11 -11
- package/docs/docs/cmd/spo/group/{group-user-list.md → group-member-list.md} +5 -5
- package/docs/docs/cmd/spo/group/group-member-remove.md +39 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.md +0 -3
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +2 -5
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +2 -5
- package/docs/docs/cmd/spo/hubsite/hubsite-set.md +2 -5
- package/docs/docs/cmd/spo/listitem/listitem-add.md +6 -0
- package/docs/docs/cmd/spo/listitem/listitem-set.md +6 -0
- package/docs/docs/cmd/spo/page/page-add.md +2 -2
- package/docs/docs/cmd/spo/page/page-set.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +3 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +3 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +3 -1
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +3 -3
- package/docs/docs/cmd/spo/site/site-hubsite-connect.md +0 -3
- package/docs/docs/cmd/spo/site/site-hubsite-disconnect.md +0 -5
- package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.md +0 -5
- package/docs/docs/cmd/spo/spo-get.md +23 -0
- package/docs/docs/cmd/spo/spo-search.md +29 -0
- package/docs/docs/cmd/spo/spo-set.md +4 -0
- package/docs/docs/cmd/spo/user/user-get.md +49 -2
- package/docs/docs/cmd/spo/user/user-list.md +41 -0
- package/docs/docs/cmd/spo/user/user-remove.md +4 -0
- package/docs/docs/cmd/spo/userprofile/userprofile-get.md +586 -0
- package/docs/docs/cmd/spo/userprofile/userprofile-set.md +4 -0
- package/docs/docs/cmd/spo/web/web-add.md +43 -0
- package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.md +29 -0
- package/docs/docs/cmd/spo/web/web-get.md +127 -0
- package/docs/docs/cmd/spo/web/web-installedlanguage-list.md +29 -0
- package/docs/docs/cmd/spo/web/web-list.md +81 -0
- package/docs/docs/cmd/spo/web/web-reindex.md +4 -0
- package/docs/docs/cmd/spo/web/web-remove.md +4 -0
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +4 -0
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +4 -0
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +4 -0
- package/docs/docs/cmd/spo/web/web-set.md +4 -0
- package/docs/docs/cmd/teams/app/app-install.md +4 -0
- package/docs/docs/cmd/teams/app/app-list.md +30 -0
- package/docs/docs/cmd/teams/app/app-publish.md +31 -1
- package/docs/docs/cmd/teams/app/app-remove.md +4 -0
- package/docs/docs/cmd/teams/app/app-uninstall.md +4 -0
- package/docs/docs/cmd/teams/app/app-update.md +4 -0
- package/docs/docs/cmd/teams/cache/cache-remove.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-add.md +37 -0
- package/docs/docs/cmd/teams/channel/channel-get.md +39 -0
- package/docs/docs/cmd/teams/channel/channel-list.md +35 -0
- package/docs/docs/cmd/teams/channel/channel-member-add.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-member-list.md +37 -0
- package/docs/docs/cmd/teams/channel/channel-member-remove.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-member-set.md +35 -0
- package/docs/docs/cmd/teams/channel/channel-remove.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-set.md +3 -0
- package/docs/docs/cmd/teams/chat/chat-get.md +42 -0
- package/docs/docs/cmd/teams/chat/chat-list.md +38 -0
- package/docs/docs/cmd/teams/chat/chat-member-list.md +35 -0
- package/docs/docs/cmd/teams/chat/chat-message-list.md +60 -0
- package/docs/docs/cmd/teams/chat/chat-message-send.md +4 -0
- package/docs/docs/cmd/teams/funsettings/funsettings-list.md +29 -0
- package/docs/docs/cmd/teams/funsettings/funsettings-set.md +4 -0
- package/docs/docs/cmd/teams/guestsettings/guestsettings-list.md +25 -0
- package/docs/docs/cmd/teams/guestsettings/guestsettings-set.md +4 -0
- package/docs/docs/cmd/teams/membersettings/membersettings-list.md +33 -0
- package/docs/docs/cmd/teams/membersettings/membersettings-set.md +4 -0
- package/docs/docs/cmd/yammer/group/group-list.md +65 -0
- package/docs/docs/cmd/yammer/group/group-user-add.md +4 -0
- package/docs/docs/cmd/yammer/group/group-user-remove.md +4 -0
- package/docs/docs/cmd/yammer/message/message-add.md +55 -0
- package/docs/docs/cmd/yammer/message/message-get.md +64 -0
- package/docs/docs/cmd/yammer/message/message-like-set.md +4 -0
- package/docs/docs/cmd/yammer/message/message-list.md +60 -0
- package/docs/docs/cmd/yammer/message/message-remove.md +4 -0
- package/docs/docs/cmd/yammer/network/network-list.md +96 -0
- package/docs/docs/cmd/yammer/report/report-activitycounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-activityusercounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-activityuserdetail.md +36 -0
- package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.md +33 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.md +34 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.md +38 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.md +37 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.md +30 -0
- package/docs/docs/cmd/yammer/user/user-get.md +99 -0
- package/docs/docs/cmd/yammer/user/user-list.md +97 -0
- package/docs/docs/cmd/yammer/yammer-search.md +77 -0
- package/npm-shrinkwrap.json +235 -257
- package/package.json +15 -15
- package/docs/docs/cmd/spo/group/group-user-remove.md +0 -39
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.chatUtil = void 0;
|
|
13
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
13
14
|
const odata_1 = require("../../../../utils/odata");
|
|
14
15
|
exports.chatUtil = {
|
|
15
16
|
/**
|
|
@@ -42,7 +43,7 @@ exports.chatUtil = {
|
|
|
42
43
|
*/
|
|
43
44
|
findExistingGroupChatsByName(name) {
|
|
44
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const endpoint = `https://graph.microsoft.com/v1.0/chats?$filter=topic eq '${
|
|
46
|
+
const endpoint = `https://graph.microsoft.com/v1.0/chats?$filter=topic eq '${formatting_1.formatting.encodeQueryParameter(name).replace("'", "''")}'&$expand=members&$select=id,topic,createdDateTime,chatType`;
|
|
46
47
|
return odata_1.odata.getAllItems(endpoint);
|
|
47
48
|
});
|
|
48
49
|
}
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsFunSettingsListCommand_instances, _TeamsFunSettingsListCommand_initOptions, _TeamsFunSettingsListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -35,7 +36,7 @@ class TeamsFunSettingsListCommand extends GraphCommand_1.default {
|
|
|
35
36
|
commandAction(logger, args) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
38
|
const requestOptions = {
|
|
38
|
-
url: `${this.resource}/v1.0/teams/${
|
|
39
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}?$select=funSettings`,
|
|
39
40
|
headers: {
|
|
40
41
|
accept: 'application/json;odata.metadata=none'
|
|
41
42
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsFunSettingsSetCommand_instances, _TeamsFunSettingsSetCommand_initTelemetry, _TeamsFunSettingsSetCommand_initOptions, _TeamsFunSettingsSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -48,7 +49,7 @@ class TeamsFunSettingsSetCommand extends GraphCommand_1.default {
|
|
|
48
49
|
data.funSettings.giphyContentRating = args.options.giphyContentRating;
|
|
49
50
|
}
|
|
50
51
|
const requestOptions = {
|
|
51
|
-
url: `${this.resource}/v1.0/teams/${
|
|
52
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}`,
|
|
52
53
|
headers: {
|
|
53
54
|
accept: 'application/json;odata.metadata=none'
|
|
54
55
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsGuestSettingsListCommand_instances, _TeamsGuestSettingsListCommand_initOptions, _TeamsGuestSettingsListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -35,7 +36,7 @@ class TeamsGuestSettingsListCommand extends GraphCommand_1.default {
|
|
|
35
36
|
commandAction(logger, args) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
38
|
const requestOptions = {
|
|
38
|
-
url: `${this.resource}/v1.0/teams/${
|
|
39
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}?$select=guestSettings`,
|
|
39
40
|
headers: {
|
|
40
41
|
accept: 'application/json;odata.metadata=none'
|
|
41
42
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsGuestSettingsSetCommand_instances, _TeamsGuestSettingsSetCommand_initTelemetry, _TeamsGuestSettingsSetCommand_initOptions, _TeamsGuestSettingsSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -44,7 +45,7 @@ class TeamsGuestSettingsSetCommand extends GraphCommand_1.default {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
const requestOptions = {
|
|
47
|
-
url: `${this.resource}/v1.0/teams/${
|
|
48
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}`,
|
|
48
49
|
headers: {
|
|
49
50
|
accept: 'application/json;odata.metadata=none'
|
|
50
51
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMemberSettingsListCommand_instances, _TeamsMemberSettingsListCommand_initOptions, _TeamsMemberSettingsListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -35,7 +36,7 @@ class TeamsMemberSettingsListCommand extends GraphCommand_1.default {
|
|
|
35
36
|
commandAction(logger, args) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
38
|
const requestOptions = {
|
|
38
|
-
url: `${this.resource}/v1.0/teams/${
|
|
39
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}?$select=memberSettings`,
|
|
39
40
|
headers: {
|
|
40
41
|
accept: 'application/json;odata.metadata=none'
|
|
41
42
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMemberSettingsSetCommand_instances, _TeamsMemberSettingsSetCommand_initTelemetry, _TeamsMemberSettingsSetCommand_initOptions, _TeamsMemberSettingsSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -44,7 +45,7 @@ class TeamsMemberSettingsSetCommand extends GraphCommand_1.default {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
const requestOptions = {
|
|
47
|
-
url: `${this.resource}/v1.0/teams/${
|
|
48
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}`,
|
|
48
49
|
headers: {
|
|
49
50
|
accept: 'application/json;odata.metadata=none'
|
|
50
51
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMessagingSettingsListCommand_instances, _TeamsMessagingSettingsListCommand_initOptions, _TeamsMessagingSettingsListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -35,7 +36,7 @@ class TeamsMessagingSettingsListCommand extends GraphCommand_1.default {
|
|
|
35
36
|
commandAction(logger, args) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
38
|
const requestOptions = {
|
|
38
|
-
url: `${this.resource}/v1.0/teams/${
|
|
39
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}?$select=messagingSettings`,
|
|
39
40
|
headers: {
|
|
40
41
|
accept: 'application/json;odata.metadata=none'
|
|
41
42
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMessagingSettingsSetCommand_instances, _TeamsMessagingSettingsSetCommand_initTelemetry, _TeamsMessagingSettingsSetCommand_initOptions, _TeamsMessagingSettingsSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -44,7 +45,7 @@ class TeamsMessagingSettingsSetCommand extends GraphCommand_1.default {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
const requestOptions = {
|
|
47
|
-
url: `${this.resource}/v1.0/teams/${
|
|
48
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}`,
|
|
48
49
|
headers: {
|
|
49
50
|
accept: 'application/json;odata.metadata=none'
|
|
50
51
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsReportDirectroutingcallsCommand_instances, _TeamsReportDirectroutingcallsCommand_initTelemetry, _TeamsReportDirectroutingcallsCommand_initOptions, _TeamsReportDirectroutingcallsCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -38,9 +39,9 @@ class TeamsReportDirectroutingcallsCommand extends GraphCommand_1.default {
|
|
|
38
39
|
}
|
|
39
40
|
commandAction(logger, args) {
|
|
40
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const toDateTimeParameter =
|
|
42
|
+
const toDateTimeParameter = formatting_1.formatting.encodeQueryParameter(args.options.toDateTime ? args.options.toDateTime : new Date().toISOString());
|
|
42
43
|
const requestOptions = {
|
|
43
|
-
url: `${this.resource}/v1.0/communications/callRecords/getDirectRoutingCalls(fromDateTime=${
|
|
44
|
+
url: `${this.resource}/v1.0/communications/callRecords/getDirectRoutingCalls(fromDateTime=${formatting_1.formatting.encodeQueryParameter(args.options.fromDateTime)},toDateTime=${toDateTimeParameter})`,
|
|
44
45
|
headers: {
|
|
45
46
|
accept: 'application/json;odata.metadata=none'
|
|
46
47
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsReportPstncallsCommand_instances, _TeamsReportPstncallsCommand_initTelemetry, _TeamsReportPstncallsCommand_initOptions, _TeamsReportPstncallsCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -38,9 +39,9 @@ class TeamsReportPstncallsCommand extends GraphCommand_1.default {
|
|
|
38
39
|
}
|
|
39
40
|
commandAction(logger, args) {
|
|
40
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const toDateTimeParameter =
|
|
42
|
+
const toDateTimeParameter = formatting_1.formatting.encodeQueryParameter(args.options.toDateTime ? args.options.toDateTime : new Date().toISOString());
|
|
42
43
|
const requestOptions = {
|
|
43
|
-
url: `${this.resource}/v1.0/communications/callRecords/getPstnCalls(fromDateTime=${
|
|
44
|
+
url: `${this.resource}/v1.0/communications/callRecords/getPstnCalls(fromDateTime=${formatting_1.formatting.encodeQueryParameter(args.options.fromDateTime)},toDateTime=${toDateTimeParameter})`,
|
|
44
45
|
headers: {
|
|
45
46
|
accept: 'application/json;odata.metadata=none'
|
|
46
47
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTabAddCommand_instances, _TeamsTabAddCommand_initTelemetry, _TeamsTabAddCommand_initOptions, _TeamsTabAddCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -40,7 +41,7 @@ class TeamsTabAddCommand extends GraphCommand_1.default {
|
|
|
40
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
42
|
const data = this.mapRequestBody(args.options);
|
|
42
43
|
const requestOptions = {
|
|
43
|
-
url: `${this.resource}/v1.0/teams/${
|
|
44
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}/channels/${args.options.channelId}/tabs`,
|
|
44
45
|
headers: {
|
|
45
46
|
accept: 'application/json;odata.metadata=none',
|
|
46
47
|
'content-type': 'application/json;odata=nometadata'
|
|
@@ -20,6 +20,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
23
24
|
class TeamsTabGetCommand extends GraphCommand_1.default {
|
|
24
25
|
constructor() {
|
|
25
26
|
super();
|
|
@@ -55,7 +56,7 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
|
|
|
55
56
|
return Promise.resolve(args.options.channelId);
|
|
56
57
|
}
|
|
57
58
|
const channelRequestOptions = {
|
|
58
|
-
url: `${this.resource}/v1.0/teams/${
|
|
59
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.channelName)}'`,
|
|
59
60
|
headers: {
|
|
60
61
|
accept: 'application/json;odata.metadata=none'
|
|
61
62
|
},
|
|
@@ -76,7 +77,7 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
|
|
|
76
77
|
return Promise.resolve(args.options.id);
|
|
77
78
|
}
|
|
78
79
|
const tabRequestOptions = {
|
|
79
|
-
url: `${this.resource}/v1.0/teams/${
|
|
80
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels/${formatting_1.formatting.encodeQueryParameter(this.channelId)}/tabs?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.name)}'`,
|
|
80
81
|
headers: {
|
|
81
82
|
accept: 'application/json;odata.metadata=none'
|
|
82
83
|
},
|
|
@@ -98,7 +99,7 @@ class TeamsTabGetCommand extends GraphCommand_1.default {
|
|
|
98
99
|
this.teamId = yield this.getTeamId(args);
|
|
99
100
|
this.channelId = yield this.getChannelId(args);
|
|
100
101
|
const tabId = yield this.getTabId(args);
|
|
101
|
-
const endpoint = `${this.resource}/v1.0/teams/${
|
|
102
|
+
const endpoint = `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(this.teamId)}/channels/${formatting_1.formatting.encodeQueryParameter(this.channelId)}/tabs/${formatting_1.formatting.encodeQueryParameter(tabId)}`;
|
|
102
103
|
const requestOptions = {
|
|
103
104
|
url: endpoint,
|
|
104
105
|
headers: {
|
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsTabListCommand_instances, _TeamsTabListCommand_initOptions, _TeamsTabListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
18
19
|
const odata_1 = require("../../../../utils/odata");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
@@ -37,7 +38,7 @@ class TeamsTabListCommand extends GraphCommand_1.default {
|
|
|
37
38
|
}
|
|
38
39
|
commandAction(logger, args) {
|
|
39
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const endpoint = `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${
|
|
41
|
+
const endpoint = `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${formatting_1.formatting.encodeQueryParameter(args.options.channelId)}/tabs?$expand=teamsApp`;
|
|
41
42
|
try {
|
|
42
43
|
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
43
44
|
items.forEach(i => {
|
|
@@ -17,6 +17,7 @@ var _TeamsTabRemoveCommand_instances, _TeamsTabRemoveCommand_initTelemetry, _Tea
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const validation_1 = require("../../../../utils/validation");
|
|
21
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
23
|
const commands_1 = require("../../commands");
|
|
@@ -38,7 +39,7 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
|
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
40
|
const removeTab = () => __awaiter(this, void 0, void 0, function* () {
|
|
40
41
|
const requestOptions = {
|
|
41
|
-
url: `${this.resource}/v1.0/teams/${
|
|
42
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.teamId)}/channels/${args.options.channelId}/tabs/${formatting_1.formatting.encodeQueryParameter(args.options.id)}`,
|
|
42
43
|
headers: {
|
|
43
44
|
accept: "application/json;odata.metadata=none"
|
|
44
45
|
},
|
|
@@ -20,6 +20,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
23
24
|
class TeamsTeamArchiveCommand extends GraphCommand_1.default {
|
|
24
25
|
constructor() {
|
|
25
26
|
super();
|
|
@@ -54,7 +55,7 @@ class TeamsTeamArchiveCommand extends GraphCommand_1.default {
|
|
|
54
55
|
try {
|
|
55
56
|
const teamId = yield this.getTeamId(args);
|
|
56
57
|
const requestOptions = {
|
|
57
|
-
url: `${this.resource}/v1.0/teams/${
|
|
58
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(teamId)}/archive`,
|
|
58
59
|
headers: {
|
|
59
60
|
'content-type': 'application/json;odata=nometadata',
|
|
60
61
|
'accept': 'application/json;odata.metadata=none'
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTeamCloneCommand_instances, _TeamsTeamCloneCommand_initTelemetry, _TeamsTeamCloneCommand_initOptions, _TeamsTeamCloneCommand_initValidators, _TeamsTeamCloneCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -51,7 +52,7 @@ class TeamsTeamCloneCommand extends GraphCommand_1.default {
|
|
|
51
52
|
data.visibility = args.options.visibility;
|
|
52
53
|
}
|
|
53
54
|
const requestOptions = {
|
|
54
|
-
url: `${this.resource}/v1.0/teams/${
|
|
55
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(args.options.id)}/clone`,
|
|
55
56
|
headers: {
|
|
56
57
|
"content-type": "application/json",
|
|
57
58
|
accept: 'application/json;odata.metadata=none'
|
|
@@ -20,6 +20,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
23
24
|
class TeamsTeamGetCommand extends GraphCommand_1.default {
|
|
24
25
|
constructor() {
|
|
25
26
|
super();
|
|
@@ -53,7 +54,7 @@ class TeamsTeamGetCommand extends GraphCommand_1.default {
|
|
|
53
54
|
try {
|
|
54
55
|
const teamId = yield this.getTeamId(args);
|
|
55
56
|
const requestOptions = {
|
|
56
|
-
url: `${this.resource}/v1.0/teams/${
|
|
57
|
+
url: `${this.resource}/v1.0/teams/${formatting_1.formatting.encodeQueryParameter(teamId)}`,
|
|
57
58
|
headers: {
|
|
58
59
|
accept: 'application/json;odata.metadata=none'
|
|
59
60
|
},
|
|
@@ -21,6 +21,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
21
21
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
22
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
24
25
|
class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
25
26
|
constructor() {
|
|
26
27
|
super();
|
|
@@ -55,7 +56,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
55
56
|
try {
|
|
56
57
|
const teamId = yield this.getTeamId(args);
|
|
57
58
|
const requestOptions = {
|
|
58
|
-
url: `${this.resource}/v1.0/groups/${
|
|
59
|
+
url: `${this.resource}/v1.0/groups/${formatting_1.formatting.encodeQueryParameter(teamId)}`,
|
|
59
60
|
headers: {
|
|
60
61
|
accept: 'application/json;odata.metadata=none'
|
|
61
62
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
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
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -56,7 +57,7 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
|
56
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
58
|
const data = this.mapRequestBody(args.options);
|
|
58
59
|
const requestOptions = {
|
|
59
|
-
url: `${this.resource}/v1.0/groups/${
|
|
60
|
+
url: `${this.resource}/v1.0/groups/${formatting_1.formatting.encodeQueryParameter(args.options.id)}`,
|
|
60
61
|
headers: {
|
|
61
62
|
accept: 'application/json;odata.metadata=none'
|
|
62
63
|
},
|
|
@@ -20,6 +20,7 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
23
24
|
class TeamsTeamUnarchiveCommand extends GraphCommand_1.default {
|
|
24
25
|
constructor() {
|
|
25
26
|
super();
|
|
@@ -53,7 +54,7 @@ class TeamsTeamUnarchiveCommand extends GraphCommand_1.default {
|
|
|
53
54
|
try {
|
|
54
55
|
const teamId = yield this.getTeamId(args);
|
|
55
56
|
const requestOptions = {
|
|
56
|
-
url: `${endpoint}/teams/${
|
|
57
|
+
url: `${endpoint}/teams/${formatting_1.formatting.encodeQueryParameter(teamId)}/unarchive`,
|
|
57
58
|
headers: {
|
|
58
59
|
'content-type': 'application/json;odata=nometadata',
|
|
59
60
|
'accept': 'application/json;odata.metadata=none'
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsUserAppListCommand_instances, _TeamsUserAppListCommand_initTelemetry, _TeamsUserAppListCommand_initOptions, _TeamsUserAppListCommand_initValidators, _TeamsUserAppListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const odata_1 = require("../../../../utils/odata");
|
|
20
21
|
const validation_1 = require("../../../../utils/validation");
|
|
21
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
@@ -39,7 +40,7 @@ class TeamsUserAppListCommand extends GraphCommand_1.default {
|
|
|
39
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
41
|
try {
|
|
41
42
|
const userId = (yield this.getUserId(args)).value;
|
|
42
|
-
const endpoint = `${this.resource}/v1.0/users/${
|
|
43
|
+
const endpoint = `${this.resource}/v1.0/users/${formatting_1.formatting.encodeQueryParameter(userId)}/teamwork/installedApps?$expand=teamsAppDefinition`;
|
|
43
44
|
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
44
45
|
items.forEach(i => {
|
|
45
46
|
const userAppId = Buffer.from(i.id, 'base64').toString('ascii');
|
|
@@ -70,7 +71,7 @@ class TeamsUserAppListCommand extends GraphCommand_1.default {
|
|
|
70
71
|
return Promise.resolve({ value: args.options.userId });
|
|
71
72
|
}
|
|
72
73
|
const requestOptions = {
|
|
73
|
-
url: `${this.resource}/v1.0/users/${
|
|
74
|
+
url: `${this.resource}/v1.0/users/${formatting_1.formatting.encodeQueryParameter(args.options.userName)}/id`,
|
|
74
75
|
headers: {
|
|
75
76
|
accept: 'application/json;odata.metadata=none'
|
|
76
77
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TenantSecurityAlertsListCommand_instances, _TenantSecurityAlertsListCommand_initTelemetry, _TenantSecurityAlertsListCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class TenantSecurityAlertsListCommand extends GraphCommand_1.default {
|
|
@@ -59,7 +60,7 @@ class TenantSecurityAlertsListCommand extends GraphCommand_1.default {
|
|
|
59
60
|
case 'azure active directory identity protection':
|
|
60
61
|
vendorName = 'IPC';
|
|
61
62
|
}
|
|
62
|
-
queryFilter = `?$filter=vendorInformation/provider eq '${
|
|
63
|
+
queryFilter = `?$filter=vendorInformation/provider eq '${formatting_1.formatting.encodeQueryParameter(vendorName)}'`;
|
|
63
64
|
}
|
|
64
65
|
const requestOptions = {
|
|
65
66
|
url: `${this.resource}/v1.0/security/alerts${queryFilter}`,
|
package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js
CHANGED
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TenantServiceAnnouncementHealthIssueGetCommand_instances, _TenantServiceAnnouncementHealthIssueGetCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class TenantServiceAnnouncementHealthIssueGetCommand extends GraphCommand_1.default {
|
|
@@ -33,7 +34,7 @@ class TenantServiceAnnouncementHealthIssueGetCommand extends GraphCommand_1.defa
|
|
|
33
34
|
commandAction(logger, args) {
|
|
34
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
36
|
const requestOptions = {
|
|
36
|
-
url: `${this.resource}/v1.0/admin/serviceAnnouncement/issues/${
|
|
37
|
+
url: `${this.resource}/v1.0/admin/serviceAnnouncement/issues/${formatting_1.formatting.encodeQueryParameter(args.options.id)}`,
|
|
37
38
|
headers: {
|
|
38
39
|
accept: 'application/json;odata.metadata=none'
|
|
39
40
|
},
|
package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js
CHANGED
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TenantServiceAnnouncementHealthIssueListCommand_instances, _TenantServiceAnnouncementHealthIssueListCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
18
19
|
const odata_1 = require("../../../../utils/odata");
|
|
19
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
@@ -37,7 +38,7 @@ class TenantServiceAnnouncementHealthIssueListCommand extends GraphCommand_1.def
|
|
|
37
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
39
|
let endpoint = `${this.resource}/v1.0/admin/serviceAnnouncement/issues`;
|
|
39
40
|
if (args.options.service) {
|
|
40
|
-
endpoint += `?$filter=service eq '${
|
|
41
|
+
endpoint += `?$filter=service eq '${formatting_1.formatting.encodeQueryParameter(args.options.service)}'`;
|
|
41
42
|
}
|
|
42
43
|
try {
|
|
43
44
|
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TenantServiceAnnouncementMessageListCommand_instances, _TenantServiceAnnouncementMessageListCommand_initTelemetry, _TenantServiceAnnouncementMessageListCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
18
19
|
const odata_1 = require("../../../../utils/odata");
|
|
19
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
@@ -38,7 +39,7 @@ class TenantServiceAnnouncementMessageListCommand extends GraphCommand_1.default
|
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
40
|
let endpoint = `${this.resource}/v1.0/admin/serviceAnnouncement/messages`;
|
|
40
41
|
if (args.options.service) {
|
|
41
|
-
endpoint += `?$filter=services/any(c:c+eq+'${
|
|
42
|
+
endpoint += `?$filter=services/any(c:c+eq+'${formatting_1.formatting.encodeQueryParameter(args.options.service)}')`;
|
|
42
43
|
}
|
|
43
44
|
try {
|
|
44
45
|
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TodoTaskSetCommand_instances, _TodoTaskSetCommand_initTelemetry, _TodoTaskSetCommand_initOptions, _TodoTaskSetCommand_initValidators, _TodoTaskSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -41,7 +42,7 @@ class TodoTaskSetCommand extends GraphCommand_1.default {
|
|
|
41
42
|
try {
|
|
42
43
|
const listId = yield this.getTodoListId(args);
|
|
43
44
|
const requestOptions = {
|
|
44
|
-
url: `${endpoint}/me/todo/lists/${listId}/tasks/${
|
|
45
|
+
url: `${endpoint}/me/todo/lists/${listId}/tasks/${formatting_1.formatting.encodeQueryParameter(args.options.id)}`,
|
|
45
46
|
headers: {
|
|
46
47
|
accept: 'application/json;odata.metadata=none',
|
|
47
48
|
'Content-Type': 'application/json'
|
|
@@ -37,7 +37,7 @@ class YammerGroupListCommand extends YammerCommand_1.default {
|
|
|
37
37
|
return ['id', 'name', 'email', 'privacy', 'external', 'moderated'];
|
|
38
38
|
}
|
|
39
39
|
getAllItems(logger, args, page) {
|
|
40
|
-
return
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
let endpoint = `${this.resource}/v1`;
|
|
42
42
|
if (args.options.userId) {
|
|
43
43
|
endpoint += `/groups/for_user/${args.options.userId}.json`;
|
|
@@ -54,32 +54,17 @@ class YammerGroupListCommand extends YammerCommand_1.default {
|
|
|
54
54
|
},
|
|
55
55
|
responseType: 'json'
|
|
56
56
|
};
|
|
57
|
-
request_1.default
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this
|
|
69
|
-
.getAllItems(logger, args, ++page)
|
|
70
|
-
.then(() => {
|
|
71
|
-
resolve();
|
|
72
|
-
}, (err) => {
|
|
73
|
-
reject(err);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
resolve();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}, (err) => {
|
|
81
|
-
reject(err);
|
|
82
|
-
});
|
|
57
|
+
const output = yield request_1.default.get(requestOptions);
|
|
58
|
+
if (!output.length) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
this.items = this.items.concat(output);
|
|
62
|
+
if (args.options.limit && this.items.length > args.options.limit) {
|
|
63
|
+
this.items = this.items.slice(0, args.options.limit);
|
|
64
|
+
}
|
|
65
|
+
else if (this.items.length % 50 === 0) {
|
|
66
|
+
yield this.getAllItems(logger, args, ++page);
|
|
67
|
+
}
|
|
83
68
|
});
|
|
84
69
|
}
|
|
85
70
|
commandAction(logger, args) {
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _YammerUserGetCommand_instances, _YammerUserGetCommand_initTelemetry, _YammerUserGetCommand_initOptions, _YammerUserGetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const YammerCommand_1 = require("../../../base/YammerCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class YammerUserGetCommand extends YammerCommand_1.default {
|
|
@@ -39,10 +40,10 @@ class YammerUserGetCommand extends YammerCommand_1.default {
|
|
|
39
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
41
|
let endPoint = `${this.resource}/v1/users/current.json`;
|
|
41
42
|
if (args.options.id) {
|
|
42
|
-
endPoint = `${this.resource}/v1/users/${
|
|
43
|
+
endPoint = `${this.resource}/v1/users/${args.options.id}.json`;
|
|
43
44
|
}
|
|
44
45
|
else if (args.options.email) {
|
|
45
|
-
endPoint = `${this.resource}/v1/users/by_email.json?email=${
|
|
46
|
+
endPoint = `${this.resource}/v1/users/by_email.json?email=${formatting_1.formatting.encodeQueryParameter(args.options.email)}`;
|
|
46
47
|
}
|
|
47
48
|
const requestOptions = {
|
|
48
49
|
url: endPoint,
|