@pnp/cli-microsoft365 11.9.0-beta.606e85e → 11.9.0-beta.69c1186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/cli/cli.js +49 -13
- package/dist/index.js +9 -1
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +4 -1
- package/dist/m365/app/commands/permission/permission-add.js +4 -1
- package/dist/m365/booking/commands/business/business-get.js +5 -1
- package/dist/m365/cli/commands/cli-consent.js +8 -31
- package/dist/m365/cli/commands/cli-doctor.js +6 -1
- package/dist/m365/cli/commands/cli-issue.js +8 -36
- package/dist/m365/commands/login.js +26 -6
- package/dist/m365/connection/commands/connection-remove.js +9 -29
- package/dist/m365/connection/commands/connection-use.js +8 -26
- package/dist/m365/context/commands/context-init.js +6 -0
- package/dist/m365/context/commands/option/option-set.js +9 -18
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +5 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +10 -2
- package/dist/m365/entra/commands/multitenant/multitenant-get.js +8 -1
- package/dist/m365/entra/commands/multitenant/multitenant-remove.js +8 -22
- package/dist/m365/entra/commands/multitenant/multitenant-set.js +15 -36
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +10 -31
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +8 -24
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +9 -17
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +9 -17
- package/dist/m365/entra/commands/organization/organization-set.js +14 -3
- package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +10 -2
- package/dist/m365/entra/commands/roledefinition/roledefinition-get.js +10 -2
- package/dist/m365/entra/commands/roledefinition/roledefinition-remove.js +10 -2
- package/dist/m365/entra/commands/roledefinition/roledefinition-set.js +14 -3
- package/dist/m365/entra/commands/user/user-session-revoke.js +5 -1
- package/dist/m365/exo/commands/approleassignment/approleassignment-add.js +60 -12
- package/dist/m365/flow/commands/environment/environment-get.js +5 -1
- package/dist/m365/graph/commands/directoryextension/directoryextension-add.js +5 -1
- package/dist/m365/graph/commands/directoryextension/directoryextension-get.js +15 -3
- package/dist/m365/graph/commands/directoryextension/directoryextension-list.js +5 -1
- package/dist/m365/graph/commands/directoryextension/directoryextension-remove.js +15 -3
- package/dist/m365/outlook/commands/calendar/calendar-get.js +1 -1
- package/dist/m365/outlook/commands/mail/mail-searchfolder-add.js +5 -1
- package/dist/m365/outlook/commands/mailbox/mailbox-settings-get.js +5 -1
- package/dist/m365/outlook/commands/mailbox/mailbox-settings-set.js +9 -2
- package/dist/m365/pa/commands/environment/environment-get.js +5 -1
- package/dist/m365/pp/commands/environment/environment-get.js +5 -1
- package/dist/m365/pp/commands/website/website-get.js +5 -1
- package/dist/m365/spe/commands/container/container-add.js +5 -1
- package/dist/m365/spe/commands/container/container-get.js +54 -26
- package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +5 -1
- package/dist/m365/spe/commands/container/container-recyclebinitem-remove.js +10 -2
- package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +10 -2
- package/dist/m365/spe/commands/container/container-remove.js +10 -2
- package/dist/m365/spe/commands/container/container-set.js +77 -0
- package/dist/m365/spe/commands/containertype/containertype-get.js +5 -1
- package/dist/m365/spe/commands/containertype/containertype-remove.js +5 -1
- package/dist/m365/spe/commands.js +1 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.0.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.1.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.2.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.0.js +6 -6
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.1.js +6 -6
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.3.js +6 -6
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.10.0.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.11.0.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.0.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.1.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.0.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.1.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.14.0.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.0.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.2.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.0.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.1.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.0.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.1.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.2.js +10 -10
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.3.js +10 -10
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.4.js +10 -10
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.0.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.1.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.2.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.19.0.js +11 -11
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.2.0.js +6 -6
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.20.0.js +13 -13
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.0.js +13 -13
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.1.js +13 -13
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.0.js +10 -10
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.1.js +10 -10
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.2.js +10 -10
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.0.js +8 -8
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.0.js +6 -6
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.1.js +6 -6
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.2.js +6 -6
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.4.js +7 -7
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.0.js +7 -7
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.1.js +7 -7
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.0.js +7 -7
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.1.js +7 -7
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.6.0.js +7 -7
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.0.js +7 -7
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.1.js +7 -7
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.0.js +8 -8
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.1.js +8 -8
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.2.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.9.1.js +9 -9
- package/dist/m365/spfx/commands/project/project-doctor/rules/DependencyRule.js +4 -4
- 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/FN001035_DEP_fluentui_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002004_DEVDEP_gulp.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002007_DEVDEP_ajv.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002013_DEVDEP_types_webpack_env.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/rules/FN002019_DEVDEP_microsoft_rush_stack_compiler.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002022_DEVDEP_typescript.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN021001_PKG_spfx_deps_versions_match_project_version.js +2 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN021013_PKG_spfx_devdeps_match_version.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/DependencyRule.js +7 -7
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001001_DEP_microsoft_sp_core_library.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001002_DEP_microsoft_sp_lodash_subset.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001004_DEP_microsoft_sp_webpart_base.js +2 -2
- 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/FN001007_DEP_types_webpack_env.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/FN001010_DEP_types_es6_promise.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001011_DEP_microsoft_sp_dialog.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001012_DEP_microsoft_sp_application_base.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001013_DEP_microsoft_decorators.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001014_DEP_microsoft_sp_listview_extensibility.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/FN001018_DEP_microsoft_sp_client_base.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/FN001021_DEP_microsoft_sp_property_pane.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/FN001023_DEP_microsoft_sp_component_base.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001024_DEP_microsoft_sp_diagnostics.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001025_DEP_microsoft_sp_dynamic_data.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001026_DEP_microsoft_sp_extension_base.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001027_DEP_microsoft_sp_http.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001028_DEP_microsoft_sp_list_subscription.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001029_DEP_microsoft_sp_loader.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001030_DEP_microsoft_sp_module_interfaces.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001031_DEP_microsoft_sp_odata_types.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001032_DEP_microsoft_sp_page_context.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001033_DEP_tslib.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001035_DEP_fluentui_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002001_DEVDEP_microsoft_sp_build_web.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002003_DEVDEP_microsoft_sp_webpart_workbench.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002004_DEVDEP_gulp.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002005_DEVDEP_types_chai.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002006_DEVDEP_types_mocha.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002007_DEVDEP_ajv.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002008_DEVDEP_tslint_microsoft_contrib.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002009_DEVDEP_microsoft_sp_tslint_rules.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002010_DEVDEP_microsoft_rush_stack_compiler_2_7.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002011_DEVDEP_microsoft_rush_stack_compiler_2_9.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002012_DEVDEP_microsoft_rush_stack_compiler_3_3.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002013_DEVDEP_types_webpack_env.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002014_DEVDEP_types_es6_promise.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/FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002024_DEVDEP_eslint.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/FN002026_DEVDEP_typescript.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002027_DEVDEP_fluentui_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002031_DEVDEP_rushstack_heft.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002033_DEVDEP_css_loader.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002035_DEVDEP_types_heft_jest.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002036_DEVDEP_types_jest.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003001_CFG_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003002_CFG_version.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004001_CFG_CA_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004002_CFG_CA_deployCdnPath.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005001_CFG_DAS_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005002_CFG_DAS_workingDir.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006001_CFG_PS_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006002_CFG_PS_includeClientSideAssets.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006003_CFG_PS_isDomainIsolated.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006004_CFG_PS_developer.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007001_CFG_S_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007002_CFG_S_initialPage.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008001_CFG_TSL_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008002_CFG_TSL_removeRule.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN009001_CFG_WM_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010009_YORC_sdkVersions_microsoft_graph_client.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010010_YORC_sdkVersions_teams_js.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010011_YORC_useGulp.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011001_MAN_webpart_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011002_MAN_applicationCustomizer_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011003_MAN_listViewCommandSet_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011004_MAN_fieldCustomizer_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011005_MAN_webpart_defaultGroup.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011009_MAN_webpart_safeWithCustomScriptDisabled.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011011_MAN_webpart_supportedHosts.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012001_TSC_module.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012002_TSC_moduleResolution.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012003_TSC_skipLibCheck.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012006_TSC_types_es6_collections.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012011_TSC_outDir.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012012_TSC_include.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012013_TSC_exclude.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012014_TSC_inlineSources.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012015_TSC_strictNullChecks.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012016_TSC_noUnusedLocals.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012017_TSC_extends.js +2 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012019_TSC_types_es6_promise.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012020_TSC_noImplicitAny.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014001_CODE_settings_jsonSchemas.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014003_CODE_launch.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014004_CODE_settings_jsonSchemas_configJson_url.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014006_CODE_launch_sourceMapPathOverrides.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014008_CODE_launch_hostedWorkbench_type.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014009_CODE_launch_hostedWorkbench_url.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015001_FILE_typings_tsd_d_ts.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015002_FILE_typings__ms_odsp_d_ts.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015003_FILE_tslint_json.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015004_FILE_config_tslint_json.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015005_FILE_src_index_ts.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015007_FILE_config_copy_assets_json.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/FN015009_FILE_config_sass_json.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015010_FILE_gulpfile_js.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015011_FILE_tsconfig_json.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015014_FILE_config_rig_json.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015015_FILE_config_typescript_json.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015016_FILE_eslint_config_js.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN016001_TS_msgraphclient_packageName.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018003_TEAMS_tab20x20_png.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018004_TEAMS_tab96x96_png.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN019002_TSL_extends.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/FN021001_PKG_main.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021002_PKG_engines.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021004_PKG_scripts_build.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021005_PKG_scripts_test.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021006_PKG_scripts_clean.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021007_PKG_scripts_start.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021008_PKG_scripts_eject_webpack.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 +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025001_ESLINTRCJS_overrides.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026001_CFG_SASS_schema.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026002_CFG_SASS_extends.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027001_OVERRIDES_rushstack_heft.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FileAddRemoveRule.js +4 -5
- package/dist/m365/spfx/commands/project/project-upgrade/rules/PackageRule.js +4 -4
- package/dist/m365/spfx/commands/project/project-upgrade/rules/ResolutionRule.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.0.1.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.0.2.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.1.0.js +25 -25
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.1.1.js +7 -7
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.1.3.js +3 -3
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.10.0.js +27 -27
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.11.0.js +36 -36
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.0.js +41 -41
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.1.js +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.0.js +36 -36
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.1.js +24 -24
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.0.js +42 -40
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +31 -31
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0.js +36 -36
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.1.js +29 -27
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.0.js +32 -32
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.1.js +25 -25
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.2.js +28 -28
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.3.js +27 -27
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.4.js +25 -25
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.0.js +33 -33
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.1.js +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.2.js +25 -25
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.19.0.js +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.2.0.js +29 -29
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.20.0.js +29 -29
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.0.js +31 -31
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.1.js +25 -25
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.0.js +65 -57
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.1.js +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.2.js +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.0.js +39 -39
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.0.js +19 -19
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.1.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.2.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.4.js +22 -22
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.4.0.js +30 -30
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.4.1.js +20 -20
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.5.0.js +40 -40
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.5.1.js +21 -21
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.6.0.js +44 -36
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.7.0.js +32 -32
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.7.1.js +25 -25
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.8.0.js +32 -32
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.8.1.js +24 -24
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.8.2.js +31 -31
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.9.1.js +35 -35
- package/dist/m365/spo/commands/file/file-version-keep.js +5 -1
- package/dist/m365/spo/commands/homesite/homesite-add.js +5 -1
- package/dist/m365/spo/commands/homesite/homesite-set.js +9 -2
- package/dist/m365/spo/commands/list/list-defaultvalue-clear.js +10 -2
- package/dist/m365/spo/commands/list/list-defaultvalue-get.js +5 -1
- package/dist/m365/spo/commands/list/list-defaultvalue-list.js +5 -1
- package/dist/m365/spo/commands/list/list-defaultvalue-remove.js +5 -1
- package/dist/m365/spo/commands/list/list-defaultvalue-set.js +5 -1
- package/dist/m365/spo/commands/list/list-view-add.js +17 -4
- package/dist/m365/spo/commands/page/page-control-set.js +14 -5
- package/dist/m365/spo/commands/page/page-get.js +5 -1
- package/dist/m365/spo/commands/web/web-alert-list.js +10 -2
- package/dist/m365/spp/commands/autofillcolumn/autofillcolumn-set.js +10 -2
- package/dist/m365/spp/commands/model/model-apply.js +10 -2
- package/dist/m365/teams/commands/callrecord/callrecord-list.js +5 -1
- package/dist/m365/viva/commands/engage/engage-community-user-add.js +20 -4
- package/dist/m365/viva/commands/engage/engage-community-user-list.js +10 -2
- package/dist/m365/viva/commands/engage/engage-community-user-remove.js +16 -7
- package/dist/m365/viva/commands/engage/engage-role-member-list.js +5 -1
- package/dist/utils/prompt.js +1 -7
- package/docs/docs/cmd/outlook/calendar/calendar-get.mdx +7 -7
- package/docs/docs/cmd/spe/container/container-get.mdx +12 -3
- package/docs/docs/cmd/spe/container/container-set.mdx +160 -0
- package/docs/docs/cmd/spo/app/app-instance-list.mdx +19 -0
- package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +21 -0
- package/docs/docs/cmd/spo/apppage/apppage-add.mdx +19 -1
- package/docs/docs/cmd/spo/apppage/apppage-set.mdx +21 -0
- package/docs/docs/cmd/spo/page/page-control-set.mdx +18 -3
- package/npm-shrinkwrap.json +289 -3049
- package/package.json +9 -4
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _EntraMultitenantSetCommand_instances, _EntraMultitenantSetCommand_initTelemetry, _EntraMultitenantSetCommand_initOptions, _EntraMultitenantSetCommand_initValidators, _EntraMultitenantSetCommand_initTypes;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import request from '../../../../request.js';
|
|
8
4
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
5
|
import commands from '../../commands.js';
|
|
6
|
+
export const options = globalOptionsZod
|
|
7
|
+
.extend({
|
|
8
|
+
displayName: z.string().optional().alias('n'),
|
|
9
|
+
description: z.string().optional().alias('d')
|
|
10
|
+
}).strict();
|
|
10
11
|
class EntraMultitenantSetCommand extends GraphCommand {
|
|
11
12
|
get name() {
|
|
12
13
|
return commands.MULTITENANT_SET;
|
|
@@ -14,13 +15,14 @@ class EntraMultitenantSetCommand extends GraphCommand {
|
|
|
14
15
|
get description() {
|
|
15
16
|
return 'Updates the properties of a multitenant organization';
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
get schema() {
|
|
19
|
+
return options;
|
|
20
|
+
}
|
|
21
|
+
getRefinedSchema(schema) {
|
|
22
|
+
return schema
|
|
23
|
+
.refine(options => options.displayName || options.description, {
|
|
24
|
+
error: 'Specify either displayName or description or both'
|
|
25
|
+
});
|
|
24
26
|
}
|
|
25
27
|
async commandAction(logger, args) {
|
|
26
28
|
if (this.verbose) {
|
|
@@ -45,28 +47,5 @@ class EntraMultitenantSetCommand extends GraphCommand {
|
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
_EntraMultitenantSetCommand_instances = new WeakSet(), _EntraMultitenantSetCommand_initTelemetry = function _EntraMultitenantSetCommand_initTelemetry() {
|
|
49
|
-
this.telemetry.push((args) => {
|
|
50
|
-
Object.assign(this.telemetryProperties, {
|
|
51
|
-
displayName: typeof args.options.displayName !== 'undefined',
|
|
52
|
-
description: typeof args.options.description !== 'undefined'
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
}, _EntraMultitenantSetCommand_initOptions = function _EntraMultitenantSetCommand_initOptions() {
|
|
56
|
-
this.options.unshift({
|
|
57
|
-
option: '-n, --displayName [displayName]'
|
|
58
|
-
}, {
|
|
59
|
-
option: '-d, --description [description]'
|
|
60
|
-
});
|
|
61
|
-
}, _EntraMultitenantSetCommand_initValidators = function _EntraMultitenantSetCommand_initValidators() {
|
|
62
|
-
this.validators.push(async (args) => {
|
|
63
|
-
if (!args.options.displayName && !args.options.description) {
|
|
64
|
-
return 'Specify either displayName or description or both.';
|
|
65
|
-
}
|
|
66
|
-
return true;
|
|
67
|
-
});
|
|
68
|
-
}, _EntraMultitenantSetCommand_initTypes = function _EntraMultitenantSetCommand_initTypes() {
|
|
69
|
-
this.types.string.push('displayName', 'description');
|
|
70
|
-
};
|
|
71
50
|
export default new EntraMultitenantSetCommand();
|
|
72
51
|
//# sourceMappingURL=multitenant-set.js.map
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _EntraOAuth2GrantAddCommand_instances, _EntraOAuth2GrantAddCommand_initOptions, _EntraOAuth2GrantAddCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import request from '../../../../request.js';
|
|
8
|
-
import { validation } from '../../../../utils/validation.js';
|
|
9
4
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
5
|
import commands from '../../commands.js';
|
|
6
|
+
export const options = globalOptionsZod
|
|
7
|
+
.extend({
|
|
8
|
+
clientId: z.uuid().alias('i'),
|
|
9
|
+
resourceId: z.uuid().alias('r'),
|
|
10
|
+
scope: z.string().alias('s')
|
|
11
|
+
}).strict();
|
|
11
12
|
class EntraOAuth2GrantAddCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.OAUTH2GRANT_ADD;
|
|
@@ -15,11 +16,8 @@ class EntraOAuth2GrantAddCommand extends GraphCommand {
|
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Grant the specified service principal OAuth2 permissions to the specified resource';
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
_EntraOAuth2GrantAddCommand_instances.add(this);
|
|
21
|
-
__classPrivateFieldGet(this, _EntraOAuth2GrantAddCommand_instances, "m", _EntraOAuth2GrantAddCommand_initOptions).call(this);
|
|
22
|
-
__classPrivateFieldGet(this, _EntraOAuth2GrantAddCommand_instances, "m", _EntraOAuth2GrantAddCommand_initValidators).call(this);
|
|
19
|
+
get schema() {
|
|
20
|
+
return options;
|
|
23
21
|
}
|
|
24
22
|
async commandAction(logger, args) {
|
|
25
23
|
if (this.verbose) {
|
|
@@ -47,24 +45,5 @@ class EntraOAuth2GrantAddCommand extends GraphCommand {
|
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
|
-
_EntraOAuth2GrantAddCommand_instances = new WeakSet(), _EntraOAuth2GrantAddCommand_initOptions = function _EntraOAuth2GrantAddCommand_initOptions() {
|
|
51
|
-
this.options.unshift({
|
|
52
|
-
option: '-i, --clientId <clientId>'
|
|
53
|
-
}, {
|
|
54
|
-
option: '-r, --resourceId <resourceId>'
|
|
55
|
-
}, {
|
|
56
|
-
option: '-s, --scope <scope>'
|
|
57
|
-
});
|
|
58
|
-
}, _EntraOAuth2GrantAddCommand_initValidators = function _EntraOAuth2GrantAddCommand_initValidators() {
|
|
59
|
-
this.validators.push(async (args) => {
|
|
60
|
-
if (!validation.isValidGuid(args.options.clientId)) {
|
|
61
|
-
return `${args.options.clientId} is not a valid GUID`;
|
|
62
|
-
}
|
|
63
|
-
if (!validation.isValidGuid(args.options.resourceId)) {
|
|
64
|
-
return `${args.options.resourceId} is not a valid GUID`;
|
|
65
|
-
}
|
|
66
|
-
return true;
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
48
|
export default new EntraOAuth2GrantAddCommand();
|
|
70
49
|
//# sourceMappingURL=oauth2grant-add.js.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _EntraOAuth2GrantListCommand_instances, _EntraOAuth2GrantListCommand_initOptions, _EntraOAuth2GrantListCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import { formatting } from '../../../../utils/formatting.js';
|
|
8
4
|
import { odata } from '../../../../utils/odata.js';
|
|
9
|
-
import { validation } from '../../../../utils/validation.js';
|
|
10
5
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
6
|
import commands from '../../commands.js';
|
|
7
|
+
export const options = globalOptionsZod
|
|
8
|
+
.extend({
|
|
9
|
+
spObjectId: z.uuid().alias('i')
|
|
10
|
+
}).strict();
|
|
12
11
|
class EntraOAuth2GrantListCommand extends GraphCommand {
|
|
13
12
|
get name() {
|
|
14
13
|
return commands.OAUTH2GRANT_LIST;
|
|
@@ -19,11 +18,8 @@ class EntraOAuth2GrantListCommand extends GraphCommand {
|
|
|
19
18
|
defaultProperties() {
|
|
20
19
|
return ['objectId', 'resourceId', 'scope'];
|
|
21
20
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
_EntraOAuth2GrantListCommand_instances.add(this);
|
|
25
|
-
__classPrivateFieldGet(this, _EntraOAuth2GrantListCommand_instances, "m", _EntraOAuth2GrantListCommand_initOptions).call(this);
|
|
26
|
-
__classPrivateFieldGet(this, _EntraOAuth2GrantListCommand_instances, "m", _EntraOAuth2GrantListCommand_initValidators).call(this);
|
|
21
|
+
get schema() {
|
|
22
|
+
return options;
|
|
27
23
|
}
|
|
28
24
|
async commandAction(logger, args) {
|
|
29
25
|
if (this.verbose) {
|
|
@@ -38,17 +34,5 @@ class EntraOAuth2GrantListCommand extends GraphCommand {
|
|
|
38
34
|
}
|
|
39
35
|
}
|
|
40
36
|
}
|
|
41
|
-
_EntraOAuth2GrantListCommand_instances = new WeakSet(), _EntraOAuth2GrantListCommand_initOptions = function _EntraOAuth2GrantListCommand_initOptions() {
|
|
42
|
-
this.options.unshift({
|
|
43
|
-
option: '-i, --spObjectId <spObjectId>'
|
|
44
|
-
});
|
|
45
|
-
}, _EntraOAuth2GrantListCommand_initValidators = function _EntraOAuth2GrantListCommand_initValidators() {
|
|
46
|
-
this.validators.push(async (args) => {
|
|
47
|
-
if (!validation.isValidGuid(args.options.spObjectId)) {
|
|
48
|
-
return `${args.options.spObjectId} is not a valid GUID`;
|
|
49
|
-
}
|
|
50
|
-
return true;
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
37
|
export default new EntraOAuth2GrantListCommand();
|
|
54
38
|
//# sourceMappingURL=oauth2grant-list.js.map
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _EntraOAuth2GrantRemoveCommand_instances, _EntraOAuth2GrantRemoveCommand_initOptions;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import { cli } from '../../../../cli/cli.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
6
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
7
|
import commands from '../../commands.js';
|
|
8
|
+
export const options = globalOptionsZod
|
|
9
|
+
.extend({
|
|
10
|
+
grantId: z.string().alias('i'),
|
|
11
|
+
force: z.boolean().optional().alias('f')
|
|
12
|
+
}).strict();
|
|
12
13
|
class EntraOAuth2GrantRemoveCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.OAUTH2GRANT_REMOVE;
|
|
@@ -16,10 +17,8 @@ class EntraOAuth2GrantRemoveCommand extends GraphCommand {
|
|
|
16
17
|
get description() {
|
|
17
18
|
return 'Remove specified service principal OAuth2 permissions';
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_EntraOAuth2GrantRemoveCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _EntraOAuth2GrantRemoveCommand_instances, "m", _EntraOAuth2GrantRemoveCommand_initOptions).call(this);
|
|
20
|
+
get schema() {
|
|
21
|
+
return options;
|
|
23
22
|
}
|
|
24
23
|
async commandAction(logger, args) {
|
|
25
24
|
const removeOauth2Grant = async () => {
|
|
@@ -51,12 +50,5 @@ class EntraOAuth2GrantRemoveCommand extends GraphCommand {
|
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
|
-
_EntraOAuth2GrantRemoveCommand_instances = new WeakSet(), _EntraOAuth2GrantRemoveCommand_initOptions = function _EntraOAuth2GrantRemoveCommand_initOptions() {
|
|
55
|
-
this.options.unshift({
|
|
56
|
-
option: '-i, --grantId <grantId>'
|
|
57
|
-
}, {
|
|
58
|
-
option: '-f, --force'
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
53
|
export default new EntraOAuth2GrantRemoveCommand();
|
|
62
54
|
//# sourceMappingURL=oauth2grant-remove.js.map
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _EntraOAuth2GrantSetCommand_instances, _EntraOAuth2GrantSetCommand_initOptions;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import request from '../../../../request.js';
|
|
8
4
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
5
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
6
|
import commands from '../../commands.js';
|
|
7
|
+
export const options = globalOptionsZod
|
|
8
|
+
.extend({
|
|
9
|
+
grantId: z.string().alias('i'),
|
|
10
|
+
scope: z.string().alias('s')
|
|
11
|
+
}).strict();
|
|
11
12
|
class EntraOAuth2GrantSetCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.OAUTH2GRANT_SET;
|
|
@@ -15,10 +16,8 @@ class EntraOAuth2GrantSetCommand extends GraphCommand {
|
|
|
15
16
|
get description() {
|
|
16
17
|
return 'Update OAuth2 permissions for the service principal';
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
_EntraOAuth2GrantSetCommand_instances.add(this);
|
|
21
|
-
__classPrivateFieldGet(this, _EntraOAuth2GrantSetCommand_instances, "m", _EntraOAuth2GrantSetCommand_initOptions).call(this);
|
|
19
|
+
get schema() {
|
|
20
|
+
return options;
|
|
22
21
|
}
|
|
23
22
|
async commandAction(logger, args) {
|
|
24
23
|
if (this.verbose) {
|
|
@@ -42,12 +41,5 @@ class EntraOAuth2GrantSetCommand extends GraphCommand {
|
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
|
-
_EntraOAuth2GrantSetCommand_instances = new WeakSet(), _EntraOAuth2GrantSetCommand_initOptions = function _EntraOAuth2GrantSetCommand_initOptions() {
|
|
46
|
-
this.options.unshift({
|
|
47
|
-
option: '-i, --grantId <grantId>'
|
|
48
|
-
}, {
|
|
49
|
-
option: '-s, --scope <scope>'
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
44
|
export default new EntraOAuth2GrantSetCommand();
|
|
53
45
|
//# sourceMappingURL=oauth2grant-set.js.map
|
|
@@ -37,16 +37,27 @@ class EntraOrganizationSetCommand extends GraphCommand {
|
|
|
37
37
|
getRefinedSchema(schema) {
|
|
38
38
|
return schema
|
|
39
39
|
.refine(options => !(options.id && options.displayName), {
|
|
40
|
-
error: 'Specify either id or displayName, but not both'
|
|
40
|
+
error: 'Specify either id or displayName, but not both',
|
|
41
|
+
params: {
|
|
42
|
+
customCode: 'optionSet',
|
|
43
|
+
options: ['id', 'displayName']
|
|
44
|
+
}
|
|
41
45
|
})
|
|
42
46
|
.refine(options => options.id || options.displayName, {
|
|
43
|
-
error: 'Specify either id or displayName'
|
|
47
|
+
error: 'Specify either id or displayName',
|
|
48
|
+
params: {
|
|
49
|
+
customCode: 'optionSet',
|
|
50
|
+
options: ['id', 'displayName']
|
|
51
|
+
}
|
|
44
52
|
})
|
|
45
53
|
.refine(options => [
|
|
46
54
|
options.contactEmail, options.marketingNotificationEmails, options.securityComplianceNotificationMails, options.securityComplianceNotificationPhones,
|
|
47
55
|
options.statementUrl, options.technicalNotificationMails
|
|
48
56
|
].filter(o => o !== undefined).length > 0, {
|
|
49
|
-
error: 'Specify at least one of the following options: contactEmail, marketingNotificationEmails, securityComplianceNotificationMails, securityComplianceNotificationPhones, statementUrl, or technicalNotificationMails'
|
|
57
|
+
error: 'Specify at least one of the following options: contactEmail, marketingNotificationEmails, securityComplianceNotificationMails, securityComplianceNotificationPhones, statementUrl, or technicalNotificationMails',
|
|
58
|
+
params: {
|
|
59
|
+
customCode: 'required'
|
|
60
|
+
}
|
|
50
61
|
});
|
|
51
62
|
}
|
|
52
63
|
async commandAction(logger, args) {
|
|
@@ -44,13 +44,21 @@ class EntraRoleAssignmentAddCommand extends GraphCommand {
|
|
|
44
44
|
getRefinedSchema(schema) {
|
|
45
45
|
return schema
|
|
46
46
|
.refine(options => [options.roleDefinitionId, options.roleDefinitionName].filter(o => o !== undefined).length === 1, {
|
|
47
|
-
error: 'Specify either roleDefinitionId or roleDefinitionName'
|
|
47
|
+
error: 'Specify either roleDefinitionId or roleDefinitionName',
|
|
48
|
+
params: {
|
|
49
|
+
customCode: 'optionSet',
|
|
50
|
+
options: ['roleDefinitionId', 'roleDefinitionName']
|
|
51
|
+
}
|
|
48
52
|
})
|
|
49
53
|
.refine(options => Object.values([
|
|
50
54
|
options.userId, options.userName, options.administrativeUnitId, options.administrativeUnitName, options.applicationId, options.applicationObjectId, options.applicationName,
|
|
51
55
|
options.servicePrincipalId, options.servicePrincipalName, options.groupId, options.groupName
|
|
52
56
|
]).filter(v => typeof v !== 'undefined').length < 2, {
|
|
53
|
-
message: 'Provide value for only one of the following parameters: userId, userName, administrativeUnitId, administrativeUnitName, applicationId, applicationObjectId, applicationName, servicePrincipalId, servicePrincipalName, groupId or groupName'
|
|
57
|
+
message: 'Provide value for only one of the following parameters: userId, userName, administrativeUnitId, administrativeUnitName, applicationId, applicationObjectId, applicationName, servicePrincipalId, servicePrincipalName, groupId or groupName',
|
|
58
|
+
params: {
|
|
59
|
+
customCode: 'optionSet',
|
|
60
|
+
options: ['userId', 'userName', 'administrativeUnitId', 'administrativeUnitName', 'applicationId', 'applicationObjectId', 'applicationName', 'servicePrincipalId', 'servicePrincipalName', 'groupId', 'groupName']
|
|
61
|
+
}
|
|
54
62
|
});
|
|
55
63
|
}
|
|
56
64
|
async commandAction(logger, args) {
|
|
@@ -23,10 +23,18 @@ class EntraRoleDefinitionGetCommand extends GraphCommand {
|
|
|
23
23
|
getRefinedSchema(schema) {
|
|
24
24
|
return schema
|
|
25
25
|
.refine(options => !options.id !== !options.displayName, {
|
|
26
|
-
error: 'Specify either id or displayName, but not both'
|
|
26
|
+
error: 'Specify either id or displayName, but not both',
|
|
27
|
+
params: {
|
|
28
|
+
customCode: 'optionSet',
|
|
29
|
+
options: ['id', 'displayName']
|
|
30
|
+
}
|
|
27
31
|
})
|
|
28
32
|
.refine(options => options.id || options.displayName, {
|
|
29
|
-
error: 'Specify either id or displayName'
|
|
33
|
+
error: 'Specify either id or displayName',
|
|
34
|
+
params: {
|
|
35
|
+
customCode: 'optionSet',
|
|
36
|
+
options: ['id', 'displayName']
|
|
37
|
+
}
|
|
30
38
|
})
|
|
31
39
|
.refine(options => (!options.id && !options.displayName) || options.displayName || (options.id && validation.isValidGuid(options.id)), {
|
|
32
40
|
error: e => `The '${e.input}' must be a valid GUID`,
|
|
@@ -25,10 +25,18 @@ class EntraRoleDefinitionRemoveCommand extends GraphCommand {
|
|
|
25
25
|
getRefinedSchema(schema) {
|
|
26
26
|
return schema
|
|
27
27
|
.refine(options => !options.id !== !options.displayName, {
|
|
28
|
-
error: 'Specify either id or displayName, but not both'
|
|
28
|
+
error: 'Specify either id or displayName, but not both',
|
|
29
|
+
params: {
|
|
30
|
+
customCode: 'optionSet',
|
|
31
|
+
options: ['id', 'displayName']
|
|
32
|
+
}
|
|
29
33
|
})
|
|
30
34
|
.refine(options => options.id || options.displayName, {
|
|
31
|
-
error: 'Specify either id or displayName'
|
|
35
|
+
error: 'Specify either id or displayName',
|
|
36
|
+
params: {
|
|
37
|
+
customCode: 'optionSet',
|
|
38
|
+
options: ['id', 'displayName']
|
|
39
|
+
}
|
|
32
40
|
})
|
|
33
41
|
.refine(options => (!options.id && !options.displayName) || options.displayName || (options.id && validation.isValidGuid(options.id)), {
|
|
34
42
|
error: e => `The '${e.input}' must be a valid GUID`,
|
|
@@ -28,17 +28,28 @@ class EntraRoleDefinitionSetCommand extends GraphCommand {
|
|
|
28
28
|
getRefinedSchema(schema) {
|
|
29
29
|
return schema
|
|
30
30
|
.refine(options => !options.id !== !options.displayName, {
|
|
31
|
-
error: 'Specify either id or displayName, but not both'
|
|
31
|
+
error: 'Specify either id or displayName, but not both',
|
|
32
|
+
params: {
|
|
33
|
+
customCode: 'optionSet',
|
|
34
|
+
options: ['id', 'displayName']
|
|
35
|
+
}
|
|
32
36
|
})
|
|
33
37
|
.refine(options => options.id || options.displayName, {
|
|
34
|
-
error: 'Specify either id or displayName'
|
|
38
|
+
error: 'Specify either id or displayName',
|
|
39
|
+
params: {
|
|
40
|
+
customCode: 'optionSet',
|
|
41
|
+
options: ['id', 'displayName']
|
|
42
|
+
}
|
|
35
43
|
})
|
|
36
44
|
.refine(options => (!options.id && !options.displayName) || options.displayName || (options.id && validation.isValidGuid(options.id)), {
|
|
37
45
|
error: e => `The '${e.input}' must be a valid GUID`,
|
|
38
46
|
path: ['id']
|
|
39
47
|
})
|
|
40
48
|
.refine(options => Object.values([options.newDisplayName, options.description, options.allowedResourceActions, options.enabled, options.version]).filter(v => typeof v !== 'undefined').length > 0, {
|
|
41
|
-
error: 'Provide value for at least one of the following parameters: newDisplayName, description, allowedResourceActions, enabled or version'
|
|
49
|
+
error: 'Provide value for at least one of the following parameters: newDisplayName, description, allowedResourceActions, enabled or version',
|
|
50
|
+
params: {
|
|
51
|
+
customCode: 'required'
|
|
52
|
+
}
|
|
42
53
|
});
|
|
43
54
|
}
|
|
44
55
|
async commandAction(logger, args) {
|
|
@@ -27,7 +27,11 @@ class EntraUserSessionRevokeCommand extends GraphCommand {
|
|
|
27
27
|
getRefinedSchema(schema) {
|
|
28
28
|
return schema
|
|
29
29
|
.refine(options => [options.userId, options.userName].filter(o => o !== undefined).length === 1, {
|
|
30
|
-
error: `Specify either 'userId' or 'userName'
|
|
30
|
+
error: `Specify either 'userId' or 'userName'.`,
|
|
31
|
+
params: {
|
|
32
|
+
customCode: 'optionSet',
|
|
33
|
+
options: ['userId', 'userName']
|
|
34
|
+
}
|
|
31
35
|
});
|
|
32
36
|
}
|
|
33
37
|
async commandAction(logger, args) {
|
|
@@ -39,20 +39,36 @@ class ExoAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
39
39
|
getRefinedSchema(schema) {
|
|
40
40
|
return schema
|
|
41
41
|
.refine(options => !options.roleDefinitionId !== !options.roleDefinitionName, {
|
|
42
|
-
error: 'Specify either roleDefinitionId or roleDefinitionName, but not both'
|
|
42
|
+
error: 'Specify either roleDefinitionId or roleDefinitionName, but not both',
|
|
43
|
+
params: {
|
|
44
|
+
customCode: 'optionSet',
|
|
45
|
+
options: ['roleDefinitionId', 'roleDefinitionName']
|
|
46
|
+
}
|
|
43
47
|
})
|
|
44
48
|
.refine(options => options.roleDefinitionId || options.roleDefinitionName, {
|
|
45
|
-
error: 'Specify either roleDefinitionId or roleDefinitionName'
|
|
49
|
+
error: 'Specify either roleDefinitionId or roleDefinitionName',
|
|
50
|
+
params: {
|
|
51
|
+
customCode: 'optionSet',
|
|
52
|
+
options: ['roleDefinitionId', 'roleDefinitionName']
|
|
53
|
+
}
|
|
46
54
|
})
|
|
47
55
|
.refine(options => (!options.roleDefinitionId && !options.roleDefinitionName) || options.roleDefinitionName || (options.roleDefinitionId && validation.isValidGuid(options.roleDefinitionId)), {
|
|
48
56
|
error: e => `The '${e.input}' must be a valid GUID`,
|
|
49
57
|
path: ['roleDefinitionId']
|
|
50
58
|
})
|
|
51
59
|
.refine(options => !options.principalId !== !options.principalName, {
|
|
52
|
-
error: 'Specify either principalId or principalName, but not both'
|
|
60
|
+
error: 'Specify either principalId or principalName, but not both',
|
|
61
|
+
params: {
|
|
62
|
+
customCode: 'optionSet',
|
|
63
|
+
options: ['principalId', 'principalName']
|
|
64
|
+
}
|
|
53
65
|
})
|
|
54
66
|
.refine(options => options.principalId || options.principalName, {
|
|
55
|
-
error: 'Specify either principalId or principalName'
|
|
67
|
+
error: 'Specify either principalId or principalName',
|
|
68
|
+
params: {
|
|
69
|
+
customCode: 'optionSet',
|
|
70
|
+
options: ['principalId', 'principalName']
|
|
71
|
+
}
|
|
56
72
|
})
|
|
57
73
|
.refine(options => (!options.principalId && !options.principalName) || options.principalName || (options.principalId && validation.isValidGuid(options.principalId)), {
|
|
58
74
|
error: e => `The '${e.input}' must be a valid GUID`,
|
|
@@ -68,11 +84,19 @@ class ExoAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
68
84
|
})
|
|
69
85
|
.refine(options => options.scope !== 'user' || (!options.userId !== !options.userName), {
|
|
70
86
|
message: "When the scope is set to 'user' specify either userId or userName, but not both",
|
|
71
|
-
path: ['scope']
|
|
87
|
+
path: ['scope'],
|
|
88
|
+
params: {
|
|
89
|
+
customCode: 'optionSet',
|
|
90
|
+
options: ['userId', 'userName']
|
|
91
|
+
}
|
|
72
92
|
})
|
|
73
93
|
.refine(options => options.scope !== 'user' || (options.userId || options.userName), {
|
|
74
94
|
message: "When the scope is set to 'user' specify either userId or userName",
|
|
75
|
-
path: ['scope']
|
|
95
|
+
path: ['scope'],
|
|
96
|
+
params: {
|
|
97
|
+
customCode: 'optionSet',
|
|
98
|
+
options: ['userId', 'userName']
|
|
99
|
+
}
|
|
76
100
|
})
|
|
77
101
|
.refine(options => options.scope !== 'user' || (!options.userId && !options.userName) || options.userName || (options.userId && validation.isValidGuid(options.userId)), {
|
|
78
102
|
error: e => `The '${e.input}' must be a valid GUID`,
|
|
@@ -88,11 +112,19 @@ class ExoAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
88
112
|
})
|
|
89
113
|
.refine(options => options.scope !== 'group' || (!options.groupId !== !options.groupName), {
|
|
90
114
|
message: "When the scope is set to 'group' specify either groupId or groupName, but not both",
|
|
91
|
-
path: ['scope']
|
|
115
|
+
path: ['scope'],
|
|
116
|
+
params: {
|
|
117
|
+
customCode: 'optionSet',
|
|
118
|
+
options: ['groupId', 'groupName']
|
|
119
|
+
}
|
|
92
120
|
})
|
|
93
121
|
.refine(options => options.scope !== 'group' || (options.groupId || options.groupName), {
|
|
94
122
|
message: "When the scope is set to 'group' specify either groupId or groupName",
|
|
95
|
-
path: ['scope']
|
|
123
|
+
path: ['scope'],
|
|
124
|
+
params: {
|
|
125
|
+
customCode: 'optionSet',
|
|
126
|
+
options: ['groupId', 'groupName']
|
|
127
|
+
}
|
|
96
128
|
})
|
|
97
129
|
.refine(options => options.scope !== 'group' || (!options.groupId && !options.groupName) || options.groupName || (options.groupId && validation.isValidGuid(options.groupId)), {
|
|
98
130
|
error: e => `The '${e.input}' must be a valid GUID`,
|
|
@@ -104,11 +136,19 @@ class ExoAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
104
136
|
})
|
|
105
137
|
.refine(options => options.scope !== 'administrativeUnit' || (!options.administrativeUnitId !== !options.administrativeUnitName), {
|
|
106
138
|
message: "When the scope is set to 'administrativeUnit' specify either administrativeUnitId or administrativeUnitName, but not both",
|
|
107
|
-
path: ['scope']
|
|
139
|
+
path: ['scope'],
|
|
140
|
+
params: {
|
|
141
|
+
customCode: 'optionSet',
|
|
142
|
+
options: ['administrativeUnitId', 'administrativeUnitName']
|
|
143
|
+
}
|
|
108
144
|
})
|
|
109
145
|
.refine(options => options.scope !== 'administrativeUnit' || (options.administrativeUnitId || options.administrativeUnitName), {
|
|
110
146
|
message: "When the scope is set to 'administrativeUnit' specify either administrativeUnitId or administrativeUnitName",
|
|
111
|
-
path: ['scope']
|
|
147
|
+
path: ['scope'],
|
|
148
|
+
params: {
|
|
149
|
+
customCode: 'optionSet',
|
|
150
|
+
options: ['administrativeUnitId', 'administrativeUnitName']
|
|
151
|
+
}
|
|
112
152
|
})
|
|
113
153
|
.refine(options => options.scope !== 'administrativeUnit' || (!options.administrativeUnitId && !options.administrativeUnitName) || options.administrativeUnitName || (options.administrativeUnitId && validation.isValidGuid(options.administrativeUnitId)), {
|
|
114
154
|
error: e => `The '${e.input}' must be a valid GUID`,
|
|
@@ -120,11 +160,19 @@ class ExoAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
120
160
|
})
|
|
121
161
|
.refine(options => options.scope !== 'custom' || (!options.customAppScopeId !== !options.customAppScopeName), {
|
|
122
162
|
message: "When the scope is set to 'custom' specify either customAppScopeId or customAppScopeName, but not both",
|
|
123
|
-
path: ['scope']
|
|
163
|
+
path: ['scope'],
|
|
164
|
+
params: {
|
|
165
|
+
customCode: 'optionSet',
|
|
166
|
+
options: ['customAppScopeId', 'customAppScopeName']
|
|
167
|
+
}
|
|
124
168
|
})
|
|
125
169
|
.refine(options => options.scope !== 'custom' || (options.customAppScopeId || options.customAppScopeName), {
|
|
126
170
|
message: "When the scope is set to 'custom' specify either customAppScopeId or customAppScopeName",
|
|
127
|
-
path: ['scope']
|
|
171
|
+
path: ['scope'],
|
|
172
|
+
params: {
|
|
173
|
+
customCode: 'optionSet',
|
|
174
|
+
options: ['customAppScopeId', 'customAppScopeName']
|
|
175
|
+
}
|
|
128
176
|
})
|
|
129
177
|
.refine(options => options.scope !== 'custom' || (!options.customAppScopeId && !options.customAppScopeName) || options.customAppScopeName || (options.customAppScopeId && validation.isValidGuid(options.customAppScopeId)), {
|
|
130
178
|
error: e => `The '${e.input}' must be a valid GUID`,
|
|
@@ -22,7 +22,11 @@ class FlowEnvironmentGetCommand extends PowerAutomateCommand {
|
|
|
22
22
|
getRefinedSchema(schema) {
|
|
23
23
|
return schema
|
|
24
24
|
.refine(options => !!options.name !== !!options.default, {
|
|
25
|
-
error: `Specify either name or default, but not both
|
|
25
|
+
error: `Specify either name or default, but not both.`,
|
|
26
|
+
params: {
|
|
27
|
+
customCode: 'optionSet',
|
|
28
|
+
options: ['name', 'default']
|
|
29
|
+
}
|
|
26
30
|
});
|
|
27
31
|
}
|
|
28
32
|
async commandAction(logger, args) {
|
|
@@ -29,7 +29,11 @@ class GraphDirectoryExtensionAddCommand extends GraphCommand {
|
|
|
29
29
|
getRefinedSchema(schema) {
|
|
30
30
|
return schema
|
|
31
31
|
.refine(options => Object.values([options.appId, options.appObjectId, options.appName]).filter(v => typeof v !== 'undefined').length === 1, {
|
|
32
|
-
error: 'Specify either appId, appObjectId or appName, but not multiple'
|
|
32
|
+
error: 'Specify either appId, appObjectId or appName, but not multiple',
|
|
33
|
+
params: {
|
|
34
|
+
customCode: 'optionSet',
|
|
35
|
+
options: ['appId', 'appObjectId', 'appName']
|
|
36
|
+
}
|
|
33
37
|
})
|
|
34
38
|
.refine(options => (!options.appId && !options.appObjectId && !options.appName) || options.appObjectId || options.appName ||
|
|
35
39
|
(options.appId && validation.isValidGuid(options.appId)), {
|
|
@@ -26,13 +26,25 @@ class GraphDirectoryExtensionGetCommand extends GraphCommand {
|
|
|
26
26
|
getRefinedSchema(schema) {
|
|
27
27
|
return schema
|
|
28
28
|
.refine(options => !options.id !== !options.name, {
|
|
29
|
-
error: 'Specify either id or name, but not both'
|
|
29
|
+
error: 'Specify either id or name, but not both',
|
|
30
|
+
params: {
|
|
31
|
+
customCode: 'optionSet',
|
|
32
|
+
options: ['id', 'name']
|
|
33
|
+
}
|
|
30
34
|
})
|
|
31
35
|
.refine(options => options.id || options.name, {
|
|
32
|
-
error: 'Specify either id or name'
|
|
36
|
+
error: 'Specify either id or name',
|
|
37
|
+
params: {
|
|
38
|
+
customCode: 'optionSet',
|
|
39
|
+
options: ['id', 'name']
|
|
40
|
+
}
|
|
33
41
|
})
|
|
34
42
|
.refine(options => Object.values([options.appId, options.appObjectId, options.appName]).filter(v => typeof v !== 'undefined').length === 1, {
|
|
35
|
-
error: 'Specify either appId, appObjectId or appName, but not multiple'
|
|
43
|
+
error: 'Specify either appId, appObjectId or appName, but not multiple',
|
|
44
|
+
params: {
|
|
45
|
+
customCode: 'optionSet',
|
|
46
|
+
options: ['appId', 'appObjectId', 'appName']
|
|
47
|
+
}
|
|
36
48
|
});
|
|
37
49
|
}
|
|
38
50
|
async commandAction(logger, args) {
|
|
@@ -27,7 +27,11 @@ class GraphDirectoryExtensionListCommand extends GraphCommand {
|
|
|
27
27
|
getRefinedSchema(schema) {
|
|
28
28
|
return schema
|
|
29
29
|
.refine(options => ([options.appId, options.appObjectId, options.appName].filter(x => x !== undefined).length <= 1), {
|
|
30
|
-
error: 'Specify either appId, appObjectId, or appName, but not multiple.'
|
|
30
|
+
error: 'Specify either appId, appObjectId, or appName, but not multiple.',
|
|
31
|
+
params: {
|
|
32
|
+
customCode: 'optionSet',
|
|
33
|
+
options: ['appId', 'appObjectId', 'appName']
|
|
34
|
+
}
|
|
31
35
|
});
|
|
32
36
|
}
|
|
33
37
|
async commandAction(logger, args) {
|