@pnp/cli-microsoft365 5.9.0-beta.e941763 → 5.9.0-beta.fd6d022
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Auth.js +4 -4
- package/dist/Command.js +8 -8
- package/dist/api.js +3 -3
- package/dist/cli/Cli.js +6 -4
- package/dist/index.js +2 -2
- package/dist/m365/aad/commands/app/app-add.js +4 -3
- package/dist/m365/aad/commands/app/app-get.js +3 -3
- package/dist/m365/aad/commands/app/app-remove.js +5 -5
- package/dist/m365/aad/commands/app/app-role-list.js +2 -2
- package/dist/m365/aad/commands/app/app-role-remove.js +4 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -3
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +6 -6
- package/dist/m365/aad/commands/group/group-list.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +4 -4
- package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +2 -2
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +4 -3
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-add.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +4 -3
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -3
- package/dist/m365/aad/commands/o365group/o365group-get.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-list.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +4 -4
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +7 -6
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +5 -4
- package/dist/m365/aad/commands/o365group/o365group-remove.js +4 -4
- package/dist/m365/aad/commands/o365group/o365group-renew.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-set.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-user-list.js +5 -4
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +5 -5
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +6 -5
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +3 -3
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -2
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -2
- package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +2 -2
- package/dist/m365/aad/commands/sp/sp-add.js +3 -3
- package/dist/m365/aad/commands/sp/sp-get.js +3 -3
- package/dist/m365/aad/commands/user/user-get.js +2 -2
- package/dist/m365/aad/commands/user/user-hibp.js +2 -2
- package/dist/m365/aad/commands/user/user-list.js +2 -2
- package/dist/m365/aad/commands/user/user-set.js +2 -2
- package/dist/m365/aad/commands/user/user-signin-list.js +5 -4
- package/dist/m365/app/commands/app-get.js +2 -2
- package/dist/m365/app/commands/app-open.js +2 -2
- package/dist/m365/app/commands/permission/permission-list.js +2 -2
- package/dist/m365/base/AppCommand.js +4 -4
- package/dist/m365/booking/commands/business/business-list.js +2 -2
- package/dist/m365/cli/commands/cli-doctor.js +4 -4
- package/dist/m365/cli/commands/cli-reconsent.js +2 -2
- package/dist/m365/cli/commands/config/config-get.js +2 -2
- package/dist/m365/cli/commands/config/config-reset.js +3 -3
- package/dist/m365/cli/commands/config/config-set.js +2 -2
- package/dist/m365/commands/status.js +3 -3
- package/dist/m365/file/commands/file-add.js +3 -3
- package/dist/m365/file/commands/file-list.js +4 -3
- package/dist/m365/flow/commands/flow-export.js +2 -2
- package/dist/m365/flow/commands/flow-remove.js +4 -4
- package/dist/m365/flow/commands/run/run-cancel.js +4 -4
- package/dist/m365/flow/commands/run/run-resubmit.js +4 -4
- package/dist/m365/graph/commands/changelog/changelog-list.js +5 -4
- package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +2 -2
- package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +2 -2
- package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +2 -2
- package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +2 -2
- package/dist/m365/graph/commands/subscription/subscription-add.js +2 -2
- package/dist/m365/onedrive/commands/onedrive-list.js +3 -3
- package/dist/m365/onenote/commands/notebook/notebook-list.js +5 -4
- package/dist/m365/outlook/commands/message/message-list.js +2 -2
- package/dist/m365/outlook/commands/room/room-list.js +2 -2
- package/dist/m365/outlook/commands/roomlist/roomlist-list.js +2 -2
- package/dist/m365/pa/commands/app/app-get.js +4 -4
- package/dist/m365/pa/commands/app/app-list.js +2 -2
- package/dist/m365/pa/commands/app/app-remove.js +4 -4
- package/dist/m365/pa/commands/connector/connector-list.js +2 -2
- package/dist/m365/pa/commands/pcf/pcf-init.js +4 -4
- package/dist/m365/pa/commands/solution/solution-init.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -3
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -3
- package/dist/m365/planner/commands/bucket/bucket-list.js +6 -4
- package/dist/m365/planner/commands/bucket/bucket-remove.js +6 -5
- package/dist/m365/planner/commands/bucket/bucket-set.js +4 -3
- package/dist/m365/planner/commands/plan/plan-add.js +9 -6
- package/dist/m365/planner/commands/plan/plan-get.js +4 -3
- package/dist/m365/planner/commands/plan/plan-list.js +4 -3
- package/dist/m365/planner/commands/plan/plan-remove.js +6 -5
- package/dist/m365/planner/commands/task/task-add.js +9 -7
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -2
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-get.js +4 -3
- package/dist/m365/planner/commands/task/task-list.js +11 -9
- package/dist/m365/planner/commands/task/task-reference-add.js +2 -2
- package/dist/m365/planner/commands/task/task-reference-list.js +2 -2
- package/dist/m365/planner/commands/task/task-reference-remove.js +4 -4
- package/dist/m365/planner/commands/task/task-remove.js +8 -6
- package/dist/m365/planner/commands/task/task-set.js +9 -7
- package/dist/m365/planner/commands/tenant/tenant-settings-set.js +2 -2
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +3 -3
- package/dist/m365/pp/commands/managementapp/managementapp-list.js +2 -2
- package/dist/m365/search/commands/externalconnection/externalconnection-list.js +2 -2
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +2 -2
- package/dist/m365/spfx/commands/package/package-generate.js +4 -4
- package/dist/m365/spfx/commands/project/base-project-command.js +19 -18
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN001008_DEP_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN001009_DEP_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002015_DEVDEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor.js +7 -7
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001005_DEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001006_DEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001008_DEP_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001009_DEP_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001015_DEP_types_react_addons_shallow_compare.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001016_DEP_types_react_addons_update.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001017_DEP_types_react_addons_update.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001019_DEP_knockout.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001020_DEP_types_knockout.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002015_DEVDEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002025_DEVDEP_eslint_plugin_react_hooks.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN020001_RES_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022001_SCSS_remove_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022002_SCSS_add_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade.js +24 -23
- package/dist/m365/spo/commands/app/app-add.js +4 -3
- package/dist/m365/spo/commands/app/app-deploy.js +5 -4
- package/dist/m365/spo/commands/app/app-get.js +5 -4
- package/dist/m365/spo/commands/app/app-install.js +3 -3
- package/dist/m365/spo/commands/app/app-instance-list.js +2 -2
- package/dist/m365/spo/commands/app/app-list.js +4 -3
- package/dist/m365/spo/commands/app/app-remove.js +7 -6
- package/dist/m365/spo/commands/app/app-retract.js +7 -6
- package/dist/m365/spo/commands/app/app-uninstall.js +5 -5
- package/dist/m365/spo/commands/app/app-upgrade.js +3 -3
- package/dist/m365/spo/commands/apppage/apppage-add.js +2 -2
- package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
- package/dist/m365/spo/commands/cdn/cdn-get.js +4 -4
- package/dist/m365/spo/commands/cdn/cdn-origin-add.js +6 -5
- package/dist/m365/spo/commands/cdn/cdn-origin-list.js +4 -4
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +8 -7
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +4 -4
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +6 -5
- package/dist/m365/spo/commands/cdn/cdn-set.js +3 -3
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +11 -9
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +11 -9
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +8 -6
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +4 -3
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +4 -4
- package/dist/m365/spo/commands/contenttype/contenttype-set.js +13 -11
- package/dist/m365/spo/commands/contenttypehub/contenttypehub-get.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-clear.js +4 -4
- package/dist/m365/spo/commands/customaction/customaction-get.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-list.js +2 -2
- package/dist/m365/spo/commands/customaction/customaction-remove.js +5 -5
- package/dist/m365/spo/commands/customaction/customaction-set.js +4 -4
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +9 -7
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +5 -4
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +8 -6
- package/dist/m365/spo/commands/feature/feature-enable.js +2 -2
- package/dist/m365/spo/commands/feature/feature-list.js +2 -2
- package/dist/m365/spo/commands/field/field-add.js +6 -4
- package/dist/m365/spo/commands/field/field-get.js +12 -10
- package/dist/m365/spo/commands/field/field-list.js +9 -7
- package/dist/m365/spo/commands/field/field-remove.js +14 -12
- package/dist/m365/spo/commands/field/field-set.js +12 -10
- package/dist/m365/spo/commands/file/file-add.js +8 -5
- package/dist/m365/spo/commands/file/file-checkin.js +3 -3
- package/dist/m365/spo/commands/file/file-checkout.js +3 -3
- package/dist/m365/spo/commands/file/file-copy.js +10 -8
- package/dist/m365/spo/commands/file/file-get.js +3 -3
- package/dist/m365/spo/commands/file/file-list.js +4 -3
- package/dist/m365/spo/commands/file/file-move.js +10 -8
- package/dist/m365/spo/commands/file/file-remove.js +5 -5
- package/dist/m365/spo/commands/file/file-rename.js +7 -6
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +125 -0
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +5 -4
- package/dist/m365/spo/commands/folder/folder-add.js +4 -3
- package/dist/m365/spo/commands/folder/folder-copy.js +8 -6
- package/dist/m365/spo/commands/folder/folder-get.js +38 -7
- package/dist/m365/spo/commands/folder/folder-list.js +4 -3
- package/dist/m365/spo/commands/folder/folder-move.js +8 -6
- package/dist/m365/spo/commands/folder/folder-remove.js +6 -5
- package/dist/m365/spo/commands/folder/folder-rename.js +8 -6
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +89 -0
- package/dist/m365/spo/commands/group/group-add.js +3 -3
- package/dist/m365/spo/commands/group/group-get.js +2 -2
- package/dist/m365/spo/commands/group/group-list.js +2 -2
- package/dist/m365/spo/commands/group/group-remove.js +4 -4
- package/dist/m365/spo/commands/group/group-set.js +5 -5
- package/dist/m365/spo/commands/group/group-user-add.js +4 -4
- package/dist/m365/spo/commands/group/group-user-list.js +2 -2
- package/dist/m365/spo/commands/group/group-user-remove.js +4 -4
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +2 -2
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +2 -2
- package/dist/m365/spo/commands/homesite/homesite-get.js +2 -2
- package/dist/m365/spo/commands/homesite/homesite-remove.js +5 -5
- package/dist/m365/spo/commands/homesite/homesite-set.js +7 -5
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +5 -4
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +2 -2
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -5
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +8 -7
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +2 -2
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -3
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +8 -6
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +10 -8
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +10 -8
- package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +2 -2
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +6 -5
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-get.js +3 -3
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +5 -5
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +7 -5
- package/dist/m365/spo/commands/list/list-add.js +5 -5
- package/dist/m365/spo/commands/list/list-contenttype-add.js +6 -5
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +6 -5
- package/dist/m365/spo/commands/list/list-contenttype-list.js +6 -5
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +8 -7
- package/dist/m365/spo/commands/list/list-get.js +6 -5
- package/dist/m365/spo/commands/list/list-label-get.js +8 -6
- package/dist/m365/spo/commands/list/list-label-set.js +9 -7
- package/dist/m365/spo/commands/list/list-list.js +2 -2
- package/dist/m365/spo/commands/list/list-remove.js +8 -7
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +13 -11
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +13 -11
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +6 -5
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +6 -5
- package/dist/m365/spo/commands/list/list-set.js +6 -6
- package/dist/m365/spo/commands/list/list-sitescript-get.js +8 -6
- package/dist/m365/spo/commands/list/list-view-add.js +8 -6
- package/dist/m365/spo/commands/list/list-view-field-add.js +8 -7
- package/dist/m365/spo/commands/list/list-view-field-remove.js +10 -9
- package/dist/m365/spo/commands/list/list-view-field-set.js +8 -7
- package/dist/m365/spo/commands/list/list-view-get.js +11 -9
- package/dist/m365/spo/commands/list/list-view-list.js +6 -5
- package/dist/m365/spo/commands/list/list-view-remove.js +9 -8
- package/dist/m365/spo/commands/list/list-view-set.js +10 -8
- package/dist/m365/spo/commands/list/list-webhook-add.js +6 -5
- package/dist/m365/spo/commands/list/list-webhook-get.js +7 -6
- package/dist/m365/spo/commands/list/list-webhook-list.js +10 -9
- package/dist/m365/spo/commands/list/list-webhook-remove.js +9 -8
- package/dist/m365/spo/commands/list/list-webhook-set.js +7 -6
- package/dist/m365/spo/commands/listitem/listitem-add.js +10 -7
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +6 -5
- package/dist/m365/spo/commands/listitem/listitem-get.js +6 -5
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +9 -7
- package/dist/m365/spo/commands/listitem/listitem-list.js +9 -7
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +10 -8
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +9 -7
- package/dist/m365/spo/commands/listitem/listitem-remove.js +8 -7
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +13 -11
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +6 -5
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +6 -5
- package/dist/m365/spo/commands/listitem/listitem-set.js +8 -6
- package/dist/m365/spo/commands/mail/mail-send.js +2 -2
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +2 -2
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +2 -2
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +6 -5
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +6 -5
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +3 -3
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +5 -5
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +3 -3
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +9 -7
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +7 -5
- package/dist/m365/spo/commands/page/Page.js +2 -2
- package/dist/m365/spo/commands/page/page-add.js +6 -4
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +3 -3
- package/dist/m365/spo/commands/page/page-column-get.js +2 -2
- package/dist/m365/spo/commands/page/page-column-list.js +2 -2
- package/dist/m365/spo/commands/page/page-control-get.js +3 -3
- package/dist/m365/spo/commands/page/page-control-list.js +2 -2
- package/dist/m365/spo/commands/page/page-control-set.js +3 -3
- package/dist/m365/spo/commands/page/page-copy.js +2 -2
- package/dist/m365/spo/commands/page/page-get.js +4 -3
- package/dist/m365/spo/commands/page/page-header-set.js +2 -2
- package/dist/m365/spo/commands/page/page-list.js +2 -2
- package/dist/m365/spo/commands/page/page-remove.js +8 -6
- package/dist/m365/spo/commands/page/page-section-add.js +2 -2
- package/dist/m365/spo/commands/page/page-section-get.js +2 -2
- package/dist/m365/spo/commands/page/page-section-list.js +2 -2
- package/dist/m365/spo/commands/page/page-set.js +6 -4
- package/dist/m365/spo/commands/page/page-template-list.js +2 -2
- package/dist/m365/spo/commands/page/page-text-add.js +6 -4
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +4 -3
- package/dist/m365/spo/commands/propertybag/propertybag-get.js +5 -4
- package/dist/m365/spo/commands/propertybag/propertybag-list.js +5 -4
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +10 -8
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +6 -5
- package/dist/m365/spo/commands/roledefinition/roledefinition-add.js +2 -2
- package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +2 -2
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +2 -2
- package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +5 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +3 -3
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +5 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +7 -5
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +7 -5
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +3 -3
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +5 -5
- package/dist/m365/spo/commands/site/site-add.js +18 -16
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +7 -5
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +7 -5
- package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -3
- package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-list.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +5 -5
- package/dist/m365/spo/commands/site/site-apppermission-set.js +3 -3
- package/dist/m365/spo/commands/site/site-chrome-set.js +2 -2
- package/dist/m365/spo/commands/site/site-classic-add.js +15 -13
- package/dist/m365/spo/commands/site/site-classic-list.js +5 -4
- package/dist/m365/spo/commands/site/site-classic-set.js +14 -12
- package/dist/m365/spo/commands/site/site-commsite-enable.js +8 -6
- package/dist/m365/spo/commands/site/site-ensure.js +8 -8
- package/dist/m365/spo/commands/site/site-get.js +2 -2
- package/dist/m365/spo/commands/site/site-groupify.js +2 -2
- package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +3 -3
- package/dist/m365/spo/commands/site/site-list.js +5 -4
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +2 -2
- package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +6 -5
- package/dist/m365/spo/commands/site/site-remove.js +18 -16
- package/dist/m365/spo/commands/site/site-rename.js +3 -3
- package/dist/m365/spo/commands/site/site-set.js +24 -21
- package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +5 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +5 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +4 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-list.js +2 -2
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +7 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +5 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +5 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +7 -6
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +5 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +2 -2
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +6 -5
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +3 -3
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +5 -4
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +3 -3
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +7 -6
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +5 -4
- package/dist/m365/spo/commands/spo-search.js +5 -4
- package/dist/m365/spo/commands/spo-set.js +2 -2
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -2
- package/dist/m365/spo/commands/storageentity/storageentity-list.js +2 -2
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +9 -7
- package/dist/m365/spo/commands/storageentity/storageentity-set.js +7 -5
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +7 -7
- package/dist/m365/spo/commands/tenant/tenant-appcatalogurl-get.js +2 -2
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-list.js +3 -3
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +10 -8
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +4 -3
- package/dist/m365/spo/commands/tenant/tenant-settings-list.js +3 -3
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +6 -5
- package/dist/m365/spo/commands/term/term-add.js +15 -13
- package/dist/m365/spo/commands/term/term-get.js +11 -9
- package/dist/m365/spo/commands/term/term-group-add.js +8 -6
- package/dist/m365/spo/commands/term/term-group-get.js +7 -5
- package/dist/m365/spo/commands/term/term-group-list.js +3 -3
- package/dist/m365/spo/commands/term/term-list.js +9 -7
- package/dist/m365/spo/commands/term/term-set-add.js +11 -9
- package/dist/m365/spo/commands/term/term-set-get.js +9 -7
- package/dist/m365/spo/commands/term/term-set-list.js +7 -5
- package/dist/m365/spo/commands/theme/theme-apply.js +7 -5
- package/dist/m365/spo/commands/theme/theme-get.js +5 -4
- package/dist/m365/spo/commands/theme/theme-list.js +2 -2
- package/dist/m365/spo/commands/theme/theme-remove.js +4 -4
- package/dist/m365/spo/commands/theme/theme-set.js +7 -5
- package/dist/m365/spo/commands/user/user-get.js +2 -2
- package/dist/m365/spo/commands/user/user-list.js +2 -2
- package/dist/m365/spo/commands/user/user-remove.js +4 -4
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +4 -3
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +3 -3
- package/dist/m365/spo/commands/web/web-add.js +5 -4
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +2 -2
- package/dist/m365/spo/commands/web/web-get.js +2 -2
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +2 -2
- package/dist/m365/spo/commands/web/web-list.js +2 -2
- package/dist/m365/spo/commands/web/web-reindex.js +6 -5
- package/dist/m365/spo/commands/web/web-remove.js +4 -4
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +6 -6
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +6 -6
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +2 -2
- package/dist/m365/spo/commands/web/web-set.js +2 -2
- package/dist/m365/spo/commands.js +2 -0
- package/dist/m365/teams/commands/app/app-install.js +6 -6
- package/dist/m365/teams/commands/app/app-list.js +4 -3
- package/dist/m365/teams/commands/app/app-remove.js +4 -4
- package/dist/m365/teams/commands/app/app-uninstall.js +4 -4
- package/dist/m365/teams/commands/app/app-update.js +2 -2
- package/dist/m365/teams/commands/cache/cache-remove.js +2 -2
- package/dist/m365/teams/commands/channel/channel-add.js +2 -2
- package/dist/m365/teams/commands/channel/channel-get.js +3 -3
- package/dist/m365/teams/commands/channel/channel-list.js +7 -6
- package/dist/m365/teams/commands/channel/channel-member-add.js +3 -3
- package/dist/m365/teams/commands/channel/channel-member-list.js +5 -4
- package/dist/m365/teams/commands/channel/channel-member-remove.js +6 -6
- package/dist/m365/teams/commands/channel/channel-member-set.js +4 -4
- package/dist/m365/teams/commands/channel/channel-remove.js +5 -5
- package/dist/m365/teams/commands/channel/channel-set.js +2 -2
- package/dist/m365/teams/commands/chat/chat-list.js +2 -2
- package/dist/m365/teams/commands/chat/chat-member-list.js +4 -3
- package/dist/m365/teams/commands/chat/chat-message-list.js +4 -3
- package/dist/m365/teams/commands/chat/chat-message-send.js +5 -4
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -2
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -2
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -2
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -2
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -2
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -2
- package/dist/m365/teams/commands/message/message-get.js +3 -3
- package/dist/m365/teams/commands/message/message-list.js +7 -6
- package/dist/m365/teams/commands/message/message-reply-list.js +5 -4
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -2
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +3 -3
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -3
- package/dist/m365/teams/commands/report/report-pstncalls.js +3 -3
- package/dist/m365/teams/commands/tab/tab-add.js +3 -3
- package/dist/m365/teams/commands/tab/tab-get.js +4 -4
- package/dist/m365/teams/commands/tab/tab-list.js +5 -4
- package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
- package/dist/m365/teams/commands/team/team-archive.js +3 -3
- package/dist/m365/teams/commands/team/team-clone.js +3 -3
- package/dist/m365/teams/commands/team/team-get.js +2 -2
- package/dist/m365/teams/commands/team/team-list.js +2 -2
- package/dist/m365/teams/commands/team/team-remove.js +5 -5
- package/dist/m365/teams/commands/team/team-set.js +3 -3
- package/dist/m365/teams/commands/team/team-unarchive.js +3 -3
- package/dist/m365/teams/commands/user/user-app-add.js +3 -3
- package/dist/m365/teams/commands/user/user-app-list.js +5 -4
- package/dist/m365/teams/commands/user/user-app-remove.js +4 -4
- package/dist/m365/teams/commands/user/user-list.js +5 -4
- package/dist/m365/tenant/commands/id/id-get.js +2 -2
- package/dist/m365/tenant/commands/report/report-office365activationcounts.js +2 -2
- package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +2 -2
- package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +2 -2
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +2 -2
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +2 -2
- package/dist/m365/todo/commands/list/list-list.js +2 -2
- package/dist/m365/todo/commands/list/list-remove.js +2 -2
- package/dist/m365/todo/commands/task/task-list.js +2 -2
- package/dist/m365/todo/commands/task/task-remove.js +2 -2
- package/dist/m365/viva/commands/connections/connections-app-create.js +2 -2
- package/dist/m365/yammer/commands/group/group-user-remove.js +2 -2
- package/dist/m365/yammer/commands/message/message-like-set.js +2 -2
- package/dist/m365/yammer/commands/message/message-remove.js +2 -2
- package/dist/request.js +4 -4
- package/dist/utils/spo.js +7 -6
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +1 -1
- package/docs/docs/cmd/aad/user/user-signin-list.md +1 -1
- package/docs/docs/cmd/onedrive/report/report-activityusercounts.md +1 -1
- package/docs/docs/cmd/planner/task/task-checklistitem-list.md +1 -1
- package/docs/docs/cmd/planner/task/task-reference-add.md +1 -1
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.md +39 -0
- package/docs/docs/cmd/spo/folder/folder-get.md +13 -4
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +36 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +1 -1
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +1 -1
- package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +5 -5
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +5 -5
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +1 -1
- package/docs/docs/cmd/teams/cache/cache-remove.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-add.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-list.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-set.md +1 -1
- package/docs/docs/cmd/teams/funsettings/funsettings-set.md +6 -6
- package/docs/docs/cmd/tenant/security/security-alerts-list.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +1 -1
- package/npm-shrinkwrap.json +342 -357
- package/package.json +20 -18
- package/dist/cli/index.js +0 -21
- package/dist/utils/index.js +0 -31
|
@@ -15,7 +15,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsMessageListCommand_instances, _TeamsMessageListCommand_initTelemetry, _TeamsMessageListCommand_initOptions, _TeamsMessageListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const odata_1 = require("../../../../utils/odata");
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
19
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class TeamsMessageListCommand extends GraphCommand_1.default {
|
|
@@ -40,7 +41,7 @@ class TeamsMessageListCommand extends GraphCommand_1.default {
|
|
|
40
41
|
const deltaExtension = args.options.since !== undefined ? `/delta?$filter=lastModifiedDateTime gt ${args.options.since}` : '';
|
|
41
42
|
const endpoint = `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages${deltaExtension}`;
|
|
42
43
|
try {
|
|
43
|
-
const items = yield
|
|
44
|
+
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
44
45
|
if (args.options.output !== 'json') {
|
|
45
46
|
items.forEach(i => {
|
|
46
47
|
i.body = i.body.content;
|
|
@@ -70,16 +71,16 @@ _TeamsMessageListCommand_instances = new WeakSet(), _TeamsMessageListCommand_ini
|
|
|
70
71
|
});
|
|
71
72
|
}, _TeamsMessageListCommand_initValidators = function _TeamsMessageListCommand_initValidators() {
|
|
72
73
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
if (!
|
|
74
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
74
75
|
return `${args.options.teamId} is not a valid GUID`;
|
|
75
76
|
}
|
|
76
|
-
if (!
|
|
77
|
+
if (!validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
77
78
|
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
78
79
|
}
|
|
79
|
-
if (args.options.since && !
|
|
80
|
+
if (args.options.since && !validation_1.validation.isValidISODateDashOnly(args.options.since)) {
|
|
80
81
|
return `${args.options.since} is not a valid ISO Date (with dash separator)`;
|
|
81
82
|
}
|
|
82
|
-
if (args.options.since && !
|
|
83
|
+
if (args.options.since && !validation_1.validation.isDateInRange(args.options.since, 8)) {
|
|
83
84
|
return `${args.options.since} is not in the last 8 months (for delta messages)`;
|
|
84
85
|
}
|
|
85
86
|
return true;
|
|
@@ -15,7 +15,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsMessageReplyListCommand_instances, _TeamsMessageReplyListCommand_initOptions, _TeamsMessageReplyListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const odata_1 = require("../../../../utils/odata");
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
19
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class TeamsMessageReplyListCommand extends GraphCommand_1.default {
|
|
@@ -38,7 +39,7 @@ class TeamsMessageReplyListCommand extends GraphCommand_1.default {
|
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
40
|
const endpoint = `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages/${args.options.messageId}/replies`;
|
|
40
41
|
try {
|
|
41
|
-
const items = yield
|
|
42
|
+
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
42
43
|
if (args.options.output !== 'json') {
|
|
43
44
|
items.forEach(i => {
|
|
44
45
|
i.body = i.body.content;
|
|
@@ -62,10 +63,10 @@ _TeamsMessageReplyListCommand_instances = new WeakSet(), _TeamsMessageReplyListC
|
|
|
62
63
|
});
|
|
63
64
|
}, _TeamsMessageReplyListCommand_initValidators = function _TeamsMessageReplyListCommand_initValidators() {
|
|
64
65
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
if (!
|
|
66
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
66
67
|
return `${args.options.teamId} is not a valid GUID`;
|
|
67
68
|
}
|
|
68
|
-
if (!
|
|
69
|
+
if (!validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
69
70
|
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
70
71
|
}
|
|
71
72
|
return true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMessagingSettingsListCommand_instances, _TeamsMessagingSettingsListCommand_initOptions, _TeamsMessagingSettingsListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class TeamsMessagingSettingsListCommand extends GraphCommand_1.default {
|
|
@@ -57,7 +57,7 @@ _TeamsMessagingSettingsListCommand_instances = new WeakSet(), _TeamsMessagingSet
|
|
|
57
57
|
});
|
|
58
58
|
}, _TeamsMessagingSettingsListCommand_initValidators = function _TeamsMessagingSettingsListCommand_initValidators() {
|
|
59
59
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
if (!
|
|
60
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
61
61
|
return `${args.options.teamId} is not a valid GUID`;
|
|
62
62
|
}
|
|
63
63
|
return true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMessagingSettingsSetCommand_instances, _TeamsMessagingSettingsSetCommand_initTelemetry, _TeamsMessagingSettingsSetCommand_initOptions, _TeamsMessagingSettingsSetCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class TeamsMessagingSettingsSetCommand extends GraphCommand_1.default {
|
|
@@ -82,7 +82,7 @@ _TeamsMessagingSettingsSetCommand_instances = new WeakSet(), _TeamsMessagingSett
|
|
|
82
82
|
});
|
|
83
83
|
}, _TeamsMessagingSettingsSetCommand_initValidators = function _TeamsMessagingSettingsSetCommand_initValidators() {
|
|
84
84
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
85
|
-
if (!
|
|
85
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
86
86
|
return `${args.options.teamId} is not a valid GUID`;
|
|
87
87
|
}
|
|
88
88
|
let hasDuplicate = false;
|
|
@@ -101,7 +101,7 @@ _TeamsMessagingSettingsSetCommand_instances = new WeakSet(), _TeamsMessagingSett
|
|
|
101
101
|
TeamsMessagingSettingsSetCommand.props.every((p) => {
|
|
102
102
|
property = p;
|
|
103
103
|
value = args.options[p];
|
|
104
|
-
isValid = typeof value === 'undefined' ||
|
|
104
|
+
isValid = typeof value === 'undefined' || validation_1.validation.isValidBoolean(value);
|
|
105
105
|
return isValid;
|
|
106
106
|
});
|
|
107
107
|
if (!isValid) {
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsReportDirectroutingcallsCommand_instances, _TeamsReportDirectroutingcallsCommand_initTelemetry, _TeamsReportDirectroutingcallsCommand_initOptions, _TeamsReportDirectroutingcallsCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class TeamsReportDirectroutingcallsCommand extends GraphCommand_1.default {
|
|
@@ -70,11 +70,11 @@ _TeamsReportDirectroutingcallsCommand_instances = new WeakSet(), _TeamsReportDir
|
|
|
70
70
|
});
|
|
71
71
|
}, _TeamsReportDirectroutingcallsCommand_initValidators = function _TeamsReportDirectroutingcallsCommand_initValidators() {
|
|
72
72
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
if (!
|
|
73
|
+
if (!validation_1.validation.isValidISODateDashOnly(args.options.fromDateTime)) {
|
|
74
74
|
return 'The fromDateTime is not a valid ISO date string (YYYY-MM-DD)';
|
|
75
75
|
}
|
|
76
76
|
if (args.options.toDateTime &&
|
|
77
|
-
!
|
|
77
|
+
!validation_1.validation.isValidISODateDashOnly(args.options.toDateTime)) {
|
|
78
78
|
return 'The toDateTime is not a valid ISO date string (YYYY-MM-DD)';
|
|
79
79
|
}
|
|
80
80
|
if (Math.ceil((new Date(args.options.toDateTime || new Date().toISOString()).getTime() - new Date(args.options.fromDateTime).getTime()) / (1000 * 3600 * 24)) > 90) {
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsReportPstncallsCommand_instances, _TeamsReportPstncallsCommand_initTelemetry, _TeamsReportPstncallsCommand_initOptions, _TeamsReportPstncallsCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class TeamsReportPstncallsCommand extends GraphCommand_1.default {
|
|
@@ -70,11 +70,11 @@ _TeamsReportPstncallsCommand_instances = new WeakSet(), _TeamsReportPstncallsCom
|
|
|
70
70
|
});
|
|
71
71
|
}, _TeamsReportPstncallsCommand_initValidators = function _TeamsReportPstncallsCommand_initValidators() {
|
|
72
72
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
if (!
|
|
73
|
+
if (!validation_1.validation.isValidISODateDashOnly(args.options.fromDateTime)) {
|
|
74
74
|
return 'The fromDateTime is not a valid ISO date string (YYYY-MM-DD)';
|
|
75
75
|
}
|
|
76
76
|
if (args.options.toDateTime &&
|
|
77
|
-
!
|
|
77
|
+
!validation_1.validation.isValidISODateDashOnly(args.options.toDateTime)) {
|
|
78
78
|
return 'The toDateTime is not a valid ISO date string (YYYY-MM-DD)';
|
|
79
79
|
}
|
|
80
80
|
if (Math.ceil((new Date(args.options.toDateTime || new Date().toISOString()).getTime() - new Date(args.options.fromDateTime).getTime()) / (1000 * 3600 * 24)) > 90) {
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTabAddCommand_instances, _TeamsTabAddCommand_initTelemetry, _TeamsTabAddCommand_initOptions, _TeamsTabAddCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class TeamsTabAddCommand extends GraphCommand_1.default {
|
|
@@ -121,10 +121,10 @@ _TeamsTabAddCommand_instances = new WeakSet(), _TeamsTabAddCommand_initTelemetry
|
|
|
121
121
|
});
|
|
122
122
|
}, _TeamsTabAddCommand_initValidators = function _TeamsTabAddCommand_initValidators() {
|
|
123
123
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
if (!
|
|
124
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
125
125
|
return `${args.options.teamId} is not a valid GUID`;
|
|
126
126
|
}
|
|
127
|
-
if (!
|
|
127
|
+
if (!validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
128
128
|
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
129
129
|
}
|
|
130
130
|
return true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTabGetCommand_instances, _TeamsTabGetCommand_initTelemetry, _TeamsTabGetCommand_initOptions, _TeamsTabGetCommand_initValidators, _TeamsTabGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
@@ -142,13 +142,13 @@ _TeamsTabGetCommand_instances = new WeakSet(), _TeamsTabGetCommand_initTelemetry
|
|
|
142
142
|
});
|
|
143
143
|
}, _TeamsTabGetCommand_initValidators = function _TeamsTabGetCommand_initValidators() {
|
|
144
144
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
145
|
-
if (args.options.teamId && !
|
|
145
|
+
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
146
146
|
return `${args.options.teamId} is not a valid GUID`;
|
|
147
147
|
}
|
|
148
|
-
if (args.options.channelId && !
|
|
148
|
+
if (args.options.channelId && !validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
149
149
|
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
150
150
|
}
|
|
151
|
-
if (args.options.tabId && !
|
|
151
|
+
if (args.options.tabId && !validation_1.validation.isValidGuid(args.options.tabId)) {
|
|
152
152
|
return `${args.options.tabId} is not a valid GUID`;
|
|
153
153
|
}
|
|
154
154
|
return true;
|
|
@@ -15,7 +15,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsTabListCommand_instances, _TeamsTabListCommand_initOptions, _TeamsTabListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const odata_1 = require("../../../../utils/odata");
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
19
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class TeamsTabListCommand extends GraphCommand_1.default {
|
|
@@ -38,7 +39,7 @@ class TeamsTabListCommand extends GraphCommand_1.default {
|
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
40
|
const endpoint = `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${encodeURIComponent(args.options.channelId)}/tabs?$expand=teamsApp`;
|
|
40
41
|
try {
|
|
41
|
-
const items = yield
|
|
42
|
+
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
42
43
|
items.forEach(i => {
|
|
43
44
|
i.teamsAppTabId = i.teamsApp.id;
|
|
44
45
|
});
|
|
@@ -58,10 +59,10 @@ _TeamsTabListCommand_instances = new WeakSet(), _TeamsTabListCommand_initOptions
|
|
|
58
59
|
});
|
|
59
60
|
}, _TeamsTabListCommand_initValidators = function _TeamsTabListCommand_initValidators() {
|
|
60
61
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
if (!
|
|
62
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
62
63
|
return `${args.options.teamId} is not a valid GUID`;
|
|
63
64
|
}
|
|
64
|
-
if (!
|
|
65
|
+
if (!validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
65
66
|
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
66
67
|
}
|
|
67
68
|
return true;
|
|
@@ -15,9 +15,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsTabRemoveCommand_instances, _TeamsTabRemoveCommand_initTelemetry, _TeamsTabRemoveCommand_initOptions, _TeamsTabRemoveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
-
const
|
|
20
|
+
const validation_1 = require("../../../../utils/validation");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
23
|
class TeamsTabRemoveCommand extends GraphCommand_1.default {
|
|
@@ -55,7 +55,7 @@ class TeamsTabRemoveCommand extends GraphCommand_1.default {
|
|
|
55
55
|
yield removeTab();
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
58
|
-
const result = yield
|
|
58
|
+
const result = yield Cli_1.Cli.prompt({
|
|
59
59
|
type: 'confirm',
|
|
60
60
|
name: 'continue',
|
|
61
61
|
default: false,
|
|
@@ -86,13 +86,13 @@ _TeamsTabRemoveCommand_instances = new WeakSet(), _TeamsTabRemoveCommand_initTel
|
|
|
86
86
|
});
|
|
87
87
|
}, _TeamsTabRemoveCommand_initValidators = function _TeamsTabRemoveCommand_initValidators() {
|
|
88
88
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
if (!
|
|
89
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
90
90
|
return `${args.options.teamId} is not a valid GUID`;
|
|
91
91
|
}
|
|
92
|
-
if (!
|
|
92
|
+
if (!validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
93
93
|
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
94
94
|
}
|
|
95
|
-
if (!
|
|
95
|
+
if (!validation_1.validation.isValidGuid(args.options.tabId)) {
|
|
96
96
|
return `${args.options.tabId} is not a valid GUID`;
|
|
97
97
|
}
|
|
98
98
|
return true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTeamArchiveCommand_instances, _TeamsTeamArchiveCommand_initTelemetry, _TeamsTeamArchiveCommand_initOptions, _TeamsTeamArchiveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
@@ -102,10 +102,10 @@ _TeamsTeamArchiveCommand_instances = new WeakSet(), _TeamsTeamArchiveCommand_ini
|
|
|
102
102
|
if (args.options.name && (args.options.id || args.options.teamId)) {
|
|
103
103
|
return 'Specify either id or name but not both';
|
|
104
104
|
}
|
|
105
|
-
if (args.options.teamId && !
|
|
105
|
+
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
106
106
|
return `${args.options.teamId} is not a valid GUID`;
|
|
107
107
|
}
|
|
108
|
-
if (args.options.id && !
|
|
108
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
109
109
|
return `${args.options.id} is not a valid GUID`;
|
|
110
110
|
}
|
|
111
111
|
return true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTeamCloneCommand_instances, _TeamsTeamCloneCommand_initTelemetry, _TeamsTeamCloneCommand_initOptions, _TeamsTeamCloneCommand_initValidators, _TeamsTeamCloneCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class TeamsTeamCloneCommand extends GraphCommand_1.default {
|
|
@@ -124,10 +124,10 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
|
|
|
124
124
|
});
|
|
125
125
|
}, _TeamsTeamCloneCommand_initValidators = function _TeamsTeamCloneCommand_initValidators() {
|
|
126
126
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
if (args.options.teamId && !
|
|
127
|
+
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
128
128
|
return `${args.options.teamId} is not a valid GUID`;
|
|
129
129
|
}
|
|
130
|
-
if (args.options.id && !
|
|
130
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
131
131
|
return `${args.options.id} is not a valid GUID`;
|
|
132
132
|
}
|
|
133
133
|
const partsToClone = args.options.partsToClone.replace(/\s/g, '').split(',');
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTeamGetCommand_instances, _TeamsTeamGetCommand_initTelemetry, _TeamsTeamGetCommand_initOptions, _TeamsTeamGetCommand_initValidators, _TeamsTeamGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
@@ -83,7 +83,7 @@ _TeamsTeamGetCommand_instances = new WeakSet(), _TeamsTeamGetCommand_initTelemet
|
|
|
83
83
|
});
|
|
84
84
|
}, _TeamsTeamGetCommand_initValidators = function _TeamsTeamGetCommand_initValidators() {
|
|
85
85
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
if (args.options.id && !
|
|
86
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
87
87
|
return `${args.options.id} is not a valid GUID`;
|
|
88
88
|
}
|
|
89
89
|
return true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTeamListCommand_instances, _TeamsTeamListCommand_initTelemetry, _TeamsTeamListCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const odata_1 = require("../../../../utils/odata");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class TeamsTeamListCommand extends GraphCommand_1.default {
|
|
@@ -39,7 +39,7 @@ class TeamsTeamListCommand extends GraphCommand_1.default {
|
|
|
39
39
|
endpoint = `${this.resource}/v1.0/me/joinedTeams`;
|
|
40
40
|
}
|
|
41
41
|
try {
|
|
42
|
-
const items = yield
|
|
42
|
+
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
43
43
|
if (args.options.joined) {
|
|
44
44
|
logger.log(items);
|
|
45
45
|
}
|
|
@@ -15,9 +15,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsTeamRemoveCommand_instances, _TeamsTeamRemoveCommand_initTelemetry, _TeamsTeamRemoveCommand_initOptions, _TeamsTeamRemoveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
-
const
|
|
20
|
+
const validation_1 = require("../../../../utils/validation");
|
|
21
21
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
22
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
@@ -74,7 +74,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
74
74
|
yield removeTeam();
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
77
|
-
const result = yield
|
|
77
|
+
const result = yield Cli_1.Cli.prompt({
|
|
78
78
|
type: 'confirm',
|
|
79
79
|
name: 'continue',
|
|
80
80
|
default: false,
|
|
@@ -111,10 +111,10 @@ _TeamsTeamRemoveCommand_instances = new WeakSet(), _TeamsTeamRemoveCommand_initT
|
|
|
111
111
|
if (args.options.name && (args.options.id || args.options.teamId)) {
|
|
112
112
|
return 'Specify either id or name but not both';
|
|
113
113
|
}
|
|
114
|
-
if (args.options.teamId && !
|
|
114
|
+
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
115
115
|
return `${args.options.teamId} is not a valid GUID`;
|
|
116
116
|
}
|
|
117
|
-
if (args.options.id && !
|
|
117
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
118
118
|
return `${args.options.id} is not a valid GUID`;
|
|
119
119
|
}
|
|
120
120
|
return true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_initValidators, _TeamsTeamSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
@@ -108,10 +108,10 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
108
108
|
});
|
|
109
109
|
}, _TeamsTeamSetCommand_initValidators = function _TeamsTeamSetCommand_initValidators() {
|
|
110
110
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
111
|
-
if (args.options.teamId && !
|
|
111
|
+
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
112
112
|
return `${args.options.teamId} is not a valid GUID`;
|
|
113
113
|
}
|
|
114
|
-
if (args.options.id && !
|
|
114
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
115
115
|
return `${args.options.id} is not a valid GUID`;
|
|
116
116
|
}
|
|
117
117
|
if (args.options.visibility) {
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTeamUnarchiveCommand_instances, _TeamsTeamUnarchiveCommand_initOptions, _TeamsTeamUnarchiveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
@@ -87,10 +87,10 @@ _TeamsTeamUnarchiveCommand_instances = new WeakSet(), _TeamsTeamUnarchiveCommand
|
|
|
87
87
|
if (args.options.name && (args.options.id || args.options.teamId)) {
|
|
88
88
|
return 'Specify either id or name but not both';
|
|
89
89
|
}
|
|
90
|
-
if (args.options.teamId && !
|
|
90
|
+
if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
91
91
|
return `${args.options.teamId} is not a valid GUID`;
|
|
92
92
|
}
|
|
93
|
-
if (args.options.id && !
|
|
93
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
94
94
|
return `${args.options.id} is not a valid GUID`;
|
|
95
95
|
}
|
|
96
96
|
return true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsUserAppAddCommand_instances, _TeamsUserAppAddCommand_initOptions, _TeamsUserAppAddCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
21
|
const commands_1 = require("../../commands");
|
|
22
22
|
class TeamsUserAppAddCommand extends GraphCommand_1.default {
|
|
@@ -63,10 +63,10 @@ _TeamsUserAppAddCommand_instances = new WeakSet(), _TeamsUserAppAddCommand_initO
|
|
|
63
63
|
});
|
|
64
64
|
}, _TeamsUserAppAddCommand_initValidators = function _TeamsUserAppAddCommand_initValidators() {
|
|
65
65
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
if (!
|
|
66
|
+
if (!validation_1.validation.isValidGuid(args.options.appId)) {
|
|
67
67
|
return `${args.options.appId} is not a valid GUID`;
|
|
68
68
|
}
|
|
69
|
-
if (!
|
|
69
|
+
if (!validation_1.validation.isValidGuid(args.options.userId)) {
|
|
70
70
|
return `${args.options.userId} is not a valid GUID`;
|
|
71
71
|
}
|
|
72
72
|
return true;
|
|
@@ -16,7 +16,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsUserAppListCommand_instances, _TeamsUserAppListCommand_initTelemetry, _TeamsUserAppListCommand_initOptions, _TeamsUserAppListCommand_initValidators, _TeamsUserAppListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
-
const
|
|
19
|
+
const odata_1 = require("../../../../utils/odata");
|
|
20
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
22
23
|
class TeamsUserAppListCommand extends GraphCommand_1.default {
|
|
@@ -39,7 +40,7 @@ class TeamsUserAppListCommand extends GraphCommand_1.default {
|
|
|
39
40
|
try {
|
|
40
41
|
const userId = (yield this.getUserId(args)).value;
|
|
41
42
|
const endpoint = `${this.resource}/v1.0/users/${encodeURIComponent(userId)}/teamwork/installedApps?$expand=teamsAppDefinition`;
|
|
42
|
-
const items = yield
|
|
43
|
+
const items = yield odata_1.odata.getAllItems(endpoint);
|
|
43
44
|
items.forEach(i => {
|
|
44
45
|
const userAppId = Buffer.from(i.id, 'base64').toString('ascii');
|
|
45
46
|
const appId = userAppId.substr(userAppId.indexOf("##") + 2, userAppId.length - userId.length - 2);
|
|
@@ -93,10 +94,10 @@ _TeamsUserAppListCommand_instances = new WeakSet(), _TeamsUserAppListCommand_ini
|
|
|
93
94
|
});
|
|
94
95
|
}, _TeamsUserAppListCommand_initValidators = function _TeamsUserAppListCommand_initValidators() {
|
|
95
96
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
if (args.options.userId && !
|
|
97
|
+
if (args.options.userId && !validation_1.validation.isValidGuid(args.options.userId)) {
|
|
97
98
|
return `${args.options.userId} is not a valid GUID`;
|
|
98
99
|
}
|
|
99
|
-
if (args.options.userName && !
|
|
100
|
+
if (args.options.userName && !validation_1.validation.isValidUserPrincipalName(args.options.userName)) {
|
|
100
101
|
return `${args.options.userName} is not a valid userName`;
|
|
101
102
|
}
|
|
102
103
|
return true;
|
|
@@ -15,9 +15,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsUserAppRemoveCommand_instances, _TeamsUserAppRemoveCommand_initTelemetry, _TeamsUserAppRemoveCommand_initOptions, _TeamsUserAppRemoveCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
-
const
|
|
20
|
+
const validation_1 = require("../../../../utils/validation");
|
|
21
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
23
|
class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
|
|
@@ -56,7 +56,7 @@ class TeamsUserAppRemoveCommand extends GraphCommand_1.default {
|
|
|
56
56
|
yield removeApp();
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
const result = yield
|
|
59
|
+
const result = yield Cli_1.Cli.prompt({
|
|
60
60
|
type: 'confirm',
|
|
61
61
|
name: 'continue',
|
|
62
62
|
default: false,
|
|
@@ -85,7 +85,7 @@ _TeamsUserAppRemoveCommand_instances = new WeakSet(), _TeamsUserAppRemoveCommand
|
|
|
85
85
|
});
|
|
86
86
|
}, _TeamsUserAppRemoveCommand_initValidators = function _TeamsUserAppRemoveCommand_initValidators() {
|
|
87
87
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
if (!
|
|
88
|
+
if (!validation_1.validation.isValidGuid(args.options.userId)) {
|
|
89
89
|
return `${args.options.userId} is not a valid GUID`;
|
|
90
90
|
}
|
|
91
91
|
return true;
|
|
@@ -15,7 +15,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _TeamsUserListCommand_instances, _TeamsUserListCommand_initTelemetry, _TeamsUserListCommand_initOptions, _TeamsUserListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const
|
|
18
|
+
const odata_1 = require("../../../../utils/odata");
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
19
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class TeamsUserListCommand extends GraphCommand_1.default {
|
|
@@ -54,7 +55,7 @@ class TeamsUserListCommand extends GraphCommand_1.default {
|
|
|
54
55
|
}
|
|
55
56
|
getOwners(logger, groupId) {
|
|
56
57
|
const endpoint = `${this.resource}/v1.0/groups/${groupId}/owners?$select=id,displayName,userPrincipalName,userType`;
|
|
57
|
-
return
|
|
58
|
+
return odata_1.odata.getAllItems(endpoint).then((items) => {
|
|
58
59
|
this.items = this.items.concat(items);
|
|
59
60
|
// Currently there is a bug in the Microsoft Graph that returns Owners as
|
|
60
61
|
// userType 'member'. We therefore update all returned user as owner
|
|
@@ -65,7 +66,7 @@ class TeamsUserListCommand extends GraphCommand_1.default {
|
|
|
65
66
|
}
|
|
66
67
|
getMembersAndGuests(logger, groupId) {
|
|
67
68
|
const endpoint = `${this.resource}/v1.0/groups/${groupId}/members?$select=id,displayName,userPrincipalName,userType`;
|
|
68
|
-
return
|
|
69
|
+
return odata_1.odata.getAllItems(endpoint);
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
_TeamsUserListCommand_instances = new WeakSet(), _TeamsUserListCommand_initTelemetry = function _TeamsUserListCommand_initTelemetry() {
|
|
@@ -83,7 +84,7 @@ _TeamsUserListCommand_instances = new WeakSet(), _TeamsUserListCommand_initTelem
|
|
|
83
84
|
});
|
|
84
85
|
}, _TeamsUserListCommand_initValidators = function _TeamsUserListCommand_initValidators() {
|
|
85
86
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
if (!
|
|
87
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
87
88
|
return `${args.options.teamId} is not a valid GUID`;
|
|
88
89
|
}
|
|
89
90
|
if (args.options.role) {
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const Auth_1 = require("../../../../Auth");
|
|
19
19
|
const Command_1 = require("../../../../Command");
|
|
20
20
|
const request_1 = require("../../../../request");
|
|
21
|
-
const
|
|
21
|
+
const accessToken_1 = require("../../../../utils/accessToken");
|
|
22
22
|
const commands_1 = require("../../commands");
|
|
23
23
|
class TenantIdGetCommand extends Command_1.default {
|
|
24
24
|
constructor() {
|
|
@@ -37,7 +37,7 @@ class TenantIdGetCommand extends Command_1.default {
|
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
let domainName = args.options.domainName;
|
|
39
39
|
if (!domainName) {
|
|
40
|
-
const userName =
|
|
40
|
+
const userName = accessToken_1.accessToken.getUserNameFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
|
|
41
41
|
domainName = userName.split('@')[1];
|
|
42
42
|
}
|
|
43
43
|
const requestOptions = {
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const request_1 = require("../../../../request");
|
|
13
|
-
const
|
|
13
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
14
14
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
15
15
|
const commands_1 = require("../../commands");
|
|
16
16
|
class TenantReportOffice365ActivationCountsCommand extends GraphCommand_1.default {
|
|
@@ -40,7 +40,7 @@ class TenantReportOffice365ActivationCountsCommand extends GraphCommand_1.defaul
|
|
|
40
40
|
let content = '';
|
|
41
41
|
const cleanResponse = this.removeEmptyLines(res);
|
|
42
42
|
if (output && output.toLowerCase() === 'json') {
|
|
43
|
-
content =
|
|
43
|
+
content = formatting_1.formatting.parseCsvToJson(cleanResponse);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
content = cleanResponse;
|