@pnp/cli-microsoft365 6.0.0 → 6.1.0-beta.17b053d
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/.eslintrc.js +2 -0
- package/dist/Auth.js +3 -3
- package/dist/Command.js +98 -14
- package/dist/GlobalOptions.js +2 -0
- package/dist/auth/FileTokenStorage.js +3 -3
- package/dist/cli/Cli.js +67 -69
- package/dist/index.js +2 -5
- package/dist/m365/aad/commands/app/app-add.js +6 -6
- package/dist/m365/aad/commands/app/app-get.js +6 -6
- package/dist/m365/aad/commands/app/app-remove.js +6 -6
- package/dist/m365/aad/commands/app/app-role-add.js +6 -6
- package/dist/m365/aad/commands/app/app-role-list.js +6 -6
- package/dist/m365/aad/commands/app/app-role-remove.js +6 -6
- package/dist/m365/aad/commands/app/app-set.js +6 -6
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +6 -6
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +6 -6
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +6 -6
- package/dist/m365/aad/commands/group/group-list.js +6 -6
- package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +6 -6
- package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +6 -6
- package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +6 -6
- package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +6 -6
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-add.js +22 -15
- package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-get.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-remove.js +7 -7
- package/dist/m365/aad/commands/o365group/o365group-renew.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-set.js +14 -15
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +8 -8
- package/dist/m365/aad/commands/o365group/o365group-user-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +8 -8
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +8 -8
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +6 -6
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +6 -6
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +5 -5
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +5 -5
- package/dist/m365/aad/commands/policy/policy-list.js +6 -6
- package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +6 -6
- package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +6 -6
- package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +6 -6
- package/dist/m365/aad/commands/sp/sp-add.js +6 -6
- package/dist/m365/aad/commands/sp/sp-get.js +6 -6
- package/dist/m365/aad/commands/user/user-get.js +6 -6
- package/dist/m365/aad/commands/user/user-guest-add.js +6 -6
- package/dist/m365/aad/commands/user/user-hibp.js +6 -6
- package/dist/m365/aad/commands/user/user-list.js +6 -6
- package/dist/m365/aad/commands/user/user-password-validate.js +5 -5
- package/dist/m365/aad/commands/user/user-set.js +17 -13
- package/dist/m365/aad/commands/user/user-signin-list.js +6 -6
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +6 -6
- package/dist/m365/app/commands/app-open.js +6 -6
- package/dist/m365/base/AppCommand.js +3 -3
- package/dist/m365/booking/commands/business/business-get.js +7 -7
- package/dist/m365/cli/commands/cli-consent.js +6 -6
- package/dist/m365/cli/commands/cli-issue.js +6 -6
- package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +5 -5
- package/dist/m365/cli/commands/config/config-get.js +6 -6
- package/dist/m365/cli/commands/config/config-reset.js +6 -6
- package/dist/m365/cli/commands/config/config-set.js +8 -7
- package/dist/m365/commands/login.js +6 -6
- package/dist/m365/commands/request.js +8 -8
- package/dist/m365/file/commands/convert/convert-pdf.js +6 -6
- package/dist/m365/file/commands/file-add.js +6 -6
- package/dist/m365/file/commands/file-list.js +8 -8
- package/dist/m365/flow/commands/environment/environment-get.js +5 -5
- package/dist/m365/flow/commands/flow-disable.js +5 -5
- package/dist/m365/flow/commands/flow-enable.js +5 -5
- package/dist/m365/flow/commands/flow-export.js +6 -6
- package/dist/m365/flow/commands/flow-get.js +5 -5
- package/dist/m365/flow/commands/flow-list.js +6 -6
- package/dist/m365/flow/commands/flow-remove.js +6 -6
- package/dist/m365/flow/commands/run/run-cancel.js +6 -6
- package/dist/m365/flow/commands/run/run-get.js +5 -5
- package/dist/m365/flow/commands/run/run-list.js +5 -5
- package/dist/m365/flow/commands/run/run-resubmit.js +6 -6
- package/dist/m365/graph/commands/changelog/changelog-list.js +9 -9
- package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +6 -6
- package/dist/m365/graph/commands/schemaextension/schemaextension-get.js +5 -5
- package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +6 -6
- package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +6 -6
- package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +6 -6
- package/dist/m365/graph/commands/subscription/subscription-add.js +6 -6
- package/dist/m365/onenote/commands/notebook/notebook-list.js +6 -6
- package/dist/m365/outlook/commands/mail/mail-send.js +12 -12
- package/dist/m365/outlook/commands/message/message-get.js +6 -6
- package/dist/m365/outlook/commands/message/message-list.js +6 -6
- package/dist/m365/outlook/commands/message/message-move.js +6 -6
- package/dist/m365/outlook/commands/room/room-list.js +6 -6
- package/dist/m365/pa/cds-project-mutator.js +3 -3
- package/dist/m365/pa/commands/app/app-get.js +8 -8
- package/dist/m365/pa/commands/app/app-list.js +7 -7
- package/dist/m365/pa/commands/app/app-remove.js +6 -6
- package/dist/m365/pa/commands/connector/connector-export.js +7 -7
- package/dist/m365/pa/commands/connector/connector-list.js +5 -5
- package/dist/m365/pa/commands/environment/environment-get.js +5 -5
- package/dist/m365/pa/commands/pcf/pcf-init.js +6 -6
- package/dist/m365/pa/commands/solution/solution-init.js +6 -6
- package/dist/m365/pa/commands/solution/solution-reference-add.js +6 -6
- package/dist/m365/planner/commands/bucket/bucket-add.js +8 -8
- package/dist/m365/planner/commands/bucket/bucket-get.js +6 -6
- package/dist/m365/planner/commands/bucket/bucket-list.js +8 -8
- package/dist/m365/planner/commands/bucket/bucket-remove.js +6 -6
- package/dist/m365/planner/commands/bucket/bucket-set.js +6 -6
- package/dist/m365/planner/commands/plan/plan-add.js +8 -8
- package/dist/m365/planner/commands/plan/plan-get.js +8 -8
- package/dist/m365/planner/commands/plan/plan-list.js +6 -6
- package/dist/m365/planner/commands/plan/plan-remove.js +6 -6
- package/dist/m365/planner/commands/plan/plan-set.js +305 -0
- package/dist/m365/planner/commands/task/task-add.js +6 -6
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +6 -6
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +5 -5
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +6 -6
- package/dist/m365/planner/commands/task/task-get.js +6 -6
- package/dist/m365/planner/commands/task/task-list.js +7 -7
- package/dist/m365/planner/commands/task/task-reference-add.js +6 -6
- package/dist/m365/planner/commands/task/task-reference-list.js +5 -5
- package/dist/m365/planner/commands/task/task-reference-remove.js +6 -6
- package/dist/m365/planner/commands/task/task-remove.js +6 -6
- package/dist/m365/planner/commands/task/task-set.js +6 -6
- package/dist/m365/planner/commands/tenant/tenant-settings-set.js +10 -13
- package/dist/m365/planner/commands.js +1 -0
- package/dist/m365/pp/commands/card/card-clone.js +6 -6
- package/dist/m365/pp/commands/card/card-get.js +8 -8
- package/dist/m365/pp/commands/card/card-list.js +6 -6
- package/dist/m365/pp/commands/card/card-remove.js +6 -6
- package/dist/m365/pp/commands/chatbot/chatbot-get.js +111 -0
- package/dist/m365/pp/commands/chatbot/chatbot-list.js +6 -6
- package/dist/m365/pp/commands/chatbot/chatbot-remove.js +131 -0
- package/dist/m365/pp/commands/dataverse/dataverse-table-get.js +6 -6
- package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +6 -6
- package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +6 -6
- package/dist/m365/pp/commands/dataverse/dataverse-table-row-list.js +95 -0
- package/dist/m365/pp/commands/dataverse/dataverse-table-row-remove.js +133 -0
- package/dist/m365/pp/commands/environment/environment-get.js +6 -6
- package/dist/m365/pp/commands/environment/environment-list.js +6 -6
- package/dist/m365/pp/commands/gateway/gateway-get.js +6 -6
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +6 -6
- package/dist/m365/pp/commands/solution/solution-get.js +8 -8
- package/dist/m365/pp/commands/solution/solution-list.js +6 -6
- package/dist/m365/pp/commands/solution/solution-publisher-add.js +101 -0
- package/dist/m365/pp/commands/solution/solution-publisher-get.js +8 -8
- package/dist/m365/pp/commands/solution/solution-publisher-list.js +6 -6
- package/dist/m365/pp/commands/solution/solution-publisher-remove.js +6 -6
- package/dist/m365/pp/commands/solution/solution-remove.js +6 -6
- package/dist/m365/pp/commands.js +5 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +38 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-remove.js +92 -0
- package/dist/m365/purview/commands.js +8 -0
- package/dist/m365/search/commands/externalconnection/externalconnection-add.js +6 -6
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +6 -6
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +6 -6
- package/dist/m365/spfx/commands/package/package-generate.js +6 -6
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.1.js +23 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +16 -10
- package/dist/m365/spfx/commands/project/project-externalize.js +14 -9
- package/dist/m365/spfx/commands/project/project-model/ScssFile.js +3 -3
- package/dist/m365/spfx/commands/project/project-model/TsFile.js +3 -3
- package/dist/m365/spfx/commands/project/project-rename.js +6 -6
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +63 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015009_FILE_config_sass_json.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.1.js +59 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -10
- package/dist/m365/spfx/commands/spfx-doctor.js +24 -9
- package/dist/m365/spo/commands/app/app-add.js +6 -6
- package/dist/m365/spo/commands/app/app-deploy.js +6 -6
- package/dist/m365/spo/commands/app/app-get.js +6 -6
- package/dist/m365/spo/commands/app/app-install.js +6 -6
- package/dist/m365/spo/commands/app/app-instance-list.js +6 -6
- package/dist/m365/spo/commands/app/app-list.js +7 -7
- package/dist/m365/spo/commands/app/app-remove.js +6 -6
- package/dist/m365/spo/commands/app/app-retract.js +6 -6
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +6 -6
- 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-add.js +6 -6
- package/dist/m365/spo/commands/apppage/apppage-set.js +6 -6
- package/dist/m365/spo/commands/cdn/cdn-get.js +6 -6
- package/dist/m365/spo/commands/cdn/cdn-origin-add.js +6 -6
- package/dist/m365/spo/commands/cdn/cdn-origin-list.js +6 -6
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +6 -6
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +6 -6
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +6 -6
- package/dist/m365/spo/commands/cdn/cdn-set.js +12 -13
- 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 +15 -24
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +6 -6
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +7 -7
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +6 -6
- package/dist/m365/spo/commands/contenttype/contenttype-set.js +83 -36
- package/dist/m365/spo/commands/customaction/customaction-add.js +6 -6
- package/dist/m365/spo/commands/customaction/customaction-clear.js +6 -6
- package/dist/m365/spo/commands/customaction/customaction-get.js +6 -6
- package/dist/m365/spo/commands/customaction/customaction-list.js +7 -7
- package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -6
- package/dist/m365/spo/commands/customaction/customaction-set.js +7 -7
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +6 -6
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +7 -7
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +6 -6
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +6 -6
- package/dist/m365/spo/commands/feature/feature-disable.js +6 -6
- package/dist/m365/spo/commands/feature/feature-enable.js +6 -6
- package/dist/m365/spo/commands/feature/feature-list.js +6 -6
- package/dist/m365/spo/commands/field/field-add.js +6 -6
- package/dist/m365/spo/commands/field/field-get.js +6 -6
- package/dist/m365/spo/commands/field/field-list.js +7 -7
- package/dist/m365/spo/commands/field/field-remove.js +6 -6
- package/dist/m365/spo/commands/field/field-set.js +6 -6
- package/dist/m365/spo/commands/file/file-add.js +9 -9
- package/dist/m365/spo/commands/file/file-checkin.js +6 -6
- package/dist/m365/spo/commands/file/file-checkout.js +6 -6
- package/dist/m365/spo/commands/file/file-copy.js +6 -6
- package/dist/m365/spo/commands/file/file-get.js +11 -23
- package/dist/m365/spo/commands/file/file-list.js +6 -6
- package/dist/m365/spo/commands/file/file-move.js +6 -6
- package/dist/m365/spo/commands/file/file-remove.js +6 -6
- package/dist/m365/spo/commands/file/file-rename.js +6 -6
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +6 -6
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +6 -6
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +6 -6
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +6 -6
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +6 -6
- package/dist/m365/spo/commands/file/file-version-clear.js +6 -6
- package/dist/m365/spo/commands/file/file-version-get.js +6 -6
- package/dist/m365/spo/commands/file/file-version-list.js +8 -8
- package/dist/m365/spo/commands/file/file-version-remove.js +6 -6
- package/dist/m365/spo/commands/file/file-version-restore.js +6 -6
- package/dist/m365/spo/commands/folder/folder-add.js +6 -6
- package/dist/m365/spo/commands/folder/folder-copy.js +6 -6
- package/dist/m365/spo/commands/folder/folder-get.js +7 -15
- package/dist/m365/spo/commands/folder/folder-list.js +7 -7
- package/dist/m365/spo/commands/folder/folder-move.js +6 -6
- package/dist/m365/spo/commands/folder/folder-remove.js +6 -6
- package/dist/m365/spo/commands/folder/folder-rename.js +6 -6
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +6 -6
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +6 -6
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +6 -6
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +6 -6
- package/dist/m365/spo/commands/group/group-add.js +22 -24
- package/dist/m365/spo/commands/group/group-get.js +6 -6
- package/dist/m365/spo/commands/group/group-list.js +7 -7
- package/dist/m365/spo/commands/group/group-member-add.js +8 -8
- package/dist/m365/spo/commands/group/group-member-list.js +8 -8
- package/dist/m365/spo/commands/group/group-member-remove.js +6 -6
- package/dist/m365/spo/commands/group/group-remove.js +6 -6
- package/dist/m365/spo/commands/group/group-set.js +22 -24
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +12 -17
- package/dist/m365/spo/commands/homesite/homesite-remove.js +6 -6
- package/dist/m365/spo/commands/homesite/homesite-set.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +8 -8
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +6 -6
- 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 +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +6 -6
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +6 -6
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +6 -6
- package/dist/m365/spo/commands/list/list-add.js +60 -73
- package/dist/m365/spo/commands/list/list-contenttype-add.js +6 -6
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +6 -6
- package/dist/m365/spo/commands/list/list-contenttype-list.js +8 -8
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +6 -6
- package/dist/m365/spo/commands/list/list-get.js +6 -6
- package/dist/m365/spo/commands/list/list-label-get.js +6 -6
- package/dist/m365/spo/commands/list/list-label-set.js +6 -6
- package/dist/m365/spo/commands/list/list-list.js +6 -6
- package/dist/m365/spo/commands/list/list-remove.js +6 -6
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +6 -6
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +6 -6
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +6 -6
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +6 -6
- package/dist/m365/spo/commands/list/list-set.js +59 -71
- package/dist/m365/spo/commands/list/list-sitescript-get.js +6 -6
- package/dist/m365/spo/commands/list/list-view-add.js +6 -6
- package/dist/m365/spo/commands/list/list-view-field-add.js +6 -6
- package/dist/m365/spo/commands/list/list-view-field-remove.js +6 -6
- package/dist/m365/spo/commands/list/list-view-field-set.js +6 -6
- package/dist/m365/spo/commands/list/list-view-get.js +6 -6
- package/dist/m365/spo/commands/list/list-view-list.js +8 -8
- package/dist/m365/spo/commands/list/list-view-remove.js +6 -6
- package/dist/m365/spo/commands/list/list-view-set.js +8 -8
- package/dist/m365/spo/commands/list/list-webhook-add.js +6 -6
- package/dist/m365/spo/commands/list/list-webhook-get.js +6 -6
- package/dist/m365/spo/commands/list/list-webhook-list.js +8 -8
- package/dist/m365/spo/commands/list/list-webhook-remove.js +6 -6
- package/dist/m365/spo/commands/list/list-webhook-set.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-add.js +9 -9
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-batch-add.js +26 -19
- package/dist/m365/spo/commands/listitem/listitem-get.js +13 -25
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-list.js +8 -8
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-remove.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-set.js +16 -13
- package/dist/m365/spo/commands/mail/mail-send.js +6 -6
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +11 -7
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +6 -6
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +6 -6
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +6 -6
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +5 -5
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +6 -6
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +6 -6
- package/dist/m365/spo/commands/page/clientsidepages.js +3 -3
- package/dist/m365/spo/commands/page/page-add.js +6 -6
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +6 -6
- package/dist/m365/spo/commands/page/page-column-get.js +6 -6
- package/dist/m365/spo/commands/page/page-column-list.js +6 -6
- package/dist/m365/spo/commands/page/page-control-get.js +6 -6
- package/dist/m365/spo/commands/page/page-control-list.js +6 -6
- package/dist/m365/spo/commands/page/page-control-set.js +6 -6
- package/dist/m365/spo/commands/page/page-copy.js +7 -7
- package/dist/m365/spo/commands/page/page-get.js +6 -6
- package/dist/m365/spo/commands/page/page-header-set.js +6 -6
- package/dist/m365/spo/commands/page/page-list.js +6 -6
- package/dist/m365/spo/commands/page/page-remove.js +6 -6
- package/dist/m365/spo/commands/page/page-section-add.js +6 -6
- package/dist/m365/spo/commands/page/page-section-get.js +6 -6
- package/dist/m365/spo/commands/page/page-section-list.js +6 -6
- package/dist/m365/spo/commands/page/page-set.js +11 -13
- package/dist/m365/spo/commands/page/page-template-list.js +6 -6
- package/dist/m365/spo/commands/page/page-text-add.js +6 -6
- package/dist/m365/spo/commands/propertybag/propertybag-get.js +6 -6
- package/dist/m365/spo/commands/propertybag/propertybag-list.js +6 -6
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +6 -6
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +6 -6
- package/dist/m365/spo/commands/roledefinition/roledefinition-add.js +7 -7
- package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +6 -6
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +8 -19
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +6 -6
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +5 -5
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +5 -5
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +76 -27
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +6 -6
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +14 -22
- package/dist/m365/spo/commands/site/site-add.js +7 -7
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +6 -6
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +6 -6
- package/dist/m365/spo/commands/site/site-apppermission-add.js +6 -6
- package/dist/m365/spo/commands/site/site-apppermission-get.js +6 -6
- package/dist/m365/spo/commands/site/site-apppermission-list.js +6 -6
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +6 -6
- package/dist/m365/spo/commands/site/site-apppermission-set.js +6 -6
- package/dist/m365/spo/commands/site/site-chrome-set.js +19 -13
- package/dist/m365/spo/commands/site/site-commsite-enable.js +6 -6
- package/dist/m365/spo/commands/site/site-ensure.js +14 -10
- package/dist/m365/spo/commands/site/site-get.js +6 -6
- package/dist/m365/spo/commands/site/site-groupify.js +6 -6
- package/dist/m365/spo/commands/site/site-hubsite-connect.js +6 -6
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +6 -6
- package/dist/m365/spo/commands/site/site-hubsite-theme-sync.js +6 -6
- package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +14 -14
- package/dist/m365/spo/commands/site/site-list.js +7 -7
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +7 -7
- package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +6 -6
- package/dist/m365/spo/commands/site/site-remove.js +6 -6
- package/dist/m365/spo/commands/site/site-rename.js +6 -6
- package/dist/m365/spo/commands/site/site-set.js +23 -37
- package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +7 -7
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +14 -15
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +6 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +6 -6
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +6 -6
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +6 -6
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +6 -6
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +6 -6
- package/dist/m365/spo/commands/spo-search.js +6 -6
- package/dist/m365/spo/commands/spo-set.js +6 -6
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +5 -5
- package/dist/m365/spo/commands/storageentity/storageentity-list.js +6 -6
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +6 -6
- package/dist/m365/spo/commands/storageentity/storageentity-set.js +6 -6
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +6 -6
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +6 -6
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +6 -6
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +73 -63
- package/dist/m365/spo/commands/term/term-add.js +6 -6
- package/dist/m365/spo/commands/term/term-get.js +6 -6
- package/dist/m365/spo/commands/term/term-group-add.js +6 -6
- package/dist/m365/spo/commands/term/term-group-get.js +6 -6
- package/dist/m365/spo/commands/term/term-list.js +8 -8
- package/dist/m365/spo/commands/term/term-set-add.js +6 -6
- package/dist/m365/spo/commands/term/term-set-get.js +6 -6
- package/dist/m365/spo/commands/term/term-set-list.js +6 -6
- package/dist/m365/spo/commands/theme/theme-apply.js +6 -6
- package/dist/m365/spo/commands/theme/theme-get.js +5 -5
- package/dist/m365/spo/commands/theme/theme-remove.js +6 -6
- package/dist/m365/spo/commands/theme/theme-set.js +6 -6
- package/dist/m365/spo/commands/user/user-get.js +6 -6
- package/dist/m365/spo/commands/user/user-list.js +6 -6
- package/dist/m365/spo/commands/user/user-remove.js +6 -6
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +6 -6
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +5 -5
- package/dist/m365/spo/commands/web/web-add.js +6 -6
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +6 -6
- package/dist/m365/spo/commands/web/web-get.js +11 -22
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +6 -6
- package/dist/m365/spo/commands/web/web-list.js +6 -6
- package/dist/m365/spo/commands/web/web-reindex.js +6 -6
- package/dist/m365/spo/commands/web/web-remove.js +6 -6
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +6 -6
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +6 -6
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +6 -6
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +6 -6
- package/dist/m365/spo/commands/web/web-set.js +18 -31
- package/dist/m365/teams/commands/app/app-install.js +6 -6
- package/dist/m365/teams/commands/app/app-list.js +7 -7
- package/dist/m365/teams/commands/app/app-publish.js +6 -6
- package/dist/m365/teams/commands/app/app-remove.js +6 -6
- package/dist/m365/teams/commands/app/app-uninstall.js +6 -6
- package/dist/m365/teams/commands/app/app-update.js +6 -6
- package/dist/m365/teams/commands/cache/cache-remove.js +30 -46
- package/dist/m365/teams/commands/channel/channel-add.js +6 -6
- package/dist/m365/teams/commands/channel/channel-get.js +6 -6
- package/dist/m365/teams/commands/channel/channel-list.js +8 -8
- package/dist/m365/teams/commands/channel/channel-member-add.js +6 -6
- package/dist/m365/teams/commands/channel/channel-member-list.js +9 -9
- package/dist/m365/teams/commands/channel/channel-member-remove.js +6 -6
- package/dist/m365/teams/commands/channel/channel-member-set.js +6 -6
- package/dist/m365/teams/commands/channel/channel-remove.js +6 -6
- package/dist/m365/teams/commands/channel/channel-set.js +6 -6
- package/dist/m365/teams/commands/chat/chat-get.js +6 -6
- package/dist/m365/teams/commands/chat/chat-list.js +7 -7
- package/dist/m365/teams/commands/chat/chat-member-list.js +6 -6
- package/dist/m365/teams/commands/chat/chat-message-list.js +6 -6
- package/dist/m365/teams/commands/chat/chat-message-send.js +6 -6
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +6 -6
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +18 -25
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +6 -6
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +18 -26
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +121 -0
- package/dist/m365/teams/commands/meeting/meeting-get.js +6 -6
- package/dist/m365/teams/commands/meeting/meeting-list.js +7 -7
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +6 -6
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +24 -29
- package/dist/m365/teams/commands/message/message-get.js +6 -6
- package/dist/m365/teams/commands/message/message-list.js +7 -7
- package/dist/m365/teams/commands/message/message-reply-list.js +6 -6
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +6 -6
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +26 -29
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +7 -7
- package/dist/m365/teams/commands/report/report-pstncalls.js +7 -7
- package/dist/m365/teams/commands/tab/tab-add.js +7 -7
- package/dist/m365/teams/commands/tab/tab-get.js +6 -6
- package/dist/m365/teams/commands/tab/tab-list.js +6 -6
- package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
- package/dist/m365/teams/commands/team/team-add.js +6 -6
- package/dist/m365/teams/commands/team/team-app-list.js +8 -8
- package/dist/m365/teams/commands/team/team-archive.js +6 -6
- package/dist/m365/teams/commands/team/team-clone.js +6 -6
- package/dist/m365/teams/commands/team/team-get.js +6 -6
- package/dist/m365/teams/commands/team/team-list.js +6 -6
- package/dist/m365/teams/commands/team/team-remove.js +6 -6
- package/dist/m365/teams/commands/team/team-set.js +6 -6
- package/dist/m365/teams/commands/team/team-unarchive.js +6 -6
- package/dist/m365/teams/commands/user/user-app-add.js +6 -6
- package/dist/m365/teams/commands/user/user-app-list.js +7 -7
- package/dist/m365/teams/commands/user/user-app-remove.js +6 -6
- package/dist/m365/teams/commands/user/user-list.js +6 -6
- package/dist/m365/teams/commands.js +1 -0
- package/dist/m365/tenant/commands/id/id-get.js +6 -6
- package/dist/m365/tenant/commands/security/security-alerts-list.js +6 -6
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +6 -6
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +6 -6
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +5 -5
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +5 -5
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +6 -6
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +6 -6
- package/dist/m365/todo/commands/list/list-add.js +5 -5
- package/dist/m365/todo/commands/list/list-get.js +7 -7
- package/dist/m365/todo/commands/list/list-remove.js +6 -6
- package/dist/m365/todo/commands/list/list-set.js +6 -6
- package/dist/m365/todo/commands/task/task-add.js +6 -6
- package/dist/m365/todo/commands/task/task-get.js +7 -7
- package/dist/m365/todo/commands/task/task-list.js +7 -7
- package/dist/m365/todo/commands/task/task-remove.js +6 -6
- package/dist/m365/todo/commands/task/task-set.js +6 -6
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +6 -6
- package/dist/m365/viva/commands/connections/connections-app-create.js +6 -6
- package/dist/m365/yammer/commands/group/group-list.js +6 -6
- package/dist/m365/yammer/commands/group/group-user-add.js +6 -6
- package/dist/m365/yammer/commands/group/group-user-remove.js +6 -6
- package/dist/m365/yammer/commands/message/message-add.js +7 -7
- package/dist/m365/yammer/commands/message/message-get.js +6 -6
- package/dist/m365/yammer/commands/message/message-like-set.js +15 -16
- package/dist/m365/yammer/commands/message/message-list.js +8 -8
- package/dist/m365/yammer/commands/message/message-remove.js +6 -6
- package/dist/m365/yammer/commands/network/network-list.js +6 -6
- package/dist/m365/yammer/commands/user/user-get.js +7 -7
- package/dist/m365/yammer/commands/user/user-list.js +8 -8
- package/dist/m365/yammer/commands/yammer-search.js +6 -6
- package/dist/request.js +38 -38
- package/dist/settingsNames.js +1 -0
- package/dist/telemetry.js +29 -0
- package/dist/utils/formatting.js +37 -0
- package/dist/utils/md.js +10 -1
- package/docs/docs/_clisettings.md +1 -0
- package/docs/docs/cmd/_global.md +1 -1
- package/docs/docs/cmd/cli/cli-consent.md +20 -0
- package/docs/docs/cmd/cli/cli-doctor.md +50 -0
- package/docs/docs/cmd/cli/cli-issue.md +20 -0
- package/docs/docs/cmd/cli/cli-reconsent.md +20 -0
- package/docs/docs/cmd/cli/completion/completion-clink-update.md +5 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-setup.md +5 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-update.md +5 -1
- package/docs/docs/cmd/cli/completion/completion-sh-setup.md +21 -1
- package/docs/docs/cmd/cli/completion/completion-sh-update.md +4 -0
- package/docs/docs/cmd/cli/config/config-get.md +22 -0
- package/docs/docs/cmd/cli/config/config-reset.md +4 -0
- package/docs/docs/cmd/cli/config/config-set.md +4 -0
- package/docs/docs/cmd/planner/plan/plan-set.md +144 -0
- package/docs/docs/cmd/pp/chatbot/chatbot-get.md +123 -0
- package/docs/docs/cmd/pp/chatbot/chatbot-remove.md +52 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.md +90 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.md +61 -0
- package/docs/docs/cmd/pp/environment/environment-get.md +2 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-add.md +49 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-remove.md +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.md +81 -0
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.md +36 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-add.md +4 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +38 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-list.md +38 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +4 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.md +15 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +6 -6
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +105 -2
- package/docs/docs/cmd/teams/meeting/meeting-attendancereport-list.md +69 -0
- package/docs/docs/cmd/teams/user/user-app-list.md +6 -0
- package/npm-shrinkwrap.json +248 -188
- package/package.json +14 -12
|
@@ -24,6 +24,12 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
24
24
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
25
25
|
const commands_1 = require("../../commands");
|
|
26
26
|
class SpoContentTypeFieldRemoveCommand extends SpoCommand_1.default {
|
|
27
|
+
get name() {
|
|
28
|
+
return commands_1.default.CONTENTTYPE_FIELD_REMOVE;
|
|
29
|
+
}
|
|
30
|
+
get description() {
|
|
31
|
+
return 'Removes a column from a site- or list content type';
|
|
32
|
+
}
|
|
27
33
|
constructor() {
|
|
28
34
|
super();
|
|
29
35
|
_SpoContentTypeFieldRemoveCommand_instances.add(this);
|
|
@@ -32,12 +38,6 @@ class SpoContentTypeFieldRemoveCommand extends SpoCommand_1.default {
|
|
|
32
38
|
__classPrivateFieldGet(this, _SpoContentTypeFieldRemoveCommand_instances, "m", _SpoContentTypeFieldRemoveCommand_initValidators).call(this);
|
|
33
39
|
__classPrivateFieldGet(this, _SpoContentTypeFieldRemoveCommand_instances, "m", _SpoContentTypeFieldRemoveCommand_initTypes).call(this);
|
|
34
40
|
}
|
|
35
|
-
get name() {
|
|
36
|
-
return commands_1.default.CONTENTTYPE_FIELD_REMOVE;
|
|
37
|
-
}
|
|
38
|
-
get description() {
|
|
39
|
-
return 'Removes a column from a site- or list content type';
|
|
40
|
-
}
|
|
41
41
|
commandAction(logger, args) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
const removeFieldLink = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -23,6 +23,12 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
23
23
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
24
24
|
const commands_1 = require("../../commands");
|
|
25
25
|
class SpoContentTypeFieldSetCommand extends SpoCommand_1.default {
|
|
26
|
+
get name() {
|
|
27
|
+
return commands_1.default.CONTENTTYPE_FIELD_SET;
|
|
28
|
+
}
|
|
29
|
+
get description() {
|
|
30
|
+
return 'Adds or updates a site column reference in a site content type';
|
|
31
|
+
}
|
|
26
32
|
constructor() {
|
|
27
33
|
super();
|
|
28
34
|
_SpoContentTypeFieldSetCommand_instances.add(this);
|
|
@@ -35,12 +41,6 @@ class SpoContentTypeFieldSetCommand extends SpoCommand_1.default {
|
|
|
35
41
|
this.webId = '';
|
|
36
42
|
this.fieldLink = null;
|
|
37
43
|
}
|
|
38
|
-
get name() {
|
|
39
|
-
return commands_1.default.CONTENTTYPE_FIELD_SET;
|
|
40
|
-
}
|
|
41
|
-
get description() {
|
|
42
|
-
return 'Adds or updates a site column reference in a site content type';
|
|
43
|
-
}
|
|
44
44
|
commandAction(logger, args) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
46
|
try {
|
|
@@ -100,11 +100,11 @@ class SpoContentTypeFieldSetCommand extends SpoCommand_1.default {
|
|
|
100
100
|
let updateHidden = false;
|
|
101
101
|
let updateRequired = false;
|
|
102
102
|
if (typeof args.options.hidden !== 'undefined' &&
|
|
103
|
-
this.fieldLink.Hidden !==
|
|
103
|
+
this.fieldLink.Hidden !== args.options.hidden) {
|
|
104
104
|
updateHidden = true;
|
|
105
105
|
}
|
|
106
106
|
if (typeof args.options.required !== 'undefined' &&
|
|
107
|
-
this.fieldLink.Required !==
|
|
107
|
+
this.fieldLink.Required !== args.options.required) {
|
|
108
108
|
updateRequired = true;
|
|
109
109
|
}
|
|
110
110
|
if (!updateHidden && !updateRequired) {
|
|
@@ -145,9 +145,9 @@ class SpoContentTypeFieldSetCommand extends SpoCommand_1.default {
|
|
|
145
145
|
logger.logToStderr(`Updating field link...`);
|
|
146
146
|
}
|
|
147
147
|
const requiredProperty = typeof args.options.required !== 'undefined' &&
|
|
148
|
-
this.fieldLink.Required !==
|
|
148
|
+
this.fieldLink.Required !== args.options.required ? `<SetProperty Id="122" ObjectPathId="121" Name="Required"><Parameter Type="Boolean">${args.options.required}</Parameter></SetProperty>` : '';
|
|
149
149
|
const hiddenProperty = typeof args.options.hidden !== 'undefined' &&
|
|
150
|
-
this.fieldLink.Hidden !==
|
|
150
|
+
this.fieldLink.Hidden !== args.options.hidden ? `<SetProperty Id="123" ObjectPathId="121" Name="Hidden"><Parameter Type="Boolean">${args.options.hidden}</Parameter></SetProperty>` : '';
|
|
151
151
|
requestOptions = {
|
|
152
152
|
url: `${args.options.webUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
153
153
|
headers: {
|
|
@@ -317,31 +317,22 @@ _SpoContentTypeFieldSetCommand_instances = new WeakSet(), _SpoContentTypeFieldSe
|
|
|
317
317
|
}, {
|
|
318
318
|
option: '-f, --id <id>'
|
|
319
319
|
}, {
|
|
320
|
-
option: '-r, --required [required]'
|
|
320
|
+
option: '-r, --required [required]',
|
|
321
|
+
autocomplete: ['true', 'false']
|
|
321
322
|
}, {
|
|
322
|
-
option: '--hidden [hidden]'
|
|
323
|
+
option: '--hidden [hidden]',
|
|
324
|
+
autocomplete: ['true', 'false']
|
|
323
325
|
});
|
|
324
326
|
}, _SpoContentTypeFieldSetCommand_initValidators = function _SpoContentTypeFieldSetCommand_initValidators() {
|
|
325
327
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
326
328
|
if (!validation_1.validation.isValidGuid(args.options.id)) {
|
|
327
329
|
return `${args.options.id} is not a valid GUID`;
|
|
328
330
|
}
|
|
329
|
-
if (typeof args.options.required !== 'undefined') {
|
|
330
|
-
if (args.options.required !== 'true' &&
|
|
331
|
-
args.options.required !== 'false') {
|
|
332
|
-
return `${args.options.required} is not a valid boolean value. Allowed values are true|false`;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
if (typeof args.options.hidden !== 'undefined') {
|
|
336
|
-
if (args.options.hidden !== 'true' &&
|
|
337
|
-
args.options.hidden !== 'false') {
|
|
338
|
-
return `${args.options.hidden} is not a valid boolean value. Allowed values are true|false`;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
331
|
return validation_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
342
332
|
}));
|
|
343
333
|
}, _SpoContentTypeFieldSetCommand_initTypes = function _SpoContentTypeFieldSetCommand_initTypes() {
|
|
344
334
|
this.types.string.push('contentTypeId', 'c');
|
|
335
|
+
this.types.boolean.push('required', 'hidden');
|
|
345
336
|
};
|
|
346
337
|
module.exports = new SpoContentTypeFieldSetCommand();
|
|
347
338
|
//# sourceMappingURL=contenttype-field-set.js.map
|
|
@@ -22,6 +22,12 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
24
|
class SpoContentTypeGetCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.CONTENTTYPE_GET;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Retrieves information about the specified list or site content type';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoContentTypeGetCommand_instances.add(this);
|
|
@@ -31,12 +37,6 @@ class SpoContentTypeGetCommand extends SpoCommand_1.default {
|
|
|
31
37
|
__classPrivateFieldGet(this, _SpoContentTypeGetCommand_instances, "m", _SpoContentTypeGetCommand_initTypes).call(this);
|
|
32
38
|
__classPrivateFieldGet(this, _SpoContentTypeGetCommand_instances, "m", _SpoContentTypeGetCommand_initOptionSets).call(this);
|
|
33
39
|
}
|
|
34
|
-
get name() {
|
|
35
|
-
return commands_1.default.CONTENTTYPE_GET;
|
|
36
|
-
}
|
|
37
|
-
get description() {
|
|
38
|
-
return 'Retrieves information about the specified list or site content type';
|
|
39
|
-
}
|
|
40
40
|
commandAction(logger, args) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
let requestUrl = `${args.options.webUrl}/_api/web`;
|
|
@@ -21,13 +21,6 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
21
21
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
23
|
class SpoContentTypeListCommand extends SpoCommand_1.default {
|
|
24
|
-
constructor() {
|
|
25
|
-
super();
|
|
26
|
-
_SpoContentTypeListCommand_instances.add(this);
|
|
27
|
-
__classPrivateFieldGet(this, _SpoContentTypeListCommand_instances, "m", _SpoContentTypeListCommand_initTelemetry).call(this);
|
|
28
|
-
__classPrivateFieldGet(this, _SpoContentTypeListCommand_instances, "m", _SpoContentTypeListCommand_initOptions).call(this);
|
|
29
|
-
__classPrivateFieldGet(this, _SpoContentTypeListCommand_instances, "m", _SpoContentTypeListCommand_initValidators).call(this);
|
|
30
|
-
}
|
|
31
24
|
get name() {
|
|
32
25
|
return commands_1.default.CONTENTTYPE_LIST;
|
|
33
26
|
}
|
|
@@ -37,6 +30,13 @@ class SpoContentTypeListCommand extends SpoCommand_1.default {
|
|
|
37
30
|
defaultProperties() {
|
|
38
31
|
return ['StringId', 'Name', 'Hidden', 'ReadOnly', 'Sealed'];
|
|
39
32
|
}
|
|
33
|
+
constructor() {
|
|
34
|
+
super();
|
|
35
|
+
_SpoContentTypeListCommand_instances.add(this);
|
|
36
|
+
__classPrivateFieldGet(this, _SpoContentTypeListCommand_instances, "m", _SpoContentTypeListCommand_initTelemetry).call(this);
|
|
37
|
+
__classPrivateFieldGet(this, _SpoContentTypeListCommand_instances, "m", _SpoContentTypeListCommand_initOptions).call(this);
|
|
38
|
+
__classPrivateFieldGet(this, _SpoContentTypeListCommand_instances, "m", _SpoContentTypeListCommand_initValidators).call(this);
|
|
39
|
+
}
|
|
40
40
|
commandAction(logger, args) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
try {
|
|
@@ -22,6 +22,12 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
24
|
class SpoContentTypeRemoveCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.CONTENTTYPE_REMOVE;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Deletes site content type';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoContentTypeRemoveCommand_instances.add(this);
|
|
@@ -31,12 +37,6 @@ class SpoContentTypeRemoveCommand extends SpoCommand_1.default {
|
|
|
31
37
|
__classPrivateFieldGet(this, _SpoContentTypeRemoveCommand_instances, "m", _SpoContentTypeRemoveCommand_initTypes).call(this);
|
|
32
38
|
__classPrivateFieldGet(this, _SpoContentTypeRemoveCommand_instances, "m", _SpoContentTypeRemoveCommand_initOptionSets).call(this);
|
|
33
39
|
}
|
|
34
|
-
get name() {
|
|
35
|
-
return commands_1.default.CONTENTTYPE_REMOVE;
|
|
36
|
-
}
|
|
37
|
-
get description() {
|
|
38
|
-
return 'Deletes site content type';
|
|
39
|
-
}
|
|
40
40
|
commandAction(logger, args) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
let contentTypeId = '';
|
|
@@ -21,7 +21,14 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
21
21
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
23
|
const request_1 = require("../../../../request");
|
|
24
|
+
const config_1 = require("../../../../config");
|
|
24
25
|
class SpoContentTypeSetCommand extends SpoCommand_1.default {
|
|
26
|
+
get name() {
|
|
27
|
+
return commands_1.default.CONTENTTYPE_SET;
|
|
28
|
+
}
|
|
29
|
+
get description() {
|
|
30
|
+
return 'Update an existing content type';
|
|
31
|
+
}
|
|
25
32
|
constructor() {
|
|
26
33
|
super();
|
|
27
34
|
_SpoContentTypeSetCommand_instances.add(this);
|
|
@@ -31,50 +38,30 @@ class SpoContentTypeSetCommand extends SpoCommand_1.default {
|
|
|
31
38
|
__classPrivateFieldGet(this, _SpoContentTypeSetCommand_instances, "m", _SpoContentTypeSetCommand_initOptionSets).call(this);
|
|
32
39
|
__classPrivateFieldGet(this, _SpoContentTypeSetCommand_instances, "m", _SpoContentTypeSetCommand_initValidators).call(this);
|
|
33
40
|
}
|
|
34
|
-
get name() {
|
|
35
|
-
return commands_1.default.CONTENTTYPE_SET;
|
|
36
|
-
}
|
|
37
|
-
get description() {
|
|
38
|
-
return 'Updates existing content type';
|
|
39
|
-
}
|
|
40
41
|
allowUnknownOptions() {
|
|
41
42
|
return true;
|
|
42
43
|
}
|
|
43
44
|
commandAction(logger, args) {
|
|
44
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const requestOptions = {
|
|
46
|
-
url: `${args.options.webUrl}/_api/Web`,
|
|
47
|
-
headers: {
|
|
48
|
-
accept: 'application/json;odata=nometadata'
|
|
49
|
-
},
|
|
50
|
-
responseType: 'json',
|
|
51
|
-
data: this.getRequestPayload(args.options)
|
|
52
|
-
};
|
|
53
|
-
if (args.options.listId) {
|
|
54
|
-
requestOptions.url += `/Lists/GetById('${formatting_1.formatting.encodeQueryParameter(args.options.listId)}')`;
|
|
55
|
-
}
|
|
56
|
-
else if (args.options.listTitle) {
|
|
57
|
-
requestOptions.url += `/Lists/GetByTitle('${formatting_1.formatting.encodeQueryParameter(args.options.listTitle)}')`;
|
|
58
|
-
}
|
|
59
|
-
else if (args.options.listUrl) {
|
|
60
|
-
requestOptions.url += `/GetList('${formatting_1.formatting.encodeQueryParameter(urlUtil_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl))}')`;
|
|
61
|
-
}
|
|
62
|
-
requestOptions.url += '/ContentTypes';
|
|
63
46
|
try {
|
|
64
|
-
const contentTypeId = yield this.getContentTypeId(args.options);
|
|
65
|
-
|
|
66
|
-
yield
|
|
47
|
+
const contentTypeId = yield this.getContentTypeId(logger, args.options);
|
|
48
|
+
const siteId = yield this.getSiteId(logger, args.options.webUrl);
|
|
49
|
+
const webId = yield this.getWebId(logger, args.options.webUrl);
|
|
50
|
+
yield this.updateContentType(logger, siteId, webId, contentTypeId, args.options);
|
|
67
51
|
}
|
|
68
52
|
catch (err) {
|
|
69
|
-
this.
|
|
53
|
+
this.handleRejectedODataJsonPromise(err);
|
|
70
54
|
}
|
|
71
55
|
});
|
|
72
56
|
}
|
|
73
|
-
getContentTypeId(options) {
|
|
57
|
+
getContentTypeId(logger, options) {
|
|
74
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
59
|
if (options.id) {
|
|
76
60
|
return options.id;
|
|
77
61
|
}
|
|
62
|
+
if (this.verbose) {
|
|
63
|
+
logger.logToStderr(`Retrieving content type to update...`);
|
|
64
|
+
}
|
|
78
65
|
const requestOptions = {
|
|
79
66
|
url: `${options.webUrl}/_api/Web`,
|
|
80
67
|
headers: {
|
|
@@ -99,6 +86,27 @@ class SpoContentTypeSetCommand extends SpoCommand_1.default {
|
|
|
99
86
|
return res.value[0].Id.StringValue;
|
|
100
87
|
});
|
|
101
88
|
}
|
|
89
|
+
updateContentType(logger, siteId, webId, contentTypeId, options) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
if (this.verbose) {
|
|
92
|
+
logger.logToStderr(`Updating content type...`);
|
|
93
|
+
}
|
|
94
|
+
const payload = this.getRequestPayload(options);
|
|
95
|
+
const requestOptions = {
|
|
96
|
+
url: `${options.webUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
97
|
+
headers: {
|
|
98
|
+
'Content-Type': 'text/xml'
|
|
99
|
+
},
|
|
100
|
+
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>${payload}</Actions><ObjectPaths><Identity Id="9" Name="fc4179a0-e0d7-5000-c38b-bc3506fbab6f|740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:${siteId}:web:${webId}:contenttype:${formatting_1.formatting.escapeXml(contentTypeId)}" /></ObjectPaths></Request>`
|
|
101
|
+
};
|
|
102
|
+
const res = yield request_1.default.post(requestOptions);
|
|
103
|
+
const json = JSON.parse(res);
|
|
104
|
+
const response = json[0];
|
|
105
|
+
if (response.ErrorInfo) {
|
|
106
|
+
throw response.ErrorInfo.ErrorMessage;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
102
110
|
getRequestPayload(options) {
|
|
103
111
|
const excludeOptions = [
|
|
104
112
|
'webUrl',
|
|
@@ -110,15 +118,51 @@ class SpoContentTypeSetCommand extends SpoCommand_1.default {
|
|
|
110
118
|
'query',
|
|
111
119
|
'debug',
|
|
112
120
|
'verbose',
|
|
113
|
-
'output'
|
|
121
|
+
'output',
|
|
122
|
+
'updateChildren'
|
|
114
123
|
];
|
|
124
|
+
let i = 12;
|
|
115
125
|
const payload = Object.keys(options)
|
|
116
126
|
.filter(key => excludeOptions.indexOf(key) === -1)
|
|
117
|
-
.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
127
|
+
.map(key => {
|
|
128
|
+
return `<SetProperty Id="${i++}" ObjectPathId="9" Name="${key}"><Parameter Type="String">${formatting_1.formatting.escapeXml(options[key])}</Parameter></SetProperty>`;
|
|
129
|
+
});
|
|
130
|
+
if (options.updateChildren) {
|
|
131
|
+
payload.push(`<Method Name="Update" Id="${i++}" ObjectPathId="9"><Parameters><Parameter Type="Boolean">true</Parameter></Parameters></Method>`);
|
|
132
|
+
}
|
|
133
|
+
return payload.join('');
|
|
134
|
+
}
|
|
135
|
+
getSiteId(logger, webUrl) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
if (this.verbose) {
|
|
138
|
+
logger.logToStderr(`Retrieving site collection id...`);
|
|
139
|
+
}
|
|
140
|
+
const requestOptions = {
|
|
141
|
+
url: `${webUrl}/_api/site?$select=Id`,
|
|
142
|
+
headers: {
|
|
143
|
+
accept: 'application/json;odata=nometadata'
|
|
144
|
+
},
|
|
145
|
+
responseType: 'json'
|
|
146
|
+
};
|
|
147
|
+
const site = yield request_1.default.get(requestOptions);
|
|
148
|
+
return site.Id;
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
getWebId(logger, webUrl) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
if (this.verbose) {
|
|
154
|
+
logger.logToStderr(`Retrieving web id...`);
|
|
155
|
+
}
|
|
156
|
+
const requestOptions = {
|
|
157
|
+
url: `${webUrl}/_api/web?$select=Id`,
|
|
158
|
+
headers: {
|
|
159
|
+
accept: 'application/json;odata=nometadata'
|
|
160
|
+
},
|
|
161
|
+
responseType: 'json'
|
|
162
|
+
};
|
|
163
|
+
const web = yield request_1.default.get(requestOptions);
|
|
164
|
+
return web.Id;
|
|
165
|
+
});
|
|
122
166
|
}
|
|
123
167
|
}
|
|
124
168
|
_SpoContentTypeSetCommand_instances = new WeakSet(), _SpoContentTypeSetCommand_initTelemetry = function _SpoContentTypeSetCommand_initTelemetry() {
|
|
@@ -128,7 +172,8 @@ _SpoContentTypeSetCommand_instances = new WeakSet(), _SpoContentTypeSetCommand_i
|
|
|
128
172
|
name: typeof args.options.name !== 'undefined',
|
|
129
173
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
130
174
|
listId: typeof args.options.listId !== 'undefined',
|
|
131
|
-
listUrl: typeof args.options.listUrl !== 'undefined'
|
|
175
|
+
listUrl: typeof args.options.listUrl !== 'undefined',
|
|
176
|
+
updateChildren: args.options.updateChildren
|
|
132
177
|
});
|
|
133
178
|
});
|
|
134
179
|
}, _SpoContentTypeSetCommand_initOptions = function _SpoContentTypeSetCommand_initOptions() {
|
|
@@ -144,6 +189,8 @@ _SpoContentTypeSetCommand_instances = new WeakSet(), _SpoContentTypeSetCommand_i
|
|
|
144
189
|
option: '--listId [listId]'
|
|
145
190
|
}, {
|
|
146
191
|
option: '--listUrl [listUrl]'
|
|
192
|
+
}, {
|
|
193
|
+
option: '--updateChildren'
|
|
147
194
|
});
|
|
148
195
|
}, _SpoContentTypeSetCommand_initValidators = function _SpoContentTypeSetCommand_initValidators() {
|
|
149
196
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -21,6 +21,12 @@ const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
|
21
21
|
const base_permissions_1 = require("../../base-permissions");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
23
|
class SpoCustomActionAddCommand extends SpoCommand_1.default {
|
|
24
|
+
get name() {
|
|
25
|
+
return commands_1.default.CUSTOMACTION_ADD;
|
|
26
|
+
}
|
|
27
|
+
get description() {
|
|
28
|
+
return 'Adds a user custom action for site or site collection';
|
|
29
|
+
}
|
|
24
30
|
constructor() {
|
|
25
31
|
super();
|
|
26
32
|
_SpoCustomActionAddCommand_instances.add(this);
|
|
@@ -28,12 +34,6 @@ class SpoCustomActionAddCommand extends SpoCommand_1.default {
|
|
|
28
34
|
__classPrivateFieldGet(this, _SpoCustomActionAddCommand_instances, "m", _SpoCustomActionAddCommand_initOptions).call(this);
|
|
29
35
|
__classPrivateFieldGet(this, _SpoCustomActionAddCommand_instances, "m", _SpoCustomActionAddCommand_initValidators).call(this);
|
|
30
36
|
}
|
|
31
|
-
get name() {
|
|
32
|
-
return commands_1.default.CUSTOMACTION_ADD;
|
|
33
|
-
}
|
|
34
|
-
get description() {
|
|
35
|
-
return 'Adds a user custom action for site or site collection';
|
|
36
|
-
}
|
|
37
37
|
/**
|
|
38
38
|
* Maps the base PermissionsKind enum to string array so it can
|
|
39
39
|
* more easily be used in validation or descriptions.
|
|
@@ -22,6 +22,12 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
24
|
class SpoCustomActionClearCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.CUSTOMACTION_CLEAR;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Deletes all custom actions in the collection';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoCustomActionClearCommand_instances.add(this);
|
|
@@ -29,12 +35,6 @@ class SpoCustomActionClearCommand extends SpoCommand_1.default {
|
|
|
29
35
|
__classPrivateFieldGet(this, _SpoCustomActionClearCommand_instances, "m", _SpoCustomActionClearCommand_initOptions).call(this);
|
|
30
36
|
__classPrivateFieldGet(this, _SpoCustomActionClearCommand_instances, "m", _SpoCustomActionClearCommand_initValidators).call(this);
|
|
31
37
|
}
|
|
32
|
-
get name() {
|
|
33
|
-
return commands_1.default.CUSTOMACTION_CLEAR;
|
|
34
|
-
}
|
|
35
|
-
get description() {
|
|
36
|
-
return 'Deletes all custom actions in the collection';
|
|
37
|
-
}
|
|
38
38
|
commandAction(logger, args) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const clearCustomActions = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -21,6 +21,12 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
21
21
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
23
|
class SpoCustomActionGetCommand extends SpoCommand_1.default {
|
|
24
|
+
get name() {
|
|
25
|
+
return commands_1.default.CUSTOMACTION_GET;
|
|
26
|
+
}
|
|
27
|
+
get description() {
|
|
28
|
+
return 'Gets details for the specified custom action';
|
|
29
|
+
}
|
|
24
30
|
constructor() {
|
|
25
31
|
super();
|
|
26
32
|
_SpoCustomActionGetCommand_instances.add(this);
|
|
@@ -29,12 +35,6 @@ class SpoCustomActionGetCommand extends SpoCommand_1.default {
|
|
|
29
35
|
__classPrivateFieldGet(this, _SpoCustomActionGetCommand_instances, "m", _SpoCustomActionGetCommand_initValidators).call(this);
|
|
30
36
|
__classPrivateFieldGet(this, _SpoCustomActionGetCommand_instances, "m", _SpoCustomActionGetCommand_initOptionSets).call(this);
|
|
31
37
|
}
|
|
32
|
-
get name() {
|
|
33
|
-
return commands_1.default.CUSTOMACTION_GET;
|
|
34
|
-
}
|
|
35
|
-
get description() {
|
|
36
|
-
return 'Gets details for the specified custom action';
|
|
37
|
-
}
|
|
38
38
|
commandAction(logger, args) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
try {
|
|
@@ -20,13 +20,6 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
20
20
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class SpoCustomActionListCommand extends SpoCommand_1.default {
|
|
23
|
-
constructor() {
|
|
24
|
-
super();
|
|
25
|
-
_SpoCustomActionListCommand_instances.add(this);
|
|
26
|
-
__classPrivateFieldGet(this, _SpoCustomActionListCommand_instances, "m", _SpoCustomActionListCommand_initTelemetry).call(this);
|
|
27
|
-
__classPrivateFieldGet(this, _SpoCustomActionListCommand_instances, "m", _SpoCustomActionListCommand_initOptions).call(this);
|
|
28
|
-
__classPrivateFieldGet(this, _SpoCustomActionListCommand_instances, "m", _SpoCustomActionListCommand_initValidators).call(this);
|
|
29
|
-
}
|
|
30
23
|
get name() {
|
|
31
24
|
return commands_1.default.CUSTOMACTION_LIST;
|
|
32
25
|
}
|
|
@@ -36,6 +29,13 @@ class SpoCustomActionListCommand extends SpoCommand_1.default {
|
|
|
36
29
|
defaultProperties() {
|
|
37
30
|
return ['Name', 'Location', 'Scope', 'Id'];
|
|
38
31
|
}
|
|
32
|
+
constructor() {
|
|
33
|
+
super();
|
|
34
|
+
_SpoCustomActionListCommand_instances.add(this);
|
|
35
|
+
__classPrivateFieldGet(this, _SpoCustomActionListCommand_instances, "m", _SpoCustomActionListCommand_initTelemetry).call(this);
|
|
36
|
+
__classPrivateFieldGet(this, _SpoCustomActionListCommand_instances, "m", _SpoCustomActionListCommand_initOptions).call(this);
|
|
37
|
+
__classPrivateFieldGet(this, _SpoCustomActionListCommand_instances, "m", _SpoCustomActionListCommand_initValidators).call(this);
|
|
38
|
+
}
|
|
39
39
|
commandAction(logger, args) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
try {
|
|
@@ -22,6 +22,12 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
24
|
class SpoCustomActionRemoveCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.CUSTOMACTION_REMOVE;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Removes the specified custom action';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoCustomActionRemoveCommand_instances.add(this);
|
|
@@ -30,12 +36,6 @@ class SpoCustomActionRemoveCommand extends SpoCommand_1.default {
|
|
|
30
36
|
__classPrivateFieldGet(this, _SpoCustomActionRemoveCommand_instances, "m", _SpoCustomActionRemoveCommand_initValidators).call(this);
|
|
31
37
|
__classPrivateFieldGet(this, _SpoCustomActionRemoveCommand_instances, "m", _SpoCustomActionRemoveCommand_initOptionSets).call(this);
|
|
32
38
|
}
|
|
33
|
-
get name() {
|
|
34
|
-
return commands_1.default.CUSTOMACTION_REMOVE;
|
|
35
|
-
}
|
|
36
|
-
get description() {
|
|
37
|
-
return 'Removes the specified custom action';
|
|
38
|
-
}
|
|
39
39
|
commandAction(logger, args) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
const removeCustomAction = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -22,13 +22,6 @@ const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
|
22
22
|
const base_permissions_1 = require("../../base-permissions");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
24
|
class SpoCustomActionSetCommand extends SpoCommand_1.default {
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
_SpoCustomActionSetCommand_instances.add(this);
|
|
28
|
-
__classPrivateFieldGet(this, _SpoCustomActionSetCommand_instances, "m", _SpoCustomActionSetCommand_initTelemetry).call(this);
|
|
29
|
-
__classPrivateFieldGet(this, _SpoCustomActionSetCommand_instances, "m", _SpoCustomActionSetCommand_initOptions).call(this);
|
|
30
|
-
__classPrivateFieldGet(this, _SpoCustomActionSetCommand_instances, "m", _SpoCustomActionSetCommand_initValidators).call(this);
|
|
31
|
-
}
|
|
32
25
|
get name() {
|
|
33
26
|
return commands_1.default.CUSTOMACTION_SET;
|
|
34
27
|
}
|
|
@@ -48,6 +41,13 @@ class SpoCustomActionSetCommand extends SpoCommand_1.default {
|
|
|
48
41
|
}
|
|
49
42
|
return result;
|
|
50
43
|
}
|
|
44
|
+
constructor() {
|
|
45
|
+
super();
|
|
46
|
+
_SpoCustomActionSetCommand_instances.add(this);
|
|
47
|
+
__classPrivateFieldGet(this, _SpoCustomActionSetCommand_instances, "m", _SpoCustomActionSetCommand_initTelemetry).call(this);
|
|
48
|
+
__classPrivateFieldGet(this, _SpoCustomActionSetCommand_instances, "m", _SpoCustomActionSetCommand_initOptions).call(this);
|
|
49
|
+
__classPrivateFieldGet(this, _SpoCustomActionSetCommand_instances, "m", _SpoCustomActionSetCommand_initValidators).call(this);
|
|
50
|
+
}
|
|
51
51
|
commandAction(logger, args) {
|
|
52
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
53
|
try {
|
|
@@ -22,6 +22,12 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
24
|
class SpoEventreceiverGetCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.EVENTRECEIVER_GET;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Gets a specific event receiver attached to the web, site or list (if any of the list options are filled in) by receiver name of id';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoEventreceiverGetCommand_instances.add(this);
|
|
@@ -30,12 +36,6 @@ class SpoEventreceiverGetCommand extends SpoCommand_1.default {
|
|
|
30
36
|
__classPrivateFieldGet(this, _SpoEventreceiverGetCommand_instances, "m", _SpoEventreceiverGetCommand_initValidators).call(this);
|
|
31
37
|
__classPrivateFieldGet(this, _SpoEventreceiverGetCommand_instances, "m", _SpoEventreceiverGetCommand_initOptionSets).call(this);
|
|
32
38
|
}
|
|
33
|
-
get name() {
|
|
34
|
-
return commands_1.default.EVENTRECEIVER_GET;
|
|
35
|
-
}
|
|
36
|
-
get description() {
|
|
37
|
-
return 'Gets a specific event receiver attached to the web, site or list (if any of the list options are filled in) by receiver name of id';
|
|
38
|
-
}
|
|
39
39
|
commandAction(logger, args) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
try {
|
|
@@ -22,13 +22,6 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
24
|
class SpoEventreceiverListCommand extends SpoCommand_1.default {
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
_SpoEventreceiverListCommand_instances.add(this);
|
|
28
|
-
__classPrivateFieldGet(this, _SpoEventreceiverListCommand_instances, "m", _SpoEventreceiverListCommand_initTelemetry).call(this);
|
|
29
|
-
__classPrivateFieldGet(this, _SpoEventreceiverListCommand_instances, "m", _SpoEventreceiverListCommand_initOptions).call(this);
|
|
30
|
-
__classPrivateFieldGet(this, _SpoEventreceiverListCommand_instances, "m", _SpoEventreceiverListCommand_initValidators).call(this);
|
|
31
|
-
}
|
|
32
25
|
get name() {
|
|
33
26
|
return commands_1.default.EVENTRECEIVER_LIST;
|
|
34
27
|
}
|
|
@@ -38,6 +31,13 @@ class SpoEventreceiverListCommand extends SpoCommand_1.default {
|
|
|
38
31
|
defaultProperties() {
|
|
39
32
|
return ['ReceiverId', 'ReceiverName'];
|
|
40
33
|
}
|
|
34
|
+
constructor() {
|
|
35
|
+
super();
|
|
36
|
+
_SpoEventreceiverListCommand_instances.add(this);
|
|
37
|
+
__classPrivateFieldGet(this, _SpoEventreceiverListCommand_instances, "m", _SpoEventreceiverListCommand_initTelemetry).call(this);
|
|
38
|
+
__classPrivateFieldGet(this, _SpoEventreceiverListCommand_instances, "m", _SpoEventreceiverListCommand_initOptions).call(this);
|
|
39
|
+
__classPrivateFieldGet(this, _SpoEventreceiverListCommand_instances, "m", _SpoEventreceiverListCommand_initValidators).call(this);
|
|
40
|
+
}
|
|
41
41
|
commandAction(logger, args) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
let requestUrl = `${args.options.webUrl}/_api/`;
|
|
@@ -24,6 +24,12 @@ const commands_1 = require("../../commands");
|
|
|
24
24
|
const request_1 = require("../../../../request");
|
|
25
25
|
const getCommand = require('./eventreceiver-get');
|
|
26
26
|
class SpoEventreceiverRemoveCommand extends SpoCommand_1.default {
|
|
27
|
+
get name() {
|
|
28
|
+
return commands_1.default.EVENTRECEIVER_REMOVE;
|
|
29
|
+
}
|
|
30
|
+
get description() {
|
|
31
|
+
return 'Removes event receivers for the specified web, site, or list.';
|
|
32
|
+
}
|
|
27
33
|
constructor() {
|
|
28
34
|
super();
|
|
29
35
|
_SpoEventreceiverRemoveCommand_instances.add(this);
|
|
@@ -32,12 +38,6 @@ class SpoEventreceiverRemoveCommand extends SpoCommand_1.default {
|
|
|
32
38
|
__classPrivateFieldGet(this, _SpoEventreceiverRemoveCommand_instances, "m", _SpoEventreceiverRemoveCommand_initValidators).call(this);
|
|
33
39
|
__classPrivateFieldGet(this, _SpoEventreceiverRemoveCommand_instances, "m", _SpoEventreceiverRemoveCommand_initOptionSets).call(this);
|
|
34
40
|
}
|
|
35
|
-
get name() {
|
|
36
|
-
return commands_1.default.EVENTRECEIVER_REMOVE;
|
|
37
|
-
}
|
|
38
|
-
get description() {
|
|
39
|
-
return 'Removes event receivers for the specified web, site, or list.';
|
|
40
|
-
}
|
|
41
41
|
commandAction(logger, args) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
if (args.options.confirm) {
|
|
@@ -23,6 +23,12 @@ const validation_1 = require("../../../../utils/validation");
|
|
|
23
23
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
24
24
|
const commands_1 = require("../../commands");
|
|
25
25
|
class SpoExternalUserListCommand extends SpoCommand_1.default {
|
|
26
|
+
get name() {
|
|
27
|
+
return commands_1.default.EXTERNALUSER_LIST;
|
|
28
|
+
}
|
|
29
|
+
get description() {
|
|
30
|
+
return 'Lists external users in the tenant';
|
|
31
|
+
}
|
|
26
32
|
constructor() {
|
|
27
33
|
super();
|
|
28
34
|
_SpoExternalUserListCommand_instances.add(this);
|
|
@@ -30,12 +36,6 @@ class SpoExternalUserListCommand extends SpoCommand_1.default {
|
|
|
30
36
|
__classPrivateFieldGet(this, _SpoExternalUserListCommand_instances, "m", _SpoExternalUserListCommand_initOptions).call(this);
|
|
31
37
|
__classPrivateFieldGet(this, _SpoExternalUserListCommand_instances, "m", _SpoExternalUserListCommand_initValidators).call(this);
|
|
32
38
|
}
|
|
33
|
-
get name() {
|
|
34
|
-
return commands_1.default.EXTERNALUSER_LIST;
|
|
35
|
-
}
|
|
36
|
-
get description() {
|
|
37
|
-
return 'Lists external users in the tenant';
|
|
38
|
-
}
|
|
39
39
|
commandAction(logger, args) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
try {
|