@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 _TeamsTeamArchiveCommand_instances, _TeamsTeamArchiveCommand_initTelemetry, _TeamsTeamArchiveCommand_initOptions, _TeamsTeamArchiveCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const request_1 = require("../../../../request");
|
|
4
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -6,17 +21,19 @@ const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
|
6
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
7
22
|
const commands_1 = require("../../commands");
|
|
8
23
|
class TeamsTeamArchiveCommand extends GraphCommand_1.default {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
_TeamsTeamArchiveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _TeamsTeamArchiveCommand_instances, "m", _TeamsTeamArchiveCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _TeamsTeamArchiveCommand_instances, "m", _TeamsTeamArchiveCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsTeamArchiveCommand_instances, "m", _TeamsTeamArchiveCommand_initValidators).call(this);
|
|
30
|
+
}
|
|
9
31
|
get name() {
|
|
10
32
|
return commands_1.default.TEAM_ARCHIVE;
|
|
11
33
|
}
|
|
12
34
|
get description() {
|
|
13
35
|
return 'Archives specified Microsoft Teams team';
|
|
14
36
|
}
|
|
15
|
-
getTelemetryProperties(args) {
|
|
16
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
17
|
-
telemetryProps.shouldSetSpoSiteReadOnlyForMembers = args.options.shouldSetSpoSiteReadOnlyForMembers === true;
|
|
18
|
-
return telemetryProps;
|
|
19
|
-
}
|
|
20
37
|
getTeamId(args) {
|
|
21
38
|
if (args.options.id) {
|
|
22
39
|
return Promise.resolve(args.options.id);
|
|
@@ -54,25 +71,28 @@ class TeamsTeamArchiveCommand extends GraphCommand_1.default {
|
|
|
54
71
|
})
|
|
55
72
|
.then(_ => cb(), (res) => this.handleRejectedODataJsonPromise(res, logger, cb));
|
|
56
73
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
]
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
74
|
+
}
|
|
75
|
+
_TeamsTeamArchiveCommand_instances = new WeakSet(), _TeamsTeamArchiveCommand_initTelemetry = function _TeamsTeamArchiveCommand_initTelemetry() {
|
|
76
|
+
this.telemetry.push((args) => {
|
|
77
|
+
Object.assign(this.telemetryProperties, {
|
|
78
|
+
id: typeof args.options.id !== 'undefined',
|
|
79
|
+
name: typeof args.options.name !== 'undefined',
|
|
80
|
+
shouldSetSpoSiteReadOnlyForMembers: args.options.shouldSetSpoSiteReadOnlyForMembers === true,
|
|
81
|
+
teamId: typeof args.options.teamId !== 'undefined'
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}, _TeamsTeamArchiveCommand_initOptions = function _TeamsTeamArchiveCommand_initOptions() {
|
|
85
|
+
this.options.unshift({
|
|
86
|
+
option: '-i, --id [id]'
|
|
87
|
+
}, {
|
|
88
|
+
option: '-n, --name [name]'
|
|
89
|
+
}, {
|
|
90
|
+
option: '--teamId [teamId]'
|
|
91
|
+
}, {
|
|
92
|
+
option: '--shouldSetSpoSiteReadOnlyForMembers'
|
|
93
|
+
});
|
|
94
|
+
}, _TeamsTeamArchiveCommand_initValidators = function _TeamsTeamArchiveCommand_initValidators() {
|
|
95
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
76
96
|
if (!args.options.id && !args.options.name && !args.options.teamId) {
|
|
77
97
|
return 'Specify either id or name';
|
|
78
98
|
}
|
|
@@ -86,7 +106,7 @@ class TeamsTeamArchiveCommand extends GraphCommand_1.default {
|
|
|
86
106
|
return `${args.options.id} is not a valid GUID`;
|
|
87
107
|
}
|
|
88
108
|
return true;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
109
|
+
}));
|
|
110
|
+
};
|
|
91
111
|
module.exports = new TeamsTeamArchiveCommand();
|
|
92
112
|
//# sourceMappingURL=team-archive.js.map
|
|
@@ -1,26 +1,39 @@
|
|
|
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 _TeamsTeamCloneCommand_instances, _TeamsTeamCloneCommand_initTelemetry, _TeamsTeamCloneCommand_initOptions, _TeamsTeamCloneCommand_initValidators, _TeamsTeamCloneCommand_initOptionSets;
|
|
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 GraphCommand_1 = require("../../../base/GraphCommand");
|
|
6
21
|
const commands_1 = require("../../commands");
|
|
7
22
|
class TeamsTeamCloneCommand extends GraphCommand_1.default {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
_TeamsTeamCloneCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _TeamsTeamCloneCommand_instances, "m", _TeamsTeamCloneCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _TeamsTeamCloneCommand_instances, "m", _TeamsTeamCloneCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _TeamsTeamCloneCommand_instances, "m", _TeamsTeamCloneCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsTeamCloneCommand_instances, "m", _TeamsTeamCloneCommand_initOptionSets).call(this);
|
|
30
|
+
}
|
|
8
31
|
get name() {
|
|
9
32
|
return commands_1.default.TEAM_CLONE;
|
|
10
33
|
}
|
|
11
34
|
get description() {
|
|
12
35
|
return 'Creates a clone of a Microsoft Teams team';
|
|
13
36
|
}
|
|
14
|
-
getTelemetryProperties(args) {
|
|
15
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
16
|
-
telemetryProps.description = typeof args.options.description !== 'undefined';
|
|
17
|
-
telemetryProps.classification = typeof args.options.classification !== 'undefined';
|
|
18
|
-
telemetryProps.id = typeof args.options.id !== 'undefined';
|
|
19
|
-
telemetryProps.teamId = typeof args.options.teamId !== 'undefined';
|
|
20
|
-
telemetryProps.name = typeof args.options.name !== 'undefined';
|
|
21
|
-
telemetryProps.displayName = typeof args.options.displayName !== 'undefined';
|
|
22
|
-
return telemetryProps;
|
|
23
|
-
}
|
|
24
37
|
commandAction(logger, args, cb) {
|
|
25
38
|
if (args.options.teamId) {
|
|
26
39
|
args.options.id = args.options.teamId;
|
|
@@ -57,45 +70,55 @@ class TeamsTeamCloneCommand extends GraphCommand_1.default {
|
|
|
57
70
|
.post(requestOptions)
|
|
58
71
|
.then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
59
72
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
option: '-n, --name [name]'
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
option: '--displayName [displayName]'
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
option: '-p, --partsToClone <partsToClone>',
|
|
82
|
-
autocomplete: ['apps', 'channels', 'members', 'settings', 'tabs']
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
option: '-d, --description [description]'
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
option: '-c, --classification [classification]'
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
option: '-v, --visibility [visibility]',
|
|
92
|
-
autocomplete: ['Private', 'Public']
|
|
93
|
-
}
|
|
94
|
-
];
|
|
95
|
-
const parentOptions = super.options();
|
|
96
|
-
return options.concat(parentOptions);
|
|
73
|
+
/**
|
|
74
|
+
* There is a know issue that the mailNickname is currently ignored and cannot be set by the user
|
|
75
|
+
* However the mailNickname is still required by the payload so to deliver better user experience
|
|
76
|
+
* the CLI generates mailNickname for the user
|
|
77
|
+
* so the user does not have to specify something that will be ignored.
|
|
78
|
+
* For more see: https://docs.microsoft.com/en-us/graph/api/team-clone?view=graph-rest-1.0#request-data
|
|
79
|
+
* This method has to be removed once the graph team fixes the issue and then the actual value
|
|
80
|
+
* of the mailNickname would have to be specified by the CLI user.
|
|
81
|
+
* @param displayName teams display name
|
|
82
|
+
*/
|
|
83
|
+
generateMailNickname(displayName) {
|
|
84
|
+
// currently the Microsoft Graph generates mailNickname in a similar fashion
|
|
85
|
+
return `${displayName.replace(/[^a-zA-Z0-9]/g, "")}${Math.floor(Math.random() * 9999)}`;
|
|
97
86
|
}
|
|
98
|
-
|
|
87
|
+
}
|
|
88
|
+
_TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTelemetry = function _TeamsTeamCloneCommand_initTelemetry() {
|
|
89
|
+
this.telemetry.push((args) => {
|
|
90
|
+
Object.assign(this.telemetryProperties, {
|
|
91
|
+
description: typeof args.options.description !== 'undefined',
|
|
92
|
+
classification: typeof args.options.classification !== 'undefined',
|
|
93
|
+
visibility: typeof args.options.visibility !== 'undefined',
|
|
94
|
+
id: typeof args.options.id !== 'undefined',
|
|
95
|
+
teamId: typeof args.options.teamId !== 'undefined',
|
|
96
|
+
name: typeof args.options.name !== 'undefined',
|
|
97
|
+
displayName: typeof args.options.displayName !== 'undefined'
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
}, _TeamsTeamCloneCommand_initOptions = function _TeamsTeamCloneCommand_initOptions() {
|
|
101
|
+
this.options.unshift({
|
|
102
|
+
option: '-i, --id [teamId]'
|
|
103
|
+
}, {
|
|
104
|
+
option: '--teamId [teamId]'
|
|
105
|
+
}, {
|
|
106
|
+
option: '-n, --name [name]'
|
|
107
|
+
}, {
|
|
108
|
+
option: '--displayName [displayName]'
|
|
109
|
+
}, {
|
|
110
|
+
option: '-p, --partsToClone <partsToClone>',
|
|
111
|
+
autocomplete: ['apps', 'channels', 'members', 'settings', 'tabs']
|
|
112
|
+
}, {
|
|
113
|
+
option: '-d, --description [description]'
|
|
114
|
+
}, {
|
|
115
|
+
option: '-c, --classification [classification]'
|
|
116
|
+
}, {
|
|
117
|
+
option: '-v, --visibility [visibility]',
|
|
118
|
+
autocomplete: ['Private', 'Public']
|
|
119
|
+
});
|
|
120
|
+
}, _TeamsTeamCloneCommand_initValidators = function _TeamsTeamCloneCommand_initValidators() {
|
|
121
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
99
122
|
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
100
123
|
return `${args.options.teamId} is not a valid GUID`;
|
|
101
124
|
}
|
|
@@ -121,21 +144,9 @@ class TeamsTeamCloneCommand extends GraphCommand_1.default {
|
|
|
121
144
|
}
|
|
122
145
|
}
|
|
123
146
|
return true;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
* the CLI generates mailNickname for the user
|
|
129
|
-
* so the user does not have to specify something that will be ignored.
|
|
130
|
-
* For more see: https://docs.microsoft.com/en-us/graph/api/team-clone?view=graph-rest-1.0#request-data
|
|
131
|
-
* This method has to be removed once the graph team fixes the issue and then the actual value
|
|
132
|
-
* of the mailNickname would have to be specified by the CLI user.
|
|
133
|
-
* @param displayName teams display name
|
|
134
|
-
*/
|
|
135
|
-
generateMailNickname(displayName) {
|
|
136
|
-
// currently the Microsoft Graph generates mailNickname in a similar fashion
|
|
137
|
-
return `${displayName.replace(/[^a-zA-Z0-9]/g, "")}${Math.floor(Math.random() * 9999)}`;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
147
|
+
}));
|
|
148
|
+
}, _TeamsTeamCloneCommand_initOptionSets = function _TeamsTeamCloneCommand_initOptionSets() {
|
|
149
|
+
this.optionSets.push(['id', 'teamId'], ['name', 'displayName']);
|
|
150
|
+
};
|
|
140
151
|
module.exports = new TeamsTeamCloneCommand();
|
|
141
152
|
//# sourceMappingURL=team-clone.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 _TeamsTeamGetCommand_instances, _TeamsTeamGetCommand_initTelemetry, _TeamsTeamGetCommand_initOptions, _TeamsTeamGetCommand_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 aadGroup_1 = require("../../../../utils/aadGroup");
|
|
|
6
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
7
22
|
const commands_1 = require("../../commands");
|
|
8
23
|
class TeamsTeamGetCommand extends GraphCommand_1.default {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
_TeamsTeamGetCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _TeamsTeamGetCommand_instances, "m", _TeamsTeamGetCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _TeamsTeamGetCommand_instances, "m", _TeamsTeamGetCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsTeamGetCommand_instances, "m", _TeamsTeamGetCommand_initValidators).call(this);
|
|
30
|
+
}
|
|
9
31
|
get name() {
|
|
10
32
|
return commands_1.default.TEAM_GET;
|
|
11
33
|
}
|
|
12
34
|
get description() {
|
|
13
35
|
return 'Retrieve information about the specified Microsoft Team';
|
|
14
36
|
}
|
|
15
|
-
getTelemetryProperties(args) {
|
|
16
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
17
|
-
telemetryProps.id = typeof args.options.id !== 'undefined';
|
|
18
|
-
telemetryProps.name = typeof args.options.name !== 'undefined';
|
|
19
|
-
return telemetryProps;
|
|
20
|
-
}
|
|
21
37
|
getTeamId(args) {
|
|
22
38
|
if (args.options.id) {
|
|
23
39
|
return Promise.resolve(args.options.id);
|
|
@@ -49,19 +65,22 @@ class TeamsTeamGetCommand extends GraphCommand_1.default {
|
|
|
49
65
|
cb();
|
|
50
66
|
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
51
67
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
68
|
+
}
|
|
69
|
+
_TeamsTeamGetCommand_instances = new WeakSet(), _TeamsTeamGetCommand_initTelemetry = function _TeamsTeamGetCommand_initTelemetry() {
|
|
70
|
+
this.telemetry.push((args) => {
|
|
71
|
+
Object.assign(this.telemetryProperties, {
|
|
72
|
+
id: typeof args.options.id !== 'undefined',
|
|
73
|
+
name: typeof args.options.name !== 'undefined'
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
}, _TeamsTeamGetCommand_initOptions = function _TeamsTeamGetCommand_initOptions() {
|
|
77
|
+
this.options.unshift({
|
|
78
|
+
option: '-i, --id [id]'
|
|
79
|
+
}, {
|
|
80
|
+
option: '-n, --name [name]'
|
|
81
|
+
});
|
|
82
|
+
}, _TeamsTeamGetCommand_initValidators = function _TeamsTeamGetCommand_initValidators() {
|
|
83
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
65
84
|
if (args.options.id && args.options.name) {
|
|
66
85
|
return 'Specify either teamId or teamName, but not both.';
|
|
67
86
|
}
|
|
@@ -72,7 +91,7 @@ class TeamsTeamGetCommand extends GraphCommand_1.default {
|
|
|
72
91
|
return `${args.options.id} is not a valid GUID`;
|
|
73
92
|
}
|
|
74
93
|
return true;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
94
|
+
}));
|
|
95
|
+
};
|
|
77
96
|
module.exports = new TeamsTeamGetCommand();
|
|
78
97
|
//# sourceMappingURL=team-get.js.map
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
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");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _TeamsTeamListCommand_instances, _TeamsTeamListCommand_initTelemetry, _TeamsTeamListCommand_initOptions;
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
9
|
const request_1 = require("../../../../request");
|
|
4
10
|
const utils_1 = require("../../../../utils");
|
|
5
11
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
6
12
|
const commands_1 = require("../../commands");
|
|
7
13
|
class TeamsTeamListCommand extends GraphCommand_1.default {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
_TeamsTeamListCommand_instances.add(this);
|
|
17
|
+
__classPrivateFieldGet(this, _TeamsTeamListCommand_instances, "m", _TeamsTeamListCommand_initTelemetry).call(this);
|
|
18
|
+
__classPrivateFieldGet(this, _TeamsTeamListCommand_instances, "m", _TeamsTeamListCommand_initOptions).call(this);
|
|
19
|
+
}
|
|
8
20
|
get name() {
|
|
9
21
|
return commands_1.default.TEAM_LIST;
|
|
10
22
|
}
|
|
11
23
|
get description() {
|
|
12
24
|
return 'Lists Microsoft Teams in the current tenant';
|
|
13
25
|
}
|
|
14
|
-
getTelemetryProperties(args) {
|
|
15
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
16
|
-
telemetryProps.joined = args.options.joined;
|
|
17
|
-
return telemetryProps;
|
|
18
|
-
}
|
|
19
26
|
commandAction(logger, args, cb) {
|
|
20
27
|
let endpoint = `${this.resource}/v1.0/groups?$select=id,displayName,description,resourceProvisioningOptions`;
|
|
21
28
|
if (args.options.joined) {
|
|
@@ -72,15 +79,17 @@ class TeamsTeamListCommand extends GraphCommand_1.default {
|
|
|
72
79
|
});
|
|
73
80
|
});
|
|
74
81
|
}
|
|
75
|
-
options() {
|
|
76
|
-
const options = [
|
|
77
|
-
{
|
|
78
|
-
option: '-j, --joined'
|
|
79
|
-
}
|
|
80
|
-
];
|
|
81
|
-
const parentOptions = super.options();
|
|
82
|
-
return options.concat(parentOptions);
|
|
83
|
-
}
|
|
84
82
|
}
|
|
83
|
+
_TeamsTeamListCommand_instances = new WeakSet(), _TeamsTeamListCommand_initTelemetry = function _TeamsTeamListCommand_initTelemetry() {
|
|
84
|
+
this.telemetry.push((args) => {
|
|
85
|
+
Object.assign(this.telemetryProperties, {
|
|
86
|
+
joined: args.options.joined
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}, _TeamsTeamListCommand_initOptions = function _TeamsTeamListCommand_initOptions() {
|
|
90
|
+
this.options.unshift({
|
|
91
|
+
option: '-j, --joined'
|
|
92
|
+
});
|
|
93
|
+
};
|
|
85
94
|
module.exports = new TeamsTeamListCommand();
|
|
86
95
|
//# sourceMappingURL=team-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 _TeamsTeamRemoveCommand_instances, _TeamsTeamRemoveCommand_initTelemetry, _TeamsTeamRemoveCommand_initOptions, _TeamsTeamRemoveCommand_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 aadGroup_1 = require("../../../../utils/aadGroup");
|
|
|
7
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
8
23
|
const commands_1 = require("../../commands");
|
|
9
24
|
class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
25
|
+
constructor() {
|
|
26
|
+
super();
|
|
27
|
+
_TeamsTeamRemoveCommand_instances.add(this);
|
|
28
|
+
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initTelemetry).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initOptions).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _TeamsTeamRemoveCommand_instances, "m", _TeamsTeamRemoveCommand_initValidators).call(this);
|
|
31
|
+
}
|
|
10
32
|
get name() {
|
|
11
33
|
return commands_1.default.TEAM_REMOVE;
|
|
12
34
|
}
|
|
13
35
|
get description() {
|
|
14
36
|
return 'Removes the specified Microsoft Teams team';
|
|
15
37
|
}
|
|
16
|
-
getTelemetryProperties(args) {
|
|
17
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
18
|
-
telemetryProps.confirm = (!(!args.options.confirm)).toString();
|
|
19
|
-
return telemetryProps;
|
|
20
|
-
}
|
|
21
38
|
getTeamId(args) {
|
|
22
39
|
if (args.options.id) {
|
|
23
40
|
return Promise.resolve(args.options.id);
|
|
@@ -70,25 +87,25 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
70
87
|
});
|
|
71
88
|
}
|
|
72
89
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
}
|
|
91
|
+
_TeamsTeamRemoveCommand_instances = new WeakSet(), _TeamsTeamRemoveCommand_initTelemetry = function _TeamsTeamRemoveCommand_initTelemetry() {
|
|
92
|
+
this.telemetry.push((args) => {
|
|
93
|
+
Object.assign(this.telemetryProperties, {
|
|
94
|
+
confirm: (!(!args.options.confirm)).toString()
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}, _TeamsTeamRemoveCommand_initOptions = function _TeamsTeamRemoveCommand_initOptions() {
|
|
98
|
+
this.options.unshift({
|
|
99
|
+
option: '-i, --id [id]'
|
|
100
|
+
}, {
|
|
101
|
+
option: '-n, --name [name]'
|
|
102
|
+
}, {
|
|
103
|
+
option: '--teamId [teamId]'
|
|
104
|
+
}, {
|
|
105
|
+
option: '--confirm'
|
|
106
|
+
});
|
|
107
|
+
}, _TeamsTeamRemoveCommand_initValidators = function _TeamsTeamRemoveCommand_initValidators() {
|
|
108
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
92
109
|
if (!args.options.id && !args.options.name && !args.options.teamId) {
|
|
93
110
|
return 'Specify either id or name';
|
|
94
111
|
}
|
|
@@ -102,7 +119,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
102
119
|
return `${args.options.id} is not a valid GUID`;
|
|
103
120
|
}
|
|
104
121
|
return true;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
122
|
+
}));
|
|
123
|
+
};
|
|
107
124
|
module.exports = new TeamsTeamRemoveCommand();
|
|
108
125
|
//# sourceMappingURL=team-remove.js.map
|
|
@@ -1,23 +1,39 @@
|
|
|
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 _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators, _TeamsTeamSetCommand_initOptionSets;
|
|
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 GraphCommand_1 = require("../../../base/GraphCommand");
|
|
6
21
|
const commands_1 = require("../../commands");
|
|
7
22
|
class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
_TeamsTeamSetCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsTeamSetCommand_instances, "m", _TeamsTeamSetCommand_initOptionSets).call(this);
|
|
30
|
+
}
|
|
8
31
|
get name() {
|
|
9
32
|
return commands_1.default.TEAM_SET;
|
|
10
33
|
}
|
|
11
34
|
get description() {
|
|
12
35
|
return 'Updates settings of a Microsoft Teams team';
|
|
13
36
|
}
|
|
14
|
-
getTelemetryProperties(args) {
|
|
15
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
16
|
-
TeamsTeamSetCommand.props.forEach((p) => {
|
|
17
|
-
telemetryProps[p] = typeof args.options[p] !== 'undefined';
|
|
18
|
-
});
|
|
19
|
-
return telemetryProps;
|
|
20
|
-
}
|
|
21
37
|
mapRequestBody(options) {
|
|
22
38
|
const requestBody = {};
|
|
23
39
|
if (options.name) {
|
|
@@ -59,41 +75,34 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
|
59
75
|
.patch(requestOptions)
|
|
60
76
|
.then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
61
77
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
autocomplete: ['Private', 'Public']
|
|
91
|
-
}
|
|
92
|
-
];
|
|
93
|
-
const parentOptions = super.options();
|
|
94
|
-
return options.concat(parentOptions);
|
|
95
|
-
}
|
|
96
|
-
validate(args) {
|
|
78
|
+
}
|
|
79
|
+
_TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemetry = function _TeamsTeamSetCommand_initTelemetry() {
|
|
80
|
+
this.telemetry.push((args) => {
|
|
81
|
+
TeamsTeamSetCommand.props.forEach((p) => {
|
|
82
|
+
this.telemetryProperties[p] = typeof args.options[p] !== 'undefined';
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}, _TeamsTeamSetCommand_initOptions = function _TeamsTeamSetCommand_initOptions() {
|
|
86
|
+
this.options.unshift({
|
|
87
|
+
option: '-i, --id [id]'
|
|
88
|
+
}, {
|
|
89
|
+
option: '--teamId [teamId]'
|
|
90
|
+
}, {
|
|
91
|
+
option: '-n, --name [name]'
|
|
92
|
+
}, {
|
|
93
|
+
option: '--displayName [displayName]'
|
|
94
|
+
}, {
|
|
95
|
+
option: '--description [description]'
|
|
96
|
+
}, {
|
|
97
|
+
option: '--mailNickName [mailNickName]'
|
|
98
|
+
}, {
|
|
99
|
+
option: '--classification [classification]'
|
|
100
|
+
}, {
|
|
101
|
+
option: '--visibility [visibility]',
|
|
102
|
+
autocomplete: ['Private', 'Public']
|
|
103
|
+
});
|
|
104
|
+
}, _TeamsTeamSetCommand_initValidators = function _TeamsTeamSetCommand_initValidators() {
|
|
105
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
97
106
|
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
98
107
|
return `${args.options.teamId} is not a valid GUID`;
|
|
99
108
|
}
|
|
@@ -106,8 +115,10 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
117
|
return true;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
118
|
+
}));
|
|
119
|
+
}, _TeamsTeamSetCommand_initOptionSets = function _TeamsTeamSetCommand_initOptionSets() {
|
|
120
|
+
this.optionSets.push(['id', 'teamId']);
|
|
121
|
+
};
|
|
111
122
|
TeamsTeamSetCommand.props = [
|
|
112
123
|
'displayName',
|
|
113
124
|
'description',
|