@pnp/cli-microsoft365 12.0.0-beta.f682e10 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +19 -2
- package/dist/Command.js +11 -8
- package/dist/cli/cli.js +15 -0
- package/dist/config.js +2 -0
- package/dist/m365/cli/commands/cli-consent.js +9 -2
- package/dist/m365/entra/commands/agent/agent-blueprint-list.js +52 -0
- package/dist/m365/entra/commands/agent/agent-blueprintprincipal-list.js +56 -0
- package/dist/m365/entra/commands/m365group/m365group-add.js +52 -97
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +20 -33
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +20 -39
- package/dist/m365/entra/commands/m365group/m365group-get.js +20 -41
- package/dist/m365/entra/commands/m365group/m365group-list.js +11 -31
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +8 -22
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +9 -25
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +21 -43
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +21 -41
- package/dist/m365/entra/commands/m365group/m365group-remove.js +25 -46
- package/dist/m365/entra/commands/m365group/m365group-renew.js +19 -32
- package/dist/m365/entra/commands/m365group/m365group-set.js +86 -141
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +20 -43
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +44 -77
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +28 -55
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +37 -74
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +45 -77
- package/dist/m365/entra/commands.js +2 -0
- package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +14 -16
- package/dist/m365/outlook/commands/calendargroup/calendargroup-add.js +97 -0
- package/dist/m365/outlook/commands/event/event-add.js +324 -0
- package/dist/m365/outlook/commands.js +2 -0
- package/dist/m365/spe/commands/container/container-activate.js +8 -16
- package/dist/m365/spe/commands/container/container-list.js +21 -42
- package/dist/m365/spe/commands/container/container-permission-add.js +114 -0
- package/dist/m365/spe/commands/container/container-permission-remove.js +94 -0
- package/dist/m365/spe/commands/container/container-permission-set.js +90 -0
- package/dist/m365/spe/commands/containertype/containertype-list.js +5 -0
- package/dist/m365/spe/commands.js +3 -0
- package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +30 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.0.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.1.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +3 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012021_TSC_excludeDirectories.js +43 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027002_OVERRIDES_qs.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027003_OVERRIDES_uuid.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027004_OVERRIDES_serialize_javascript.js +34 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.0.js +77 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.1.js +57 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +3 -1
- package/dist/m365/spo/commands/app/app-add.js +35 -56
- package/dist/m365/spo/commands/app/app-deploy.js +41 -59
- package/dist/m365/spo/commands/app/app-get.js +40 -56
- package/dist/m365/spo/commands/app/app-install.js +20 -41
- package/dist/m365/spo/commands/app/app-instance-list.js +12 -24
- package/dist/m365/spo/commands/app/app-list.js +26 -44
- package/dist/m365/spo/commands/app/app-remove.js +32 -52
- package/dist/m365/spo/commands/app/app-retract.js +32 -51
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +35 -54
- package/dist/m365/spo/commands/app/app-uninstall.js +21 -44
- package/dist/m365/spo/commands/app/app-upgrade.js +20 -41
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +38 -71
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +25 -59
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-list.js +11 -34
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +25 -54
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +52 -83
- package/dist/m365/spo/commands/apppage/apppage-add.js +21 -39
- package/dist/m365/spo/commands/apppage/apppage-set.js +20 -30
- package/dist/m365/spo/commands/commandset/commandset-add.js +17 -59
- package/dist/m365/spo/commands/commandset/commandset-get.js +24 -62
- package/dist/m365/spo/commands/commandset/commandset-list.js +11 -34
- package/dist/m365/spo/commands/commandset/commandset-remove.js +21 -54
- package/dist/m365/spo/commands/commandset/commandset-set.js +30 -83
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +22 -51
- package/dist/m365/spo/commands/contenttype/contenttype-field-list.js +38 -62
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +25 -54
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +20 -43
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +29 -54
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +13 -30
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +24 -39
- package/dist/m365/spo/commands/contenttype/contenttype-set.js +42 -63
- package/dist/m365/spo/commands/contenttype/contenttype-sync.js +37 -59
- package/dist/m365/spo/commands/contenttypehub/contenttypehub-get.js +5 -0
- package/dist/m365/spo/commands/customaction/customaction-add.js +124 -145
- package/dist/m365/spo/commands/customaction/customaction-clear.js +12 -43
- package/dist/m365/spo/commands/customaction/customaction-get.js +28 -59
- package/dist/m365/spo/commands/customaction/customaction-list.js +12 -42
- package/dist/m365/spo/commands/customaction/customaction-remove.js +26 -54
- package/dist/m365/spo/commands/customaction/customaction-set.js +75 -132
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +5 -14
- package/dist/m365/spo/commands/feature/feature-disable.js +20 -50
- package/dist/m365/spo/commands/feature/feature-enable.js +22 -50
- package/dist/m365/spo/commands/feature/feature-list.js +11 -36
- package/dist/m365/spo/commands/field/field-add.js +33 -62
- package/dist/m365/spo/commands/field/field-get.js +30 -57
- package/dist/m365/spo/commands/field/field-list.js +21 -46
- package/dist/m365/spo/commands/field/field-remove.js +32 -63
- package/dist/m365/spo/commands/field/field-set.js +34 -66
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +38 -63
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +11 -27
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +25 -47
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +25 -37
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +12 -24
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +10 -18
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +14 -32
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +12 -29
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +19 -46
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +11 -27
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-get.js +5 -0
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +8 -22
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +10 -18
- package/dist/m365/spo/commands/listitem/listitem-add.js +27 -55
- package/dist/m365/spo/commands/listitem/listitem-attachment-add.js +30 -58
- package/dist/m365/spo/commands/listitem/listitem-attachment-get.js +27 -52
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +26 -50
- package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +28 -55
- package/dist/m365/spo/commands/listitem/listitem-attachment-set.js +30 -57
- package/dist/m365/spo/commands/listitem/listitem-batch-add.js +36 -58
- package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +68 -92
- package/dist/m365/spo/commands/listitem/listitem-batch-set.js +37 -57
- package/dist/m365/spo/commands/listitem/listitem-get.js +45 -68
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +31 -55
- package/dist/m365/spo/commands/listitem/listitem-list.js +47 -81
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +37 -60
- package/dist/m365/spo/commands/listitem/listitem-record-lock.js +30 -52
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +31 -52
- package/dist/m365/spo/commands/listitem/listitem-record-unlock.js +30 -52
- package/dist/m365/spo/commands/listitem/listitem-remove.js +33 -61
- package/dist/m365/spo/commands/listitem/listitem-retentionlabel-ensure.js +46 -67
- package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +33 -56
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +55 -98
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +48 -74
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +33 -56
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +31 -53
- package/dist/m365/spo/commands/listitem/listitem-set.js +33 -58
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +74 -120
- package/dist/m365/spo/commands/navigation/navigation-node-get.js +4 -13
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +1 -1
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +13 -47
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +53 -114
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +15 -49
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +6 -1
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +9 -17
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +5 -0
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +11 -27
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +10 -18
- package/dist/m365/spo/commands/page/page-column-list.js +7 -8
- package/dist/m365/spo/commands/page/page-section-list.js +15 -17
- package/dist/m365/spo/commands/page/page-unpublish.js +53 -0
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +9 -17
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +5 -0
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +9 -17
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +29 -39
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +10 -23
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +5 -0
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +19 -28
- package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +24 -59
- package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +10 -34
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +19 -36
- package/dist/m365/spo/commands/sitedesign/sitedesign-list.js +8 -0
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +9 -32
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +10 -31
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +8 -23
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +10 -34
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +9 -38
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +9 -29
- package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +27 -80
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +8 -23
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +8 -18
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +9 -32
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +22 -37
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +9 -26
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +5 -0
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +9 -33
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +29 -56
- package/dist/m365/spo/commands/spo-search.js +43 -116
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +15 -46
- package/dist/m365/spo/commands/tenant/tenant-appcatalogurl-get.js +5 -0
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +20 -57
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +25 -49
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +5 -1
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +25 -49
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +47 -79
- package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +23 -54
- package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +25 -50
- package/dist/m365/spo/commands/tenant/tenant-commandset-list.js +5 -1
- package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +25 -49
- package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +41 -65
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-list.js +5 -0
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +10 -30
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +8 -21
- package/dist/m365/spo/commands/tenant/tenant-settings-list.js +5 -0
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +104 -386
- package/dist/m365/spo/commands/term/term-add.js +95 -110
- package/dist/m365/spo/commands/term/term-get.js +63 -75
- package/dist/m365/spo/commands/term/term-group-add.js +11 -41
- package/dist/m365/spo/commands/term/term-group-get.js +16 -47
- package/dist/m365/spo/commands/term/term-group-list.js +16 -42
- package/dist/m365/spo/commands/term/term-list.js +42 -57
- package/dist/m365/spo/commands/term/term-set-add.js +50 -71
- package/dist/m365/spo/commands/term/term-set-get.js +41 -58
- package/dist/m365/spo/commands/term/term-set-list.js +22 -56
- package/dist/m365/spo/commands/theme/theme-apply.js +27 -43
- package/dist/m365/spo/commands/theme/theme-get.js +8 -15
- package/dist/m365/spo/commands/theme/theme-list.js +5 -0
- package/dist/m365/spo/commands/theme/theme-remove.js +9 -24
- package/dist/m365/spo/commands/theme/theme-set.js +12 -34
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/spp/commands/contentcenter/contentcenter-list.js +5 -0
- package/dist/m365/spp/commands/model/model-get.js +25 -45
- package/dist/m365/spp/commands/model/model-list.js +12 -23
- package/dist/m365/spp/commands/model/model-remove.js +25 -45
- package/dist/m365/teams/commands/app/app-install.js +35 -44
- package/dist/m365/teams/commands/app/app-list.js +8 -33
- package/dist/m365/teams/commands/app/app-publish.js +21 -27
- package/dist/m365/teams/commands/app/app-remove.js +22 -39
- package/dist/m365/teams/commands/app/app-uninstall.js +12 -34
- package/dist/m365/teams/commands/app/app-update.js +35 -45
- package/dist/m365/teams/commands/chat/chat-get.js +30 -45
- package/dist/m365/teams/commands/chat/chat-list.js +22 -42
- package/dist/m365/teams/commands/chat/chat-member-add.js +43 -64
- package/dist/m365/teams/commands/chat/chat-member-list.js +10 -23
- package/dist/m365/teams/commands/chat/chat-member-remove.js +28 -50
- package/dist/m365/teams/commands/chat/chat-message-send.js +32 -55
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +12 -23
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +18 -54
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +12 -23
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +15 -40
- package/dist/m365/teams/commands/meeting/meeting-add.js +57 -68
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-get.js +33 -58
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +14 -38
- package/dist/m365/teams/commands/meeting/meeting-get.js +14 -38
- package/dist/m365/teams/commands/meeting/meeting-list.js +34 -59
- package/dist/m365/teams/commands/meeting/meeting-transcript-get.js +34 -58
- package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +29 -50
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +12 -23
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +18 -49
- package/dist/m365/teams/commands/message/message-get.js +19 -30
- package/dist/m365/teams/commands/message/message-list.js +26 -43
- package/dist/m365/teams/commands/message/message-remove.js +43 -58
- package/dist/m365/teams/commands/message/message-reply-list.js +19 -30
- package/dist/m365/teams/commands/message/message-restore.js +40 -50
- package/dist/m365/teams/commands/message/message-send.js +19 -30
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +12 -23
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +18 -60
- package/dist/m365/teams/commands/report/report-deviceusagedistributionusercounts.js +10 -0
- package/dist/m365/teams/commands/report/report-deviceusageusercounts.js +10 -0
- package/dist/m365/teams/commands/report/report-deviceusageuserdetail.js +22 -0
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +19 -39
- package/dist/m365/teams/commands/report/report-pstncalls.js +19 -39
- package/dist/m365/teams/commands/report/report-useractivitycounts.js +10 -0
- package/dist/m365/teams/commands/report/report-useractivityusercounts.js +10 -0
- package/dist/m365/teams/commands/report/report-useractivityuserdetail.js +22 -0
- package/dist/m365/teams/commands/tab/tab-add.js +23 -49
- package/dist/m365/teams/commands/tab/tab-get.js +55 -56
- package/dist/m365/teams/commands/tab/tab-list.js +17 -28
- package/dist/m365/teams/commands/tab/tab-remove.js +23 -42
- package/dist/m365/teams/commands/team/team-add.js +76 -114
- package/dist/m365/teams/commands/team/team-app-list.js +23 -36
- package/dist/m365/teams/commands/team/team-archive.js +24 -39
- package/dist/m365/teams/commands/team/team-clone.js +28 -62
- package/dist/m365/teams/commands/team/team-get.js +23 -36
- package/dist/m365/teams/commands/team/team-list.js +43 -57
- package/dist/m365/teams/commands/team/team-remove.js +24 -37
- package/dist/m365/teams/commands/team/team-set.js +23 -52
- package/dist/m365/teams/commands/team/team-unarchive.js +23 -28
- package/dist/m365/teams/commands/user/user-app-add.js +40 -49
- package/dist/m365/teams/commands/user/user-app-list.js +26 -39
- package/dist/m365/teams/commands/user/user-app-remove.js +37 -49
- package/dist/m365/teams/commands/user/user-app-upgrade.js +36 -52
- package/dist/m365/teams/commands/user/user-list.js +17 -39
- package/dist/m365/tenant/commands/id/id-get.js +8 -22
- package/dist/m365/tenant/commands/info/info-get.js +23 -36
- package/dist/m365/tenant/commands/people/people-profilecardproperty-add.js +67 -55
- package/dist/m365/tenant/commands/people/people-profilecardproperty-get.js +11 -24
- package/dist/m365/tenant/commands/people/people-profilecardproperty-list.js +5 -0
- package/dist/m365/tenant/commands/people/people-profilecardproperty-remove.js +12 -33
- package/dist/m365/tenant/commands/people/people-profilecardproperty-set.js +31 -51
- package/dist/m365/tenant/commands/people/people-pronouns-get.js +5 -0
- package/dist/m365/tenant/commands/people/profileCardProperties.js +10 -7
- package/dist/m365/tenant/commands/report/report-activeusercounts.js +2 -1
- package/dist/m365/tenant/commands/report/report-activeuserdetail.js +2 -1
- package/dist/m365/tenant/commands/report/report-office365activationcounts.js +9 -0
- package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +9 -0
- package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +9 -0
- package/dist/m365/tenant/commands/report/report-servicesusercounts.js +2 -1
- package/dist/m365/tenant/commands/report/report-settings-get.js +5 -0
- package/dist/m365/tenant/commands/security/security-alerts-list.js +8 -20
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +9 -20
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +8 -20
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +8 -15
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +8 -15
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +12 -26
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +8 -22
- package/dist/utils/calendar.js +1 -1
- package/dist/utils/formatting.js +16 -0
- package/dist/utils/pid.js +7 -16
- package/dist/utils/spe.js +1 -1
- package/dist/utils/spo.js +39 -0
- package/dist/utils/validation.js +36 -0
- package/dist/utils/zod.js +18 -7
- package/docs/docs/cmd/entra/agent/agent-blueprint-list.mdx +175 -0
- package/docs/docs/cmd/entra/agent/agent-blueprintprincipal-list.mdx +156 -0
- package/docs/docs/cmd/login.mdx +15 -2
- package/docs/docs/cmd/outlook/calendargroup/calendargroup-add.mdx +126 -0
- package/docs/docs/cmd/outlook/event/event-add.mdx +390 -0
- package/docs/docs/cmd/spe/container/container-add.mdx +0 -8
- package/docs/docs/cmd/spe/container/container-list.mdx +0 -8
- package/docs/docs/cmd/spe/container/container-permission-add.mdx +140 -0
- package/docs/docs/cmd/spe/container/container-permission-remove.mdx +78 -0
- package/docs/docs/cmd/spe/container/container-permission-set.mdx +78 -0
- package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +0 -8
- package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +0 -8
- package/docs/docs/cmd/spe/container/container-remove.mdx +0 -8
- package/docs/docs/cmd/spe/containertype/containertype-add.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +17 -30
- package/docs/docs/cmd/spo/file/file-checkin.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-copy.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-get.mdx +6 -6
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-keep.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +45 -30
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +64 -42
- package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +10 -8
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +0 -21
- package/docs/docs/cmd/spo/page/page-unpublish.mdx +63 -0
- package/docs/docs/cmd/spp/model/model-get.mdx +1 -1
- package/docs/docs/cmd/spp/model/model-remove.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-add.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-list.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-remove.mdx +21 -0
- package/docs/docs/cmd/viva/engage/engage-message-add.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-get.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-list.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +19 -0
- package/package.json +5 -7
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _TeamsAppPublishCommand_instances, _TeamsAppPublishCommand_initOptions, _TeamsAppPublishCommand_initValidators;
|
|
7
1
|
import fs from 'fs';
|
|
8
2
|
import path from 'path';
|
|
9
3
|
import request from '../../../../request.js';
|
|
10
4
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
5
|
import commands from '../../commands.js';
|
|
6
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
export const options = z.strictObject({
|
|
9
|
+
...globalOptionsZod.shape,
|
|
10
|
+
filePath: z.string()
|
|
11
|
+
.refine(val => {
|
|
12
|
+
const fullPath = path.resolve(val);
|
|
13
|
+
if (!fs.existsSync(fullPath)) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (fs.lstatSync(fullPath).isDirectory()) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
return true;
|
|
20
|
+
}, {
|
|
21
|
+
message: 'Specified file does not exist or points to a directory.'
|
|
22
|
+
})
|
|
23
|
+
.alias('p')
|
|
24
|
+
});
|
|
12
25
|
class TeamsAppPublishCommand extends GraphCommand {
|
|
13
26
|
get name() {
|
|
14
27
|
return commands.APP_PUBLISH;
|
|
@@ -16,11 +29,8 @@ class TeamsAppPublishCommand extends GraphCommand {
|
|
|
16
29
|
get description() {
|
|
17
30
|
return 'Publishes Teams app to the organization\'s app catalog';
|
|
18
31
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_TeamsAppPublishCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _TeamsAppPublishCommand_instances, "m", _TeamsAppPublishCommand_initOptions).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _TeamsAppPublishCommand_instances, "m", _TeamsAppPublishCommand_initValidators).call(this);
|
|
32
|
+
get schema() {
|
|
33
|
+
return options;
|
|
24
34
|
}
|
|
25
35
|
async commandAction(logger, args) {
|
|
26
36
|
try {
|
|
@@ -45,21 +55,5 @@ class TeamsAppPublishCommand extends GraphCommand {
|
|
|
45
55
|
}
|
|
46
56
|
}
|
|
47
57
|
}
|
|
48
|
-
_TeamsAppPublishCommand_instances = new WeakSet(), _TeamsAppPublishCommand_initOptions = function _TeamsAppPublishCommand_initOptions() {
|
|
49
|
-
this.options.unshift({
|
|
50
|
-
option: '-p, --filePath <filePath>'
|
|
51
|
-
});
|
|
52
|
-
}, _TeamsAppPublishCommand_initValidators = function _TeamsAppPublishCommand_initValidators() {
|
|
53
|
-
this.validators.push(async (args) => {
|
|
54
|
-
const fullPath = path.resolve(args.options.filePath);
|
|
55
|
-
if (!fs.existsSync(fullPath)) {
|
|
56
|
-
return `File '${fullPath}' not found`;
|
|
57
|
-
}
|
|
58
|
-
if (fs.lstatSync(fullPath).isDirectory()) {
|
|
59
|
-
return `Path '${fullPath}' points to a directory`;
|
|
60
|
-
}
|
|
61
|
-
return true;
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
58
|
export default new TeamsAppPublishCommand();
|
|
65
59
|
//# sourceMappingURL=app-publish.js.map
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _TeamsAppRemoveCommand_instances, _TeamsAppRemoveCommand_initTelemetry, _TeamsAppRemoveCommand_initOptions, _TeamsAppRemoveCommand_initValidators, _TeamsAppRemoveCommand_initOptionSets;
|
|
7
1
|
import { cli } from '../../../../cli/cli.js';
|
|
8
2
|
import request from '../../../../request.js';
|
|
9
3
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
4
|
import { validation } from '../../../../utils/validation.js';
|
|
11
5
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
6
|
import commands from '../../commands.js';
|
|
7
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
export const options = z.strictObject({
|
|
10
|
+
...globalOptionsZod.shape,
|
|
11
|
+
id: z.string().refine(val => validation.isValidGuid(val), {
|
|
12
|
+
message: 'The value must be a valid GUID.'
|
|
13
|
+
}).optional().alias('i'),
|
|
14
|
+
name: z.string().optional().alias('n'),
|
|
15
|
+
force: z.boolean().optional().alias('f')
|
|
16
|
+
});
|
|
13
17
|
class TeamsAppRemoveCommand extends GraphCommand {
|
|
14
18
|
get name() {
|
|
15
19
|
return commands.APP_REMOVE;
|
|
@@ -17,13 +21,18 @@ class TeamsAppRemoveCommand extends GraphCommand {
|
|
|
17
21
|
get description() {
|
|
18
22
|
return 'Removes a Teams app from the organization\'s app catalog';
|
|
19
23
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
get schema() {
|
|
25
|
+
return options;
|
|
26
|
+
}
|
|
27
|
+
getRefinedSchema(schema) {
|
|
28
|
+
return schema
|
|
29
|
+
.refine(opts => [opts.id, opts.name].filter(x => x !== undefined).length === 1, {
|
|
30
|
+
message: 'Specify either id or name, but not both.',
|
|
31
|
+
params: {
|
|
32
|
+
customCode: 'optionSet',
|
|
33
|
+
options: ['id', 'name']
|
|
34
|
+
}
|
|
35
|
+
});
|
|
27
36
|
}
|
|
28
37
|
async commandAction(logger, args) {
|
|
29
38
|
const removeApp = async () => {
|
|
@@ -81,31 +90,5 @@ class TeamsAppRemoveCommand extends GraphCommand {
|
|
|
81
90
|
return app.id;
|
|
82
91
|
}
|
|
83
92
|
}
|
|
84
|
-
_TeamsAppRemoveCommand_instances = new WeakSet(), _TeamsAppRemoveCommand_initTelemetry = function _TeamsAppRemoveCommand_initTelemetry() {
|
|
85
|
-
this.telemetry.push((args) => {
|
|
86
|
-
Object.assign(this.telemetryProperties, {
|
|
87
|
-
force: (!(!args.options.force)).toString(),
|
|
88
|
-
id: typeof args.options.id !== 'undefined',
|
|
89
|
-
name: typeof args.options.name !== 'undefined'
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
}, _TeamsAppRemoveCommand_initOptions = function _TeamsAppRemoveCommand_initOptions() {
|
|
93
|
-
this.options.unshift({
|
|
94
|
-
option: '-i, --id [id]'
|
|
95
|
-
}, {
|
|
96
|
-
option: '-n, --name [name]'
|
|
97
|
-
}, {
|
|
98
|
-
option: '-f, --force'
|
|
99
|
-
});
|
|
100
|
-
}, _TeamsAppRemoveCommand_initValidators = function _TeamsAppRemoveCommand_initValidators() {
|
|
101
|
-
this.validators.push(async (args) => {
|
|
102
|
-
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
103
|
-
return `${args.options.id} is not a valid GUID`;
|
|
104
|
-
}
|
|
105
|
-
return true;
|
|
106
|
-
});
|
|
107
|
-
}, _TeamsAppRemoveCommand_initOptionSets = function _TeamsAppRemoveCommand_initOptionSets() {
|
|
108
|
-
this.optionSets.push({ options: ['id', 'name'] });
|
|
109
|
-
};
|
|
110
93
|
export default new TeamsAppRemoveCommand();
|
|
111
94
|
//# sourceMappingURL=app-remove.js.map
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _TeamsAppUninstallCommand_instances, _TeamsAppUninstallCommand_initTelemetry, _TeamsAppUninstallCommand_initOptions, _TeamsAppUninstallCommand_initValidators;
|
|
7
1
|
import { cli } from '../../../../cli/cli.js';
|
|
8
2
|
import request from '../../../../request.js';
|
|
9
3
|
import { validation } from '../../../../utils/validation.js';
|
|
10
4
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
5
|
import commands from '../../commands.js';
|
|
6
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
export const options = z.strictObject({
|
|
9
|
+
...globalOptionsZod.shape,
|
|
10
|
+
id: z.string(),
|
|
11
|
+
teamId: z.string().refine(val => validation.isValidGuid(val), {
|
|
12
|
+
message: 'The value must be a valid GUID.'
|
|
13
|
+
}),
|
|
14
|
+
force: z.boolean().optional().alias('f')
|
|
15
|
+
});
|
|
12
16
|
class TeamsAppUninstallCommand extends GraphCommand {
|
|
13
17
|
get name() {
|
|
14
18
|
return commands.APP_UNINSTALL;
|
|
@@ -16,12 +20,8 @@ class TeamsAppUninstallCommand extends GraphCommand {
|
|
|
16
20
|
get description() {
|
|
17
21
|
return 'Uninstalls an app from a Microsoft Team team';
|
|
18
22
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_TeamsAppUninstallCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _TeamsAppUninstallCommand_instances, "m", _TeamsAppUninstallCommand_initTelemetry).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _TeamsAppUninstallCommand_instances, "m", _TeamsAppUninstallCommand_initOptions).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _TeamsAppUninstallCommand_instances, "m", _TeamsAppUninstallCommand_initValidators).call(this);
|
|
23
|
+
get schema() {
|
|
24
|
+
return options;
|
|
25
25
|
}
|
|
26
26
|
async commandAction(logger, args) {
|
|
27
27
|
const uninstallApp = async () => {
|
|
@@ -52,27 +52,5 @@ class TeamsAppUninstallCommand extends GraphCommand {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
_TeamsAppUninstallCommand_instances = new WeakSet(), _TeamsAppUninstallCommand_initTelemetry = function _TeamsAppUninstallCommand_initTelemetry() {
|
|
56
|
-
this.telemetry.push((args) => {
|
|
57
|
-
Object.assign(this.telemetryProperties, {
|
|
58
|
-
force: args.options.force || false
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
}, _TeamsAppUninstallCommand_initOptions = function _TeamsAppUninstallCommand_initOptions() {
|
|
62
|
-
this.options.unshift({
|
|
63
|
-
option: '--id <id>'
|
|
64
|
-
}, {
|
|
65
|
-
option: '--teamId <teamId>'
|
|
66
|
-
}, {
|
|
67
|
-
option: '-f, --force'
|
|
68
|
-
});
|
|
69
|
-
}, _TeamsAppUninstallCommand_initValidators = function _TeamsAppUninstallCommand_initValidators() {
|
|
70
|
-
this.validators.push(async (args) => {
|
|
71
|
-
if (!validation.isValidGuid(args.options.teamId)) {
|
|
72
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
73
|
-
}
|
|
74
|
-
return true;
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
55
|
export default new TeamsAppUninstallCommand();
|
|
78
56
|
//# sourceMappingURL=app-uninstall.js.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _TeamsAppUpdateCommand_instances, _TeamsAppUpdateCommand_initTelemetry, _TeamsAppUpdateCommand_initOptions, _TeamsAppUpdateCommand_initValidators, _TeamsAppUpdateCommand_initOptionSets;
|
|
7
1
|
import fs from 'fs';
|
|
8
2
|
import path from 'path';
|
|
9
3
|
import request from '../../../../request.js';
|
|
@@ -12,6 +6,29 @@ import { validation } from '../../../../utils/validation.js';
|
|
|
12
6
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
7
|
import commands from '../../commands.js';
|
|
14
8
|
import { cli } from '../../../../cli/cli.js';
|
|
9
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
export const options = z.strictObject({
|
|
12
|
+
...globalOptionsZod.shape,
|
|
13
|
+
id: z.string().refine(val => validation.isValidGuid(val), {
|
|
14
|
+
message: 'The value must be a valid GUID.'
|
|
15
|
+
}).optional().alias('i'),
|
|
16
|
+
name: z.string().optional().alias('n'),
|
|
17
|
+
filePath: z.string()
|
|
18
|
+
.refine(val => {
|
|
19
|
+
const fullPath = path.resolve(val);
|
|
20
|
+
if (!fs.existsSync(fullPath)) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
if (fs.lstatSync(fullPath).isDirectory()) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
}, {
|
|
28
|
+
message: 'Specified file does not exist or points to a directory.'
|
|
29
|
+
})
|
|
30
|
+
.alias('p')
|
|
31
|
+
});
|
|
15
32
|
class TeamsAppUpdateCommand extends GraphCommand {
|
|
16
33
|
get name() {
|
|
17
34
|
return commands.APP_UPDATE;
|
|
@@ -19,13 +36,18 @@ class TeamsAppUpdateCommand extends GraphCommand {
|
|
|
19
36
|
get description() {
|
|
20
37
|
return 'Updates Teams app in the organization\'s app catalog';
|
|
21
38
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
39
|
+
get schema() {
|
|
40
|
+
return options;
|
|
41
|
+
}
|
|
42
|
+
getRefinedSchema(schema) {
|
|
43
|
+
return schema
|
|
44
|
+
.refine(opts => [opts.id, opts.name].filter(x => x !== undefined).length === 1, {
|
|
45
|
+
message: 'Specify either id or name, but not both.',
|
|
46
|
+
params: {
|
|
47
|
+
customCode: 'optionSet',
|
|
48
|
+
options: ['id', 'name']
|
|
49
|
+
}
|
|
50
|
+
});
|
|
29
51
|
}
|
|
30
52
|
async commandAction(logger, args) {
|
|
31
53
|
const { filePath } = args.options;
|
|
@@ -72,37 +94,5 @@ class TeamsAppUpdateCommand extends GraphCommand {
|
|
|
72
94
|
return app.id;
|
|
73
95
|
}
|
|
74
96
|
}
|
|
75
|
-
_TeamsAppUpdateCommand_instances = new WeakSet(), _TeamsAppUpdateCommand_initTelemetry = function _TeamsAppUpdateCommand_initTelemetry() {
|
|
76
|
-
this.telemetry.push((args) => {
|
|
77
|
-
Object.assign(this.telemetryProperties, {
|
|
78
|
-
id: typeof args.options.id !== 'undefined',
|
|
79
|
-
name: typeof args.options.name !== 'undefined'
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
}, _TeamsAppUpdateCommand_initOptions = function _TeamsAppUpdateCommand_initOptions() {
|
|
83
|
-
this.options.unshift({
|
|
84
|
-
option: '-i, --id [id]'
|
|
85
|
-
}, {
|
|
86
|
-
option: '-n, --name [name]'
|
|
87
|
-
}, {
|
|
88
|
-
option: '-p, --filePath <filePath>'
|
|
89
|
-
});
|
|
90
|
-
}, _TeamsAppUpdateCommand_initValidators = function _TeamsAppUpdateCommand_initValidators() {
|
|
91
|
-
this.validators.push(async (args) => {
|
|
92
|
-
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
93
|
-
return `${args.options.id} is not a valid GUID`;
|
|
94
|
-
}
|
|
95
|
-
const fullPath = path.resolve(args.options.filePath);
|
|
96
|
-
if (!fs.existsSync(fullPath)) {
|
|
97
|
-
return `File '${fullPath}' not found`;
|
|
98
|
-
}
|
|
99
|
-
if (fs.lstatSync(fullPath).isDirectory()) {
|
|
100
|
-
return `Path '${fullPath}' points to a directory`;
|
|
101
|
-
}
|
|
102
|
-
return true;
|
|
103
|
-
});
|
|
104
|
-
}, _TeamsAppUpdateCommand_initOptionSets = function _TeamsAppUpdateCommand_initOptionSets() {
|
|
105
|
-
this.optionSets.push({ options: ['id', 'name'] });
|
|
106
|
-
};
|
|
107
97
|
export default new TeamsAppUpdateCommand();
|
|
108
98
|
//# sourceMappingURL=app-update.js.map
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _TeamsChatGetCommand_instances, _TeamsChatGetCommand_initTelemetry, _TeamsChatGetCommand_initOptions, _TeamsChatGetCommand_initValidators, _TeamsChatGetCommand_initOptionSets;
|
|
1
|
+
import { z } from 'zod';
|
|
7
2
|
import auth from '../../../../Auth.js';
|
|
3
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
10
6
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -13,6 +9,22 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
13
9
|
import commands from '../../commands.js';
|
|
14
10
|
import { chatUtil } from './chatUtil.js';
|
|
15
11
|
import { cli } from '../../../../cli/cli.js';
|
|
12
|
+
export const options = z.strictObject({
|
|
13
|
+
...globalOptionsZod.shape,
|
|
14
|
+
id: z.string().refine(val => validation.isValidTeamsChatId(val), {
|
|
15
|
+
message: 'The value is not a valid Teams ChatId.'
|
|
16
|
+
}).alias('i').optional(),
|
|
17
|
+
participants: z.string().refine(val => {
|
|
18
|
+
const participants = val.trim().toLowerCase().split(',').filter(e => e && e !== '');
|
|
19
|
+
if (!participants || participants.length === 0) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
return participants.every(e => validation.isValidUserPrincipalName(e));
|
|
23
|
+
}, {
|
|
24
|
+
message: 'The option participants contains one or more invalid email addresses.'
|
|
25
|
+
}).alias('p').optional(),
|
|
26
|
+
name: z.string().alias('n').optional()
|
|
27
|
+
});
|
|
16
28
|
class TeamsChatGetCommand extends GraphCommand {
|
|
17
29
|
get name() {
|
|
18
30
|
return commands.CHAT_GET;
|
|
@@ -20,13 +32,18 @@ class TeamsChatGetCommand extends GraphCommand {
|
|
|
20
32
|
get description() {
|
|
21
33
|
return 'Gets a Microsoft Teams chat conversation by id, participants or chat name.';
|
|
22
34
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
get schema() {
|
|
36
|
+
return options;
|
|
37
|
+
}
|
|
38
|
+
getRefinedSchema(schema) {
|
|
39
|
+
return schema
|
|
40
|
+
.refine(opts => [opts.id, opts.participants, opts.name].filter(x => x !== undefined).length === 1, {
|
|
41
|
+
message: 'Specify one of id, participants or name, but not more than one.',
|
|
42
|
+
params: {
|
|
43
|
+
customCode: 'optionSet',
|
|
44
|
+
options: ['id', 'participants', 'name']
|
|
45
|
+
}
|
|
46
|
+
});
|
|
30
47
|
}
|
|
31
48
|
async commandAction(logger, args) {
|
|
32
49
|
try {
|
|
@@ -83,37 +100,5 @@ class TeamsChatGetCommand extends GraphCommand {
|
|
|
83
100
|
return result.id;
|
|
84
101
|
}
|
|
85
102
|
}
|
|
86
|
-
_TeamsChatGetCommand_instances = new WeakSet(), _TeamsChatGetCommand_initTelemetry = function _TeamsChatGetCommand_initTelemetry() {
|
|
87
|
-
this.telemetry.push((args) => {
|
|
88
|
-
Object.assign(this.telemetryProperties, {
|
|
89
|
-
id: typeof args.options.id !== 'undefined',
|
|
90
|
-
participants: typeof args.options.participants !== 'undefined',
|
|
91
|
-
name: typeof args.options.name !== 'undefined'
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
}, _TeamsChatGetCommand_initOptions = function _TeamsChatGetCommand_initOptions() {
|
|
95
|
-
this.options.unshift({
|
|
96
|
-
option: '-i, --id [id]'
|
|
97
|
-
}, {
|
|
98
|
-
option: '-p, --participants [participants]'
|
|
99
|
-
}, {
|
|
100
|
-
option: '-n, --name [name]'
|
|
101
|
-
});
|
|
102
|
-
}, _TeamsChatGetCommand_initValidators = function _TeamsChatGetCommand_initValidators() {
|
|
103
|
-
this.validators.push(async (args) => {
|
|
104
|
-
if (args.options.id && !validation.isValidTeamsChatId(args.options.id)) {
|
|
105
|
-
return `${args.options.id} is not a valid Teams ChatId.`;
|
|
106
|
-
}
|
|
107
|
-
if (args.options.participants) {
|
|
108
|
-
const participants = args.options.participants.trim().toLowerCase().split(',').filter(e => e && e !== '');
|
|
109
|
-
if (!participants || participants.length === 0 || participants.some(e => !validation.isValidUserPrincipalName(e))) {
|
|
110
|
-
return `${args.options.participants} contains one or more invalid email addresses.`;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return true;
|
|
114
|
-
});
|
|
115
|
-
}, _TeamsChatGetCommand_initOptionSets = function _TeamsChatGetCommand_initOptionSets() {
|
|
116
|
-
this.optionSets.push({ options: ['id', 'participants', 'name'] });
|
|
117
|
-
};
|
|
118
103
|
export default new TeamsChatGetCommand();
|
|
119
104
|
//# sourceMappingURL=chat-get.js.map
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _TeamsChatListCommand_instances, _TeamsChatListCommand_initTelemetry, _TeamsChatListCommand_initOptions, _TeamsChatListCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
7
2
|
import auth from '../../../../Auth.js';
|
|
3
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
8
4
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
9
5
|
import { odata } from '../../../../utils/odata.js';
|
|
10
6
|
import { validation } from '../../../../utils/validation.js';
|
|
11
7
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
8
|
import commands from '../../commands.js';
|
|
9
|
+
export const options = z.strictObject({
|
|
10
|
+
...globalOptionsZod.shape,
|
|
11
|
+
type: z.enum(['oneOnOne', 'group', 'meeting']).alias('t').optional(),
|
|
12
|
+
userId: z.string().refine(val => validation.isValidGuid(val), {
|
|
13
|
+
message: 'The value of the option userId must be a valid GUID.'
|
|
14
|
+
}).optional(),
|
|
15
|
+
userName: z.string().optional()
|
|
16
|
+
});
|
|
13
17
|
class TeamsChatListCommand extends GraphCommand {
|
|
14
18
|
get name() {
|
|
15
19
|
return commands.CHAT_LIST;
|
|
@@ -20,13 +24,18 @@ class TeamsChatListCommand extends GraphCommand {
|
|
|
20
24
|
defaultProperties() {
|
|
21
25
|
return ['id', 'topic', 'chatType'];
|
|
22
26
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
get schema() {
|
|
28
|
+
return options;
|
|
29
|
+
}
|
|
30
|
+
getRefinedSchema(schema) {
|
|
31
|
+
return schema
|
|
32
|
+
.refine(opts => !(opts.userId && opts.userName), {
|
|
33
|
+
message: 'You can only specify either userId or userName.',
|
|
34
|
+
params: {
|
|
35
|
+
customCode: 'optionSet',
|
|
36
|
+
options: ['userId', 'userName']
|
|
37
|
+
}
|
|
38
|
+
});
|
|
30
39
|
}
|
|
31
40
|
async commandAction(logger, args) {
|
|
32
41
|
const isAppOnlyAccessToken = accessToken.isAppOnlyAccessToken(auth.connection.accessTokens[this.resource].accessToken);
|
|
@@ -49,34 +58,5 @@ class TeamsChatListCommand extends GraphCommand {
|
|
|
49
58
|
}
|
|
50
59
|
}
|
|
51
60
|
}
|
|
52
|
-
_TeamsChatListCommand_instances = new WeakSet(), _TeamsChatListCommand_initTelemetry = function _TeamsChatListCommand_initTelemetry() {
|
|
53
|
-
this.telemetry.push((args) => {
|
|
54
|
-
Object.assign(this.telemetryProperties, {
|
|
55
|
-
type: args.options.type
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
}, _TeamsChatListCommand_initOptions = function _TeamsChatListCommand_initOptions() {
|
|
59
|
-
this.options.unshift({
|
|
60
|
-
option: '-t, --type [type]',
|
|
61
|
-
autocomplete: this.supportedTypes
|
|
62
|
-
}, {
|
|
63
|
-
option: '--userId [userId]'
|
|
64
|
-
}, {
|
|
65
|
-
option: '--userName [userName]'
|
|
66
|
-
});
|
|
67
|
-
}, _TeamsChatListCommand_initValidators = function _TeamsChatListCommand_initValidators() {
|
|
68
|
-
this.validators.push(async (args) => {
|
|
69
|
-
if (args.options.type !== undefined && this.supportedTypes.indexOf(args.options.type) === -1) {
|
|
70
|
-
return `${args.options.type} is not a valid chatType. Accepted values are ${this.supportedTypes.join(', ')}`;
|
|
71
|
-
}
|
|
72
|
-
if (args.options.userId && args.options.userName) {
|
|
73
|
-
return `You can only specify either 'userId' or 'userName'`;
|
|
74
|
-
}
|
|
75
|
-
if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
|
|
76
|
-
return `${args.options.userId} is not a valid GUID`;
|
|
77
|
-
}
|
|
78
|
-
return true;
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
61
|
export default new TeamsChatListCommand();
|
|
82
62
|
//# sourceMappingURL=chat-list.js.map
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _TeamsChatMemberAddCommand_instances, _a, _TeamsChatMemberAddCommand_initTelemetry, _TeamsChatMemberAddCommand_initOptions, _TeamsChatMemberAddCommand_initValidators, _TeamsChatMemberAddCommand_initOptionSets;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import request from '../../../../request.js';
|
|
8
4
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
5
|
import { validation } from '../../../../utils/validation.js';
|
|
10
6
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
7
|
import commands from '../../commands.js';
|
|
8
|
+
export const options = z.strictObject({
|
|
9
|
+
...globalOptionsZod.shape,
|
|
10
|
+
chatId: z.string().refine(val => validation.isValidTeamsChatId(val), {
|
|
11
|
+
message: 'The value of the option chatId must be a valid Teams ChatId.'
|
|
12
|
+
}).alias('i'),
|
|
13
|
+
userId: z.string().refine(val => validation.isValidGuid(val), {
|
|
14
|
+
message: 'The value of the option userId must be a valid GUID.'
|
|
15
|
+
}).optional(),
|
|
16
|
+
userName: z.string().refine(val => validation.isValidUserPrincipalName(val), {
|
|
17
|
+
message: 'The value of the option userName must be a valid user principal name.'
|
|
18
|
+
}).optional(),
|
|
19
|
+
role: z.enum(['owner', 'guest']).optional(),
|
|
20
|
+
visibleHistoryStartDateTime: z.string().refine(val => validation.isValidISODateTime(val), {
|
|
21
|
+
message: 'The value of the option visibleHistoryStartDateTime is not a valid ISO date.'
|
|
22
|
+
}).optional(),
|
|
23
|
+
withAllHistory: z.boolean().optional()
|
|
24
|
+
});
|
|
12
25
|
class TeamsChatMemberAddCommand extends GraphCommand {
|
|
13
26
|
get name() {
|
|
14
27
|
return commands.CHAT_MEMBER_ADD;
|
|
@@ -16,13 +29,30 @@ class TeamsChatMemberAddCommand extends GraphCommand {
|
|
|
16
29
|
get description() {
|
|
17
30
|
return 'Adds a member to a Microsoft Teams chat conversation.';
|
|
18
31
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
get schema() {
|
|
33
|
+
return options;
|
|
34
|
+
}
|
|
35
|
+
getRefinedSchema(schema) {
|
|
36
|
+
return schema
|
|
37
|
+
.refine(opts => [opts.userId, opts.userName].filter(x => x !== undefined).length === 1, {
|
|
38
|
+
message: 'Specify either userId or userName, but not both.',
|
|
39
|
+
params: {
|
|
40
|
+
customCode: 'optionSet',
|
|
41
|
+
options: ['userId', 'userName']
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
.refine(opts => {
|
|
45
|
+
if (opts.visibleHistoryStartDateTime && opts.withAllHistory) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
return true;
|
|
49
|
+
}, {
|
|
50
|
+
message: 'Specify either visibleHistoryStartDateTime or withAllHistory, but not both.',
|
|
51
|
+
params: {
|
|
52
|
+
customCode: 'optionSet',
|
|
53
|
+
options: ['visibleHistoryStartDateTime', 'withAllHistory']
|
|
54
|
+
}
|
|
55
|
+
});
|
|
26
56
|
}
|
|
27
57
|
async commandAction(logger, args) {
|
|
28
58
|
try {
|
|
@@ -49,56 +79,5 @@ class TeamsChatMemberAddCommand extends GraphCommand {
|
|
|
49
79
|
}
|
|
50
80
|
}
|
|
51
81
|
}
|
|
52
|
-
_a = TeamsChatMemberAddCommand, _TeamsChatMemberAddCommand_instances = new WeakSet(), _TeamsChatMemberAddCommand_initTelemetry = function _TeamsChatMemberAddCommand_initTelemetry() {
|
|
53
|
-
this.telemetry.push((args) => {
|
|
54
|
-
Object.assign(this.telemetryProperties, {
|
|
55
|
-
userId: typeof args.options.userId !== 'undefined',
|
|
56
|
-
userName: typeof args.options.userName !== 'undefined',
|
|
57
|
-
role: typeof args.options.role !== 'undefined',
|
|
58
|
-
visibleHistoryStartDateTime: typeof args.options.visibleHistoryStartDateTime !== 'undefined',
|
|
59
|
-
withAllHistory: !!args.options.withAllHistory
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}, _TeamsChatMemberAddCommand_initOptions = function _TeamsChatMemberAddCommand_initOptions() {
|
|
63
|
-
this.options.unshift({
|
|
64
|
-
option: '-i, --chatId <chatId>'
|
|
65
|
-
}, {
|
|
66
|
-
option: '--userId [userId]'
|
|
67
|
-
}, {
|
|
68
|
-
option: '--userName [userName]'
|
|
69
|
-
}, {
|
|
70
|
-
option: '--role [role]',
|
|
71
|
-
autocomplete: _a.roles
|
|
72
|
-
}, {
|
|
73
|
-
option: '--visibleHistoryStartDateTime [visibleHistoryStartDateTime]'
|
|
74
|
-
}, {
|
|
75
|
-
option: '--withAllHistory'
|
|
76
|
-
});
|
|
77
|
-
}, _TeamsChatMemberAddCommand_initValidators = function _TeamsChatMemberAddCommand_initValidators() {
|
|
78
|
-
this.validators.push(async (args) => {
|
|
79
|
-
if (!validation.isValidTeamsChatId(args.options.chatId)) {
|
|
80
|
-
return `${args.options.chatId} is not a valid chatId.`;
|
|
81
|
-
}
|
|
82
|
-
if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
|
|
83
|
-
return `${args.options.userId} is not a valid userId.`;
|
|
84
|
-
}
|
|
85
|
-
if (args.options.userName && !validation.isValidUserPrincipalName(args.options.userName)) {
|
|
86
|
-
return `${args.options.userName} is not a valid userName.`;
|
|
87
|
-
}
|
|
88
|
-
if (args.options.role && _a.roles.indexOf(args.options.role) < 0) {
|
|
89
|
-
return `${args.options.role} is not a valid role. Allowed values are ${_a.roles.join(', ')}`;
|
|
90
|
-
}
|
|
91
|
-
if (args.options.visibleHistoryStartDateTime && !validation.isValidISODateTime(args.options.visibleHistoryStartDateTime)) {
|
|
92
|
-
return `'${args.options.visibleHistoryStartDateTime}' is not a valid visibleHistoryStartDateTime.`;
|
|
93
|
-
}
|
|
94
|
-
return true;
|
|
95
|
-
});
|
|
96
|
-
}, _TeamsChatMemberAddCommand_initOptionSets = function _TeamsChatMemberAddCommand_initOptionSets() {
|
|
97
|
-
this.optionSets.push({ options: ['userId', 'userName'] }, {
|
|
98
|
-
options: ['visibleHistoryStartDateTime', 'withAllHistory'],
|
|
99
|
-
runsWhen: (args) => args.options.visibleHistoryStartDateTime || args.options.withAllHistory
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
TeamsChatMemberAddCommand.roles = ['owner', 'guest'];
|
|
103
82
|
export default new TeamsChatMemberAddCommand();
|
|
104
83
|
//# sourceMappingURL=chat-member-add.js.map
|