@pnp/cli-microsoft365 12.0.0-beta.feb621e → 12.1.0-beta.0c2915d
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 +34 -18
- 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 +16 -1
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.24.0-rc.0.js → doctor-1.24.0.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.1.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- 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-rc.0.js → upgrade-1.24.0.js} +27 -27
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.1.js +57 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
- 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/eventreceiver/eventreceiver-get.js +39 -65
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +28 -56
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +40 -68
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +29 -80
- package/dist/m365/spo/commands/file/file-add.js +51 -77
- package/dist/m365/spo/commands/file/file-archive.js +1 -1
- package/dist/m365/spo/commands/file/file-checkin.js +35 -64
- package/dist/m365/spo/commands/file/file-checkout-undo.js +25 -49
- package/dist/m365/spo/commands/file/file-checkout.js +24 -47
- package/dist/m365/spo/commands/file/file-copy.js +37 -68
- package/dist/m365/spo/commands/file/file-get.js +44 -79
- package/dist/m365/spo/commands/file/file-list.js +16 -39
- package/dist/m365/spo/commands/file/file-move.js +30 -68
- package/dist/m365/spo/commands/file/file-remove.js +27 -56
- package/dist/m365/spo/commands/file/file-rename.js +15 -36
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +26 -51
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +25 -50
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +47 -75
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +39 -70
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +26 -52
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +25 -49
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +24 -47
- package/dist/m365/spo/commands/file/file-sharinglink-add.js +46 -70
- package/dist/m365/spo/commands/file/file-sharinglink-clear.js +33 -57
- package/dist/m365/spo/commands/file/file-sharinglink-get.js +25 -47
- package/dist/m365/spo/commands/file/file-sharinglink-list.js +32 -53
- package/dist/m365/spo/commands/file/file-sharinglink-remove.js +26 -51
- package/dist/m365/spo/commands/file/file-sharinglink-set.js +29 -55
- package/dist/m365/spo/commands/file/file-unarchive.js +1 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +25 -45
- package/dist/m365/spo/commands/file/file-version-get.js +25 -43
- package/dist/m365/spo/commands/file/file-version-keep.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +24 -41
- package/dist/m365/spo/commands/file/file-version-remove.js +26 -47
- package/dist/m365/spo/commands/file/file-version-restore.js +26 -47
- package/dist/m365/spo/commands/folder/folder-add.js +19 -48
- package/dist/m365/spo/commands/folder/folder-copy.js +36 -62
- package/dist/m365/spo/commands/folder/folder-get.js +30 -51
- package/dist/m365/spo/commands/folder/folder-list.js +16 -39
- package/dist/m365/spo/commands/folder/folder-move.js +36 -62
- package/dist/m365/spo/commands/folder/folder-remove.js +15 -36
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +30 -48
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +30 -50
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +49 -79
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +37 -67
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +15 -36
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +14 -33
- package/dist/m365/spo/commands/folder/folder-set.js +28 -48
- package/dist/m365/spo/commands/folder/folder-sharinglink-add.js +58 -86
- package/dist/m365/spo/commands/folder/folder-sharinglink-clear.js +33 -50
- package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +33 -42
- package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +32 -47
- package/dist/m365/spo/commands/folder/folder-sharinglink-remove.js +34 -41
- package/dist/m365/spo/commands/folder/folder-sharinglink-set.js +38 -43
- package/dist/m365/spo/commands/group/group-add.js +19 -60
- package/dist/m365/spo/commands/group/group-get.js +32 -45
- package/dist/m365/spo/commands/group/group-list.js +13 -27
- package/dist/m365/spo/commands/group/group-member-add.js +52 -84
- package/dist/m365/spo/commands/group/group-member-list.js +24 -38
- package/dist/m365/spo/commands/group/group-member-remove.js +49 -68
- package/dist/m365/spo/commands/group/group-remove.js +25 -45
- package/dist/m365/spo/commands/group/group-set.js +36 -79
- 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/propertybag/propertybag-get.js +14 -29
- package/dist/m365/spo/commands/propertybag/propertybag-list.js +13 -27
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +15 -32
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +15 -31
- package/dist/m365/spo/commands/roledefinition/roledefinition-add.js +45 -44
- package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +14 -25
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +12 -18
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +15 -35
- 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/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/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/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/npm-shrinkwrap.json +57 -57
- package/package.json +3 -1
|
@@ -1,15 +1,23 @@
|
|
|
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 _SpoEventreceiverListCommand_instances, _SpoEventreceiverListCommand_initTelemetry, _SpoEventreceiverListCommand_initOptions, _SpoEventreceiverListCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import { formatting } from '../../../../utils/formatting.js';
|
|
8
4
|
import { odata } from '../../../../utils/odata.js';
|
|
9
5
|
import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
10
6
|
import { validation } from '../../../../utils/validation.js';
|
|
11
7
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
12
8
|
import commands from '../../commands.js';
|
|
9
|
+
export const options = z.strictObject({
|
|
10
|
+
...globalOptionsZod.shape,
|
|
11
|
+
webUrl: z.string().refine(url => validation.isValidSharePointUrl(url) === true, {
|
|
12
|
+
error: e => `${e.input} is not a valid SharePoint Online site URL.`
|
|
13
|
+
}).alias('u'),
|
|
14
|
+
listId: z.string().refine(val => validation.isValidGuid(val), {
|
|
15
|
+
error: e => `${e.input} is not a valid GUID.`
|
|
16
|
+
}).optional(),
|
|
17
|
+
listTitle: z.string().optional(),
|
|
18
|
+
listUrl: z.string().optional(),
|
|
19
|
+
scope: z.enum(['web', 'site']).optional().alias('s')
|
|
20
|
+
});
|
|
13
21
|
class SpoEventreceiverListCommand extends SpoCommand {
|
|
14
22
|
get name() {
|
|
15
23
|
return commands.EVENTRECEIVER_LIST;
|
|
@@ -20,12 +28,20 @@ class SpoEventreceiverListCommand extends SpoCommand {
|
|
|
20
28
|
defaultProperties() {
|
|
21
29
|
return ['ReceiverId', 'ReceiverName'];
|
|
22
30
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
get schema() {
|
|
32
|
+
return options;
|
|
33
|
+
}
|
|
34
|
+
getRefinedSchema(schema) {
|
|
35
|
+
return schema
|
|
36
|
+
.refine(opts => {
|
|
37
|
+
const listOptions = [opts.listId, opts.listTitle, opts.listUrl];
|
|
38
|
+
return !(listOptions.some(item => item !== undefined) && listOptions.filter(item => item !== undefined).length > 1);
|
|
39
|
+
}, {
|
|
40
|
+
message: `Specify either list id or title or list url`
|
|
41
|
+
})
|
|
42
|
+
.refine(opts => !(opts.scope === 'site' && (opts.listId || opts.listUrl || opts.listTitle)), {
|
|
43
|
+
message: 'Scope cannot be set to site when retrieving list event receivers.'
|
|
44
|
+
});
|
|
29
45
|
}
|
|
30
46
|
async commandAction(logger, args) {
|
|
31
47
|
let requestUrl = `${args.options.webUrl}/_api/`;
|
|
@@ -55,49 +71,5 @@ class SpoEventreceiverListCommand extends SpoCommand {
|
|
|
55
71
|
}
|
|
56
72
|
}
|
|
57
73
|
}
|
|
58
|
-
_SpoEventreceiverListCommand_instances = new WeakSet(), _SpoEventreceiverListCommand_initTelemetry = function _SpoEventreceiverListCommand_initTelemetry() {
|
|
59
|
-
this.telemetry.push((args) => {
|
|
60
|
-
Object.assign(this.telemetryProperties, {
|
|
61
|
-
listId: typeof args.options.listId !== 'undefined',
|
|
62
|
-
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
63
|
-
listUrl: typeof args.options.listUrl !== 'undefined',
|
|
64
|
-
scope: typeof args.options.scope !== 'undefined'
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
}, _SpoEventreceiverListCommand_initOptions = function _SpoEventreceiverListCommand_initOptions() {
|
|
68
|
-
this.options.unshift({
|
|
69
|
-
option: '-u, --webUrl <webUrl>'
|
|
70
|
-
}, {
|
|
71
|
-
option: '--listTitle [listTitle]'
|
|
72
|
-
}, {
|
|
73
|
-
option: '--listId [listId]'
|
|
74
|
-
}, {
|
|
75
|
-
option: '--listUrl [listUrl]'
|
|
76
|
-
}, {
|
|
77
|
-
option: '-s, --scope [scope]',
|
|
78
|
-
autocomplete: ['web', 'site']
|
|
79
|
-
});
|
|
80
|
-
}, _SpoEventreceiverListCommand_initValidators = function _SpoEventreceiverListCommand_initValidators() {
|
|
81
|
-
this.validators.push(async (args) => {
|
|
82
|
-
const isValidSharePointUrl = validation.isValidSharePointUrl(args.options.webUrl);
|
|
83
|
-
if (isValidSharePointUrl !== true) {
|
|
84
|
-
return isValidSharePointUrl;
|
|
85
|
-
}
|
|
86
|
-
const listOptions = [args.options.listId, args.options.listTitle, args.options.listUrl];
|
|
87
|
-
if (listOptions.some(item => item !== undefined) && listOptions.filter(item => item !== undefined).length > 1) {
|
|
88
|
-
return `Specify either list id or title or list url`;
|
|
89
|
-
}
|
|
90
|
-
if (args.options.listId && !validation.isValidGuid(args.options.listId)) {
|
|
91
|
-
return `${args.options.listId} is not a valid GUID`;
|
|
92
|
-
}
|
|
93
|
-
if (args.options.scope && ['web', 'site'].indexOf(args.options.scope) === -1) {
|
|
94
|
-
return `${args.options.scope} is not a valid type value. Allowed values web|site.`;
|
|
95
|
-
}
|
|
96
|
-
if (args.options.scope && args.options.scope === 'site' && (args.options.listId || args.options.listUrl || args.options.listTitle)) {
|
|
97
|
-
return 'Scope cannot be set to site when retrieving list event receivers.';
|
|
98
|
-
}
|
|
99
|
-
return true;
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
74
|
export default new SpoEventreceiverListCommand();
|
|
103
75
|
//# sourceMappingURL=eventreceiver-list.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 _SpoEventreceiverRemoveCommand_instances, _SpoEventreceiverRemoveCommand_initTelemetry, _SpoEventreceiverRemoveCommand_initOptions, _SpoEventreceiverRemoveCommand_initValidators, _SpoEventreceiverRemoveCommand_initOptionSets;
|
|
1
|
+
import { z } from 'zod';
|
|
7
2
|
import { cli } from '../../../../cli/cli.js';
|
|
3
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
6
|
import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
@@ -12,6 +8,23 @@ import { validation } from '../../../../utils/validation.js';
|
|
|
12
8
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
13
9
|
import commands from '../../commands.js';
|
|
14
10
|
import getCommand from './eventreceiver-get.js';
|
|
11
|
+
export const options = z.strictObject({
|
|
12
|
+
...globalOptionsZod.shape,
|
|
13
|
+
webUrl: z.string().refine(url => validation.isValidSharePointUrl(url) === true, {
|
|
14
|
+
error: e => `${e.input} is not a valid SharePoint Online site URL.`
|
|
15
|
+
}).alias('u'),
|
|
16
|
+
listId: z.string().refine(val => validation.isValidGuid(val), {
|
|
17
|
+
error: e => `${e.input} is not a valid GUID.`
|
|
18
|
+
}).optional(),
|
|
19
|
+
listTitle: z.string().optional(),
|
|
20
|
+
listUrl: z.string().optional(),
|
|
21
|
+
id: z.string().refine(val => validation.isValidGuid(val), {
|
|
22
|
+
error: e => `${e.input} is not a valid GUID.`
|
|
23
|
+
}).optional().alias('i'),
|
|
24
|
+
name: z.string().optional().alias('n'),
|
|
25
|
+
scope: z.enum(['web', 'site']).optional().alias('s'),
|
|
26
|
+
force: z.boolean().optional().alias('f')
|
|
27
|
+
});
|
|
15
28
|
class SpoEventreceiverRemoveCommand extends SpoCommand {
|
|
16
29
|
get name() {
|
|
17
30
|
return commands.EVENTRECEIVER_REMOVE;
|
|
@@ -19,13 +32,27 @@ class SpoEventreceiverRemoveCommand extends SpoCommand {
|
|
|
19
32
|
get description() {
|
|
20
33
|
return 'Removes event receivers for the specified web, site, or list.';
|
|
21
34
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
get schema() {
|
|
36
|
+
return options;
|
|
37
|
+
}
|
|
38
|
+
getRefinedSchema(schema) {
|
|
39
|
+
return schema
|
|
40
|
+
.refine(opts => [opts.id, opts.name].filter(x => x !== undefined).length === 1, {
|
|
41
|
+
message: `Specify either 'id' or 'name', but not both.`,
|
|
42
|
+
params: {
|
|
43
|
+
customCode: 'optionSet',
|
|
44
|
+
options: ['id', 'name']
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
.refine(opts => {
|
|
48
|
+
const listOptions = [opts.listId, opts.listTitle, opts.listUrl];
|
|
49
|
+
return !(listOptions.some(item => item !== undefined) && listOptions.filter(item => item !== undefined).length > 1);
|
|
50
|
+
}, {
|
|
51
|
+
message: `Specify either list id or title or list url`
|
|
52
|
+
})
|
|
53
|
+
.refine(opts => !(opts.scope === 'site' && (opts.listId || opts.listUrl || opts.listTitle)), {
|
|
54
|
+
message: 'Scope cannot be set to site when retrieving list event receivers.'
|
|
55
|
+
});
|
|
29
56
|
}
|
|
30
57
|
async commandAction(logger, args) {
|
|
31
58
|
if (args.options.force) {
|
|
@@ -86,60 +113,5 @@ class SpoEventreceiverRemoveCommand extends SpoCommand {
|
|
|
86
113
|
return eventReceiver.ReceiverId;
|
|
87
114
|
}
|
|
88
115
|
}
|
|
89
|
-
_SpoEventreceiverRemoveCommand_instances = new WeakSet(), _SpoEventreceiverRemoveCommand_initTelemetry = function _SpoEventreceiverRemoveCommand_initTelemetry() {
|
|
90
|
-
this.telemetry.push((args) => {
|
|
91
|
-
Object.assign(this.telemetryProperties, {
|
|
92
|
-
listId: typeof args.options.listId !== 'undefined',
|
|
93
|
-
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
94
|
-
listUrl: typeof args.options.listUrl !== 'undefined',
|
|
95
|
-
scope: args.options.scope || 'web',
|
|
96
|
-
id: typeof args.options.id !== 'undefined',
|
|
97
|
-
name: typeof args.options.name !== 'undefined',
|
|
98
|
-
force: !!args.options.force
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
}, _SpoEventreceiverRemoveCommand_initOptions = function _SpoEventreceiverRemoveCommand_initOptions() {
|
|
102
|
-
this.options.unshift({
|
|
103
|
-
option: '-u, --webUrl <webUrl>'
|
|
104
|
-
}, {
|
|
105
|
-
option: '--listTitle [listTitle]'
|
|
106
|
-
}, {
|
|
107
|
-
option: '--listId [listId]'
|
|
108
|
-
}, {
|
|
109
|
-
option: '--listUrl [listUrl]'
|
|
110
|
-
}, {
|
|
111
|
-
option: '-n, --name [name]'
|
|
112
|
-
}, {
|
|
113
|
-
option: '-i, --id [id]'
|
|
114
|
-
}, {
|
|
115
|
-
option: '-s, --scope [scope]',
|
|
116
|
-
autocomplete: ['web', 'site']
|
|
117
|
-
}, {
|
|
118
|
-
option: '-f, --force'
|
|
119
|
-
});
|
|
120
|
-
}, _SpoEventreceiverRemoveCommand_initValidators = function _SpoEventreceiverRemoveCommand_initValidators() {
|
|
121
|
-
this.validators.push(async (args) => {
|
|
122
|
-
const isValidSharePointUrl = validation.isValidSharePointUrl(args.options.webUrl);
|
|
123
|
-
if (isValidSharePointUrl !== true) {
|
|
124
|
-
return isValidSharePointUrl;
|
|
125
|
-
}
|
|
126
|
-
const listOptions = [args.options.listId, args.options.listTitle, args.options.listUrl];
|
|
127
|
-
if (listOptions.some(item => item !== undefined) && listOptions.filter(item => item !== undefined).length > 1) {
|
|
128
|
-
return `Specify either list id or title or list url`;
|
|
129
|
-
}
|
|
130
|
-
if (args.options.listId && !validation.isValidGuid(args.options.listId)) {
|
|
131
|
-
return `${args.options.listId} is not a valid GUID`;
|
|
132
|
-
}
|
|
133
|
-
if (args.options.scope && ['web', 'site'].indexOf(args.options.scope) === -1) {
|
|
134
|
-
return `${args.options.scope} is not a valid type value. Allowed values web|site.`;
|
|
135
|
-
}
|
|
136
|
-
if (args.options.scope && args.options.scope === 'site' && (args.options.listId || args.options.listUrl || args.options.listTitle)) {
|
|
137
|
-
return 'Scope cannot be set to site when retrieving list event receivers.';
|
|
138
|
-
}
|
|
139
|
-
return true;
|
|
140
|
-
});
|
|
141
|
-
}, _SpoEventreceiverRemoveCommand_initOptionSets = function _SpoEventreceiverRemoveCommand_initOptionSets() {
|
|
142
|
-
this.optionSets.push({ options: ['name', 'id'] });
|
|
143
|
-
};
|
|
144
116
|
export default new SpoEventreceiverRemoveCommand();
|
|
145
117
|
//# sourceMappingURL=eventreceiver-remove.js.map
|
|
@@ -1,16 +1,32 @@
|
|
|
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 _SpoExternalUserListCommand_instances, _SpoExternalUserListCommand_initTelemetry, _SpoExternalUserListCommand_initOptions, _SpoExternalUserListCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
7
2
|
import config from '../../../../config.js';
|
|
3
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
6
|
import { spo } from '../../../../utils/spo.js';
|
|
11
7
|
import { validation } from '../../../../utils/validation.js';
|
|
12
8
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
13
9
|
import commands from '../../commands.js';
|
|
10
|
+
export const options = z.strictObject({
|
|
11
|
+
...globalOptionsZod.shape,
|
|
12
|
+
filter: z.string().optional(),
|
|
13
|
+
pageSize: z.string().refine(val => {
|
|
14
|
+
const num = parseInt(val);
|
|
15
|
+
return !isNaN(num) && num >= 1 && num <= 50;
|
|
16
|
+
}, {
|
|
17
|
+
error: e => `pageSize must be between 1 and 50. The specified value ${e.input} is not valid.`
|
|
18
|
+
}).optional().alias('p'),
|
|
19
|
+
position: z.string().refine(val => {
|
|
20
|
+
const num = parseInt(val);
|
|
21
|
+
return !isNaN(num) && num >= 0;
|
|
22
|
+
}, {
|
|
23
|
+
error: e => `position must be greater than or equal to 0. The specified value ${e.input} is not valid.`
|
|
24
|
+
}).optional().alias('i'),
|
|
25
|
+
sortOrder: z.enum(['asc', 'desc']).optional().alias('s'),
|
|
26
|
+
siteUrl: z.string().refine(url => validation.isValidSharePointUrl(url) === true, {
|
|
27
|
+
error: e => `${e.input} is not a valid SharePoint Online site URL.`
|
|
28
|
+
}).optional().alias('u')
|
|
29
|
+
});
|
|
14
30
|
class SpoExternalUserListCommand extends SpoCommand {
|
|
15
31
|
get name() {
|
|
16
32
|
return commands.EXTERNALUSER_LIST;
|
|
@@ -18,12 +34,8 @@ class SpoExternalUserListCommand extends SpoCommand {
|
|
|
18
34
|
get description() {
|
|
19
35
|
return 'Lists external users in the tenant';
|
|
20
36
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
_SpoExternalUserListCommand_instances.add(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoExternalUserListCommand_instances, "m", _SpoExternalUserListCommand_initTelemetry).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _SpoExternalUserListCommand_instances, "m", _SpoExternalUserListCommand_initOptions).call(this);
|
|
26
|
-
__classPrivateFieldGet(this, _SpoExternalUserListCommand_instances, "m", _SpoExternalUserListCommand_initValidators).call(this);
|
|
37
|
+
get schema() {
|
|
38
|
+
return options;
|
|
27
39
|
}
|
|
28
40
|
async commandAction(logger, args) {
|
|
29
41
|
try {
|
|
@@ -57,20 +69,11 @@ class SpoExternalUserListCommand extends SpoCommand {
|
|
|
57
69
|
}
|
|
58
70
|
else {
|
|
59
71
|
const results = json.pop();
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
.replace(')/', '')
|
|
66
|
-
.split(',')
|
|
67
|
-
.map(c => {
|
|
68
|
-
return parseInt(c);
|
|
69
|
-
});
|
|
70
|
-
e.WhenCreated = new Date(dateChunks[0], dateChunks[1], dateChunks[2], dateChunks[3], dateChunks[4], dateChunks[5], dateChunks[6]);
|
|
71
|
-
return e;
|
|
72
|
-
}));
|
|
73
|
-
}
|
|
72
|
+
await logger.log(results.ExternalUserCollection._Child_Items_.map(e => {
|
|
73
|
+
delete e._ObjectType_;
|
|
74
|
+
e.WhenCreated = formatting.extractCsomDate(e.WhenCreated);
|
|
75
|
+
return e;
|
|
76
|
+
}));
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
79
|
catch (err) {
|
|
@@ -78,59 +81,5 @@ class SpoExternalUserListCommand extends SpoCommand {
|
|
|
78
81
|
}
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
|
-
_SpoExternalUserListCommand_instances = new WeakSet(), _SpoExternalUserListCommand_initTelemetry = function _SpoExternalUserListCommand_initTelemetry() {
|
|
82
|
-
this.telemetry.push((args) => {
|
|
83
|
-
Object.assign(this.telemetryProperties, {
|
|
84
|
-
filter: (!(!args.options.filter)).toString(),
|
|
85
|
-
pageSize: (!(!args.options.pageSize)).toString(),
|
|
86
|
-
position: (!(!args.options.position)).toString(),
|
|
87
|
-
sortOrder: (!(!args.options.sortOrder)).toString(),
|
|
88
|
-
siteUrl: (!(!args.options.siteUrl)).toString()
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
}, _SpoExternalUserListCommand_initOptions = function _SpoExternalUserListCommand_initOptions() {
|
|
92
|
-
this.options.unshift({
|
|
93
|
-
option: '--filter [filter]'
|
|
94
|
-
}, {
|
|
95
|
-
option: '-p, --pageSize [pageSize]'
|
|
96
|
-
}, {
|
|
97
|
-
option: '-i, --position [position]'
|
|
98
|
-
}, {
|
|
99
|
-
option: '-s, --sortOrder [sortOrder]',
|
|
100
|
-
autocomplete: ['asc', 'desc']
|
|
101
|
-
}, {
|
|
102
|
-
option: '-u, --siteUrl [siteUrl]'
|
|
103
|
-
});
|
|
104
|
-
}, _SpoExternalUserListCommand_initValidators = function _SpoExternalUserListCommand_initValidators() {
|
|
105
|
-
this.validators.push(async (args) => {
|
|
106
|
-
if (args.options.pageSize) {
|
|
107
|
-
const pageSize = parseInt(args.options.pageSize);
|
|
108
|
-
if (isNaN(pageSize)) {
|
|
109
|
-
return `${args.options.pageSize} is not a valid number`;
|
|
110
|
-
}
|
|
111
|
-
if (pageSize < 1 || pageSize > 50) {
|
|
112
|
-
return 'pageSize must be between 1 and 50';
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
if (args.options.position) {
|
|
116
|
-
const position = parseInt(args.options.position);
|
|
117
|
-
if (isNaN(position)) {
|
|
118
|
-
return `${args.options.position} is not a valid number`;
|
|
119
|
-
}
|
|
120
|
-
if (position < 0) {
|
|
121
|
-
return 'position must be greater than or 0';
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
if (args.options.sortOrder &&
|
|
125
|
-
args.options.sortOrder !== 'asc' &&
|
|
126
|
-
args.options.sortOrder !== 'desc') {
|
|
127
|
-
return `${args.options.sortOrder} is not a valid sortOrder value. Allowed values asc|desc`;
|
|
128
|
-
}
|
|
129
|
-
if (args.options.siteUrl) {
|
|
130
|
-
return validation.isValidSharePointUrl(args.options.siteUrl);
|
|
131
|
-
}
|
|
132
|
-
return true;
|
|
133
|
-
});
|
|
134
|
-
};
|
|
135
84
|
export default new SpoExternalUserListCommand();
|
|
136
85
|
//# sourceMappingURL=externaluser-list.js.map
|
|
@@ -1,12 +1,8 @@
|
|
|
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 _SpoFileAddCommand_instances, _SpoFileAddCommand_initTelemetry, _SpoFileAddCommand_initOptions, _SpoFileAddCommand_initValidators, _SpoFileAddCommand_initTypes;
|
|
7
1
|
import fs from 'fs';
|
|
8
2
|
import path from 'path';
|
|
9
3
|
import { v4 } from 'uuid';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
10
6
|
import request from '../../../../request.js';
|
|
11
7
|
import { formatting } from '../../../../utils/formatting.js';
|
|
12
8
|
import { spo } from '../../../../utils/spo.js';
|
|
@@ -14,7 +10,37 @@ import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
|
14
10
|
import { validation } from '../../../../utils/validation.js';
|
|
15
11
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
16
12
|
import commands from '../../commands.js';
|
|
13
|
+
export const options = z.object({
|
|
14
|
+
...globalOptionsZod.shape,
|
|
15
|
+
webUrl: z.string()
|
|
16
|
+
.refine(url => validation.isValidSharePointUrl(url) === true, {
|
|
17
|
+
error: e => `'${e.input}' is not a valid SharePoint Online site URL.`
|
|
18
|
+
})
|
|
19
|
+
.alias('u'),
|
|
20
|
+
folder: z.string(),
|
|
21
|
+
path: z.string()
|
|
22
|
+
.refine(filePath => fs.existsSync(filePath), {
|
|
23
|
+
error: 'Specified path of the file to add does not exist',
|
|
24
|
+
abort: true
|
|
25
|
+
})
|
|
26
|
+
.alias('p'),
|
|
27
|
+
contentType: z.string().optional().alias('c'),
|
|
28
|
+
checkOut: z.boolean().optional(),
|
|
29
|
+
checkInComment: z.string().optional(),
|
|
30
|
+
approve: z.boolean().optional(),
|
|
31
|
+
approveComment: z.string().optional(),
|
|
32
|
+
publish: z.boolean().optional(),
|
|
33
|
+
publishComment: z.string().optional(),
|
|
34
|
+
overwrite: z.boolean().optional(),
|
|
35
|
+
fileName: z.string().optional()
|
|
36
|
+
}).catchall(z.unknown());
|
|
17
37
|
class SpoFileAddCommand extends SpoCommand {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
this.fileChunkingThreshold = 250 * 1024 * 1024; // max 250 MB
|
|
41
|
+
this.fileChunkSize = 250 * 1024 * 1024; // max fileChunkingThreshold
|
|
42
|
+
this.fileChunkRetryAttempts = 5;
|
|
43
|
+
}
|
|
18
44
|
get name() {
|
|
19
45
|
return commands.FILE_ADD;
|
|
20
46
|
}
|
|
@@ -24,16 +50,25 @@ class SpoFileAddCommand extends SpoCommand {
|
|
|
24
50
|
allowUnknownOptions() {
|
|
25
51
|
return true;
|
|
26
52
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
53
|
+
get schema() {
|
|
54
|
+
return options;
|
|
55
|
+
}
|
|
56
|
+
getRefinedSchema(schema) {
|
|
57
|
+
return schema
|
|
58
|
+
.refine(opts => !opts.publishComment || opts.publish, {
|
|
59
|
+
error: '--publishComment cannot be used without --publish',
|
|
60
|
+
path: ['publish'],
|
|
61
|
+
params: {
|
|
62
|
+
customCode: 'required'
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
.refine(opts => !opts.approveComment || opts.approve, {
|
|
66
|
+
error: '--approveComment cannot be used without --approve',
|
|
67
|
+
path: ['approve'],
|
|
68
|
+
params: {
|
|
69
|
+
customCode: 'required'
|
|
70
|
+
}
|
|
71
|
+
});
|
|
37
72
|
}
|
|
38
73
|
async commandAction(logger, args) {
|
|
39
74
|
const folderPath = urlUtil.getServerRelativePath(args.options.webUrl, args.options.folder);
|
|
@@ -452,66 +487,5 @@ class SpoFileAddCommand extends SpoCommand {
|
|
|
452
487
|
return result;
|
|
453
488
|
}
|
|
454
489
|
}
|
|
455
|
-
_SpoFileAddCommand_instances = new WeakSet(), _SpoFileAddCommand_initTelemetry = function _SpoFileAddCommand_initTelemetry() {
|
|
456
|
-
this.telemetry.push((args) => {
|
|
457
|
-
Object.assign(this.telemetryProperties, {
|
|
458
|
-
contentType: typeof args.options.contentType !== 'undefined',
|
|
459
|
-
checkOut: !!args.options.checkOut,
|
|
460
|
-
checkInComment: typeof args.options.checkInComment !== 'undefined',
|
|
461
|
-
approve: !!args.options.approve,
|
|
462
|
-
approveComment: typeof args.options.approveComment !== 'undefined',
|
|
463
|
-
publish: !!args.options.publish,
|
|
464
|
-
publishComment: typeof args.options.publishComment !== 'undefined',
|
|
465
|
-
overwrite: !!args.options.overwrite,
|
|
466
|
-
fileName: typeof args.options.fileName !== 'undefined'
|
|
467
|
-
});
|
|
468
|
-
});
|
|
469
|
-
}, _SpoFileAddCommand_initOptions = function _SpoFileAddCommand_initOptions() {
|
|
470
|
-
this.options.unshift({
|
|
471
|
-
option: '-u, --webUrl <webUrl>'
|
|
472
|
-
}, {
|
|
473
|
-
option: '--folder <folder>'
|
|
474
|
-
}, {
|
|
475
|
-
option: '-p, --path <path>'
|
|
476
|
-
}, {
|
|
477
|
-
option: '-c, --contentType [contentType]'
|
|
478
|
-
}, {
|
|
479
|
-
option: '--checkOut'
|
|
480
|
-
}, {
|
|
481
|
-
option: '--checkInComment [checkInComment]'
|
|
482
|
-
}, {
|
|
483
|
-
option: '--approve'
|
|
484
|
-
}, {
|
|
485
|
-
option: '--approveComment [approveComment]'
|
|
486
|
-
}, {
|
|
487
|
-
option: '--publish'
|
|
488
|
-
}, {
|
|
489
|
-
option: '--publishComment [publishComment]'
|
|
490
|
-
}, {
|
|
491
|
-
option: '--overwrite'
|
|
492
|
-
}, {
|
|
493
|
-
option: '--fileName [fileName]'
|
|
494
|
-
});
|
|
495
|
-
}, _SpoFileAddCommand_initValidators = function _SpoFileAddCommand_initValidators() {
|
|
496
|
-
this.validators.push(async (args) => {
|
|
497
|
-
const isValidSharePointUrl = validation.isValidSharePointUrl(args.options.webUrl);
|
|
498
|
-
if (isValidSharePointUrl !== true) {
|
|
499
|
-
return isValidSharePointUrl;
|
|
500
|
-
}
|
|
501
|
-
if (args.options.path && !fs.existsSync(args.options.path)) {
|
|
502
|
-
return 'Specified path of the file to add does not exist';
|
|
503
|
-
}
|
|
504
|
-
if (args.options.publishComment && !args.options.publish) {
|
|
505
|
-
return '--publishComment cannot be used without --publish';
|
|
506
|
-
}
|
|
507
|
-
if (args.options.approveComment && !args.options.approve) {
|
|
508
|
-
return '--approveComment cannot be used without --approve';
|
|
509
|
-
}
|
|
510
|
-
return true;
|
|
511
|
-
});
|
|
512
|
-
}, _SpoFileAddCommand_initTypes = function _SpoFileAddCommand_initTypes() {
|
|
513
|
-
this.types.string.push('webUrl', 'folder', 'path', 'contentType', 'checkInComment', 'approveComment', 'publishComment', 'fileName');
|
|
514
|
-
this.types.boolean.push('checkOut', 'approve', 'publish', 'overwrite');
|
|
515
|
-
};
|
|
516
490
|
export default new SpoFileAddCommand();
|
|
517
491
|
//# sourceMappingURL=file-add.js.map
|
|
@@ -15,7 +15,7 @@ export const options = z.strictObject({
|
|
|
15
15
|
})
|
|
16
16
|
.alias('u'),
|
|
17
17
|
url: z.string().optional(),
|
|
18
|
-
id: z.
|
|
18
|
+
id: z.guid().optional().alias('i'),
|
|
19
19
|
force: z.boolean().optional().alias('f')
|
|
20
20
|
});
|
|
21
21
|
class SpoFileArchiveCommand extends SpoCommand {
|