@pnp/cli-microsoft365 12.0.0-beta.10c5833 → 12.0.0-beta.235caf5
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/.devproxy/generate-openapi-spec.json +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +19 -2
- package/dist/cli/cli.js +3 -0
- package/dist/config.js +1 -0
- package/dist/googleAnalytics.js +96 -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/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 +1 -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-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.js +3 -0
- package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +15 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.0.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -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/upgrade-1.24.0.js +77 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +2 -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/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/file/file-get.js +4 -3
- package/dist/m365/spo/commands/folder/folder-unarchive.js +90 -0
- 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 -79
- 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 +7 -5
- 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-list.js +1 -1
- 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/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-applicationcustomizer-add.js +8 -1
- package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +8 -1
- package/dist/m365/spo/commands/term/term-group-list.js +7 -8
- package/dist/m365/spo/commands/term/term-set-list.js +6 -9
- package/dist/m365/spo/commands.js +3 -1
- 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/channel/channel-add.js +46 -57
- package/dist/m365/teams/commands/channel/channel-get.js +41 -48
- package/dist/m365/teams/commands/channel/channel-list.js +28 -42
- package/dist/m365/teams/commands/channel/channel-member-add.js +53 -54
- package/dist/m365/teams/commands/channel/channel-member-list.js +47 -55
- package/dist/m365/teams/commands/channel/channel-member-remove.js +62 -62
- package/dist/m365/teams/commands/channel/channel-member-set.js +61 -65
- package/dist/m365/teams/commands/channel/channel-remove.js +47 -49
- package/dist/m365/teams/commands/channel/channel-set.js +47 -54
- 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/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/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/m365/util/commands/accesstoken/accesstoken-get.js +10 -28
- package/dist/telemetry.js +7 -11
- 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 +40 -3
- package/dist/utils/urlUtil.js +2 -2
- package/dist/utils/validation.js +24 -0
- package/dist/utils/zod.js +17 -7
- package/docs/docs/cmd/entra/agent/agent-blueprint-list.mdx +175 -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/externaluser/externaluser-list.mdx +17 -30
- package/docs/docs/cmd/spo/file/file-archive.mdx +1 -1
- 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 +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +24 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +24 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-unarchive.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-archive.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 +22 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +23 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +22 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +24 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-set.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-unarchive.mdx +76 -0
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -6
- 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-list.mdx +37 -27
- 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/npm-shrinkwrap.json +702 -3230
- package/package.json +21 -38
- package/dist/appInsights.js +0 -43
|
@@ -1,14 +1,23 @@
|
|
|
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 _TeamsFunSettingsSetCommand_instances, _a, _TeamsFunSettingsSetCommand_initTelemetry, _TeamsFunSettingsSetCommand_initOptions, _TeamsFunSettingsSetCommand_initTypes, _TeamsFunSettingsSetCommand_initValidators;
|
|
7
1
|
import request from '../../../../request.js';
|
|
8
2
|
import { formatting } from '../../../../utils/formatting.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
|
+
import { zod } from '../../../../utils/zod.js';
|
|
9
|
+
export const options = z.strictObject({
|
|
10
|
+
...globalOptionsZod.shape,
|
|
11
|
+
teamId: z.string()
|
|
12
|
+
.refine(val => validation.isValidGuid(val), {
|
|
13
|
+
message: 'teamId must be a valid GUID'
|
|
14
|
+
})
|
|
15
|
+
.alias('i'),
|
|
16
|
+
allowGiphy: z.boolean().optional(),
|
|
17
|
+
giphyContentRating: zod.coercedEnum({ Strict: 'strict', Moderate: 'moderate' }).optional(),
|
|
18
|
+
allowStickersAndMemes: z.boolean().optional(),
|
|
19
|
+
allowCustomMemes: z.boolean().optional()
|
|
20
|
+
});
|
|
12
21
|
class TeamsFunSettingsSetCommand extends GraphCommand {
|
|
13
22
|
get name() {
|
|
14
23
|
return commands.FUNSETTINGS_SET;
|
|
@@ -16,13 +25,8 @@ class TeamsFunSettingsSetCommand extends GraphCommand {
|
|
|
16
25
|
get description() {
|
|
17
26
|
return 'Updates fun settings of a Microsoft Teams team';
|
|
18
27
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_TeamsFunSettingsSetCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _TeamsFunSettingsSetCommand_instances, "m", _TeamsFunSettingsSetCommand_initTelemetry).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _TeamsFunSettingsSetCommand_instances, "m", _TeamsFunSettingsSetCommand_initOptions).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _TeamsFunSettingsSetCommand_instances, "m", _TeamsFunSettingsSetCommand_initTypes).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _TeamsFunSettingsSetCommand_instances, "m", _TeamsFunSettingsSetCommand_initValidators).call(this);
|
|
28
|
+
get schema() {
|
|
29
|
+
return options;
|
|
26
30
|
}
|
|
27
31
|
async commandAction(logger, args) {
|
|
28
32
|
try {
|
|
@@ -32,7 +36,7 @@ class TeamsFunSettingsSetCommand extends GraphCommand {
|
|
|
32
36
|
const data = {
|
|
33
37
|
funSettings: {}
|
|
34
38
|
};
|
|
35
|
-
|
|
39
|
+
TeamsFunSettingsSetCommand.booleanProps.forEach(p => {
|
|
36
40
|
if (typeof args.options[p] !== 'undefined') {
|
|
37
41
|
data.funSettings[p] = args.options[p];
|
|
38
42
|
}
|
|
@@ -55,46 +59,6 @@ class TeamsFunSettingsSetCommand extends GraphCommand {
|
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
|
-
_a = TeamsFunSettingsSetCommand, _TeamsFunSettingsSetCommand_instances = new WeakSet(), _TeamsFunSettingsSetCommand_initTelemetry = function _TeamsFunSettingsSetCommand_initTelemetry() {
|
|
59
|
-
this.telemetry.push((args) => {
|
|
60
|
-
Object.assign(this.telemetryProperties, {
|
|
61
|
-
giphyContentRating: args.options.giphyContentRating
|
|
62
|
-
});
|
|
63
|
-
_a.booleanProps.forEach(p => {
|
|
64
|
-
this.telemetryProperties[p] = args.options[p];
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
}, _TeamsFunSettingsSetCommand_initOptions = function _TeamsFunSettingsSetCommand_initOptions() {
|
|
68
|
-
this.options.unshift({
|
|
69
|
-
option: '-i, --teamId <teamId>'
|
|
70
|
-
}, {
|
|
71
|
-
option: '--allowGiphy [allowGiphy]',
|
|
72
|
-
autocomplete: ['true', 'false']
|
|
73
|
-
}, {
|
|
74
|
-
option: '--giphyContentRating [giphyContentRating]'
|
|
75
|
-
}, {
|
|
76
|
-
option: '--allowStickersAndMemes [allowStickersAndMemes]',
|
|
77
|
-
autocomplete: ['true', 'false']
|
|
78
|
-
}, {
|
|
79
|
-
option: '--allowCustomMemes [allowCustomMemes]',
|
|
80
|
-
autocomplete: ['true', 'false']
|
|
81
|
-
});
|
|
82
|
-
}, _TeamsFunSettingsSetCommand_initTypes = function _TeamsFunSettingsSetCommand_initTypes() {
|
|
83
|
-
this.types.boolean.push('allowGiphy', 'allowStickersAndMemes', 'allowCustomMemes');
|
|
84
|
-
}, _TeamsFunSettingsSetCommand_initValidators = function _TeamsFunSettingsSetCommand_initValidators() {
|
|
85
|
-
this.validators.push(async (args) => {
|
|
86
|
-
if (!validation.isValidGuid(args.options.teamId)) {
|
|
87
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
88
|
-
}
|
|
89
|
-
if (args.options.giphyContentRating) {
|
|
90
|
-
const giphyContentRating = args.options.giphyContentRating.toLowerCase();
|
|
91
|
-
if (giphyContentRating !== 'strict' && giphyContentRating !== 'moderate') {
|
|
92
|
-
return `giphyContentRating value ${args.options.giphyContentRating} is not valid. Please specify Strict or Moderate.`;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return true;
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
62
|
TeamsFunSettingsSetCommand.booleanProps = [
|
|
99
63
|
'allowGiphy',
|
|
100
64
|
'allowStickersAndMemes',
|
|
@@ -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 _TeamsGuestSettingsListCommand_instances, _TeamsGuestSettingsListCommand_initOptions, _TeamsGuestSettingsListCommand_initValidators;
|
|
7
1
|
import request from '../../../../request.js';
|
|
8
2
|
import { formatting } from '../../../../utils/formatting.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
|
+
teamId: z.string()
|
|
11
|
+
.refine(val => validation.isValidGuid(val), {
|
|
12
|
+
message: 'teamId must be a valid GUID'
|
|
13
|
+
})
|
|
14
|
+
.alias('i')
|
|
15
|
+
});
|
|
12
16
|
class TeamsGuestSettingsListCommand extends GraphCommand {
|
|
13
17
|
get name() {
|
|
14
18
|
return commands.GUESTSETTINGS_LIST;
|
|
@@ -16,11 +20,8 @@ class TeamsGuestSettingsListCommand extends GraphCommand {
|
|
|
16
20
|
get description() {
|
|
17
21
|
return 'Lists guest settings for a Microsoft Teams team';
|
|
18
22
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_TeamsGuestSettingsListCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _TeamsGuestSettingsListCommand_instances, "m", _TeamsGuestSettingsListCommand_initOptions).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _TeamsGuestSettingsListCommand_instances, "m", _TeamsGuestSettingsListCommand_initValidators).call(this);
|
|
23
|
+
get schema() {
|
|
24
|
+
return options;
|
|
24
25
|
}
|
|
25
26
|
async commandAction(logger, args) {
|
|
26
27
|
const requestOptions = {
|
|
@@ -39,17 +40,5 @@ class TeamsGuestSettingsListCommand extends GraphCommand {
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
_TeamsGuestSettingsListCommand_instances = new WeakSet(), _TeamsGuestSettingsListCommand_initOptions = function _TeamsGuestSettingsListCommand_initOptions() {
|
|
43
|
-
this.options.unshift({
|
|
44
|
-
option: '-i, --teamId <teamId>'
|
|
45
|
-
});
|
|
46
|
-
}, _TeamsGuestSettingsListCommand_initValidators = function _TeamsGuestSettingsListCommand_initValidators() {
|
|
47
|
-
this.validators.push(async (args) => {
|
|
48
|
-
if (!validation.isValidGuid(args.options.teamId)) {
|
|
49
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
50
|
-
}
|
|
51
|
-
return true;
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
43
|
export default new TeamsGuestSettingsListCommand();
|
|
55
44
|
//# sourceMappingURL=guestsettings-list.js.map
|
|
@@ -1,14 +1,20 @@
|
|
|
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 _TeamsGuestSettingsSetCommand_instances, _a, _TeamsGuestSettingsSetCommand_initTelemetry, _TeamsGuestSettingsSetCommand_initOptions, _TeamsGuestSettingsSetCommand_initTypes, _TeamsGuestSettingsSetCommand_initValidators;
|
|
7
1
|
import request from '../../../../request.js';
|
|
8
2
|
import { formatting } from '../../../../utils/formatting.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
|
+
teamId: z.string()
|
|
11
|
+
.refine(val => validation.isValidGuid(val), {
|
|
12
|
+
message: 'teamId must be a valid GUID'
|
|
13
|
+
})
|
|
14
|
+
.alias('i'),
|
|
15
|
+
allowCreateUpdateChannels: z.boolean().optional(),
|
|
16
|
+
allowDeleteChannels: z.boolean().optional()
|
|
17
|
+
});
|
|
12
18
|
class TeamsGuestSettingsSetCommand extends GraphCommand {
|
|
13
19
|
get name() {
|
|
14
20
|
return commands.GUESTSETTINGS_SET;
|
|
@@ -16,19 +22,14 @@ class TeamsGuestSettingsSetCommand extends GraphCommand {
|
|
|
16
22
|
get description() {
|
|
17
23
|
return 'Updates guest settings of a Microsoft Teams team';
|
|
18
24
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_TeamsGuestSettingsSetCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _TeamsGuestSettingsSetCommand_instances, "m", _TeamsGuestSettingsSetCommand_initTelemetry).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _TeamsGuestSettingsSetCommand_instances, "m", _TeamsGuestSettingsSetCommand_initOptions).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _TeamsGuestSettingsSetCommand_instances, "m", _TeamsGuestSettingsSetCommand_initTypes).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _TeamsGuestSettingsSetCommand_instances, "m", _TeamsGuestSettingsSetCommand_initValidators).call(this);
|
|
25
|
+
get schema() {
|
|
26
|
+
return options;
|
|
26
27
|
}
|
|
27
28
|
async commandAction(logger, args) {
|
|
28
29
|
const data = {
|
|
29
30
|
guestSettings: {}
|
|
30
31
|
};
|
|
31
|
-
|
|
32
|
+
TeamsGuestSettingsSetCommand.booleanProps.forEach(p => {
|
|
32
33
|
if (typeof args.options[p] !== 'undefined') {
|
|
33
34
|
data.guestSettings[p] = args.options[p];
|
|
34
35
|
}
|
|
@@ -49,32 +50,6 @@ class TeamsGuestSettingsSetCommand extends GraphCommand {
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
_a = TeamsGuestSettingsSetCommand, _TeamsGuestSettingsSetCommand_instances = new WeakSet(), _TeamsGuestSettingsSetCommand_initTelemetry = function _TeamsGuestSettingsSetCommand_initTelemetry() {
|
|
53
|
-
this.telemetry.push((args) => {
|
|
54
|
-
_a.booleanProps.forEach(p => {
|
|
55
|
-
this.telemetryProperties[p] = args.options[p];
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
}, _TeamsGuestSettingsSetCommand_initOptions = function _TeamsGuestSettingsSetCommand_initOptions() {
|
|
59
|
-
this.options.unshift({
|
|
60
|
-
option: '-i, --teamId <teamId>'
|
|
61
|
-
}, {
|
|
62
|
-
option: '--allowCreateUpdateChannels [allowCreateUpdateChannels]',
|
|
63
|
-
autocomplete: ['true', 'false']
|
|
64
|
-
}, {
|
|
65
|
-
option: '--allowDeleteChannels [allowDeleteChannels]',
|
|
66
|
-
autocomplete: ['true', 'false']
|
|
67
|
-
});
|
|
68
|
-
}, _TeamsGuestSettingsSetCommand_initTypes = function _TeamsGuestSettingsSetCommand_initTypes() {
|
|
69
|
-
this.types.boolean.push('allowCreateUpdateChannels', 'allowDeleteChannels');
|
|
70
|
-
}, _TeamsGuestSettingsSetCommand_initValidators = function _TeamsGuestSettingsSetCommand_initValidators() {
|
|
71
|
-
this.validators.push(async (args) => {
|
|
72
|
-
if (!validation.isValidGuid(args.options.teamId)) {
|
|
73
|
-
return `${args.options.teamId} is not a valid GUID`;
|
|
74
|
-
}
|
|
75
|
-
return true;
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
53
|
TeamsGuestSettingsSetCommand.booleanProps = [
|
|
79
54
|
'allowCreateUpdateChannels',
|
|
80
55
|
'allowDeleteChannels'
|
|
@@ -1,16 +1,54 @@
|
|
|
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 _TeamsMeetingAddCommand_instances, _TeamsMeetingAddCommand_initTelemetry, _TeamsMeetingAddCommand_initOptions, _TeamsMeetingAddCommand_initValidators;
|
|
7
1
|
import auth from '../../../../Auth.js';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
3
|
+
import { z } from 'zod';
|
|
8
4
|
import { entraUser } from '../../../../utils/entraUser.js';
|
|
9
5
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
10
6
|
import { validation } from '../../../../utils/validation.js';
|
|
11
7
|
import GraphCommand from "../../../base/GraphCommand.js";
|
|
12
8
|
import commands from '../../commands.js';
|
|
13
9
|
import request from '../../../../request.js';
|
|
10
|
+
export const options = z.strictObject({
|
|
11
|
+
...globalOptionsZod.shape,
|
|
12
|
+
startTime: z.string()
|
|
13
|
+
.refine(value => validation.isValidISODateTime(value), {
|
|
14
|
+
message: 'The startTime value must be a valid ISO date string.'
|
|
15
|
+
})
|
|
16
|
+
.refine(value => new Date(value) > new Date(), {
|
|
17
|
+
message: 'The startTime value must be in the future.'
|
|
18
|
+
}).optional().alias('s'),
|
|
19
|
+
endTime: z.string()
|
|
20
|
+
.refine(value => validation.isValidISODateTime(value), {
|
|
21
|
+
message: 'The endTime value must be a valid ISO date string.'
|
|
22
|
+
})
|
|
23
|
+
.refine(value => new Date(value) > new Date(), {
|
|
24
|
+
message: 'The endTime value must be in the future.'
|
|
25
|
+
}).optional().alias('e'),
|
|
26
|
+
subject: z.string().optional(),
|
|
27
|
+
participantUserNames: z.string()
|
|
28
|
+
.superRefine((value, ctx) => {
|
|
29
|
+
const invalidUserNames = validation.isValidUserPrincipalNameArray(value);
|
|
30
|
+
if (invalidUserNames !== true) {
|
|
31
|
+
ctx.addIssue({
|
|
32
|
+
code: 'custom',
|
|
33
|
+
message: `The following user principal names are invalid for the option 'participantUserNames': ${invalidUserNames}.`
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
.transform(value => {
|
|
38
|
+
const userNames = value.trim().toLowerCase();
|
|
39
|
+
// Command.action resolves standalone runtime tokens while they are strings.
|
|
40
|
+
if (userNames === '@meusername') {
|
|
41
|
+
return userNames;
|
|
42
|
+
}
|
|
43
|
+
return userNames.split(',').map(userName => userName.trim());
|
|
44
|
+
})
|
|
45
|
+
.optional().alias('p'),
|
|
46
|
+
organizerEmail: z.string()
|
|
47
|
+
.refine(value => validation.isValidUserPrincipalName(value), {
|
|
48
|
+
message: 'The organizerEmail value must be a valid email.'
|
|
49
|
+
}).optional(),
|
|
50
|
+
recordAutomatically: z.boolean().optional().alias('r')
|
|
51
|
+
});
|
|
14
52
|
class TeamsMeetingAddCommand extends GraphCommand {
|
|
15
53
|
get name() {
|
|
16
54
|
return commands.MEETING_ADD;
|
|
@@ -18,12 +56,14 @@ class TeamsMeetingAddCommand extends GraphCommand {
|
|
|
18
56
|
get description() {
|
|
19
57
|
return 'Creates a new online meeting';
|
|
20
58
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
59
|
+
get schema() {
|
|
60
|
+
return options;
|
|
61
|
+
}
|
|
62
|
+
getRefinedSchema(schema) {
|
|
63
|
+
return schema.refine(options => !options.startTime || !options.endTime || new Date(options.startTime) < new Date(options.endTime), {
|
|
64
|
+
message: 'The startTime value must be before endTime.',
|
|
65
|
+
path: ['startTime']
|
|
66
|
+
});
|
|
27
67
|
}
|
|
28
68
|
async commandAction(logger, args) {
|
|
29
69
|
try {
|
|
@@ -61,8 +101,11 @@ class TeamsMeetingAddCommand extends GraphCommand {
|
|
|
61
101
|
}
|
|
62
102
|
const requestData = {};
|
|
63
103
|
if (options.participantUserNames) {
|
|
64
|
-
const
|
|
65
|
-
|
|
104
|
+
const userNames = typeof options.participantUserNames === 'string'
|
|
105
|
+
? [options.participantUserNames.trim().toLowerCase()]
|
|
106
|
+
: options.participantUserNames;
|
|
107
|
+
const attendees = userNames.map(upn => ({
|
|
108
|
+
upn
|
|
66
109
|
}));
|
|
67
110
|
requestData.participants = { attendees };
|
|
68
111
|
}
|
|
@@ -93,59 +136,5 @@ class TeamsMeetingAddCommand extends GraphCommand {
|
|
|
93
136
|
return request.post(requestOptions);
|
|
94
137
|
}
|
|
95
138
|
}
|
|
96
|
-
_TeamsMeetingAddCommand_instances = new WeakSet(), _TeamsMeetingAddCommand_initTelemetry = function _TeamsMeetingAddCommand_initTelemetry() {
|
|
97
|
-
this.telemetry.push((args) => {
|
|
98
|
-
Object.assign(this.telemetryProperties, {
|
|
99
|
-
startTime: typeof args.options.startTime !== 'undefined',
|
|
100
|
-
endTime: typeof args.options.endTime !== 'undefined',
|
|
101
|
-
subject: typeof args.options.subject !== 'undefined',
|
|
102
|
-
participantUserNames: typeof args.options.participantUserNames !== 'undefined',
|
|
103
|
-
organizerEmail: typeof args.options.organizerEmail !== 'undefined',
|
|
104
|
-
recordAutomatically: !!args.options.recordAutomatically
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
}, _TeamsMeetingAddCommand_initOptions = function _TeamsMeetingAddCommand_initOptions() {
|
|
108
|
-
this.options.unshift({
|
|
109
|
-
option: '-s, --startTime [startTime]'
|
|
110
|
-
}, {
|
|
111
|
-
option: '-e, --endTime [endTime]'
|
|
112
|
-
}, {
|
|
113
|
-
option: '--subject [subject]'
|
|
114
|
-
}, {
|
|
115
|
-
option: '-p, --participantUserNames [participantUserNames]'
|
|
116
|
-
}, {
|
|
117
|
-
option: '--organizerEmail [organizerEmail]'
|
|
118
|
-
}, {
|
|
119
|
-
option: '-r, --recordAutomatically'
|
|
120
|
-
});
|
|
121
|
-
}, _TeamsMeetingAddCommand_initValidators = function _TeamsMeetingAddCommand_initValidators() {
|
|
122
|
-
this.validators.push(async (args) => {
|
|
123
|
-
if (args.options.startTime && !validation.isValidISODateTime(args.options.startTime)) {
|
|
124
|
-
return `'${args.options.startTime}' is not a valid ISO date string for startTime.`;
|
|
125
|
-
}
|
|
126
|
-
if (args.options.endTime && !validation.isValidISODateTime(args.options.endTime)) {
|
|
127
|
-
return `'${args.options.endTime}' is not a valid ISO date string for endTime.`;
|
|
128
|
-
}
|
|
129
|
-
if (args.options.startTime && args.options.endTime && new Date(args.options.startTime) >= new Date(args.options.endTime)) {
|
|
130
|
-
return 'The startTime value must be before endTime.';
|
|
131
|
-
}
|
|
132
|
-
if (args.options.startTime && new Date() >= new Date(args.options.startTime)) {
|
|
133
|
-
return 'The startTime value must be in the future.';
|
|
134
|
-
}
|
|
135
|
-
if (args.options.endTime && new Date() >= new Date(args.options.endTime)) {
|
|
136
|
-
return 'The endTime value must be in the future.';
|
|
137
|
-
}
|
|
138
|
-
if (args.options.participantUserNames) {
|
|
139
|
-
const isValidUPNArrayResult = validation.isValidUserPrincipalNameArray(args.options.participantUserNames);
|
|
140
|
-
if (isValidUPNArrayResult !== true) {
|
|
141
|
-
return `The following user principal names are invalid for the option 'participantUserNames': ${isValidUPNArrayResult}.`;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
if (args.options.organizerEmail && !validation.isValidUserPrincipalName(args.options.organizerEmail)) {
|
|
145
|
-
return `'${args.options.organizerEmail}' is not a valid email for organizerEmail.`;
|
|
146
|
-
}
|
|
147
|
-
return true;
|
|
148
|
-
});
|
|
149
|
-
};
|
|
150
139
|
export default new TeamsMeetingAddCommand();
|
|
151
140
|
//# sourceMappingURL=meeting-add.js.map
|
|
@@ -1,16 +1,32 @@
|
|
|
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 _TeamsMeetingAttendancereportGetCommand_instances, _TeamsMeetingAttendancereportGetCommand_initTelemetry, _TeamsMeetingAttendancereportGetCommand_initOptions, _TeamsMeetingAttendancereportGetCommand_initTypes, _TeamsMeetingAttendancereportGetCommand_initValidators, _TeamsMeetingAttendancereportGetCommand_initOptionSets;
|
|
7
1
|
import auth from '../../../../Auth.js';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
3
|
+
import { z } from 'zod';
|
|
8
4
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
9
5
|
import { validation } from '../../../../utils/validation.js';
|
|
10
6
|
import GraphCommand from "../../../base/GraphCommand.js";
|
|
11
7
|
import commands from '../../commands.js';
|
|
12
8
|
import { entraUser } from '../../../../utils/entraUser.js';
|
|
13
9
|
import request from '../../../../request.js';
|
|
10
|
+
export const options = z.strictObject({
|
|
11
|
+
...globalOptionsZod.shape,
|
|
12
|
+
userId: z.string()
|
|
13
|
+
.refine(value => validation.isValidGuid(value), {
|
|
14
|
+
message: 'The userId value must be a valid GUID.'
|
|
15
|
+
}).optional().alias('u'),
|
|
16
|
+
userName: z.string()
|
|
17
|
+
.refine(value => validation.isValidUserPrincipalName(value), {
|
|
18
|
+
message: 'The userName value must be a valid user principal name (UPN).'
|
|
19
|
+
}).optional().alias('n'),
|
|
20
|
+
email: z.string()
|
|
21
|
+
.refine(value => validation.isValidUserPrincipalName(value), {
|
|
22
|
+
message: 'The email value must be a valid email.'
|
|
23
|
+
}).optional(),
|
|
24
|
+
meetingId: z.string().alias('m'),
|
|
25
|
+
id: z.string()
|
|
26
|
+
.refine(value => validation.isValidGuid(value), {
|
|
27
|
+
message: 'The id value must be a valid GUID.'
|
|
28
|
+
}).alias('i')
|
|
29
|
+
});
|
|
14
30
|
class TeamsMeetingAttendancereportGetCommand extends GraphCommand {
|
|
15
31
|
get name() {
|
|
16
32
|
return commands.MEETING_ATTENDANCEREPORT_GET;
|
|
@@ -18,14 +34,17 @@ class TeamsMeetingAttendancereportGetCommand extends GraphCommand {
|
|
|
18
34
|
get description() {
|
|
19
35
|
return 'Gets attendance report for a given meeting';
|
|
20
36
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
37
|
+
get schema() {
|
|
38
|
+
return options;
|
|
39
|
+
}
|
|
40
|
+
getRefinedSchema(schema) {
|
|
41
|
+
return schema.refine(options => [options.userId, options.userName, options.email].filter(value => value !== undefined).length <= 1, {
|
|
42
|
+
message: 'Specify either userId, userName or email, but not multiple.',
|
|
43
|
+
params: {
|
|
44
|
+
customCode: 'optionSet',
|
|
45
|
+
options: ['userId', 'userName', 'email']
|
|
46
|
+
}
|
|
47
|
+
});
|
|
29
48
|
}
|
|
30
49
|
async commandAction(logger, args) {
|
|
31
50
|
try {
|
|
@@ -71,49 +90,5 @@ class TeamsMeetingAttendancereportGetCommand extends GraphCommand {
|
|
|
71
90
|
return entraUser.getUserIdByEmail(options.email);
|
|
72
91
|
}
|
|
73
92
|
}
|
|
74
|
-
_TeamsMeetingAttendancereportGetCommand_instances = new WeakSet(), _TeamsMeetingAttendancereportGetCommand_initTelemetry = function _TeamsMeetingAttendancereportGetCommand_initTelemetry() {
|
|
75
|
-
this.telemetry.push((args) => {
|
|
76
|
-
Object.assign(this.telemetryProperties, {
|
|
77
|
-
userId: typeof args.options.userId !== 'undefined',
|
|
78
|
-
userName: typeof args.options.userName !== 'undefined',
|
|
79
|
-
email: typeof args.options.email !== 'undefined'
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
}, _TeamsMeetingAttendancereportGetCommand_initOptions = function _TeamsMeetingAttendancereportGetCommand_initOptions() {
|
|
83
|
-
this.options.unshift({
|
|
84
|
-
option: '-u, --userId [userId]'
|
|
85
|
-
}, {
|
|
86
|
-
option: '-n, --userName [userName]'
|
|
87
|
-
}, {
|
|
88
|
-
option: '--email [email]'
|
|
89
|
-
}, {
|
|
90
|
-
option: '-m, --meetingId <meetingId>'
|
|
91
|
-
}, {
|
|
92
|
-
option: '-i, --id <id>'
|
|
93
|
-
});
|
|
94
|
-
}, _TeamsMeetingAttendancereportGetCommand_initTypes = function _TeamsMeetingAttendancereportGetCommand_initTypes() {
|
|
95
|
-
this.types.string.push('userId', 'userName', 'email', 'meetingId', 'id');
|
|
96
|
-
}, _TeamsMeetingAttendancereportGetCommand_initValidators = function _TeamsMeetingAttendancereportGetCommand_initValidators() {
|
|
97
|
-
this.validators.push(async (args) => {
|
|
98
|
-
if (!validation.isValidGuid(args.options.id)) {
|
|
99
|
-
return `${args.options.id} is not a valid GUID for option 'id'.`;
|
|
100
|
-
}
|
|
101
|
-
if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
|
|
102
|
-
return `${args.options.userId} is not a valid GUID for option 'userId'.`;
|
|
103
|
-
}
|
|
104
|
-
if (args.options.userName && !validation.isValidUserPrincipalName(args.options.userName)) {
|
|
105
|
-
return `${args.options.userName} is not a valid UPN.`;
|
|
106
|
-
}
|
|
107
|
-
if (args.options.email && !validation.isValidUserPrincipalName(args.options.email)) {
|
|
108
|
-
return `${args.options.email} is not a valid email.`;
|
|
109
|
-
}
|
|
110
|
-
return true;
|
|
111
|
-
});
|
|
112
|
-
}, _TeamsMeetingAttendancereportGetCommand_initOptionSets = function _TeamsMeetingAttendancereportGetCommand_initOptionSets() {
|
|
113
|
-
this.optionSets.push({
|
|
114
|
-
options: ['userId', 'userName', 'email'],
|
|
115
|
-
runsWhen: (args) => args.options.userId || args.options.userName || args.options.email
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
93
|
export default new TeamsMeetingAttendancereportGetCommand();
|
|
119
94
|
//# sourceMappingURL=meeting-attendancereport-get.js.map
|
|
@@ -1,17 +1,23 @@
|
|
|
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 _TeamsMeetingAttendancereportListCommand_instances, _TeamsMeetingAttendancereportListCommand_initTelemetry, _TeamsMeetingAttendancereportListCommand_initOptions, _TeamsMeetingAttendancereportListCommand_initValidators;
|
|
7
1
|
import auth from '../../../../Auth.js';
|
|
8
2
|
import { cli } from '../../../../cli/cli.js';
|
|
3
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
4
|
+
import { z } from 'zod';
|
|
9
5
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
10
6
|
import { odata } from '../../../../utils/odata.js';
|
|
11
7
|
import { validation } from '../../../../utils/validation.js';
|
|
12
8
|
import entraUserGetCommand from '../../../entra/commands/user/user-get.js';
|
|
13
9
|
import GraphCommand from "../../../base/GraphCommand.js";
|
|
14
10
|
import commands from '../../commands.js';
|
|
11
|
+
export const options = z.strictObject({
|
|
12
|
+
...globalOptionsZod.shape,
|
|
13
|
+
userId: z.string()
|
|
14
|
+
.refine(value => validation.isValidGuid(value), {
|
|
15
|
+
message: 'The userId value must be a valid GUID.'
|
|
16
|
+
}).optional().alias('u'),
|
|
17
|
+
userName: z.string().optional().alias('n'),
|
|
18
|
+
email: z.string().optional(),
|
|
19
|
+
meetingId: z.string().alias('m')
|
|
20
|
+
});
|
|
15
21
|
class TeamsMeetingAttendancereportListCommand extends GraphCommand {
|
|
16
22
|
get name() {
|
|
17
23
|
return commands.MEETING_ATTENDANCEREPORT_LIST;
|
|
@@ -22,12 +28,8 @@ class TeamsMeetingAttendancereportListCommand extends GraphCommand {
|
|
|
22
28
|
defaultProperties() {
|
|
23
29
|
return ['id', 'totalParticipantCount'];
|
|
24
30
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
_TeamsMeetingAttendancereportListCommand_instances.add(this);
|
|
28
|
-
__classPrivateFieldGet(this, _TeamsMeetingAttendancereportListCommand_instances, "m", _TeamsMeetingAttendancereportListCommand_initTelemetry).call(this);
|
|
29
|
-
__classPrivateFieldGet(this, _TeamsMeetingAttendancereportListCommand_instances, "m", _TeamsMeetingAttendancereportListCommand_initOptions).call(this);
|
|
30
|
-
__classPrivateFieldGet(this, _TeamsMeetingAttendancereportListCommand_instances, "m", _TeamsMeetingAttendancereportListCommand_initValidators).call(this);
|
|
31
|
+
get schema() {
|
|
32
|
+
return options;
|
|
31
33
|
}
|
|
32
34
|
async commandAction(logger, args) {
|
|
33
35
|
const isAppOnlyAccessToken = accessToken.isAppOnlyAccessToken(auth.connection.accessTokens[this.resource].accessToken);
|
|
@@ -76,31 +78,5 @@ class TeamsMeetingAttendancereportListCommand extends GraphCommand {
|
|
|
76
78
|
return getUserOutput.id;
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
|
-
_TeamsMeetingAttendancereportListCommand_instances = new WeakSet(), _TeamsMeetingAttendancereportListCommand_initTelemetry = function _TeamsMeetingAttendancereportListCommand_initTelemetry() {
|
|
80
|
-
this.telemetry.push((args) => {
|
|
81
|
-
Object.assign(this.telemetryProperties, {
|
|
82
|
-
userId: typeof args.options.userId !== 'undefined',
|
|
83
|
-
userName: typeof args.options.userName !== 'undefined',
|
|
84
|
-
email: typeof args.options.email !== 'undefined'
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
}, _TeamsMeetingAttendancereportListCommand_initOptions = function _TeamsMeetingAttendancereportListCommand_initOptions() {
|
|
88
|
-
this.options.unshift({
|
|
89
|
-
option: '-u, --userId [userId]'
|
|
90
|
-
}, {
|
|
91
|
-
option: '-n, --userName [userName]'
|
|
92
|
-
}, {
|
|
93
|
-
option: '--email [email]'
|
|
94
|
-
}, {
|
|
95
|
-
option: '-m, --meetingId <meetingId>'
|
|
96
|
-
});
|
|
97
|
-
}, _TeamsMeetingAttendancereportListCommand_initValidators = function _TeamsMeetingAttendancereportListCommand_initValidators() {
|
|
98
|
-
this.validators.push(async (args) => {
|
|
99
|
-
if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
|
|
100
|
-
return `${args.options.userId} is not a valid Guid`;
|
|
101
|
-
}
|
|
102
|
-
return true;
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
81
|
export default new TeamsMeetingAttendancereportListCommand();
|
|
106
82
|
//# sourceMappingURL=meeting-attendancereport-list.js.map
|