@pnp/cli-microsoft365 6.1.0-beta.fd67be0 → 6.1.0
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 +19 -64
- 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-get.js +79 -0
- 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 +100 -23
- package/dist/m365/aad/commands/user/user-signin-list.js +6 -6
- package/dist/m365/aad/commands.js +1 -0
- 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/base/ContextCommand.js +33 -0
- 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/context/commands/context-init.js +28 -0
- package/dist/m365/context/commands/context-remove.js +103 -0
- package/dist/m365/context/commands.js +8 -0
- 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 +8 -8
- 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 +6 -6
- 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 +11 -19
- 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/retentionlabel/retentionlabel-set.js +142 -0
- package/dist/m365/purview/commands.js +9 -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/search/commands/externalconnection/externalconnection-schema-add.js +86 -0
- package/dist/m365/search/commands.js +2 -1
- package/dist/m365/spfx/commands/package/package-generate.js +6 -6
- package/dist/m365/spfx/commands/project/project-doctor.js +14 -9
- 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.js +14 -9
- package/dist/m365/spfx/commands/spfx-doctor.js +9 -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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +76 -38
- package/dist/m365/spo/commands/group/group-member-list.js +8 -8
- package/dist/m365/spo/commands/group/group-member-remove.js +55 -12
- 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-list.js +6 -6
- package/dist/m365/spo/commands/list/list-remove.js +6 -6
- package/dist/m365/spo/commands/list/{list-label-set.js → list-retentionlabel-ensure.js} +28 -18
- package/dist/m365/spo/commands/list/{list-label-get.js → list-retentionlabel-get.js} +22 -18
- 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 +9 -9
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +6 -6
- package/dist/m365/spo/commands/listitem/listitem-list.js +6 -6
- 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 +7 -7
- package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +143 -0
- 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 +9 -9
- package/dist/m365/spo/commands/mail/mail-send.js +6 -6
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +6 -6
- 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 +66 -69
- 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 +70 -83
- 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 +6 -6
- 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-list.js +43 -0
- 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 +6 -6
- 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-retentionlabel-list.js +63 -0
- 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/spo/commands.js +5 -0
- 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 +7 -7
- 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 +6 -6
- 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/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 +39 -38
- package/dist/settingsNames.js +1 -0
- package/dist/telemetry.js +29 -0
- package/dist/utils/md.js +10 -1
- package/dist/utils/pid.js +31 -15
- package/docs/docs/_clisettings.md +1 -0
- package/docs/docs/cmd/_global.md +1 -1
- package/docs/docs/cmd/aad/group/group-get.md +127 -0
- package/docs/docs/cmd/aad/user/user-set.md +31 -3
- package/docs/docs/cmd/context/context-init.md +25 -0
- package/docs/docs/cmd/context/context-remove.md +34 -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 +11 -3
- 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/purview/retentionlabel/retentionlabel-set.md +63 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-schema-add.md +31 -0
- package/docs/docs/cmd/spo/group/group-member-add.md +58 -6
- package/docs/docs/cmd/spo/group/group-member-remove.md +24 -8
- package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.md +65 -0
- package/docs/docs/cmd/spo/list/{list-label-get.md → list-retentionlabel-get.md} +17 -11
- package/docs/docs/cmd/spo/listitem/listitem-remove.md +6 -6
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.md +55 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.md +9 -5
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +42 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +25 -3
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +22 -0
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +6 -2
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.md +5 -1
- package/docs/docs/cmd/spo/page/page-add.md +13 -9
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +6 -2
- package/docs/docs/cmd/spo/page/page-column-get.md +68 -5
- package/docs/docs/cmd/spo/page/page-column-list.md +36 -4
- package/docs/docs/cmd/spo/page/page-control-get.md +70 -3
- package/docs/docs/cmd/spo/page/page-control-list.md +69 -3
- package/docs/docs/cmd/spo/page/page-control-set.md +11 -7
- package/docs/docs/cmd/spo/page/page-copy.md +65 -4
- package/docs/docs/cmd/spo/page/page-get.md +100 -4
- package/docs/docs/cmd/spo/page/page-header-set.md +17 -13
- package/docs/docs/cmd/spo/page/page-list.md +122 -1
- package/docs/docs/cmd/spo/page/page-remove.md +9 -5
- package/docs/docs/cmd/spo/page/page-section-add.md +10 -6
- package/docs/docs/cmd/spo/page/page-section-get.md +36 -4
- package/docs/docs/cmd/spo/page/page-section-list.md +38 -3
- package/docs/docs/cmd/spo/page/page-set.md +10 -10
- package/docs/docs/cmd/spo/page/page-template-list.md +58 -1
- package/docs/docs/cmd/spo/page/page-text-add.md +9 -5
- package/docs/docs/cmd/spo/propertybag/propertybag-get.md +28 -8
- package/docs/docs/cmd/spo/propertybag/propertybag-list.md +35 -7
- package/docs/docs/cmd/spo/propertybag/propertybag-remove.md +13 -9
- package/docs/docs/cmd/spo/propertybag/propertybag-set.md +13 -5
- package/docs/docs/cmd/spo/report/report-activityfilecounts.md +34 -2
- package/docs/docs/cmd/spo/report/report-activitypages.md +31 -2
- package/docs/docs/cmd/spo/report/report-activityusercounts.md +35 -2
- package/docs/docs/cmd/spo/report/report-activityuserdetail.md +40 -3
- package/docs/docs/cmd/spo/report/report-siteusagedetail.md +43 -3
- package/docs/docs/cmd/spo/report/report-siteusagefilecounts.md +33 -2
- package/docs/docs/cmd/spo/report/report-siteusagepages.md +32 -2
- package/docs/docs/cmd/spo/report/report-siteusagesitecounts.md +33 -2
- package/docs/docs/cmd/spo/report/report-siteusagestorage.md +32 -2
- package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +10 -6
- package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +80 -2
- package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +76 -2
- package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.md +9 -5
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +39 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +32 -0
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +6 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +45 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +6 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +30 -0
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +36 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-list.md +55 -0
- package/docs/docs/cmd/spo/web/web-retentionlabel-list.md +74 -0
- package/npm-shrinkwrap.json +246 -186
- package/package.json +14 -12
- package/docs/docs/cmd/spo/list/list-label-set.md +0 -55
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var
|
|
16
|
+
var _SpoListRetentionLabelGetCommand_instances, _SpoListRetentionLabelGetCommand_initTelemetry, _SpoListRetentionLabelGetCommand_initOptions, _SpoListRetentionLabelGetCommand_initValidators, _SpoListRetentionLabelGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const formatting_1 = require("../../../../utils/formatting");
|
|
@@ -21,23 +21,27 @@ const urlUtil_1 = require("../../../../utils/urlUtil");
|
|
|
21
21
|
const validation_1 = require("../../../../utils/validation");
|
|
22
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
|
-
class
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
_SpoListLabelGetCommand_instances.add(this);
|
|
28
|
-
__classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initTelemetry).call(this);
|
|
29
|
-
__classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initOptions).call(this);
|
|
30
|
-
__classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initValidators).call(this);
|
|
31
|
-
__classPrivateFieldGet(this, _SpoListLabelGetCommand_instances, "m", _SpoListLabelGetCommand_initOptionSets).call(this);
|
|
32
|
-
}
|
|
24
|
+
class SpoListRetentionLabelGetCommand extends SpoCommand_1.default {
|
|
33
25
|
get name() {
|
|
34
|
-
return commands_1.default.
|
|
26
|
+
return commands_1.default.LIST_RETENTIONLABEL_GET;
|
|
27
|
+
}
|
|
28
|
+
alias() {
|
|
29
|
+
return [commands_1.default.LIST_LABEL_GET];
|
|
35
30
|
}
|
|
36
31
|
get description() {
|
|
37
|
-
return 'Gets label set on the specified list';
|
|
32
|
+
return 'Gets the default retention label set on the specified list or library.';
|
|
33
|
+
}
|
|
34
|
+
constructor() {
|
|
35
|
+
super();
|
|
36
|
+
_SpoListRetentionLabelGetCommand_instances.add(this);
|
|
37
|
+
__classPrivateFieldGet(this, _SpoListRetentionLabelGetCommand_instances, "m", _SpoListRetentionLabelGetCommand_initTelemetry).call(this);
|
|
38
|
+
__classPrivateFieldGet(this, _SpoListRetentionLabelGetCommand_instances, "m", _SpoListRetentionLabelGetCommand_initOptions).call(this);
|
|
39
|
+
__classPrivateFieldGet(this, _SpoListRetentionLabelGetCommand_instances, "m", _SpoListRetentionLabelGetCommand_initValidators).call(this);
|
|
40
|
+
__classPrivateFieldGet(this, _SpoListRetentionLabelGetCommand_instances, "m", _SpoListRetentionLabelGetCommand_initOptionSets).call(this);
|
|
38
41
|
}
|
|
39
42
|
commandAction(logger, args) {
|
|
40
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
this.showDeprecationWarning(logger, commands_1.default.LIST_LABEL_GET, commands_1.default.LIST_RETENTIONLABEL_GET);
|
|
41
45
|
try {
|
|
42
46
|
if (this.verbose) {
|
|
43
47
|
logger.logToStderr(`Getting label set on the list ${args.options.listId || args.options.listTitle || args.options.listUrl} in site at ${args.options.webUrl}...`);
|
|
@@ -96,7 +100,7 @@ class SpoListLabelGetCommand extends SpoCommand_1.default {
|
|
|
96
100
|
});
|
|
97
101
|
}
|
|
98
102
|
}
|
|
99
|
-
|
|
103
|
+
_SpoListRetentionLabelGetCommand_instances = new WeakSet(), _SpoListRetentionLabelGetCommand_initTelemetry = function _SpoListRetentionLabelGetCommand_initTelemetry() {
|
|
100
104
|
this.telemetry.push((args) => {
|
|
101
105
|
Object.assign(this.telemetryProperties, {
|
|
102
106
|
listId: (!(!args.options.listId)).toString(),
|
|
@@ -104,7 +108,7 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
|
|
|
104
108
|
listUrl: (!(!args.options.listUrl)).toString()
|
|
105
109
|
});
|
|
106
110
|
});
|
|
107
|
-
},
|
|
111
|
+
}, _SpoListRetentionLabelGetCommand_initOptions = function _SpoListRetentionLabelGetCommand_initOptions() {
|
|
108
112
|
this.options.unshift({
|
|
109
113
|
option: '-u, --webUrl <webUrl>'
|
|
110
114
|
}, {
|
|
@@ -114,7 +118,7 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
|
|
|
114
118
|
}, {
|
|
115
119
|
option: '--listUrl [listUrl]'
|
|
116
120
|
});
|
|
117
|
-
},
|
|
121
|
+
}, _SpoListRetentionLabelGetCommand_initValidators = function _SpoListRetentionLabelGetCommand_initValidators() {
|
|
118
122
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
119
123
|
const isValidSharePointUrl = validation_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
120
124
|
if (isValidSharePointUrl !== true) {
|
|
@@ -127,8 +131,8 @@ _SpoListLabelGetCommand_instances = new WeakSet(), _SpoListLabelGetCommand_initT
|
|
|
127
131
|
}
|
|
128
132
|
return true;
|
|
129
133
|
}));
|
|
130
|
-
},
|
|
134
|
+
}, _SpoListRetentionLabelGetCommand_initOptionSets = function _SpoListRetentionLabelGetCommand_initOptionSets() {
|
|
131
135
|
this.optionSets.push({ options: ['listId', 'listTitle', 'listUrl'] });
|
|
132
136
|
};
|
|
133
|
-
module.exports = new
|
|
134
|
-
//# sourceMappingURL=list-
|
|
137
|
+
module.exports = new SpoListRetentionLabelGetCommand();
|
|
138
|
+
//# sourceMappingURL=list-retentionlabel-get.js.map
|
|
@@ -26,6 +26,12 @@ const SpoUserGetCommand = require("../user/user-get");
|
|
|
26
26
|
const SpoGroupGetCommand = require("../group/group-get");
|
|
27
27
|
const SpoRoleDefinitionListCommand = require("../roledefinition/roledefinition-list");
|
|
28
28
|
class SpoListRoleAssignmentAddCommand extends SpoCommand_1.default {
|
|
29
|
+
get name() {
|
|
30
|
+
return commands_1.default.LIST_ROLEASSIGNMENT_ADD;
|
|
31
|
+
}
|
|
32
|
+
get description() {
|
|
33
|
+
return 'Adds a role assignment to list permissions';
|
|
34
|
+
}
|
|
29
35
|
constructor() {
|
|
30
36
|
super();
|
|
31
37
|
_SpoListRoleAssignmentAddCommand_instances.add(this);
|
|
@@ -34,12 +40,6 @@ class SpoListRoleAssignmentAddCommand extends SpoCommand_1.default {
|
|
|
34
40
|
__classPrivateFieldGet(this, _SpoListRoleAssignmentAddCommand_instances, "m", _SpoListRoleAssignmentAddCommand_initValidators).call(this);
|
|
35
41
|
__classPrivateFieldGet(this, _SpoListRoleAssignmentAddCommand_instances, "m", _SpoListRoleAssignmentAddCommand_initOptionSets).call(this);
|
|
36
42
|
}
|
|
37
|
-
get name() {
|
|
38
|
-
return commands_1.default.LIST_ROLEASSIGNMENT_ADD;
|
|
39
|
-
}
|
|
40
|
-
get description() {
|
|
41
|
-
return 'Adds a role assignment to list permissions';
|
|
42
|
-
}
|
|
43
43
|
commandAction(logger, args) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
45
|
if (this.verbose) {
|
|
@@ -25,6 +25,12 @@ const commands_1 = require("../../commands");
|
|
|
25
25
|
const SpoUserGetCommand = require("../user/user-get");
|
|
26
26
|
const SpoGroupGetCommand = require("../group/group-get");
|
|
27
27
|
class SpoListRoleAssignmentRemoveCommand extends SpoCommand_1.default {
|
|
28
|
+
get name() {
|
|
29
|
+
return commands_1.default.LIST_ROLEASSIGNMENT_REMOVE;
|
|
30
|
+
}
|
|
31
|
+
get description() {
|
|
32
|
+
return 'Removes a role assignment from list permissions';
|
|
33
|
+
}
|
|
28
34
|
constructor() {
|
|
29
35
|
super();
|
|
30
36
|
_SpoListRoleAssignmentRemoveCommand_instances.add(this);
|
|
@@ -33,12 +39,6 @@ class SpoListRoleAssignmentRemoveCommand extends SpoCommand_1.default {
|
|
|
33
39
|
__classPrivateFieldGet(this, _SpoListRoleAssignmentRemoveCommand_instances, "m", _SpoListRoleAssignmentRemoveCommand_initValidators).call(this);
|
|
34
40
|
__classPrivateFieldGet(this, _SpoListRoleAssignmentRemoveCommand_instances, "m", _SpoListRoleAssignmentRemoveCommand_initOptionSets).call(this);
|
|
35
41
|
}
|
|
36
|
-
get name() {
|
|
37
|
-
return commands_1.default.LIST_ROLEASSIGNMENT_REMOVE;
|
|
38
|
-
}
|
|
39
|
-
get description() {
|
|
40
|
-
return 'Removes a role assignment from list permissions';
|
|
41
|
-
}
|
|
42
42
|
commandAction(logger, args) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
44
|
const removeRoleAssignment = () => __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 SpoListRoleInheritanceBreakCommand extends SpoCommand_1.default {
|
|
26
|
+
get name() {
|
|
27
|
+
return commands_1.default.LIST_ROLEINHERITANCE_BREAK;
|
|
28
|
+
}
|
|
29
|
+
get description() {
|
|
30
|
+
return 'Breaks role inheritance on list or library';
|
|
31
|
+
}
|
|
26
32
|
constructor() {
|
|
27
33
|
super();
|
|
28
34
|
_SpoListRoleInheritanceBreakCommand_instances.add(this);
|
|
@@ -31,12 +37,6 @@ class SpoListRoleInheritanceBreakCommand extends SpoCommand_1.default {
|
|
|
31
37
|
__classPrivateFieldGet(this, _SpoListRoleInheritanceBreakCommand_instances, "m", _SpoListRoleInheritanceBreakCommand_initValidators).call(this);
|
|
32
38
|
__classPrivateFieldGet(this, _SpoListRoleInheritanceBreakCommand_instances, "m", _SpoListRoleInheritanceBreakCommand_initOptionSets).call(this);
|
|
33
39
|
}
|
|
34
|
-
get name() {
|
|
35
|
-
return commands_1.default.LIST_ROLEINHERITANCE_BREAK;
|
|
36
|
-
}
|
|
37
|
-
get description() {
|
|
38
|
-
return 'Breaks role inheritance on list or library';
|
|
39
|
-
}
|
|
40
40
|
commandAction(logger, args) {
|
|
41
41
|
var _a;
|
|
42
42
|
return __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 SpoListRoleInheritanceResetCommand extends SpoCommand_1.default {
|
|
26
|
+
get name() {
|
|
27
|
+
return commands_1.default.LIST_ROLEINHERITANCE_RESET;
|
|
28
|
+
}
|
|
29
|
+
get description() {
|
|
30
|
+
return 'Restores role inheritance on list or library';
|
|
31
|
+
}
|
|
26
32
|
constructor() {
|
|
27
33
|
super();
|
|
28
34
|
_SpoListRoleInheritanceResetCommand_instances.add(this);
|
|
@@ -31,12 +37,6 @@ class SpoListRoleInheritanceResetCommand extends SpoCommand_1.default {
|
|
|
31
37
|
__classPrivateFieldGet(this, _SpoListRoleInheritanceResetCommand_instances, "m", _SpoListRoleInheritanceResetCommand_initValidators).call(this);
|
|
32
38
|
__classPrivateFieldGet(this, _SpoListRoleInheritanceResetCommand_instances, "m", _SpoListRoleInheritanceResetCommand_initOptionSets).call(this);
|
|
33
39
|
}
|
|
34
|
-
get name() {
|
|
35
|
-
return commands_1.default.LIST_ROLEINHERITANCE_RESET;
|
|
36
|
-
}
|
|
37
|
-
get description() {
|
|
38
|
-
return 'Restores role inheritance on list or library';
|
|
39
|
-
}
|
|
40
40
|
commandAction(logger, args) {
|
|
41
41
|
var _a;
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -24,15 +24,6 @@ const commands_1 = require("../../commands");
|
|
|
24
24
|
const DraftVisibilityType_1 = require("./DraftVisibilityType");
|
|
25
25
|
const ListExperience_1 = require("./ListExperience");
|
|
26
26
|
class SpoListSetCommand extends SpoCommand_1.default {
|
|
27
|
-
constructor() {
|
|
28
|
-
super();
|
|
29
|
-
_SpoListSetCommand_instances.add(this);
|
|
30
|
-
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initTelemetry).call(this);
|
|
31
|
-
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initOptions).call(this);
|
|
32
|
-
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initValidators).call(this);
|
|
33
|
-
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initTypes).call(this);
|
|
34
|
-
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initOptionSets).call(this);
|
|
35
|
-
}
|
|
36
27
|
get name() {
|
|
37
28
|
return commands_1.default.LIST_SET;
|
|
38
29
|
}
|
|
@@ -65,6 +56,15 @@ class SpoListSetCommand extends SpoCommand_1.default {
|
|
|
65
56
|
}
|
|
66
57
|
return result;
|
|
67
58
|
}
|
|
59
|
+
constructor() {
|
|
60
|
+
super();
|
|
61
|
+
_SpoListSetCommand_instances.add(this);
|
|
62
|
+
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initTelemetry).call(this);
|
|
63
|
+
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initOptions).call(this);
|
|
64
|
+
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initValidators).call(this);
|
|
65
|
+
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initTypes).call(this);
|
|
66
|
+
__classPrivateFieldGet(this, _SpoListSetCommand_instances, "m", _SpoListSetCommand_initOptionSets).call(this);
|
|
67
|
+
}
|
|
68
68
|
commandAction(logger, args) {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
if (this.verbose) {
|
|
@@ -116,19 +116,19 @@ class SpoListSetCommand extends SpoCommand_1.default {
|
|
|
116
116
|
if (options.schemaXml) {
|
|
117
117
|
requestBody.SchemaXml = options.schemaXml.replace('\\', '\\\\').replace('"', '\\"');
|
|
118
118
|
}
|
|
119
|
-
if (options.allowDeletion) {
|
|
119
|
+
if (options.allowDeletion !== undefined) {
|
|
120
120
|
requestBody.AllowDeletion = options.allowDeletion;
|
|
121
121
|
}
|
|
122
|
-
if (options.allowEveryoneViewItems) {
|
|
122
|
+
if (options.allowEveryoneViewItems !== undefined) {
|
|
123
123
|
requestBody.AllowEveryoneViewItems = options.allowEveryoneViewItems;
|
|
124
124
|
}
|
|
125
|
-
if (options.allowMultiResponses) {
|
|
125
|
+
if (options.allowMultiResponses !== undefined) {
|
|
126
126
|
requestBody.AllowMultiResponses = options.allowMultiResponses;
|
|
127
127
|
}
|
|
128
|
-
if (options.contentTypesEnabled) {
|
|
128
|
+
if (options.contentTypesEnabled !== undefined) {
|
|
129
129
|
requestBody.ContentTypesEnabled = options.contentTypesEnabled;
|
|
130
130
|
}
|
|
131
|
-
if (options.crawlNonDefaultViews) {
|
|
131
|
+
if (options.crawlNonDefaultViews !== undefined) {
|
|
132
132
|
requestBody.CrawlNonDefaultViews = options.crawlNonDefaultViews;
|
|
133
133
|
}
|
|
134
134
|
if (options.defaultContentApprovalWorkflowId) {
|
|
@@ -143,7 +143,7 @@ class SpoListSetCommand extends SpoCommand_1.default {
|
|
|
143
143
|
if (options.direction) {
|
|
144
144
|
requestBody.Direction = options.direction;
|
|
145
145
|
}
|
|
146
|
-
if (options.disableGridEditing) {
|
|
146
|
+
if (options.disableGridEditing !== undefined) {
|
|
147
147
|
requestBody.DisableGridEditing = options.disableGridEditing;
|
|
148
148
|
}
|
|
149
149
|
if (options.draftVersionVisibility) {
|
|
@@ -152,76 +152,76 @@ class SpoListSetCommand extends SpoCommand_1.default {
|
|
|
152
152
|
if (options.emailAlias) {
|
|
153
153
|
requestBody.EmailAlias = options.emailAlias;
|
|
154
154
|
}
|
|
155
|
-
if (options.enableAssignToEmail) {
|
|
155
|
+
if (options.enableAssignToEmail !== undefined) {
|
|
156
156
|
requestBody.EnableAssignToEmail = options.enableAssignToEmail;
|
|
157
157
|
}
|
|
158
|
-
if (options.enableAttachments) {
|
|
158
|
+
if (options.enableAttachments !== undefined) {
|
|
159
159
|
requestBody.EnableAttachments = options.enableAttachments;
|
|
160
160
|
}
|
|
161
|
-
if (options.enableDeployWithDependentList) {
|
|
161
|
+
if (options.enableDeployWithDependentList !== undefined) {
|
|
162
162
|
requestBody.EnableDeployWithDependentList = options.enableDeployWithDependentList;
|
|
163
163
|
}
|
|
164
|
-
if (options.enableFolderCreation) {
|
|
164
|
+
if (options.enableFolderCreation !== undefined) {
|
|
165
165
|
requestBody.EnableFolderCreation = options.enableFolderCreation;
|
|
166
166
|
}
|
|
167
|
-
if (options.enableMinorVersions) {
|
|
167
|
+
if (options.enableMinorVersions !== undefined) {
|
|
168
168
|
requestBody.EnableMinorVersions = options.enableMinorVersions;
|
|
169
169
|
}
|
|
170
|
-
if (options.enableModeration) {
|
|
170
|
+
if (options.enableModeration !== undefined) {
|
|
171
171
|
requestBody.EnableModeration = options.enableModeration;
|
|
172
172
|
}
|
|
173
|
-
if (options.enablePeopleSelector) {
|
|
173
|
+
if (options.enablePeopleSelector !== undefined) {
|
|
174
174
|
requestBody.EnablePeopleSelector = options.enablePeopleSelector;
|
|
175
175
|
}
|
|
176
|
-
if (options.enableResourceSelector) {
|
|
176
|
+
if (options.enableResourceSelector !== undefined) {
|
|
177
177
|
requestBody.EnableResourceSelector = options.enableResourceSelector;
|
|
178
178
|
}
|
|
179
|
-
if (options.enableSchemaCaching) {
|
|
179
|
+
if (options.enableSchemaCaching !== undefined) {
|
|
180
180
|
requestBody.EnableSchemaCaching = options.enableSchemaCaching;
|
|
181
181
|
}
|
|
182
|
-
if (options.enableSyndication) {
|
|
182
|
+
if (options.enableSyndication !== undefined) {
|
|
183
183
|
requestBody.EnableSyndication = options.enableSyndication;
|
|
184
184
|
}
|
|
185
|
-
if (options.enableThrottling) {
|
|
185
|
+
if (options.enableThrottling !== undefined) {
|
|
186
186
|
requestBody.EnableThrottling = options.enableThrottling;
|
|
187
187
|
}
|
|
188
|
-
if (options.enableVersioning) {
|
|
188
|
+
if (options.enableVersioning !== undefined) {
|
|
189
189
|
requestBody.EnableVersioning = options.enableVersioning;
|
|
190
190
|
}
|
|
191
|
-
if (options.enforceDataValidation) {
|
|
191
|
+
if (options.enforceDataValidation !== undefined) {
|
|
192
192
|
requestBody.EnforceDataValidation = options.enforceDataValidation;
|
|
193
193
|
}
|
|
194
|
-
if (options.excludeFromOfflineClient) {
|
|
194
|
+
if (options.excludeFromOfflineClient !== undefined) {
|
|
195
195
|
requestBody.ExcludeFromOfflineClient = options.excludeFromOfflineClient;
|
|
196
196
|
}
|
|
197
|
-
if (options.fetchPropertyBagForListView) {
|
|
197
|
+
if (options.fetchPropertyBagForListView !== undefined) {
|
|
198
198
|
requestBody.FetchPropertyBagForListView = options.fetchPropertyBagForListView;
|
|
199
199
|
}
|
|
200
|
-
if (options.followable) {
|
|
200
|
+
if (options.followable !== undefined) {
|
|
201
201
|
requestBody.Followable = options.followable;
|
|
202
202
|
}
|
|
203
|
-
if (options.forceCheckout) {
|
|
203
|
+
if (options.forceCheckout !== undefined) {
|
|
204
204
|
requestBody.ForceCheckout = options.forceCheckout;
|
|
205
205
|
}
|
|
206
|
-
if (options.forceDefaultContentType) {
|
|
206
|
+
if (options.forceDefaultContentType !== undefined) {
|
|
207
207
|
requestBody.ForceDefaultContentType = options.forceDefaultContentType;
|
|
208
208
|
}
|
|
209
|
-
if (options.hidden) {
|
|
209
|
+
if (options.hidden !== undefined) {
|
|
210
210
|
requestBody.Hidden = options.hidden;
|
|
211
211
|
}
|
|
212
|
-
if (options.includedInMyFilesScope) {
|
|
212
|
+
if (options.includedInMyFilesScope !== undefined) {
|
|
213
213
|
requestBody.IncludedInMyFilesScope = options.includedInMyFilesScope;
|
|
214
214
|
}
|
|
215
|
-
if (options.irmEnabled) {
|
|
215
|
+
if (options.irmEnabled !== undefined) {
|
|
216
216
|
requestBody.IrmEnabled = options.irmEnabled;
|
|
217
217
|
}
|
|
218
|
-
if (options.irmExpire) {
|
|
218
|
+
if (options.irmExpire !== undefined) {
|
|
219
219
|
requestBody.IrmExpire = options.irmExpire;
|
|
220
220
|
}
|
|
221
|
-
if (options.irmReject) {
|
|
221
|
+
if (options.irmReject !== undefined) {
|
|
222
222
|
requestBody.IrmReject = options.irmReject;
|
|
223
223
|
}
|
|
224
|
-
if (options.isApplicationList) {
|
|
224
|
+
if (options.isApplicationList !== undefined) {
|
|
225
225
|
requestBody.IsApplicationList = options.isApplicationList;
|
|
226
226
|
}
|
|
227
227
|
if (options.listExperienceOptions) {
|
|
@@ -233,37 +233,37 @@ class SpoListSetCommand extends SpoCommand_1.default {
|
|
|
233
233
|
if (options.majorWithMinorVersionsLimit) {
|
|
234
234
|
requestBody.MajorWithMinorVersionsLimit = options.majorWithMinorVersionsLimit;
|
|
235
235
|
}
|
|
236
|
-
if (options.multipleDataList) {
|
|
236
|
+
if (options.multipleDataList !== undefined) {
|
|
237
237
|
requestBody.MultipleDataList = options.multipleDataList;
|
|
238
238
|
}
|
|
239
|
-
if (options.navigateForFormsPages) {
|
|
239
|
+
if (options.navigateForFormsPages !== undefined) {
|
|
240
240
|
requestBody.NavigateForFormsPages = options.navigateForFormsPages;
|
|
241
241
|
}
|
|
242
|
-
if (options.needUpdateSiteClientTag) {
|
|
242
|
+
if (options.needUpdateSiteClientTag !== undefined) {
|
|
243
243
|
requestBody.NeedUpdateSiteClientTag = options.needUpdateSiteClientTag;
|
|
244
244
|
}
|
|
245
|
-
if (options.noCrawl) {
|
|
245
|
+
if (options.noCrawl !== undefined) {
|
|
246
246
|
requestBody.NoCrawl = options.noCrawl;
|
|
247
247
|
}
|
|
248
|
-
if (options.onQuickLaunch) {
|
|
248
|
+
if (options.onQuickLaunch !== undefined) {
|
|
249
249
|
requestBody.OnQuickLaunch = options.onQuickLaunch;
|
|
250
250
|
}
|
|
251
|
-
if (options.ordered) {
|
|
251
|
+
if (options.ordered !== undefined) {
|
|
252
252
|
requestBody.Ordered = options.ordered;
|
|
253
253
|
}
|
|
254
|
-
if (options.parserDisabled) {
|
|
254
|
+
if (options.parserDisabled !== undefined) {
|
|
255
255
|
requestBody.ParserDisabled = options.parserDisabled;
|
|
256
256
|
}
|
|
257
|
-
if (options.readOnlyUI) {
|
|
257
|
+
if (options.readOnlyUI !== undefined) {
|
|
258
258
|
requestBody.ReadOnlyUI = options.readOnlyUI;
|
|
259
259
|
}
|
|
260
260
|
if (options.readSecurity) {
|
|
261
261
|
requestBody.ReadSecurity = options.readSecurity;
|
|
262
262
|
}
|
|
263
|
-
if (options.requestAccessEnabled) {
|
|
263
|
+
if (options.requestAccessEnabled !== undefined) {
|
|
264
264
|
requestBody.RequestAccessEnabled = options.requestAccessEnabled;
|
|
265
265
|
}
|
|
266
|
-
if (options.restrictUserUpdates) {
|
|
266
|
+
if (options.restrictUserUpdates !== undefined) {
|
|
267
267
|
requestBody.RestrictUserUpdates = options.restrictUserUpdates;
|
|
268
268
|
}
|
|
269
269
|
if (options.sendToLocationName) {
|
|
@@ -272,10 +272,10 @@ class SpoListSetCommand extends SpoCommand_1.default {
|
|
|
272
272
|
if (options.sendToLocationUrl) {
|
|
273
273
|
requestBody.SendToLocationUrl = options.sendToLocationUrl;
|
|
274
274
|
}
|
|
275
|
-
if (options.showUser) {
|
|
275
|
+
if (options.showUser !== undefined) {
|
|
276
276
|
requestBody.ShowUser = options.showUser;
|
|
277
277
|
}
|
|
278
|
-
if (options.useFormsForDisplay) {
|
|
278
|
+
if (options.useFormsForDisplay !== undefined) {
|
|
279
279
|
requestBody.UseFormsForDisplay = options.useFormsForDisplay;
|
|
280
280
|
}
|
|
281
281
|
if (options.validationFormula) {
|
|
@@ -319,8 +319,8 @@ _SpoListSetCommand_instances = new WeakSet(), _SpoListSetCommand_initTelemetry =
|
|
|
319
319
|
// add boolean values
|
|
320
320
|
SpoListSetCommand.booleanOptions.forEach(o => {
|
|
321
321
|
const value = args.options[o];
|
|
322
|
-
if (value) {
|
|
323
|
-
telemetryProps[o] =
|
|
322
|
+
if (value !== undefined) {
|
|
323
|
+
telemetryProps[o] = value;
|
|
324
324
|
}
|
|
325
325
|
});
|
|
326
326
|
// add properties with non-identifiable data
|
|
@@ -528,13 +528,6 @@ _SpoListSetCommand_instances = new WeakSet(), _SpoListSetCommand_initTelemetry =
|
|
|
528
528
|
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
529
529
|
return `${args.options.id} is not a valid GUID`;
|
|
530
530
|
}
|
|
531
|
-
for (let i = 0; i < SpoListSetCommand.booleanOptions.length; i++) {
|
|
532
|
-
const option = SpoListSetCommand.booleanOptions[i];
|
|
533
|
-
const value = args.options[option];
|
|
534
|
-
if (value && !validation_1.validation.isValidBoolean(value)) {
|
|
535
|
-
return `${value} in option ${option} is not a valid boolean value`;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
531
|
if (args.options.templateFeatureId &&
|
|
539
532
|
!validation_1.validation.isValidGuid(args.options.templateFeatureId)) {
|
|
540
533
|
return `${args.options.templateFeatureId} in option templateFeatureId is not a valid GUID`;
|
|
@@ -553,7 +546,7 @@ _SpoListSetCommand_instances = new WeakSet(), _SpoListSetCommand_initTelemetry =
|
|
|
553
546
|
return `${args.options.draftVersionVisibility} is not a valid draftVisibilityType value`;
|
|
554
547
|
}
|
|
555
548
|
}
|
|
556
|
-
if (args.options.emailAlias && args.options.enableAssignToEmail !==
|
|
549
|
+
if (args.options.emailAlias && args.options.enableAssignToEmail !== true) {
|
|
557
550
|
return `emailAlias could not be set if enableAssignToEmail is not set to true. Please set enableAssignToEmail.`;
|
|
558
551
|
}
|
|
559
552
|
if (args.options.listExperienceOptions) {
|
|
@@ -562,12 +555,12 @@ _SpoListSetCommand_instances = new WeakSet(), _SpoListSetCommand_initTelemetry =
|
|
|
562
555
|
return `${args.options.listExperienceOptions} is not a valid listExperienceOptions value`;
|
|
563
556
|
}
|
|
564
557
|
}
|
|
565
|
-
if (args.options.majorVersionLimit && args.options.enableVersioning !==
|
|
558
|
+
if (args.options.majorVersionLimit && args.options.enableVersioning !== true) {
|
|
566
559
|
return `majorVersionLimit option is only valid in combination with enableVersioning.`;
|
|
567
560
|
}
|
|
568
561
|
if (args.options.majorWithMinorVersionsLimit &&
|
|
569
|
-
args.options.enableMinorVersions !==
|
|
570
|
-
args.options.enableModeration !==
|
|
562
|
+
args.options.enableMinorVersions !== true &&
|
|
563
|
+
args.options.enableModeration !== true) {
|
|
571
564
|
return `majorWithMinorVersionsLimit option is only valid in combination with enableMinorVersions or enableModeration.`;
|
|
572
565
|
}
|
|
573
566
|
if (args.options.readSecurity &&
|
|
@@ -584,13 +577,8 @@ _SpoListSetCommand_instances = new WeakSet(), _SpoListSetCommand_initTelemetry =
|
|
|
584
577
|
return true;
|
|
585
578
|
}));
|
|
586
579
|
}, _SpoListSetCommand_initTypes = function _SpoListSetCommand_initTypes() {
|
|
587
|
-
this.types.string.push(
|
|
588
|
-
|
|
589
|
-
'templateFeatureId',
|
|
590
|
-
'defaultContentApprovalWorkflowId',
|
|
591
|
-
'draftVersionVisibility',
|
|
592
|
-
'listExperienceOptions'
|
|
593
|
-
]));
|
|
580
|
+
this.types.string.push('webUrl', 'templateFeatureId', 'defaultContentApprovalWorkflowId', 'draftVersionVisibility', 'listExperienceOptions');
|
|
581
|
+
this.types.boolean.push(...SpoListSetCommand.booleanOptions);
|
|
594
582
|
}, _SpoListSetCommand_initOptionSets = function _SpoListSetCommand_initOptionSets() {
|
|
595
583
|
this.optionSets.push({ options: ['id', 'title', 'url'] });
|
|
596
584
|
};
|
|
@@ -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 SpoListSiteScriptGetCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.LIST_SITESCRIPT_GET;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Extracts a site script from a SharePoint list';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoListSiteScriptGetCommand_instances.add(this);
|
|
@@ -30,12 +36,6 @@ class SpoListSiteScriptGetCommand extends SpoCommand_1.default {
|
|
|
30
36
|
__classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initValidators).call(this);
|
|
31
37
|
__classPrivateFieldGet(this, _SpoListSiteScriptGetCommand_instances, "m", _SpoListSiteScriptGetCommand_initOptionSets).call(this);
|
|
32
38
|
}
|
|
33
|
-
get name() {
|
|
34
|
-
return commands_1.default.LIST_SITESCRIPT_GET;
|
|
35
|
-
}
|
|
36
|
-
get description() {
|
|
37
|
-
return 'Extracts a site script from a SharePoint list';
|
|
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 SpoListViewAddCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.LIST_VIEW_ADD;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Adds a new view to a SharePoint list.';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoListViewAddCommand_instances.add(this);
|
|
@@ -30,12 +36,6 @@ class SpoListViewAddCommand extends SpoCommand_1.default {
|
|
|
30
36
|
__classPrivateFieldGet(this, _SpoListViewAddCommand_instances, "m", _SpoListViewAddCommand_initValidators).call(this);
|
|
31
37
|
__classPrivateFieldGet(this, _SpoListViewAddCommand_instances, "m", _SpoListViewAddCommand_initOptionSets).call(this);
|
|
32
38
|
}
|
|
33
|
-
get name() {
|
|
34
|
-
return commands_1.default.LIST_VIEW_ADD;
|
|
35
|
-
}
|
|
36
|
-
get description() {
|
|
37
|
-
return 'Adds a new view to a SharePoint list.';
|
|
38
|
-
}
|
|
39
39
|
commandAction(logger, args) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
const requestOptions = {
|
|
@@ -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 SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.LIST_VIEW_FIELD_ADD;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Adds the specified field to list view';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoListViewFieldAddCommand_instances.add(this);
|
|
@@ -30,12 +36,6 @@ class SpoListViewFieldAddCommand extends SpoCommand_1.default {
|
|
|
30
36
|
__classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initValidators).call(this);
|
|
31
37
|
__classPrivateFieldGet(this, _SpoListViewFieldAddCommand_instances, "m", _SpoListViewFieldAddCommand_initOptionSets).call(this);
|
|
32
38
|
}
|
|
33
|
-
get name() {
|
|
34
|
-
return commands_1.default.LIST_VIEW_FIELD_ADD;
|
|
35
|
-
}
|
|
36
|
-
get description() {
|
|
37
|
-
return 'Adds the specified field to list view';
|
|
38
|
-
}
|
|
39
39
|
commandAction(logger, args) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
let listSelector = '';
|
|
@@ -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 SpoListViewFieldRemoveCommand extends SpoCommand_1.default {
|
|
26
|
+
get name() {
|
|
27
|
+
return commands_1.default.LIST_VIEW_FIELD_REMOVE;
|
|
28
|
+
}
|
|
29
|
+
get description() {
|
|
30
|
+
return 'Removes the specified field from list view';
|
|
31
|
+
}
|
|
26
32
|
constructor() {
|
|
27
33
|
super();
|
|
28
34
|
_SpoListViewFieldRemoveCommand_instances.add(this);
|
|
@@ -31,12 +37,6 @@ class SpoListViewFieldRemoveCommand extends SpoCommand_1.default {
|
|
|
31
37
|
__classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initValidators).call(this);
|
|
32
38
|
__classPrivateFieldGet(this, _SpoListViewFieldRemoveCommand_instances, "m", _SpoListViewFieldRemoveCommand_initOptionSets).call(this);
|
|
33
39
|
}
|
|
34
|
-
get name() {
|
|
35
|
-
return commands_1.default.LIST_VIEW_FIELD_REMOVE;
|
|
36
|
-
}
|
|
37
|
-
get description() {
|
|
38
|
-
return 'Removes the specified field from list view';
|
|
39
|
-
}
|
|
40
40
|
commandAction(logger, args) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
const removeFieldFromView = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -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 SpoListViewFieldSetCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.LIST_VIEW_FIELD_SET;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Updates existing column in an existing view (eg. move to a specific position).';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoListViewFieldSetCommand_instances.add(this);
|
|
@@ -30,12 +36,6 @@ class SpoListViewFieldSetCommand extends SpoCommand_1.default {
|
|
|
30
36
|
__classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initValidators).call(this);
|
|
31
37
|
__classPrivateFieldGet(this, _SpoListViewFieldSetCommand_instances, "m", _SpoListViewFieldSetCommand_initOptionSets).call(this);
|
|
32
38
|
}
|
|
33
|
-
get name() {
|
|
34
|
-
return commands_1.default.LIST_VIEW_FIELD_SET;
|
|
35
|
-
}
|
|
36
|
-
get description() {
|
|
37
|
-
return 'Updates existing column in an existing view (eg. move to a specific position).';
|
|
38
|
-
}
|
|
39
39
|
commandAction(logger, args) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
let listSelector = '';
|
|
@@ -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 SpoListViewGetCommand extends SpoCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.LIST_VIEW_GET;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Gets information about specific list view';
|
|
30
|
+
}
|
|
25
31
|
constructor() {
|
|
26
32
|
super();
|
|
27
33
|
_SpoListViewGetCommand_instances.add(this);
|
|
@@ -30,12 +36,6 @@ class SpoListViewGetCommand extends SpoCommand_1.default {
|
|
|
30
36
|
__classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initValidators).call(this);
|
|
31
37
|
__classPrivateFieldGet(this, _SpoListViewGetCommand_instances, "m", _SpoListViewGetCommand_initOptionSets).call(this);
|
|
32
38
|
}
|
|
33
|
-
get name() {
|
|
34
|
-
return commands_1.default.LIST_VIEW_GET;
|
|
35
|
-
}
|
|
36
|
-
get description() {
|
|
37
|
-
return 'Gets information about specific list view';
|
|
38
|
-
}
|
|
39
39
|
commandAction(logger, args) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
const baseRestUrl = `${args.options.webUrl}/_api/web`;
|