@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,15 +1,34 @@
|
|
|
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 _TeamsChannelMemberSetCommand_instances, _TeamsChannelMemberSetCommand_initTelemetry, _TeamsChannelMemberSetCommand_initOptions, _TeamsChannelMemberSetCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const request_1 = require("../../../../request");
|
|
3
19
|
const utils_1 = require("../../../../utils");
|
|
20
|
+
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
4
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
22
|
const commands_1 = require("../../commands");
|
|
6
|
-
const request_1 = require("../../../../request");
|
|
7
|
-
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
8
23
|
class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
9
24
|
constructor() {
|
|
10
|
-
super(
|
|
25
|
+
super();
|
|
26
|
+
_TeamsChannelMemberSetCommand_instances.add(this);
|
|
11
27
|
this.teamId = '';
|
|
12
28
|
this.channelId = '';
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsChannelMemberSetCommand_instances, "m", _TeamsChannelMemberSetCommand_initTelemetry).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _TeamsChannelMemberSetCommand_instances, "m", _TeamsChannelMemberSetCommand_initOptions).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _TeamsChannelMemberSetCommand_instances, "m", _TeamsChannelMemberSetCommand_initValidators).call(this);
|
|
13
32
|
}
|
|
14
33
|
get name() {
|
|
15
34
|
return commands_1.default.CHANNEL_MEMBER_SET;
|
|
@@ -17,17 +36,6 @@ class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
|
17
36
|
get description() {
|
|
18
37
|
return 'Updates the role of the specified member in the specified Microsoft Teams private team channel';
|
|
19
38
|
}
|
|
20
|
-
getTelemetryProperties(args) {
|
|
21
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
22
|
-
telemetryProps.teamId = typeof args.options.teamId !== 'undefined';
|
|
23
|
-
telemetryProps.teamName = typeof args.options.teamName !== 'undefined';
|
|
24
|
-
telemetryProps.channelId = typeof args.options.channelId !== 'undefined';
|
|
25
|
-
telemetryProps.channelName = typeof args.options.channelName !== 'undefined';
|
|
26
|
-
telemetryProps.userName = typeof args.options.userName !== 'undefined';
|
|
27
|
-
telemetryProps.userId = typeof args.options.userId !== 'undefined';
|
|
28
|
-
telemetryProps.id = typeof args.options.id !== 'undefined';
|
|
29
|
-
return telemetryProps;
|
|
30
|
-
}
|
|
31
39
|
commandAction(logger, args, cb) {
|
|
32
40
|
this
|
|
33
41
|
.getTeamId(args)
|
|
@@ -125,38 +133,40 @@ class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
|
125
133
|
return Promise.resolve(conversationMember.id);
|
|
126
134
|
});
|
|
127
135
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
]
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
136
|
+
}
|
|
137
|
+
_TeamsChannelMemberSetCommand_instances = new WeakSet(), _TeamsChannelMemberSetCommand_initTelemetry = function _TeamsChannelMemberSetCommand_initTelemetry() {
|
|
138
|
+
this.telemetry.push((args) => {
|
|
139
|
+
Object.assign(this.telemetryProperties, {
|
|
140
|
+
teamId: typeof args.options.teamId !== 'undefined',
|
|
141
|
+
teamName: typeof args.options.teamName !== 'undefined',
|
|
142
|
+
channelId: typeof args.options.channelId !== 'undefined',
|
|
143
|
+
channelName: typeof args.options.channelName !== 'undefined',
|
|
144
|
+
userName: typeof args.options.userName !== 'undefined',
|
|
145
|
+
userId: typeof args.options.userId !== 'undefined',
|
|
146
|
+
id: typeof args.options.id !== 'undefined'
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
}, _TeamsChannelMemberSetCommand_initOptions = function _TeamsChannelMemberSetCommand_initOptions() {
|
|
150
|
+
this.options.unshift({
|
|
151
|
+
option: '--teamId [teamId]'
|
|
152
|
+
}, {
|
|
153
|
+
option: '--teamName [teamName]'
|
|
154
|
+
}, {
|
|
155
|
+
option: '--channelId [channelId]'
|
|
156
|
+
}, {
|
|
157
|
+
option: '--channelName [channelName]'
|
|
158
|
+
}, {
|
|
159
|
+
option: '--userName [userName]'
|
|
160
|
+
}, {
|
|
161
|
+
option: '--userId [userId]'
|
|
162
|
+
}, {
|
|
163
|
+
option: '--id [id]'
|
|
164
|
+
}, {
|
|
165
|
+
option: '-r, --role <role>',
|
|
166
|
+
autocomplete: ['owner', 'member']
|
|
167
|
+
});
|
|
168
|
+
}, _TeamsChannelMemberSetCommand_initValidators = function _TeamsChannelMemberSetCommand_initValidators() {
|
|
169
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
160
170
|
if (args.options.teamId && args.options.teamName) {
|
|
161
171
|
return 'Specify either teamId or teamName, but not both';
|
|
162
172
|
}
|
|
@@ -190,7 +200,7 @@ class TeamsChannelMemberSetCommand extends GraphCommand_1.default {
|
|
|
190
200
|
return `${args.options.role} is not a valid role value. Allowed values owner|member`;
|
|
191
201
|
}
|
|
192
202
|
return true;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
203
|
+
}));
|
|
204
|
+
};
|
|
195
205
|
module.exports = new TeamsChannelMemberSetCommand();
|
|
196
206
|
//# sourceMappingURL=channel-member-set.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 _TeamsChannelRemoveCommand_instances, _TeamsChannelRemoveCommand_initTelemetry, _TeamsChannelRemoveCommand_initOptions, _TeamsChannelRemoveCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const cli_1 = require("../../../../cli");
|
|
4
19
|
const request_1 = require("../../../../request");
|
|
@@ -6,19 +21,19 @@ const utils_1 = require("../../../../utils");
|
|
|
6
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
7
22
|
const commands_1 = require("../../commands");
|
|
8
23
|
class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
_TeamsChannelRemoveCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _TeamsChannelRemoveCommand_instances, "m", _TeamsChannelRemoveCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _TeamsChannelRemoveCommand_instances, "m", _TeamsChannelRemoveCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _TeamsChannelRemoveCommand_instances, "m", _TeamsChannelRemoveCommand_initValidators).call(this);
|
|
30
|
+
}
|
|
9
31
|
get name() {
|
|
10
32
|
return commands_1.default.CHANNEL_REMOVE;
|
|
11
33
|
}
|
|
12
34
|
get description() {
|
|
13
35
|
return 'Removes the specified channel in the Microsoft Teams team';
|
|
14
36
|
}
|
|
15
|
-
getTelemetryProperties(args) {
|
|
16
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
17
|
-
telemetryProps.channelId = typeof args.options.channelId !== 'undefined';
|
|
18
|
-
telemetryProps.channelName = typeof args.options.channelName !== 'undefined';
|
|
19
|
-
telemetryProps.confirm = (!(!args.options.confirm)).toString();
|
|
20
|
-
return telemetryProps;
|
|
21
|
-
}
|
|
22
37
|
commandAction(logger, args, cb) {
|
|
23
38
|
const removeChannel = () => {
|
|
24
39
|
if (args.options.channelName) {
|
|
@@ -81,25 +96,27 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
|
81
96
|
});
|
|
82
97
|
}
|
|
83
98
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
}
|
|
100
|
+
_TeamsChannelRemoveCommand_instances = new WeakSet(), _TeamsChannelRemoveCommand_initTelemetry = function _TeamsChannelRemoveCommand_initTelemetry() {
|
|
101
|
+
this.telemetry.push((args) => {
|
|
102
|
+
Object.assign(this.telemetryProperties, {
|
|
103
|
+
channelId: typeof args.options.channelId !== 'undefined',
|
|
104
|
+
channelName: typeof args.options.channelName !== 'undefined',
|
|
105
|
+
confirm: (!(!args.options.confirm)).toString()
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
}, _TeamsChannelRemoveCommand_initOptions = function _TeamsChannelRemoveCommand_initOptions() {
|
|
109
|
+
this.options.unshift({
|
|
110
|
+
option: '-c, --channelId [channelId]'
|
|
111
|
+
}, {
|
|
112
|
+
option: '-n, --channelName [channelName]'
|
|
113
|
+
}, {
|
|
114
|
+
option: '-i, --teamId <teamId>'
|
|
115
|
+
}, {
|
|
116
|
+
option: '--confirm'
|
|
117
|
+
});
|
|
118
|
+
}, _TeamsChannelRemoveCommand_initValidators = function _TeamsChannelRemoveCommand_initValidators() {
|
|
119
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
103
120
|
if (args.options.channelId && args.options.channelName) {
|
|
104
121
|
return 'Specify channelId or channelName but not both';
|
|
105
122
|
}
|
|
@@ -113,7 +130,7 @@ class TeamsChannelRemoveCommand extends GraphCommand_1.default {
|
|
|
113
130
|
return `${args.options.teamId} is not a valid GUID`;
|
|
114
131
|
}
|
|
115
132
|
return true;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
133
|
+
}));
|
|
134
|
+
};
|
|
118
135
|
module.exports = new TeamsChannelRemoveCommand();
|
|
119
136
|
//# sourceMappingURL=channel-remove.js.map
|
|
@@ -1,22 +1,38 @@
|
|
|
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 _TeamsChannelSetCommand_instances, _TeamsChannelSetCommand_initTelemetry, _TeamsChannelSetCommand_initOptions, _TeamsChannelSetCommand_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 GraphCommand_1 = require("../../../base/GraphCommand");
|
|
6
21
|
const commands_1 = require("../../commands");
|
|
7
22
|
class TeamsChannelSetCommand extends GraphCommand_1.default {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
_TeamsChannelSetCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _TeamsChannelSetCommand_instances, "m", _TeamsChannelSetCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _TeamsChannelSetCommand_instances, "m", _TeamsChannelSetCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _TeamsChannelSetCommand_instances, "m", _TeamsChannelSetCommand_initValidators).call(this);
|
|
29
|
+
}
|
|
8
30
|
get name() {
|
|
9
31
|
return commands_1.default.CHANNEL_SET;
|
|
10
32
|
}
|
|
11
33
|
get description() {
|
|
12
34
|
return 'Updates properties of the specified channel in the given Microsoft Teams team';
|
|
13
35
|
}
|
|
14
|
-
getTelemetryProperties(args) {
|
|
15
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
16
|
-
telemetryProps.newChannelName = typeof args.options.newChannelName !== 'undefined';
|
|
17
|
-
telemetryProps.description = typeof args.options.description !== 'undefined';
|
|
18
|
-
return telemetryProps;
|
|
19
|
-
}
|
|
20
36
|
commandAction(logger, args, cb) {
|
|
21
37
|
const requestOptions = {
|
|
22
38
|
url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}/channels?$filter=displayName eq '${encodeURIComponent(args.options.channelName)}'`,
|
|
@@ -46,33 +62,6 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
|
|
|
46
62
|
})
|
|
47
63
|
.then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
48
64
|
}
|
|
49
|
-
options() {
|
|
50
|
-
const options = [
|
|
51
|
-
{
|
|
52
|
-
option: '-i, --teamId <teamId>'
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
option: '--channelName <channelName>'
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
option: '--newChannelName [newChannelName]'
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
option: '--description [description]'
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
const parentOptions = super.options();
|
|
65
|
-
return options.concat(parentOptions);
|
|
66
|
-
}
|
|
67
|
-
validate(args) {
|
|
68
|
-
if (!utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
69
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
70
|
-
}
|
|
71
|
-
if (args.options.channelName.toLowerCase() === "general") {
|
|
72
|
-
return 'General channel cannot be updated';
|
|
73
|
-
}
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
65
|
mapRequestBody(options) {
|
|
77
66
|
const requestBody = {};
|
|
78
67
|
if (options.newChannelName) {
|
|
@@ -84,5 +73,33 @@ class TeamsChannelSetCommand extends GraphCommand_1.default {
|
|
|
84
73
|
return requestBody;
|
|
85
74
|
}
|
|
86
75
|
}
|
|
76
|
+
_TeamsChannelSetCommand_instances = new WeakSet(), _TeamsChannelSetCommand_initTelemetry = function _TeamsChannelSetCommand_initTelemetry() {
|
|
77
|
+
this.telemetry.push((args) => {
|
|
78
|
+
Object.assign(this.telemetryProperties, {
|
|
79
|
+
newChannelName: typeof args.options.newChannelName !== 'undefined',
|
|
80
|
+
description: typeof args.options.description !== 'undefined'
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}, _TeamsChannelSetCommand_initOptions = function _TeamsChannelSetCommand_initOptions() {
|
|
84
|
+
this.options.unshift({
|
|
85
|
+
option: '-i, --teamId <teamId>'
|
|
86
|
+
}, {
|
|
87
|
+
option: '--channelName <channelName>'
|
|
88
|
+
}, {
|
|
89
|
+
option: '--newChannelName [newChannelName]'
|
|
90
|
+
}, {
|
|
91
|
+
option: '--description [description]'
|
|
92
|
+
});
|
|
93
|
+
}, _TeamsChannelSetCommand_initValidators = function _TeamsChannelSetCommand_initValidators() {
|
|
94
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
if (!utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
96
|
+
return `${args.options.teamId} is not a valid GUID`;
|
|
97
|
+
}
|
|
98
|
+
if (args.options.channelName.toLowerCase() === "general") {
|
|
99
|
+
return 'General channel cannot be updated';
|
|
100
|
+
}
|
|
101
|
+
return true;
|
|
102
|
+
}));
|
|
103
|
+
};
|
|
87
104
|
module.exports = new TeamsChannelSetCommand();
|
|
88
105
|
//# sourceMappingURL=channel-set.js.map
|
|
@@ -8,29 +8,35 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
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 _TeamsChatGetCommand_instances, _TeamsChatGetCommand_initTelemetry, _TeamsChatGetCommand_initOptions, _TeamsChatGetCommand_initValidators;
|
|
11
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const Auth_1 = require("../../../../Auth");
|
|
13
18
|
const os = require("os");
|
|
19
|
+
const Auth_1 = require("../../../../Auth");
|
|
14
20
|
const request_1 = require("../../../../request");
|
|
21
|
+
const accessToken_1 = require("../../../../utils/accessToken");
|
|
22
|
+
const validation_1 = require("../../../../utils/validation");
|
|
15
23
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
16
24
|
const commands_1 = require("../../commands");
|
|
17
|
-
const validation_1 = require("../../../../utils/validation");
|
|
18
|
-
const accessToken_1 = require("../../../../utils/accessToken");
|
|
19
25
|
const chatUtil_1 = require("./chatUtil");
|
|
20
26
|
class TeamsChatGetCommand extends GraphCommand_1.default {
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
_TeamsChatGetCommand_instances.add(this);
|
|
30
|
+
__classPrivateFieldGet(this, _TeamsChatGetCommand_instances, "m", _TeamsChatGetCommand_initTelemetry).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _TeamsChatGetCommand_instances, "m", _TeamsChatGetCommand_initOptions).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _TeamsChatGetCommand_instances, "m", _TeamsChatGetCommand_initValidators).call(this);
|
|
33
|
+
}
|
|
21
34
|
get name() {
|
|
22
35
|
return commands_1.default.CHAT_GET;
|
|
23
36
|
}
|
|
24
37
|
get description() {
|
|
25
38
|
return 'Get a Microsoft Teams chat conversation by id, participants or chat name.';
|
|
26
39
|
}
|
|
27
|
-
getTelemetryProperties(args) {
|
|
28
|
-
const telemetryProps = super.getTelemetryProperties(args);
|
|
29
|
-
telemetryProps.id = typeof args.options.id !== 'undefined';
|
|
30
|
-
telemetryProps.participants = typeof args.options.participants !== 'undefined';
|
|
31
|
-
telemetryProps.name = typeof args.options.name !== 'undefined';
|
|
32
|
-
return telemetryProps;
|
|
33
|
-
}
|
|
34
40
|
commandAction(logger, args, cb) {
|
|
35
41
|
this
|
|
36
42
|
.getChatId(args)
|
|
@@ -40,49 +46,6 @@ class TeamsChatGetCommand extends GraphCommand_1.default {
|
|
|
40
46
|
cb();
|
|
41
47
|
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
42
48
|
}
|
|
43
|
-
options() {
|
|
44
|
-
const options = [
|
|
45
|
-
{
|
|
46
|
-
option: '-i, --id [id]'
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
option: '-p, --participants [participants]'
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
option: '-n, --name [name]'
|
|
53
|
-
}
|
|
54
|
-
];
|
|
55
|
-
const parentOptions = super.options();
|
|
56
|
-
return options.concat(parentOptions);
|
|
57
|
-
}
|
|
58
|
-
validate(args) {
|
|
59
|
-
if (!args.options.id && !args.options.participants && !args.options.name) {
|
|
60
|
-
return 'Specify id or participants or name, one is required.';
|
|
61
|
-
}
|
|
62
|
-
let nrOfMutuallyExclusiveOptionsInUse = 0;
|
|
63
|
-
if (args.options.id) {
|
|
64
|
-
nrOfMutuallyExclusiveOptionsInUse++;
|
|
65
|
-
}
|
|
66
|
-
if (args.options.participants) {
|
|
67
|
-
nrOfMutuallyExclusiveOptionsInUse++;
|
|
68
|
-
}
|
|
69
|
-
if (args.options.name) {
|
|
70
|
-
nrOfMutuallyExclusiveOptionsInUse++;
|
|
71
|
-
}
|
|
72
|
-
if (nrOfMutuallyExclusiveOptionsInUse > 1) {
|
|
73
|
-
return 'Specify either id or participants or name, but not multiple.';
|
|
74
|
-
}
|
|
75
|
-
if (args.options.id && !validation_1.validation.isValidTeamsChatId(args.options.id)) {
|
|
76
|
-
return `${args.options.id} is not a valid Teams ChatId.`;
|
|
77
|
-
}
|
|
78
|
-
if (args.options.participants) {
|
|
79
|
-
const participants = chatUtil_1.chatUtil.convertParticipantStringToArray(args.options.participants);
|
|
80
|
-
if (!participants || participants.length === 0 || participants.some(e => !validation_1.validation.isValidUserPrincipalName(e))) {
|
|
81
|
-
return `${args.options.participants} contains one or more invalid email addresses.`;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return true;
|
|
85
|
-
}
|
|
86
49
|
getChatId(args) {
|
|
87
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
51
|
if (args.options.id) {
|
|
@@ -107,7 +70,7 @@ class TeamsChatGetCommand extends GraphCommand_1.default {
|
|
|
107
70
|
}
|
|
108
71
|
getChatIdByParticipants(participantsString) {
|
|
109
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
const participants =
|
|
73
|
+
const participants = participantsString.trim().toLowerCase().split(',').filter(e => e && e !== '');
|
|
111
74
|
const currentUserEmail = accessToken_1.accessToken.getUserNameFromAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken).toLowerCase();
|
|
112
75
|
const existingChats = yield chatUtil_1.chatUtil.findExistingChatsByParticipants([currentUserEmail, ...participants]);
|
|
113
76
|
if (!existingChats || existingChats.length === 0) {
|
|
@@ -139,5 +102,51 @@ class TeamsChatGetCommand extends GraphCommand_1.default {
|
|
|
139
102
|
});
|
|
140
103
|
}
|
|
141
104
|
}
|
|
105
|
+
_TeamsChatGetCommand_instances = new WeakSet(), _TeamsChatGetCommand_initTelemetry = function _TeamsChatGetCommand_initTelemetry() {
|
|
106
|
+
this.telemetry.push((args) => {
|
|
107
|
+
Object.assign(this.telemetryProperties, {
|
|
108
|
+
id: typeof args.options.id !== 'undefined',
|
|
109
|
+
participants: typeof args.options.participants !== 'undefined',
|
|
110
|
+
name: typeof args.options.name !== 'undefined'
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
}, _TeamsChatGetCommand_initOptions = function _TeamsChatGetCommand_initOptions() {
|
|
114
|
+
this.options.unshift({
|
|
115
|
+
option: '-i, --id [id]'
|
|
116
|
+
}, {
|
|
117
|
+
option: '-p, --participants [participants]'
|
|
118
|
+
}, {
|
|
119
|
+
option: '-n, --name [name]'
|
|
120
|
+
});
|
|
121
|
+
}, _TeamsChatGetCommand_initValidators = function _TeamsChatGetCommand_initValidators() {
|
|
122
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
if (!args.options.id && !args.options.participants && !args.options.name) {
|
|
124
|
+
return 'Specify id or participants or name, one is required.';
|
|
125
|
+
}
|
|
126
|
+
let nrOfMutuallyExclusiveOptionsInUse = 0;
|
|
127
|
+
if (args.options.id) {
|
|
128
|
+
nrOfMutuallyExclusiveOptionsInUse++;
|
|
129
|
+
}
|
|
130
|
+
if (args.options.participants) {
|
|
131
|
+
nrOfMutuallyExclusiveOptionsInUse++;
|
|
132
|
+
}
|
|
133
|
+
if (args.options.name) {
|
|
134
|
+
nrOfMutuallyExclusiveOptionsInUse++;
|
|
135
|
+
}
|
|
136
|
+
if (nrOfMutuallyExclusiveOptionsInUse > 1) {
|
|
137
|
+
return 'Specify either id or participants or name, but not multiple.';
|
|
138
|
+
}
|
|
139
|
+
if (args.options.id && !validation_1.validation.isValidTeamsChatId(args.options.id)) {
|
|
140
|
+
return `${args.options.id} is not a valid Teams ChatId.`;
|
|
141
|
+
}
|
|
142
|
+
if (args.options.participants) {
|
|
143
|
+
const participants = args.options.participants.trim().toLowerCase().split(',').filter(e => e && e !== '');
|
|
144
|
+
if (!participants || participants.length === 0 || participants.some(e => !validation_1.validation.isValidUserPrincipalName(e))) {
|
|
145
|
+
return `${args.options.participants} contains one or more invalid email addresses.`;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return true;
|
|
149
|
+
}));
|
|
150
|
+
};
|
|
142
151
|
module.exports = new TeamsChatGetCommand();
|
|
143
152
|
//# sourceMappingURL=chat-get.js.map
|
|
@@ -1,9 +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 _TeamsChatListCommand_instances, _TeamsChatListCommand_initTelemetry, _TeamsChatListCommand_initOptions, _TeamsChatListCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const utils_1 = require("../../../../utils");
|
|
4
19
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
20
|
const commands_1 = require("../../commands");
|
|
6
21
|
class TeamsChatListCommand extends GraphCommand_1.default {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
_TeamsChatListCommand_instances.add(this);
|
|
25
|
+
__classPrivateFieldGet(this, _TeamsChatListCommand_instances, "m", _TeamsChatListCommand_initTelemetry).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _TeamsChatListCommand_instances, "m", _TeamsChatListCommand_initOptions).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _TeamsChatListCommand_instances, "m", _TeamsChatListCommand_initValidators).call(this);
|
|
28
|
+
}
|
|
7
29
|
get name() {
|
|
8
30
|
return commands_1.default.CHAT_LIST;
|
|
9
31
|
}
|
|
@@ -23,22 +45,26 @@ class TeamsChatListCommand extends GraphCommand_1.default {
|
|
|
23
45
|
cb();
|
|
24
46
|
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
25
47
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
}
|
|
49
|
+
_TeamsChatListCommand_instances = new WeakSet(), _TeamsChatListCommand_initTelemetry = function _TeamsChatListCommand_initTelemetry() {
|
|
50
|
+
this.telemetry.push((args) => {
|
|
51
|
+
Object.assign(this.telemetryProperties, {
|
|
52
|
+
type: args.options.type
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}, _TeamsChatListCommand_initOptions = function _TeamsChatListCommand_initOptions() {
|
|
56
|
+
this.options.unshift({
|
|
57
|
+
option: '-t, --type [type]',
|
|
58
|
+
autocomplete: ['oneOnOne', 'group', 'meeting']
|
|
59
|
+
});
|
|
60
|
+
}, _TeamsChatListCommand_initValidators = function _TeamsChatListCommand_initValidators() {
|
|
61
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
36
62
|
const supportedTypes = ['oneOnOne', 'group', 'meeting'];
|
|
37
63
|
if (args.options.type !== undefined && supportedTypes.indexOf(args.options.type) === -1) {
|
|
38
64
|
return `${args.options.type} is not a valid chatType. Accepted values are ${supportedTypes.join(', ')}`;
|
|
39
65
|
}
|
|
40
66
|
return true;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
67
|
+
}));
|
|
68
|
+
};
|
|
43
69
|
module.exports = new TeamsChatListCommand();
|
|
44
70
|
//# sourceMappingURL=chat-list.js.map
|
|
@@ -1,9 +1,30 @@
|
|
|
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 _TeamsChatMemberListCommand_instances, _TeamsChatMemberListCommand_initOptions, _TeamsChatMemberListCommand_initValidators;
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
const utils_1 = require("../../../../utils");
|
|
4
19
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
20
|
const commands_1 = require("../../commands");
|
|
6
21
|
class TeamsChatMemberListCommand extends GraphCommand_1.default {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
_TeamsChatMemberListCommand_instances.add(this);
|
|
25
|
+
__classPrivateFieldGet(this, _TeamsChatMemberListCommand_instances, "m", _TeamsChatMemberListCommand_initOptions).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _TeamsChatMemberListCommand_instances, "m", _TeamsChatMemberListCommand_initValidators).call(this);
|
|
27
|
+
}
|
|
7
28
|
get name() {
|
|
8
29
|
return commands_1.default.CHAT_MEMBER_LIST;
|
|
9
30
|
}
|
|
@@ -22,21 +43,18 @@ class TeamsChatMemberListCommand extends GraphCommand_1.default {
|
|
|
22
43
|
cb();
|
|
23
44
|
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
24
45
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return options.concat(parentOptions);
|
|
33
|
-
}
|
|
34
|
-
validate(args) {
|
|
46
|
+
}
|
|
47
|
+
_TeamsChatMemberListCommand_instances = new WeakSet(), _TeamsChatMemberListCommand_initOptions = function _TeamsChatMemberListCommand_initOptions() {
|
|
48
|
+
this.options.unshift({
|
|
49
|
+
option: '-i, --chatId <chatId>'
|
|
50
|
+
});
|
|
51
|
+
}, _TeamsChatMemberListCommand_initValidators = function _TeamsChatMemberListCommand_initValidators() {
|
|
52
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
35
53
|
if (!utils_1.validation.isValidTeamsChatId(args.options.chatId)) {
|
|
36
54
|
return `${args.options.chatId} is not a valid Teams ChatId`;
|
|
37
55
|
}
|
|
38
56
|
return true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
57
|
+
}));
|
|
58
|
+
};
|
|
41
59
|
module.exports = new TeamsChatMemberListCommand();
|
|
42
60
|
//# sourceMappingURL=chat-member-list.js.map
|