@pnp/cli-microsoft365 6.0.0-beta.566a6b8 → 6.0.0-beta.62647c9
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/.eslintrc.js +17 -2
- package/README.md +5 -0
- package/dist/Auth.js +3 -3
- package/dist/Command.js +24 -10
- package/dist/api.js +3 -3
- package/dist/appInsights.js +2 -0
- package/dist/cli/Cli.js +6 -4
- package/dist/index.js +2 -2
- package/dist/m365/aad/commands/app/app-add.js +40 -16
- 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 +8 -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/mail/mail-send.js +55 -31
- 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 +5 -4
- 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 +9 -23
- 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/Environment.js +3 -0
- package/dist/m365/pp/commands/card/card-get.js +110 -0
- package/dist/m365/pp/commands/card/card-list.js +68 -0
- package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +69 -0
- package/dist/m365/pp/commands/environment/environment-get.js +75 -0
- package/dist/m365/pp/commands/gateway/gateway-get.js +70 -0
- 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/pp/commands/solution/Solution.js +3 -0
- package/dist/m365/pp/commands/solution/solution-get.js +117 -0
- package/dist/m365/pp/commands/solution/solution-list.js +87 -0
- package/dist/m365/pp/commands/tenant/tenant-settings-list.js +45 -0
- package/dist/m365/pp/commands.js +9 -1
- 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 +11 -8
- package/dist/m365/spfx/commands/project/project-externalize.js +4 -1
- 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/FN010001_YORC_version.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010004_YORC_componentType.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +3 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010009_YORC_sdkVersions_microsoft_graph_client.js +56 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010010_YORC_sdkVersions_teams_js.js +56 -0
- 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/upgrade-1.14.0.js +0 -2
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.16.0-beta.1.js → upgrade-1.16.0-beta.2.js} +44 -28
- package/dist/m365/spfx/commands/project/project-upgrade.js +25 -24
- package/dist/m365/spfx/commands/spfx-doctor.js +54 -9
- 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 +91 -50
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +63 -29
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +8 -6
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +38 -16
- 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.js +3 -0
- 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/eventreceiver/eventreceiver-remove.js +182 -0
- 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 +34 -46
- 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 +33 -44
- package/dist/m365/spo/commands/file/file-remove.js +5 -5
- package/dist/m365/spo/commands/file/file-rename.js +24 -20
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +231 -0
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +180 -0
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +129 -0
- 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-roleassignment-remove.js +168 -0
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +94 -0
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +89 -0
- package/dist/m365/spo/commands/group/AssociatedGroupPropertiesCollection.js +3 -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 +51 -12
- 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-data-get.js +2 -2
- 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 +24 -20
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +63 -50
- package/dist/m365/spo/commands/list/list-contenttype-list.js +20 -11
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +22 -13
- 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 +23 -21
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +21 -19
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +20 -11
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +20 -11
- 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 +23 -14
- package/dist/m365/spo/commands/list/list-webhook-get.js +22 -14
- package/dist/m365/spo/commands/list/list-webhook-list.js +21 -45
- package/dist/m365/spo/commands/list/list-webhook-remove.js +26 -17
- package/dist/m365/spo/commands/list/list-webhook-set.js +23 -14
- 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 +8 -6
- 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-add.js +239 -0
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +21 -19
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +8 -7
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +8 -7
- 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 +22 -27
- 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-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/{hubsite/hubsite-connect.js → site/site-hubsite-connect.js} +15 -14
- package/dist/m365/spo/commands/{hubsite/hubsite-disconnect.js → site/site-hubsite-disconnect.js} +19 -18
- 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 +16 -16
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +14 -14
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +100 -0
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +4 -4
- package/dist/m365/spo/commands/web/web-set.js +2 -2
- package/dist/m365/spo/commands.js +12 -2
- 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 +11 -11
- 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 +2 -2
- package/dist/m365/teams/commands/team/team-clone.js +2 -2
- 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 +4 -4
- package/dist/m365/teams/commands/team/team-set.js +2 -9
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -2
- 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-get.js +89 -0
- 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-add.js +55 -3
- 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/todo/commands/task/task-set.js +53 -1
- package/dist/m365/todo/commands.js +1 -0
- 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/cache.js +81 -0
- package/dist/utils/pid.js +57 -0
- package/dist/utils/powerPlatform.js +42 -0
- package/dist/utils/spo.js +7 -6
- package/docs/docs/_clisettings.md +18 -0
- 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/outlook/mail/mail-send.md +13 -0
- package/docs/docs/cmd/planner/bucket/bucket-add.md +29 -0
- package/docs/docs/cmd/planner/bucket/bucket-get.md +29 -0
- package/docs/docs/cmd/planner/bucket/bucket-list.md +30 -0
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +4 -0
- package/docs/docs/cmd/planner/bucket/bucket-set.md +4 -0
- package/docs/docs/cmd/planner/plan/plan-add.md +123 -0
- package/docs/docs/cmd/planner/plan/plan-get.md +75 -6
- package/docs/docs/cmd/planner/plan/plan-list.md +45 -0
- package/docs/docs/cmd/planner/plan/plan-remove.md +4 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-list.md +1 -1
- package/docs/docs/cmd/planner/task/task-get.md +0 -3
- package/docs/docs/cmd/planner/task/task-reference-add.md +1 -1
- package/docs/docs/cmd/pp/card/card-get.md +51 -0
- package/docs/docs/cmd/pp/card/card-list.md +33 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.md +33 -0
- package/docs/docs/cmd/pp/environment/environment-get.md +38 -0
- package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
- package/docs/docs/cmd/pp/gateway/gateway-get.md +24 -0
- package/docs/docs/cmd/pp/solution/solution-get.md +51 -0
- package/docs/docs/cmd/pp/solution/solution-list.md +33 -0
- package/docs/docs/cmd/pp/tenant/tenant-settings-list.md +26 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +1 -1
- package/docs/docs/cmd/spfx/project/project-rename.md +1 -14
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spfx/spfx-doctor.md +10 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-add.md +20 -2
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.md +22 -4
- package/docs/docs/cmd/spo/contenttype/contenttype-get.md +21 -3
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +2 -2
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +69 -0
- package/docs/docs/cmd/spo/file/file-roleassignment-add.md +57 -0
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.md +54 -0
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.md +54 -0
- 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-roleassignment-remove.md +57 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.md +39 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +36 -0
- package/docs/docs/cmd/spo/group/group-list.md +10 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +3 -3
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +15 -6
- package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +16 -7
- package/docs/docs/cmd/spo/list/list-contenttype-list.md +15 -6
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +16 -7
- 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/list/list-roleinheritance-break.md +11 -8
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +16 -7
- package/docs/docs/cmd/spo/list/list-webhook-add.md +15 -16
- package/docs/docs/cmd/spo/list/list-webhook-get.md +16 -7
- package/docs/docs/cmd/spo/list/list-webhook-list.md +13 -10
- package/docs/docs/cmd/spo/list/list-webhook-remove.md +12 -10
- package/docs/docs/cmd/spo/list/list-webhook-set.md +14 -12
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.md +81 -0
- 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/site/site-add.md +0 -3
- package/docs/docs/cmd/spo/{hubsite/hubsite-connect.md → site/site-hubsite-connect.md} +4 -4
- package/docs/docs/cmd/spo/site/site-hubsite-disconnect.md +42 -0
- 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-break.md +44 -0
- 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 +5 -5
- 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/teams/team/team-clone.md +0 -3
- package/docs/docs/cmd/teams/team/team-set.md +0 -3
- package/docs/docs/cmd/tenant/id/id-get.md +20 -0
- package/docs/docs/cmd/tenant/report/report-activeusercounts.md +35 -0
- package/docs/docs/cmd/tenant/report/report-activeuserdetail.md +49 -0
- package/docs/docs/cmd/tenant/report/report-office365activationcounts.md +32 -0
- package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.md +30 -0
- package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.md +36 -0
- package/docs/docs/cmd/tenant/report/report-servicesusercounts.md +41 -0
- package/docs/docs/cmd/tenant/security/security-alerts-list.md +106 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +88 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +92 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.md +62 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +51 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.md +64 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +52 -0
- package/docs/docs/cmd/todo/list/list-get.md +61 -0
- package/docs/docs/cmd/todo/task/task-add.md +32 -5
- package/docs/docs/cmd/todo/task/task-set.md +29 -2
- package/npm-shrinkwrap.json +342 -357
- package/package.json +32 -20
- package/dist/cli/index.js +0 -21
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +0 -60
- package/dist/utils/index.js +0 -31
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +0 -42
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMemberSettingsListCommand_instances, _TeamsMemberSettingsListCommand_initOptions, _TeamsMemberSettingsListCommand_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 TeamsMemberSettingsListCommand extends GraphCommand_1.default {
|
|
@@ -57,7 +57,7 @@ _TeamsMemberSettingsListCommand_instances = new WeakSet(), _TeamsMemberSettingsL
|
|
|
57
57
|
});
|
|
58
58
|
}, _TeamsMemberSettingsListCommand_initValidators = function _TeamsMemberSettingsListCommand_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 _TeamsMemberSettingsSetCommand_instances, _TeamsMemberSettingsSetCommand_initTelemetry, _TeamsMemberSettingsSetCommand_initOptions, _TeamsMemberSettingsSetCommand_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 TeamsMemberSettingsSetCommand extends GraphCommand_1.default {
|
|
@@ -82,7 +82,7 @@ _TeamsMemberSettingsSetCommand_instances = new WeakSet(), _TeamsMemberSettingsSe
|
|
|
82
82
|
});
|
|
83
83
|
}, _TeamsMemberSettingsSetCommand_initValidators = function _TeamsMemberSettingsSetCommand_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 isValid = true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsMessageGetCommand_instances, _TeamsMessageGetCommand_initOptions, _TeamsMessageGetCommand_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 TeamsMessageGetCommand extends GraphCommand_1.default {
|
|
@@ -61,10 +61,10 @@ _TeamsMessageGetCommand_instances = new WeakSet(), _TeamsMessageGetCommand_initO
|
|
|
61
61
|
});
|
|
62
62
|
}, _TeamsMessageGetCommand_initValidators = function _TeamsMessageGetCommand_initValidators() {
|
|
63
63
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
if (!
|
|
64
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
65
65
|
return `${args.options.teamId} is not a valid GUID`;
|
|
66
66
|
}
|
|
67
|
-
if (!
|
|
67
|
+
if (!validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
68
68
|
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
69
69
|
}
|
|
70
70
|
return true;
|
|
@@ -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 channel id`;
|
|
150
150
|
}
|
|
151
|
-
if (args.options.id && !
|
|
151
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
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.id)) {
|
|
96
96
|
return `${args.options.id} 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");
|
|
@@ -95,7 +95,7 @@ _TeamsTeamArchiveCommand_instances = new WeakSet(), _TeamsTeamArchiveCommand_ini
|
|
|
95
95
|
if (args.options.name && args.options.id) {
|
|
96
96
|
return 'Specify either id or name but not both';
|
|
97
97
|
}
|
|
98
|
-
if (args.options.id && !
|
|
98
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
99
99
|
return `${args.options.id} is not a valid GUID`;
|
|
100
100
|
}
|
|
101
101
|
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 {
|
|
@@ -110,7 +110,7 @@ _TeamsTeamCloneCommand_instances = new WeakSet(), _TeamsTeamCloneCommand_initTel
|
|
|
110
110
|
});
|
|
111
111
|
}, _TeamsTeamCloneCommand_initValidators = function _TeamsTeamCloneCommand_initValidators() {
|
|
112
112
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
113
|
-
if (args.options.id && !
|
|
113
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
114
114
|
return `${args.options.id} is not a valid GUID`;
|
|
115
115
|
}
|
|
116
116
|
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_initOptionSets, _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");
|
|
@@ -71,7 +71,7 @@ class TeamsTeamRemoveCommand extends GraphCommand_1.default {
|
|
|
71
71
|
yield removeTeam();
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
|
-
const result = yield
|
|
74
|
+
const result = yield Cli_1.Cli.prompt({
|
|
75
75
|
type: 'confirm',
|
|
76
76
|
name: 'continue',
|
|
77
77
|
default: false,
|
|
@@ -102,7 +102,7 @@ _TeamsTeamRemoveCommand_instances = new WeakSet(), _TeamsTeamRemoveCommand_initT
|
|
|
102
102
|
this.optionSets.push(['id', 'name']);
|
|
103
103
|
}, _TeamsTeamRemoveCommand_initValidators = function _TeamsTeamRemoveCommand_initValidators() {
|
|
104
104
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
if (args.options.id && !
|
|
105
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
106
106
|
return `${args.options.id} is not a valid GUID`;
|
|
107
107
|
}
|
|
108
108
|
return true;
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTeamSetCommand_instances, _TeamsTeamSetCommand_initTelemetry, _TeamsTeamSetCommand_initOptions, _TeamsTeamSetCommand_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 TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
@@ -54,10 +54,6 @@ class TeamsTeamSetCommand extends GraphCommand_1.default {
|
|
|
54
54
|
}
|
|
55
55
|
commandAction(logger, args) {
|
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
if (args.options.displayName) {
|
|
58
|
-
args.options.name = args.options.displayName;
|
|
59
|
-
this.warn(logger, `Option 'displayName' is deprecated. Please use 'name' instead.`);
|
|
60
|
-
}
|
|
61
57
|
const data = this.mapRequestBody(args.options);
|
|
62
58
|
const requestOptions = {
|
|
63
59
|
url: `${this.resource}/v1.0/groups/${encodeURIComponent(args.options.id)}`,
|
|
@@ -87,8 +83,6 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
87
83
|
option: '-i, --id [id]'
|
|
88
84
|
}, {
|
|
89
85
|
option: '-n, --name [name]'
|
|
90
|
-
}, {
|
|
91
|
-
option: '--displayName [displayName]'
|
|
92
86
|
}, {
|
|
93
87
|
option: '--description [description]'
|
|
94
88
|
}, {
|
|
@@ -101,7 +95,7 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
101
95
|
});
|
|
102
96
|
}, _TeamsTeamSetCommand_initValidators = function _TeamsTeamSetCommand_initValidators() {
|
|
103
97
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
if (args.options.id && !
|
|
98
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
105
99
|
return `${args.options.id} is not a valid GUID`;
|
|
106
100
|
}
|
|
107
101
|
if (args.options.visibility) {
|
|
@@ -113,7 +107,6 @@ _TeamsTeamSetCommand_instances = new WeakSet(), _TeamsTeamSetCommand_initTelemet
|
|
|
113
107
|
}));
|
|
114
108
|
};
|
|
115
109
|
TeamsTeamSetCommand.props = [
|
|
116
|
-
'displayName',
|
|
117
110
|
'description',
|
|
118
111
|
'mailNickName',
|
|
119
112
|
'classification',
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _TeamsTeamUnarchiveCommand_instances, _TeamsTeamUnarchiveCommand_initOptions, _TeamsTeamUnarchiveCommand_initOptionSets, _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");
|
|
@@ -78,7 +78,7 @@ _TeamsTeamUnarchiveCommand_instances = new WeakSet(), _TeamsTeamUnarchiveCommand
|
|
|
78
78
|
this.optionSets.push(['id', 'name']);
|
|
79
79
|
}, _TeamsTeamUnarchiveCommand_initValidators = function _TeamsTeamUnarchiveCommand_initValidators() {
|
|
80
80
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
if (args.options.id && !
|
|
81
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
82
82
|
return `${args.options.id} is not a valid GUID`;
|
|
83
83
|
}
|
|
84
84
|
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.id)) {
|
|
67
67
|
return `${args.options.id} 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;
|