@pnp/cli-microsoft365 11.8.0 → 11.9.0-beta.16af377

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.
Files changed (390) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/cli/cli.js +49 -13
  4. package/dist/index.js +9 -1
  5. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +4 -1
  6. package/dist/m365/app/commands/permission/permission-add.js +4 -1
  7. package/dist/m365/booking/commands/business/business-get.js +5 -1
  8. package/dist/m365/cli/commands/app/app-reconsent.js +8 -0
  9. package/dist/m365/cli/commands/cli-consent.js +8 -31
  10. package/dist/m365/cli/commands/cli-doctor.js +6 -1
  11. package/dist/m365/cli/commands/cli-issue.js +8 -36
  12. package/dist/m365/cli/commands/completion/completion-clink-update.js +8 -0
  13. package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +8 -16
  14. package/dist/m365/cli/commands/completion/completion-pwsh-update.js +8 -0
  15. package/dist/m365/cli/commands/completion/completion-sh-setup.js +8 -0
  16. package/dist/m365/cli/commands/completion/completion-sh-update.js +8 -0
  17. package/dist/m365/cli/commands/config/config-get.js +9 -32
  18. package/dist/m365/cli/commands/config/config-list.js +8 -0
  19. package/dist/m365/cli/commands/config/config-reset.js +9 -34
  20. package/dist/m365/cli/commands/config/config-set.js +86 -70
  21. package/dist/m365/commands/login.js +26 -6
  22. package/dist/m365/commands/request.js +26 -60
  23. package/dist/m365/commands/search.js +59 -77
  24. package/dist/m365/commands/setup.js +16 -31
  25. package/dist/m365/commands/version.js +6 -0
  26. package/dist/m365/connection/commands/connection-remove.js +9 -29
  27. package/dist/m365/connection/commands/connection-use.js +8 -26
  28. package/dist/m365/context/commands/context-init.js +6 -0
  29. package/dist/m365/context/commands/option/option-set.js +9 -18
  30. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +5 -1
  31. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +32 -63
  32. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +21 -45
  33. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +32 -53
  34. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +34 -74
  35. package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +10 -2
  36. package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +37 -57
  37. package/dist/m365/entra/commands/multitenant/multitenant-get.js +8 -1
  38. package/dist/m365/entra/commands/multitenant/multitenant-remove.js +8 -22
  39. package/dist/m365/entra/commands/multitenant/multitenant-set.js +15 -36
  40. package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +10 -31
  41. package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +8 -24
  42. package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +9 -17
  43. package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +9 -17
  44. package/dist/m365/entra/commands/organization/organization-set.js +14 -3
  45. package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +10 -2
  46. package/dist/m365/entra/commands/roledefinition/roledefinition-get.js +10 -2
  47. package/dist/m365/entra/commands/roledefinition/roledefinition-remove.js +10 -2
  48. package/dist/m365/entra/commands/roledefinition/roledefinition-set.js +14 -3
  49. package/dist/m365/entra/commands/user/user-session-revoke.js +5 -1
  50. package/dist/m365/exo/commands/approleassignment/approleassignment-add.js +60 -12
  51. package/dist/m365/flow/commands/environment/environment-get.js +5 -1
  52. package/dist/m365/graph/commands/directoryextension/directoryextension-add.js +5 -1
  53. package/dist/m365/graph/commands/directoryextension/directoryextension-get.js +15 -3
  54. package/dist/m365/graph/commands/directoryextension/directoryextension-list.js +5 -1
  55. package/dist/m365/graph/commands/directoryextension/directoryextension-remove.js +15 -3
  56. package/dist/m365/outlook/commands/calendar/calendar-get.js +1 -1
  57. package/dist/m365/outlook/commands/mail/mail-searchfolder-add.js +5 -1
  58. package/dist/m365/outlook/commands/mailbox/mailbox-settings-get.js +5 -1
  59. package/dist/m365/outlook/commands/mailbox/mailbox-settings-set.js +9 -2
  60. package/dist/m365/pa/commands/environment/environment-get.js +5 -1
  61. package/dist/m365/pp/commands/environment/environment-get.js +5 -1
  62. package/dist/m365/pp/commands/website/website-get.js +5 -1
  63. package/dist/m365/spe/commands/container/container-add.js +5 -1
  64. package/dist/m365/spe/commands/container/container-get.js +54 -26
  65. package/dist/m365/spe/commands/container/container-permission-list.js +43 -4
  66. package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +5 -1
  67. package/dist/m365/spe/commands/container/container-recyclebinitem-remove.js +10 -2
  68. package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +10 -2
  69. package/dist/m365/spe/commands/container/container-remove.js +10 -2
  70. package/dist/m365/spe/commands/container/container-set.js +77 -0
  71. package/dist/m365/spe/commands/containertype/containertype-get.js +5 -1
  72. package/dist/m365/spe/commands/containertype/containertype-remove.js +5 -1
  73. package/dist/m365/spe/commands.js +1 -0
  74. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.0.js +2 -2
  75. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.1.js +2 -2
  76. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.2.js +2 -2
  77. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.0.js +6 -6
  78. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.1.js +6 -6
  79. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.3.js +6 -6
  80. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.10.0.js +9 -9
  81. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.11.0.js +9 -9
  82. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.0.js +9 -9
  83. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.1.js +9 -9
  84. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.0.js +9 -9
  85. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.1.js +9 -9
  86. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.14.0.js +9 -9
  87. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.0.js +9 -9
  88. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.2.js +9 -9
  89. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.0.js +9 -9
  90. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.1.js +9 -9
  91. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.0.js +9 -9
  92. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.1.js +9 -9
  93. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.2.js +10 -10
  94. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.3.js +10 -10
  95. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.4.js +10 -10
  96. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.0.js +9 -9
  97. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.1.js +9 -9
  98. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.2.js +9 -9
  99. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.19.0.js +11 -11
  100. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.2.0.js +6 -6
  101. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.20.0.js +13 -13
  102. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.0.js +13 -13
  103. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.1.js +13 -13
  104. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.0.js +10 -10
  105. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.1.js +10 -10
  106. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.2.js +10 -10
  107. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.0.js +8 -8
  108. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.0.js +6 -6
  109. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.1.js +6 -6
  110. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.2.js +6 -6
  111. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.4.js +7 -7
  112. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.0.js +7 -7
  113. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.1.js +7 -7
  114. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.0.js +7 -7
  115. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.1.js +7 -7
  116. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.6.0.js +7 -7
  117. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.0.js +7 -7
  118. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.1.js +7 -7
  119. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.0.js +8 -8
  120. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.1.js +8 -8
  121. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.2.js +9 -9
  122. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.9.1.js +9 -9
  123. package/dist/m365/spfx/commands/project/project-doctor/rules/DependencyRule.js +4 -4
  124. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001008_DEP_react.js +2 -2
  125. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001009_DEP_react_dom.js +2 -2
  126. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
  127. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001035_DEP_fluentui_react.js +2 -2
  128. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002004_DEVDEP_gulp.js +2 -2
  129. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002007_DEVDEP_ajv.js +2 -2
  130. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002013_DEVDEP_types_webpack_env.js +2 -2
  131. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002015_DEVDEP_types_react.js +2 -2
  132. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
  133. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002019_DEVDEP_microsoft_rush_stack_compiler.js +2 -2
  134. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
  135. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002022_DEVDEP_typescript.js +2 -2
  136. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021001_PKG_spfx_deps_versions_match_project_version.js +2 -2
  137. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021013_PKG_spfx_devdeps_match_version.js +2 -2
  138. package/dist/m365/spfx/commands/project/project-upgrade/rules/DependencyRule.js +7 -7
  139. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001001_DEP_microsoft_sp_core_library.js +2 -2
  140. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001002_DEP_microsoft_sp_lodash_subset.js +2 -2
  141. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core.js +2 -2
  142. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001004_DEP_microsoft_sp_webpart_base.js +2 -2
  143. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001005_DEP_types_react.js +2 -2
  144. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001006_DEP_types_react_dom.js +2 -2
  145. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001007_DEP_types_webpack_env.js +2 -2
  146. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001008_DEP_react.js +2 -2
  147. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001009_DEP_react_dom.js +2 -2
  148. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001010_DEP_types_es6_promise.js +2 -2
  149. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001011_DEP_microsoft_sp_dialog.js +2 -2
  150. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001012_DEP_microsoft_sp_application_base.js +2 -2
  151. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001013_DEP_microsoft_decorators.js +2 -2
  152. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001014_DEP_microsoft_sp_listview_extensibility.js +2 -2
  153. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001015_DEP_types_react_addons_shallow_compare.js +2 -2
  154. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001016_DEP_types_react_addons_update.js +2 -2
  155. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001017_DEP_types_react_addons_update.js +2 -2
  156. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001018_DEP_microsoft_sp_client_base.js +2 -2
  157. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001019_DEP_knockout.js +2 -2
  158. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001020_DEP_types_knockout.js +2 -2
  159. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001021_DEP_microsoft_sp_property_pane.js +2 -2
  160. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
  161. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001023_DEP_microsoft_sp_component_base.js +2 -2
  162. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001024_DEP_microsoft_sp_diagnostics.js +2 -2
  163. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001025_DEP_microsoft_sp_dynamic_data.js +2 -2
  164. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001026_DEP_microsoft_sp_extension_base.js +2 -2
  165. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001027_DEP_microsoft_sp_http.js +2 -2
  166. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001028_DEP_microsoft_sp_list_subscription.js +2 -2
  167. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001029_DEP_microsoft_sp_loader.js +2 -2
  168. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001030_DEP_microsoft_sp_module_interfaces.js +2 -2
  169. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001031_DEP_microsoft_sp_odata_types.js +2 -2
  170. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001032_DEP_microsoft_sp_page_context.js +2 -2
  171. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001033_DEP_tslib.js +2 -2
  172. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js +2 -2
  173. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001035_DEP_fluentui_react.js +2 -2
  174. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002001_DEVDEP_microsoft_sp_build_web.js +2 -2
  175. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js +2 -2
  176. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002003_DEVDEP_microsoft_sp_webpart_workbench.js +2 -2
  177. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002004_DEVDEP_gulp.js +2 -2
  178. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002005_DEVDEP_types_chai.js +2 -2
  179. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002006_DEVDEP_types_mocha.js +2 -2
  180. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002007_DEVDEP_ajv.js +2 -2
  181. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002008_DEVDEP_tslint_microsoft_contrib.js +2 -2
  182. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002009_DEVDEP_microsoft_sp_tslint_rules.js +2 -2
  183. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002010_DEVDEP_microsoft_rush_stack_compiler_2_7.js +2 -2
  184. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002011_DEVDEP_microsoft_rush_stack_compiler_2_9.js +2 -2
  185. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002012_DEVDEP_microsoft_rush_stack_compiler_3_3.js +2 -2
  186. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002013_DEVDEP_types_webpack_env.js +2 -2
  187. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002014_DEVDEP_types_es6_promise.js +2 -2
  188. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002015_DEVDEP_types_react.js +2 -2
  189. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
  190. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7.js +2 -2
  191. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9.js +2 -2
  192. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002019_DEVDEP_spfx_fast_serve_helpers.js +2 -2
  193. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5.js +2 -2
  194. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
  195. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js +2 -2
  196. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js +2 -2
  197. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002024_DEVDEP_eslint.js +2 -2
  198. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002025_DEVDEP_eslint_plugin_react_hooks.js +2 -2
  199. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002026_DEVDEP_typescript.js +2 -2
  200. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002027_DEVDEP_fluentui_react.js +2 -2
  201. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js +2 -2
  202. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js +2 -2
  203. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js +2 -2
  204. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002031_DEVDEP_rushstack_heft.js +2 -2
  205. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +2 -2
  206. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002033_DEVDEP_css_loader.js +2 -2
  207. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js +2 -2
  208. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002035_DEVDEP_types_heft_jest.js +2 -2
  209. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002036_DEVDEP_types_jest.js +2 -2
  210. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003001_CFG_schema.js +2 -2
  211. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003002_CFG_version.js +2 -2
  212. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004001_CFG_CA_schema.js +2 -2
  213. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004002_CFG_CA_deployCdnPath.js +2 -2
  214. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005001_CFG_DAS_schema.js +2 -2
  215. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005002_CFG_DAS_workingDir.js +2 -2
  216. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006001_CFG_PS_schema.js +2 -2
  217. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006002_CFG_PS_includeClientSideAssets.js +2 -2
  218. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006003_CFG_PS_isDomainIsolated.js +2 -2
  219. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006004_CFG_PS_developer.js +2 -2
  220. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007001_CFG_S_schema.js +2 -2
  221. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007002_CFG_S_initialPage.js +2 -2
  222. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008001_CFG_TSL_schema.js +2 -2
  223. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008002_CFG_TSL_removeRule.js +2 -2
  224. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN009001_CFG_WM_schema.js +2 -2
  225. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +2 -2
  226. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +2 -2
  227. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +2 -2
  228. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +2 -2
  229. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +3 -3
  230. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +2 -2
  231. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010009_YORC_sdkVersions_microsoft_graph_client.js +2 -2
  232. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010010_YORC_sdkVersions_teams_js.js +2 -2
  233. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010011_YORC_useGulp.js +2 -2
  234. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011001_MAN_webpart_schema.js +2 -2
  235. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011002_MAN_applicationCustomizer_schema.js +2 -2
  236. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011003_MAN_listViewCommandSet_schema.js +2 -2
  237. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011004_MAN_fieldCustomizer_schema.js +2 -2
  238. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011005_MAN_webpart_defaultGroup.js +3 -3
  239. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011009_MAN_webpart_safeWithCustomScriptDisabled.js +2 -2
  240. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN011011_MAN_webpart_supportedHosts.js +2 -2
  241. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012001_TSC_module.js +2 -2
  242. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012002_TSC_moduleResolution.js +2 -2
  243. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012003_TSC_skipLibCheck.js +2 -2
  244. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012006_TSC_types_es6_collections.js +2 -2
  245. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012011_TSC_outDir.js +2 -2
  246. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012012_TSC_include.js +2 -2
  247. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012013_TSC_exclude.js +3 -3
  248. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012014_TSC_inlineSources.js +2 -2
  249. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012015_TSC_strictNullChecks.js +2 -2
  250. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012016_TSC_noUnusedLocals.js +2 -2
  251. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012017_TSC_extends.js +2 -3
  252. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012019_TSC_types_es6_promise.js +2 -2
  253. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012020_TSC_noImplicitAny.js +2 -2
  254. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014001_CODE_settings_jsonSchemas.js +2 -2
  255. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014003_CODE_launch.js +2 -2
  256. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014004_CODE_settings_jsonSchemas_configJson_url.js +2 -2
  257. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014006_CODE_launch_sourceMapPathOverrides.js +3 -3
  258. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014008_CODE_launch_hostedWorkbench_type.js +2 -2
  259. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014009_CODE_launch_hostedWorkbench_url.js +2 -2
  260. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015001_FILE_typings_tsd_d_ts.js +2 -2
  261. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015002_FILE_typings__ms_odsp_d_ts.js +2 -2
  262. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015003_FILE_tslint_json.js +2 -2
  263. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015004_FILE_config_tslint_json.js +2 -2
  264. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015005_FILE_src_index_ts.js +2 -2
  265. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015007_FILE_config_copy_assets_json.js +2 -2
  266. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +2 -2
  267. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015009_FILE_config_sass_json.js +2 -2
  268. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015010_FILE_gulpfile_js.js +2 -2
  269. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015011_FILE_tsconfig_json.js +2 -2
  270. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015014_FILE_config_rig_json.js +2 -2
  271. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015015_FILE_config_typescript_json.js +2 -2
  272. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015016_FILE_eslint_config_js.js +2 -2
  273. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN016001_TS_msgraphclient_packageName.js +2 -2
  274. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018003_TEAMS_tab20x20_png.js +3 -3
  275. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018004_TEAMS_tab96x96_png.js +3 -3
  276. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN019002_TSL_extends.js +2 -2
  277. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN020001_RES_types_react.js +2 -2
  278. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021001_PKG_main.js +2 -2
  279. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021002_PKG_engines.js +2 -2
  280. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +2 -2
  281. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021004_PKG_scripts_build.js +2 -2
  282. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021005_PKG_scripts_test.js +3 -3
  283. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021006_PKG_scripts_clean.js +2 -2
  284. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021007_PKG_scripts_start.js +2 -2
  285. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021008_PKG_scripts_eject_webpack.js +2 -2
  286. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022001_SCSS_remove_fabric_react.js +2 -2
  287. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022002_SCSS_add_fabric_react.js +3 -3
  288. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN025001_ESLINTRCJS_overrides.js +2 -2
  289. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026001_CFG_SASS_schema.js +2 -2
  290. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026002_CFG_SASS_extends.js +2 -2
  291. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027001_OVERRIDES_rushstack_heft.js +2 -2
  292. package/dist/m365/spfx/commands/project/project-upgrade/rules/FileAddRemoveRule.js +4 -5
  293. package/dist/m365/spfx/commands/project/project-upgrade/rules/PackageRule.js +4 -4
  294. package/dist/m365/spfx/commands/project/project-upgrade/rules/ResolutionRule.js +3 -3
  295. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.0.1.js +2 -2
  296. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.0.2.js +3 -3
  297. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.1.0.js +25 -25
  298. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.1.1.js +7 -7
  299. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.1.3.js +3 -3
  300. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.10.0.js +27 -27
  301. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.11.0.js +36 -36
  302. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.0.js +41 -41
  303. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.1.js +26 -26
  304. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.0.js +36 -36
  305. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.1.js +24 -24
  306. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +26 -26
  307. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.0.js +42 -40
  308. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +31 -31
  309. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0.js +36 -36
  310. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.1.js +29 -27
  311. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.0.js +32 -32
  312. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.1.js +25 -25
  313. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.2.js +28 -28
  314. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.3.js +27 -27
  315. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.4.js +25 -25
  316. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.0.js +33 -33
  317. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.1.js +26 -26
  318. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.2.js +25 -25
  319. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.19.0.js +26 -26
  320. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.2.0.js +29 -29
  321. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.20.0.js +29 -29
  322. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.0.js +31 -31
  323. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.1.js +25 -25
  324. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.0.js +65 -57
  325. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.1.js +26 -26
  326. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.2.js +26 -26
  327. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.0.js +39 -39
  328. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.0.js +19 -19
  329. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.1.js +1 -1
  330. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.2.js +1 -1
  331. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.3.4.js +22 -22
  332. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.4.0.js +30 -30
  333. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.4.1.js +20 -20
  334. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.5.0.js +40 -40
  335. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.5.1.js +21 -21
  336. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.6.0.js +44 -36
  337. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.7.0.js +32 -32
  338. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.7.1.js +25 -25
  339. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.8.0.js +32 -32
  340. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.8.1.js +24 -24
  341. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.8.2.js +31 -31
  342. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.9.1.js +35 -35
  343. package/dist/m365/spo/commands/file/file-version-keep.js +5 -1
  344. package/dist/m365/spo/commands/homesite/homesite-add.js +5 -1
  345. package/dist/m365/spo/commands/homesite/homesite-set.js +9 -2
  346. package/dist/m365/spo/commands/list/list-defaultvalue-clear.js +10 -2
  347. package/dist/m365/spo/commands/list/list-defaultvalue-get.js +5 -1
  348. package/dist/m365/spo/commands/list/list-defaultvalue-list.js +5 -1
  349. package/dist/m365/spo/commands/list/list-defaultvalue-remove.js +5 -1
  350. package/dist/m365/spo/commands/list/list-defaultvalue-set.js +5 -1
  351. package/dist/m365/spo/commands/list/list-view-add.js +17 -4
  352. package/dist/m365/spo/commands/page/page-control-set.js +14 -5
  353. package/dist/m365/spo/commands/page/page-get.js +5 -1
  354. package/dist/m365/spo/commands/web/web-alert-list.js +10 -2
  355. package/dist/m365/spp/commands/autofillcolumn/autofillcolumn-set.js +10 -2
  356. package/dist/m365/spp/commands/model/model-apply.js +10 -2
  357. package/dist/m365/teams/commands/callrecord/callrecord-list.js +5 -1
  358. package/dist/m365/viva/commands/engage/engage-community-user-add.js +20 -4
  359. package/dist/m365/viva/commands/engage/engage-community-user-list.js +10 -2
  360. package/dist/m365/viva/commands/engage/engage-community-user-remove.js +16 -7
  361. package/dist/m365/viva/commands/engage/engage-role-member-add.js +79 -0
  362. package/dist/m365/viva/commands/engage/engage-role-member-list.js +5 -1
  363. package/dist/m365/viva/commands.js +1 -0
  364. package/dist/utils/prompt.js +1 -7
  365. package/docs/docs/cmd/outlook/calendar/calendar-get.mdx +7 -7
  366. package/docs/docs/cmd/spe/container/container-get.mdx +24 -3
  367. package/docs/docs/cmd/spe/container/container-permission-list.mdx +24 -3
  368. package/docs/docs/cmd/spe/container/container-set.mdx +160 -0
  369. package/docs/docs/cmd/spo/app/app-add.mdx +19 -0
  370. package/docs/docs/cmd/spo/app/app-deploy.mdx +21 -0
  371. package/docs/docs/cmd/spo/app/app-get.mdx +19 -0
  372. package/docs/docs/cmd/spo/app/app-install.mdx +21 -0
  373. package/docs/docs/cmd/spo/app/app-instance-list.mdx +19 -0
  374. package/docs/docs/cmd/spo/app/app-list.mdx +19 -0
  375. package/docs/docs/cmd/spo/app/app-remove.mdx +21 -0
  376. package/docs/docs/cmd/spo/app/app-retract.mdx +21 -0
  377. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +21 -0
  378. package/docs/docs/cmd/spo/app/app-uninstall.mdx +21 -0
  379. package/docs/docs/cmd/spo/app/app-upgrade.mdx +21 -0
  380. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +19 -1
  381. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +21 -0
  382. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +19 -0
  383. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +19 -0
  384. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +19 -0
  385. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +21 -0
  386. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +21 -0
  387. package/docs/docs/cmd/spo/page/page-control-set.mdx +18 -3
  388. package/docs/docs/cmd/viva/engage/engage-role-member-add.mdx +76 -0
  389. package/npm-shrinkwrap.json +550 -3172
  390. package/package.json +27 -22
