@pnp/cli-microsoft365 5.8.0-beta.40c8ac8 → 6.0.0-beta.076a3a5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Auth.js +1 -2
- package/dist/cli/Cli.js +1 -1
- package/dist/m365/aad/commands/app/app-get.js +4 -11
- package/dist/m365/aad/commands/app/app-remove.js +4 -15
- package/dist/m365/aad/commands/app/app-role-add.js +5 -10
- package/dist/m365/aad/commands/app/app-role-list.js +4 -24
- package/dist/m365/aad/commands/app/app-role-remove.js +4 -26
- package/dist/m365/aad/commands/app/app-set.js +4 -11
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +14 -18
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +13 -20
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +13 -17
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -8
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +12 -15
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +4 -7
- package/dist/m365/aad/commands/policy/policy-list.js +6 -6
- package/dist/m365/aad/commands/sp/sp-add.js +4 -8
- package/dist/m365/aad/commands/sp/sp-get.js +15 -19
- package/dist/m365/aad/commands/user/user-get.js +4 -9
- package/dist/m365/aad/commands/user/user-list.js +13 -2
- package/dist/m365/aad/commands/user/user-set.js +4 -7
- package/dist/m365/aad/commands.js +0 -2
- package/dist/m365/cli/commands/config/config-set.js +0 -1
- package/dist/m365/flow/commands/flow-disable.js +2 -2
- package/dist/m365/flow/commands/flow-enable.js +2 -2
- package/dist/m365/flow/commands/flow-export.js +5 -5
- package/dist/m365/flow/commands/flow-get.js +2 -2
- package/dist/m365/flow/commands/flow-list.js +2 -2
- package/dist/m365/flow/commands/flow-remove.js +3 -3
- package/dist/m365/flow/commands/run/run-cancel.js +6 -6
- package/dist/m365/flow/commands/run/run-get.js +4 -4
- package/dist/m365/flow/commands/run/run-list.js +4 -4
- package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
- package/dist/m365/onenote/commands/notebook/notebook-list.js +139 -0
- package/dist/m365/onenote/commands.js +7 -0
- package/dist/m365/outlook/commands/message/message-list.js +4 -23
- package/dist/m365/outlook/commands/message/message-move.js +6 -33
- package/dist/m365/pa/commands/app/app-get.js +4 -7
- package/dist/m365/pa/commands/connector/connector-export.js +3 -3
- package/dist/m365/pa/commands/connector/connector-list.js +2 -2
- package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
- package/dist/m365/planner/commands/bucket/bucket-add.js +6 -16
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-list.js +6 -16
- package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-set.js +4 -11
- package/dist/m365/planner/commands/plan/plan-add.js +4 -7
- package/dist/m365/planner/commands/plan/plan-get.js +0 -4
- package/dist/m365/planner/commands/plan/plan-list.js +4 -7
- package/dist/m365/planner/commands/task/task-add.js +7 -21
- package/dist/m365/planner/commands/task/task-get.js +12 -19
- package/dist/m365/planner/commands/task/task-list.js +4 -11
- package/dist/m365/planner/commands/task/task-set.js +5 -10
- package/dist/m365/planner/commands.js +0 -2
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -11
- package/dist/m365/spfx/commands/package/package-generate.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +47 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +48 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0-beta.1.js +61 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
- package/dist/m365/spo/commands/app/app-add.js +7 -7
- package/dist/m365/spo/commands/app/app-deploy.js +11 -14
- package/dist/m365/spo/commands/app/app-get.js +11 -14
- package/dist/m365/spo/commands/app/app-install.js +6 -6
- package/dist/m365/spo/commands/app/app-list.js +7 -7
- package/dist/m365/spo/commands/app/app-remove.js +7 -7
- package/dist/m365/spo/commands/app/app-retract.js +7 -7
- package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
- package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
- package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +4 -7
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +5 -14
- package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
- package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
- package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
- package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
- package/dist/m365/spo/commands/feature/feature-list.js +3 -3
- package/dist/m365/spo/commands/field/field-get.js +1 -7
- package/dist/m365/spo/commands/field/field-remove.js +1 -7
- package/dist/m365/spo/commands/file/file-checkin.js +8 -11
- package/dist/m365/spo/commands/file/file-checkout.js +8 -11
- package/dist/m365/spo/commands/file/file-get.js +4 -7
- package/dist/m365/spo/commands/file/file-remove.js +4 -7
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +16 -19
- package/dist/m365/spo/commands/folder/folder-get.js +2 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
- package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
- package/dist/m365/spo/commands/group/group-remove.js +4 -7
- package/dist/m365/spo/commands/group/group-user-add.js +4 -13
- package/dist/m365/spo/commands/group/group-user-list.js +4 -7
- package/dist/m365/spo/commands/group/group-user-remove.js +4 -7
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -7
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +1 -1
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
- package/dist/m365/spo/commands/list/list-contenttype-add.js +8 -11
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +4 -7
- package/dist/m365/spo/commands/list/list-contenttype-list.js +4 -7
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +10 -13
- package/dist/m365/spo/commands/list/list-get.js +4 -7
- package/dist/m365/spo/commands/list/list-label-get.js +4 -7
- package/dist/m365/spo/commands/list/list-label-set.js +4 -4
- package/dist/m365/spo/commands/list/list-list.js +3 -13
- package/dist/m365/spo/commands/list/list-remove.js +4 -7
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +9 -0
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +57 -28
- package/dist/m365/spo/commands/list/list-sitescript-get.js +4 -7
- package/dist/m365/spo/commands/list/list-view-field-add.js +23 -38
- package/dist/m365/spo/commands/list/list-view-field-remove.js +14 -29
- package/dist/m365/spo/commands/list/list-view-field-set.js +18 -33
- package/dist/m365/spo/commands/list/list-view-get.js +12 -18
- package/dist/m365/spo/commands/list/list-view-list.js +4 -7
- package/dist/m365/spo/commands/list/list-view-remove.js +14 -23
- package/dist/m365/spo/commands/list/list-view-set.js +14 -23
- package/dist/m365/spo/commands/list/list-webhook-add.js +4 -7
- package/dist/m365/spo/commands/list/list-webhook-get.js +4 -7
- package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -7
- package/dist/m365/spo/commands/list/list-webhook-set.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-add.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-get.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-list.js +6 -25
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +8 -11
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +8 -11
- package/dist/m365/spo/commands/listitem/listitem-remove.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +206 -0
- package/dist/m365/spo/commands/listitem/listitem-set.js +4 -7
- package/dist/m365/spo/commands/page/page-column-get.js +2 -2
- package/dist/m365/spo/commands/page/page-column-list.js +2 -2
- package/dist/m365/spo/commands/page/page-control-get.js +4 -4
- package/dist/m365/spo/commands/page/page-control-list.js +3 -3
- package/dist/m365/spo/commands/page/page-control-set.js +3 -3
- package/dist/m365/spo/commands/page/page-section-add.js +2 -2
- package/dist/m365/spo/commands/page/page-section-get.js +2 -2
- package/dist/m365/spo/commands/page/page-section-list.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
- package/dist/m365/spo/commands/site/site-apppermission-add.js +4 -4
- package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +8 -13
- package/dist/m365/spo/commands/site/site-apppermission-set.js +8 -8
- package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
- package/dist/m365/spo/commands/site/site-ensure.js +1 -1
- package/dist/m365/spo/commands/site/site-groupify.js +3 -3
- package/dist/m365/spo/commands/site/site-list.js +6 -17
- package/dist/m365/spo/commands/site/site-rename.js +9 -9
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
- package/dist/m365/spo/commands/term/term-add.js +4 -7
- package/dist/m365/spo/commands/term/term-get.js +4 -7
- package/dist/m365/spo/commands/term/term-group-get.js +4 -7
- package/dist/m365/spo/commands/term/term-list.js +4 -13
- package/dist/m365/spo/commands/term/term-set-add.js +4 -7
- package/dist/m365/spo/commands/term/term-set-get.js +4 -13
- package/dist/m365/spo/commands/term/term-set-list.js +4 -7
- package/dist/m365/spo/commands/user/user-get.js +4 -9
- package/dist/m365/spo/commands/user/user-remove.js +4 -7
- package/dist/m365/spo/commands/web/web-add.js +5 -5
- package/dist/m365/spo/commands/web/web-get.js +3 -3
- package/dist/m365/spo/commands/web/web-list.js +4 -4
- package/dist/m365/spo/commands/web/web-reindex.js +8 -8
- package/dist/m365/spo/commands/web/web-remove.js +5 -5
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +187 -0
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +170 -0
- package/dist/m365/spo/commands/web/web-set.js +4 -4
- package/dist/m365/spo/commands.js +3 -3
- package/dist/m365/teams/commands/app/app-install.js +8 -15
- package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
- package/dist/m365/teams/commands/app/app-update.js +4 -7
- package/dist/m365/teams/commands/channel/channel-add.js +4 -7
- package/dist/m365/teams/commands/channel/channel-get.js +13 -31
- package/dist/m365/teams/commands/channel/channel-list.js +4 -7
- package/dist/m365/teams/commands/channel/channel-member-list.js +4 -13
- package/dist/m365/teams/commands/channel/channel-member-set.js +4 -21
- package/dist/m365/teams/commands/channel/channel-remove.js +15 -18
- package/dist/m365/teams/commands/channel/channel-set.js +7 -7
- package/dist/m365/teams/commands/chat/chat-get.js +4 -17
- package/dist/m365/teams/commands/chat/chat-message-send.js +4 -17
- package/dist/m365/teams/commands/message/message-get.js +3 -3
- package/dist/m365/teams/commands/tab/tab-get.js +13 -28
- package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
- package/dist/m365/teams/commands/team/team-archive.js +3 -13
- package/dist/m365/teams/commands/team/team-clone.js +3 -20
- package/dist/m365/teams/commands/team/team-get.js +4 -7
- package/dist/m365/teams/commands/team/team-remove.js +5 -17
- package/dist/m365/teams/commands/team/team-set.js +1 -13
- package/dist/m365/teams/commands/team/team-unarchive.js +4 -16
- package/dist/m365/teams/commands/user/user-app-add.js +4 -4
- package/dist/m365/teams/commands/user/user-app-list.js +4 -7
- package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
- package/dist/m365/todo/commands/list/list-remove.js +4 -21
- package/dist/m365/todo/commands/list/list-set.js +4 -21
- package/dist/m365/todo/commands/task/task-add.js +4 -21
- package/dist/m365/todo/commands/task/task-list.js +4 -21
- package/dist/m365/todo/commands/task/task-remove.js +4 -21
- package/dist/m365/todo/commands/task/task-set.js +4 -7
- package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
- package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
- package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
- package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
- package/dist/m365/yammer/commands/user/user-get.js +5 -5
- package/dist/settingsNames.js +0 -1
- package/docs/docs/cmd/aad/app/app-remove.md +0 -6
- package/docs/docs/cmd/aad/app/app-role-remove.md +0 -6
- package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
- package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
- package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
- package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
- package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +0 -20
- package/docs/docs/cmd/flow/flow-disable.md +3 -3
- package/docs/docs/cmd/flow/flow-enable.md +1 -1
- package/docs/docs/cmd/flow/flow-export.md +5 -5
- package/docs/docs/cmd/flow/flow-get.md +3 -3
- package/docs/docs/cmd/flow/flow-list.md +3 -3
- package/docs/docs/cmd/flow/flow-remove.md +5 -5
- package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
- package/docs/docs/cmd/flow/run/run-get.md +3 -3
- package/docs/docs/cmd/flow/run/run-list.md +3 -3
- package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
- package/docs/docs/cmd/onenote/notebook/notebook-list.md +70 -0
- package/docs/docs/cmd/outlook/message/message-move.md +4 -4
- package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
- package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
- package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
- package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
- package/docs/docs/cmd/planner/plan/plan-get.md +0 -6
- package/docs/docs/cmd/planner/task/task-add.md +0 -3
- package/docs/docs/cmd/planner/task/task-get.md +0 -3
- package/docs/docs/cmd/planner/task/task-list.md +0 -3
- package/docs/docs/cmd/planner/task/task-set.md +0 -3
- package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/app/app-add.md +2 -2
- package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
- package/docs/docs/cmd/spo/app/app-get.md +2 -2
- package/docs/docs/cmd/spo/app/app-install.md +2 -2
- package/docs/docs/cmd/spo/app/app-list.md +2 -2
- package/docs/docs/cmd/spo/app/app-remove.md +2 -2
- package/docs/docs/cmd/spo/app/app-retract.md +2 -2
- package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
- package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
- package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-add.md +10 -10
- package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
- package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
- package/docs/docs/cmd/spo/customaction/customaction-set.md +7 -7
- package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
- package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
- package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
- package/docs/docs/cmd/spo/field/field-get.md +0 -3
- package/docs/docs/cmd/spo/field/field-remove.md +0 -3
- package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
- package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
- package/docs/docs/cmd/spo/folder/folder-get.md +2 -2
- package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
- package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +2 -2
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +3 -3
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +3 -3
- package/docs/docs/cmd/spo/list/list-list.md +0 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +3 -0
- package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
- package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-set.md +7 -7
- package/docs/docs/cmd/spo/listitem/listitem-list.md +0 -6
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +5 -5
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +3 -3
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +67 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +6 -6
- package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-set.md +4 -4
- package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
- package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
- package/docs/docs/cmd/spo/site/site-groupify.md +5 -5
- package/docs/docs/cmd/spo/site/site-list.md +6 -6
- package/docs/docs/cmd/spo/site/site-rename.md +6 -6
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
- package/docs/docs/cmd/spo/web/web-add.md +4 -4
- package/docs/docs/cmd/spo/web/web-get.md +3 -3
- package/docs/docs/cmd/spo/web/web-list.md +2 -2
- package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
- package/docs/docs/cmd/spo/web/web-remove.md +2 -2
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +57 -0
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +54 -0
- package/docs/docs/cmd/spo/web/web-set.md +9 -9
- package/docs/docs/cmd/teams/app/app-install.md +5 -5
- package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
- package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
- package/docs/docs/cmd/teams/message/message-get.md +3 -3
- package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
- package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
- package/docs/docs/cmd/teams/team/team-archive.md +0 -3
- package/docs/docs/cmd/teams/team/team-clone.md +0 -3
- package/docs/docs/cmd/teams/team/team-remove.md +0 -3
- package/docs/docs/cmd/teams/team/team-set.md +0 -3
- package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
- package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
- package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
- package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
- package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
- package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
- package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
- package/docs/docs/cmd/yammer/user/user-get.md +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/scripts/Register-CLIM365Completion.ps1 +1 -1
- package/dist/m365/spo/commands/site/site-classic-add.js +0 -342
- package/dist/m365/spo/commands/site/site-classic-list.js +0 -106
- package/dist/m365/spo/commands/site/site-classic-set.js +0 -367
- package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
- package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
- package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemAttachmentListCommand_instances, _SpoListItemAttachmentListCommand_initTelemetry, _SpoListItemAttachmentListCommand_initOptions, _SpoListItemAttachmentListCommand_initValidators;
|
|
16
|
+
var _SpoListItemAttachmentListCommand_instances, _SpoListItemAttachmentListCommand_initTelemetry, _SpoListItemAttachmentListCommand_initOptions, _SpoListItemAttachmentListCommand_initValidators, _SpoListItemAttachmentListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoListItemAttachmentListCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListItemAttachmentListCommand_instances, "m", _SpoListItemAttachmentListCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.LISTITEM_ATTACHMENT_LIST;
|
|
@@ -88,12 +89,6 @@ _SpoListItemAttachmentListCommand_instances = new WeakSet(), _SpoListItemAttachm
|
|
|
88
89
|
if (isValidSharePointUrl !== true) {
|
|
89
90
|
return isValidSharePointUrl;
|
|
90
91
|
}
|
|
91
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
92
|
-
return `Specify listId or listTitle`;
|
|
93
|
-
}
|
|
94
|
-
if (args.options.listId && args.options.listTitle) {
|
|
95
|
-
return `Specify listId or listTitle but not both`;
|
|
96
|
-
}
|
|
97
92
|
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
98
93
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
99
94
|
}
|
|
@@ -102,6 +97,8 @@ _SpoListItemAttachmentListCommand_instances = new WeakSet(), _SpoListItemAttachm
|
|
|
102
97
|
}
|
|
103
98
|
return true;
|
|
104
99
|
}));
|
|
100
|
+
}, _SpoListItemAttachmentListCommand_initOptionSets = function _SpoListItemAttachmentListCommand_initOptionSets() {
|
|
101
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
105
102
|
};
|
|
106
103
|
module.exports = new SpoListItemAttachmentListCommand();
|
|
107
104
|
//# sourceMappingURL=listitem-attachment-list.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemGetCommand_instances, _SpoListItemGetCommand_initTelemetry, _SpoListItemGetCommand_initOptions, _SpoListItemGetCommand_initValidators, _SpoListItemGetCommand_initTypes;
|
|
16
|
+
var _SpoListItemGetCommand_instances, _SpoListItemGetCommand_initTelemetry, _SpoListItemGetCommand_initOptions, _SpoListItemGetCommand_initValidators, _SpoListItemGetCommand_initTypes, _SpoListItemGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -27,6 +27,7 @@ class SpoListItemGetCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initTypes).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListItemGetCommand_instances, "m", _SpoListItemGetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
allowUnknownOptions() {
|
|
32
33
|
return true;
|
|
@@ -89,12 +90,6 @@ _SpoListItemGetCommand_instances = new WeakSet(), _SpoListItemGetCommand_initTel
|
|
|
89
90
|
if (isValidSharePointUrl !== true) {
|
|
90
91
|
return isValidSharePointUrl;
|
|
91
92
|
}
|
|
92
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
93
|
-
return `Specify listId or listTitle`;
|
|
94
|
-
}
|
|
95
|
-
if (args.options.listId && args.options.listTitle) {
|
|
96
|
-
return `Specify listId or listTitle but not both`;
|
|
97
|
-
}
|
|
98
93
|
if (args.options.listId &&
|
|
99
94
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
100
95
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
@@ -106,6 +101,8 @@ _SpoListItemGetCommand_instances = new WeakSet(), _SpoListItemGetCommand_initTel
|
|
|
106
101
|
}));
|
|
107
102
|
}, _SpoListItemGetCommand_initTypes = function _SpoListItemGetCommand_initTypes() {
|
|
108
103
|
this.types.string.push('webUrl', 'listId', 'listTitle', 'id', 'properties');
|
|
104
|
+
}, _SpoListItemGetCommand_initOptionSets = function _SpoListItemGetCommand_initOptionSets() {
|
|
105
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
109
106
|
};
|
|
110
107
|
module.exports = new SpoListItemGetCommand();
|
|
111
108
|
//# sourceMappingURL=listitem-get.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemIsRecordCommand_instances, _SpoListItemIsRecordCommand_initTelemetry, _SpoListItemIsRecordCommand_initOptions, _SpoListItemIsRecordCommand_initValidators;
|
|
16
|
+
var _SpoListItemIsRecordCommand_instances, _SpoListItemIsRecordCommand_initTelemetry, _SpoListItemIsRecordCommand_initOptions, _SpoListItemIsRecordCommand_initValidators, _SpoListItemIsRecordCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Auth_1 = require("../../../../Auth");
|
|
19
19
|
const Command_1 = require("../../../../Command");
|
|
@@ -29,6 +29,7 @@ class SpoListItemIsRecordCommand extends SpoCommand_1.default {
|
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initTelemetry).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initOptions).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _SpoListItemIsRecordCommand_instances, "m", _SpoListItemIsRecordCommand_initOptionSets).call(this);
|
|
32
33
|
}
|
|
33
34
|
get name() {
|
|
34
35
|
return commands_1.default.LISTITEM_ISRECORD;
|
|
@@ -148,18 +149,14 @@ _SpoListItemIsRecordCommand_instances = new WeakSet(), _SpoListItemIsRecordComma
|
|
|
148
149
|
if (isValidSharePointUrl !== true) {
|
|
149
150
|
return isValidSharePointUrl;
|
|
150
151
|
}
|
|
151
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
152
|
-
return `Specify listId or listTitle`;
|
|
153
|
-
}
|
|
154
|
-
if (args.options.listId && args.options.listTitle) {
|
|
155
|
-
return `Specify listId or listTitle but not both`;
|
|
156
|
-
}
|
|
157
152
|
if (args.options.listId &&
|
|
158
153
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
159
154
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
160
155
|
}
|
|
161
156
|
return true;
|
|
162
157
|
}));
|
|
158
|
+
}, _SpoListItemIsRecordCommand_initOptionSets = function _SpoListItemIsRecordCommand_initOptionSets() {
|
|
159
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
163
160
|
};
|
|
164
161
|
module.exports = new SpoListItemIsRecordCommand();
|
|
165
162
|
//# sourceMappingURL=listitem-isrecord.js.map
|
|
@@ -35,14 +35,8 @@ class SpoListItemListCommand extends SpoCommand_1.default {
|
|
|
35
35
|
return 'Gets a list of items from the specified list';
|
|
36
36
|
}
|
|
37
37
|
commandAction(logger, args, cb) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
if (args.options.title) {
|
|
42
|
-
this.warn(logger, `Option 'title' is deprecated. Please use 'listTitle' instead.`);
|
|
43
|
-
}
|
|
44
|
-
const listIdArgument = args.options.listId || args.options.id || '';
|
|
45
|
-
const listTitleArgument = args.options.listTitle || args.options.title || '';
|
|
38
|
+
const listIdArgument = args.options.listId || '';
|
|
39
|
+
const listTitleArgument = args.options.listTitle || '';
|
|
46
40
|
let formDigestValue = '';
|
|
47
41
|
const fieldsArray = args.options.fields ? args.options.fields.split(",")
|
|
48
42
|
: (!args.options.output || args.options.output === "text") ? ["Title", "Id"] : [];
|
|
@@ -120,10 +114,8 @@ class SpoListItemListCommand extends SpoCommand_1.default {
|
|
|
120
114
|
_SpoListItemListCommand_instances = new WeakSet(), _SpoListItemListCommand_initTelemetry = function _SpoListItemListCommand_initTelemetry() {
|
|
121
115
|
this.telemetry.push((args) => {
|
|
122
116
|
Object.assign(this.telemetryProperties, {
|
|
123
|
-
id: typeof args.options.id !== 'undefined',
|
|
124
117
|
listId: typeof args.options.listId !== 'undefined',
|
|
125
118
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
126
|
-
title: typeof args.options.title !== 'undefined',
|
|
127
119
|
fields: typeof args.options.fields !== 'undefined',
|
|
128
120
|
filter: typeof args.options.filter !== 'undefined',
|
|
129
121
|
pageNumber: typeof args.options.pageNumber !== 'undefined',
|
|
@@ -134,10 +126,6 @@ _SpoListItemListCommand_instances = new WeakSet(), _SpoListItemListCommand_initT
|
|
|
134
126
|
}, _SpoListItemListCommand_initOptions = function _SpoListItemListCommand_initOptions() {
|
|
135
127
|
this.options.unshift({
|
|
136
128
|
option: '-u, --webUrl <webUrl>'
|
|
137
|
-
}, {
|
|
138
|
-
option: '--id [id]'
|
|
139
|
-
}, {
|
|
140
|
-
option: '--title [title]'
|
|
141
129
|
}, {
|
|
142
130
|
option: '-i, --listId [listId]'
|
|
143
131
|
}, {
|
|
@@ -159,15 +147,11 @@ _SpoListItemListCommand_instances = new WeakSet(), _SpoListItemListCommand_initT
|
|
|
159
147
|
if (isValidSharePointUrl !== true) {
|
|
160
148
|
return isValidSharePointUrl;
|
|
161
149
|
}
|
|
162
|
-
if (!args.options.
|
|
150
|
+
if (!args.options.listId && !args.options.listTitle) {
|
|
163
151
|
return `Specify listId or listTitle`;
|
|
164
152
|
}
|
|
165
|
-
if (args.options.
|
|
166
|
-
return `Specify
|
|
167
|
-
}
|
|
168
|
-
// Check if only one of the 4 options is specified
|
|
169
|
-
if ([args.options.id, args.options.title, args.options.listId, args.options.listTitle].filter(o => o).length > 1) {
|
|
170
|
-
return 'Specify listId or listTitle but not both';
|
|
153
|
+
if (args.options.listId && args.options.listTitle) {
|
|
154
|
+
return `Specify listId or listTitle but not both`;
|
|
171
155
|
}
|
|
172
156
|
if (args.options.camlQuery && args.options.fields) {
|
|
173
157
|
return `Specify camlQuery or fields but not both`;
|
|
@@ -190,13 +174,10 @@ _SpoListItemListCommand_instances = new WeakSet(), _SpoListItemListCommand_initT
|
|
|
190
174
|
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
191
175
|
return `${args.options.listId} is not a valid GUID`;
|
|
192
176
|
}
|
|
193
|
-
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
194
|
-
return `${args.options.id} in option id is not a valid GUID`;
|
|
195
|
-
}
|
|
196
177
|
return true;
|
|
197
178
|
}));
|
|
198
179
|
}, _SpoListItemListCommand_initTypes = function _SpoListItemListCommand_initTypes() {
|
|
199
|
-
this.types.string.push('webUrl', '
|
|
180
|
+
this.types.string.push('webUrl', 'camlQuery', 'pageSize', 'pageNumber', 'fields', 'filter');
|
|
200
181
|
};
|
|
201
182
|
module.exports = new SpoListItemListCommand();
|
|
202
183
|
//# sourceMappingURL=listitem-list.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemRecordDeclareCommand_instances, _SpoListItemRecordDeclareCommand_initTelemetry, _SpoListItemRecordDeclareCommand_initOptions, _SpoListItemRecordDeclareCommand_initValidators;
|
|
16
|
+
var _SpoListItemRecordDeclareCommand_instances, _SpoListItemRecordDeclareCommand_initTelemetry, _SpoListItemRecordDeclareCommand_initOptions, _SpoListItemRecordDeclareCommand_initValidators, _SpoListItemRecordDeclareCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const config_1 = require("../../../../config");
|
|
@@ -28,6 +28,7 @@ class SpoListItemRecordDeclareCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoListItemRecordDeclareCommand_instances, "m", _SpoListItemRecordDeclareCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.LISTITEM_RECORD_DECLARE;
|
|
@@ -64,7 +65,7 @@ class SpoListItemRecordDeclareCommand extends SpoCommand_1.default {
|
|
|
64
65
|
})
|
|
65
66
|
.then((res) => {
|
|
66
67
|
listId = res.Id;
|
|
67
|
-
const requestBody = this.getDeclareRecordRequestBody(webIdentity, listId, args.options.
|
|
68
|
+
const requestBody = this.getDeclareRecordRequestBody(webIdentity, listId, args.options.listItemId, args.options.date || '');
|
|
68
69
|
const requestOptions = {
|
|
69
70
|
url: `${args.options.webUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
70
71
|
headers: {
|
|
@@ -115,7 +116,7 @@ _SpoListItemRecordDeclareCommand_instances = new WeakSet(), _SpoListItemRecordDe
|
|
|
115
116
|
}, {
|
|
116
117
|
option: '-t, --listTitle [listTitle]'
|
|
117
118
|
}, {
|
|
118
|
-
option: '-i, --
|
|
119
|
+
option: '-i, --listItemId <listItemId>'
|
|
119
120
|
}, {
|
|
120
121
|
option: '-d, --date [date]'
|
|
121
122
|
});
|
|
@@ -125,18 +126,12 @@ _SpoListItemRecordDeclareCommand_instances = new WeakSet(), _SpoListItemRecordDe
|
|
|
125
126
|
if (isValidSharePointUrl !== true) {
|
|
126
127
|
return isValidSharePointUrl;
|
|
127
128
|
}
|
|
128
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
129
|
-
return `Specify listId or listTitle`;
|
|
130
|
-
}
|
|
131
|
-
if (args.options.listId && args.options.listTitle) {
|
|
132
|
-
return `Specify listId or listTitle but not both`;
|
|
133
|
-
}
|
|
134
129
|
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
135
130
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
136
131
|
}
|
|
137
|
-
const id = parseInt(args.options.
|
|
132
|
+
const id = parseInt(args.options.listItemId);
|
|
138
133
|
if (isNaN(id)) {
|
|
139
|
-
return `${args.options.
|
|
134
|
+
return `${args.options.listItemId} is not a number`;
|
|
140
135
|
}
|
|
141
136
|
if (id < 1) {
|
|
142
137
|
return `Item ID must be a positive number`;
|
|
@@ -146,6 +141,8 @@ _SpoListItemRecordDeclareCommand_instances = new WeakSet(), _SpoListItemRecordDe
|
|
|
146
141
|
}
|
|
147
142
|
return true;
|
|
148
143
|
}));
|
|
144
|
+
}, _SpoListItemRecordDeclareCommand_initOptionSets = function _SpoListItemRecordDeclareCommand_initOptionSets() {
|
|
145
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
149
146
|
};
|
|
150
147
|
module.exports = new SpoListItemRecordDeclareCommand();
|
|
151
148
|
//# sourceMappingURL=listitem-record-declare.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemRecordUndeclareCommand_instances, _SpoListItemRecordUndeclareCommand_initTelemetry, _SpoListItemRecordUndeclareCommand_initOptions, _SpoListItemRecordUndeclareCommand_initValidators;
|
|
16
|
+
var _SpoListItemRecordUndeclareCommand_instances, _SpoListItemRecordUndeclareCommand_initTelemetry, _SpoListItemRecordUndeclareCommand_initOptions, _SpoListItemRecordUndeclareCommand_initValidators, _SpoListItemRecordUndeclareCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const config_1 = require("../../../../config");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoListItemRecordUndeclareCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListItemRecordUndeclareCommand_instances, "m", _SpoListItemRecordUndeclareCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LISTITEM_RECORD_UNDECLARE;
|
|
@@ -79,7 +80,7 @@ class SpoListItemRecordUndeclareCommand extends SpoCommand_1.default {
|
|
|
79
80
|
'Content-Type': 'text/xml',
|
|
80
81
|
'X-RequestDigest': formDigestValue
|
|
81
82
|
},
|
|
82
|
-
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><StaticMethod TypeId="{ea8e1356-5910-4e69-bc05-d0c30ed657fc}" Name="UndeclareItemAsRecord" Id="53"><Parameters><Parameter ObjectPathId="49" /></Parameters></StaticMethod></Actions><ObjectPaths><Identity Id="49" Name="${objectIdentity.objectIdentity}:list:${environmentListId}:item:${args.options.
|
|
83
|
+
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config_1.default.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><StaticMethod TypeId="{ea8e1356-5910-4e69-bc05-d0c30ed657fc}" Name="UndeclareItemAsRecord" Id="53"><Parameters><Parameter ObjectPathId="49" /></Parameters></StaticMethod></Actions><ObjectPaths><Identity Id="49" Name="${objectIdentity.objectIdentity}:list:${environmentListId}:item:${args.options.listItemId},1" /></ObjectPaths></Request>`
|
|
83
84
|
};
|
|
84
85
|
return request_1.default.post(requestOptions);
|
|
85
86
|
})
|
|
@@ -100,7 +101,7 @@ _SpoListItemRecordUndeclareCommand_instances = new WeakSet(), _SpoListItemRecord
|
|
|
100
101
|
this.options.unshift({
|
|
101
102
|
option: '-u, --webUrl <webUrl>'
|
|
102
103
|
}, {
|
|
103
|
-
option: '-i, --
|
|
104
|
+
option: '-i, --listItemId <listItemId>'
|
|
104
105
|
}, {
|
|
105
106
|
option: '-l, --listId [listId]'
|
|
106
107
|
}, {
|
|
@@ -108,26 +109,22 @@ _SpoListItemRecordUndeclareCommand_instances = new WeakSet(), _SpoListItemRecord
|
|
|
108
109
|
});
|
|
109
110
|
}, _SpoListItemRecordUndeclareCommand_initValidators = function _SpoListItemRecordUndeclareCommand_initValidators() {
|
|
110
111
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
111
|
-
const id = parseInt(args.options.
|
|
112
|
+
const id = parseInt(args.options.listItemId);
|
|
112
113
|
if (isNaN(id)) {
|
|
113
|
-
return `${args.options.
|
|
114
|
+
return `${args.options.listItemId} is not a valid list item ID`;
|
|
114
115
|
}
|
|
115
116
|
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
116
117
|
if (isValidSharePointUrl !== true) {
|
|
117
118
|
return isValidSharePointUrl;
|
|
118
119
|
}
|
|
119
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
120
|
-
return `Specify listId or listTitle`;
|
|
121
|
-
}
|
|
122
|
-
if (args.options.listId && args.options.listTitle) {
|
|
123
|
-
return `Specify listId or listTitle but not both`;
|
|
124
|
-
}
|
|
125
120
|
if (args.options.listId &&
|
|
126
121
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
127
122
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
128
123
|
}
|
|
129
124
|
return true;
|
|
130
125
|
}));
|
|
126
|
+
}, _SpoListItemRecordUndeclareCommand_initOptionSets = function _SpoListItemRecordUndeclareCommand_initOptionSets() {
|
|
127
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
131
128
|
};
|
|
132
129
|
module.exports = new SpoListItemRecordUndeclareCommand();
|
|
133
130
|
//# sourceMappingURL=listitem-record-undeclare.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemRemoveCommand_instances, _SpoListItemRemoveCommand_initTelemetry, _SpoListItemRemoveCommand_initOptions, _SpoListItemRemoveCommand_initValidators;
|
|
16
|
+
var _SpoListItemRemoveCommand_instances, _SpoListItemRemoveCommand_initTelemetry, _SpoListItemRemoveCommand_initOptions, _SpoListItemRemoveCommand_initValidators, _SpoListItemRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoListItemRemoveCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListItemRemoveCommand_instances, "m", _SpoListItemRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LISTITEM_REMOVE;
|
|
@@ -124,14 +125,10 @@ _SpoListItemRemoveCommand_instances = new WeakSet(), _SpoListItemRemoveCommand_i
|
|
|
124
125
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
125
126
|
return `${args.options.listId} is not a valid GUID`;
|
|
126
127
|
}
|
|
127
|
-
if (args.options.listId && args.options.listTitle) {
|
|
128
|
-
return 'Specify id or title, but not both';
|
|
129
|
-
}
|
|
130
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
131
|
-
return 'Specify id or title';
|
|
132
|
-
}
|
|
133
128
|
return true;
|
|
134
129
|
}));
|
|
130
|
+
}, _SpoListItemRemoveCommand_initOptionSets = function _SpoListItemRemoveCommand_initOptionSets() {
|
|
131
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
135
132
|
};
|
|
136
133
|
module.exports = new SpoListItemRemoveCommand();
|
|
137
134
|
//# sourceMappingURL=listitem-remove.js.map
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _SpoListItemRoleAssignmentRemoveCommand_instances, _SpoListItemRoleAssignmentRemoveCommand_initTelemetry, _SpoListItemRoleAssignmentRemoveCommand_initOptions, _SpoListItemRoleAssignmentRemoveCommand_initValidators;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const cli_1 = require("../../../../cli");
|
|
19
|
+
const request_1 = require("../../../../request");
|
|
20
|
+
const utils_1 = require("../../../../utils");
|
|
21
|
+
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
22
|
+
const commands_1 = require("../../commands");
|
|
23
|
+
const SpoUserGetCommand = require("../user/user-get");
|
|
24
|
+
const SpoGroupGetCommand = require("../group/group-get");
|
|
25
|
+
class SpoListItemRoleAssignmentRemoveCommand extends SpoCommand_1.default {
|
|
26
|
+
constructor() {
|
|
27
|
+
super();
|
|
28
|
+
_SpoListItemRoleAssignmentRemoveCommand_instances.add(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListItemRoleAssignmentRemoveCommand_instances, "m", _SpoListItemRoleAssignmentRemoveCommand_initTelemetry).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListItemRoleAssignmentRemoveCommand_instances, "m", _SpoListItemRoleAssignmentRemoveCommand_initOptions).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoListItemRoleAssignmentRemoveCommand_instances, "m", _SpoListItemRoleAssignmentRemoveCommand_initValidators).call(this);
|
|
32
|
+
}
|
|
33
|
+
get name() {
|
|
34
|
+
return commands_1.default.LISTITEM_ROLEASSIGNMENT_REMOVE;
|
|
35
|
+
}
|
|
36
|
+
get description() {
|
|
37
|
+
return 'Removes a role assignment from list item permissions';
|
|
38
|
+
}
|
|
39
|
+
commandAction(logger, args, cb) {
|
|
40
|
+
const removeRoleAssignment = () => {
|
|
41
|
+
if (this.verbose) {
|
|
42
|
+
logger.logToStderr(`Removing role assignment from listitem in site at ${args.options.webUrl}...`);
|
|
43
|
+
}
|
|
44
|
+
let requestUrl = `${args.options.webUrl}/_api/web/`;
|
|
45
|
+
if (args.options.listId) {
|
|
46
|
+
requestUrl += `lists(guid'${utils_1.formatting.encodeQueryParameter(args.options.listId)}')/`;
|
|
47
|
+
}
|
|
48
|
+
else if (args.options.listTitle) {
|
|
49
|
+
requestUrl += `lists/getByTitle('${utils_1.formatting.encodeQueryParameter(args.options.listTitle)}')/`;
|
|
50
|
+
}
|
|
51
|
+
else if (args.options.listUrl) {
|
|
52
|
+
const listServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
53
|
+
requestUrl += `GetList('${utils_1.formatting.encodeQueryParameter(listServerRelativeUrl)}')/`;
|
|
54
|
+
}
|
|
55
|
+
requestUrl += `items(${args.options.listItemId})/`;
|
|
56
|
+
if (args.options.upn) {
|
|
57
|
+
this.GetUserPrincipalId(args.options)
|
|
58
|
+
.then((userPrincipalId) => {
|
|
59
|
+
args.options.principalId = userPrincipalId;
|
|
60
|
+
this.RemoveRoleAssignment(requestUrl, logger, args.options, cb);
|
|
61
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
62
|
+
}
|
|
63
|
+
else if (args.options.groupName) {
|
|
64
|
+
this.GetGroupPrincipalId(args.options)
|
|
65
|
+
.then((groupPrincipalId) => {
|
|
66
|
+
args.options.principalId = groupPrincipalId;
|
|
67
|
+
this.RemoveRoleAssignment(requestUrl, logger, args.options, cb);
|
|
68
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this.RemoveRoleAssignment(requestUrl, logger, args.options, cb);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
if (args.options.confirm) {
|
|
75
|
+
removeRoleAssignment();
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
cli_1.Cli.prompt({
|
|
79
|
+
type: 'confirm',
|
|
80
|
+
name: 'continue',
|
|
81
|
+
default: false,
|
|
82
|
+
message: `Are you sure you want to remove role assignment from listitem ${args.options.listItemId} from list ${args.options.listId || args.options.listTitle} from site ${args.options.webUrl}?`
|
|
83
|
+
}, (result) => {
|
|
84
|
+
if (!result.continue) {
|
|
85
|
+
cb();
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
removeRoleAssignment();
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
RemoveRoleAssignment(requestUrl, logger, options, cb) {
|
|
94
|
+
const requestOptions = {
|
|
95
|
+
url: `${requestUrl}roleassignments/removeroleassignment(principalid='${options.principalId}')`,
|
|
96
|
+
method: 'POST',
|
|
97
|
+
headers: {
|
|
98
|
+
'accept': 'application/json;odata=nometadata',
|
|
99
|
+
'content-type': 'application/json'
|
|
100
|
+
},
|
|
101
|
+
responseType: 'json'
|
|
102
|
+
};
|
|
103
|
+
request_1.default
|
|
104
|
+
.post(requestOptions)
|
|
105
|
+
.then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
106
|
+
}
|
|
107
|
+
GetGroupPrincipalId(options) {
|
|
108
|
+
const groupGetCommandOptions = {
|
|
109
|
+
webUrl: options.webUrl,
|
|
110
|
+
name: options.groupName,
|
|
111
|
+
output: 'json',
|
|
112
|
+
debug: this.debug,
|
|
113
|
+
verbose: this.verbose
|
|
114
|
+
};
|
|
115
|
+
return cli_1.Cli.executeCommandWithOutput(SpoGroupGetCommand, { options: Object.assign(Object.assign({}, groupGetCommandOptions), { _: [] }) })
|
|
116
|
+
.then((output) => {
|
|
117
|
+
const getGroupOutput = JSON.parse(output.stdout);
|
|
118
|
+
return Promise.resolve(getGroupOutput.Id);
|
|
119
|
+
}, (err) => {
|
|
120
|
+
return Promise.reject(err);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
GetUserPrincipalId(options) {
|
|
124
|
+
const userGetCommandOptions = {
|
|
125
|
+
webUrl: options.webUrl,
|
|
126
|
+
email: options.upn,
|
|
127
|
+
id: undefined,
|
|
128
|
+
output: 'json',
|
|
129
|
+
debug: this.debug,
|
|
130
|
+
verbose: this.verbose
|
|
131
|
+
};
|
|
132
|
+
return cli_1.Cli.executeCommandWithOutput(SpoUserGetCommand, { options: Object.assign(Object.assign({}, userGetCommandOptions), { _: [] }) })
|
|
133
|
+
.then((output) => {
|
|
134
|
+
const getUserOutput = JSON.parse(output.stdout);
|
|
135
|
+
return Promise.resolve(getUserOutput.Id);
|
|
136
|
+
}, (err) => {
|
|
137
|
+
return Promise.reject(err);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
_SpoListItemRoleAssignmentRemoveCommand_instances = new WeakSet(), _SpoListItemRoleAssignmentRemoveCommand_initTelemetry = function _SpoListItemRoleAssignmentRemoveCommand_initTelemetry() {
|
|
142
|
+
this.telemetry.push((args) => {
|
|
143
|
+
Object.assign(this.telemetryProperties, {
|
|
144
|
+
listId: typeof args.options.listId !== 'undefined',
|
|
145
|
+
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
146
|
+
listUrl: typeof args.options.listUrl !== 'undefined',
|
|
147
|
+
principalId: typeof args.options.principalId !== 'undefined',
|
|
148
|
+
upn: typeof args.options.upn !== 'undefined',
|
|
149
|
+
groupName: typeof args.options.groupName !== 'undefined',
|
|
150
|
+
confirm: (!(!args.options.confirm)).toString()
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
}, _SpoListItemRoleAssignmentRemoveCommand_initOptions = function _SpoListItemRoleAssignmentRemoveCommand_initOptions() {
|
|
154
|
+
this.options.unshift({
|
|
155
|
+
option: '-u, --webUrl <webUrl>'
|
|
156
|
+
}, {
|
|
157
|
+
option: '-i, --listId [listId]'
|
|
158
|
+
}, {
|
|
159
|
+
option: '-t, --listTitle [listTitle]'
|
|
160
|
+
}, {
|
|
161
|
+
option: '--listUrl [listUrl]'
|
|
162
|
+
}, {
|
|
163
|
+
option: '--listItemId <listItemId>'
|
|
164
|
+
}, {
|
|
165
|
+
option: '--principalId [principalId]'
|
|
166
|
+
}, {
|
|
167
|
+
option: '--upn [upn]'
|
|
168
|
+
}, {
|
|
169
|
+
option: '--groupName [groupName]'
|
|
170
|
+
}, {
|
|
171
|
+
option: '--confirm'
|
|
172
|
+
});
|
|
173
|
+
}, _SpoListItemRoleAssignmentRemoveCommand_initValidators = function _SpoListItemRoleAssignmentRemoveCommand_initValidators() {
|
|
174
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
176
|
+
if (isValidSharePointUrl !== true) {
|
|
177
|
+
return isValidSharePointUrl;
|
|
178
|
+
}
|
|
179
|
+
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
180
|
+
return `${args.options.listId} is not a valid GUID`;
|
|
181
|
+
}
|
|
182
|
+
if (args.options.listItemId && isNaN(args.options.listItemId)) {
|
|
183
|
+
return `Specified listItemId ${args.options.listItemId} is not a number`;
|
|
184
|
+
}
|
|
185
|
+
if (args.options.principalId && isNaN(args.options.principalId)) {
|
|
186
|
+
return `Specified principalId ${args.options.principalId} is not a number`;
|
|
187
|
+
}
|
|
188
|
+
const listOptions = [args.options.listId, args.options.listTitle, args.options.listUrl];
|
|
189
|
+
if (listOptions.some(item => item !== undefined) && listOptions.filter(item => item !== undefined).length > 1) {
|
|
190
|
+
return `Specify either list id or title or list url`;
|
|
191
|
+
}
|
|
192
|
+
if (listOptions.filter(item => item !== undefined).length === 0) {
|
|
193
|
+
return `Specify at least list id or title or list url`;
|
|
194
|
+
}
|
|
195
|
+
const principalOptions = [args.options.principalId, args.options.upn, args.options.groupName];
|
|
196
|
+
if (principalOptions.some(item => item !== undefined) && principalOptions.filter(item => item !== undefined).length > 1) {
|
|
197
|
+
return `Specify either principalId id or upn or groupName`;
|
|
198
|
+
}
|
|
199
|
+
if (principalOptions.filter(item => item !== undefined).length === 0) {
|
|
200
|
+
return `Specify at least principalId id or upn or groupName`;
|
|
201
|
+
}
|
|
202
|
+
return true;
|
|
203
|
+
}));
|
|
204
|
+
};
|
|
205
|
+
module.exports = new SpoListItemRoleAssignmentRemoveCommand();
|
|
206
|
+
//# sourceMappingURL=listitem-roleassignment-remove.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoListItemSetCommand_instances, _SpoListItemSetCommand_initTelemetry, _SpoListItemSetCommand_initOptions, _SpoListItemSetCommand_initValidators, _SpoListItemSetCommand_initTypes;
|
|
16
|
+
var _SpoListItemSetCommand_instances, _SpoListItemSetCommand_initTelemetry, _SpoListItemSetCommand_initOptions, _SpoListItemSetCommand_initValidators, _SpoListItemSetCommand_initTypes, _SpoListItemSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const config_1 = require("../../../../config");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -28,6 +28,7 @@ class SpoListItemSetCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListItemSetCommand_instances, "m", _SpoListItemSetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListItemSetCommand_instances, "m", _SpoListItemSetCommand_initValidators).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoListItemSetCommand_instances, "m", _SpoListItemSetCommand_initTypes).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoListItemSetCommand_instances, "m", _SpoListItemSetCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
allowUnknownOptions() {
|
|
33
34
|
return true;
|
|
@@ -320,12 +321,6 @@ _SpoListItemSetCommand_instances = new WeakSet(), _SpoListItemSetCommand_initTel
|
|
|
320
321
|
if (isValidSharePointUrl !== true) {
|
|
321
322
|
return isValidSharePointUrl;
|
|
322
323
|
}
|
|
323
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
324
|
-
return `Specify listId or listTitle`;
|
|
325
|
-
}
|
|
326
|
-
if (args.options.listId && args.options.listTitle) {
|
|
327
|
-
return `Specify listId or listTitle but not both`;
|
|
328
|
-
}
|
|
329
324
|
if (args.options.listId &&
|
|
330
325
|
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
331
326
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
@@ -335,6 +330,8 @@ _SpoListItemSetCommand_instances = new WeakSet(), _SpoListItemSetCommand_initTel
|
|
|
335
330
|
}, _SpoListItemSetCommand_initTypes = function _SpoListItemSetCommand_initTypes() {
|
|
336
331
|
this.types.string.push('webUrl', 'listId', 'listTitle', 'id', 'contentType');
|
|
337
332
|
this.types.boolean.push('systemUpdate');
|
|
333
|
+
}, _SpoListItemSetCommand_initOptionSets = function _SpoListItemSetCommand_initOptionSets() {
|
|
334
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
338
335
|
};
|
|
339
336
|
module.exports = new SpoListItemSetCommand();
|
|
340
337
|
//# sourceMappingURL=listitem-set.js.map
|
|
@@ -34,7 +34,7 @@ class SpoPageColumnGetCommand extends SpoCommand_1.default {
|
|
|
34
34
|
}
|
|
35
35
|
commandAction(logger, args, cb) {
|
|
36
36
|
Page_1.Page
|
|
37
|
-
.getPage(args.options.
|
|
37
|
+
.getPage(args.options.pageName, args.options.webUrl, logger, this.debug, this.verbose)
|
|
38
38
|
.then((clientSidePage) => {
|
|
39
39
|
const sections = clientSidePage.sections
|
|
40
40
|
.filter(section => section.order === args.options.section);
|
|
@@ -61,7 +61,7 @@ _SpoPageColumnGetCommand_instances = new WeakSet(), _SpoPageColumnGetCommand_ini
|
|
|
61
61
|
this.options.unshift({
|
|
62
62
|
option: '-u, --webUrl <webUrl>'
|
|
63
63
|
}, {
|
|
64
|
-
option: '-n, --
|
|
64
|
+
option: '-n, --pageName <pageName>'
|
|
65
65
|
}, {
|
|
66
66
|
option: '-s, --section <section>'
|
|
67
67
|
}, {
|
|
@@ -34,7 +34,7 @@ class SpoPageColumnListCommand extends SpoCommand_1.default {
|
|
|
34
34
|
}
|
|
35
35
|
commandAction(logger, args, cb) {
|
|
36
36
|
Page_1.Page
|
|
37
|
-
.getPage(args.options.
|
|
37
|
+
.getPage(args.options.pageName, args.options.webUrl, logger, this.debug, this.verbose)
|
|
38
38
|
.then((clientSidePage) => {
|
|
39
39
|
const sections = clientSidePage.sections
|
|
40
40
|
.filter(section => section.order === args.options.section);
|
|
@@ -54,7 +54,7 @@ _SpoPageColumnListCommand_instances = new WeakSet(), _SpoPageColumnListCommand_i
|
|
|
54
54
|
this.options.unshift({
|
|
55
55
|
option: '-u, --webUrl <webUrl>'
|
|
56
56
|
}, {
|
|
57
|
-
option: '-n, --
|
|
57
|
+
option: '-n, --pageName <pageName>'
|
|
58
58
|
}, {
|
|
59
59
|
option: '-s, --section <sectionId>'
|
|
60
60
|
});
|