@pnp/cli-microsoft365 6.0.0-beta.dc71aa3 → 6.0.0-beta.dc8d53d
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/LICENSE +1 -3
- package/dist/Command.js +8 -6
- package/dist/cli/Cli.js +64 -6
- package/dist/m365/aad/commands/app/app-add.js +1 -1
- package/dist/m365/aad/commands/app/app-get.js +1 -1
- package/dist/m365/aad/commands/app/app-remove.js +1 -1
- package/dist/m365/aad/commands/app/app-role-add.js +1 -1
- package/dist/m365/aad/commands/app/app-role-list.js +1 -1
- package/dist/m365/aad/commands/app/app-role-remove.js +1 -1
- package/dist/m365/aad/commands/app/app-set.js +1 -1
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +1 -1
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +1 -1
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +1 -1
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +1 -1
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +1 -1
- package/dist/m365/aad/commands/sp/sp-add.js +1 -1
- package/dist/m365/aad/commands/sp/sp-get.js +1 -1
- package/dist/m365/aad/commands/user/user-get.js +1 -1
- package/dist/m365/aad/commands/user/user-set.js +1 -1
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +1 -1
- package/dist/m365/booking/commands/business/business-get.js +1 -1
- package/dist/m365/cli/commands/config/config-set.js +4 -0
- package/dist/m365/commands/login.js +6 -1
- package/dist/m365/outlook/commands/message/message-list.js +1 -1
- package/dist/m365/outlook/commands/message/message-move.js +1 -1
- package/dist/m365/pa/commands/app/app-get.js +1 -1
- package/dist/m365/planner/commands/bucket/bucket-add.js +1 -1
- package/dist/m365/planner/commands/bucket/bucket-get.js +1 -1
- package/dist/m365/planner/commands/bucket/bucket-list.js +1 -1
- package/dist/m365/planner/commands/bucket/bucket-remove.js +1 -1
- package/dist/m365/planner/commands/bucket/bucket-set.js +1 -1
- package/dist/m365/planner/commands/plan/plan-add.js +1 -1
- package/dist/m365/planner/commands/plan/plan-get.js +1 -1
- package/dist/m365/planner/commands/plan/plan-list.js +1 -1
- package/dist/m365/planner/commands/plan/plan-remove.js +1 -1
- package/dist/m365/planner/commands/task/task-add.js +1 -1
- package/dist/m365/planner/commands/task/task-get.js +1 -1
- package/dist/m365/planner/commands/task/task-reference-remove.js +1 -1
- package/dist/m365/planner/commands/task/task-remove.js +1 -1
- package/dist/m365/pp/commands/card/card-clone.js +2 -2
- package/dist/m365/pp/commands/card/card-get.js +2 -2
- package/dist/m365/pp/commands/card/card-list.js +1 -1
- package/dist/m365/pp/commands/card/card-remove.js +2 -2
- package/dist/m365/pp/commands/dataverse/dataverse-table-get.js +1 -1
- package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +1 -1
- package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +1 -1
- package/dist/m365/pp/commands/environment/environment-get.js +1 -1
- package/dist/m365/pp/commands/environment/environment-list.js +1 -1
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +1 -1
- package/dist/m365/pp/commands/solution/solution-get.js +2 -2
- package/dist/m365/pp/commands/solution/solution-list.js +1 -1
- package/dist/m365/pp/commands/solution/solution-publisher-get.js +2 -2
- package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -1
- package/dist/m365/pp/commands/solution/solution-publisher-remove.js +2 -2
- package/dist/m365/pp/commands/solution/solution-remove.js +2 -2
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +1 -1
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +1 -1
- 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-deploy.js +1 -1
- package/dist/m365/spo/commands/app/app-get.js +1 -1
- package/dist/m365/spo/commands/app/app-list.js +4 -11
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +1 -1
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +3 -10
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +1 -1
- package/dist/m365/spo/commands/contenttype/contenttype-set.js +1 -1
- package/dist/m365/spo/commands/customaction/customaction-get.js +1 -1
- package/dist/m365/spo/commands/customaction/customaction-list.js +4 -17
- package/dist/m365/spo/commands/customaction/customaction-remove.js +1 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +44 -28
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +3 -10
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +3 -9
- package/dist/m365/spo/commands/feature/feature-list.js +4 -11
- package/dist/m365/spo/commands/field/field-get.js +1 -1
- package/dist/m365/spo/commands/field/field-list.js +3 -10
- package/dist/m365/spo/commands/field/field-remove.js +1 -1
- package/dist/m365/spo/commands/field/field-set.js +1 -1
- package/dist/m365/spo/commands/file/file-checkin.js +1 -1
- package/dist/m365/spo/commands/file/file-checkout.js +1 -1
- package/dist/m365/spo/commands/file/file-get.js +28 -2
- package/dist/m365/spo/commands/file/file-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
- package/dist/m365/spo/commands/file/file-version-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +7 -11
- package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
- package/dist/m365/spo/commands/folder/folder-get.js +30 -5
- package/dist/m365/spo/commands/folder/folder-list.js +4 -11
- package/dist/m365/spo/commands/group/group-add.js +1 -1
- package/dist/m365/spo/commands/group/group-get.js +1 -1
- package/dist/m365/spo/commands/group/group-list.js +4 -9
- package/dist/m365/spo/commands/group/group-member-add.js +1 -1
- package/dist/m365/spo/commands/group/group-member-list.js +4 -11
- package/dist/m365/spo/commands/group/group-member-remove.js +1 -1
- package/dist/m365/spo/commands/group/group-remove.js +1 -1
- package/dist/m365/spo/commands/group/group-set.js +1 -1
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +1 -1
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +1 -1
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +1 -1
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +4 -10
- package/dist/m365/spo/commands/list/list-contenttype-add.js +1 -1
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +1 -1
- package/dist/m365/spo/commands/list/list-contenttype-list.js +4 -12
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-get.js +13 -5
- package/dist/m365/spo/commands/list/list-label-get.js +34 -22
- package/dist/m365/spo/commands/list/list-label-set.js +1 -1
- package/dist/m365/spo/commands/list/list-list.js +4 -12
- package/dist/m365/spo/commands/list/list-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/list/list-set.js +1 -1
- package/dist/m365/spo/commands/list/list-sitescript-get.js +35 -24
- package/dist/m365/spo/commands/list/list-view-add.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/list/list-view-get.js +1 -1
- package/dist/m365/spo/commands/list/list-view-list.js +4 -11
- package/dist/m365/spo/commands/list/list-view-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-view-set.js +1 -1
- package/dist/m365/spo/commands/list/list-webhook-add.js +1 -1
- package/dist/m365/spo/commands/list/list-webhook-get.js +1 -1
- package/dist/m365/spo/commands/list/list-webhook-list.js +6 -14
- package/dist/m365/spo/commands/list/list-webhook-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-webhook-set.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-add.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-batch-add.js +202 -0
- package/dist/m365/spo/commands/listitem/listitem-get.js +28 -5
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-list.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-remove.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-set.js +1 -1
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +3 -10
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +1 -1
- package/dist/m365/spo/commands/page/page-list.js +7 -21
- package/dist/m365/spo/commands/page/page-set.js +36 -3
- package/dist/m365/spo/commands/page/page-template-list.js +4 -11
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +3 -10
- package/dist/m365/spo/commands/site/site-apppermission-add.js +1 -1
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +1 -1
- package/dist/m365/spo/commands/site/site-apppermission-set.js +1 -1
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +1 -1
- package/dist/m365/spo/commands/term/term-add.js +1 -1
- package/dist/m365/spo/commands/term/term-get.js +1 -1
- package/dist/m365/spo/commands/term/term-group-get.js +1 -1
- package/dist/m365/spo/commands/term/term-list.js +1 -1
- package/dist/m365/spo/commands/term/term-set-add.js +1 -1
- package/dist/m365/spo/commands/term/term-set-get.js +1 -1
- package/dist/m365/spo/commands/term/term-set-list.js +1 -1
- package/dist/m365/spo/commands/user/user-get.js +1 -1
- package/dist/m365/spo/commands/user/user-remove.js +1 -1
- package/dist/m365/spo/commands/web/web-get.js +24 -1
- package/dist/m365/spo/commands/web/web-list.js +3 -10
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/app/app-install.js +1 -1
- package/dist/m365/teams/commands/app/app-update.js +1 -1
- package/dist/m365/teams/commands/cache/cache-remove.js +41 -10
- package/dist/m365/teams/commands/channel/channel-add.js +1 -1
- package/dist/m365/teams/commands/channel/channel-get.js +1 -1
- package/dist/m365/teams/commands/channel/channel-list.js +1 -1
- package/dist/m365/teams/commands/channel/channel-member-add.js +1 -1
- package/dist/m365/teams/commands/channel/channel-member-list.js +1 -1
- package/dist/m365/teams/commands/channel/channel-member-remove.js +1 -1
- package/dist/m365/teams/commands/channel/channel-member-set.js +1 -1
- package/dist/m365/teams/commands/channel/channel-remove.js +1 -1
- package/dist/m365/teams/commands/channel/channel-set.js +1 -1
- package/dist/m365/teams/commands/chat/chat-get.js +1 -1
- package/dist/m365/teams/commands/chat/chat-message-send.js +1 -1
- package/dist/m365/teams/commands/meeting/meeting-get.js +134 -0
- package/dist/m365/teams/commands/tab/tab-get.js +1 -1
- package/dist/m365/teams/commands/team/team-archive.js +1 -1
- package/dist/m365/teams/commands/team/team-clone.js +1 -1
- package/dist/m365/teams/commands/team/team-get.js +1 -1
- package/dist/m365/teams/commands/team/team-remove.js +1 -1
- package/dist/m365/teams/commands/team/team-unarchive.js +1 -1
- package/dist/m365/teams/commands/user/user-app-list.js +1 -1
- package/dist/m365/teams/commands.js +1 -0
- package/dist/m365/todo/commands/list/list-get.js +1 -1
- package/dist/m365/todo/commands/list/list-remove.js +1 -1
- package/dist/m365/todo/commands/list/list-set.js +1 -1
- package/dist/m365/todo/commands/task/task-add.js +1 -1
- package/dist/m365/todo/commands/task/task-get.js +1 -1
- package/dist/m365/todo/commands/task/task-list.js +1 -1
- package/dist/m365/todo/commands/task/task-remove.js +1 -1
- package/dist/m365/todo/commands/task/task-set.js +1 -1
- package/dist/settingsNames.js +1 -0
- package/dist/utils/formatting.js +15 -15
- package/dist/utils/odata.js +2 -1
- package/docs/docs/_clisettings.md +1 -0
- package/docs/docs/cmd/_global.md +2 -2
- package/docs/docs/cmd/aad/user/user-guest-add.md +1 -1
- package/docs/docs/cmd/app/app-open.md +1 -1
- package/docs/docs/cmd/flow/environment/environment-get.md +100 -0
- package/docs/docs/cmd/flow/environment/environment-list.md +97 -0
- package/docs/docs/cmd/flow/flow-disable.md +7 -3
- package/docs/docs/cmd/flow/flow-enable.md +4 -0
- package/docs/docs/cmd/flow/flow-export.md +20 -0
- package/docs/docs/cmd/flow/flow-get.md +372 -0
- package/docs/docs/cmd/flow/flow-list.md +107 -0
- package/docs/docs/cmd/flow/flow-remove.md +4 -0
- package/docs/docs/cmd/flow/run/run-cancel.md +4 -0
- package/docs/docs/cmd/flow/run/run-get.md +72 -0
- package/docs/docs/cmd/flow/run/run-list.md +68 -0
- package/docs/docs/cmd/flow/run/run-resubmit.md +4 -0
- package/docs/docs/cmd/pp/card/card-clone.md +1 -1
- package/docs/docs/cmd/pp/card/card-get.md +1 -1
- package/docs/docs/cmd/pp/card/card-list.md +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.md +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.md +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.md +1 -1
- package/docs/docs/cmd/pp/environment/environment-get.md +1 -1
- package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
- package/docs/docs/cmd/pp/solution/solution-get.md +1 -1
- package/docs/docs/cmd/pp/solution/solution-list.md +1 -1
- package/docs/docs/cmd/pp/solution/solution-publisher-get.md +1 -1
- package/docs/docs/cmd/pp/solution/solution-publisher-list.md +1 -1
- package/docs/docs/cmd/spfx/package/package-generate.md +4 -0
- package/docs/docs/cmd/spfx/project/project-doctor.md +92 -0
- package/docs/docs/cmd/spfx/project/project-externalize.md +116 -0
- package/docs/docs/cmd/spfx/project/project-rename.md +6 -2
- package/docs/docs/cmd/spfx/project/project-upgrade.md +101 -1
- package/docs/docs/cmd/spfx/spfx-doctor.md +38 -0
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +42 -2
- package/docs/docs/cmd/spo/file/file-get.md +219 -8
- package/docs/docs/cmd/spo/file/file-version-list.md +5 -5
- package/docs/docs/cmd/spo/folder/folder-get.md +11 -0
- package/docs/docs/cmd/spo/homesite/homesite-get.md +31 -0
- package/docs/docs/cmd/spo/homesite/homesite-remove.md +20 -0
- package/docs/docs/cmd/spo/homesite/homesite-set.md +20 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.md +57 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +89 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-list.md +94 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +53 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +4 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-set.md +45 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +4 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.md +20 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.md +20 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +20 -0
- package/docs/docs/cmd/spo/list/list-add.md +133 -0
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +88 -1
- package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +4 -0
- package/docs/docs/cmd/spo/list/list-contenttype-list.md +60 -0
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +4 -0
- package/docs/docs/cmd/spo/list/list-get.md +154 -6
- package/docs/docs/cmd/spo/list/list-label-get.md +83 -7
- package/docs/docs/cmd/spo/list/list-label-set.md +4 -0
- package/docs/docs/cmd/spo/list/list-list.md +89 -0
- package/docs/docs/cmd/spo/list/list-remove.md +4 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +4 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +4 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +4 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +4 -0
- package/docs/docs/cmd/spo/list/list-set.md +4 -0
- package/docs/docs/cmd/spo/list/list-sitescript-get.md +94 -8
- package/docs/docs/cmd/spo/list/list-view-add.md +121 -0
- package/docs/docs/cmd/spo/list/list-view-field-add.md +3 -0
- package/docs/docs/cmd/spo/list/list-view-field-remove.md +4 -0
- package/docs/docs/cmd/spo/list/list-view-field-set.md +3 -0
- package/docs/docs/cmd/spo/list/list-view-get.md +121 -0
- package/docs/docs/cmd/spo/list/list-view-list.md +78 -0
- package/docs/docs/cmd/spo/list/list-view-remove.md +4 -0
- package/docs/docs/cmd/spo/list/list-view-set.md +4 -0
- package/docs/docs/cmd/spo/list/list-webhook-add.md +33 -0
- package/docs/docs/cmd/spo/list/list-webhook-get.md +33 -0
- package/docs/docs/cmd/spo/list/list-webhook-list.md +32 -0
- package/docs/docs/cmd/spo/list/list-webhook-remove.md +4 -0
- package/docs/docs/cmd/spo/listitem/listitem-add.md +59 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.md +34 -0
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.md +61 -0
- package/docs/docs/cmd/spo/listitem/listitem-get.md +188 -4
- package/docs/docs/cmd/spo/listitem/listitem-isrecord.md +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-list.md +41 -0
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +29 -0
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +4 -0
- package/docs/docs/cmd/spo/listitem/listitem-remove.md +4 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.md +5 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +4 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +5 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +4 -0
- package/docs/docs/cmd/spo/listitem/listitem-set.md +59 -0
- package/docs/docs/cmd/spo/mail/mail-send.md +4 -0
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +39 -0
- package/docs/docs/cmd/spo/navigation/navigation-node-list.md +29 -0
- package/docs/docs/cmd/spo/navigation/navigation-node-remove.md +4 -0
- package/docs/docs/cmd/spo/page/page-add.md +2 -2
- package/docs/docs/cmd/spo/page/page-set.md +15 -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/web/web-get.md +258 -2
- package/docs/docs/cmd/teams/meeting/meeting-get.md +159 -0
- package/package.json +2 -1
- package/dist/m365/spo/commands/group/GroupPropertiesCollection.js +0 -3
- package/dist/m365/spo/commands/list/ListInstanceCollection.js +0 -3
- package/dist/m365/spo/commands/page/PageTemplateResponse.js +0 -3
|
@@ -15,7 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoPageTemplateListCommand_instances, _SpoPageTemplateListCommand_initOptions, _SpoPageTemplateListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const odata_1 = require("../../../../utils/odata");
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
@@ -40,17 +40,10 @@ class SpoPageTemplateListCommand extends SpoCommand_1.default {
|
|
|
40
40
|
if (this.verbose) {
|
|
41
41
|
logger.logToStderr(`Retrieving templates...`);
|
|
42
42
|
}
|
|
43
|
-
const requestOptions = {
|
|
44
|
-
url: `${args.options.webUrl}/_api/sitepages/pages/templates`,
|
|
45
|
-
headers: {
|
|
46
|
-
'accept': 'application/json;odata=nometadata'
|
|
47
|
-
},
|
|
48
|
-
responseType: 'json'
|
|
49
|
-
};
|
|
50
43
|
try {
|
|
51
|
-
const res = yield
|
|
52
|
-
if (res
|
|
53
|
-
logger.log(res
|
|
44
|
+
const res = yield odata_1.odata.getAllItems(`${args.options.webUrl}/_api/sitepages/pages/templates`);
|
|
45
|
+
if (res && res.length > 0) {
|
|
46
|
+
logger.log(res);
|
|
54
47
|
}
|
|
55
48
|
}
|
|
56
49
|
catch (err) {
|
|
@@ -15,7 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoRoleDefinitionListCommand_instances, _SpoRoleDefinitionListCommand_initOptions, _SpoRoleDefinitionListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const odata_1 = require("../../../../utils/odata");
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
21
21
|
const base_permissions_1 = require("../../base-permissions");
|
|
@@ -42,16 +42,9 @@ class SpoRoleDefinitionListCommand extends SpoCommand_1.default {
|
|
|
42
42
|
if (this.verbose) {
|
|
43
43
|
logger.logToStderr(`Getting role definitions list from ${args.options.webUrl}...`);
|
|
44
44
|
}
|
|
45
|
-
const requestOptions = {
|
|
46
|
-
url: `${args.options.webUrl}/_api/web/roledefinitions`,
|
|
47
|
-
headers: {
|
|
48
|
-
'accept': 'application/json;odata=nometadata'
|
|
49
|
-
},
|
|
50
|
-
responseType: 'json'
|
|
51
|
-
};
|
|
52
45
|
try {
|
|
53
|
-
const res = yield
|
|
54
|
-
const response = this.setFriendlyPermissions(res
|
|
46
|
+
const res = yield odata_1.odata.getAllItems(`${args.options.webUrl}/_api/web/roledefinitions`);
|
|
47
|
+
const response = this.setFriendlyPermissions(res);
|
|
55
48
|
logger.log(response);
|
|
56
49
|
}
|
|
57
50
|
catch (err) {
|
|
@@ -180,7 +180,7 @@ _SpoSiteAppPermissionAddCommand_instances = new WeakSet(), _SpoSiteAppPermission
|
|
|
180
180
|
return validation_1.validation.isValidSharePointUrl(args.options.siteUrl);
|
|
181
181
|
}));
|
|
182
182
|
}, _SpoSiteAppPermissionAddCommand_initOptionSets = function _SpoSiteAppPermissionAddCommand_initOptionSets() {
|
|
183
|
-
this.optionSets.push(['appId', 'appDisplayName']);
|
|
183
|
+
this.optionSets.push({ options: ['appId', 'appDisplayName'] });
|
|
184
184
|
};
|
|
185
185
|
module.exports = new SpoSiteAppPermissionAddCommand();
|
|
186
186
|
//# sourceMappingURL=site-apppermission-add.js.map
|
|
@@ -157,7 +157,7 @@ _SpoSiteAppPermissionRemoveCommand_instances = new WeakSet(), _SpoSiteAppPermiss
|
|
|
157
157
|
return validation_1.validation.isValidSharePointUrl(args.options.siteUrl);
|
|
158
158
|
}));
|
|
159
159
|
}, _SpoSiteAppPermissionRemoveCommand_initOptionSets = function _SpoSiteAppPermissionRemoveCommand_initOptionSets() {
|
|
160
|
-
this.optionSets.push(['appId', 'appDisplayName', 'id']);
|
|
160
|
+
this.optionSets.push({ options: ['appId', 'appDisplayName', 'id'] });
|
|
161
161
|
};
|
|
162
162
|
module.exports = new SpoSiteAppPermissionRemoveCommand();
|
|
163
163
|
//# sourceMappingURL=site-apppermission-remove.js.map
|
|
@@ -140,7 +140,7 @@ _SpoSiteAppPermissionSetCommand_instances = new WeakSet(), _SpoSiteAppPermission
|
|
|
140
140
|
return validation_1.validation.isValidSharePointUrl(args.options.siteUrl);
|
|
141
141
|
}));
|
|
142
142
|
}, _SpoSiteAppPermissionSetCommand_initOptionSets = function _SpoSiteAppPermissionSetCommand_initOptionSets() {
|
|
143
|
-
this.optionSets.push(['id', 'appId', 'appDisplayName']);
|
|
143
|
+
this.optionSets.push({ options: ['id', 'appId', 'appDisplayName'] });
|
|
144
144
|
};
|
|
145
145
|
module.exports = new SpoSiteAppPermissionSetCommand();
|
|
146
146
|
//# sourceMappingURL=site-apppermission-set.js.map
|
|
@@ -103,7 +103,7 @@ _SpoSiteDesignGetCommand_instances = new WeakSet(), _SpoSiteDesignGetCommand_ini
|
|
|
103
103
|
return true;
|
|
104
104
|
}));
|
|
105
105
|
}, _SpoSiteDesignGetCommand_initOptionSets = function _SpoSiteDesignGetCommand_initOptionSets() {
|
|
106
|
-
this.optionSets.push(['id', 'title']);
|
|
106
|
+
this.optionSets.push({ options: ['id', 'title'] });
|
|
107
107
|
};
|
|
108
108
|
module.exports = new SpoSiteDesignGetCommand();
|
|
109
109
|
//# sourceMappingURL=sitedesign-get.js.map
|
|
@@ -222,7 +222,7 @@ _SpoTermAddCommand_instances = new WeakSet(), _SpoTermAddCommand_initTelemetry =
|
|
|
222
222
|
return true;
|
|
223
223
|
}));
|
|
224
224
|
}, _SpoTermAddCommand_initOptionSets = function _SpoTermAddCommand_initOptionSets() {
|
|
225
|
-
this.optionSets.push(['termGroupId', 'termGroupName']);
|
|
225
|
+
this.optionSets.push({ options: ['termGroupId', 'termGroupName'] });
|
|
226
226
|
};
|
|
227
227
|
module.exports = new SpoTermAddCommand();
|
|
228
228
|
//# sourceMappingURL=term-add.js.map
|
|
@@ -143,7 +143,7 @@ _SpoTermGetCommand_instances = new WeakSet(), _SpoTermGetCommand_initTelemetry =
|
|
|
143
143
|
return true;
|
|
144
144
|
}));
|
|
145
145
|
}, _SpoTermGetCommand_initOptionSets = function _SpoTermGetCommand_initOptionSets() {
|
|
146
|
-
this.optionSets.push(['id', 'name']);
|
|
146
|
+
this.optionSets.push({ options: ['id', 'name'] });
|
|
147
147
|
};
|
|
148
148
|
module.exports = new SpoTermGetCommand();
|
|
149
149
|
//# sourceMappingURL=term-get.js.map
|
|
@@ -96,7 +96,7 @@ _SpoTermGroupGetCommand_instances = new WeakSet(), _SpoTermGroupGetCommand_initT
|
|
|
96
96
|
return true;
|
|
97
97
|
}));
|
|
98
98
|
}, _SpoTermGroupGetCommand_initOptionSets = function _SpoTermGroupGetCommand_initOptionSets() {
|
|
99
|
-
this.optionSets.push(['id', 'name']);
|
|
99
|
+
this.optionSets.push({ options: ['id', 'name'] });
|
|
100
100
|
};
|
|
101
101
|
module.exports = new SpoTermGroupGetCommand();
|
|
102
102
|
//# sourceMappingURL=term-group-get.js.map
|
|
@@ -113,7 +113,7 @@ _SpoTermListCommand_instances = new WeakSet(), _SpoTermListCommand_initTelemetry
|
|
|
113
113
|
return true;
|
|
114
114
|
}));
|
|
115
115
|
}, _SpoTermListCommand_initOptionSets = function _SpoTermListCommand_initOptionSets() {
|
|
116
|
-
this.optionSets.push(['termGroupId', 'termGroupName'], ['termSetId', 'termSetName']);
|
|
116
|
+
this.optionSets.push({ options: ['termGroupId', 'termGroupName'] }, { options: ['termSetId', 'termSetName'] });
|
|
117
117
|
};
|
|
118
118
|
module.exports = new SpoTermListCommand();
|
|
119
119
|
//# sourceMappingURL=term-list.js.map
|
|
@@ -171,7 +171,7 @@ _SpoTermSetAddCommand_instances = new WeakSet(), _SpoTermSetAddCommand_initTelem
|
|
|
171
171
|
return true;
|
|
172
172
|
}));
|
|
173
173
|
}, _SpoTermSetAddCommand_initOptionSets = function _SpoTermSetAddCommand_initOptionSets() {
|
|
174
|
-
this.optionSets.push(['termGroupId', 'termGroupName']);
|
|
174
|
+
this.optionSets.push({ options: ['termGroupId', 'termGroupName'] });
|
|
175
175
|
};
|
|
176
176
|
module.exports = new SpoTermSetAddCommand();
|
|
177
177
|
//# sourceMappingURL=term-set-add.js.map
|
|
@@ -108,7 +108,7 @@ _SpoTermSetGetCommand_instances = new WeakSet(), _SpoTermSetGetCommand_initTelem
|
|
|
108
108
|
return true;
|
|
109
109
|
}));
|
|
110
110
|
}, _SpoTermSetGetCommand_initOptionSets = function _SpoTermSetGetCommand_initOptionSets() {
|
|
111
|
-
this.optionSets.push(['id', 'name'], ['termGroupId', 'termGroupName']);
|
|
111
|
+
this.optionSets.push({ options: ['id', 'name'] }, { options: ['termGroupId', 'termGroupName'] });
|
|
112
112
|
};
|
|
113
113
|
module.exports = new SpoTermSetGetCommand();
|
|
114
114
|
//# sourceMappingURL=term-set-get.js.map
|
|
@@ -102,7 +102,7 @@ _SpoTermSetListCommand_instances = new WeakSet(), _SpoTermSetListCommand_initTel
|
|
|
102
102
|
return true;
|
|
103
103
|
}));
|
|
104
104
|
}, _SpoTermSetListCommand_initOptionSets = function _SpoTermSetListCommand_initOptionSets() {
|
|
105
|
-
this.optionSets.push(['termGroupId', 'termGroupName']);
|
|
105
|
+
this.optionSets.push({ options: ['termGroupId', 'termGroupName'] });
|
|
106
106
|
};
|
|
107
107
|
module.exports = new SpoTermSetListCommand();
|
|
108
108
|
//# sourceMappingURL=term-set-list.js.map
|
|
@@ -95,7 +95,7 @@ _SpoUserGetCommand_instances = new WeakSet(), _SpoUserGetCommand_initTelemetry =
|
|
|
95
95
|
return validation_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
96
96
|
}));
|
|
97
97
|
}, _SpoUserGetCommand_initOptionSets = function _SpoUserGetCommand_initOptionSets() {
|
|
98
|
-
this.optionSets.push(['id', 'email', 'loginName']);
|
|
98
|
+
this.optionSets.push({ options: ['id', 'email', 'loginName'] });
|
|
99
99
|
};
|
|
100
100
|
module.exports = new SpoUserGetCommand();
|
|
101
101
|
//# sourceMappingURL=user-get.js.map
|
|
@@ -103,7 +103,7 @@ _SpoUserRemoveCommand_instances = new WeakSet(), _SpoUserRemoveCommand_initTelem
|
|
|
103
103
|
return validation_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
104
104
|
}));
|
|
105
105
|
}, _SpoUserRemoveCommand_initOptionSets = function _SpoUserRemoveCommand_initOptionSets() {
|
|
106
|
-
this.optionSets.push(['id', 'loginName']);
|
|
106
|
+
this.optionSets.push({ options: ['id', 'loginName'] });
|
|
107
107
|
};
|
|
108
108
|
module.exports = new SpoUserRemoveCommand();
|
|
109
109
|
//# sourceMappingURL=user-remove.js.map
|
|
@@ -18,7 +18,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
21
|
+
const base_permissions_1 = require("../../base-permissions");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
23
|
+
const RoleType_1 = require("../roledefinition/RoleType");
|
|
22
24
|
class SpoWebGetCommand extends SpoCommand_1.default {
|
|
23
25
|
constructor() {
|
|
24
26
|
super();
|
|
@@ -48,6 +50,12 @@ class SpoWebGetCommand extends SpoCommand_1.default {
|
|
|
48
50
|
};
|
|
49
51
|
try {
|
|
50
52
|
const webProperties = yield request_1.default.get(requestOptions);
|
|
53
|
+
if (args.options.withPermissions) {
|
|
54
|
+
requestOptions.url = `${args.options.url}/_api/web/RoleAssignments?$expand=Member,RoleDefinitionBindings`;
|
|
55
|
+
const response = yield request_1.default.get(requestOptions);
|
|
56
|
+
const roleAssignments = this.setFriendlyPermissions(response.value);
|
|
57
|
+
webProperties.RoleAssignments = roleAssignments;
|
|
58
|
+
}
|
|
51
59
|
logger.log(webProperties);
|
|
52
60
|
}
|
|
53
61
|
catch (err) {
|
|
@@ -55,11 +63,24 @@ class SpoWebGetCommand extends SpoCommand_1.default {
|
|
|
55
63
|
}
|
|
56
64
|
});
|
|
57
65
|
}
|
|
66
|
+
setFriendlyPermissions(response) {
|
|
67
|
+
response.forEach((r) => {
|
|
68
|
+
r.RoleDefinitionBindings.forEach((r) => {
|
|
69
|
+
const permissions = new base_permissions_1.BasePermissions();
|
|
70
|
+
permissions.high = r.BasePermissions.High;
|
|
71
|
+
permissions.low = r.BasePermissions.Low;
|
|
72
|
+
r.BasePermissionsValue = permissions.parse();
|
|
73
|
+
r.RoleTypeKindValue = RoleType_1.RoleType[r.RoleTypeKind];
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
return response;
|
|
77
|
+
}
|
|
58
78
|
}
|
|
59
79
|
_SpoWebGetCommand_instances = new WeakSet(), _SpoWebGetCommand_initTelemetry = function _SpoWebGetCommand_initTelemetry() {
|
|
60
80
|
this.telemetry.push((args) => {
|
|
61
81
|
Object.assign(this.telemetryProperties, {
|
|
62
|
-
withGroups:
|
|
82
|
+
withGroups: !!args.options.withGroups,
|
|
83
|
+
withPermissions: !!args.options.withPermissions
|
|
63
84
|
});
|
|
64
85
|
});
|
|
65
86
|
}, _SpoWebGetCommand_initOptions = function _SpoWebGetCommand_initOptions() {
|
|
@@ -67,6 +88,8 @@ _SpoWebGetCommand_instances = new WeakSet(), _SpoWebGetCommand_initTelemetry = f
|
|
|
67
88
|
option: '-u, --url <url>'
|
|
68
89
|
}, {
|
|
69
90
|
option: '--withGroups'
|
|
91
|
+
}, {
|
|
92
|
+
option: '--withPermissions'
|
|
70
93
|
});
|
|
71
94
|
}, _SpoWebGetCommand_initValidators = function _SpoWebGetCommand_initValidators() {
|
|
72
95
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.url); }));
|
|
@@ -15,7 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoWebListCommand_instances, _SpoWebListCommand_initOptions, _SpoWebListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const odata_1 = require("../../../../utils/odata");
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
@@ -44,16 +44,9 @@ class SpoWebListCommand extends SpoCommand_1.default {
|
|
|
44
44
|
if (args.options.output !== 'json') {
|
|
45
45
|
requestUrl += '?$select=Title,Id,URL';
|
|
46
46
|
}
|
|
47
|
-
const requestOptions = {
|
|
48
|
-
url: requestUrl,
|
|
49
|
-
headers: {
|
|
50
|
-
'accept': 'application/json;odata=nometadata'
|
|
51
|
-
},
|
|
52
|
-
responseType: 'json'
|
|
53
|
-
};
|
|
54
47
|
try {
|
|
55
|
-
const webProperties = yield
|
|
56
|
-
logger.log(webProperties
|
|
48
|
+
const webProperties = yield odata_1.odata.getAllItems(requestUrl);
|
|
49
|
+
logger.log(webProperties);
|
|
57
50
|
}
|
|
58
51
|
catch (err) {
|
|
59
52
|
this.handleRejectedODataJsonPromise(err);
|
|
@@ -169,7 +169,7 @@ _SpoWebRoleAssignmentAddCommand_instances = new WeakSet(), _SpoWebRoleAssignment
|
|
|
169
169
|
return true;
|
|
170
170
|
}));
|
|
171
171
|
}, _SpoWebRoleAssignmentAddCommand_initOptionSets = function _SpoWebRoleAssignmentAddCommand_initOptionSets() {
|
|
172
|
-
this.optionSets.push(['principalId', 'upn', 'groupName'], ['roleDefinitionId', 'roleDefinitionName']);
|
|
172
|
+
this.optionSets.push({ options: ['principalId', 'upn', 'groupName'] }, { options: ['roleDefinitionId', 'roleDefinitionName'] });
|
|
173
173
|
};
|
|
174
174
|
module.exports = new SpoWebRoleAssignmentAddCommand();
|
|
175
175
|
//# sourceMappingURL=web-roleassignment-add.js.map
|
|
@@ -158,7 +158,7 @@ _SpoWebRoleAssignmentRemoveCommand_instances = new WeakSet(), _SpoWebRoleAssignm
|
|
|
158
158
|
return true;
|
|
159
159
|
}));
|
|
160
160
|
}, _SpoWebRoleAssignmentRemoveCommand_initOptionSets = function _SpoWebRoleAssignmentRemoveCommand_initOptionSets() {
|
|
161
|
-
this.optionSets.push(['principalId', 'upn', 'groupName']);
|
|
161
|
+
this.optionSets.push({ options: ['principalId', 'upn', 'groupName'] });
|
|
162
162
|
};
|
|
163
163
|
module.exports = new SpoWebRoleAssignmentRemoveCommand();
|
|
164
164
|
//# sourceMappingURL=web-roleassignment-remove.js.map
|
|
@@ -136,6 +136,7 @@ exports.default = {
|
|
|
136
136
|
LIST_WEBHOOK_SET: `${prefix} list webhook set`,
|
|
137
137
|
LISTITEM_ADD: `${prefix} listitem add`,
|
|
138
138
|
LISTITEM_ATTACHMENT_LIST: `${prefix} listitem attachment list`,
|
|
139
|
+
LISTITEM_BATCH_ADD: `${prefix} listitem batch add`,
|
|
139
140
|
LISTITEM_GET: `${prefix} listitem get`,
|
|
140
141
|
LISTITEM_ISRECORD: `${prefix} listitem isrecord`,
|
|
141
142
|
LISTITEM_LIST: `${prefix} listitem list`,
|
|
@@ -123,7 +123,7 @@ _TeamsAppInstallCommand_instances = new WeakSet(), _TeamsAppInstallCommand_initT
|
|
|
123
123
|
return true;
|
|
124
124
|
}));
|
|
125
125
|
}, _TeamsAppInstallCommand_initOptionSets = function _TeamsAppInstallCommand_initOptionSets() {
|
|
126
|
-
this.optionSets.push(['teamId', 'userId', 'userName']);
|
|
126
|
+
this.optionSets.push({ options: ['teamId', 'userId', 'userName'] });
|
|
127
127
|
};
|
|
128
128
|
module.exports = new TeamsAppInstallCommand();
|
|
129
129
|
//# sourceMappingURL=app-install.js.map
|
|
@@ -115,7 +115,7 @@ _TeamsAppUpdateCommand_instances = new WeakSet(), _TeamsAppUpdateCommand_initTel
|
|
|
115
115
|
return true;
|
|
116
116
|
}));
|
|
117
117
|
}, _TeamsAppUpdateCommand_initOptionSets = function _TeamsAppUpdateCommand_initOptionSets() {
|
|
118
|
-
this.optionSets.push(['id', 'name']);
|
|
118
|
+
this.optionSets.push({ options: ['id', 'name'] });
|
|
119
119
|
};
|
|
120
120
|
module.exports = new TeamsAppUpdateCommand();
|
|
121
121
|
//# sourceMappingURL=app-update.js.map
|
|
@@ -15,11 +15,13 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsCacheRemoveCommand_instances, _TeamsCacheRemoveCommand_initTelemetry, _TeamsCacheRemoveCommand_initOptions, _TeamsCacheRemoveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const fs = require("fs");
|
|
19
|
+
const os_1 = require("os");
|
|
18
20
|
const util = require("util");
|
|
19
21
|
const Cli_1 = require("../../../../cli/Cli");
|
|
20
|
-
const
|
|
22
|
+
const AnonymousCommand_1 = require("../../../base/AnonymousCommand");
|
|
21
23
|
const commands_1 = require("../../commands");
|
|
22
|
-
class TeamsCacheRemoveCommand extends
|
|
24
|
+
class TeamsCacheRemoveCommand extends AnonymousCommand_1.default {
|
|
23
25
|
constructor() {
|
|
24
26
|
super();
|
|
25
27
|
_TeamsCacheRemoveCommand_instances.add(this);
|
|
@@ -63,19 +65,48 @@ class TeamsCacheRemoveCommand extends GraphCommand_1.default {
|
|
|
63
65
|
clearTeamsCache(logger) {
|
|
64
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
67
|
try {
|
|
66
|
-
|
|
67
|
-
yield this.
|
|
68
|
+
const filePath = this.getTeamsCacheFolderPath(logger);
|
|
69
|
+
const folderExists = yield this.checkIfCacheFolderExists(filePath, logger);
|
|
70
|
+
if (folderExists) {
|
|
71
|
+
yield this.killRunningProcess(logger);
|
|
72
|
+
yield this.removeCacheFiles(filePath, logger);
|
|
73
|
+
logger.logToStderr('Teams cache cleared!');
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
logger.logToStderr('Cache folder does not exist. Nothing to remove.');
|
|
77
|
+
}
|
|
68
78
|
}
|
|
69
79
|
catch (e) {
|
|
70
80
|
throw e.message;
|
|
71
81
|
}
|
|
72
|
-
logger.logToStderr('Teams cache cleared!');
|
|
73
82
|
});
|
|
74
83
|
}
|
|
84
|
+
getTeamsCacheFolderPath(logger) {
|
|
85
|
+
const platform = process.platform;
|
|
86
|
+
if (this.verbose) {
|
|
87
|
+
logger.logToStderr(`Getting path of Teams cache folder for platform ${platform}...`);
|
|
88
|
+
}
|
|
89
|
+
let filePath = '';
|
|
90
|
+
switch (platform) {
|
|
91
|
+
case 'win32':
|
|
92
|
+
filePath = `${process.env.APPDATA}\\Microsoft\\Teams`;
|
|
93
|
+
break;
|
|
94
|
+
case 'darwin':
|
|
95
|
+
filePath = `${os_1.homedir}/Library/Application Support/Microsoft/Teams`;
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
return filePath;
|
|
99
|
+
}
|
|
100
|
+
checkIfCacheFolderExists(filePath, logger) {
|
|
101
|
+
if (this.verbose) {
|
|
102
|
+
logger.logToStderr(`Checking if Teams cache folder exists at ${filePath}...`);
|
|
103
|
+
}
|
|
104
|
+
return fs.existsSync(filePath);
|
|
105
|
+
}
|
|
75
106
|
killRunningProcess(logger) {
|
|
76
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
108
|
if (this.verbose) {
|
|
78
|
-
logger.logToStderr('
|
|
109
|
+
logger.logToStderr('Stopping Teams client...');
|
|
79
110
|
}
|
|
80
111
|
const platform = process.platform;
|
|
81
112
|
let cmd = '';
|
|
@@ -112,19 +143,19 @@ class TeamsCacheRemoveCommand extends GraphCommand_1.default {
|
|
|
112
143
|
}
|
|
113
144
|
});
|
|
114
145
|
}
|
|
115
|
-
removeCacheFiles(logger) {
|
|
146
|
+
removeCacheFiles(filePath, logger) {
|
|
116
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
148
|
if (this.verbose) {
|
|
118
|
-
logger.logToStderr('
|
|
149
|
+
logger.logToStderr('Removing Teams cache files...');
|
|
119
150
|
}
|
|
120
151
|
const platform = process.platform;
|
|
121
152
|
let cmd = '';
|
|
122
153
|
switch (platform) {
|
|
123
154
|
case 'win32':
|
|
124
|
-
cmd =
|
|
155
|
+
cmd = `rmdir /s /q "${filePath}"`;
|
|
125
156
|
break;
|
|
126
157
|
case 'darwin':
|
|
127
|
-
cmd =
|
|
158
|
+
cmd = `rm -r "${filePath}"`;
|
|
128
159
|
break;
|
|
129
160
|
}
|
|
130
161
|
if (this.debug) {
|
|
@@ -140,7 +140,7 @@ _TeamsChannelAddCommand_instances = new WeakSet(), _TeamsChannelAddCommand_initT
|
|
|
140
140
|
return true;
|
|
141
141
|
}));
|
|
142
142
|
}, _TeamsChannelAddCommand_initOptionSets = function _TeamsChannelAddCommand_initOptionSets() {
|
|
143
|
-
this.optionSets.push(['teamId', 'teamName']);
|
|
143
|
+
this.optionSets.push({ options: ['teamId', 'teamName'] });
|
|
144
144
|
};
|
|
145
145
|
module.exports = new TeamsChannelAddCommand();
|
|
146
146
|
//# sourceMappingURL=channel-add.js.map
|
|
@@ -135,7 +135,7 @@ _TeamsChannelGetCommand_instances = new WeakSet(), _TeamsChannelGetCommand_initT
|
|
|
135
135
|
return true;
|
|
136
136
|
}));
|
|
137
137
|
}, _TeamsChannelGetCommand_initOptionSets = function _TeamsChannelGetCommand_initOptionSets() {
|
|
138
|
-
this.optionSets.push(['teamId', 'teamName'], ['id', 'name', 'primary']);
|
|
138
|
+
this.optionSets.push({ options: ['teamId', 'teamName'] }, { options: ['id', 'name', 'primary'] });
|
|
139
139
|
};
|
|
140
140
|
module.exports = new TeamsChannelGetCommand();
|
|
141
141
|
//# sourceMappingURL=channel-get.js.map
|
|
@@ -95,7 +95,7 @@ _TeamsChannelListCommand_instances = new WeakSet(), _TeamsChannelListCommand_ini
|
|
|
95
95
|
return true;
|
|
96
96
|
}));
|
|
97
97
|
}, _TeamsChannelListCommand_initOptionSets = function _TeamsChannelListCommand_initOptionSets() {
|
|
98
|
-
this.optionSets.push(['teamId', 'teamName']);
|
|
98
|
+
this.optionSets.push({ options: ['teamId', 'teamName'] });
|
|
99
99
|
};
|
|
100
100
|
module.exports = new TeamsChannelListCommand();
|
|
101
101
|
//# sourceMappingURL=channel-list.js.map
|
|
@@ -181,7 +181,7 @@ _TeamsChannelMemberAddCommand_instances = new WeakSet(), _TeamsChannelMemberAddC
|
|
|
181
181
|
return true;
|
|
182
182
|
}));
|
|
183
183
|
}, _TeamsChannelMemberAddCommand_initOptionSets = function _TeamsChannelMemberAddCommand_initOptionSets() {
|
|
184
|
-
this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['userId', 'userDisplayName']);
|
|
184
|
+
this.optionSets.push({ options: ['teamId', 'teamName'] }, { options: ['channelId', 'channelName'] }, { options: ['userId', 'userDisplayName'] });
|
|
185
185
|
};
|
|
186
186
|
module.exports = new TeamsChannelMemberAddCommand();
|
|
187
187
|
//# sourceMappingURL=channel-member-add.js.map
|
|
@@ -138,7 +138,7 @@ _TeamsChannelMemberListCommand_instances = new WeakSet(), _TeamsChannelMemberLis
|
|
|
138
138
|
return true;
|
|
139
139
|
}));
|
|
140
140
|
}, _TeamsChannelMemberListCommand_initOptionSets = function _TeamsChannelMemberListCommand_initOptionSets() {
|
|
141
|
-
this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName']);
|
|
141
|
+
this.optionSets.push({ options: ['teamId', 'teamName'] }, { options: ['channelId', 'channelName'] });
|
|
142
142
|
};
|
|
143
143
|
module.exports = new TeamsChannelMemberListCommand();
|
|
144
144
|
//# sourceMappingURL=channel-member-list.js.map
|
|
@@ -202,7 +202,7 @@ _TeamsChannelMemberRemoveCommand_instances = new WeakSet(), _TeamsChannelMemberR
|
|
|
202
202
|
return true;
|
|
203
203
|
}));
|
|
204
204
|
}, _TeamsChannelMemberRemoveCommand_initOptionSets = function _TeamsChannelMemberRemoveCommand_initOptionSets() {
|
|
205
|
-
this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['userId', 'userName', 'id']);
|
|
205
|
+
this.optionSets.push({ options: ['teamId', 'teamName'] }, { options: ['channelId', 'channelName'] }, { options: ['userId', 'userName', 'id'] });
|
|
206
206
|
};
|
|
207
207
|
module.exports = new TeamsChannelMemberRemoveCommand();
|
|
208
208
|
//# sourceMappingURL=channel-member-remove.js.map
|
|
@@ -179,7 +179,7 @@ _TeamsChannelMemberSetCommand_instances = new WeakSet(), _TeamsChannelMemberSetC
|
|
|
179
179
|
return true;
|
|
180
180
|
}));
|
|
181
181
|
}, _TeamsChannelMemberSetCommand_initOptionSets = function _TeamsChannelMemberSetCommand_initOptionSets() {
|
|
182
|
-
this.optionSets.push(['teamId', 'teamName'], ['channelId', 'channelName'], ['userName', 'userId', 'id']);
|
|
182
|
+
this.optionSets.push({ options: ['teamId', 'teamName'] }, { options: ['channelId', 'channelName'] }, { options: ['userName', 'userId', 'id'] });
|
|
183
183
|
};
|
|
184
184
|
module.exports = new TeamsChannelMemberSetCommand();
|
|
185
185
|
//# sourceMappingURL=channel-member-set.js.map
|
|
@@ -142,7 +142,7 @@ _TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand
|
|
|
142
142
|
return true;
|
|
143
143
|
}));
|
|
144
144
|
}, _TeamsChannelRemoveCommand_initOptionSets = function _TeamsChannelRemoveCommand_initOptionSets() {
|
|
145
|
-
this.optionSets.push(['id', 'name'], ['teamId', 'teamName']);
|
|
145
|
+
this.optionSets.push({ options: ['id', 'name'] }, { options: ['teamId', 'teamName'] });
|
|
146
146
|
};
|
|
147
147
|
module.exports = new TeamsChannelRemoveCommand();
|
|
148
148
|
//# sourceMappingURL=channel-remove.js.map
|
|
@@ -141,7 +141,7 @@ _TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initT
|
|
|
141
141
|
return true;
|
|
142
142
|
}));
|
|
143
143
|
}, _TeamsChannelSetCommand_initOptionSets = function _TeamsChannelSetCommand_initOptionSets() {
|
|
144
|
-
this.optionSets.push(['id', 'name'], ['teamId', 'teamName']);
|
|
144
|
+
this.optionSets.push({ options: ['id', 'name'] }, { options: ['teamId', 'teamName'] });
|
|
145
145
|
};
|
|
146
146
|
module.exports = new TeamsChannelSetCommand();
|
|
147
147
|
//# sourceMappingURL=channel-set.js.map
|
|
@@ -137,7 +137,7 @@ _TeamsChatGetCommand_instances = new WeakSet(), _TeamsChatGetCommand_initTelemet
|
|
|
137
137
|
return true;
|
|
138
138
|
}));
|
|
139
139
|
}, _TeamsChatGetCommand_initOptionSets = function _TeamsChatGetCommand_initOptionSets() {
|
|
140
|
-
this.optionSets.push(['id', 'participants', 'name']);
|
|
140
|
+
this.optionSets.push({ options: ['id', 'participants', 'name'] });
|
|
141
141
|
};
|
|
142
142
|
module.exports = new TeamsChatGetCommand();
|
|
143
143
|
//# sourceMappingURL=chat-get.js.map
|
|
@@ -182,7 +182,7 @@ _TeamsChatMessageSendCommand_instances = new WeakSet(), _TeamsChatMessageSendCom
|
|
|
182
182
|
return true;
|
|
183
183
|
}));
|
|
184
184
|
}, _TeamsChatMessageSendCommand_initOptionSets = function _TeamsChatMessageSendCommand_initOptionSets() {
|
|
185
|
-
this.optionSets.push(['chatId', 'userEmails', 'chatName']);
|
|
185
|
+
this.optionSets.push({ options: ['chatId', 'userEmails', 'chatName'] });
|
|
186
186
|
};
|
|
187
187
|
module.exports = new TeamsChatMessageSendCommand();
|
|
188
188
|
//# sourceMappingURL=chat-message-send.js.map
|