@pnp/cli-microsoft365 5.7.0-beta.b3dfced → 5.7.0-beta.bb14b6c
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/.devcontainer/Dockerfile +3 -1
- package/.devcontainer/devcontainer.json +1 -0
- package/dist/Command.js +186 -93
- package/dist/cli/Cli.js +11 -66
- package/dist/m365/aad/commands/app/app-add.js +235 -105
- package/dist/m365/aad/commands/app/app-get.js +37 -20
- package/dist/m365/aad/commands/app/app-remove.js +38 -21
- package/dist/m365/aad/commands/app/app-role-add.js +39 -23
- package/dist/m365/aad/commands/app/app-role-list.js +37 -19
- package/dist/m365/aad/commands/app/app-role-remove.js +40 -26
- package/dist/m365/aad/commands/app/app-set.js +47 -36
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +48 -32
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +43 -25
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +51 -36
- package/dist/m365/aad/commands/group/group-list.js +21 -12
- package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +30 -17
- package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +30 -12
- package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +39 -20
- package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +30 -12
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +40 -21
- package/dist/m365/aad/commands/o365group/o365group-add.js +64 -54
- package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +30 -12
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +43 -25
- package/dist/m365/aad/commands/o365group/o365group-get.js +32 -15
- package/dist/m365/aad/commands/o365group/o365group-list.js +49 -33
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +23 -14
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +26 -18
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +40 -32
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +46 -28
- package/dist/m365/aad/commands/o365group/o365group-remove.js +42 -24
- package/dist/m365/aad/commands/o365group/o365group-renew.js +30 -12
- package/dist/m365/aad/commands/o365group/o365group-set.js +54 -30
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +40 -15
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +46 -29
- package/dist/m365/aad/commands/o365group/o365group-user-list.js +40 -21
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +36 -28
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +46 -29
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +34 -18
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +30 -12
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +18 -12
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +18 -12
- package/dist/m365/aad/commands/policy/policy-list.js +38 -18
- package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +23 -14
- package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +30 -24
- package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +46 -29
- package/dist/m365/aad/commands/sp/sp-add.js +43 -25
- package/dist/m365/aad/commands/sp/sp-get.js +43 -25
- package/dist/m365/aad/commands/user/user-get.js +45 -28
- package/dist/m365/aad/commands/user/user-hibp.js +41 -23
- package/dist/m365/aad/commands/user/user-list.js +22 -14
- package/dist/m365/aad/commands/user/user-password-validate.js +16 -9
- package/dist/m365/aad/commands/user/user-set.js +43 -25
- package/dist/m365/aad/commands/user/user-signin-list.js +46 -29
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +54 -40
- package/dist/m365/app/commands/app-open.js +22 -21
- package/dist/m365/base/AppCommand.js +29 -13
- package/dist/m365/base/DateAndPeriodBasedReport.js +41 -24
- package/dist/m365/base/PeriodBasedReport.js +37 -18
- package/dist/m365/base/SpoCommand.js +1 -1
- package/dist/m365/booking/commands/business/business-get.js +86 -0
- package/dist/m365/booking/commands/business/business-list.js +30 -0
- package/dist/m365/booking/commands.js +8 -0
- package/dist/m365/cli/commands/cli-consent.js +38 -18
- package/dist/m365/cli/commands/cli-issue.js +26 -18
- package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +16 -9
- package/dist/m365/cli/commands/config/config-get.js +38 -18
- package/dist/m365/cli/commands/config/config-reset.js +38 -18
- package/dist/m365/cli/commands/config/config-set.js +38 -21
- package/dist/m365/commands/login.js +54 -42
- package/dist/m365/file/commands/convert/convert-pdf.js +32 -15
- package/dist/m365/file/commands/file-add.js +35 -12
- package/dist/m365/file/commands/file-list.js +31 -13
- package/dist/m365/flow/commands/environment/environment-get.js +16 -9
- package/dist/m365/flow/commands/flow-disable.js +20 -15
- package/dist/m365/flow/commands/flow-enable.js +20 -15
- package/dist/m365/flow/commands/flow-export.js +56 -43
- package/dist/m365/flow/commands/flow-get.js +20 -15
- package/dist/m365/flow/commands/flow-list.js +25 -17
- package/dist/m365/flow/commands/flow-remove.js +44 -27
- package/dist/m365/flow/commands/run/run-cancel.js +36 -21
- package/dist/m365/flow/commands/run/run-get.js +20 -15
- package/dist/m365/flow/commands/run/run-list.js +18 -12
- package/dist/m365/flow/commands/run/run-resubmit.js +43 -26
- package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +41 -27
- package/dist/m365/graph/commands/schemaextension/schemaextension-get.js +16 -9
- package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +47 -30
- package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +25 -17
- package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +63 -48
- package/dist/m365/graph/commands/subscription/subscription-add.js +52 -36
- package/dist/m365/outlook/commands/mail/mail-send.js +48 -32
- package/dist/m365/outlook/commands/message/message-list.js +42 -23
- package/dist/m365/outlook/commands/message/message-move.js +52 -36
- package/dist/m365/outlook/commands/room/room-list.js +23 -14
- package/dist/m365/pa/commands/app/app-get.js +40 -21
- package/dist/m365/pa/commands/app/app-list.js +40 -21
- package/dist/m365/pa/commands/app/app-remove.js +39 -20
- package/dist/m365/pa/commands/connector/connector-export.js +41 -18
- package/dist/m365/pa/commands/connector/connector-list.js +16 -9
- package/dist/m365/pa/commands/environment/environment-get.js +16 -9
- package/dist/m365/pa/commands/pcf/pcf-init.js +53 -50
- package/dist/m365/pa/commands/solution/solution-init.js +45 -38
- package/dist/m365/pa/commands/solution/solution-reference-add.js +40 -25
- package/dist/m365/planner/commands/bucket/bucket-add.js +54 -40
- package/dist/m365/planner/commands/bucket/bucket-get.js +49 -44
- package/dist/m365/planner/commands/bucket/bucket-list.js +51 -35
- package/dist/m365/planner/commands/bucket/bucket-remove.js +65 -54
- package/dist/m365/planner/commands/bucket/bucket-set.js +67 -57
- package/dist/m365/planner/commands/plan/plan-add.js +48 -32
- package/dist/m365/planner/commands/plan/plan-get.js +55 -40
- package/dist/m365/planner/commands/plan/plan-list.js +42 -23
- package/dist/m365/planner/commands/plan/plan-remove.js +43 -36
- package/dist/m365/planner/commands/task/task-add.js +56 -57
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +23 -16
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +18 -11
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +21 -14
- package/dist/m365/planner/commands/task/task-get.js +46 -36
- package/dist/m365/planner/commands/task/task-list.js +57 -43
- package/dist/m365/planner/commands/task/task-reference-add.js +39 -13
- package/dist/m365/planner/commands/task/task-reference-list.js +18 -11
- package/dist/m365/planner/commands/task/task-reference-remove.js +40 -25
- package/dist/m365/planner/commands/task/task-remove.js +46 -23
- package/dist/m365/planner/commands/task/task-set.js +52 -53
- package/dist/m365/planner/commands/tenant/tenant-settings-set.js +59 -44
- package/dist/m365/pp/commands/environment/environment-list.js +23 -9
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +37 -19
- package/dist/m365/search/commands/externalconnection/externalconnection-add.js +43 -26
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +29 -23
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +101 -0
- package/dist/m365/search/commands.js +2 -1
- package/dist/m365/spfx/commands/package/package-generate.js +46 -38
- package/dist/m365/spfx/commands/project/project-doctor.js +39 -22
- package/dist/m365/spfx/commands/project/project-externalize.js +15 -9
- package/dist/m365/spfx/commands/project/project-rename.js +23 -18
- package/dist/m365/spfx/commands/project/project-upgrade.js +53 -39
- package/dist/m365/spfx/commands/spfx-doctor.js +54 -19
- package/dist/m365/spo/commands/app/app-add.js +46 -29
- package/dist/m365/spo/commands/app/app-deploy.js +50 -34
- package/dist/m365/spo/commands/app/app-get.js +47 -30
- package/dist/m365/spo/commands/app/app-install.js +42 -24
- package/dist/m365/spo/commands/app/app-instance-list.js +30 -12
- package/dist/m365/spo/commands/app/app-list.js +41 -22
- package/dist/m365/spo/commands/app/app-remove.js +46 -29
- package/dist/m365/spo/commands/app/app-retract.js +46 -29
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +40 -24
- package/dist/m365/spo/commands/app/app-uninstall.js +45 -28
- package/dist/m365/spo/commands/app/app-upgrade.js +42 -24
- package/dist/m365/spo/commands/apppage/apppage-add.js +43 -26
- package/dist/m365/spo/commands/apppage/apppage-set.js +36 -29
- package/dist/m365/spo/commands/cdn/cdn-get.js +38 -16
- package/dist/m365/spo/commands/cdn/cdn-origin-add.js +40 -21
- package/dist/m365/spo/commands/cdn/cdn-origin-list.js +38 -16
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +43 -25
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +38 -16
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +44 -26
- package/dist/m365/spo/commands/cdn/cdn-set.js +45 -27
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +50 -32
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +52 -39
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +46 -35
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +48 -26
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +37 -15
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +48 -33
- package/dist/m365/spo/commands/customaction/customaction-add.js +143 -140
- package/dist/m365/spo/commands/customaction/customaction-clear.js +43 -28
- package/dist/m365/spo/commands/customaction/customaction-get.js +47 -32
- package/dist/m365/spo/commands/customaction/customaction-list.js +40 -21
- package/dist/m365/spo/commands/customaction/customaction-remove.js +50 -36
- package/dist/m365/spo/commands/customaction/customaction-set.js +129 -127
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +58 -46
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +49 -33
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +50 -34
- package/dist/m365/spo/commands/feature/feature-disable.js +48 -33
- package/dist/m365/spo/commands/feature/feature-enable.js +48 -33
- package/dist/m365/spo/commands/feature/feature-list.js +40 -21
- package/dist/m365/spo/commands/field/field-add.js +44 -21
- package/dist/m365/spo/commands/field/field-get.js +56 -44
- package/dist/m365/spo/commands/field/field-list.js +45 -28
- package/dist/m365/spo/commands/field/field-remove.js +62 -52
- package/dist/m365/spo/commands/field/field-set.js +57 -45
- package/dist/m365/spo/commands/file/file-add.js +72 -64
- package/dist/m365/spo/commands/file/file-checkin.js +49 -33
- package/dist/m365/spo/commands/file/file-checkout.js +42 -24
- package/dist/m365/spo/commands/file/file-copy.js +44 -30
- package/dist/m365/spo/commands/file/file-get.js +54 -40
- package/dist/m365/spo/commands/file/file-list.js +39 -18
- package/dist/m365/spo/commands/file/file-move.js +44 -30
- package/dist/m365/spo/commands/file/file-remove.js +48 -32
- package/dist/m365/spo/commands/file/file-rename.js +41 -26
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +42 -24
- package/dist/m365/spo/commands/folder/folder-add.js +32 -18
- package/dist/m365/spo/commands/folder/folder-copy.js +41 -26
- package/dist/m365/spo/commands/folder/folder-get.js +30 -15
- package/dist/m365/spo/commands/folder/folder-list.js +30 -15
- package/dist/m365/spo/commands/folder/folder-move.js +41 -26
- package/dist/m365/spo/commands/folder/folder-remove.js +42 -27
- package/dist/m365/spo/commands/folder/folder-rename.js +32 -18
- package/dist/m365/spo/commands/group/group-add.js +60 -44
- package/dist/m365/spo/commands/group/group-get.js +49 -34
- package/dist/m365/spo/commands/group/group-list.js +28 -12
- package/dist/m365/spo/commands/group/group-remove.js +45 -28
- package/dist/m365/spo/commands/group/group-set.js +74 -67
- package/dist/m365/spo/commands/group/group-user-add.js +48 -24
- package/dist/m365/spo/commands/group/group-user-list.js +42 -18
- package/dist/m365/spo/commands/group/group-user-remove.js +47 -31
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +37 -17
- package/dist/m365/spo/commands/homesite/homesite-remove.js +23 -14
- package/dist/m365/spo/commands/homesite/homesite-set.js +28 -12
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +32 -15
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +37 -20
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +37 -20
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +54 -39
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +20 -14
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +28 -12
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +35 -19
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +39 -23
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +48 -34
- package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +28 -12
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +37 -20
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +23 -14
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +28 -12
- package/dist/m365/spo/commands/list/list-add.js +321 -365
- package/dist/m365/spo/commands/list/list-contenttype-add.js +47 -32
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +47 -32
- package/dist/m365/spo/commands/list/list-contenttype-list.js +42 -24
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +50 -36
- package/dist/m365/spo/commands/list/list-get.js +48 -32
- package/dist/m365/spo/commands/list/list-label-get.js +42 -24
- package/dist/m365/spo/commands/list/list-label-set.js +56 -43
- package/dist/m365/spo/commands/list/list-list.js +37 -20
- package/dist/m365/spo/commands/list/list-remove.js +45 -28
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +208 -0
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +171 -0
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +48 -33
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +45 -29
- package/dist/m365/spo/commands/list/list-set.js +318 -362
- package/dist/m365/spo/commands/list/list-sitescript-get.js +42 -24
- package/dist/m365/spo/commands/list/list-view-add.js +48 -40
- package/dist/m365/spo/commands/list/list-view-field-add.js +57 -44
- package/dist/m365/spo/commands/list/list-view-field-remove.js +57 -44
- package/dist/m365/spo/commands/list/list-view-field-set.js +56 -43
- package/dist/m365/spo/commands/list/list-view-get.js +51 -36
- package/dist/m365/spo/commands/list/list-view-list.js +42 -24
- package/dist/m365/spo/commands/list/list-view-remove.js +51 -36
- package/dist/m365/spo/commands/list/list-view-set.js +48 -32
- package/dist/m365/spo/commands/list/list-webhook-add.js +54 -39
- package/dist/m365/spo/commands/list/list-webhook-get.js +45 -28
- package/dist/m365/spo/commands/list/list-webhook-list.js +48 -32
- package/dist/m365/spo/commands/list/list-webhook-remove.js +48 -32
- package/dist/m365/spo/commands/list/list-webhook-set.js +54 -39
- package/dist/m365/spo/commands/listitem/listitem-add.js +65 -57
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +44 -27
- package/dist/m365/spo/commands/listitem/listitem-get.js +49 -41
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +44 -27
- package/dist/m365/spo/commands/listitem/listitem-list.js +66 -66
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +47 -31
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +44 -27
- package/dist/m365/spo/commands/listitem/listitem-remove.js +50 -35
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +50 -29
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +47 -32
- package/dist/m365/spo/commands/listitem/listitem-set.js +68 -63
- package/dist/m365/spo/commands/mail/mail-send.js +52 -41
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +49 -34
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +40 -21
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +45 -28
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +43 -25
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +0 -4
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +18 -12
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +0 -4
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +37 -20
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +28 -12
- package/dist/m365/spo/commands/page/page-add.js +60 -48
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +59 -47
- package/dist/m365/spo/commands/page/page-column-get.js +36 -21
- package/dist/m365/spo/commands/page/page-column-list.js +34 -18
- package/dist/m365/spo/commands/page/page-control-get.js +34 -18
- package/dist/m365/spo/commands/page/page-control-list.js +30 -15
- package/dist/m365/spo/commands/page/page-control-set.js +46 -24
- package/dist/m365/spo/commands/page/page-copy.js +41 -26
- package/dist/m365/spo/commands/page/page-get.js +32 -18
- package/dist/m365/spo/commands/page/page-header-set.js +74 -66
- package/dist/m365/spo/commands/page/page-list.js +28 -12
- package/dist/m365/spo/commands/page/page-remove.js +32 -18
- package/dist/m365/spo/commands/page/page-section-add.js +43 -21
- package/dist/m365/spo/commands/page/page-section-get.js +34 -18
- package/dist/m365/spo/commands/page/page-section-list.js +30 -15
- package/dist/m365/spo/commands/page/page-set.js +62 -50
- package/dist/m365/spo/commands/page/page-template-list.js +28 -12
- package/dist/m365/spo/commands/page/page-text-add.js +49 -34
- package/dist/m365/spo/commands/propertybag/propertybag-get.js +39 -23
- package/dist/m365/spo/commands/propertybag/propertybag-list.js +37 -20
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +42 -33
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +41 -35
- package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +32 -15
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +28 -12
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +41 -23
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +18 -12
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +16 -7
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +30 -10
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +30 -10
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +40 -21
- package/dist/m365/spo/commands/site/site-add.js +101 -101
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +28 -17
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +28 -17
- package/dist/m365/spo/commands/site/site-apppermission-add.js +42 -28
- package/dist/m365/spo/commands/site/site-apppermission-get.js +30 -15
- package/dist/m365/spo/commands/site/site-apppermission-list.js +40 -25
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +46 -33
- package/dist/m365/spo/commands/site/site-apppermission-set.js +45 -32
- package/dist/m365/spo/commands/site/site-chrome-set.js +65 -53
- package/dist/m365/spo/commands/site/site-classic-add.js +66 -57
- package/dist/m365/spo/commands/site/site-classic-list.js +29 -22
- package/dist/m365/spo/commands/site/site-classic-set.js +74 -66
- package/dist/m365/spo/commands/site/site-commsite-enable.js +39 -20
- package/dist/m365/spo/commands/site/site-ensure.js +130 -131
- package/dist/m365/spo/commands/site/site-get.js +26 -10
- package/dist/m365/spo/commands/site/site-groupify.js +50 -38
- package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +39 -20
- package/dist/m365/spo/commands/site/site-list.js +52 -36
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +43 -19
- package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +32 -15
- package/dist/m365/spo/commands/site/site-remove.js +46 -32
- package/dist/m365/spo/commands/site/site-rename.js +50 -38
- package/dist/m365/spo/commands/site/site-set.js +97 -99
- package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +55 -41
- package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +41 -23
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +38 -16
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +39 -20
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +35 -19
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +30 -12
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +41 -23
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +39 -20
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +32 -15
- package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +64 -53
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +30 -12
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +28 -12
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +39 -20
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +41 -23
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +30 -12
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +39 -20
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +48 -32
- package/dist/m365/spo/commands/spo-search.js +123 -126
- package/dist/m365/spo/commands/spo-set.js +28 -12
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +16 -7
- package/dist/m365/spo/commands/storageentity/storageentity-list.js +28 -16
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +39 -29
- package/dist/m365/spo/commands/storageentity/storageentity-set.js +44 -36
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +46 -24
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +40 -24
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +37 -20
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +375 -443
- package/dist/m365/spo/commands/term/term-add.js +63 -52
- package/dist/m365/spo/commands/term/term-get.js +52 -37
- package/dist/m365/spo/commands/term/term-group-add.js +42 -24
- package/dist/m365/spo/commands/term/term-group-get.js +40 -21
- package/dist/m365/spo/commands/term/term-list.js +46 -29
- package/dist/m365/spo/commands/term/term-set-add.js +51 -36
- package/dist/m365/spo/commands/term/term-set-get.js +46 -29
- package/dist/m365/spo/commands/term/term-set-list.js +40 -21
- package/dist/m365/spo/commands/theme/theme-apply.js +41 -23
- package/dist/m365/spo/commands/theme/theme-get.js +16 -7
- package/dist/m365/spo/commands/theme/theme-remove.js +25 -17
- package/dist/m365/spo/commands/theme/theme-set.js +41 -21
- package/dist/m365/spo/commands/user/user-get.js +45 -28
- package/dist/m365/spo/commands/user/user-list.js +28 -12
- package/dist/m365/spo/commands/user/user-remove.js +45 -28
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +30 -12
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +20 -15
- package/dist/m365/spo/commands/web/web-add.js +54 -41
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +28 -12
- package/dist/m365/spo/commands/web/web-get.js +37 -20
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +28 -12
- package/dist/m365/spo/commands/web/web-list.js +28 -12
- package/dist/m365/spo/commands/web/web-reindex.js +25 -12
- package/dist/m365/spo/commands/web/web-remove.js +37 -20
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +63 -0
- package/dist/m365/spo/commands/web/web-set.js +70 -59
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/teams/commands/app/app-install.js +37 -13
- package/dist/m365/teams/commands/app/app-list.js +43 -25
- package/dist/m365/teams/commands/app/app-publish.js +30 -12
- package/dist/m365/teams/commands/app/app-remove.js +39 -20
- package/dist/m365/teams/commands/app/app-uninstall.js +41 -18
- package/dist/m365/teams/commands/app/app-update.js +42 -24
- package/dist/m365/teams/commands/cache/cache-remove.js +26 -18
- package/dist/m365/teams/commands/channel/channel-add.js +52 -37
- package/dist/m365/teams/commands/channel/channel-get.js +47 -34
- package/dist/m365/teams/commands/channel/channel-list.js +43 -25
- package/dist/m365/teams/commands/channel/channel-member-add.js +65 -55
- package/dist/m365/teams/commands/channel/channel-member-list.js +50 -37
- package/dist/m365/teams/commands/channel/channel-member-remove.js +60 -54
- package/dist/m365/teams/commands/channel/channel-member-set.js +58 -48
- package/dist/m365/teams/commands/channel/channel-remove.js +45 -28
- package/dist/m365/teams/commands/channel/channel-set.js +50 -33
- package/dist/m365/teams/commands/chat/chat-get.js +63 -54
- package/dist/m365/teams/commands/chat/chat-list.js +38 -12
- package/dist/m365/teams/commands/chat/chat-member-list.js +30 -12
- package/dist/m365/teams/commands/chat/chat-message-list.js +30 -12
- package/dist/m365/teams/commands/chat/chat-message-send.js +62 -57
- package/dist/m365/teams/commands/chat/chatUtil.js +0 -12
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +30 -12
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +48 -32
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +30 -12
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +41 -25
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +30 -12
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +47 -34
- package/dist/m365/teams/commands/message/message-get.js +34 -18
- package/dist/m365/teams/commands/message/message-list.js +41 -18
- package/dist/m365/teams/commands/message/message-reply-list.js +34 -18
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +30 -12
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +47 -34
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +39 -20
- package/dist/m365/teams/commands/report/report-pstncalls.js +39 -20
- package/dist/m365/teams/commands/tab/tab-add.js +59 -46
- package/dist/m365/teams/commands/tab/tab-get.js +50 -38
- package/dist/m365/teams/commands/tab/tab-list.js +32 -15
- package/dist/m365/teams/commands/tab/tab-remove.js +43 -26
- package/dist/m365/teams/commands/team/team-add.js +44 -30
- package/dist/m365/teams/commands/team/team-archive.js +46 -26
- package/dist/m365/teams/commands/team/team-clone.js +75 -64
- package/dist/m365/teams/commands/team/team-get.js +40 -21
- package/dist/m365/teams/commands/team/team-list.js +23 -14
- package/dist/m365/teams/commands/team/team-remove.js +43 -26
- package/dist/m365/teams/commands/team/team-set.js +55 -44
- package/dist/m365/teams/commands/team/team-unarchive.js +34 -18
- package/dist/m365/teams/commands/user/user-app-add.js +32 -15
- package/dist/m365/teams/commands/user/user-app-list.js +40 -21
- package/dist/m365/teams/commands/user/user-app-remove.js +41 -23
- package/dist/m365/teams/commands/user/user-list.js +38 -22
- package/dist/m365/tenant/commands/id/id-get.js +23 -9
- package/dist/m365/tenant/commands/security/security-alerts-list.js +22 -13
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +22 -14
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +22 -13
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +16 -9
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +16 -9
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +30 -12
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +23 -9
- package/dist/m365/todo/commands/list/list-add.js +16 -9
- package/dist/m365/todo/commands/list/list-remove.js +43 -25
- package/dist/m365/todo/commands/list/list-set.js +42 -27
- package/dist/m365/todo/commands/task/task-add.js +42 -24
- package/dist/m365/todo/commands/task/task-list.js +40 -21
- package/dist/m365/todo/commands/task/task-remove.js +45 -28
- package/dist/m365/todo/commands/task/task-set.js +58 -45
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +25 -12
- package/dist/m365/viva/commands/connections/connections-app-create.js +28 -21
- package/dist/m365/yammer/commands/group/group-list.js +37 -21
- package/dist/m365/yammer/commands/group/group-user-add.js +42 -24
- package/dist/m365/yammer/commands/group/group-user-remove.js +42 -24
- package/dist/m365/yammer/commands/message/message-add.js +48 -32
- package/dist/m365/yammer/commands/message/message-get.js +30 -12
- package/dist/m365/yammer/commands/message/message-like-set.js +39 -24
- package/dist/m365/yammer/commands/message/message-list.js +50 -38
- package/dist/m365/yammer/commands/message/message-remove.js +39 -20
- package/dist/m365/yammer/commands/network/network-list.js +23 -14
- package/dist/m365/yammer/commands/user/user-get.js +40 -21
- package/dist/m365/yammer/commands/user/user-list.js +47 -34
- package/dist/m365/yammer/commands/yammer-search.js +40 -25
- package/docs/docs/cmd/aad/app/app-add.md +12 -1
- package/docs/docs/cmd/aad/app/app-set.md +1 -1
- package/docs/docs/cmd/booking/business/business-get.md +33 -0
- package/docs/docs/cmd/booking/business/business-list.md +21 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +40 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +78 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +54 -0
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +1 -1
- package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +1 -1
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +24 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +11 -1
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _SpoFileGetCommand_instances, _SpoFileGetCommand_initTelemetry, _SpoFileGetCommand_initOptions, _SpoFileGetCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const fs = require("fs");
|
|
4
19
|
const path = require("path");
|
|
@@ -7,22 +22,19 @@ const utils_1 = require("../../../../utils");
|
|
|
7
22
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
8
23
|
const commands_1 = require("../../commands");
|
|
9
24
|
class SpoFileGetCommand extends SpoCommand_1.default {
|
|
25
|
+
constructor() {
|
|
26
|
+
super();
|
|
27
|
+
_SpoFileGetCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initValidators).call(this);
|
|
31
|
+
}
|
|
10
32
|
get name() {
|
|
11
33
|
return commands_1.default.FILE_GET;
|
|
12
34
|
}
|
|
13
35
|
get description() {
|
|
14
36
|
return 'Gets information about the specified file';
|
|
15
37
|
}
|
|
16
|
-
getTelemetryProperties(args) {
|
|
17
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
18
|
-
telemetryProps.id = (!(!args.options.id)).toString();
|
|
19
|
-
telemetryProps.url = (!(!args.options.url)).toString();
|
|
20
|
-
telemetryProps.asString = args.options.asString || false;
|
|
21
|
-
telemetryProps.asListItem = args.options.asListItem || false;
|
|
22
|
-
telemetryProps.asFile = args.options.asFile || false;
|
|
23
|
-
telemetryProps.path = (!(!args.options.path)).toString();
|
|
24
|
-
return telemetryProps;
|
|
25
|
-
}
|
|
26
38
|
getExcludedOptionsWithUrls() {
|
|
27
39
|
return ['url'];
|
|
28
40
|
}
|
|
@@ -99,34 +111,36 @@ class SpoFileGetCommand extends SpoCommand_1.default {
|
|
|
99
111
|
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
100
112
|
}
|
|
101
113
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
114
|
+
}
|
|
115
|
+
_SpoFileGetCommand_instances = new WeakSet(), _SpoFileGetCommand_initTelemetry = function _SpoFileGetCommand_initTelemetry() {
|
|
116
|
+
this.telemetry.push((args) => {
|
|
117
|
+
Object.assign(this.telemetryProperties, {
|
|
118
|
+
id: (!(!args.options.id)).toString(),
|
|
119
|
+
url: (!(!args.options.url)).toString(),
|
|
120
|
+
asString: args.options.asString || false,
|
|
121
|
+
asListItem: args.options.asListItem || false,
|
|
122
|
+
asFile: args.options.asFile || false,
|
|
123
|
+
path: (!(!args.options.path)).toString()
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
}, _SpoFileGetCommand_initOptions = function _SpoFileGetCommand_initOptions() {
|
|
127
|
+
this.options.unshift({
|
|
128
|
+
option: '-w, --webUrl <webUrl>'
|
|
129
|
+
}, {
|
|
130
|
+
option: '-u, --url [url]'
|
|
131
|
+
}, {
|
|
132
|
+
option: '-i, --id [id]'
|
|
133
|
+
}, {
|
|
134
|
+
option: '--asString'
|
|
135
|
+
}, {
|
|
136
|
+
option: '--asListItem'
|
|
137
|
+
}, {
|
|
138
|
+
option: '--asFile'
|
|
139
|
+
}, {
|
|
140
|
+
option: '-p, --path [path]'
|
|
141
|
+
});
|
|
142
|
+
}, _SpoFileGetCommand_initValidators = function _SpoFileGetCommand_initValidators() {
|
|
143
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
130
144
|
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
131
145
|
if (isValidSharePointUrl !== true) {
|
|
132
146
|
return isValidSharePointUrl;
|
|
@@ -159,7 +173,7 @@ class SpoFileGetCommand extends SpoCommand_1.default {
|
|
|
159
173
|
}
|
|
160
174
|
}
|
|
161
175
|
return true;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
176
|
+
}));
|
|
177
|
+
};
|
|
164
178
|
module.exports = new SpoFileGetCommand();
|
|
165
179
|
//# sourceMappingURL=file-get.js.map
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _SpoFileListCommand_instances, _SpoFileListCommand_initTelemetry, _SpoFileListCommand_initOptions, _SpoFileListCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const request_1 = require("../../../../request");
|
|
4
19
|
const utils_1 = require("../../../../utils");
|
|
5
20
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
21
|
const commands_1 = require("../../commands");
|
|
7
22
|
class SpoFileListCommand extends SpoCommand_1.default {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
_SpoFileListCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initValidators).call(this);
|
|
29
|
+
}
|
|
8
30
|
get name() {
|
|
9
31
|
return commands_1.default.FILE_LIST;
|
|
10
32
|
}
|
|
@@ -51,24 +73,23 @@ class SpoFileListCommand extends SpoCommand_1.default {
|
|
|
51
73
|
}
|
|
52
74
|
}).then(() => files);
|
|
53
75
|
}
|
|
54
|
-
options() {
|
|
55
|
-
const options = [
|
|
56
|
-
{
|
|
57
|
-
option: '-u, --webUrl <webUrl>'
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
option: '-f, --folder <folder>'
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
option: '-r, --recursive'
|
|
64
|
-
}
|
|
65
|
-
];
|
|
66
|
-
const parentOptions = super.options();
|
|
67
|
-
return options.concat(parentOptions);
|
|
68
|
-
}
|
|
69
|
-
validate(args) {
|
|
70
|
-
return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
71
|
-
}
|
|
72
76
|
}
|
|
77
|
+
_SpoFileListCommand_instances = new WeakSet(), _SpoFileListCommand_initTelemetry = function _SpoFileListCommand_initTelemetry() {
|
|
78
|
+
this.telemetry.push((args) => {
|
|
79
|
+
Object.assign(this.telemetryProperties, {
|
|
80
|
+
recursive: args.options.recursive
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}, _SpoFileListCommand_initOptions = function _SpoFileListCommand_initOptions() {
|
|
84
|
+
this.options.unshift({
|
|
85
|
+
option: '-u, --webUrl <webUrl>'
|
|
86
|
+
}, {
|
|
87
|
+
option: '-f, --folder <folder>'
|
|
88
|
+
}, {
|
|
89
|
+
option: '-r, --recursive'
|
|
90
|
+
});
|
|
91
|
+
}, _SpoFileListCommand_initValidators = function _SpoFileListCommand_initValidators() {
|
|
92
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.webUrl); }));
|
|
93
|
+
};
|
|
73
94
|
module.exports = new SpoFileListCommand();
|
|
74
95
|
//# sourceMappingURL=file-list.js.map
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _SpoFileMoveCommand_instances, _SpoFileMoveCommand_initTelemetry, _SpoFileMoveCommand_initOptions, _SpoFileMoveCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const url = require("url");
|
|
4
19
|
const request_1 = require("../../../../request");
|
|
@@ -6,18 +21,19 @@ const utils_1 = require("../../../../utils");
|
|
|
6
21
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
7
22
|
const commands_1 = require("../../commands");
|
|
8
23
|
class SpoFileMoveCommand extends SpoCommand_1.default {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
_SpoFileMoveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoFileMoveCommand_instances, "m", _SpoFileMoveCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _SpoFileMoveCommand_instances, "m", _SpoFileMoveCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoFileMoveCommand_instances, "m", _SpoFileMoveCommand_initValidators).call(this);
|
|
30
|
+
}
|
|
9
31
|
get name() {
|
|
10
32
|
return commands_1.default.FILE_MOVE;
|
|
11
33
|
}
|
|
12
34
|
get description() {
|
|
13
35
|
return 'Moves a file to another location';
|
|
14
36
|
}
|
|
15
|
-
getTelemetryProperties(args) {
|
|
16
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
17
|
-
telemetryProps.deleteIfAlreadyExists = args.options.deleteIfAlreadyExists || false;
|
|
18
|
-
telemetryProps.allowSchemaMismatch = args.options.allowSchemaMismatch || false;
|
|
19
|
-
return telemetryProps;
|
|
20
|
-
}
|
|
21
37
|
getExcludedOptionsWithUrls() {
|
|
22
38
|
return ['targetUrl'];
|
|
23
39
|
}
|
|
@@ -153,30 +169,28 @@ class SpoFileMoveCommand extends SpoCommand_1.default {
|
|
|
153
169
|
}, (e) => reject(e));
|
|
154
170
|
});
|
|
155
171
|
}
|
|
156
|
-
options() {
|
|
157
|
-
const options = [
|
|
158
|
-
{
|
|
159
|
-
option: '-u, --webUrl <webUrl>'
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
option: '-s, --sourceUrl <sourceUrl>'
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
option: '-t, --targetUrl <targetUrl>'
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
option: '--deleteIfAlreadyExists'
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
option: '--allowSchemaMismatch'
|
|
172
|
-
}
|
|
173
|
-
];
|
|
174
|
-
const parentOptions = super.options();
|
|
175
|
-
return options.concat(parentOptions);
|
|
176
|
-
}
|
|
177
|
-
validate(args) {
|
|
178
|
-
return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
179
|
-
}
|
|
180
172
|
}
|
|
173
|
+
_SpoFileMoveCommand_instances = new WeakSet(), _SpoFileMoveCommand_initTelemetry = function _SpoFileMoveCommand_initTelemetry() {
|
|
174
|
+
this.telemetry.push((args) => {
|
|
175
|
+
Object.assign(this.telemetryProperties, {
|
|
176
|
+
deleteIfAlreadyExists: args.options.deleteIfAlreadyExists || false,
|
|
177
|
+
allowSchemaMismatch: args.options.allowSchemaMismatch || false
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
}, _SpoFileMoveCommand_initOptions = function _SpoFileMoveCommand_initOptions() {
|
|
181
|
+
this.options.unshift({
|
|
182
|
+
option: '-u, --webUrl <webUrl>'
|
|
183
|
+
}, {
|
|
184
|
+
option: '-s, --sourceUrl <sourceUrl>'
|
|
185
|
+
}, {
|
|
186
|
+
option: '-t, --targetUrl <targetUrl>'
|
|
187
|
+
}, {
|
|
188
|
+
option: '--deleteIfAlreadyExists'
|
|
189
|
+
}, {
|
|
190
|
+
option: '--allowSchemaMismatch'
|
|
191
|
+
});
|
|
192
|
+
}, _SpoFileMoveCommand_initValidators = function _SpoFileMoveCommand_initValidators() {
|
|
193
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.webUrl); }));
|
|
194
|
+
};
|
|
181
195
|
module.exports = new SpoFileMoveCommand();
|
|
182
196
|
//# sourceMappingURL=file-move.js.map
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _SpoFileRemoveCommand_instances, _SpoFileRemoveCommand_initTelemetry, _SpoFileRemoveCommand_initOptions, _SpoFileRemoveCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const cli_1 = require("../../../../cli");
|
|
4
19
|
const request_1 = require("../../../../request");
|
|
@@ -6,20 +21,19 @@ const utils_1 = require("../../../../utils");
|
|
|
6
21
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
7
22
|
const commands_1 = require("../../commands");
|
|
8
23
|
class SpoFileRemoveCommand extends SpoCommand_1.default {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
_SpoFileRemoveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoFileRemoveCommand_instances, "m", _SpoFileRemoveCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _SpoFileRemoveCommand_instances, "m", _SpoFileRemoveCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoFileRemoveCommand_instances, "m", _SpoFileRemoveCommand_initValidators).call(this);
|
|
30
|
+
}
|
|
9
31
|
get name() {
|
|
10
32
|
return commands_1.default.FILE_REMOVE;
|
|
11
33
|
}
|
|
12
34
|
get description() {
|
|
13
35
|
return 'Removes the specified file';
|
|
14
36
|
}
|
|
15
|
-
getTelemetryProperties(args) {
|
|
16
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
17
|
-
telemetryProps.id = (!(!args.options.id)).toString();
|
|
18
|
-
telemetryProps.url = (!(!args.options.url)).toString();
|
|
19
|
-
telemetryProps.recycle = (!(!args.options.recycle)).toString();
|
|
20
|
-
telemetryProps.confirm = (!(!args.options.confirm)).toString();
|
|
21
|
-
return telemetryProps;
|
|
22
|
-
}
|
|
23
37
|
getExcludedOptionsWithUrls() {
|
|
24
38
|
return ['url'];
|
|
25
39
|
}
|
|
@@ -85,28 +99,30 @@ class SpoFileRemoveCommand extends SpoCommand_1.default {
|
|
|
85
99
|
});
|
|
86
100
|
}
|
|
87
101
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
}
|
|
103
|
+
_SpoFileRemoveCommand_instances = new WeakSet(), _SpoFileRemoveCommand_initTelemetry = function _SpoFileRemoveCommand_initTelemetry() {
|
|
104
|
+
this.telemetry.push((args) => {
|
|
105
|
+
Object.assign(this.telemetryProperties, {
|
|
106
|
+
id: (!(!args.options.id)).toString(),
|
|
107
|
+
url: (!(!args.options.url)).toString(),
|
|
108
|
+
recycle: (!(!args.options.recycle)).toString(),
|
|
109
|
+
confirm: (!(!args.options.confirm)).toString()
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
}, _SpoFileRemoveCommand_initOptions = function _SpoFileRemoveCommand_initOptions() {
|
|
113
|
+
this.options.unshift({
|
|
114
|
+
option: '-w, --webUrl <webUrl>'
|
|
115
|
+
}, {
|
|
116
|
+
option: '-i, --id [id]'
|
|
117
|
+
}, {
|
|
118
|
+
option: '-u, --url [url]'
|
|
119
|
+
}, {
|
|
120
|
+
option: '--recycle'
|
|
121
|
+
}, {
|
|
122
|
+
option: '--confirm'
|
|
123
|
+
});
|
|
124
|
+
}, _SpoFileRemoveCommand_initValidators = function _SpoFileRemoveCommand_initValidators() {
|
|
125
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
110
126
|
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
111
127
|
if (isValidSharePointUrl !== true) {
|
|
112
128
|
return isValidSharePointUrl;
|
|
@@ -122,7 +138,7 @@ class SpoFileRemoveCommand extends SpoCommand_1.default {
|
|
|
122
138
|
return 'Specify id or url';
|
|
123
139
|
}
|
|
124
140
|
return true;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
141
|
+
}));
|
|
142
|
+
};
|
|
127
143
|
module.exports = new SpoFileRemoveCommand();
|
|
128
144
|
//# sourceMappingURL=file-remove.js.map
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _SpoFileRenameCommand_instances, _SpoFileRenameCommand_initTelemetry, _SpoFileRenameCommand_initOptions, _SpoFileRenameCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const cli_1 = require("../../../../cli");
|
|
4
19
|
const request_1 = require("../../../../request");
|
|
@@ -7,17 +22,19 @@ const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
|
7
22
|
const commands_1 = require("../../commands");
|
|
8
23
|
const removeCommand = require('./file-remove');
|
|
9
24
|
class SpoFileRenameCommand extends SpoCommand_1.default {
|
|
25
|
+
constructor() {
|
|
26
|
+
super();
|
|
27
|
+
_SpoFileRenameCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _SpoFileRenameCommand_instances, "m", _SpoFileRenameCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoFileRenameCommand_instances, "m", _SpoFileRenameCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoFileRenameCommand_instances, "m", _SpoFileRenameCommand_initValidators).call(this);
|
|
31
|
+
}
|
|
10
32
|
get name() {
|
|
11
33
|
return commands_1.default.FILE_RENAME;
|
|
12
34
|
}
|
|
13
35
|
get description() {
|
|
14
36
|
return 'Renames a file';
|
|
15
37
|
}
|
|
16
|
-
getTelemetryProperties(args) {
|
|
17
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
18
|
-
telemetryProps.force = !!args.options.force;
|
|
19
|
-
return telemetryProps;
|
|
20
|
-
}
|
|
21
38
|
commandAction(logger, args, cb) {
|
|
22
39
|
const webUrl = args.options.webUrl;
|
|
23
40
|
const originalFileServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.sourceUrl);
|
|
@@ -82,27 +99,25 @@ class SpoFileRenameCommand extends SpoCommand_1.default {
|
|
|
82
99
|
return Promise.reject(err);
|
|
83
100
|
});
|
|
84
101
|
}
|
|
85
|
-
options() {
|
|
86
|
-
const options = [
|
|
87
|
-
{
|
|
88
|
-
option: '-u, --webUrl <webUrl>'
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
option: '-s, --sourceUrl <sourceUrl>'
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
option: '-t, --targetFileName <targetFileName>'
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
option: '--force'
|
|
98
|
-
}
|
|
99
|
-
];
|
|
100
|
-
const parentOptions = super.options();
|
|
101
|
-
return options.concat(parentOptions);
|
|
102
|
-
}
|
|
103
|
-
validate(args) {
|
|
104
|
-
return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
105
|
-
}
|
|
106
102
|
}
|
|
103
|
+
_SpoFileRenameCommand_instances = new WeakSet(), _SpoFileRenameCommand_initTelemetry = function _SpoFileRenameCommand_initTelemetry() {
|
|
104
|
+
this.telemetry.push((args) => {
|
|
105
|
+
Object.assign(this.telemetryProperties, {
|
|
106
|
+
force: !!args.options.force
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
}, _SpoFileRenameCommand_initOptions = function _SpoFileRenameCommand_initOptions() {
|
|
110
|
+
this.options.unshift({
|
|
111
|
+
option: '-u, --webUrl <webUrl>'
|
|
112
|
+
}, {
|
|
113
|
+
option: '-s, --sourceUrl <sourceUrl>'
|
|
114
|
+
}, {
|
|
115
|
+
option: '-t, --targetFileName <targetFileName>'
|
|
116
|
+
}, {
|
|
117
|
+
option: '--force'
|
|
118
|
+
});
|
|
119
|
+
}, _SpoFileRenameCommand_initValidators = function _SpoFileRenameCommand_initValidators() {
|
|
120
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.webUrl); }));
|
|
121
|
+
};
|
|
107
122
|
module.exports = new SpoFileRenameCommand();
|
|
108
123
|
//# sourceMappingURL=file-rename.js.map
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _SpoFileSharinginfoGetCommand_instances, _SpoFileSharinginfoGetCommand_initTelemetry, _SpoFileSharinginfoGetCommand_initOptions, _SpoFileSharinginfoGetCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const request_1 = require("../../../../request");
|
|
4
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -6,18 +21,19 @@ const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
|
6
21
|
const commands_1 = require("../../commands");
|
|
7
22
|
const FileSharingPrincipalType_1 = require("./FileSharingPrincipalType");
|
|
8
23
|
class SpoFileSharinginfoGetCommand extends SpoCommand_1.default {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
_SpoFileSharinginfoGetCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoFileSharinginfoGetCommand_instances, "m", _SpoFileSharinginfoGetCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _SpoFileSharinginfoGetCommand_instances, "m", _SpoFileSharinginfoGetCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoFileSharinginfoGetCommand_instances, "m", _SpoFileSharinginfoGetCommand_initValidators).call(this);
|
|
30
|
+
}
|
|
9
31
|
get name() {
|
|
10
32
|
return commands_1.default.FILE_SHARINGINFO_GET;
|
|
11
33
|
}
|
|
12
34
|
get description() {
|
|
13
35
|
return 'Generates a sharing information report for the specified file';
|
|
14
36
|
}
|
|
15
|
-
getTelemetryProperties(args) {
|
|
16
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
17
|
-
telemetryProps.id = (!(!args.options.id)).toString();
|
|
18
|
-
telemetryProps.url = (!(!args.options.url)).toString();
|
|
19
|
-
return telemetryProps;
|
|
20
|
-
}
|
|
21
37
|
getExcludedOptionsWithUrls() {
|
|
22
38
|
return ['url'];
|
|
23
39
|
}
|
|
@@ -92,22 +108,24 @@ class SpoFileSharinginfoGetCommand extends SpoCommand_1.default {
|
|
|
92
108
|
libraryName: res.ListItemAllFields.ParentList.Title
|
|
93
109
|
}));
|
|
94
110
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
}
|
|
112
|
+
_SpoFileSharinginfoGetCommand_instances = new WeakSet(), _SpoFileSharinginfoGetCommand_initTelemetry = function _SpoFileSharinginfoGetCommand_initTelemetry() {
|
|
113
|
+
this.telemetry.push((args) => {
|
|
114
|
+
Object.assign(this.telemetryProperties, {
|
|
115
|
+
id: (!(!args.options.id)).toString(),
|
|
116
|
+
url: (!(!args.options.url)).toString()
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
}, _SpoFileSharinginfoGetCommand_initOptions = function _SpoFileSharinginfoGetCommand_initOptions() {
|
|
120
|
+
this.options.unshift({
|
|
121
|
+
option: '-w, --webUrl <webUrl>'
|
|
122
|
+
}, {
|
|
123
|
+
option: '-i, --id [id]'
|
|
124
|
+
}, {
|
|
125
|
+
option: '-u, --url [url]'
|
|
126
|
+
});
|
|
127
|
+
}, _SpoFileSharinginfoGetCommand_initValidators = function _SpoFileSharinginfoGetCommand_initValidators() {
|
|
128
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
111
129
|
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
112
130
|
if (isValidSharePointUrl !== true) {
|
|
113
131
|
return isValidSharePointUrl;
|
|
@@ -124,7 +142,7 @@ class SpoFileSharinginfoGetCommand extends SpoCommand_1.default {
|
|
|
124
142
|
return 'Specify id or url, one is required';
|
|
125
143
|
}
|
|
126
144
|
return true;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
145
|
+
}));
|
|
146
|
+
};
|
|
129
147
|
module.exports = new SpoFileSharinginfoGetCommand();
|
|
130
148
|
//# sourceMappingURL=file-sharinginfo-get.js.map
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _SpoFolderAddCommand_instances, _SpoFolderAddCommand_initOptions, _SpoFolderAddCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const request_1 = require("../../../../request");
|
|
4
19
|
const utils_1 = require("../../../../utils");
|
|
5
20
|
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
21
|
const commands_1 = require("../../commands");
|
|
7
22
|
class SpoFolderAddCommand extends SpoCommand_1.default {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
_SpoFolderAddCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _SpoFolderAddCommand_instances, "m", _SpoFolderAddCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoFolderAddCommand_instances, "m", _SpoFolderAddCommand_initValidators).call(this);
|
|
28
|
+
}
|
|
8
29
|
get name() {
|
|
9
30
|
return commands_1.default.FOLDER_ADD;
|
|
10
31
|
}
|
|
@@ -35,24 +56,17 @@ class SpoFolderAddCommand extends SpoCommand_1.default {
|
|
|
35
56
|
cb();
|
|
36
57
|
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
37
58
|
}
|
|
38
|
-
options() {
|
|
39
|
-
const options = [
|
|
40
|
-
{
|
|
41
|
-
option: '-u, --webUrl <webUrl>'
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
option: '-p, --parentFolderUrl <parentFolderUrl>'
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
option: '-n, --name <name>'
|
|
48
|
-
}
|
|
49
|
-
];
|
|
50
|
-
const parentOptions = super.options();
|
|
51
|
-
return options.concat(parentOptions);
|
|
52
|
-
}
|
|
53
|
-
validate(args) {
|
|
54
|
-
return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
55
|
-
}
|
|
56
59
|
}
|
|
60
|
+
_SpoFolderAddCommand_instances = new WeakSet(), _SpoFolderAddCommand_initOptions = function _SpoFolderAddCommand_initOptions() {
|
|
61
|
+
this.options.unshift({
|
|
62
|
+
option: '-u, --webUrl <webUrl>'
|
|
63
|
+
}, {
|
|
64
|
+
option: '-p, --parentFolderUrl <parentFolderUrl>'
|
|
65
|
+
}, {
|
|
66
|
+
option: '-n, --name <name>'
|
|
67
|
+
});
|
|
68
|
+
}, _SpoFolderAddCommand_initValidators = function _SpoFolderAddCommand_initValidators() {
|
|
69
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.webUrl); }));
|
|
70
|
+
};
|
|
57
71
|
module.exports = new SpoFolderAddCommand();
|
|
58
72
|
//# sourceMappingURL=folder-add.js.map
|