@pnp/cli-microsoft365 11.8.0 → 11.9.0-beta.16abf04
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devproxy/api-specs/sharepoint.yaml +29 -0
- 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/app/app-reconsent.js +8 -0
- 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/cli/commands/completion/completion-clink-update.js +8 -0
- package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +8 -16
- package/dist/m365/cli/commands/completion/completion-pwsh-update.js +8 -0
- package/dist/m365/cli/commands/completion/completion-sh-setup.js +8 -0
- package/dist/m365/cli/commands/completion/completion-sh-update.js +8 -0
- package/dist/m365/cli/commands/config/config-get.js +9 -32
- package/dist/m365/cli/commands/config/config-list.js +8 -0
- package/dist/m365/cli/commands/config/config-reset.js +9 -34
- package/dist/m365/cli/commands/config/config-set.js +86 -70
- package/dist/m365/commands/login.js +26 -6
- package/dist/m365/commands/request.js +26 -60
- package/dist/m365/commands/search.js +59 -77
- package/dist/m365/commands/setup.js +16 -31
- package/dist/m365/commands/version.js +6 -0
- 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-member-add.js +32 -63
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +21 -45
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +32 -53
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +34 -74
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +10 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +37 -57
- 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-permission-list.js +43 -4
- 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/folder/folder-archive.js +89 -0
- 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/spo/commands.js +1 -0
- 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-add.js +79 -0
- package/dist/m365/viva/commands/engage/engage-role-member-list.js +5 -1
- package/dist/m365/viva/commands.js +1 -0
- 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 +24 -3
- package/docs/docs/cmd/spe/container/container-permission-list.mdx +24 -3
- package/docs/docs/cmd/spe/container/container-set.mdx +160 -0
- package/docs/docs/cmd/spo/app/app-add.mdx +19 -0
- package/docs/docs/cmd/spo/app/app-deploy.mdx +21 -0
- package/docs/docs/cmd/spo/app/app-get.mdx +19 -0
- package/docs/docs/cmd/spo/app/app-install.mdx +21 -0
- package/docs/docs/cmd/spo/app/app-instance-list.mdx +19 -0
- package/docs/docs/cmd/spo/app/app-list.mdx +19 -0
- package/docs/docs/cmd/spo/app/app-remove.mdx +21 -0
- package/docs/docs/cmd/spo/app/app-retract.mdx +21 -0
- package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +21 -0
- package/docs/docs/cmd/spo/app/app-uninstall.mdx +21 -0
- package/docs/docs/cmd/spo/app/app-upgrade.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/commandset/commandset-add.mdx +19 -0
- package/docs/docs/cmd/spo/commandset/commandset-get.mdx +19 -0
- package/docs/docs/cmd/spo/commandset/commandset-list.mdx +19 -0
- package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +21 -0
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-archive.mdx +73 -0
- package/docs/docs/cmd/spo/page/page-control-set.mdx +18 -3
- package/docs/docs/cmd/viva/engage/engage-role-member-add.mdx +76 -0
- package/npm-shrinkwrap.json +550 -3172
- package/package.json +27 -22
|
@@ -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) {
|
|
@@ -28,13 +28,25 @@ class GraphDirectoryExtensionRemoveCommand extends GraphCommand {
|
|
|
28
28
|
getRefinedSchema(schema) {
|
|
29
29
|
return schema
|
|
30
30
|
.refine(options => !options.id !== !options.name, {
|
|
31
|
-
error: 'Specify either id or name, but not both'
|
|
31
|
+
error: 'Specify either id or name, but not both',
|
|
32
|
+
params: {
|
|
33
|
+
customCode: 'optionSet',
|
|
34
|
+
options: ['id', 'name']
|
|
35
|
+
}
|
|
32
36
|
})
|
|
33
37
|
.refine(options => options.id || options.name, {
|
|
34
|
-
error: 'Specify either id or name'
|
|
38
|
+
error: 'Specify either id or name',
|
|
39
|
+
params: {
|
|
40
|
+
customCode: 'optionSet',
|
|
41
|
+
options: ['id', 'name']
|
|
42
|
+
}
|
|
35
43
|
})
|
|
36
44
|
.refine(options => Object.values([options.appId, options.appObjectId, options.appName]).filter(v => typeof v !== 'undefined').length === 1, {
|
|
37
|
-
error: 'Specify either appId, appObjectId or appName, but not multiple'
|
|
45
|
+
error: 'Specify either appId, appObjectId or appName, but not multiple',
|
|
46
|
+
params: {
|
|
47
|
+
customCode: 'optionSet',
|
|
48
|
+
options: ['appId', 'appObjectId', 'appName']
|
|
49
|
+
}
|
|
38
50
|
});
|
|
39
51
|
}
|
|
40
52
|
async commandAction(logger, args) {
|
|
@@ -35,7 +35,7 @@ class OutlookCalendarGetCommand extends GraphCommand {
|
|
|
35
35
|
.refine(options => [options.id, options.name].filter(x => x !== undefined).length === 1, {
|
|
36
36
|
error: 'Specify either id or name, but not both'
|
|
37
37
|
})
|
|
38
|
-
.refine(options =>
|
|
38
|
+
.refine(options => [options.userId, options.userName].filter(x => x !== undefined).length === 1, {
|
|
39
39
|
error: 'Specify either userId or userName, but not both'
|
|
40
40
|
})
|
|
41
41
|
.refine(options => !(options.calendarGroupId && options.calendarGroupName), {
|
|
@@ -31,7 +31,11 @@ class OutlookMailSearchFolderAddCommand extends GraphCommand {
|
|
|
31
31
|
getRefinedSchema(schema) {
|
|
32
32
|
return schema
|
|
33
33
|
.refine(options => !(options.userId && options.userName), {
|
|
34
|
-
error: 'Specify either userId or userName, but not both'
|
|
34
|
+
error: 'Specify either userId or userName, but not both',
|
|
35
|
+
params: {
|
|
36
|
+
customCode: 'optionSet',
|
|
37
|
+
options: ['userId', 'userName']
|
|
38
|
+
}
|
|
35
39
|
});
|
|
36
40
|
}
|
|
37
41
|
async commandAction(logger, args) {
|
|
@@ -26,7 +26,11 @@ class OutlookMailboxSettingsGetCommand extends GraphCommand {
|
|
|
26
26
|
getRefinedSchema(schema) {
|
|
27
27
|
return schema
|
|
28
28
|
.refine(options => !(options.userId && options.userName), {
|
|
29
|
-
error: 'Specify either userId or userName, but not both'
|
|
29
|
+
error: 'Specify either userId or userName, but not both',
|
|
30
|
+
params: {
|
|
31
|
+
customCode: 'optionSet',
|
|
32
|
+
options: ['userId', 'userName']
|
|
33
|
+
}
|
|
30
34
|
});
|
|
31
35
|
}
|
|
32
36
|
async commandAction(logger, args) {
|
|
@@ -45,7 +45,11 @@ class OutlookMailboxSettingsSetCommand extends GraphCommand {
|
|
|
45
45
|
getRefinedSchema(schema) {
|
|
46
46
|
return schema
|
|
47
47
|
.refine(options => !(options.userId && options.userName), {
|
|
48
|
-
error: 'Specify either userId or userName, but not both'
|
|
48
|
+
error: 'Specify either userId or userName, but not both',
|
|
49
|
+
params: {
|
|
50
|
+
customCode: 'optionSet',
|
|
51
|
+
options: ['userId', 'userName']
|
|
52
|
+
}
|
|
49
53
|
})
|
|
50
54
|
.refine(options => [
|
|
51
55
|
options.workingDays, options.workingHoursStartTime, options.workingHoursEndTime, options.workingHoursTimeZone,
|
|
@@ -53,7 +57,10 @@ class OutlookMailboxSettingsSetCommand extends GraphCommand {
|
|
|
53
57
|
options.autoReplyStartDateTime, options.autoReplyStartTimeZone, options.autoReplyEndDateTime, options.autoReplyEndTimeZone,
|
|
54
58
|
options.timeFormat, options.timeZone, options.dateFormat, options.delegateMeetingMessageDeliveryOptions, options.language
|
|
55
59
|
].filter(o => o !== undefined).length > 0, {
|
|
56
|
-
error: 'Specify at least one of the following options: workingDays, workingHoursStartTime, workingHoursEndTime, workingHoursTimeZone, autoReplyStatus, autoReplyExternalAudience, autoReplyExternalMessage, autoReplyInternalMessage, autoReplyStartDateTime, autoReplyStartTimeZone, autoReplyEndDateTime, autoReplyEndTimeZone, timeFormat, timeZone, dateFormat, delegateMeetingMessageDeliveryOptions, or language'
|
|
60
|
+
error: 'Specify at least one of the following options: workingDays, workingHoursStartTime, workingHoursEndTime, workingHoursTimeZone, autoReplyStatus, autoReplyExternalAudience, autoReplyExternalMessage, autoReplyInternalMessage, autoReplyStartDateTime, autoReplyStartTimeZone, autoReplyEndDateTime, autoReplyEndTimeZone, timeFormat, timeZone, dateFormat, delegateMeetingMessageDeliveryOptions, or language',
|
|
61
|
+
params: {
|
|
62
|
+
customCode: 'required'
|
|
63
|
+
}
|
|
57
64
|
});
|
|
58
65
|
}
|
|
59
66
|
async commandAction(logger, args) {
|
|
@@ -22,7 +22,11 @@ class PaEnvironmentGetCommand extends PowerAppsCommand {
|
|
|
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) {
|
|
@@ -23,7 +23,11 @@ class PpEnvironmentGetCommand extends PowerPlatformCommand {
|
|
|
23
23
|
getRefinedSchema(schema) {
|
|
24
24
|
return schema
|
|
25
25
|
.refine(options => !!options.name !== !!options.default, {
|
|
26
|
-
error: `Specify either name or default, but not both
|
|
26
|
+
error: `Specify either name or default, but not both.`,
|
|
27
|
+
params: {
|
|
28
|
+
customCode: 'optionSet',
|
|
29
|
+
options: ['name', 'default']
|
|
30
|
+
}
|
|
27
31
|
});
|
|
28
32
|
}
|
|
29
33
|
async commandAction(logger, args) {
|
|
@@ -28,7 +28,11 @@ class PpWebSiteGetCommand extends PowerPlatformCommand {
|
|
|
28
28
|
getRefinedSchema(schema) {
|
|
29
29
|
return schema
|
|
30
30
|
.refine(options => [options.url, options.id, options.name].filter(x => x !== undefined).length === 1, {
|
|
31
|
-
error: `Specify either url, id or name, but not multiple
|
|
31
|
+
error: `Specify either url, id or name, but not multiple.`,
|
|
32
|
+
params: {
|
|
33
|
+
customCode: 'optionSet',
|
|
34
|
+
options: ['url', 'id', 'name']
|
|
35
|
+
}
|
|
32
36
|
});
|
|
33
37
|
}
|
|
34
38
|
async commandAction(logger, args) {
|
|
@@ -31,7 +31,11 @@ class SpeContainerAddCommand extends GraphCommand {
|
|
|
31
31
|
getRefinedSchema(schema) {
|
|
32
32
|
return schema
|
|
33
33
|
.refine((options) => [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 1, {
|
|
34
|
-
error: 'Use one of the following options: containerTypeId or containerTypeName.'
|
|
34
|
+
error: 'Use one of the following options: containerTypeId or containerTypeName.',
|
|
35
|
+
params: {
|
|
36
|
+
customCode: 'optionSet',
|
|
37
|
+
options: ['containerTypeId', 'containerTypeName']
|
|
38
|
+
}
|
|
35
39
|
});
|
|
36
40
|
}
|
|
37
41
|
async commandAction(logger, args) {
|
|
@@ -1,12 +1,16 @@
|
|
|
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 _SpeContainerGetCommand_instances, _SpeContainerGetCommand_initOptions, _SpeContainerGetCommand_initTypes;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
8
4
|
import commands from '../../commands.js';
|
|
9
5
|
import request from '../../../../request.js';
|
|
6
|
+
import { spe } from '../../../../utils/spe.js';
|
|
7
|
+
export const options = z.strictObject({
|
|
8
|
+
...globalOptionsZod.shape,
|
|
9
|
+
id: z.string().alias('i').optional(),
|
|
10
|
+
name: z.string().alias('n').optional(),
|
|
11
|
+
containerTypeId: z.uuid().optional(),
|
|
12
|
+
containerTypeName: z.string().optional()
|
|
13
|
+
});
|
|
10
14
|
class SpeContainerGetCommand extends GraphCommand {
|
|
11
15
|
get name() {
|
|
12
16
|
return commands.CONTAINER_GET;
|
|
@@ -14,24 +18,34 @@ class SpeContainerGetCommand extends GraphCommand {
|
|
|
14
18
|
get description() {
|
|
15
19
|
return 'Gets a container of a specific container type';
|
|
16
20
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
get schema() {
|
|
22
|
+
return options;
|
|
23
|
+
}
|
|
24
|
+
getRefinedSchema(schema) {
|
|
25
|
+
return schema
|
|
26
|
+
.refine((opts) => [opts.id, opts.name].filter(value => value !== undefined).length === 1, {
|
|
27
|
+
message: 'Specify either id or name, but not both.'
|
|
28
|
+
})
|
|
29
|
+
.refine((options) => !options.name || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 1, {
|
|
30
|
+
error: 'Use one of the following options when specifying the container name: containerTypeId or containerTypeName.'
|
|
31
|
+
})
|
|
32
|
+
.refine((options) => options.name || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 0, {
|
|
33
|
+
error: 'Options containerTypeId and containerTypeName are only required when retrieving a container by name.'
|
|
34
|
+
});
|
|
22
35
|
}
|
|
23
36
|
async commandAction(logger, args) {
|
|
24
|
-
if (this.verbose) {
|
|
25
|
-
await logger.logToStderr(`Getting a container with id '${args.options.id}'...`);
|
|
26
|
-
}
|
|
27
|
-
const requestOptions = {
|
|
28
|
-
url: `${this.resource}/v1.0/storage/fileStorage/containers/${args.options.id}`,
|
|
29
|
-
headers: {
|
|
30
|
-
accept: 'application/json;odata.metadata=none'
|
|
31
|
-
},
|
|
32
|
-
responseType: 'json'
|
|
33
|
-
};
|
|
34
37
|
try {
|
|
38
|
+
const containerId = await this.resolveContainerId(args.options, logger);
|
|
39
|
+
if (this.verbose) {
|
|
40
|
+
await logger.logToStderr(`Getting a container with id '${containerId}'...`);
|
|
41
|
+
}
|
|
42
|
+
const requestOptions = {
|
|
43
|
+
url: `${this.resource}/v1.0/storage/fileStorage/containers/${containerId}`,
|
|
44
|
+
headers: {
|
|
45
|
+
accept: 'application/json;odata.metadata=none'
|
|
46
|
+
},
|
|
47
|
+
responseType: 'json'
|
|
48
|
+
};
|
|
35
49
|
const res = await request.get(requestOptions);
|
|
36
50
|
await logger.log(res);
|
|
37
51
|
}
|
|
@@ -39,11 +53,25 @@ class SpeContainerGetCommand extends GraphCommand {
|
|
|
39
53
|
this.handleRejectedODataJsonPromise(err);
|
|
40
54
|
}
|
|
41
55
|
}
|
|
56
|
+
async resolveContainerId(options, logger) {
|
|
57
|
+
if (options.id) {
|
|
58
|
+
return options.id;
|
|
59
|
+
}
|
|
60
|
+
if (this.verbose) {
|
|
61
|
+
await logger.logToStderr(`Resolving container id from name '${options.name}'...`);
|
|
62
|
+
}
|
|
63
|
+
const containerTypeId = await this.getContainerTypeId(options, logger);
|
|
64
|
+
return spe.getContainerIdByName(containerTypeId, options.name);
|
|
65
|
+
}
|
|
66
|
+
async getContainerTypeId(options, logger) {
|
|
67
|
+
if (options.containerTypeId) {
|
|
68
|
+
return options.containerTypeId;
|
|
69
|
+
}
|
|
70
|
+
if (this.verbose) {
|
|
71
|
+
await logger.logToStderr(`Getting container type with name '${options.containerTypeName}'...`);
|
|
72
|
+
}
|
|
73
|
+
return spe.getContainerTypeIdByName(options.containerTypeName);
|
|
74
|
+
}
|
|
42
75
|
}
|
|
43
|
-
_SpeContainerGetCommand_instances = new WeakSet(), _SpeContainerGetCommand_initOptions = function _SpeContainerGetCommand_initOptions() {
|
|
44
|
-
this.options.unshift({ option: '-i, --id <id>' });
|
|
45
|
-
}, _SpeContainerGetCommand_initTypes = function _SpeContainerGetCommand_initTypes() {
|
|
46
|
-
this.types.string.push('id');
|
|
47
|
-
};
|
|
48
76
|
export default new SpeContainerGetCommand();
|
|
49
77
|
//# sourceMappingURL=container-get.js.map
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { cli } from '../../../../cli/cli.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { globalOptionsZod } from '../../../../Command.js';
|
|
3
|
+
import { CommandError, globalOptionsZod } from '../../../../Command.js';
|
|
4
4
|
import commands from '../../commands.js';
|
|
5
5
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
6
6
|
import { odata } from '../../../../utils/odata.js';
|
|
7
7
|
import { formatting } from '../../../../utils/formatting.js';
|
|
8
|
+
import { spe } from '../../../../utils/spe.js';
|
|
8
9
|
export const options = z.strictObject({
|
|
9
10
|
...globalOptionsZod.shape,
|
|
10
|
-
containerId: z.string().alias('i')
|
|
11
|
+
containerId: z.string().alias('i').optional(),
|
|
12
|
+
containerName: z.string().alias('n').optional(),
|
|
13
|
+
containerTypeId: z.uuid().optional(),
|
|
14
|
+
containerTypeName: z.string().optional()
|
|
11
15
|
});
|
|
12
16
|
class SpeContainerPermissionListCommand extends GraphCommand {
|
|
13
17
|
get name() {
|
|
@@ -22,12 +26,25 @@ class SpeContainerPermissionListCommand extends GraphCommand {
|
|
|
22
26
|
get schema() {
|
|
23
27
|
return options;
|
|
24
28
|
}
|
|
29
|
+
getRefinedSchema(schema) {
|
|
30
|
+
return schema
|
|
31
|
+
.refine((opts) => [opts.containerId, opts.containerName].filter(value => value !== undefined).length === 1, {
|
|
32
|
+
message: 'Specify either id or name, but not both.'
|
|
33
|
+
})
|
|
34
|
+
.refine((options) => !options.containerName || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 1, {
|
|
35
|
+
error: 'Use one of the following options when specifying the container name: containerTypeId or containerTypeName.'
|
|
36
|
+
})
|
|
37
|
+
.refine((options) => options.containerName || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 0, {
|
|
38
|
+
error: 'Options containerTypeId and containerTypeName are only required when retrieving a container by name.'
|
|
39
|
+
});
|
|
40
|
+
}
|
|
25
41
|
async commandAction(logger, args) {
|
|
26
42
|
try {
|
|
43
|
+
const containerId = await this.resolveContainerId(args.options, logger);
|
|
27
44
|
if (this.verbose) {
|
|
28
|
-
await logger.logToStderr(`Retrieving permissions of a SharePoint Embedded Container with id '${
|
|
45
|
+
await logger.logToStderr(`Retrieving permissions of a SharePoint Embedded Container with id '${containerId}'...`);
|
|
29
46
|
}
|
|
30
|
-
const containerPermission = await odata.getAllItems(`${this.resource}/v1.0/storage/fileStorage/containers/${formatting.encodeQueryParameter(
|
|
47
|
+
const containerPermission = await odata.getAllItems(`${this.resource}/v1.0/storage/fileStorage/containers/${formatting.encodeQueryParameter(containerId)}/permissions`);
|
|
31
48
|
if (!cli.shouldTrimOutput(args.options.output)) {
|
|
32
49
|
await logger.log(containerPermission);
|
|
33
50
|
}
|
|
@@ -42,9 +59,31 @@ class SpeContainerPermissionListCommand extends GraphCommand {
|
|
|
42
59
|
}
|
|
43
60
|
}
|
|
44
61
|
catch (err) {
|
|
62
|
+
if (err instanceof CommandError) {
|
|
63
|
+
throw err;
|
|
64
|
+
}
|
|
45
65
|
this.handleRejectedODataJsonPromise(err);
|
|
46
66
|
}
|
|
47
67
|
}
|
|
68
|
+
async resolveContainerId(options, logger) {
|
|
69
|
+
if (options.containerId) {
|
|
70
|
+
return options.containerId;
|
|
71
|
+
}
|
|
72
|
+
if (this.verbose) {
|
|
73
|
+
await logger.logToStderr(`Resolving container id from name '${options.containerName}'...`);
|
|
74
|
+
}
|
|
75
|
+
const containerTypeId = await this.getContainerTypeId(options, logger);
|
|
76
|
+
return spe.getContainerIdByName(containerTypeId, options.containerName);
|
|
77
|
+
}
|
|
78
|
+
async getContainerTypeId(options, logger) {
|
|
79
|
+
if (options.containerTypeId) {
|
|
80
|
+
return options.containerTypeId;
|
|
81
|
+
}
|
|
82
|
+
if (this.verbose) {
|
|
83
|
+
await logger.logToStderr(`Getting container type with name '${options.containerTypeName}'...`);
|
|
84
|
+
}
|
|
85
|
+
return spe.getContainerTypeIdByName(options.containerTypeName);
|
|
86
|
+
}
|
|
48
87
|
}
|
|
49
88
|
export default new SpeContainerPermissionListCommand();
|
|
50
89
|
//# sourceMappingURL=container-permission-list.js.map
|
|
@@ -25,7 +25,11 @@ class SpeContainerRecycleBinItemListCommand extends GraphCommand {
|
|
|
25
25
|
getRefinedSchema(schema) {
|
|
26
26
|
return schema
|
|
27
27
|
.refine((options) => [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 1, {
|
|
28
|
-
error: 'Use one of the following options: containerTypeId or containerTypeName.'
|
|
28
|
+
error: 'Use one of the following options: containerTypeId or containerTypeName.',
|
|
29
|
+
params: {
|
|
30
|
+
customCode: 'optionSet',
|
|
31
|
+
options: ['containerTypeId', 'containerTypeName']
|
|
32
|
+
}
|
|
29
33
|
});
|
|
30
34
|
}
|
|
31
35
|
async commandAction(logger, args) {
|
|
@@ -28,10 +28,18 @@ class SpeContainerRecycleBinItemRemoveCommand extends GraphCommand {
|
|
|
28
28
|
getRefinedSchema(schema) {
|
|
29
29
|
return schema
|
|
30
30
|
.refine((options) => [options.id, options.name].filter(o => o !== undefined).length === 1, {
|
|
31
|
-
error: 'Use one of the following options: id or name.'
|
|
31
|
+
error: 'Use one of the following options: id or name.',
|
|
32
|
+
params: {
|
|
33
|
+
customCode: 'optionSet',
|
|
34
|
+
options: ['id', 'name']
|
|
35
|
+
}
|
|
32
36
|
})
|
|
33
37
|
.refine((options) => !options.name || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 1, {
|
|
34
|
-
error: 'Use one of the following options when specifying the container name: containerTypeId or containerTypeName.'
|
|
38
|
+
error: 'Use one of the following options when specifying the container name: containerTypeId or containerTypeName.',
|
|
39
|
+
params: {
|
|
40
|
+
customCode: 'optionSet',
|
|
41
|
+
options: ['containerTypeId', 'containerTypeName']
|
|
42
|
+
}
|
|
35
43
|
})
|
|
36
44
|
.refine((options) => options.name || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 0, {
|
|
37
45
|
error: 'Options containerTypeId and containerTypeName are only required when removing a container by name.'
|
|
@@ -27,10 +27,18 @@ class SpeContainerRecycleBinItemRestoreCommand extends GraphCommand {
|
|
|
27
27
|
getRefinedSchema(schema) {
|
|
28
28
|
return schema
|
|
29
29
|
.refine((options) => [options.id, options.name].filter(o => o !== undefined).length === 1, {
|
|
30
|
-
error: 'Use one of the following options: id or name.'
|
|
30
|
+
error: 'Use one of the following options: id or name.',
|
|
31
|
+
params: {
|
|
32
|
+
customCode: 'optionSet',
|
|
33
|
+
options: ['id', 'name']
|
|
34
|
+
}
|
|
31
35
|
})
|
|
32
36
|
.refine((options) => !options.name || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 1, {
|
|
33
|
-
error: 'Use one of the following options when specifying the container name: containerTypeId or containerTypeName.'
|
|
37
|
+
error: 'Use one of the following options when specifying the container name: containerTypeId or containerTypeName.',
|
|
38
|
+
params: {
|
|
39
|
+
customCode: 'optionSet',
|
|
40
|
+
options: ['containerTypeId', 'containerTypeName']
|
|
41
|
+
}
|
|
34
42
|
})
|
|
35
43
|
.refine((options) => options.name || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 0, {
|
|
36
44
|
error: 'Options containerTypeId and containerTypeName are only required when restoring a container by name.'
|
|
@@ -27,10 +27,18 @@ class SpeContainerRemoveCommand extends GraphCommand {
|
|
|
27
27
|
getRefinedSchema(schema) {
|
|
28
28
|
return schema
|
|
29
29
|
.refine((options) => [options.id, options.name].filter(o => o !== undefined).length === 1, {
|
|
30
|
-
error: 'Use one of the following options: id or name.'
|
|
30
|
+
error: 'Use one of the following options: id or name.',
|
|
31
|
+
params: {
|
|
32
|
+
customCode: 'optionSet',
|
|
33
|
+
options: ['id', 'name']
|
|
34
|
+
}
|
|
31
35
|
})
|
|
32
36
|
.refine((options) => !options.name || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 1, {
|
|
33
|
-
error: 'Use one of the following options when specifying the container name: containerTypeId or containerTypeName.'
|
|
37
|
+
error: 'Use one of the following options when specifying the container name: containerTypeId or containerTypeName.',
|
|
38
|
+
params: {
|
|
39
|
+
customCode: 'optionSet',
|
|
40
|
+
options: ['containerTypeId', 'containerTypeName']
|
|
41
|
+
}
|
|
34
42
|
})
|
|
35
43
|
.refine((options) => options.name || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 0, {
|
|
36
44
|
error: 'Options containerTypeId and containerTypeName are only required when deleting a container by name.'
|