@pnp/cli-microsoft365 5.8.0-beta.c222170 → 5.8.0-beta.e60254a
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/dist/Command.js +48 -35
- package/dist/cli/Cli.js +30 -24
- package/dist/m365/aad/commands/app/app-add.js +30 -30
- package/dist/m365/aad/commands/app/app-get.js +12 -9
- package/dist/m365/aad/commands/app/app-remove.js +34 -35
- package/dist/m365/aad/commands/app/app-role-add.js +29 -26
- package/dist/m365/aad/commands/app/app-role-list.js +20 -8
- package/dist/m365/aad/commands/app/app-role-remove.js +23 -22
- package/dist/m365/aad/commands/app/app-set.js +12 -7
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +89 -93
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +38 -38
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +89 -91
- package/dist/m365/aad/commands/group/group-list.js +35 -23
- package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +33 -32
- package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +17 -14
- package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +19 -7
- package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +30 -29
- package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +33 -30
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +14 -13
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +19 -7
- package/dist/m365/aad/commands/o365group/o365group-add.js +85 -96
- package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +10 -7
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +11 -10
- package/dist/m365/aad/commands/o365group/o365group-get.js +20 -25
- package/dist/m365/aad/commands/o365group/o365group-list.js +38 -43
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +31 -19
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +24 -12
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +30 -33
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +21 -18
- package/dist/m365/aad/commands/o365group/o365group-remove.js +38 -40
- package/dist/m365/aad/commands/o365group/o365group-renew.js +17 -12
- package/dist/m365/aad/commands/o365group/o365group-set.js +96 -114
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +31 -28
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +27 -24
- package/dist/m365/aad/commands/o365group/o365group-user-list.js +15 -17
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +57 -60
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +59 -60
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +25 -20
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +21 -18
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +41 -31
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +30 -16
- package/dist/m365/aad/commands/policy/policy-list.js +22 -23
- package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +60 -52
- package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +84 -72
- package/dist/m365/aad/commands/siteclassification/siteclassification-get.js +66 -57
- package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +96 -93
- package/dist/m365/aad/commands/sp/sp-add.js +22 -21
- package/dist/m365/aad/commands/sp/sp-get.js +22 -21
- package/dist/m365/aad/commands/user/user-get.js +37 -37
- package/dist/m365/aad/commands/user/user-hibp.js +21 -22
- package/dist/m365/aad/commands/user/user-list.js +31 -21
- package/dist/m365/aad/commands/user/user-password-validate.js +29 -17
- package/dist/m365/aad/commands/user/user-set.js +18 -13
- package/dist/m365/aad/commands/user/user-signin-list.js +24 -21
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +39 -37
- package/dist/m365/app/commands/app-get.js +27 -15
- package/dist/m365/app/commands/app-open.js +18 -3
- package/dist/m365/app/commands/permission/permission-list.js +17 -15
- package/dist/m365/base/AnonymousCommand.js +14 -3
- package/dist/m365/base/AppCommand.js +51 -44
- package/dist/m365/base/DateAndPeriodBasedReport.js +7 -5
- package/dist/m365/base/PeriodBasedReport.js +23 -16
- package/dist/m365/base/SpoCommand.js +13 -9
- package/dist/m365/base/YammerCommand.js +4 -4
- package/dist/m365/booking/commands/business/business-get.js +27 -17
- package/dist/m365/booking/commands/business/business-list.js +20 -11
- package/dist/m365/cli/commands/cli-consent.js +15 -12
- package/dist/m365/cli/commands/cli-doctor.js +35 -25
- package/dist/m365/cli/commands/cli-issue.js +15 -15
- package/dist/m365/cli/commands/cli-reconsent.js +30 -18
- package/dist/m365/cli/commands/completion/completion-clink-update.js +13 -3
- package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +47 -38
- package/dist/m365/cli/commands/completion/completion-pwsh-update.js +16 -6
- package/dist/m365/cli/commands/completion/completion-sh-setup.js +21 -11
- package/dist/m365/cli/commands/completion/completion-sh-update.js +16 -6
- package/dist/m365/cli/commands/config/config-get.js +4 -3
- package/dist/m365/cli/commands/config/config-reset.js +9 -8
- package/dist/m365/cli/commands/config/config-set.js +20 -19
- package/dist/m365/commands/login.js +66 -63
- package/dist/m365/commands/logout.js +34 -23
- package/dist/m365/commands/request.js +56 -59
- package/dist/m365/commands/status.js +49 -27
- package/dist/m365/commands/version.js +13 -3
- package/dist/m365/file/commands/convert/convert-pdf.js +58 -53
- package/dist/m365/file/commands/file-add.js +14 -9
- package/dist/m365/file/commands/file-list.js +27 -30
- package/dist/m365/flow/commands/environment/environment-get.js +34 -22
- package/dist/m365/flow/commands/environment/environment-list.js +33 -21
- package/dist/m365/flow/commands/flow-disable.js +28 -14
- package/dist/m365/flow/commands/flow-enable.js +28 -14
- package/dist/m365/flow/commands/flow-export.js +102 -102
- package/dist/m365/flow/commands/flow-get.js +33 -21
- package/dist/m365/flow/commands/flow-list.js +28 -16
- package/dist/m365/flow/commands/flow-remove.js +38 -42
- package/dist/m365/flow/commands/run/run-cancel.js +32 -31
- package/dist/m365/flow/commands/run/run-get.js +33 -21
- package/dist/m365/flow/commands/run/run-list.js +31 -19
- package/dist/m365/flow/commands/run/run-resubmit.js +36 -37
- package/dist/m365/graph/Changelog.js +3 -0
- package/dist/m365/graph/commands/changelog/changelog-list.js +163 -0
- package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +30 -27
- package/dist/m365/graph/commands/schemaextension/schemaextension-get.js +30 -17
- package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +38 -34
- package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +42 -31
- package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +57 -54
- package/dist/m365/graph/commands/subscription/subscription-add.js +28 -25
- package/dist/m365/graph/commands.js +1 -0
- package/dist/m365/onedrive/commands/onedrive-list.js +23 -13
- package/dist/m365/onenote/commands/notebook/notebook-list.js +11 -11
- package/dist/m365/outlook/commands/mail/mail-send.js +73 -31
- package/dist/m365/outlook/commands/message/message-list.js +21 -11
- package/dist/m365/outlook/commands/message/message-move.js +33 -25
- package/dist/m365/outlook/commands/room/room-list.js +23 -11
- package/dist/m365/outlook/commands/roomlist/roomlist-list.js +19 -7
- package/dist/m365/pa/commands/app/app-get.js +41 -42
- package/dist/m365/pa/commands/app/app-list.js +19 -16
- package/dist/m365/pa/commands/app/app-remove.js +38 -38
- package/dist/m365/pa/commands/connector/connector-export.js +102 -104
- package/dist/m365/pa/commands/connector/connector-list.js +28 -16
- package/dist/m365/pa/commands/environment/environment-get.js +34 -22
- package/dist/m365/pa/commands/environment/environment-list.js +33 -21
- package/dist/m365/pa/commands/pcf/pcf-init.js +35 -34
- package/dist/m365/pa/commands/solution/solution-init.js +48 -47
- package/dist/m365/pa/commands/solution/solution-reference-add.js +15 -14
- package/dist/m365/planner/commands/bucket/bucket-add.js +31 -30
- package/dist/m365/planner/commands/bucket/bucket-get.js +19 -16
- package/dist/m365/planner/commands/bucket/bucket-list.js +19 -16
- package/dist/m365/planner/commands/bucket/bucket-remove.js +39 -40
- package/dist/m365/planner/commands/bucket/bucket-set.js +32 -29
- package/dist/m365/planner/commands/plan/plan-add.js +27 -26
- package/dist/m365/planner/commands/plan/plan-get.js +31 -32
- package/dist/m365/planner/commands/plan/plan-list.js +16 -13
- package/dist/m365/planner/commands/plan/plan-remove.js +34 -37
- package/dist/m365/planner/commands/task/task-add.js +43 -48
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +47 -37
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +35 -21
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +51 -41
- package/dist/m365/planner/commands/task/task-get.js +25 -22
- package/dist/m365/planner/commands/task/task-list.js +48 -58
- package/dist/m365/planner/commands/task/task-reference-add.js +24 -23
- package/dist/m365/planner/commands/task/task-reference-list.js +30 -18
- package/dist/m365/planner/commands/task/task-reference-remove.js +39 -40
- package/dist/m365/planner/commands/task/task-remove.js +31 -32
- package/dist/m365/planner/commands/task/task-set.js +34 -39
- package/dist/m365/planner/commands/tenant/tenant-settings-list.js +26 -14
- package/dist/m365/planner/commands/tenant/tenant-settings-set.js +25 -22
- package/dist/m365/pp/commands/environment/environment-list.js +41 -29
- package/dist/m365/pp/commands/gateway/gateway-list.js +29 -17
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +19 -18
- package/dist/m365/pp/commands/managementapp/managementapp-list.js +20 -8
- package/dist/m365/search/commands/externalconnection/externalconnection-add.js +29 -24
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +37 -28
- package/dist/m365/search/commands/externalconnection/externalconnection-list.js +19 -7
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +39 -32
- package/dist/m365/spfx/commands/package/package-generate.js +104 -97
- package/dist/m365/spfx/commands/project/project-doctor.js +99 -102
- package/dist/m365/spfx/commands/project/project-externalize.js +45 -38
- package/dist/m365/spfx/commands/project/project-rename.js +38 -30
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade.js +173 -179
- package/dist/m365/spfx/commands/spfx-doctor.js +44 -49
- package/dist/m365/spo/commands/app/app-add.js +31 -32
- package/dist/m365/spo/commands/app/app-deploy.js +37 -38
- package/dist/m365/spo/commands/app/app-get.js +39 -40
- package/dist/m365/spo/commands/app/app-install.js +18 -13
- package/dist/m365/spo/commands/app/app-instance-list.js +25 -21
- package/dist/m365/spo/commands/app/app-list.js +29 -32
- package/dist/m365/spo/commands/app/app-remove.js +33 -36
- package/dist/m365/spo/commands/app/app-retract.js +33 -36
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +42 -43
- package/dist/m365/spo/commands/app/app-uninstall.js +31 -30
- package/dist/m365/spo/commands/app/app-upgrade.js +18 -13
- package/dist/m365/spo/commands/apppage/apppage-add.js +38 -39
- package/dist/m365/spo/commands/apppage/apppage-set.js +20 -15
- package/dist/m365/spo/commands/cdn/cdn-get.js +35 -41
- package/dist/m365/spo/commands/cdn/cdn-origin-add.js +29 -37
- package/dist/m365/spo/commands/cdn/cdn-origin-list.js +33 -39
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +43 -57
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +41 -48
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +36 -45
- package/dist/m365/spo/commands/cdn/cdn-set.js +63 -67
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +48 -53
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +94 -112
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +120 -146
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +35 -34
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +21 -18
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +62 -66
- package/dist/m365/spo/commands/contenttype/contenttype-set.js +166 -0
- package/dist/m365/spo/commands/contenttypehub/contenttypehub-get.js +50 -47
- package/dist/m365/spo/commands/customaction/customaction-add.js +43 -40
- package/dist/m365/spo/commands/customaction/customaction-clear.js +27 -25
- package/dist/m365/spo/commands/customaction/customaction-get.js +40 -35
- package/dist/m365/spo/commands/customaction/customaction-list.js +28 -23
- package/dist/m365/spo/commands/customaction/customaction-remove.js +32 -31
- package/dist/m365/spo/commands/customaction/customaction-set.js +21 -16
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +42 -39
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +35 -32
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +51 -56
- package/dist/m365/spo/commands/feature/feature-disable.js +26 -21
- package/dist/m365/spo/commands/feature/feature-enable.js +26 -21
- package/dist/m365/spo/commands/feature/feature-list.js +23 -20
- package/dist/m365/spo/commands/field/field-add.js +25 -24
- package/dist/m365/spo/commands/field/field-get.js +39 -36
- package/dist/m365/spo/commands/field/field-list.js +28 -25
- package/dist/m365/spo/commands/field/field-remove.js +83 -86
- package/dist/m365/spo/commands/field/field-set.js +64 -70
- package/dist/m365/spo/commands/file/file-add.js +153 -175
- package/dist/m365/spo/commands/file/file-checkin.js +36 -31
- package/dist/m365/spo/commands/file/file-checkout.js +23 -18
- package/dist/m365/spo/commands/file/file-copy.js +61 -63
- package/dist/m365/spo/commands/file/file-get.js +64 -66
- package/dist/m365/spo/commands/file/file-list.js +13 -8
- package/dist/m365/spo/commands/file/file-move.js +60 -62
- package/dist/m365/spo/commands/file/file-remove.js +54 -56
- package/dist/m365/spo/commands/file/file-rename.js +29 -31
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +45 -43
- package/dist/m365/spo/commands/folder/folder-add.js +26 -23
- package/dist/m365/spo/commands/folder/folder-copy.js +45 -42
- package/dist/m365/spo/commands/folder/folder-get.js +23 -23
- package/dist/m365/spo/commands/folder/folder-list.js +22 -19
- package/dist/m365/spo/commands/folder/folder-move.js +46 -43
- package/dist/m365/spo/commands/folder/folder-remove.js +40 -39
- package/dist/m365/spo/commands/folder/folder-rename.js +30 -36
- package/dist/m365/spo/commands/group/group-add.js +25 -22
- package/dist/m365/spo/commands/group/group-get.js +40 -37
- package/dist/m365/spo/commands/group/group-list.js +21 -18
- package/dist/m365/spo/commands/group/group-remove.js +46 -49
- package/dist/m365/spo/commands/group/group-set.js +26 -21
- package/dist/m365/spo/commands/group/group-user-add.js +30 -34
- package/dist/m365/spo/commands/group/group-user-list.js +23 -20
- package/dist/m365/spo/commands/group/group-user-remove.js +39 -40
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +29 -19
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +22 -19
- package/dist/m365/spo/commands/homesite/homesite-get.js +28 -18
- package/dist/m365/spo/commands/homesite/homesite-remove.js +48 -47
- package/dist/m365/spo/commands/homesite/homesite-set.js +24 -29
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +18 -15
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +25 -22
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +34 -35
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +18 -32
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +64 -62
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +19 -18
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +29 -34
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +43 -52
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +34 -39
- package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +19 -14
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +31 -32
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-get.js +34 -31
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +50 -51
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +25 -31
- package/dist/m365/spo/commands/list/list-add.js +23 -20
- package/dist/m365/spo/commands/list/list-contenttype-add.js +30 -27
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +56 -57
- package/dist/m365/spo/commands/list/list-contenttype-list.js +29 -26
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +41 -43
- package/dist/m365/spo/commands/list/list-get.js +33 -30
- package/dist/m365/spo/commands/list/list-label-get.js +46 -48
- package/dist/m365/spo/commands/list/list-label-set.js +46 -44
- package/dist/m365/spo/commands/list/list-list.js +25 -22
- package/dist/m365/spo/commands/list/list-remove.js +41 -43
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +35 -36
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +50 -52
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +32 -27
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +28 -23
- package/dist/m365/spo/commands/list/list-set.js +25 -22
- package/dist/m365/spo/commands/list/list-sitescript-get.js +49 -52
- package/dist/m365/spo/commands/list/list-view-add.js +29 -26
- package/dist/m365/spo/commands/list/list-view-field-add.js +47 -48
- package/dist/m365/spo/commands/list/list-view-field-remove.js +40 -43
- package/dist/m365/spo/commands/list/list-view-field-set.js +28 -25
- package/dist/m365/spo/commands/list/list-view-get.js +30 -27
- package/dist/m365/spo/commands/list/list-view-list.js +28 -25
- package/dist/m365/spo/commands/list/list-view-remove.js +40 -41
- package/dist/m365/spo/commands/list/list-view-set.js +25 -22
- package/dist/m365/spo/commands/list/list-webhook-add.js +39 -38
- package/dist/m365/spo/commands/list/list-webhook-get.js +29 -28
- package/dist/m365/spo/commands/list/list-webhook-list.js +47 -44
- package/dist/m365/spo/commands/list/list-webhook-remove.js +41 -44
- package/dist/m365/spo/commands/list/list-webhook-set.js +35 -34
- package/dist/m365/spo/commands/listitem/listitem-add.js +100 -109
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +28 -25
- package/dist/m365/spo/commands/listitem/listitem-get.js +28 -25
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +63 -66
- package/dist/m365/spo/commands/listitem/listitem-list.js +63 -70
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +49 -51
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +49 -51
- package/dist/m365/spo/commands/listitem/listitem-remove.js +46 -47
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +51 -53
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +32 -27
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +25 -20
- package/dist/m365/spo/commands/listitem/listitem-set.js +141 -160
- package/dist/m365/spo/commands/mail/mail-send.js +48 -43
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +29 -26
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +26 -23
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +34 -35
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +26 -30
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +48 -44
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +48 -48
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +34 -30
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +36 -47
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +22 -27
- package/dist/m365/spo/commands/page/page-add.js +193 -216
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +183 -186
- package/dist/m365/spo/commands/page/page-column-get.js +23 -20
- package/dist/m365/spo/commands/page/page-column-list.js +18 -15
- package/dist/m365/spo/commands/page/page-control-get.js +36 -33
- package/dist/m365/spo/commands/page/page-control-list.js +33 -30
- package/dist/m365/spo/commands/page/page-control-set.js +97 -97
- package/dist/m365/spo/commands/page/page-copy.js +51 -51
- package/dist/m365/spo/commands/page/page-get.js +49 -51
- package/dist/m365/spo/commands/page/page-header-set.js +228 -232
- package/dist/m365/spo/commands/page/page-list.js +40 -39
- package/dist/m365/spo/commands/page/page-remove.js +43 -44
- package/dist/m365/spo/commands/page/page-section-add.js +66 -68
- package/dist/m365/spo/commands/page/page-section-get.js +14 -11
- package/dist/m365/spo/commands/page/page-section-list.js +23 -20
- package/dist/m365/spo/commands/page/page-set.js +215 -236
- package/dist/m365/spo/commands/page/page-template-list.js +24 -25
- package/dist/m365/spo/commands/page/page-text-add.js +40 -40
- package/dist/m365/spo/commands/propertybag/propertybag-get.js +24 -22
- package/dist/m365/spo/commands/propertybag/propertybag-list.js +19 -17
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +30 -36
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +22 -27
- package/dist/m365/spo/commands/roledefinition/roledefinition-add.js +117 -0
- package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +25 -22
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +20 -17
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +35 -34
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +38 -34
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +42 -38
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +33 -29
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +29 -34
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +24 -29
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +44 -40
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +45 -54
- package/dist/m365/spo/commands/site/site-add.js +177 -189
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +29 -34
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +29 -34
- package/dist/m365/spo/commands/site/site-apppermission-add.js +66 -34
- package/dist/m365/spo/commands/site/site-apppermission-get.js +19 -16
- package/dist/m365/spo/commands/site/site-apppermission-list.js +15 -17
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +29 -35
- package/dist/m365/spo/commands/site/site-apppermission-set.js +30 -29
- package/dist/m365/spo/commands/site/site-chrome-set.js +50 -45
- package/dist/m365/spo/commands/site/site-classic-add.js +66 -82
- package/dist/m365/spo/commands/site/site-classic-list.js +27 -19
- package/dist/m365/spo/commands/site/site-classic-set.js +168 -186
- package/dist/m365/spo/commands/site/site-commsite-enable.js +25 -30
- package/dist/m365/spo/commands/site/site-ensure.js +38 -28
- package/dist/m365/spo/commands/site/site-get.js +17 -14
- package/dist/m365/spo/commands/site/site-groupify.js +35 -32
- package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +24 -19
- package/dist/m365/spo/commands/site/site-list.js +17 -18
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +27 -24
- package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +31 -24
- package/dist/m365/spo/commands/site/site-remove.js +49 -58
- package/dist/m365/spo/commands/site/site-rename.js +65 -76
- package/dist/m365/spo/commands/site/site-set.js +26 -32
- package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +37 -40
- package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +27 -26
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +23 -26
- package/dist/m365/spo/commands/sitedesign/sitedesign-list.js +27 -17
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +34 -39
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +26 -27
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +25 -28
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +37 -42
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +27 -23
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +22 -18
- package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +49 -48
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +22 -21
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +17 -13
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +33 -34
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +22 -25
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +22 -25
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +30 -24
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +34 -39
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +35 -38
- package/dist/m365/spo/commands/spo-get.js +16 -6
- package/dist/m365/spo/commands/spo-search.js +19 -20
- package/dist/m365/spo/commands/spo-set.js +9 -7
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +36 -26
- package/dist/m365/spo/commands/storageentity/storageentity-list.js +34 -36
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +38 -48
- package/dist/m365/spo/commands/storageentity/storageentity-set.js +29 -34
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +15 -16
- package/dist/m365/spo/commands/tenant/tenant-appcatalogurl-get.js +31 -21
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-list.js +38 -34
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +51 -59
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +21 -20
- package/dist/m365/spo/commands/tenant/tenant-settings-list.js +56 -52
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +54 -65
- package/dist/m365/spo/commands/term/term-add.js +91 -98
- package/dist/m365/spo/commands/term/term-get.js +43 -49
- package/dist/m365/spo/commands/term/term-group-add.js +70 -79
- package/dist/m365/spo/commands/term/term-group-get.js +32 -37
- package/dist/m365/spo/commands/term/term-group-list.js +42 -38
- package/dist/m365/spo/commands/term/term-list.js +35 -40
- package/dist/m365/spo/commands/term/term-set-add.js +79 -86
- package/dist/m365/spo/commands/term/term-set-get.js +33 -38
- package/dist/m365/spo/commands/term/term-set-list.js +35 -40
- package/dist/m365/spo/commands/theme/theme-apply.js +52 -58
- package/dist/m365/spo/commands/theme/theme-get.js +37 -33
- package/dist/m365/spo/commands/theme/theme-list.js +35 -25
- package/dist/m365/spo/commands/theme/theme-remove.js +45 -37
- package/dist/m365/spo/commands/theme/theme-set.js +29 -32
- package/dist/m365/spo/commands/user/user-get.js +31 -28
- package/dist/m365/spo/commands/user/user-list.js +23 -20
- package/dist/m365/spo/commands/user/user-remove.js +39 -38
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +22 -22
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +41 -33
- package/dist/m365/spo/commands/web/web-add.js +71 -97
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +29 -26
- package/dist/m365/spo/commands/web/web-get.js +21 -18
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +20 -17
- package/dist/m365/spo/commands/web/web-list.js +24 -21
- package/dist/m365/spo/commands/web/web-reindex.js +40 -52
- package/dist/m365/spo/commands/web/web-remove.js +33 -32
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +24 -25
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +39 -41
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +21 -16
- package/dist/m365/spo/commands/web/web-set.js +51 -46
- package/dist/m365/spo/commands.js +2 -0
- package/dist/m365/teams/commands/app/app-install.js +27 -24
- package/dist/m365/teams/commands/app/app-list.js +16 -13
- package/dist/m365/teams/commands/app/app-publish.js +23 -20
- package/dist/m365/teams/commands/app/app-remove.js +29 -28
- package/dist/m365/teams/commands/app/app-uninstall.js +28 -27
- package/dist/m365/teams/commands/app/app-update.js +21 -18
- package/dist/m365/teams/commands/cache/cache-remove.js +24 -23
- package/dist/m365/teams/commands/channel/channel-add.js +11 -8
- package/dist/m365/teams/commands/channel/channel-get.js +24 -26
- package/dist/m365/teams/commands/channel/channel-list.js +14 -13
- package/dist/m365/teams/commands/channel/channel-member-add.js +18 -23
- package/dist/m365/teams/commands/channel/channel-member-list.js +21 -23
- package/dist/m365/teams/commands/channel/channel-member-remove.js +26 -25
- package/dist/m365/teams/commands/channel/channel-member-set.js +25 -30
- package/dist/m365/teams/commands/channel/channel-remove.js +54 -57
- package/dist/m365/teams/commands/channel/channel-set.js +27 -24
- package/dist/m365/teams/commands/chat/chat-get.js +11 -8
- package/dist/m365/teams/commands/chat/chat-list.js +12 -9
- package/dist/m365/teams/commands/chat/chat-member-list.js +11 -8
- package/dist/m365/teams/commands/chat/chat-message-list.js +27 -24
- package/dist/m365/teams/commands/chat/chat-message-send.js +10 -7
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +17 -14
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +26 -21
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +17 -14
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +23 -18
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +17 -14
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +23 -18
- package/dist/m365/teams/commands/message/message-get.js +17 -14
- package/dist/m365/teams/commands/message/message-list.js +16 -13
- package/dist/m365/teams/commands/message/message-reply-list.js +15 -12
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +17 -14
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +23 -18
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +18 -15
- package/dist/m365/teams/commands/report/report-pstncalls.js +18 -15
- package/dist/m365/teams/commands/tab/tab-add.js +20 -17
- package/dist/m365/teams/commands/tab/tab-get.js +21 -26
- package/dist/m365/teams/commands/tab/tab-list.js +14 -11
- package/dist/m365/teams/commands/tab/tab-remove.js +29 -26
- package/dist/m365/teams/commands/team/team-add.js +53 -55
- package/dist/m365/teams/commands/team/team-archive.js +26 -23
- package/dist/m365/teams/commands/team/team-clone.js +40 -35
- package/dist/m365/teams/commands/team/team-get.js +18 -17
- package/dist/m365/teams/commands/team/team-list.js +28 -18
- package/dist/m365/teams/commands/team/team-remove.js +34 -35
- package/dist/m365/teams/commands/team/team-set.js +26 -21
- package/dist/m365/teams/commands/team/team-unarchive.js +23 -20
- package/dist/m365/teams/commands/user/user-app-add.js +20 -15
- package/dist/m365/teams/commands/user/user-app-list.js +27 -28
- package/dist/m365/teams/commands/user/user-app-remove.js +30 -29
- package/dist/m365/teams/commands/user/user-list.js +16 -18
- package/dist/m365/tenant/commands/id/id-get.js +36 -25
- package/dist/m365/tenant/commands/report/report-office365activationcounts.js +37 -23
- package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +37 -23
- package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +37 -23
- package/dist/m365/tenant/commands/security/security-alerts-list.js +19 -7
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +19 -7
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +19 -7
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +26 -14
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +23 -11
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +20 -17
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +23 -11
- package/dist/m365/todo/commands/list/list-add.js +31 -19
- package/dist/m365/todo/commands/list/list-list.js +19 -7
- package/dist/m365/todo/commands/list/list-remove.js +56 -48
- package/dist/m365/todo/commands/list/list-set.js +34 -22
- package/dist/m365/todo/commands/task/task-add.js +32 -22
- package/dist/m365/todo/commands/task/task-list.js +32 -22
- package/dist/m365/todo/commands/task/task-remove.js +56 -48
- package/dist/m365/todo/commands/task/task-set.js +22 -21
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +26 -14
- package/dist/m365/viva/commands/connections/connections-app-create.js +102 -104
- package/dist/m365/yammer/commands/group/group-list.js +11 -8
- package/dist/m365/yammer/commands/group/group-user-add.js +21 -16
- package/dist/m365/yammer/commands/group/group-user-remove.js +38 -37
- package/dist/m365/yammer/commands/message/message-add.js +27 -24
- package/dist/m365/yammer/commands/message/message-get.js +18 -15
- package/dist/m365/yammer/commands/message/message-like-set.js +44 -45
- package/dist/m365/yammer/commands/message/message-list.js +24 -21
- package/dist/m365/yammer/commands/message/message-remove.js +30 -29
- package/dist/m365/yammer/commands/network/network-list.js +29 -17
- package/dist/m365/yammer/commands/user/user-get.js +25 -22
- package/dist/m365/yammer/commands/user/user-list.js +11 -8
- package/dist/m365/yammer/commands/yammer-search.js +76 -73
- package/dist/utils/fsUtil.js +2 -4
- package/dist/utils/md.js +1 -1
- package/docs/docs/cmd/graph/changelog/changelog-list.md +53 -0
- package/docs/docs/cmd/outlook/mail/mail-send.md +68 -10
- package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.md +45 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +2 -2
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +2 -2
- package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +43 -0
- package/docs/docs/cmd/spo/site/site-apppermission-add.md +1 -1
- package/docs/docs/cmd/spo/site/site-apppermission-set.md +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +2 -2
- package/package.json +2 -1
|
@@ -122,28 +122,31 @@ class YammerMessageListCommand extends YammerCommand_1.default {
|
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
commandAction(logger, args
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
125
|
+
commandAction(logger, args) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
this.items = []; // this will reset the items array in interactive mode
|
|
128
|
+
try {
|
|
129
|
+
yield this.getAllItems(logger, args, -1);
|
|
130
|
+
this.items.forEach(m => {
|
|
131
|
+
let shortBody;
|
|
132
|
+
const bodyToProcess = m.body.plain;
|
|
133
|
+
if (bodyToProcess) {
|
|
134
|
+
let maxLength = 35;
|
|
135
|
+
let addedDots = "...";
|
|
136
|
+
if (bodyToProcess.length < maxLength) {
|
|
137
|
+
maxLength = bodyToProcess.length;
|
|
138
|
+
addedDots = "";
|
|
139
|
+
}
|
|
140
|
+
shortBody = bodyToProcess.replace(/\n/g, ' ').substring(0, maxLength) + addedDots;
|
|
139
141
|
}
|
|
140
|
-
shortBody =
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
m.shortBody = shortBody;
|
|
143
|
+
});
|
|
144
|
+
logger.log(this.items);
|
|
145
|
+
}
|
|
146
|
+
catch (err) {
|
|
147
|
+
this.handleRejectedODataJsonPromise(err);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
147
150
|
}
|
|
148
151
|
}
|
|
149
152
|
_YammerMessageListCommand_instances = new WeakSet(), _YammerMessageListCommand_initTelemetry = function _YammerMessageListCommand_initTelemetry() {
|
|
@@ -33,38 +33,39 @@ class YammerMessageRemoveCommand extends YammerCommand_1.default {
|
|
|
33
33
|
get description() {
|
|
34
34
|
return 'Removes a Yammer message';
|
|
35
35
|
}
|
|
36
|
-
commandAction(logger, args
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
50
|
-
if (args.options.confirm) {
|
|
51
|
-
removeMessage();
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
cli_1.Cli.prompt({
|
|
55
|
-
type: 'confirm',
|
|
56
|
-
name: 'continue',
|
|
57
|
-
default: false,
|
|
58
|
-
message: `Are you sure you want to remove the Yammer message ${args.options.id}?`
|
|
59
|
-
}, (result) => {
|
|
60
|
-
if (!result.continue) {
|
|
61
|
-
cb();
|
|
36
|
+
commandAction(logger, args) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
const removeMessage = () => __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
try {
|
|
40
|
+
const requestOptions = {
|
|
41
|
+
url: `${this.resource}/v1/messages/${args.options.id}.json`,
|
|
42
|
+
headers: {
|
|
43
|
+
accept: 'application/json;odata.metadata=none',
|
|
44
|
+
'content-type': 'application/json;odata=nometadata'
|
|
45
|
+
},
|
|
46
|
+
responseType: 'json'
|
|
47
|
+
};
|
|
48
|
+
yield request_1.default.delete(requestOptions);
|
|
62
49
|
}
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
catch (err) {
|
|
51
|
+
this.handleRejectedODataJsonPromise(err);
|
|
65
52
|
}
|
|
66
53
|
});
|
|
67
|
-
|
|
54
|
+
if (args.options.confirm) {
|
|
55
|
+
yield removeMessage();
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
const result = yield cli_1.Cli.prompt({
|
|
59
|
+
type: 'confirm',
|
|
60
|
+
name: 'continue',
|
|
61
|
+
default: false,
|
|
62
|
+
message: `Are you sure you want to remove the Yammer message ${args.options.id}?`
|
|
63
|
+
});
|
|
64
|
+
if (result.continue) {
|
|
65
|
+
yield removeMessage();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
});
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
_YammerMessageRemoveCommand_instances = new WeakSet(), _YammerMessageRemoveCommand_initTelemetry = function _YammerMessageRemoveCommand_initTelemetry() {
|
|
@@ -1,4 +1,13 @@
|
|
|
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
|
+
};
|
|
2
11
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
12
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
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");
|
|
@@ -25,24 +34,27 @@ class YammerNetworkListCommand extends YammerCommand_1.default {
|
|
|
25
34
|
defaultProperties() {
|
|
26
35
|
return ['id', 'name', 'email', 'community', 'permalink', 'web_url'];
|
|
27
36
|
}
|
|
28
|
-
commandAction(logger, args
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
commandAction(logger, args) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
const requestOptions = {
|
|
40
|
+
url: `${this.resource}/v1/networks/current.json`,
|
|
41
|
+
headers: {
|
|
42
|
+
accept: 'application/json;odata.metadata=none',
|
|
43
|
+
'content-type': 'application/json;odata=nometadata'
|
|
44
|
+
},
|
|
45
|
+
responseType: 'json',
|
|
46
|
+
data: {
|
|
47
|
+
includeSuspended: args.options.includeSuspended !== undefined && args.options.includeSuspended !== false
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
try {
|
|
51
|
+
const res = yield request_1.default.get(requestOptions);
|
|
52
|
+
logger.log(res);
|
|
38
53
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
logger.log(res);
|
|
44
|
-
cb();
|
|
45
|
-
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
54
|
+
catch (err) {
|
|
55
|
+
this.handleRejectedODataJsonPromise(err);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
46
58
|
}
|
|
47
59
|
}
|
|
48
60
|
_YammerNetworkListCommand_instances = new WeakSet(), _YammerNetworkListCommand_initTelemetry = function _YammerNetworkListCommand_initTelemetry() {
|
|
@@ -35,28 +35,31 @@ class YammerUserGetCommand extends YammerCommand_1.default {
|
|
|
35
35
|
defaultProperties() {
|
|
36
36
|
return ['id', 'full_name', 'email', 'job_title', 'state', 'url'];
|
|
37
37
|
}
|
|
38
|
-
commandAction(logger, args
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
38
|
+
commandAction(logger, args) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
let endPoint = `${this.resource}/v1/users/current.json`;
|
|
41
|
+
if (args.options.userId) {
|
|
42
|
+
endPoint = `${this.resource}/v1/users/${encodeURIComponent(args.options.userId)}.json`;
|
|
43
|
+
}
|
|
44
|
+
else if (args.options.email) {
|
|
45
|
+
endPoint = `${this.resource}/v1/users/by_email.json?email=${encodeURIComponent(args.options.email)}`;
|
|
46
|
+
}
|
|
47
|
+
const requestOptions = {
|
|
48
|
+
url: endPoint,
|
|
49
|
+
headers: {
|
|
50
|
+
accept: 'application/json;odata.metadata=none',
|
|
51
|
+
'content-type': 'application/json;odata=nometadata'
|
|
52
|
+
},
|
|
53
|
+
responseType: 'json'
|
|
54
|
+
};
|
|
55
|
+
try {
|
|
56
|
+
const res = yield request_1.default.get(requestOptions);
|
|
57
|
+
logger.log(res);
|
|
58
|
+
}
|
|
59
|
+
catch (err) {
|
|
60
|
+
this.handleRejectedODataJsonPromise(err);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
60
63
|
}
|
|
61
64
|
}
|
|
62
65
|
_YammerUserGetCommand_instances = new WeakSet(), _YammerUserGetCommand_initTelemetry = function _YammerUserGetCommand_initTelemetry() {
|
|
@@ -98,14 +98,17 @@ class YammerUserListCommand extends YammerCommand_1.default {
|
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
commandAction(logger, args
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
commandAction(logger, args) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
this.items = []; // this will reset the items array in interactive mode
|
|
104
|
+
try {
|
|
105
|
+
yield this.getAllItems(logger, args, 1);
|
|
106
|
+
logger.log(this.items);
|
|
107
|
+
}
|
|
108
|
+
catch (err) {
|
|
109
|
+
this.handleRejectedODataJsonPromise(err);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
114
|
_YammerUserListCommand_instances = new WeakSet(), _YammerUserListCommand_initTelemetry = function _YammerUserListCommand_initTelemetry() {
|
|
@@ -110,85 +110,88 @@ class YammerSearchCommand extends YammerCommand_1.default {
|
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
commandAction(logger, args
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
const show = (_a = args.options.show) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
139
|
-
if (show === "summary") {
|
|
140
|
-
logger.log(this.summary);
|
|
113
|
+
commandAction(logger, args) {
|
|
114
|
+
var _a;
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
this.summary = {
|
|
117
|
+
messages: 0,
|
|
118
|
+
groups: 0,
|
|
119
|
+
topics: 0,
|
|
120
|
+
users: 0
|
|
121
|
+
};
|
|
122
|
+
this.messages = [];
|
|
123
|
+
this.groups = [];
|
|
124
|
+
this.topics = [];
|
|
125
|
+
this.users = [];
|
|
126
|
+
try {
|
|
127
|
+
yield this.getAllItems(logger, args, 1);
|
|
128
|
+
if (args.options.output === 'json') {
|
|
129
|
+
logger.log({
|
|
130
|
+
summary: this.summary,
|
|
131
|
+
messages: this.messages,
|
|
132
|
+
users: this.users,
|
|
133
|
+
topics: this.topics,
|
|
134
|
+
groups: this.groups
|
|
135
|
+
});
|
|
141
136
|
}
|
|
142
137
|
else {
|
|
143
|
-
|
|
144
|
-
if (show ===
|
|
145
|
-
|
|
146
|
-
let trimmedMessage = msg.content_excerpt;
|
|
147
|
-
trimmedMessage = (trimmedMessage === null || trimmedMessage === void 0 ? void 0 : trimmedMessage.length) >= 80 ? (trimmedMessage.substring(0, 80) + "...") : trimmedMessage;
|
|
148
|
-
trimmedMessage = trimmedMessage === null || trimmedMessage === void 0 ? void 0 : trimmedMessage.replace(/\n/g, " ");
|
|
149
|
-
return {
|
|
150
|
-
id: msg.id,
|
|
151
|
-
description: trimmedMessage,
|
|
152
|
-
type: "message",
|
|
153
|
-
web_url: msg.web_url
|
|
154
|
-
};
|
|
155
|
-
})];
|
|
138
|
+
const show = (_a = args.options.show) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
139
|
+
if (show === "summary") {
|
|
140
|
+
logger.log(this.summary);
|
|
156
141
|
}
|
|
157
|
-
|
|
158
|
-
results = [
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
142
|
+
else {
|
|
143
|
+
let results = [];
|
|
144
|
+
if (show === undefined || show === "messages") {
|
|
145
|
+
results = [...results, ...this.messages.map((msg) => {
|
|
146
|
+
let trimmedMessage = msg.content_excerpt;
|
|
147
|
+
trimmedMessage = (trimmedMessage === null || trimmedMessage === void 0 ? void 0 : trimmedMessage.length) >= 80 ? (trimmedMessage.substring(0, 80) + "...") : trimmedMessage;
|
|
148
|
+
trimmedMessage = trimmedMessage === null || trimmedMessage === void 0 ? void 0 : trimmedMessage.replace(/\n/g, " ");
|
|
149
|
+
return {
|
|
150
|
+
id: msg.id,
|
|
151
|
+
description: trimmedMessage,
|
|
152
|
+
type: "message",
|
|
153
|
+
web_url: msg.web_url
|
|
154
|
+
};
|
|
155
|
+
})];
|
|
156
|
+
}
|
|
157
|
+
if (show === undefined || show === "topics") {
|
|
158
|
+
results = [...results, ...this.topics.map((topic) => {
|
|
159
|
+
return {
|
|
160
|
+
id: topic.id,
|
|
161
|
+
description: topic.name,
|
|
162
|
+
type: "topic",
|
|
163
|
+
web_url: topic.web_url
|
|
164
|
+
};
|
|
165
|
+
})];
|
|
166
|
+
}
|
|
167
|
+
if (show === undefined || show === "users") {
|
|
168
|
+
results = [...results, ...this.users.map((user) => {
|
|
169
|
+
return {
|
|
170
|
+
id: user.id,
|
|
171
|
+
description: user.name,
|
|
172
|
+
type: "user",
|
|
173
|
+
web_url: user.web_url
|
|
174
|
+
};
|
|
175
|
+
})];
|
|
176
|
+
}
|
|
177
|
+
if (show === undefined || show === "groups") {
|
|
178
|
+
results = [...results, ...this.groups.map((group) => {
|
|
179
|
+
return {
|
|
180
|
+
id: group.id,
|
|
181
|
+
description: group.name,
|
|
182
|
+
type: "group",
|
|
183
|
+
web_url: group.web_url
|
|
184
|
+
};
|
|
185
|
+
})];
|
|
186
|
+
}
|
|
187
|
+
logger.log(results);
|
|
166
188
|
}
|
|
167
|
-
if (show === undefined || show === "users") {
|
|
168
|
-
results = [...results, ...this.users.map((user) => {
|
|
169
|
-
return {
|
|
170
|
-
id: user.id,
|
|
171
|
-
description: user.name,
|
|
172
|
-
type: "user",
|
|
173
|
-
web_url: user.web_url
|
|
174
|
-
};
|
|
175
|
-
})];
|
|
176
|
-
}
|
|
177
|
-
if (show === undefined || show === "groups") {
|
|
178
|
-
results = [...results, ...this.groups.map((group) => {
|
|
179
|
-
return {
|
|
180
|
-
id: group.id,
|
|
181
|
-
description: group.name,
|
|
182
|
-
type: "group",
|
|
183
|
-
web_url: group.web_url
|
|
184
|
-
};
|
|
185
|
-
})];
|
|
186
|
-
}
|
|
187
|
-
logger.log(results);
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
catch (err) {
|
|
192
|
+
this.handleRejectedODataJsonPromise(err);
|
|
193
|
+
}
|
|
194
|
+
});
|
|
192
195
|
}
|
|
193
196
|
}
|
|
194
197
|
_YammerSearchCommand_instances = new WeakSet(), _YammerSearchCommand_initTelemetry = function _YammerSearchCommand_initTelemetry() {
|
package/dist/utils/fsUtil.js
CHANGED
|
@@ -42,12 +42,10 @@ const addFileCommands = {
|
|
|
42
42
|
addFileCommand: 'cat > [FILEPATH] << EOF [FILECONTENT]EOF'
|
|
43
43
|
},
|
|
44
44
|
powershell: {
|
|
45
|
-
addFileCommand: `@"[FILECONTENT]"@ | Out-File -FilePath
|
|
46
|
-
`
|
|
45
|
+
addFileCommand: `@"[FILECONTENT]"@ | Out-File -FilePath [FILEPATH]`
|
|
47
46
|
},
|
|
48
47
|
cmd: {
|
|
49
|
-
addFileCommand: `echo [FILECONTENT] >
|
|
50
|
-
`
|
|
48
|
+
addFileCommand: `echo [FILECONTENT] > [FILEPATH]`
|
|
51
49
|
}
|
|
52
50
|
};
|
|
53
51
|
const removeFileCommands = {
|
package/dist/utils/md.js
CHANGED
|
@@ -46,7 +46,7 @@ function convertHyperlinks(md) {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
function convertCodeFences(md) {
|
|
49
|
-
const regex = new RegExp('^```.*?
|
|
49
|
+
const regex = new RegExp('^```.*?(?:\r\n|\n)(.*?)```(?:\r\n|\n)', 'gms');
|
|
50
50
|
return md.replace(regex, (match, code) => {
|
|
51
51
|
return ` ${code}${os_1.EOL}`;
|
|
52
52
|
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# graph changelog list
|
|
2
|
+
|
|
3
|
+
Gets an overview of specific API-level changes in Microsoft Graph v1.0 and beta
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 graph changelog list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-v, --versions [versions]`
|
|
14
|
+
: Comma-separated list of versions to show changes for. `Beta, v1.0`. When no version is selected all versions are returned.
|
|
15
|
+
|
|
16
|
+
`-c, --changeType [changeType]`
|
|
17
|
+
: Change type to show changes for. `Addition, Change, Deletion`. When no changeType is selected all change types are returned.
|
|
18
|
+
|
|
19
|
+
`-s, --services [services]`
|
|
20
|
+
: Comma-separated list of services to show changes for. `Applications, Calendar, Change notifications, Cloud communications, Compliance, Cross-device experiences, Customer booking, Device and app management, Education, Files, Financials, Groups, Identity and access, Mail, Notes, Notifications, People and workplace intelligence, Personal contacts, Reports, Search, Security, Sites and lists, Tasks and plans, Teamwork, To-do tasks, Users, Workbooks and charts`. When no service is selected all services are returned.
|
|
21
|
+
|
|
22
|
+
`--startDate [startDate]`
|
|
23
|
+
: The startdate used to query for changes. Supported date format is `YYYY-MM-DD`. When no date is specified all changes are returned.
|
|
24
|
+
|
|
25
|
+
`--endDate [endDate]`
|
|
26
|
+
: The enddate used to query for changes. Supported date format is `YYYY-MM-DD`. When no date is specified all changes are returned.
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Remarks
|
|
31
|
+
|
|
32
|
+
!!! attention
|
|
33
|
+
This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
34
|
+
|
|
35
|
+
## Examples
|
|
36
|
+
|
|
37
|
+
Get all changes within Microsoft Graph.
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
m365 graph changelog list
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Get all changes within Microsoft Graph for the services _Groups_ and _Users_.
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
m365 graph changelog list --services 'Groups,Users'
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Get all changes within Microsoft Graph that happend between _2021-01-01_ and _2021-05-01_.
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
m365 graph changelog list --startDate '2021-01-01' --endDate '2021-05-01'
|
|
53
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# outlook sendmail
|
|
2
2
|
|
|
3
|
-
Sends
|
|
3
|
+
Sends an email
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -17,44 +17,102 @@ m365 outlook sendmail [options]
|
|
|
17
17
|
## Options
|
|
18
18
|
|
|
19
19
|
`-s, --subject <subject>`
|
|
20
|
-
:
|
|
20
|
+
: Email subject
|
|
21
21
|
|
|
22
22
|
`-t, --to <to>`
|
|
23
|
-
: Comma-separated list of
|
|
23
|
+
: Comma-separated list of emails to send the message to.
|
|
24
|
+
|
|
25
|
+
`--cc [cc]`
|
|
26
|
+
: Comma-separated list of CC recipients for the message.
|
|
27
|
+
|
|
28
|
+
`--bcc [bcc]`
|
|
29
|
+
: Comma-separated list of BCC recipients for the message.
|
|
30
|
+
|
|
31
|
+
`--sender [sender]`
|
|
32
|
+
: Optional upn or user id to specify what account to send the message from. Also see the remarks section.
|
|
33
|
+
|
|
34
|
+
`-m, --mailbox [mailbox]`
|
|
35
|
+
: Specify this option to send the email on behalf of another mailbox, for example a shared mailbox, group or distribution list. The sender needs to be a delegate on the specified mailbox. Also see the remarks section.
|
|
24
36
|
|
|
25
37
|
`--bodyContents <bodyContents>`
|
|
26
|
-
: String containing the body of the
|
|
38
|
+
: String containing the body of the email to send.
|
|
27
39
|
|
|
28
40
|
`--bodyContentType [bodyContentType]`
|
|
29
|
-
: Type of the body content. Available options: `Text,HTML`. Default `Text
|
|
41
|
+
: Type of the body content. Available options: `Text,HTML`. Default `Text`.
|
|
42
|
+
|
|
43
|
+
`--importance [importance]`
|
|
44
|
+
: The importance of the message. Available options: `low`, `normal` or `high`. Default is `normal`.
|
|
30
45
|
|
|
31
46
|
`--saveToSentItems [saveToSentItems]`
|
|
32
|
-
: Save
|
|
47
|
+
: Save email in the sent items folder. Default `true`.
|
|
33
48
|
|
|
34
49
|
--8<-- "docs/cmd/_global.md"
|
|
35
50
|
|
|
51
|
+
## Remarks
|
|
52
|
+
|
|
53
|
+
### If you are connected using app only authentication
|
|
54
|
+
|
|
55
|
+
- Always specify a user id or upn in the `--sender` option. The email will be sent as if it came from the specified user, and can optionally be saved in the sent folder of that user account.
|
|
56
|
+
- You can optionally also specify the `--mailbox` option to send mail on behalf of a shared mailbox, group or distribution list. The account used in the `--sender` option, needs to have 'Send on behalf of' permissions on the mailbox in question.
|
|
57
|
+
|
|
58
|
+
!!! important
|
|
59
|
+
You need `Mail.Send` application permissions on the Microsoft Graph to be able to send mails using an application identity.
|
|
60
|
+
|
|
61
|
+
### If you are connected with a regular user account
|
|
62
|
+
|
|
63
|
+
- Specify the `--mailbox` option if you want to send an email on behalf of another mailbox. This can be a shared mailbox, group or distribution list. It will be visible in the email that the email was sent by you. You need to be assigned `Send on behalf of` permissions on the mailbox in question.
|
|
64
|
+
- You can specify the `--sender` option if you want to send an email as if you were the other user.
|
|
65
|
+
The sent email can optionally be saved in the sent folder of that user account. You'll need `Read and manage (Full Access)` permissions on the mailbox of the other user. You can combine the `--sender` and `--mailbox` options to let the other user send a mail on behalf of the specified mailbox.
|
|
66
|
+
|
|
67
|
+
!!! important
|
|
68
|
+
You need at least `Mail.Send` delegated permissions on the Microsoft Graph to be able to send emails. When specifying another user as sender, you'll need `Mail.Send.Shared` permissions.
|
|
69
|
+
|
|
36
70
|
## Examples
|
|
37
71
|
|
|
38
|
-
Send a text
|
|
72
|
+
Send a text email to the specified email address
|
|
39
73
|
|
|
40
74
|
```sh
|
|
41
75
|
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site"
|
|
42
76
|
```
|
|
43
77
|
|
|
44
|
-
Send an HTML
|
|
78
|
+
Send an HTML email to the specified email addresses
|
|
45
79
|
|
|
46
80
|
```sh
|
|
47
81
|
m365 outlook mail send --to "chris@contoso.com,brian@contoso.com" --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the <a href='https://contoso.sharepoint.com/sites/marketing'>team site</a>" --bodyContentType HTML
|
|
48
82
|
```
|
|
49
83
|
|
|
50
|
-
Send an HTML
|
|
84
|
+
Send an HTML email to the specified email address loading email contents from a file on disk
|
|
51
85
|
|
|
52
86
|
```sh
|
|
53
87
|
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents @email.html --bodyContentType HTML
|
|
54
88
|
```
|
|
55
89
|
|
|
56
|
-
Send a text
|
|
90
|
+
Send a text email to the specified email address. Don't store the email in sent items
|
|
57
91
|
|
|
58
92
|
```sh
|
|
59
93
|
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --saveToSentItems false
|
|
60
94
|
```
|
|
95
|
+
|
|
96
|
+
Send an email on behalf of a shared mailbox using the signed in user
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --mailbox sales@contoso.com
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Send an email as another user
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --sender svc_project@contoso.com
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Send an email as another user, on behalf of a shared mailbox
|
|
109
|
+
|
|
110
|
+
```sh
|
|
111
|
+
m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --sender svc_project@contoso.com --mailbox sales@contoso.com
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Send an email with cc and bcc recipients marked as important
|
|
115
|
+
|
|
116
|
+
```sh
|
|
117
|
+
m365 outlook mail send --to chris@contoso.com --cc claire@contoso.com --bcc randy@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --importance high
|
|
118
|
+
```
|
|
@@ -10,7 +10,7 @@ m365 pp environment list [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`-a, --asAdmin
|
|
13
|
+
`-a, --asAdmin`
|
|
14
14
|
Run the command as admin and retrieve all environments. Lists only environments you have explicitly are assigned permissions to by default.
|
|
15
15
|
|
|
16
16
|
--8<-- "docs/cmd/_global.md"
|