@@ -1,14 +1,13 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _ConnectionUseCommand_instances, _ConnectionUseCommand_initTelemetry, _ConnectionUseCommand_initOptions, _ConnectionUseCommand_initTypes;
1
+ import { z } from 'zod';
7
2
  import auth from '../../../Auth.js';
8
3
  import commands from '../commands.js';
9
- import Command, { CommandError } from '../../../Command.js';
4
+ import Command, { CommandError, globalOptionsZod } from '../../../Command.js';
10
5
  import { formatting } from '../../../utils/formatting.js';
11
6
  import { cli } from '../../../cli/cli.js';
7
+ export const options = z.strictObject({
8
+ ...globalOptionsZod.shape,
9
+ name: z.string().optional().alias('n')
10
+ });
12
11
  class ConnectionUseCommand extends Command {
13
12
  get name() {
14
13
  return commands.USE;
@@ -16,12 +15,8 @@ class ConnectionUseCommand extends Command {
16
15
  get description() {
17
16
  return 'Activate the specified Microsoft 365 tenant connection';
18
17
  }
19
- constructor() {
20
- super();
21
- _ConnectionUseCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _ConnectionUseCommand_instances, "m", _ConnectionUseCommand_initOptions).call(this);
23
- __classPrivateFieldGet(this, _ConnectionUseCommand_instances, "m", _ConnectionUseCommand_initTelemetry).call(this);
24
- __classPrivateFieldGet(this, _ConnectionUseCommand_instances, "m", _ConnectionUseCommand_initTypes).call(this);
18
+ get schema() {
19
+ return options;
25
20
  }
26
21
  async commandAction(logger, args) {
27
22
  let connection;
@@ -55,18 +50,5 @@ class ConnectionUseCommand extends Command {
55
50
  await this.commandAction(logger, args);
56
51
  }
57
52
  }
58
- _ConnectionUseCommand_instances = new WeakSet(), _ConnectionUseCommand_initTelemetry = function _ConnectionUseCommand_initTelemetry() {
59
- this.telemetry.push((args) => {
60
- Object.assign(this.telemetryProperties, {
61
- name: typeof args.options.name !== 'undefined'
62
- });
63
- });
64
- }, _ConnectionUseCommand_initOptions = function _ConnectionUseCommand_initOptions() {
65
- this.options.unshift({
66
- option: '-n, --name [name]'
67
- });
68
- }, _ConnectionUseCommand_initTypes = function _ConnectionUseCommand_initTypes() {
69
- this.types.string.push('name');
70
- };
71
53
  export default new ConnectionUseCommand();
72
54
  //# sourceMappingURL=connection-use.js.map
@@ -1,5 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { globalOptionsZod } from '../../../Command.js';
1
3
  import ContextCommand from '../../base/ContextCommand.js';
2
4
  import commands from '../commands.js';
5
+ export const options = z.strictObject({ ...globalOptionsZod.shape });
3
6
  class ContextInitCommand extends ContextCommand {
4
7
  get name() {
5
8
  return commands.INIT;
@@ -7,6 +10,9 @@ class ContextInitCommand extends ContextCommand {
7
10
  get description() {
8
11
  return 'Initiates CLI for Microsoft 365 context in the current working folder';
9
12
  }
13
+ get schema() {
14
+ return options;
15
+ }
10
16
  async commandAction() {
11
17
  await this.saveContextInfo({});
12
18
  }
@@ -1,13 +1,13 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _ContextOptionSetCommand_instances, _ContextOptionSetCommand_initOptions;
7
1
  import fs from 'fs';
8
- import { CommandError } from '../../../../Command.js';
2
+ import { z } from 'zod';
3
+ import { CommandError, globalOptionsZod } from '../../../../Command.js';
9
4
  import ContextCommand from '../../../base/ContextCommand.js';
10
5
  import commands from '../../commands.js';
6
+ export const options = z.strictObject({
7
+ ...globalOptionsZod.shape,
8
+ name: z.string().alias('n'),
9
+ value: z.string().alias('v')
10
+ });
11
11
  class ContextOptionSetCommand extends ContextCommand {
12
12
  get name() {
13
13
  return commands.OPTION_SET;
@@ -15,10 +15,8 @@ class ContextOptionSetCommand extends ContextCommand {
15
15
  get description() {
16
16
  return 'Allows to add a new name for the option and value to the local context file.';
17
17
  }
18
- constructor() {
19
- super();
20
- _ContextOptionSetCommand_instances.add(this);
21
- __classPrivateFieldGet(this, _ContextOptionSetCommand_instances, "m", _ContextOptionSetCommand_initOptions).call(this);
18
+ get schema() {
19
+ return options;
22
20
  }
23
21
  async commandAction(logger, args) {
24
22
  const filePath = '.m365rc.json';
@@ -60,12 +58,5 @@ class ContextOptionSetCommand extends ContextCommand {
60
58
  }
61
59
  }
62
60
  }
63
- _ContextOptionSetCommand_instances = new WeakSet(), _ContextOptionSetCommand_initOptions = function _ContextOptionSetCommand_initOptions() {
64
- this.options.unshift({
65
- option: '-n, --name <name>'
66
- }, {
67
- option: '-v, --value <value>'
68
- });
69
- };
70
61
  export default new ContextOptionSetCommand();
71
62
  //# sourceMappingURL=option-set.js.map
@@ -23,7 +23,11 @@ class EntraAdministrativeUnitGetCommand extends GraphCommand {
23
23
  getRefinedSchema(schema) {
24
24
  return schema
25
25
  .refine(options => [options.id, options.displayName].filter(Boolean).length === 1, {
26
- error: 'Specify either id or displayName'
26
+ error: 'Specify either id or displayName',
27
+ params: {
28
+ customCode: 'optionSet',
29
+ options: ['id', 'displayName']
30
+ }
27
31
  });
28
32
  }
29
33
  async commandAction(logger, args) {
@@ -1,17 +1,23 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _EntraAdministrativeUnitMemberAddCommand_instances, _EntraAdministrativeUnitMemberAddCommand_initTelemetry, _EntraAdministrativeUnitMemberAddCommand_initOptions, _EntraAdministrativeUnitMemberAddCommand_initValidators, _EntraAdministrativeUnitMemberAddCommand_initOptionSets;
1
+ import { z } from 'zod';
2
+ import { globalOptionsZod } from '../../../../Command.js';
7
3
  import { entraAdministrativeUnit } from "../../../../utils/entraAdministrativeUnit.js";
8
4
  import { entraGroup } from "../../../../utils/entraGroup.js";
9
5
  import { entraUser } from "../../../../utils/entraUser.js";
10
- import { validation } from "../../../../utils/validation.js";
11
6
  import GraphCommand from "../../../base/GraphCommand.js";
12
7
  import commands from "../../commands.js";
13
8
  import request from "../../../../request.js";
14
9
  import { entraDevice } from "../../../../utils/entraDevice.js";
10
+ export const options = z.strictObject({
11
+ ...globalOptionsZod.shape,
12
+ administrativeUnitId: z.uuid().optional().alias('i'),
13
+ administrativeUnitName: z.string().optional().alias('n'),
14
+ userId: z.uuid().optional(),
15
+ userName: z.string().optional(),
16
+ groupId: z.uuid().optional(),
17
+ groupName: z.string().optional(),
18
+ deviceId: z.uuid().optional(),
19
+ deviceName: z.string().optional()
20
+ });
15
21
  class EntraAdministrativeUnitMemberAddCommand extends GraphCommand {
16
22
  get name() {
17
23
  return commands.ADMINISTRATIVEUNIT_MEMBER_ADD;
@@ -19,13 +25,25 @@ class EntraAdministrativeUnitMemberAddCommand extends GraphCommand {
19
25
  get description() {
20
26
  return 'Adds a member (user, group, device) to an administrative unit';
21
27
  }
22
- constructor() {
23
- super();
24
- _EntraAdministrativeUnitMemberAddCommand_instances.add(this);
25
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberAddCommand_instances, "m", _EntraAdministrativeUnitMemberAddCommand_initTelemetry).call(this);
26
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberAddCommand_instances, "m", _EntraAdministrativeUnitMemberAddCommand_initOptions).call(this);
27
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberAddCommand_instances, "m", _EntraAdministrativeUnitMemberAddCommand_initValidators).call(this);
28
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberAddCommand_instances, "m", _EntraAdministrativeUnitMemberAddCommand_initOptionSets).call(this);
28
+ get schema() {
29
+ return options;
30
+ }
31
+ getRefinedSchema(schema) {
32
+ return schema
33
+ .refine(options => [options.administrativeUnitId, options.administrativeUnitName].filter(Boolean).length === 1, {
34
+ error: 'Specify either administrativeUnitId or administrativeUnitName',
35
+ params: {
36
+ customCode: 'optionSet',
37
+ options: ['administrativeUnitId', 'administrativeUnitName']
38
+ }
39
+ })
40
+ .refine(options => [options.userId, options.userName, options.groupId, options.groupName, options.deviceId, options.deviceName].filter(Boolean).length === 1, {
41
+ error: 'Specify either userId, userName, groupId, groupName, deviceId, or deviceName',
42
+ params: {
43
+ customCode: 'optionSet',
44
+ options: ['userId', 'userName', 'groupId', 'groupName', 'deviceId', 'deviceName']
45
+ }
46
+ });
29
47
  }
30
48
  async commandAction(logger, args) {
31
49
  let administrativeUnitId = args.options.administrativeUnitId;
@@ -84,54 +102,5 @@ class EntraAdministrativeUnitMemberAddCommand extends GraphCommand {
84
102
  }
85
103
  }
86
104
  }
87
- _EntraAdministrativeUnitMemberAddCommand_instances = new WeakSet(), _EntraAdministrativeUnitMemberAddCommand_initTelemetry = function _EntraAdministrativeUnitMemberAddCommand_initTelemetry() {
88
- this.telemetry.push((args) => {
89
- Object.assign(this.telemetryProperties, {
90
- userId: typeof args.options.userId !== 'undefined',
91
- userName: typeof args.options.userName !== 'undefined',
92
- groupId: typeof args.options.groupId !== 'undefined',
93
- groupName: typeof args.options.groupName !== 'undefined',
94
- deviceId: typeof args.options.deviceId !== 'undefined',
95
- deviceName: typeof args.options.deviceName !== 'undefined'
96
- });
97
- });
98
- }, _EntraAdministrativeUnitMemberAddCommand_initOptions = function _EntraAdministrativeUnitMemberAddCommand_initOptions() {
99
- this.options.unshift({
100
- option: '-i, --administrativeUnitId [administrativeUnitId]'
101
- }, {
102
- option: '-n, --administrativeUnitName [administrativeUnitName]'
103
- }, {
104
- option: "--userId [userId]"
105
- }, {
106
- option: "--userName [userName]"
107
- }, {
108
- option: "--groupId [groupId]"
109
- }, {
110
- option: "--groupName [groupName]"
111
- }, {
112
- option: "--deviceId [deviceId]"
113
- }, {
114
- option: "--deviceName [deviceName]"
115
- });
116
- }, _EntraAdministrativeUnitMemberAddCommand_initValidators = function _EntraAdministrativeUnitMemberAddCommand_initValidators() {
117
- this.validators.push(async (args) => {
118
- if (args.options.administrativeUnitId && !validation.isValidGuid(args.options.administrativeUnitId)) {
119
- return `${args.options.administrativeUnitId} is not a valid GUID`;
120
- }
121
- if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
122
- return `${args.options.userId} is not a valid GUID`;
123
- }
124
- if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
125
- return `${args.options.groupId} is not a valid GUID`;
126
- }
127
- if (args.options.deviceId && !validation.isValidGuid(args.options.deviceId)) {
128
- return `${args.options.deviceId} is not a valid GUID`;
129
- }
130
- return true;
131
- });
132
- }, _EntraAdministrativeUnitMemberAddCommand_initOptionSets = function _EntraAdministrativeUnitMemberAddCommand_initOptionSets() {
133
- this.optionSets.push({ options: ['administrativeUnitId', 'administrativeUnitName'] });
134
- this.optionSets.push({ options: ['userId', 'userName', 'groupId', 'groupName', 'deviceId', 'deviceName'] });
135
- };
136
105
  export default new EntraAdministrativeUnitMemberAddCommand();
137
106
  //# sourceMappingURL=administrativeunit-member-add.js.map
@@ -1,14 +1,16 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _EntraAdministrativeUnitMemberGetCommand_instances, _EntraAdministrativeUnitMemberGetCommand_initTelemetry, _EntraAdministrativeUnitMemberGetCommand_initOptions, _EntraAdministrativeUnitMemberGetCommand_initValidators, _EntraAdministrativeUnitMemberGetCommand_initOptionSets;
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
- import { validation } from '../../../../utils/validation.js';
10
5
  import { entraAdministrativeUnit } from '../../../../utils/entraAdministrativeUnit.js';
11
6
  import request from '../../../../request.js';
7
+ export const options = z.strictObject({
8
+ ...globalOptionsZod.shape,
9
+ id: z.uuid().alias('i'),
10
+ administrativeUnitId: z.uuid().optional().alias('u'),
11
+ administrativeUnitName: z.string().optional().alias('n'),
12
+ properties: z.string().optional().alias('p')
13
+ });
12
14
  class EntraAdministrativeUnitMemberGetCommand extends GraphCommand {
13
15
  get name() {
14
16
  return commands.ADMINISTRATIVEUNIT_MEMBER_GET;
@@ -16,13 +18,18 @@ class EntraAdministrativeUnitMemberGetCommand extends GraphCommand {
16
18
  get description() {
17
19
  return 'Retrieve a specific member (user, group, or device) of an administrative unit';
18
20
  }
19
- constructor() {
20
- super();
21
- _EntraAdministrativeUnitMemberGetCommand_instances.add(this);
22
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberGetCommand_instances, "m", _EntraAdministrativeUnitMemberGetCommand_initTelemetry).call(this);
23
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberGetCommand_instances, "m", _EntraAdministrativeUnitMemberGetCommand_initOptions).call(this);
24
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberGetCommand_instances, "m", _EntraAdministrativeUnitMemberGetCommand_initValidators).call(this);
25
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberGetCommand_instances, "m", _EntraAdministrativeUnitMemberGetCommand_initOptionSets).call(this);
21
+ get schema() {
22
+ return options;
23
+ }
24
+ getRefinedSchema(schema) {
25
+ return schema
26
+ .refine(options => [options.administrativeUnitId, options.administrativeUnitName].filter(Boolean).length === 1, {
27
+ error: 'Specify either administrativeUnitId or administrativeUnitName',
28
+ params: {
29
+ customCode: 'optionSet',
30
+ options: ['administrativeUnitId', 'administrativeUnitName']
31
+ }
32
+ });
26
33
  }
27
34
  async commandAction(logger, args) {
28
35
  let administrativeUnitId = args.options.administrativeUnitId;
@@ -77,36 +84,5 @@ class EntraAdministrativeUnitMemberGetCommand extends GraphCommand {
77
84
  return `${this.resource}/v1.0/directory/administrativeUnits/${administrativeUnitId}/members/${memberId}${queryString}`;
78
85
  }
79
86
  }
80
- _EntraAdministrativeUnitMemberGetCommand_instances = new WeakSet(), _EntraAdministrativeUnitMemberGetCommand_initTelemetry = function _EntraAdministrativeUnitMemberGetCommand_initTelemetry() {
81
- this.telemetry.push((args) => {
82
- Object.assign(this.telemetryProperties, {
83
- administrativeUnitId: typeof args.options.administrativeUnitId !== 'undefined',
84
- administrativeUnitName: typeof args.options.administrativeUnitName !== 'undefined',
85
- properties: typeof args.options.properties !== 'undefined'
86
- });
87
- });
88
- }, _EntraAdministrativeUnitMemberGetCommand_initOptions = function _EntraAdministrativeUnitMemberGetCommand_initOptions() {
89
- this.options.unshift({
90
- option: '-i, --id <id>'
91
- }, {
92
- option: '-u, --administrativeUnitId [administrativeUnitId]'
93
- }, {
94
- option: '-n, --administrativeUnitName [administrativeUnitName]'
95
- }, {
96
- option: '-p, --properties [properties]'
97
- });
98
- }, _EntraAdministrativeUnitMemberGetCommand_initValidators = function _EntraAdministrativeUnitMemberGetCommand_initValidators() {
99
- this.validators.push(async (args) => {
100
- if (args.options.id && !validation.isValidGuid(args.options.id)) {
101
- return `${args.options.id} is not a valid GUID`;
102
- }
103
- if (args.options.administrativeUnitId && !validation.isValidGuid(args.options.administrativeUnitId)) {
104
- return `${args.options.administrativeUnitId} is not a valid GUID`;
105
- }
106
- return true;
107
- });
108
- }, _EntraAdministrativeUnitMemberGetCommand_initOptionSets = function _EntraAdministrativeUnitMemberGetCommand_initOptionSets() {
109
- this.optionSets.push({ options: ['administrativeUnitId', 'administrativeUnitName'] });
110
- };
111
87
  export default new EntraAdministrativeUnitMemberGetCommand();
112
88
  //# sourceMappingURL=administrativeunit-member-get.js.map
@@ -1,14 +1,24 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _EntraAdministrativeUnitMemberListCommand_instances, _EntraAdministrativeUnitMemberListCommand_initTelemetry, _EntraAdministrativeUnitMemberListCommand_initOptions, _EntraAdministrativeUnitMemberListCommand_initValidators, _EntraAdministrativeUnitMemberListCommand_initOptionSets;
1
+ import { z } from 'zod';
2
+ import { globalOptionsZod } from '../../../../Command.js';
7
3
  import { odata } from '../../../../utils/odata.js';
8
4
  import GraphCommand from '../../../base/GraphCommand.js';
9
5
  import commands from '../../commands.js';
10
6
  import { entraAdministrativeUnit } from '../../../../utils/entraAdministrativeUnit.js';
11
- import { validation } from '../../../../utils/validation.js';
7
+ import { zod } from '../../../../utils/zod.js';
8
+ var MemberType;
9
+ (function (MemberType) {
10
+ MemberType["User"] = "user";
11
+ MemberType["Group"] = "group";
12
+ MemberType["Device"] = "device";
13
+ })(MemberType || (MemberType = {}));
14
+ export const options = z.strictObject({
15
+ ...globalOptionsZod.shape,
16
+ administrativeUnitId: z.uuid().optional().alias('i'),
17
+ administrativeUnitName: z.string().optional().alias('n'),
18
+ type: zod.coercedEnum(MemberType).optional().alias('t'),
19
+ properties: z.string().optional().alias('p'),
20
+ filter: z.string().optional().alias('f')
21
+ });
12
22
  class EntraAdministrativeUnitMemberListCommand extends GraphCommand {
13
23
  get name() {
14
24
  return commands.ADMINISTRATIVEUNIT_MEMBER_LIST;
@@ -19,13 +29,21 @@ class EntraAdministrativeUnitMemberListCommand extends GraphCommand {
19
29
  defaultProperties() {
20
30
  return ['id', 'displayName'];
21
31
  }
22
- constructor() {
23
- super();
24
- _EntraAdministrativeUnitMemberListCommand_instances.add(this);
25
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberListCommand_instances, "m", _EntraAdministrativeUnitMemberListCommand_initTelemetry).call(this);
26
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberListCommand_instances, "m", _EntraAdministrativeUnitMemberListCommand_initOptions).call(this);
27
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberListCommand_instances, "m", _EntraAdministrativeUnitMemberListCommand_initValidators).call(this);
28
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberListCommand_instances, "m", _EntraAdministrativeUnitMemberListCommand_initOptionSets).call(this);
32
+ get schema() {
33
+ return options;
34
+ }
35
+ getRefinedSchema(schema) {
36
+ return schema
37
+ .refine(options => [options.administrativeUnitId, options.administrativeUnitName].filter(Boolean).length === 1, {
38
+ error: 'Specify either administrativeUnitId or administrativeUnitName',
39
+ params: {
40
+ customCode: 'optionSet',
41
+ options: ['administrativeUnitId', 'administrativeUnitName']
42
+ }
43
+ })
44
+ .refine(options => !options.filter || options.type, {
45
+ error: 'Filter can be specified only if type is set'
46
+ });
29
47
  }
30
48
  async commandAction(logger, args) {
31
49
  let administrativeUnitId = args.options.administrativeUnitId;
@@ -95,44 +113,5 @@ class EntraAdministrativeUnitMemberListCommand extends GraphCommand {
95
113
  : `${this.resource}/v1.0/directory/administrativeUnits/${administrativeUnitId}/members${queryString}`;
96
114
  }
97
115
  }
98
- _EntraAdministrativeUnitMemberListCommand_instances = new WeakSet(), _EntraAdministrativeUnitMemberListCommand_initTelemetry = function _EntraAdministrativeUnitMemberListCommand_initTelemetry() {
99
- this.telemetry.push((args) => {
100
- Object.assign(this.telemetryProperties, {
101
- type: typeof args.options.type !== 'undefined',
102
- properties: typeof args.options.properties !== 'undefined',
103
- filter: typeof args.options.filter !== 'undefined'
104
- });
105
- });
106
- }, _EntraAdministrativeUnitMemberListCommand_initOptions = function _EntraAdministrativeUnitMemberListCommand_initOptions() {
107
- this.options.unshift({
108
- option: '-i, --administrativeUnitId [administrativeUnitId]'
109
- }, {
110
- option: '-n, --administrativeUnitName [administrativeUnitName]'
111
- }, {
112
- option: '-t, --type [type]',
113
- autocomplete: ['user', 'group', 'device']
114
- }, {
115
- option: '-p, --properties [properties]'
116
- }, {
117
- option: '-f, --filter [filter]'
118
- });
119
- }, _EntraAdministrativeUnitMemberListCommand_initValidators = function _EntraAdministrativeUnitMemberListCommand_initValidators() {
120
- this.validators.push(async (args) => {
121
- if (args.options.administrativeUnitId && !validation.isValidGuid(args.options.administrativeUnitId)) {
122
- return `${args.options.administrativeUnitId} is not a valid GUID`;
123
- }
124
- if (args.options.type) {
125
- if (['user', 'group', 'device'].every(type => type !== args.options.type)) {
126
- return `${args.options.type} is not a valid type value. Allowed values user|group|device`;
127
- }
128
- }
129
- if (args.options.filter && !args.options.type) {
130
- return 'Filter can be specified only if type is set';
131
- }
132
- return true;
133
- });
134
- }, _EntraAdministrativeUnitMemberListCommand_initOptionSets = function _EntraAdministrativeUnitMemberListCommand_initOptionSets() {
135
- this.optionSets.push({ options: ['administrativeUnitId', 'administrativeUnitName'] });
136
- };
137
116
  export default new EntraAdministrativeUnitMemberListCommand();
138
117
  //# sourceMappingURL=administrativeunit-member-list.js.map
@@ -1,18 +1,26 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _EntraAdministrativeUnitMemberRemoveCommand_instances, _EntraAdministrativeUnitMemberRemoveCommand_initTelemetry, _EntraAdministrativeUnitMemberRemoveCommand_initOptions, _EntraAdministrativeUnitMemberRemoveCommand_initValidators, _EntraAdministrativeUnitMemberRemoveCommand_initOptionSets;
1
+ import { z } from 'zod';
2
+ import { globalOptionsZod } from '../../../../Command.js';
7
3
  import { entraAdministrativeUnit } from '../../../../utils/entraAdministrativeUnit.js';
8
4
  import { entraDevice } from '../../../../utils/entraDevice.js';
9
5
  import { entraGroup } from '../../../../utils/entraGroup.js';
10
6
  import { entraUser } from '../../../../utils/entraUser.js';
11
- import { validation } from '../../../../utils/validation.js';
12
7
  import GraphCommand from '../../../base/GraphCommand.js';
13
8
  import commands from '../../commands.js';
14
9
  import request from '../../../../request.js';
15
10
  import { cli } from '../../../../cli/cli.js';
11
+ export const options = z.strictObject({
12
+ ...globalOptionsZod.shape,
13
+ id: z.uuid().optional().alias('i'),
14
+ userId: z.uuid().optional(),
15
+ userName: z.string().optional(),
16
+ groupId: z.uuid().optional(),
17
+ groupName: z.string().optional(),
18
+ deviceId: z.uuid().optional(),
19
+ deviceName: z.string().optional(),
20
+ administrativeUnitId: z.uuid().optional(),
21
+ administrativeUnitName: z.string().optional(),
22
+ force: z.boolean().optional().alias('f')
23
+ });
16
24
  class EntraAdministrativeUnitMemberRemoveCommand extends GraphCommand {
17
25
  get name() {
18
26
  return commands.ADMINISTRATIVEUNIT_MEMBER_REMOVE;
@@ -20,13 +28,25 @@ class EntraAdministrativeUnitMemberRemoveCommand extends GraphCommand {
20
28
  get description() {
21
29
  return 'Remove a specific member (user, group, or device) from an administrative unit';
22
30
  }
23
- constructor() {
24
- super();
25
- _EntraAdministrativeUnitMemberRemoveCommand_instances.add(this);
26
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberRemoveCommand_instances, "m", _EntraAdministrativeUnitMemberRemoveCommand_initOptions).call(this);
27
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberRemoveCommand_instances, "m", _EntraAdministrativeUnitMemberRemoveCommand_initValidators).call(this);
28
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberRemoveCommand_instances, "m", _EntraAdministrativeUnitMemberRemoveCommand_initOptionSets).call(this);
29
- __classPrivateFieldGet(this, _EntraAdministrativeUnitMemberRemoveCommand_instances, "m", _EntraAdministrativeUnitMemberRemoveCommand_initTelemetry).call(this);
31
+ get schema() {
32
+ return options;
33
+ }
34
+ getRefinedSchema(schema) {
35
+ return schema
36
+ .refine(options => [options.administrativeUnitId, options.administrativeUnitName].filter(Boolean).length === 1, {
37
+ error: 'Specify either administrativeUnitId or administrativeUnitName',
38
+ params: {
39
+ customCode: 'optionSet',
40
+ options: ['administrativeUnitId', 'administrativeUnitName']
41
+ }
42
+ })
43
+ .refine(options => [options.id, options.userId, options.userName, options.groupId, options.groupName, options.deviceId, options.deviceName].filter(Boolean).length === 1, {
44
+ error: 'Specify either id, userId, userName, groupId, groupName, deviceId, or deviceName',
45
+ params: {
46
+ customCode: 'optionSet',
47
+ options: ['id', 'userId', 'userName', 'groupId', 'groupName', 'deviceId', 'deviceName']
48
+ }
49
+ });
30
50
  }
31
51
  async commandAction(logger, args) {
32
52
  const removeAdministrativeUnitMember = async () => {
@@ -89,65 +109,5 @@ class EntraAdministrativeUnitMemberRemoveCommand extends GraphCommand {
89
109
  }
90
110
  }
91
111
  }
92
- _EntraAdministrativeUnitMemberRemoveCommand_instances = new WeakSet(), _EntraAdministrativeUnitMemberRemoveCommand_initTelemetry = function _EntraAdministrativeUnitMemberRemoveCommand_initTelemetry() {
93
- this.telemetry.push((args) => {
94
- Object.assign(this.telemetryProperties, {
95
- id: typeof args.options.id !== 'undefined',
96
- userId: typeof args.options.userId !== 'undefined',
97
- userName: typeof args.options.userName !== 'undefined',
98
- groupId: typeof args.options.groupId !== 'undefined',
99
- groupName: typeof args.options.groupName !== 'undefined',
100
- deviceId: typeof args.options.deviceId !== 'undefined',
101
- deviceName: typeof args.options.deviceName !== 'undefined',
102
- administrativeUnitId: typeof args.options.administrativeUnitId !== 'undefined',
103
- administrativeUnitName: typeof args.options.administrativeUnitName !== 'undefined',
104
- force: !!args.options.force
105
- });
106
- });
107
- }, _EntraAdministrativeUnitMemberRemoveCommand_initOptions = function _EntraAdministrativeUnitMemberRemoveCommand_initOptions() {
108
- this.options.unshift({
109
- option: '-i, --id [id]'
110
- }, {
111
- option: "--userId [userId]"
112
- }, {
113
- option: "--userName [userName]"
114
- }, {
115
- option: "--groupId [groupId]"
116
- }, {
117
- option: "--groupName [groupName]"
118
- }, {
119
- option: "--deviceId [deviceId]"
120
- }, {
121
- option: "--deviceName [deviceName]"
122
- }, {
123
- option: '--administrativeUnitId [administrativeUnitId]'
124
- }, {
125
- option: '--administrativeUnitName [administrativeUnitName]'
126
- }, {
127
- option: '-f, --force'
128
- });
129
- }, _EntraAdministrativeUnitMemberRemoveCommand_initValidators = function _EntraAdministrativeUnitMemberRemoveCommand_initValidators() {
130
- this.validators.push(async (args) => {
131
- if (args.options.administrativeUnitId && !validation.isValidGuid(args.options.administrativeUnitId)) {
132
- return `${args.options.administrativeUnitId} is not a valid GUID`;
133
- }
134
- if (args.options.id && !validation.isValidGuid(args.options.id)) {
135
- return `${args.options.id} is not a valid GUID`;
136
- }
137
- if (args.options.userId && !validation.isValidGuid(args.options.userId)) {
138
- return `${args.options.userId} is not a valid GUID`;
139
- }
140
- if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
141
- return `${args.options.groupId} is not a valid GUID`;
142
- }
143
- if (args.options.deviceId && !validation.isValidGuid(args.options.deviceId)) {
144
- return `${args.options.deviceId} is not a valid GUID`;
145
- }
146
- return true;
147
- });
148
- }, _EntraAdministrativeUnitMemberRemoveCommand_initOptionSets = function _EntraAdministrativeUnitMemberRemoveCommand_initOptionSets() {
149
- this.optionSets.push({ options: ['administrativeUnitId', 'administrativeUnitName'] });
150
- this.optionSets.push({ options: ['id', 'userId', 'userName', 'groupId', 'groupName', 'deviceId', 'deviceName'] });
151
- };
152
112
  export default new EntraAdministrativeUnitMemberRemoveCommand();
153
113
  //# sourceMappingURL=administrativeunit-member-remove.js.map
@@ -24,10 +24,18 @@ class EntraAdministrativeUnitRemoveCommand extends GraphCommand {
24
24
  getRefinedSchema(schema) {
25
25
  return schema
26
26
  .refine(options => options.id || options.displayName, {
27
- error: 'Specify either id or displayName'
27
+ error: 'Specify either id or displayName',
28
+ params: {
29
+ customCode: 'optionSet',
30
+ options: ['id', 'displayName']
31
+ }
28
32
  })
29
33
  .refine(options => !(options.id && options.displayName), {
30
- error: 'Specify either id or displayName but not both'
34
+ error: 'Specify either id or displayName but not both',
35
+ params: {
36
+ customCode: 'optionSet',
37
+ options: ['id', 'displayName']
38
+ }
31
39
  });
32
40
  }
33
41
  async commandAction(logger, args) {