@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
|
@@ -173,7 +173,7 @@ _SpoGroupSetCommand_instances = new WeakSet(), _SpoGroupSetCommand_initTelemetry
|
|
|
173
173
|
return true;
|
|
174
174
|
}));
|
|
175
175
|
}, _SpoGroupSetCommand_initOptionSets = function _SpoGroupSetCommand_initOptionSets() {
|
|
176
|
-
this.optionSets.push(['id', 'name']);
|
|
176
|
+
this.optionSets.push({ options: ['id', 'name'] });
|
|
177
177
|
};
|
|
178
178
|
module.exports = new SpoGroupSetCommand();
|
|
179
179
|
//# sourceMappingURL=group-set.js.map
|
|
@@ -122,7 +122,7 @@ _SpoHubSiteConnectCommand_instances = new WeakSet(), _SpoHubSiteConnectCommand_i
|
|
|
122
122
|
option: '--parentUrl [parentUrl]'
|
|
123
123
|
});
|
|
124
124
|
}, _SpoHubSiteConnectCommand_initOptionSets = function _SpoHubSiteConnectCommand_initOptionSets() {
|
|
125
|
-
this.optionSets.push(['id', 'title', 'url'], ['parentId', 'parentTitle', 'parentUrl']);
|
|
125
|
+
this.optionSets.push({ options: ['id', 'title', 'url'] }, { options: ['parentId', 'parentTitle', 'parentUrl'] });
|
|
126
126
|
}, _SpoHubSiteConnectCommand_initValidators = function _SpoHubSiteConnectCommand_initValidators() {
|
|
127
127
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
128
128
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
@@ -130,7 +130,7 @@ _SpoHubSiteDisconnectCommand_instances = new WeakSet(), _SpoHubSiteDisconnectCom
|
|
|
130
130
|
option: '--confirm'
|
|
131
131
|
});
|
|
132
132
|
}, _SpoHubSiteDisconnectCommand_initOptionSets = function _SpoHubSiteDisconnectCommand_initOptionSets() {
|
|
133
|
-
this.optionSets.push(['id', 'title', 'url']);
|
|
133
|
+
this.optionSets.push({ options: ['id', 'title', 'url'] });
|
|
134
134
|
}, _SpoHubSiteDisconnectCommand_initValidators = function _SpoHubSiteDisconnectCommand_initValidators() {
|
|
135
135
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
136
136
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
@@ -131,7 +131,7 @@ _SpoHubSiteGetCommand_instances = new WeakSet(), _SpoHubSiteGetCommand_initTelem
|
|
|
131
131
|
return true;
|
|
132
132
|
}));
|
|
133
133
|
}, _SpoHubSiteGetCommand_initOptionSets = function _SpoHubSiteGetCommand_initOptionSets() {
|
|
134
|
-
this.optionSets.push(['id', 'title', 'url']);
|
|
134
|
+
this.optionSets.push({ options: ['id', 'title', 'url'] });
|
|
135
135
|
};
|
|
136
136
|
module.exports = new SpoHubSiteGetCommand();
|
|
137
137
|
//# sourceMappingURL=hubsite-get.js.map
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _SpoHubSiteListCommand_instances, _SpoHubSiteListCommand_initTelemetry, _SpoHubSiteListCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const odata_1 = require("../../../../utils/odata");
|
|
19
20
|
const spo_1 = require("../../../../utils/spo");
|
|
20
21
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
@@ -41,21 +42,14 @@ class SpoHubSiteListCommand extends SpoCommand_1.default {
|
|
|
41
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
43
|
try {
|
|
43
44
|
const spoAdminUrl = yield spo_1.spo.getSpoAdminUrl(logger, this.debug);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
headers: {
|
|
47
|
-
accept: 'application/json;odata=nometadata'
|
|
48
|
-
},
|
|
49
|
-
responseType: 'json'
|
|
50
|
-
};
|
|
51
|
-
const hubSitesResult = yield request_1.default.get(requestOptions);
|
|
52
|
-
const hubSites = hubSitesResult.value;
|
|
45
|
+
const hubSitesResult = yield odata_1.odata.getAllItems(`${spoAdminUrl}/_api/hubsites`);
|
|
46
|
+
const hubSites = hubSitesResult;
|
|
53
47
|
if (!(args.options.includeAssociatedSites !== true || args.options.output && args.options.output !== 'json')) {
|
|
54
48
|
if (this.debug) {
|
|
55
49
|
logger.logToStderr('Retrieving associated sites...');
|
|
56
50
|
logger.logToStderr('');
|
|
57
51
|
}
|
|
58
|
-
requestOptions = {
|
|
52
|
+
const requestOptions = {
|
|
59
53
|
url: `${spoAdminUrl}/_api/web/lists/GetByTitle('DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECOLLECTIONS')/RenderListDataAsStream`,
|
|
60
54
|
headers: {
|
|
61
55
|
accept: 'application/json;odata=nometadata'
|
|
@@ -109,7 +109,7 @@ _SpoListContentTypeAddCommand_instances = new WeakSet(), _SpoListContentTypeAddC
|
|
|
109
109
|
}, _SpoListContentTypeAddCommand_initTypes = function _SpoListContentTypeAddCommand_initTypes() {
|
|
110
110
|
this.types.string.push('id', 'i');
|
|
111
111
|
}, _SpoListContentTypeAddCommand_initOptionSets = function _SpoListContentTypeAddCommand_initOptionSets() {
|
|
112
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
112
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
113
113
|
};
|
|
114
114
|
module.exports = new SpoListContentTypeAddCommand();
|
|
115
115
|
//# sourceMappingURL=list-contenttype-add.js.map
|
|
@@ -198,7 +198,7 @@ _SpoListContentTypeDefaultSetCommand_instances = new WeakSet(), _SpoListContentT
|
|
|
198
198
|
}, _SpoListContentTypeDefaultSetCommand_initTypes = function _SpoListContentTypeDefaultSetCommand_initTypes() {
|
|
199
199
|
this.types.string.push('contentTypeId', 'c');
|
|
200
200
|
}, _SpoListContentTypeDefaultSetCommand_initOptionSets = function _SpoListContentTypeDefaultSetCommand_initOptionSets() {
|
|
201
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
201
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
202
202
|
};
|
|
203
203
|
module.exports = new SpoListContentTypeDefaultSetCommand();
|
|
204
204
|
//# sourceMappingURL=list-contenttype-default-set.js.map
|
|
@@ -15,8 +15,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoListContentTypeListCommand_instances, _SpoListContentTypeListCommand_initTelemetry, _SpoListContentTypeListCommand_initOptions, _SpoListContentTypeListCommand_initValidators, _SpoListContentTypeListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const request_1 = require("../../../../request");
|
|
19
18
|
const formatting_1 = require("../../../../utils/formatting");
|
|
19
|
+
const odata_1 = require("../../../../utils/odata");
|
|
20
20
|
const urlUtil_1 = require("../../../../utils/urlUtil");
|
|
21
21
|
const validation_1 = require("../../../../utils/validation");
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
@@ -56,17 +56,9 @@ class SpoListContentTypeListCommand extends SpoCommand_1.default {
|
|
|
56
56
|
const listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
57
57
|
requestUrl += `GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')`;
|
|
58
58
|
}
|
|
59
|
-
const requestOptions = {
|
|
60
|
-
url: `${requestUrl}/ContentTypes`,
|
|
61
|
-
method: 'GET',
|
|
62
|
-
headers: {
|
|
63
|
-
'accept': 'application/json;odata=nometadata'
|
|
64
|
-
},
|
|
65
|
-
responseType: 'json'
|
|
66
|
-
};
|
|
67
59
|
try {
|
|
68
|
-
const res = yield
|
|
69
|
-
logger.log(res
|
|
60
|
+
const res = yield odata_1.odata.getAllItems(`${requestUrl}/ContentTypes`);
|
|
61
|
+
logger.log(res);
|
|
70
62
|
}
|
|
71
63
|
catch (err) {
|
|
72
64
|
this.handleRejectedODataJsonPromise(err);
|
|
@@ -106,7 +98,7 @@ _SpoListContentTypeListCommand_instances = new WeakSet(), _SpoListContentTypeLis
|
|
|
106
98
|
return true;
|
|
107
99
|
}));
|
|
108
100
|
}, _SpoListContentTypeListCommand_initOptionSets = function _SpoListContentTypeListCommand_initOptionSets() {
|
|
109
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
101
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
110
102
|
};
|
|
111
103
|
module.exports = new SpoListContentTypeListCommand();
|
|
112
104
|
//# sourceMappingURL=list-contenttype-list.js.map
|
|
@@ -128,7 +128,7 @@ _SpoListContentTypeRemoveCommand_instances = new WeakSet(), _SpoListContentTypeR
|
|
|
128
128
|
}, _SpoListContentTypeRemoveCommand_initTypes = function _SpoListContentTypeRemoveCommand_initTypes() {
|
|
129
129
|
this.types.string.push('id', 'i');
|
|
130
130
|
}, _SpoListContentTypeRemoveCommand_initOptionSets = function _SpoListContentTypeRemoveCommand_initOptionSets() {
|
|
131
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
131
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
132
132
|
};
|
|
133
133
|
module.exports = new SpoListContentTypeRemoveCommand();
|
|
134
134
|
//# sourceMappingURL=list-contenttype-remove.js.map
|
|
@@ -17,6 +17,7 @@ var _SpoListGetCommand_instances, _SpoListGetCommand_initTelemetry, _SpoListGetC
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const formatting_1 = require("../../../../utils/formatting");
|
|
20
|
+
const urlUtil_1 = require("../../../../utils/urlUtil");
|
|
20
21
|
const validation_1 = require("../../../../utils/validation");
|
|
21
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
22
23
|
const commands_1 = require("../../commands");
|
|
@@ -41,12 +42,16 @@ class SpoListGetCommand extends SpoCommand_1.default {
|
|
|
41
42
|
if (this.verbose) {
|
|
42
43
|
logger.logToStderr(`Retrieving information for list in site at ${args.options.webUrl}...`);
|
|
43
44
|
}
|
|
44
|
-
let requestUrl =
|
|
45
|
+
let requestUrl = `${args.options.webUrl}/_api/web/`;
|
|
45
46
|
if (args.options.id) {
|
|
46
|
-
requestUrl
|
|
47
|
+
requestUrl += `lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.id)}')`;
|
|
47
48
|
}
|
|
48
|
-
else {
|
|
49
|
-
requestUrl
|
|
49
|
+
else if (args.options.title) {
|
|
50
|
+
requestUrl += `lists/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.title)}')`;
|
|
51
|
+
}
|
|
52
|
+
else if (args.options.url) {
|
|
53
|
+
const listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.url);
|
|
54
|
+
requestUrl += `GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')`;
|
|
50
55
|
}
|
|
51
56
|
let propertiesSelect = args.options.properties ? `?$select=${formatting_1.formatting.encodeQueryParameter(args.options.properties)}` : ``;
|
|
52
57
|
propertiesSelect += args.options.withPermissions ? `${args.options.properties ? '&' : '?'}$expand=HasUniqueRoleAssignments,RoleAssignments/Member,RoleAssignments/RoleDefinitionBindings` : ``;
|
|
@@ -77,6 +82,7 @@ _SpoListGetCommand_instances = new WeakSet(), _SpoListGetCommand_initTelemetry =
|
|
|
77
82
|
Object.assign(this.telemetryProperties, {
|
|
78
83
|
id: (!(!args.options.id)).toString(),
|
|
79
84
|
title: (!(!args.options.title)).toString(),
|
|
85
|
+
url: (!(!args.options.url)).toString(),
|
|
80
86
|
properties: (!(!args.options.properties)).toString(),
|
|
81
87
|
withPermissions: typeof args.options.withPermissions !== 'undefined'
|
|
82
88
|
});
|
|
@@ -88,6 +94,8 @@ _SpoListGetCommand_instances = new WeakSet(), _SpoListGetCommand_initTelemetry =
|
|
|
88
94
|
option: '-i, --id [id]'
|
|
89
95
|
}, {
|
|
90
96
|
option: '-t, --title [title]'
|
|
97
|
+
}, {
|
|
98
|
+
option: '--url [url]'
|
|
91
99
|
}, {
|
|
92
100
|
option: '-p, --properties [properties]'
|
|
93
101
|
}, {
|
|
@@ -107,7 +115,7 @@ _SpoListGetCommand_instances = new WeakSet(), _SpoListGetCommand_initTelemetry =
|
|
|
107
115
|
return true;
|
|
108
116
|
}));
|
|
109
117
|
}, _SpoListGetCommand_initOptionSets = function _SpoListGetCommand_initOptionSets() {
|
|
110
|
-
this.optionSets.push(['id', 'title']);
|
|
118
|
+
this.optionSets.push({ options: ['id', 'title', 'url'] });
|
|
111
119
|
};
|
|
112
120
|
module.exports = new SpoListGetCommand();
|
|
113
121
|
//# sourceMappingURL=list-get.js.map
|
|
@@ -40,32 +40,41 @@ class SpoListLabelGetCommand extends SpoCommand_1.default {
|
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
try {
|
|
42
42
|
if (this.verbose) {
|
|
43
|
-
|
|
44
|
-
logger.logToStderr(`Getting label set on the list ${list} in site at ${args.options.webUrl}...`);
|
|
43
|
+
logger.logToStderr(`Getting label set on the list ${args.options.listId || args.options.listTitle || args.options.listUrl} in site at ${args.options.webUrl}...`);
|
|
45
44
|
}
|
|
46
|
-
let
|
|
47
|
-
if (args.options.
|
|
45
|
+
let listServerRelativeUrl = '';
|
|
46
|
+
if (args.options.listUrl) {
|
|
48
47
|
if (this.debug) {
|
|
49
|
-
logger.logToStderr(`Retrieving List
|
|
48
|
+
logger.logToStderr(`Retrieving List from URL '${args.options.listUrl}'...`);
|
|
50
49
|
}
|
|
51
|
-
|
|
50
|
+
listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
52
51
|
}
|
|
53
52
|
else {
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
let requestUrl = `${args.options.webUrl}/_api/web/`;
|
|
54
|
+
if (args.options.listId) {
|
|
55
|
+
if (this.debug) {
|
|
56
|
+
logger.logToStderr(`Retrieving List from Id '${args.options.listId}'...`);
|
|
57
|
+
}
|
|
58
|
+
requestUrl += `lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')?$expand=RootFolder&$select=RootFolder`;
|
|
59
|
+
}
|
|
60
|
+
else if (args.options.listTitle) {
|
|
61
|
+
if (this.debug) {
|
|
62
|
+
logger.logToStderr(`Retrieving List from Title '${args.options.listTitle}'...`);
|
|
63
|
+
}
|
|
64
|
+
requestUrl += `lists/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')?$expand=RootFolder&$select=RootFolder`;
|
|
56
65
|
}
|
|
57
|
-
|
|
66
|
+
const requestOptions = {
|
|
67
|
+
url: requestUrl,
|
|
68
|
+
headers: {
|
|
69
|
+
'accept': 'application/json;odata=nometadata'
|
|
70
|
+
},
|
|
71
|
+
responseType: 'json'
|
|
72
|
+
};
|
|
73
|
+
const listInstance = yield request_1.default.get(requestOptions);
|
|
74
|
+
listServerRelativeUrl = listInstance.RootFolder.ServerRelativeUrl;
|
|
58
75
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
headers: {
|
|
62
|
-
'accept': 'application/json;odata=nometadata'
|
|
63
|
-
},
|
|
64
|
-
responseType: 'json'
|
|
65
|
-
};
|
|
66
|
-
const listInstance = yield request_1.default.get(requestOptions);
|
|
67
|
-
const listAbsoluteUrl = urlUtil_1.urlUtil.getAbsoluteUrl(args.options.webUrl, listInstance.RootFolder.ServerRelativeUrl);
|
|
68
|
-
requestOptions = {
|
|
76
|
+
const listAbsoluteUrl = urlUtil_1.urlUtil.getAbsoluteUrl(args.options.webUrl, listServerRelativeUrl);
|
|
77
|
+
const reqOptions = {
|
|
69
78
|
url: `${args.options.webUrl}/_api/SP_CompliancePolicy_SPPolicyStoreProxy_GetListComplianceTag`,
|
|
70
79
|
headers: {
|
|
71
80
|
'accept': 'application/json;odata=nometadata',
|
|
@@ -76,7 +85,7 @@ class SpoListLabelGetCommand extends SpoCommand_1.default {
|
|
|
76
85
|
listUrl: listAbsoluteUrl
|
|
77
86
|
}
|
|
78
87
|
};
|
|
79
|
-
const res = yield request_1.default.post(
|
|
88
|
+
const res = yield request_1.default.post(reqOptions);
|
|
80
89
|
if (res['odata.null'] !== true) {
|
|
81
90
|
logger.log(res);
|
|
82
91
|
}
|
|
@@ -91,7 +100,8 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
|
|
|
91
100
|
this.telemetry.push((args) => {
|
|
92
101
|
Object.assign(this.telemetryProperties, {
|
|
93
102
|
listId: (!(!args.options.listId)).toString(),
|
|
94
|
-
listTitle: (!(!args.options.listTitle)).toString()
|
|
103
|
+
listTitle: (!(!args.options.listTitle)).toString(),
|
|
104
|
+
listUrl: (!(!args.options.listUrl)).toString()
|
|
95
105
|
});
|
|
96
106
|
});
|
|
97
107
|
}, _SpoListLabelGetCommand_initOptions = function _SpoListLabelGetCommand_initOptions() {
|
|
@@ -101,6 +111,8 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
|
|
|
101
111
|
option: '-l, --listId [listId]'
|
|
102
112
|
}, {
|
|
103
113
|
option: '-t, --listTitle [listTitle]'
|
|
114
|
+
}, {
|
|
115
|
+
option: '--listUrl [listUrl]'
|
|
104
116
|
});
|
|
105
117
|
}, _SpoListLabelGetCommand_initValidators = function _SpoListLabelGetCommand_initValidators() {
|
|
106
118
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -116,7 +128,7 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
|
|
|
116
128
|
return true;
|
|
117
129
|
}));
|
|
118
130
|
}, _SpoListLabelGetCommand_initOptionSets = function _SpoListLabelGetCommand_initOptionSets() {
|
|
119
|
-
this.optionSets.push(['listId', 'listTitle']);
|
|
131
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
120
132
|
};
|
|
121
133
|
module.exports = new SpoListLabelGetCommand();
|
|
122
134
|
//# sourceMappingURL=list-label-get.js.map
|
|
@@ -123,7 +123,7 @@ _SpoListLabelSetCommand_instances = new WeakSet(), _SpoListLabelSetCommand_initT
|
|
|
123
123
|
return validation_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
124
124
|
}));
|
|
125
125
|
}, _SpoListLabelSetCommand_initOptionSets = function _SpoListLabelSetCommand_initOptionSets() {
|
|
126
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
126
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
127
127
|
};
|
|
128
128
|
module.exports = new SpoListLabelSetCommand();
|
|
129
129
|
//# sourceMappingURL=list-label-set.js.map
|
|
@@ -15,7 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoListListCommand_instances, _SpoListListCommand_initOptions, _SpoListListCommand_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,20 +40,12 @@ class SpoListListCommand extends SpoCommand_1.default {
|
|
|
40
40
|
if (this.verbose) {
|
|
41
41
|
logger.logToStderr(`Retrieving all lists in site at ${args.options.webUrl}...`);
|
|
42
42
|
}
|
|
43
|
-
const requestOptions = {
|
|
44
|
-
url: `${args.options.webUrl}/_api/web/lists?$expand=RootFolder&$select=RootFolder/ServerRelativeUrl,*`,
|
|
45
|
-
method: 'GET',
|
|
46
|
-
headers: {
|
|
47
|
-
'accept': 'application/json;odata=nometadata'
|
|
48
|
-
},
|
|
49
|
-
responseType: 'json'
|
|
50
|
-
};
|
|
51
43
|
try {
|
|
52
|
-
const listInstances = yield
|
|
53
|
-
listInstances.
|
|
44
|
+
const listInstances = yield odata_1.odata.getAllItems(`${args.options.webUrl}/_api/web/lists?$expand=RootFolder&$select=RootFolder/ServerRelativeUrl,*`);
|
|
45
|
+
listInstances.forEach(l => {
|
|
54
46
|
l.Url = l.RootFolder.ServerRelativeUrl;
|
|
55
47
|
});
|
|
56
|
-
logger.log(listInstances
|
|
48
|
+
logger.log(listInstances);
|
|
57
49
|
}
|
|
58
50
|
catch (err) {
|
|
59
51
|
this.handleRejectedODataJsonPromise(err);
|
|
@@ -114,7 +114,7 @@ _SpoListRemoveCommand_instances = new WeakSet(), _SpoListRemoveCommand_initTelem
|
|
|
114
114
|
return true;
|
|
115
115
|
}));
|
|
116
116
|
}, _SpoListRemoveCommand_initOptionSets = function _SpoListRemoveCommand_initOptionSets() {
|
|
117
|
-
this.optionSets.push(['id', 'title']);
|
|
117
|
+
this.optionSets.push({ options: ['id', 'title'] });
|
|
118
118
|
};
|
|
119
119
|
module.exports = new SpoListRemoveCommand();
|
|
120
120
|
//# sourceMappingURL=list-remove.js.map
|
|
@@ -194,7 +194,7 @@ _SpoListRoleAssignmentAddCommand_instances = new WeakSet(), _SpoListRoleAssignme
|
|
|
194
194
|
return true;
|
|
195
195
|
}));
|
|
196
196
|
}, _SpoListRoleAssignmentAddCommand_initOptionSets = function _SpoListRoleAssignmentAddCommand_initOptionSets() {
|
|
197
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['principalId', 'upn', 'groupName'], ['roleDefinitionId', 'roleDefinitionName']);
|
|
197
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] }, { options: ['principalId', 'upn', 'groupName'] }, { options: ['roleDefinitionId', 'roleDefinitionName'] });
|
|
198
198
|
};
|
|
199
199
|
module.exports = new SpoListRoleAssignmentAddCommand();
|
|
200
200
|
//# sourceMappingURL=list-roleassignment-add.js.map
|
|
@@ -183,7 +183,7 @@ _SpoListRoleAssignmentRemoveCommand_instances = new WeakSet(), _SpoListRoleAssig
|
|
|
183
183
|
return true;
|
|
184
184
|
}));
|
|
185
185
|
}, _SpoListRoleAssignmentRemoveCommand_initOptionSets = function _SpoListRoleAssignmentRemoveCommand_initOptionSets() {
|
|
186
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['principalId', 'upn', 'groupName']);
|
|
186
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] }, { options: ['principalId', 'upn', 'groupName'] });
|
|
187
187
|
};
|
|
188
188
|
module.exports = new SpoListRoleAssignmentRemoveCommand();
|
|
189
189
|
//# sourceMappingURL=list-roleassignment-remove.js.map
|
|
@@ -128,7 +128,7 @@ _SpoListRoleInheritanceBreakCommand_instances = new WeakSet(), _SpoListRoleInher
|
|
|
128
128
|
return true;
|
|
129
129
|
}));
|
|
130
130
|
}, _SpoListRoleInheritanceBreakCommand_initOptionSets = function _SpoListRoleInheritanceBreakCommand_initOptionSets() {
|
|
131
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
131
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
132
132
|
};
|
|
133
133
|
module.exports = new SpoListRoleInheritanceBreakCommand();
|
|
134
134
|
//# sourceMappingURL=list-roleinheritance-break.js.map
|
|
@@ -121,7 +121,7 @@ _SpoListRoleInheritanceResetCommand_instances = new WeakSet(), _SpoListRoleInher
|
|
|
121
121
|
return true;
|
|
122
122
|
}));
|
|
123
123
|
}, _SpoListRoleInheritanceResetCommand_initOptionSets = function _SpoListRoleInheritanceResetCommand_initOptionSets() {
|
|
124
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
124
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
125
125
|
};
|
|
126
126
|
module.exports = new SpoListRoleInheritanceResetCommand();
|
|
127
127
|
//# sourceMappingURL=list-roleinheritance-reset.js.map
|
|
@@ -592,7 +592,7 @@ _SpoListSetCommand_instances = new WeakSet(), _SpoListSetCommand_initTelemetry =
|
|
|
592
592
|
'listExperienceOptions'
|
|
593
593
|
]));
|
|
594
594
|
}, _SpoListSetCommand_initOptionSets = function _SpoListSetCommand_initOptionSets() {
|
|
595
|
-
this.optionSets.push(['id', 'title', 'url']);
|
|
595
|
+
this.optionSets.push({ options: ['id', 'title', 'url'] });
|
|
596
596
|
};
|
|
597
597
|
SpoListSetCommand.booleanOptions = [
|
|
598
598
|
'allowDeletion',
|
|
@@ -40,34 +40,42 @@ class SpoListSiteScriptGetCommand extends SpoCommand_1.default {
|
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
try {
|
|
42
42
|
if (this.verbose) {
|
|
43
|
-
|
|
44
|
-
logger.logToStderr(`Extracting Site Script from list ${list} in site at ${args.options.webUrl}...`);
|
|
43
|
+
logger.logToStderr(`Extracting Site Script from list ${args.options.listId || args.options.listTitle || args.options.listUrl} in site at ${args.options.webUrl}...`);
|
|
45
44
|
}
|
|
46
|
-
let
|
|
47
|
-
if (args.options.
|
|
45
|
+
let listServerRelativeUrl = '';
|
|
46
|
+
if (args.options.listUrl) {
|
|
48
47
|
if (this.debug) {
|
|
49
|
-
logger.logToStderr(`Retrieving List
|
|
48
|
+
logger.logToStderr(`Retrieving List from URL '${args.options.listUrl}'...`);
|
|
50
49
|
}
|
|
51
|
-
|
|
50
|
+
listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
52
51
|
}
|
|
53
52
|
else {
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
let requestUrl = `${args.options.webUrl}/_api/web/`;
|
|
54
|
+
if (args.options.listId) {
|
|
55
|
+
if (this.debug) {
|
|
56
|
+
logger.logToStderr(`Retrieving List from Id '${args.options.listId}'...`);
|
|
57
|
+
}
|
|
58
|
+
requestUrl += `lists(guid'${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')?$expand=RootFolder`;
|
|
59
|
+
}
|
|
60
|
+
else if (args.options.listTitle) {
|
|
61
|
+
if (this.debug) {
|
|
62
|
+
logger.logToStderr(`Retrieving List from Title '${args.options.listTitle}'...`);
|
|
63
|
+
}
|
|
64
|
+
requestUrl += `lists/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')?$expand=RootFolder`;
|
|
56
65
|
}
|
|
57
|
-
|
|
66
|
+
const requestOptions = {
|
|
67
|
+
url: requestUrl,
|
|
68
|
+
headers: {
|
|
69
|
+
'accept': 'application/json;odata=nometadata'
|
|
70
|
+
},
|
|
71
|
+
responseType: 'json'
|
|
72
|
+
};
|
|
73
|
+
const listInstance = yield request_1.default.get(requestOptions);
|
|
74
|
+
listServerRelativeUrl = listInstance.RootFolder.ServerRelativeUrl;
|
|
58
75
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
'accept': 'application/json;odata=nometadata'
|
|
63
|
-
},
|
|
64
|
-
responseType: 'json'
|
|
65
|
-
};
|
|
66
|
-
const listInstance = yield request_1.default.get(requestOptions);
|
|
67
|
-
const listAbsoluteUrl = urlUtil_1.urlUtil.getAbsoluteUrl(args.options.webUrl, listInstance.RootFolder.ServerRelativeUrl);
|
|
68
|
-
requestUrl = `${args.options.webUrl}/_api/Microsoft_SharePoint_Utilities_WebTemplateExtensions_SiteScriptUtility_GetSiteScriptFromList`;
|
|
69
|
-
requestOptions = {
|
|
70
|
-
url: requestUrl,
|
|
76
|
+
const listAbsoluteUrl = urlUtil_1.urlUtil.getAbsoluteUrl(args.options.webUrl, listServerRelativeUrl);
|
|
77
|
+
const reqOptions = {
|
|
78
|
+
url: `${args.options.webUrl}/_api/Microsoft_SharePoint_Utilities_WebTemplateExtensions_SiteScriptUtility_GetSiteScriptFromList`,
|
|
71
79
|
headers: {
|
|
72
80
|
'accept': 'application/json;odata=nometadata',
|
|
73
81
|
'content-type': 'application/json;odata=nometadata'
|
|
@@ -77,7 +85,7 @@ class SpoListSiteScriptGetCommand extends SpoCommand_1.default {
|
|
|
77
85
|
listUrl: listAbsoluteUrl
|
|
78
86
|
}
|
|
79
87
|
};
|
|
80
|
-
const res = yield request_1.default.post(
|
|
88
|
+
const res = yield request_1.default.post(reqOptions);
|
|
81
89
|
const siteScript = res.value;
|
|
82
90
|
if (!siteScript) {
|
|
83
91
|
throw `An error has occurred, the site script could not be extracted from list '${args.options.listId || args.options.listTitle}'`;
|
|
@@ -94,7 +102,8 @@ _SpoListSiteScriptGetCommand_instances = new WeakSet(), _SpoListSiteScriptGetCom
|
|
|
94
102
|
this.telemetry.push((args) => {
|
|
95
103
|
Object.assign(this.telemetryProperties, {
|
|
96
104
|
listId: (!(!args.options.listId)).toString(),
|
|
97
|
-
listTitle: (!(!args.options.listTitle)).toString()
|
|
105
|
+
listTitle: (!(!args.options.listTitle)).toString(),
|
|
106
|
+
listUrl: (!(!args.options.listUrl)).toString()
|
|
98
107
|
});
|
|
99
108
|
});
|
|
100
109
|
}, _SpoListSiteScriptGetCommand_initOptions = function _SpoListSiteScriptGetCommand_initOptions() {
|
|
@@ -104,6 +113,8 @@ _SpoListSiteScriptGetCommand_instances = new WeakSet(), _SpoListSiteScriptGetCom
|
|
|
104
113
|
option: '-l, --listId [listId]'
|
|
105
114
|
}, {
|
|
106
115
|
option: '-t, --listTitle [listTitle]'
|
|
116
|
+
}, {
|
|
117
|
+
option: '--listUrl [listUrl]'
|
|
107
118
|
});
|
|
108
119
|
}, _SpoListSiteScriptGetCommand_initValidators = function _SpoListSiteScriptGetCommand_initValidators() {
|
|
109
120
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -119,7 +130,7 @@ _SpoListSiteScriptGetCommand_instances = new WeakSet(), _SpoListSiteScriptGetCom
|
|
|
119
130
|
return true;
|
|
120
131
|
}));
|
|
121
132
|
}, _SpoListSiteScriptGetCommand_initOptionSets = function _SpoListSiteScriptGetCommand_initOptionSets() {
|
|
122
|
-
this.optionSets.push(['listId', 'listTitle']);
|
|
133
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
123
134
|
};
|
|
124
135
|
module.exports = new SpoListSiteScriptGetCommand();
|
|
125
136
|
//# sourceMappingURL=list-sitescript-get.js.map
|
|
@@ -123,7 +123,7 @@ _SpoListViewAddCommand_instances = new WeakSet(), _SpoListViewAddCommand_initTel
|
|
|
123
123
|
return true;
|
|
124
124
|
}));
|
|
125
125
|
}, _SpoListViewAddCommand_initOptionSets = function _SpoListViewAddCommand_initOptionSets() {
|
|
126
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
126
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
127
127
|
};
|
|
128
128
|
module.exports = new SpoListViewAddCommand();
|
|
129
129
|
//# sourceMappingURL=list-view-add.js.map
|
|
@@ -176,7 +176,7 @@ _SpoListViewFieldAddCommand_instances = new WeakSet(), _SpoListViewFieldAddComma
|
|
|
176
176
|
return true;
|
|
177
177
|
}));
|
|
178
178
|
}, _SpoListViewFieldAddCommand_initOptionSets = function _SpoListViewFieldAddCommand_initOptionSets() {
|
|
179
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['viewId', 'viewTitle'], ['id', 'title']);
|
|
179
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] }, { options: ['viewId', 'viewTitle'] }, { options: ['id', 'title'] });
|
|
180
180
|
};
|
|
181
181
|
module.exports = new SpoListViewFieldAddCommand();
|
|
182
182
|
//# sourceMappingURL=list-view-field-add.js.map
|
|
@@ -161,7 +161,7 @@ _SpoListViewFieldRemoveCommand_instances = new WeakSet(), _SpoListViewFieldRemov
|
|
|
161
161
|
return true;
|
|
162
162
|
}));
|
|
163
163
|
}, _SpoListViewFieldRemoveCommand_initOptionSets = function _SpoListViewFieldRemoveCommand_initOptionSets() {
|
|
164
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['viewId', 'viewTitle'], ['id', 'title']);
|
|
164
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] }, { options: ['viewId', 'viewTitle'] }, { options: ['id', 'title'] });
|
|
165
165
|
};
|
|
166
166
|
module.exports = new SpoListViewFieldRemoveCommand();
|
|
167
167
|
//# sourceMappingURL=list-view-field-remove.js.map
|
|
@@ -150,7 +150,7 @@ _SpoListViewFieldSetCommand_instances = new WeakSet(), _SpoListViewFieldSetComma
|
|
|
150
150
|
return true;
|
|
151
151
|
}));
|
|
152
152
|
}, _SpoListViewFieldSetCommand_initOptionSets = function _SpoListViewFieldSetCommand_initOptionSets() {
|
|
153
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['viewId', 'viewTitle'], ['id', 'title']);
|
|
153
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] }, { options: ['viewId', 'viewTitle'] }, { options: ['id', 'title'] });
|
|
154
154
|
};
|
|
155
155
|
module.exports = new SpoListViewFieldSetCommand();
|
|
156
156
|
//# sourceMappingURL=list-view-field-set.js.map
|
|
@@ -109,7 +109,7 @@ _SpoListViewGetCommand_instances = new WeakSet(), _SpoListViewGetCommand_initTel
|
|
|
109
109
|
return true;
|
|
110
110
|
}));
|
|
111
111
|
}, _SpoListViewGetCommand_initOptionSets = function _SpoListViewGetCommand_initOptionSets() {
|
|
112
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['id', 'title']);
|
|
112
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] }, { options: ['id', 'title'] });
|
|
113
113
|
};
|
|
114
114
|
module.exports = new SpoListViewGetCommand();
|
|
115
115
|
//# sourceMappingURL=list-view-get.js.map
|
|
@@ -15,8 +15,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _SpoListViewListCommand_instances, _SpoListViewListCommand_initTelemetry, _SpoListViewListCommand_initOptions, _SpoListViewListCommand_initValidators, _SpoListViewListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const request_1 = require("../../../../request");
|
|
19
18
|
const formatting_1 = require("../../../../utils/formatting");
|
|
19
|
+
const odata_1 = require("../../../../utils/odata");
|
|
20
20
|
const urlUtil_1 = require("../../../../utils/urlUtil");
|
|
21
21
|
const validation_1 = require("../../../../utils/validation");
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
@@ -52,16 +52,9 @@ class SpoListViewListCommand extends SpoCommand_1.default {
|
|
|
52
52
|
const listServerRelativeUrl = urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
53
53
|
requestUrl += `/GetList('${formatting_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')/views`;
|
|
54
54
|
}
|
|
55
|
-
const requestOptions = {
|
|
56
|
-
url: requestUrl,
|
|
57
|
-
headers: {
|
|
58
|
-
'accept': 'application/json;odata=nometadata'
|
|
59
|
-
},
|
|
60
|
-
responseType: 'json'
|
|
61
|
-
};
|
|
62
55
|
try {
|
|
63
|
-
const res = yield
|
|
64
|
-
logger.log(res
|
|
56
|
+
const res = yield odata_1.odata.getAllItems(requestUrl);
|
|
57
|
+
logger.log(res);
|
|
65
58
|
}
|
|
66
59
|
catch (err) {
|
|
67
60
|
this.handleRejectedODataJsonPromise(err);
|
|
@@ -101,7 +94,7 @@ _SpoListViewListCommand_instances = new WeakSet(), _SpoListViewListCommand_initT
|
|
|
101
94
|
return true;
|
|
102
95
|
}));
|
|
103
96
|
}, _SpoListViewListCommand_initOptionSets = function _SpoListViewListCommand_initOptionSets() {
|
|
104
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl']);
|
|
97
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
105
98
|
};
|
|
106
99
|
module.exports = new SpoListViewListCommand();
|
|
107
100
|
//# sourceMappingURL=list-view-list.js.map
|
|
@@ -133,7 +133,7 @@ _SpoListViewRemoveCommand_instances = new WeakSet(), _SpoListViewRemoveCommand_i
|
|
|
133
133
|
return true;
|
|
134
134
|
}));
|
|
135
135
|
}, _SpoListViewRemoveCommand_initOptionSets = function _SpoListViewRemoveCommand_initOptionSets() {
|
|
136
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['id', 'title']);
|
|
136
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] }, { options: ['id', 'title'] });
|
|
137
137
|
};
|
|
138
138
|
module.exports = new SpoListViewRemoveCommand();
|
|
139
139
|
//# sourceMappingURL=list-view-remove.js.map
|
|
@@ -135,7 +135,7 @@ _SpoListViewSetCommand_instances = new WeakSet(), _SpoListViewSetCommand_initTel
|
|
|
135
135
|
return true;
|
|
136
136
|
}));
|
|
137
137
|
}, _SpoListViewSetCommand_initOptionSets = function _SpoListViewSetCommand_initOptionSets() {
|
|
138
|
-
this.optionSets.push(['listId', 'listTitle', 'listUrl'], ['id', 'title']);
|
|
138
|
+
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] }, { options: ['id', 'title'] });
|
|
139
139
|
};
|
|
140
140
|
module.exports = new SpoListViewSetCommand();
|
|
141
141
|
//# sourceMappingURL=list-view-set.js.map
|