@pnp/cli-microsoft365 5.0.0 → 5.1.0-beta.efe1dcb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/Cli.js +3 -3
- package/dist/m365/aad/commands/app/app-add.js +11 -11
- package/dist/m365/aad/commands/app/app-delete.js +3 -3
- package/dist/m365/aad/commands/app/app-get.js +3 -3
- package/dist/m365/aad/commands/app/app-role-delete.js +2 -2
- package/dist/m365/aad/commands/app/app-role-list.js +6 -5
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -3
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -4
- package/dist/m365/aad/commands/group/group-list.js +8 -7
- package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +7 -6
- package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +2 -2
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +8 -8
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -6
- package/dist/m365/aad/commands/o365group/o365group-add.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +8 -8
- package/dist/m365/aad/commands/o365group/o365group-get.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-list.js +15 -12
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +8 -7
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +7 -6
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-remove.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-renew.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-set.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-user-list.js +21 -15
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +23 -17
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +3 -3
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -2
- package/dist/m365/aad/commands/sp/sp-add.js +3 -3
- package/dist/m365/aad/commands/sp/sp-get.js +3 -3
- package/dist/m365/aad/commands/user/user-get.js +2 -2
- package/dist/m365/aad/commands/user/user-hibp.js +2 -2
- package/dist/m365/aad/commands/user/user-list.js +7 -6
- package/dist/m365/aad/commands/user/user-set.js +2 -2
- package/dist/m365/base/AppCommand.js +2 -2
- package/dist/m365/base/SpoCommand.js +0 -260
- package/dist/m365/cli/commands/cli-doctor.js +2 -2
- package/dist/m365/commands/status.js +3 -3
- package/dist/m365/file/commands/file-add.js +3 -3
- package/dist/m365/file/commands/file-list.js +14 -12
- package/dist/m365/flow/commands/flow-export.js +2 -2
- package/dist/m365/flow/commands/flow-remove.js +2 -2
- package/dist/m365/flow/commands/run/run-cancel.js +2 -2
- package/dist/m365/flow/commands/run/run-resubmit.js +2 -2
- package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +2 -2
- package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +2 -2
- package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +2 -2
- package/dist/m365/graph/commands/subscription/subscription-add.js +2 -2
- package/dist/m365/onedrive/commands/onedrive-list.js +3 -2
- package/dist/m365/outlook/commands/message/message-list.js +6 -5
- package/dist/m365/outlook/commands/room/room-list.js +7 -6
- package/dist/m365/outlook/commands/roomlist/roomlist-list.js +7 -6
- package/dist/m365/pa/commands/app/app-get.js +2 -2
- package/dist/m365/pa/commands/app/app-remove.js +2 -2
- package/dist/m365/pa/commands/pcf/pcf-init.js +4 -4
- package/dist/m365/pa/commands/solution/solution-init.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +7 -7
- package/dist/m365/planner/commands/plan/plan-add.js +2 -2
- package/dist/m365/planner/commands/plan/plan-details-get.js +134 -0
- package/dist/m365/planner/commands/plan/plan-get.js +7 -7
- package/dist/m365/planner/commands/plan/plan-list.js +2 -2
- package/dist/m365/planner/commands/task/task-add.js +6 -6
- package/dist/m365/planner/commands/task/task-details-get.js +2 -2
- package/dist/m365/planner/commands/task/task-list.js +23 -23
- package/dist/m365/planner/commands/task/task-set.js +6 -6
- package/dist/m365/planner/commands.js +1 -0
- package/dist/m365/spfx/commands/package/package-generate.js +4 -4
- package/dist/m365/spfx/commands/project/base-project-command.js +18 -19
- package/dist/m365/spfx/commands/project/project-upgrade/index.js +0 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001005_DEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001006_DEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001008_DEP_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001009_DEP_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001015_DEP_types_react_addons_shallow_compare.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001016_DEP_types_react_addons_update.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001017_DEP_types_react_addons_update.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001019_DEP_knockout.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001020_DEP_types_knockout.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002015_DEVDEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN020001_RES_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022001_SCSS_remove_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022002_SCSS_add_fabric_react.js +2 -2
- package/dist/m365/spo/commands/app/app-add.js +3 -2
- package/dist/m365/spo/commands/app/app-deploy.js +4 -4
- package/dist/m365/spo/commands/app/app-get.js +4 -4
- package/dist/m365/spo/commands/app/app-install.js +3 -3
- package/dist/m365/spo/commands/app/app-instance-list.js +2 -1
- package/dist/m365/spo/commands/app/app-list.js +3 -2
- package/dist/m365/spo/commands/app/app-remove.js +4 -5
- package/dist/m365/spo/commands/app/app-retract.js +4 -5
- package/dist/m365/spo/commands/app/app-uninstall.js +3 -3
- package/dist/m365/spo/commands/app/app-upgrade.js +3 -3
- package/dist/m365/spo/commands/apppage/apppage-add.js +2 -2
- package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
- package/dist/m365/spo/commands/cdn/cdn-get.js +4 -3
- package/dist/m365/spo/commands/cdn/cdn-origin-add.js +5 -5
- package/dist/m365/spo/commands/cdn/cdn-origin-list.js +4 -3
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +5 -5
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +4 -3
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +5 -5
- package/dist/m365/spo/commands/cdn/cdn-set.js +3 -2
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +6 -6
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +6 -6
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +6 -6
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +2 -1
- package/dist/m365/spo/commands/contenttypehub/contenttypehub-get.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-clear.js +2 -1
- package/dist/m365/spo/commands/customaction/customaction-get.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-list.js +2 -1
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-set.js +4 -4
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +6 -6
- package/dist/m365/spo/commands/feature/feature-enable.js +2 -1
- package/dist/m365/spo/commands/feature/feature-list.js +2 -1
- package/dist/m365/spo/commands/field/field-add.js +3 -2
- package/dist/m365/spo/commands/field/field-get.js +5 -5
- package/dist/m365/spo/commands/field/field-remove.js +5 -5
- package/dist/m365/spo/commands/field/field-set.js +10 -10
- package/dist/m365/spo/commands/file/file-add.js +5 -7
- package/dist/m365/spo/commands/file/file-checkin.js +3 -3
- package/dist/m365/spo/commands/file/file-checkout.js +3 -3
- package/dist/m365/spo/commands/file/file-copy.js +18 -7
- package/dist/m365/spo/commands/file/file-get.js +3 -3
- package/dist/m365/spo/commands/file/file-list.js +3 -3
- package/dist/m365/spo/commands/file/file-move.js +18 -7
- package/dist/m365/spo/commands/file/file-remove.js +3 -3
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +3 -3
- package/dist/m365/spo/commands/folder/folder-add.js +3 -3
- package/dist/m365/spo/commands/folder/folder-copy.js +16 -5
- package/dist/m365/spo/commands/folder/folder-get.js +3 -3
- package/dist/m365/spo/commands/folder/folder-list.js +3 -3
- package/dist/m365/spo/commands/folder/folder-move.js +16 -5
- package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
- package/dist/m365/spo/commands/folder/folder-rename.js +6 -8
- package/dist/m365/spo/commands/group/group-get.js +2 -1
- package/dist/m365/spo/commands/group/group-list.js +2 -1
- package/dist/m365/spo/commands/group/group-remove.js +2 -1
- package/dist/m365/spo/commands/group/group-user-add.js +2 -1
- package/dist/m365/spo/commands/group/group-user-list.js +2 -1
- package/dist/m365/spo/commands/group/group-user-remove.js +2 -1
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +2 -1
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +2 -1
- package/dist/m365/spo/commands/homesite/homesite-get.js +2 -1
- package/dist/m365/spo/commands/homesite/homesite-remove.js +3 -2
- package/dist/m365/spo/commands/homesite/homesite-set.js +5 -5
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +2 -1
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +3 -2
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +3 -3
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +2 -1
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +3 -2
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +8 -8
- package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +2 -1
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +3 -2
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-get.js +3 -2
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +3 -2
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +5 -5
- package/dist/m365/spo/commands/list/list-add.js +5 -5
- package/dist/m365/spo/commands/list/list-contenttype-add.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-list.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-get.js +3 -3
- package/dist/m365/spo/commands/list/list-label-get.js +4 -4
- package/dist/m365/spo/commands/list/list-label-set.js +5 -5
- package/dist/m365/spo/commands/list/list-list.js +2 -1
- package/dist/m365/spo/commands/list/list-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-set.js +6 -6
- package/dist/m365/spo/commands/list/list-sitescript-get.js +4 -4
- package/dist/m365/spo/commands/list/list-view-field-add.js +5 -5
- package/dist/m365/spo/commands/list/list-view-field-remove.js +5 -5
- package/dist/m365/spo/commands/list/list-view-field-set.js +5 -5
- package/dist/m365/spo/commands/list/list-view-get.js +5 -5
- package/dist/m365/spo/commands/list/list-view-list.js +3 -3
- package/dist/m365/spo/commands/list/list-view-remove.js +4 -4
- package/dist/m365/spo/commands/list/list-view-set.js +5 -5
- package/dist/m365/spo/commands/list/list-webhook-add.js +3 -3
- package/dist/m365/spo/commands/list/list-webhook-get.js +4 -4
- package/dist/m365/spo/commands/list/list-webhook-list.js +4 -4
- package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -4
- package/dist/m365/spo/commands/list/list-webhook-set.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-add.js +5 -7
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-get.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +5 -7
- package/dist/m365/spo/commands/listitem/listitem-list.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +6 -8
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +5 -7
- package/dist/m365/spo/commands/listitem/listitem-remove.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-set.js +4 -4
- package/dist/m365/spo/commands/mail/mail-send.js +2 -1
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +2 -1
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +2 -1
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +3 -2
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +5 -4
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +3 -2
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +3 -2
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +3 -2
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +5 -5
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +5 -5
- package/dist/m365/spo/commands/page/Page.js +2 -2
- package/dist/m365/spo/commands/page/page-add.js +4 -4
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +3 -3
- package/dist/m365/spo/commands/page/page-column-get.js +2 -1
- package/dist/m365/spo/commands/page/page-column-list.js +2 -1
- package/dist/m365/spo/commands/page/page-control-get.js +3 -3
- package/dist/m365/spo/commands/page/page-control-list.js +2 -1
- package/dist/m365/spo/commands/page/page-control-set.js +3 -3
- package/dist/m365/spo/commands/page/page-copy.js +2 -1
- package/dist/m365/spo/commands/page/page-get.js +3 -3
- package/dist/m365/spo/commands/page/page-header-set.js +2 -1
- package/dist/m365/spo/commands/page/page-list.js +2 -1
- package/dist/m365/spo/commands/page/page-remove.js +4 -4
- package/dist/m365/spo/commands/page/page-section-add.js +2 -1
- package/dist/m365/spo/commands/page/page-section-get.js +2 -1
- package/dist/m365/spo/commands/page/page-section-list.js +2 -1
- package/dist/m365/spo/commands/page/page-set.js +4 -4
- package/dist/m365/spo/commands/page/page-template-list.js +2 -1
- package/dist/m365/spo/commands/page/page-text-add.js +4 -4
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +4 -4
- package/dist/m365/spo/commands/propertybag/propertybag-get.js +4 -6
- package/dist/m365/spo/commands/propertybag/propertybag-list.js +4 -6
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +6 -9
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +8 -10
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +3 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +5 -5
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +5 -5
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +3 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +3 -2
- package/dist/m365/spo/commands/site/site-add.js +36 -16
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +5 -5
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +5 -5
- package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -4
- package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-list.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +3 -4
- package/dist/m365/spo/commands/site/site-apppermission-set.js +3 -4
- package/dist/m365/spo/commands/site/site-chrome-set.js +2 -1
- package/dist/m365/spo/commands/site/site-classic-add.js +33 -13
- package/dist/m365/spo/commands/site/site-classic-list.js +4 -4
- package/dist/m365/spo/commands/site/site-classic-set.js +33 -13
- package/dist/m365/spo/commands/site/site-commsite-enable.js +6 -6
- package/dist/m365/spo/commands/site/site-ensure.js +2 -1
- package/dist/m365/spo/commands/site/site-get.js +2 -1
- package/dist/m365/spo/commands/site/site-groupify.js +2 -1
- package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +3 -3
- package/dist/m365/spo/commands/site/site-list.js +4 -4
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +2 -1
- package/dist/m365/spo/commands/site/site-remove.js +34 -14
- package/dist/m365/spo/commands/site/site-rename.js +3 -2
- package/dist/m365/spo/commands/site/site-set.js +12 -12
- package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-list.js +2 -1
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +4 -4
- 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 +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +2 -1
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +3 -3
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +3 -2
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +4 -4
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +3 -2
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +4 -4
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +4 -4
- package/dist/m365/spo/commands/spo-search.js +4 -4
- package/dist/m365/spo/commands/spo-set.js +2 -1
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -1
- package/dist/m365/spo/commands/storageentity/storageentity-list.js +2 -1
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +5 -5
- package/dist/m365/spo/commands/storageentity/storageentity-set.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +2 -1
- package/dist/m365/spo/commands/tenant/tenant-appcatalogurl-get.js +2 -1
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-list.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +16 -6
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +16 -6
- package/dist/m365/spo/commands/tenant/tenant-settings-list.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +5 -5
- package/dist/m365/spo/commands/term/term-add.js +13 -13
- package/dist/m365/spo/commands/term/term-get.js +9 -9
- package/dist/m365/spo/commands/term/term-group-add.js +6 -6
- package/dist/m365/spo/commands/term/term-group-get.js +5 -5
- package/dist/m365/spo/commands/term/term-group-list.js +3 -2
- package/dist/m365/spo/commands/term/term-list.js +7 -7
- package/dist/m365/spo/commands/term/term-set-add.js +9 -9
- package/dist/m365/spo/commands/term/term-set-get.js +7 -7
- package/dist/m365/spo/commands/term/term-set-list.js +5 -5
- package/dist/m365/spo/commands/theme/theme-apply.js +5 -5
- package/dist/m365/spo/commands/theme/theme-get.js +4 -4
- package/dist/m365/spo/commands/theme/theme-list.js +2 -1
- package/dist/m365/spo/commands/theme/theme-remove.js +2 -1
- package/dist/m365/spo/commands/theme/theme-set.js +5 -5
- package/dist/m365/spo/commands/user/user-get.js +2 -1
- package/dist/m365/spo/commands/user/user-list.js +2 -1
- package/dist/m365/spo/commands/user/user-remove.js +2 -1
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +3 -3
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +3 -2
- package/dist/m365/spo/commands/web/web-add.js +4 -3
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +2 -1
- package/dist/m365/spo/commands/web/web-get.js +2 -1
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +2 -1
- package/dist/m365/spo/commands/web/web-list.js +2 -1
- package/dist/m365/spo/commands/web/web-reindex.js +10 -11
- package/dist/m365/spo/commands/web/web-remove.js +2 -1
- package/dist/m365/spo/commands/web/web-set.js +2 -1
- package/dist/m365/teams/commands/app/app-install.js +4 -4
- package/dist/m365/teams/commands/app/app-list.js +8 -8
- package/dist/m365/teams/commands/app/app-remove.js +2 -2
- package/dist/m365/teams/commands/app/app-uninstall.js +2 -2
- package/dist/m365/teams/commands/app/app-update.js +2 -2
- package/dist/m365/teams/commands/channel/channel-add.js +2 -2
- package/dist/m365/teams/commands/channel/channel-get.js +3 -3
- package/dist/m365/teams/commands/channel/channel-list.js +7 -8
- package/dist/m365/teams/commands/channel/channel-remove.js +3 -3
- package/dist/m365/teams/commands/channel/channel-set.js +2 -2
- package/dist/m365/teams/commands/chat/chat-list.js +7 -6
- package/dist/m365/teams/commands/chat/chat-member-list.js +8 -8
- package/dist/m365/teams/commands/chat/chat-message-list.js +9 -9
- package/dist/m365/teams/commands/chat/chat-message-send.js +4 -4
- package/dist/m365/teams/commands/conversationmember/conversationmember-add.js +3 -3
- package/dist/m365/teams/commands/conversationmember/conversationmember-list.js +9 -9
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -2
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -2
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -2
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -2
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -2
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -2
- package/dist/m365/teams/commands/message/message-get.js +3 -3
- package/dist/m365/teams/commands/message/message-list.js +12 -12
- package/dist/m365/teams/commands/message/message-reply-list.js +10 -10
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -2
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +3 -3
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -3
- package/dist/m365/teams/commands/report/report-pstncalls.js +3 -3
- package/dist/m365/teams/commands/tab/tab-add.js +5 -5
- package/dist/m365/teams/commands/tab/tab-get.js +4 -4
- package/dist/m365/teams/commands/tab/tab-list.js +10 -10
- package/dist/m365/teams/commands/tab/tab-remove.js +4 -4
- package/dist/m365/teams/commands/team/team-archive.js +2 -2
- package/dist/m365/teams/commands/team/team-clone.js +2 -2
- package/dist/m365/teams/commands/team/team-get.js +2 -2
- package/dist/m365/teams/commands/team/team-list.js +10 -12
- package/dist/m365/teams/commands/team/team-remove.js +2 -2
- package/dist/m365/teams/commands/team/team-set.js +2 -2
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -2
- package/dist/m365/teams/commands/user/user-app-add.js +3 -3
- package/dist/m365/teams/commands/user/user-app-list.js +10 -10
- package/dist/m365/teams/commands/user/user-app-remove.js +2 -2
- package/dist/m365/teams/commands/user/user-list.js +14 -8
- package/dist/m365/tenant/commands/auditlog/auditlog-report.js +2 -2
- package/dist/m365/tenant/commands/id/id-get.js +2 -2
- package/dist/m365/tenant/commands/report/report-office365activationcounts.js +2 -2
- package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +2 -2
- package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +2 -2
- package/dist/m365/tenant/commands/service/service-list.js +2 -2
- package/dist/m365/tenant/commands/service/service-message-list.js +2 -2
- package/dist/m365/tenant/commands/service/service-report-historicalservicestatus.js +2 -2
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +7 -6
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +7 -6
- package/dist/m365/tenant/commands/status/status-list.js +2 -2
- package/dist/m365/todo/commands/list/list-list.js +7 -6
- package/dist/m365/todo/commands/task/task-list.js +7 -6
- package/dist/request.js +4 -4
- package/dist/utils/accessToken.js +44 -0
- package/dist/utils/formatting.js +66 -0
- package/dist/utils/fsUtil.js +36 -0
- package/dist/utils/index.js +22 -0
- package/dist/utils/odata.js +37 -0
- package/dist/utils/sinonUtil.js +19 -0
- package/dist/{m365/spfx/commands/project/project-upgrade/Utils.js → utils/spfx.js} +7 -19
- package/dist/utils/spo.js +432 -0
- package/dist/utils/urlUtil.js +174 -0
- package/dist/utils/validation.js +310 -0
- package/docs/docs/cmd/planner/plan/plan-details-get.md +45 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/dist/Utils.js +0 -575
- package/dist/m365/base/AzmgmtResponse.js +0 -3
- package/dist/m365/base/GraphItemsListCommand.js +0 -46
- package/dist/m365/base/GraphResponse.js +0 -3
- package/dist/m365/base/GraphResponseError.js +0 -3
- package/dist/m365/spo/ClientSvc.js +0 -128
- package/dist/m365/spo/FolderExtensions.js +0 -101
- package/dist/m365/spo/commands/site/SpoOperation.js +0 -3
- package/dist/m365/spo/spo.js +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
class SpoListLabelSetCommand extends SpoCommand_1.default {
|
|
@@ -25,7 +25,7 @@ class SpoListLabelSetCommand extends SpoCommand_1.default {
|
|
|
25
25
|
(() => {
|
|
26
26
|
let listRestUrl = '';
|
|
27
27
|
if (args.options.listUrl) {
|
|
28
|
-
const listServerRelativeUrl =
|
|
28
|
+
const listServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
29
29
|
return Promise.resolve(listServerRelativeUrl);
|
|
30
30
|
}
|
|
31
31
|
else if (args.options.listId) {
|
|
@@ -48,7 +48,7 @@ class SpoListLabelSetCommand extends SpoCommand_1.default {
|
|
|
48
48
|
});
|
|
49
49
|
})()
|
|
50
50
|
.then((listServerRelativeUrl) => {
|
|
51
|
-
const listAbsoluteUrl =
|
|
51
|
+
const listAbsoluteUrl = utils_1.urlUtil.getAbsoluteUrl(args.options.webUrl, listServerRelativeUrl);
|
|
52
52
|
const requestUrl = `${args.options.webUrl}/_api/SP_CompliancePolicy_SPPolicyStoreProxy_SetListComplianceTag`;
|
|
53
53
|
const requestOptions = {
|
|
54
54
|
url: requestUrl,
|
|
@@ -102,10 +102,10 @@ class SpoListLabelSetCommand extends SpoCommand_1.default {
|
|
|
102
102
|
if (!args.options.listId && !args.options.listTitle && !args.options.listUrl) {
|
|
103
103
|
return `Specify listId or listTitle or listUrl.`;
|
|
104
104
|
}
|
|
105
|
-
if (args.options.listId && !
|
|
105
|
+
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
106
106
|
return `${args.options.listId} is not a valid GUID`;
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
module.exports = new SpoListLabelSetCommand();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
4
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
5
6
|
const commands_1 = require("../../commands");
|
|
6
7
|
class SpoListListCommand extends SpoCommand_1.default {
|
|
@@ -45,7 +46,7 @@ class SpoListListCommand extends SpoCommand_1.default {
|
|
|
45
46
|
return options.concat(parentOptions);
|
|
46
47
|
}
|
|
47
48
|
validate(args) {
|
|
48
|
-
return
|
|
49
|
+
return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
module.exports = new SpoListListCommand();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const cli_1 = require("../../../../cli");
|
|
4
4
|
const request_1 = require("../../../../request");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../../../../utils");
|
|
6
6
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
7
7
|
const commands_1 = require("../../commands");
|
|
8
8
|
class SpoListRemoveCommand extends SpoCommand_1.default {
|
|
@@ -86,12 +86,12 @@ class SpoListRemoveCommand extends SpoCommand_1.default {
|
|
|
86
86
|
return options.concat(parentOptions);
|
|
87
87
|
}
|
|
88
88
|
validate(args) {
|
|
89
|
-
const isValidSharePointUrl =
|
|
89
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
90
90
|
if (isValidSharePointUrl !== true) {
|
|
91
91
|
return isValidSharePointUrl;
|
|
92
92
|
}
|
|
93
93
|
if (args.options.id &&
|
|
94
|
-
!
|
|
94
|
+
!utils_1.validation.isValidGuid(args.options.id)) {
|
|
95
95
|
return `${args.options.id} is not a valid GUID`;
|
|
96
96
|
}
|
|
97
97
|
if (args.options.id && args.options.title) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
const DraftVisibilityType_1 = require("./DraftVisibilityType");
|
|
@@ -362,26 +362,26 @@ class SpoListSetCommand extends SpoCommand_1.default {
|
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
validate(args) {
|
|
365
|
-
const isValidSharePointUrl =
|
|
365
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
366
366
|
if (isValidSharePointUrl !== true) {
|
|
367
367
|
return isValidSharePointUrl;
|
|
368
368
|
}
|
|
369
|
-
if (!
|
|
369
|
+
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
370
370
|
return `${args.options.id} is not a valid GUID`;
|
|
371
371
|
}
|
|
372
372
|
for (let i = 0; i < SpoListSetCommand.booleanOptions.length; i++) {
|
|
373
373
|
const option = SpoListSetCommand.booleanOptions[i];
|
|
374
374
|
const value = args.options[option];
|
|
375
|
-
if (value && !
|
|
375
|
+
if (value && !utils_1.validation.isValidBoolean(value)) {
|
|
376
376
|
return `${value} in option ${option} is not a valid boolean value`;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
if (args.options.templateFeatureId &&
|
|
380
|
-
!
|
|
380
|
+
!utils_1.validation.isValidGuid(args.options.templateFeatureId)) {
|
|
381
381
|
return `${args.options.templateFeatureId} in option templateFeatureId is not a valid GUID`;
|
|
382
382
|
}
|
|
383
383
|
if (args.options.defaultContentApprovalWorkflowId &&
|
|
384
|
-
!
|
|
384
|
+
!utils_1.validation.isValidGuid(args.options.defaultContentApprovalWorkflowId)) {
|
|
385
385
|
return `${args.options.defaultContentApprovalWorkflowId} in option defaultContentApprovalWorkflowId is not a valid GUID`;
|
|
386
386
|
}
|
|
387
387
|
if (args.options.direction &&
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const Command_1 = require("../../../../Command");
|
|
4
4
|
const request_1 = require("../../../../request");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../../../../utils");
|
|
6
6
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
7
7
|
const commands_1 = require("../../commands");
|
|
8
8
|
class SpoListSiteScriptGetCommand extends SpoCommand_1.default {
|
|
@@ -46,7 +46,7 @@ class SpoListSiteScriptGetCommand extends SpoCommand_1.default {
|
|
|
46
46
|
request_1.default
|
|
47
47
|
.get(requestOptions)
|
|
48
48
|
.then((listInstance) => {
|
|
49
|
-
const listAbsoluteUrl =
|
|
49
|
+
const listAbsoluteUrl = utils_1.urlUtil.getAbsoluteUrl(args.options.webUrl, listInstance.RootFolder.ServerRelativeUrl);
|
|
50
50
|
const requestUrl = `${args.options.webUrl}/_api/Microsoft_SharePoint_Utilities_WebTemplateExtensions_SiteScriptUtility_GetSiteScriptFromList`;
|
|
51
51
|
const requestOptions = {
|
|
52
52
|
url: requestUrl,
|
|
@@ -89,12 +89,12 @@ class SpoListSiteScriptGetCommand extends SpoCommand_1.default {
|
|
|
89
89
|
return options.concat(parentOptions);
|
|
90
90
|
}
|
|
91
91
|
validate(args) {
|
|
92
|
-
const isValidSharePointUrl =
|
|
92
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
93
93
|
if (isValidSharePointUrl !== true) {
|
|
94
94
|
return isValidSharePointUrl;
|
|
95
95
|
}
|
|
96
96
|
if (args.options.listId) {
|
|
97
|
-
if (!
|
|
97
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
98
98
|
return `${args.options.listId} is not a valid GUID`;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
class SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
@@ -120,22 +120,22 @@ class SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
|
120
120
|
return options.concat(parentOptions);
|
|
121
121
|
}
|
|
122
122
|
validate(args) {
|
|
123
|
-
const isValidSharePointUrl =
|
|
123
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
124
124
|
if (isValidSharePointUrl !== true) {
|
|
125
125
|
return isValidSharePointUrl;
|
|
126
126
|
}
|
|
127
127
|
if (args.options.listId) {
|
|
128
|
-
if (!
|
|
128
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
129
129
|
return `${args.options.listId} is not a valid GUID`;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
if (args.options.viewId) {
|
|
133
|
-
if (!
|
|
133
|
+
if (!utils_1.validation.isValidGuid(args.options.viewId)) {
|
|
134
134
|
return `${args.options.viewId} is not a valid GUID`;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
if (args.options.fieldId) {
|
|
138
|
-
if (!
|
|
138
|
+
if (!utils_1.validation.isValidGuid(args.options.fieldId)) {
|
|
139
139
|
return `${args.options.fieldId} is not a valid GUID`;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const cli_1 = require("../../../../cli");
|
|
4
4
|
const request_1 = require("../../../../request");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../../../../utils");
|
|
6
6
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
7
7
|
const commands_1 = require("../../commands");
|
|
8
8
|
class SpoListViewFieldRemoveCommand extends SpoCommand_1.default {
|
|
@@ -113,22 +113,22 @@ class SpoListViewFieldRemoveCommand extends SpoCommand_1.default {
|
|
|
113
113
|
return options.concat(parentOptions);
|
|
114
114
|
}
|
|
115
115
|
validate(args) {
|
|
116
|
-
const isValidSharePointUrl =
|
|
116
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
117
117
|
if (isValidSharePointUrl !== true) {
|
|
118
118
|
return isValidSharePointUrl;
|
|
119
119
|
}
|
|
120
120
|
if (args.options.listId) {
|
|
121
|
-
if (!
|
|
121
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
122
122
|
return `${args.options.listId} is not a valid GUID`;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
if (args.options.viewId) {
|
|
126
|
-
if (!
|
|
126
|
+
if (!utils_1.validation.isValidGuid(args.options.viewId)) {
|
|
127
127
|
return `${args.options.viewId} is not a valid GUID`;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
if (args.options.fieldId) {
|
|
131
|
-
if (!
|
|
131
|
+
if (!utils_1.validation.isValidGuid(args.options.fieldId)) {
|
|
132
132
|
return `${args.options.viewId} is not a valid GUID`;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
class SpoListViewFieldSetCommand extends SpoCommand_1.default {
|
|
@@ -92,22 +92,22 @@ class SpoListViewFieldSetCommand extends SpoCommand_1.default {
|
|
|
92
92
|
return options.concat(parentOptions);
|
|
93
93
|
}
|
|
94
94
|
validate(args) {
|
|
95
|
-
const isValidSharePointUrl =
|
|
95
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
96
96
|
if (isValidSharePointUrl !== true) {
|
|
97
97
|
return isValidSharePointUrl;
|
|
98
98
|
}
|
|
99
99
|
if (args.options.listId) {
|
|
100
|
-
if (!
|
|
100
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
101
101
|
return `${args.options.listId} is not a valid GUID`;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
if (args.options.viewId) {
|
|
105
|
-
if (!
|
|
105
|
+
if (!utils_1.validation.isValidGuid(args.options.viewId)) {
|
|
106
106
|
return `${args.options.viewId} is not a valid GUID`;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
if (args.options.fieldId) {
|
|
110
|
-
if (!
|
|
110
|
+
if (!utils_1.validation.isValidGuid(args.options.fieldId)) {
|
|
111
111
|
return `${args.options.fieldId} is not a valid GUID`;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
class SpoListViewGetCommand extends SpoCommand_1.default {
|
|
@@ -30,7 +30,7 @@ class SpoListViewGetCommand extends SpoCommand_1.default {
|
|
|
30
30
|
listRestUrl = `/lists/getByTitle('${encodeURIComponent(args.options.listTitle)}')`;
|
|
31
31
|
}
|
|
32
32
|
else if (args.options.listUrl) {
|
|
33
|
-
const listServerRelativeUrl =
|
|
33
|
+
const listServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
34
34
|
listRestUrl = `/GetList('${encodeURIComponent(listServerRelativeUrl)}')`;
|
|
35
35
|
}
|
|
36
36
|
const viewRestUrl = `/views/${(args.options.viewId ? `getById('${encodeURIComponent(args.options.viewId)}')` : `getByTitle('${encodeURIComponent(args.options.viewTitle)}')`)}`;
|
|
@@ -73,7 +73,7 @@ class SpoListViewGetCommand extends SpoCommand_1.default {
|
|
|
73
73
|
return options.concat(parentOptions);
|
|
74
74
|
}
|
|
75
75
|
validate(args) {
|
|
76
|
-
const isValidSharePointUrl =
|
|
76
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
77
77
|
if (isValidSharePointUrl !== true) {
|
|
78
78
|
return isValidSharePointUrl;
|
|
79
79
|
}
|
|
@@ -81,7 +81,7 @@ class SpoListViewGetCommand extends SpoCommand_1.default {
|
|
|
81
81
|
return `Specify listId, listTitle or listUrl`;
|
|
82
82
|
}
|
|
83
83
|
if (args.options.listId &&
|
|
84
|
-
!
|
|
84
|
+
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
85
85
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
86
86
|
}
|
|
87
87
|
if (!args.options.viewId && !args.options.viewTitle) {
|
|
@@ -91,7 +91,7 @@ class SpoListViewGetCommand extends SpoCommand_1.default {
|
|
|
91
91
|
return `Specify viewId or viewTitle but not both`;
|
|
92
92
|
}
|
|
93
93
|
if (args.options.viewId &&
|
|
94
|
-
!
|
|
94
|
+
!utils_1.validation.isValidGuid(args.options.viewId)) {
|
|
95
95
|
return `${args.options.viewId} in option viewId is not a valid GUID`;
|
|
96
96
|
}
|
|
97
97
|
return true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
class SpoListViewListCommand extends SpoCommand_1.default {
|
|
@@ -62,12 +62,12 @@ class SpoListViewListCommand extends SpoCommand_1.default {
|
|
|
62
62
|
return options.concat(parentOptions);
|
|
63
63
|
}
|
|
64
64
|
validate(args) {
|
|
65
|
-
const isValidSharePointUrl =
|
|
65
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
66
66
|
if (isValidSharePointUrl !== true) {
|
|
67
67
|
return isValidSharePointUrl;
|
|
68
68
|
}
|
|
69
69
|
if (args.options.listId) {
|
|
70
|
-
if (!
|
|
70
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
71
71
|
return `${args.options.listId} is not a valid GUID`;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const cli_1 = require("../../../../cli");
|
|
4
4
|
const request_1 = require("../../../../request");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../../../../utils");
|
|
6
6
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
7
7
|
const commands_1 = require("../../commands");
|
|
8
8
|
class SpoListViewRemoveCommand extends SpoCommand_1.default {
|
|
@@ -91,17 +91,17 @@ class SpoListViewRemoveCommand extends SpoCommand_1.default {
|
|
|
91
91
|
return options.concat(parentOptions);
|
|
92
92
|
}
|
|
93
93
|
validate(args) {
|
|
94
|
-
const isValidSharePointUrl =
|
|
94
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
95
95
|
if (isValidSharePointUrl !== true) {
|
|
96
96
|
return isValidSharePointUrl;
|
|
97
97
|
}
|
|
98
98
|
if (args.options.listId) {
|
|
99
|
-
if (!
|
|
99
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
100
100
|
return `${args.options.listId} is not a valid GUID`;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
if (args.options.viewId) {
|
|
104
|
-
if (!
|
|
104
|
+
if (!utils_1.validation.isValidGuid(args.options.viewId)) {
|
|
105
105
|
return `${args.options.viewId} is not a valid GUID`;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
class SpoListViewSetCommand extends SpoCommand_1.default {
|
|
@@ -28,7 +28,7 @@ class SpoListViewSetCommand extends SpoCommand_1.default {
|
|
|
28
28
|
`(guid'${encodeURIComponent(args.options.listId)}')`
|
|
29
29
|
: `/getByTitle('${encodeURIComponent(args.options.listTitle)}')`;
|
|
30
30
|
const viewRestUrl = `/views/${(args.options.viewId ? `getById('${encodeURIComponent(args.options.viewId)}')` : `getByTitle('${encodeURIComponent(args.options.viewTitle)}')`)}`;
|
|
31
|
-
|
|
31
|
+
utils_1.spo
|
|
32
32
|
.getRequestDigest(args.options.webUrl)
|
|
33
33
|
.then((res) => {
|
|
34
34
|
const requestOptions = {
|
|
@@ -86,7 +86,7 @@ class SpoListViewSetCommand extends SpoCommand_1.default {
|
|
|
86
86
|
return options.concat(parentOptions);
|
|
87
87
|
}
|
|
88
88
|
validate(args) {
|
|
89
|
-
const isValidSharePointUrl =
|
|
89
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
90
90
|
if (isValidSharePointUrl !== true) {
|
|
91
91
|
return isValidSharePointUrl;
|
|
92
92
|
}
|
|
@@ -97,7 +97,7 @@ class SpoListViewSetCommand extends SpoCommand_1.default {
|
|
|
97
97
|
return `Specify listId or listTitle but not both`;
|
|
98
98
|
}
|
|
99
99
|
if (args.options.listId &&
|
|
100
|
-
!
|
|
100
|
+
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
101
101
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
102
102
|
}
|
|
103
103
|
if (!args.options.viewId && !args.options.viewTitle) {
|
|
@@ -107,7 +107,7 @@ class SpoListViewSetCommand extends SpoCommand_1.default {
|
|
|
107
107
|
return `Specify viewId or viewTitle but not both`;
|
|
108
108
|
}
|
|
109
109
|
if (args.options.viewId &&
|
|
110
|
-
!
|
|
110
|
+
!utils_1.validation.isValidGuid(args.options.viewId)) {
|
|
111
111
|
return `${args.options.viewId} in option viewId is not a valid GUID`;
|
|
112
112
|
}
|
|
113
113
|
return true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
const expirationDateTimeMaxDays = 180;
|
|
@@ -88,12 +88,12 @@ class SpoListWebhookAddCommand extends SpoCommand_1.default {
|
|
|
88
88
|
return options.concat(parentOptions);
|
|
89
89
|
}
|
|
90
90
|
validate(args) {
|
|
91
|
-
const isValidSharePointUrl =
|
|
91
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
92
92
|
if (isValidSharePointUrl !== true) {
|
|
93
93
|
return isValidSharePointUrl;
|
|
94
94
|
}
|
|
95
95
|
if (args.options.listId) {
|
|
96
|
-
if (!
|
|
96
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
97
97
|
return `${args.options.listId} is not a valid GUID`;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
class SpoListWebhookGetCommand extends SpoCommand_1.default {
|
|
@@ -69,15 +69,15 @@ class SpoListWebhookGetCommand extends SpoCommand_1.default {
|
|
|
69
69
|
return options.concat(parentOptions);
|
|
70
70
|
}
|
|
71
71
|
validate(args) {
|
|
72
|
-
if (!
|
|
72
|
+
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
73
73
|
return `${args.options.id} is not a valid GUID`;
|
|
74
74
|
}
|
|
75
|
-
const isValidSharePointUrl =
|
|
75
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
76
76
|
if (isValidSharePointUrl !== true) {
|
|
77
77
|
return isValidSharePointUrl;
|
|
78
78
|
}
|
|
79
79
|
if (args.options.listId) {
|
|
80
|
-
if (!
|
|
80
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
81
81
|
return `${args.options.listId} is not a valid GUID`;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const chalk = require("chalk");
|
|
4
4
|
const request_1 = require("../../../../request");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../../../../utils");
|
|
6
6
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
7
7
|
const commands_1 = require("../../commands");
|
|
8
8
|
class SpoListWebhookListCommand extends SpoCommand_1.default {
|
|
@@ -94,17 +94,17 @@ class SpoListWebhookListCommand extends SpoCommand_1.default {
|
|
|
94
94
|
return options.concat(parentOptions);
|
|
95
95
|
}
|
|
96
96
|
validate(args) {
|
|
97
|
-
const isValidSharePointUrl =
|
|
97
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
98
98
|
if (isValidSharePointUrl !== true) {
|
|
99
99
|
return isValidSharePointUrl;
|
|
100
100
|
}
|
|
101
101
|
if (args.options.id) {
|
|
102
|
-
if (!
|
|
102
|
+
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
103
103
|
return `${args.options.id} is not a valid GUID`;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
if (args.options.listId) {
|
|
107
|
-
if (!
|
|
107
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
108
108
|
return `${args.options.listId} is not a valid GUID`;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const cli_1 = require("../../../../cli");
|
|
4
4
|
const request_1 = require("../../../../request");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../../../../utils");
|
|
6
6
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
7
7
|
const commands_1 = require("../../commands");
|
|
8
8
|
class SpoListWebhookRemoveCommand extends SpoCommand_1.default {
|
|
@@ -91,15 +91,15 @@ class SpoListWebhookRemoveCommand extends SpoCommand_1.default {
|
|
|
91
91
|
return options.concat(parentOptions);
|
|
92
92
|
}
|
|
93
93
|
validate(args) {
|
|
94
|
-
if (!
|
|
94
|
+
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
95
95
|
return `${args.options.id} is not a valid GUID`;
|
|
96
96
|
}
|
|
97
|
-
const isValidSharePointUrl =
|
|
97
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
98
98
|
if (isValidSharePointUrl !== true) {
|
|
99
99
|
return isValidSharePointUrl;
|
|
100
100
|
}
|
|
101
101
|
if (args.options.listId) {
|
|
102
|
-
if (!
|
|
102
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
103
103
|
return `${args.options.listId} is not a valid GUID`;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const chalk = require("chalk");
|
|
4
4
|
const request_1 = require("../../../../request");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../../../../utils");
|
|
6
6
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
7
7
|
const commands_1 = require("../../commands");
|
|
8
8
|
class SpoListWebhookSetCommand extends SpoCommand_1.default {
|
|
@@ -81,15 +81,15 @@ class SpoListWebhookSetCommand extends SpoCommand_1.default {
|
|
|
81
81
|
return options.concat(parentOptions);
|
|
82
82
|
}
|
|
83
83
|
validate(args) {
|
|
84
|
-
if (!
|
|
84
|
+
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
85
85
|
return `${args.options.id} is not a valid GUID`;
|
|
86
86
|
}
|
|
87
|
-
const isValidSharePointUrl =
|
|
87
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
88
88
|
if (isValidSharePointUrl !== true) {
|
|
89
89
|
return isValidSharePointUrl;
|
|
90
90
|
}
|
|
91
91
|
if (args.options.listId) {
|
|
92
|
-
if (!
|
|
92
|
+
if (!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
93
93
|
return `${args.options.listId} is not a valid GUID`;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
|
-
const FolderExtensions_1 = require("../../FolderExtensions");
|
|
8
7
|
class SpoListItemAddCommand extends SpoCommand_1.default {
|
|
9
8
|
allowUnknownOptions() {
|
|
10
9
|
return true;
|
|
@@ -31,7 +30,6 @@ class SpoListItemAddCommand extends SpoCommand_1.default {
|
|
|
31
30
|
: `${args.options.webUrl}/_api/web/lists/getByTitle('${encodeURIComponent(listTitleArgument)}')`);
|
|
32
31
|
let contentTypeName = '';
|
|
33
32
|
let targetFolderServerRelativeUrl = '';
|
|
34
|
-
const folderExtensions = new FolderExtensions_1.FolderExtensions(logger, this.debug);
|
|
35
33
|
if (this.verbose) {
|
|
36
34
|
logger.logToStderr(`Getting content types for list...`);
|
|
37
35
|
}
|
|
@@ -82,8 +80,8 @@ class SpoListItemAddCommand extends SpoCommand_1.default {
|
|
|
82
80
|
return request_1.default
|
|
83
81
|
.get(requestOptions)
|
|
84
82
|
.then(rootFolderResponse => {
|
|
85
|
-
targetFolderServerRelativeUrl =
|
|
86
|
-
return
|
|
83
|
+
targetFolderServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(rootFolderResponse["ServerRelativeUrl"], args.options.folder);
|
|
84
|
+
return utils_1.spo.ensureFolder(args.options.webUrl, targetFolderServerRelativeUrl, logger, this.debug);
|
|
87
85
|
});
|
|
88
86
|
}
|
|
89
87
|
else {
|
|
@@ -184,7 +182,7 @@ class SpoListItemAddCommand extends SpoCommand_1.default {
|
|
|
184
182
|
};
|
|
185
183
|
}
|
|
186
184
|
validate(args) {
|
|
187
|
-
const isValidSharePointUrl =
|
|
185
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
188
186
|
if (isValidSharePointUrl !== true) {
|
|
189
187
|
return isValidSharePointUrl;
|
|
190
188
|
}
|
|
@@ -195,7 +193,7 @@ class SpoListItemAddCommand extends SpoCommand_1.default {
|
|
|
195
193
|
return `Specify listId or listTitle but not both`;
|
|
196
194
|
}
|
|
197
195
|
if (args.options.listId &&
|
|
198
|
-
!
|
|
196
|
+
!utils_1.validation.isValidGuid(args.options.listId)) {
|
|
199
197
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
200
198
|
}
|
|
201
199
|
return true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../../request");
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
5
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
6
|
const commands_1 = require("../../commands");
|
|
7
7
|
class SpoListItemAttachmentListCommand extends SpoCommand_1.default {
|
|
@@ -67,7 +67,7 @@ class SpoListItemAttachmentListCommand extends SpoCommand_1.default {
|
|
|
67
67
|
return options.concat(parentOptions);
|
|
68
68
|
}
|
|
69
69
|
validate(args) {
|
|
70
|
-
const isValidSharePointUrl =
|
|
70
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
71
71
|
if (isValidSharePointUrl !== true) {
|
|
72
72
|
return isValidSharePointUrl;
|
|
73
73
|
}
|
|
@@ -77,7 +77,7 @@ class SpoListItemAttachmentListCommand extends SpoCommand_1.default {
|
|
|
77
77
|
if (args.options.listId && args.options.listTitle) {
|
|
78
78
|
return `Specify listId or listTitle but not both`;
|
|
79
79
|
}
|
|
80
|
-
if (args.options.listId && !
|
|
80
|
+
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
81
81
|
return `${args.options.listId} in option listId is not a valid GUID`;
|
|
82
82
|
}
|
|
83
83
|
if (isNaN(parseInt(args.options.itemId))) {
|