@pnp/cli-microsoft365 7.0.0-beta.093ef31 → 7.0.0-beta.14c7857

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 (159) hide show
  1. package/README.md +4 -4
  2. package/dist/Auth.js +10 -1
  3. package/dist/cli/Cli.js +3 -3
  4. package/dist/m365/aad/commands/app/app-get.js +4 -1
  5. package/dist/m365/aad/commands/app/app-remove.js +3 -1
  6. package/dist/m365/aad/commands/app/app-role-add.js +4 -1
  7. package/dist/m365/aad/commands/app/app-role-list.js +4 -1
  8. package/dist/m365/aad/commands/app/app-role-remove.js +5 -2
  9. package/dist/m365/aad/commands/app/app-set.js +8 -5
  10. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -6
  11. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -4
  12. package/dist/m365/aad/commands/group/group-get.js +4 -4
  13. package/dist/m365/aad/commands/group/group-list.js +1 -23
  14. package/dist/m365/aad/commands/group/group-remove.js +98 -0
  15. package/dist/m365/aad/commands/m365group/m365group-add.js +21 -12
  16. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-remove.js +3 -1
  17. package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-restore.js +4 -1
  18. package/dist/m365/aad/commands/m365group/m365group-teamify.js +4 -1
  19. package/dist/m365/aad/commands/sp/sp-add.js +4 -1
  20. package/dist/m365/aad/commands/sp/sp-get.js +4 -1
  21. package/dist/m365/aad/commands/user/user-get.js +7 -2
  22. package/dist/m365/aad/commands.js +1 -0
  23. package/dist/m365/booking/commands/business/business-get.js +4 -1
  24. package/dist/m365/commands/login.js +2 -2
  25. package/dist/m365/graph/commands/subscription/subscription-add.js +5 -5
  26. package/dist/m365/outlook/commands/message/message-list.js +4 -2
  27. package/dist/m365/outlook/commands/message/message-move.js +4 -2
  28. package/dist/m365/pa/commands/app/app-export.js +7 -7
  29. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -1
  30. package/dist/m365/planner/commands/bucket/bucket-get.js +9 -2
  31. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -1
  32. package/dist/m365/planner/commands/bucket/bucket-remove.js +7 -2
  33. package/dist/m365/planner/commands/bucket/bucket-set.js +8 -2
  34. package/dist/m365/planner/commands/plan/plan-add.js +4 -1
  35. package/dist/m365/planner/commands/plan/plan-get.js +4 -1
  36. package/dist/m365/planner/commands/plan/plan-list.js +4 -1
  37. package/dist/m365/planner/commands/plan/plan-remove.js +4 -1
  38. package/dist/m365/planner/commands/plan/plan-set.js +4 -1
  39. package/dist/m365/planner/commands/roster/roster-get.js +4 -1
  40. package/dist/m365/planner/commands/roster/roster-member-add.js +4 -1
  41. package/dist/m365/planner/commands/roster/roster-member-get.js +4 -1
  42. package/dist/m365/planner/commands/roster/roster-member-list.js +4 -1
  43. package/dist/m365/planner/commands/roster/roster-member-remove.js +4 -1
  44. package/dist/m365/planner/commands/roster/roster-plan-list.js +4 -1
  45. package/dist/m365/planner/commands/roster/roster-remove.js +4 -1
  46. package/dist/m365/planner/commands/task/task-add.js +4 -1
  47. package/dist/m365/planner/commands/task/task-checklistitem-add.js +4 -1
  48. package/dist/m365/planner/commands/task/task-checklistitem-list.js +4 -1
  49. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +4 -1
  50. package/dist/m365/planner/commands/task/task-get.js +11 -3
  51. package/dist/m365/planner/commands/task/task-list.js +10 -2
  52. package/dist/m365/planner/commands/task/task-reference-add.js +4 -1
  53. package/dist/m365/planner/commands/task/task-reference-list.js +4 -1
  54. package/dist/m365/planner/commands/task/task-reference-remove.js +4 -1
  55. package/dist/m365/planner/commands/task/task-remove.js +10 -4
  56. package/dist/m365/planner/commands/task/task-set.js +4 -1
  57. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +4 -1
  58. package/dist/m365/pp/commands/card/card-get.js +3 -5
  59. package/dist/m365/pp/commands/chatbot/chatbot-get.js +3 -1
  60. package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -1
  61. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -1
  62. package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.5.js → doctor-1.18.0.js} +2 -2
  63. package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
  64. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +1 -1
  65. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js +13 -0
  66. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.5.js → upgrade-1.18.0.js} +35 -27
  67. package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
  68. package/dist/m365/spfx/commands/spfx-doctor.js +3 -3
  69. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +5 -3
  70. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +2 -2
  71. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +3 -2
  72. package/dist/m365/spo/commands/commandset/commandset-get.js +4 -2
  73. package/dist/m365/spo/commands/commandset/commandset-remove.js +2 -1
  74. package/dist/m365/spo/commands/commandset/commandset-set.js +3 -1
  75. package/dist/m365/spo/commands/customaction/customaction-get.js +5 -2
  76. package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -1
  77. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +3 -1
  78. package/dist/m365/spo/commands/file/file-get.js +11 -8
  79. package/dist/m365/spo/commands/file/file-remove.js +2 -2
  80. package/dist/m365/spo/commands/file/file-version-clear.js +2 -2
  81. package/dist/m365/spo/commands/file/file-version-get.js +2 -2
  82. package/dist/m365/spo/commands/file/file-version-list.js +2 -2
  83. package/dist/m365/spo/commands/file/file-version-remove.js +2 -2
  84. package/dist/m365/spo/commands/file/file-version-restore.js +2 -2
  85. package/dist/m365/spo/commands/group/group-member-add.js +24 -24
  86. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -4
  87. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +4 -1
  88. package/dist/m365/spo/commands/hubsite/hubsite-get.js +3 -1
  89. package/dist/m365/spo/commands/listitem/listitem-add.js +1 -0
  90. package/dist/m365/spo/commands/listitem/listitem-set.js +3 -2
  91. package/dist/m365/spo/commands/page/clientsidepages.js +18 -0
  92. package/dist/m365/spo/commands/page/page-get.js +1 -0
  93. package/dist/m365/spo/commands/page/page-list.js +4 -3
  94. package/dist/m365/spo/commands/page/page-section-add.js +56 -21
  95. package/dist/m365/spo/commands/page/page-set.js +13 -2
  96. package/dist/m365/spo/commands/site/site-commsite-enable.js +34 -5
  97. package/dist/m365/spo/commands/site/site-list.js +5 -7
  98. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
  99. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +8 -3
  100. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +3 -2
  101. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +2 -1
  102. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +3 -2
  103. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +8 -3
  104. package/dist/m365/spo/commands/tenant/tenant-commandset-list.js +3 -2
  105. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -1
  106. package/dist/m365/spo/commands/term/term-get.js +6 -6
  107. package/dist/m365/teams/commands/app/app-remove.js +49 -15
  108. package/dist/m365/teams/commands/channel/channel-add.js +5 -1
  109. package/dist/m365/teams/commands/channel/channel-member-add.js +12 -10
  110. package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -1
  111. package/dist/m365/teams/commands/channel/channel-member-set.js +4 -1
  112. package/dist/m365/teams/commands/chat/chat-get.js +7 -10
  113. package/dist/m365/teams/commands/chat/chat-message-send.js +8 -10
  114. package/dist/m365/teams/commands/team/team-clone.js +5 -10
  115. package/dist/m365/teams/commands/team/team-list.js +94 -30
  116. package/dist/m365/tenant/commands/info/info-get.js +83 -0
  117. package/dist/m365/tenant/commands.js +1 -0
  118. package/dist/utils/aadGroup.js +5 -3
  119. package/dist/utils/formatting.js +7 -0
  120. package/dist/utils/powerPlatform.js +1 -1
  121. package/docs/docs/cmd/aad/app/app-set.mdx +15 -15
  122. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +9 -9
  123. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +10 -10
  124. package/docs/docs/cmd/aad/group/group-get.mdx +5 -5
  125. package/docs/docs/cmd/aad/group/group-list.mdx +0 -11
  126. package/docs/docs/cmd/aad/group/group-remove.mdx +44 -0
  127. package/docs/docs/cmd/aad/m365group/m365group-add.mdx +13 -3
  128. package/docs/docs/cmd/aad/policy/policy-list.mdx +5 -5
  129. package/docs/docs/cmd/cli/config/config-list.mdx +1 -1
  130. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +10 -10
  131. package/docs/docs/cmd/pa/app/app-export.mdx +5 -5
  132. package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +2 -2
  133. package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +2 -2
  134. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  135. package/docs/docs/cmd/spo/file/file-get.mdx +2 -2
  136. package/docs/docs/cmd/spo/file/file-remove.mdx +2 -2
  137. package/docs/docs/cmd/spo/file/file-version-clear.mdx +2 -2
  138. package/docs/docs/cmd/spo/file/file-version-get.mdx +2 -2
  139. package/docs/docs/cmd/spo/file/file-version-list.mdx +2 -2
  140. package/docs/docs/cmd/spo/file/file-version-remove.mdx +2 -2
  141. package/docs/docs/cmd/spo/file/file-version-restore.mdx +2 -2
  142. package/docs/docs/cmd/spo/group/group-member-add.mdx +27 -27
  143. package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +1 -1
  144. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +2 -5
  145. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +2 -5
  146. package/docs/docs/cmd/spo/page/page-get.mdx +0 -1
  147. package/docs/docs/cmd/spo/page/page-list.mdx +0 -1
  148. package/docs/docs/cmd/spo/page/page-section-add.mdx +25 -1
  149. package/docs/docs/cmd/spo/page/page-set.mdx +23 -0
  150. package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +11 -2
  151. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +2 -4
  152. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +2 -4
  153. package/docs/docs/cmd/teams/app/app-remove.mdx +9 -6
  154. package/docs/docs/cmd/teams/channel/channel-member-add.mdx +4 -4
  155. package/docs/docs/cmd/teams/team/team-clone.mdx +3 -3
  156. package/docs/docs/cmd/teams/team/team-list.mdx +47 -22
  157. package/docs/docs/cmd/tenant/info/info-get.mdx +101 -0
  158. package/npm-shrinkwrap.json +24 -24
  159. package/package.json +8 -12
@@ -67,7 +67,7 @@ class SpfxProjectDoctorCommand extends BaseProjectCommand {
67
67
  '1.17.2',
68
68
  '1.17.3',
69
69
  '1.17.4',
70
- '1.18.0-beta.5'
70
+ '1.18.0'
71
71
  ];
72
72
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
73
73
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
@@ -2,7 +2,7 @@ import { spfx } from "../../../../../../utils/spfx.js";
2
2
  import { DependencyRule } from "./DependencyRule.js";
3
3
  export class FN001022_DEP_office_ui_fabric_react extends DependencyRule {
4
4
  constructor(packageVersion, add = true) {
5
- super('office-ui-fabric-react', packageVersion, false, add);
5
+ super('office-ui-fabric-react', packageVersion, false, true, add);
6
6
  }
7
7
  get id() {
8
8
  return 'FN001022';
@@ -0,0 +1,13 @@
1
+ import { DependencyRule } from "./DependencyRule.js";
2
+ export class FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7 extends DependencyRule {
3
+ constructor(packageVersion) {
4
+ super('@microsoft/rush-stack-compiler-4.7', packageVersion, true);
5
+ }
6
+ get id() {
7
+ return 'FN002028';
8
+ }
9
+ get supersedes() {
10
+ return ['FN002010', 'FN002011', 'FN002012', 'FN002017', 'FN002018', 'FN002020'];
11
+ }
12
+ }
13
+ //# sourceMappingURL=FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js.map
@@ -24,36 +24,44 @@ import { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_
24
24
  import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
25
25
  import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
26
26
  import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
27
+ import { FN002026_DEVDEP_typescript } from './rules/FN002026_DEVDEP_typescript.js';
28
+ import { FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7 } from './rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js';
27
29
  import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
28
30
  import { FN010010_YORC_sdkVersions_teams_js } from './rules/FN010010_YORC_sdkVersions_teams_js.js';
31
+ import { FN012017_TSC_extends } from './rules/FN012017_TSC_extends.js';
32
+ import { FN021003_PKG_engines_node } from './rules/FN021003_PKG_engines_node.js';
29
33
  export default [
30
- new FN001001_DEP_microsoft_sp_core_library('1.18.0-beta.5'),
31
- new FN001002_DEP_microsoft_sp_lodash_subset('1.18.0-beta.5'),
32
- new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.18.0-beta.5'),
33
- new FN001004_DEP_microsoft_sp_webpart_base('1.18.0-beta.5'),
34
- new FN001011_DEP_microsoft_sp_dialog('1.18.0-beta.5'),
35
- new FN001012_DEP_microsoft_sp_application_base('1.18.0-beta.5'),
36
- new FN001014_DEP_microsoft_sp_listview_extensibility('1.18.0-beta.5'),
37
- new FN001021_DEP_microsoft_sp_property_pane('1.18.0-beta.5'),
34
+ new FN001001_DEP_microsoft_sp_core_library('1.18.0'),
35
+ new FN001002_DEP_microsoft_sp_lodash_subset('1.18.0'),
36
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.18.0'),
37
+ new FN001004_DEP_microsoft_sp_webpart_base('1.18.0'),
38
+ new FN001011_DEP_microsoft_sp_dialog('1.18.0'),
39
+ new FN001012_DEP_microsoft_sp_application_base('1.18.0'),
40
+ new FN001014_DEP_microsoft_sp_listview_extensibility('1.18.0'),
41
+ new FN001021_DEP_microsoft_sp_property_pane('1.18.0'),
38
42
  new FN001022_DEP_office_ui_fabric_react('', false),
39
- new FN001023_DEP_microsoft_sp_component_base('1.18.0-beta.5'),
40
- new FN001024_DEP_microsoft_sp_diagnostics('1.18.0-beta.5'),
41
- new FN001025_DEP_microsoft_sp_dynamic_data('1.18.0-beta.5'),
42
- new FN001026_DEP_microsoft_sp_extension_base('1.18.0-beta.5'),
43
- new FN001027_DEP_microsoft_sp_http('1.18.0-beta.5'),
44
- new FN001028_DEP_microsoft_sp_list_subscription('1.18.0-beta.5'),
45
- new FN001029_DEP_microsoft_sp_loader('1.18.0-beta.5'),
46
- new FN001030_DEP_microsoft_sp_module_interfaces('1.18.0-beta.5'),
47
- new FN001031_DEP_microsoft_sp_odata_types('1.18.0-beta.5'),
48
- new FN001032_DEP_microsoft_sp_page_context('1.18.0-beta.5'),
43
+ new FN001023_DEP_microsoft_sp_component_base('1.18.0'),
44
+ new FN001024_DEP_microsoft_sp_diagnostics('1.18.0'),
45
+ new FN001025_DEP_microsoft_sp_dynamic_data('1.18.0'),
46
+ new FN001026_DEP_microsoft_sp_extension_base('1.18.0'),
47
+ new FN001027_DEP_microsoft_sp_http('1.18.0'),
48
+ new FN001028_DEP_microsoft_sp_list_subscription('1.18.0'),
49
+ new FN001029_DEP_microsoft_sp_loader('1.18.0'),
50
+ new FN001030_DEP_microsoft_sp_module_interfaces('1.18.0'),
51
+ new FN001031_DEP_microsoft_sp_odata_types('1.18.0'),
52
+ new FN001032_DEP_microsoft_sp_page_context('1.18.0'),
49
53
  new FN001035_DEP_fluentui_react('8.106.4'),
50
- new FN001013_DEP_microsoft_decorators('1.18.0-beta.5'),
51
- new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.18.0-beta.5'),
52
- new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.18.0-beta.5'),
53
- new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.18.0-beta.5'),
54
- new FN002001_DEVDEP_microsoft_sp_build_web('1.18.0-beta.5'),
55
- new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.18.0-beta.5'),
56
- new FN010001_YORC_version('1.18.0-beta.5'),
57
- new FN010010_YORC_sdkVersions_teams_js('2.12.0')
54
+ new FN001013_DEP_microsoft_decorators('1.18.0'),
55
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.18.0'),
56
+ new FN002001_DEVDEP_microsoft_sp_build_web('1.18.0'),
57
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.18.0'),
58
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.18.0'),
59
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.18.0'),
60
+ new FN002026_DEVDEP_typescript('4.7.4'),
61
+ new FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7('0.1.0'),
62
+ new FN010001_YORC_version('1.18.0'),
63
+ new FN010010_YORC_sdkVersions_teams_js('2.12.0'),
64
+ new FN012017_TSC_extends('./node_modules/@microsoft/rush-stack-compiler-4.7/includes/tsconfig-web.json'),
65
+ new FN021003_PKG_engines_node('>=16.13.0 <17.0.0 || >=18.17.1 <19.0.0')
58
66
  ];
59
- //# sourceMappingURL=upgrade-1.18.0-beta.5.js.map
67
+ //# sourceMappingURL=upgrade-1.18.0.js.map
@@ -7,8 +7,6 @@ var _SpfxProjectUpgradeCommand_instances, _a, _SpfxProjectUpgradeCommand_initTel
7
7
  import fs from 'fs';
8
8
  import os from 'os';
9
9
  import path from 'path';
10
- // uncomment to support upgrading to preview releases
11
- import { prerelease } from 'semver';
12
10
  import { CommandError } from '../../../../Command.js';
13
11
  import { fsUtil } from '../../../../utils/fsUtil.js';
14
12
  import { packageManager } from '../../../../utils/packageManager.js';
@@ -71,7 +69,7 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
71
69
  '1.17.2',
72
70
  '1.17.3',
73
71
  '1.17.4',
74
- '1.18.0-beta.5'
72
+ '1.18.0'
75
73
  ];
76
74
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
77
75
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
@@ -84,15 +82,15 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
84
82
  }
85
83
  this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
86
84
  // uncomment to support upgrading to preview releases
87
- if (!args.options.toVersion &&
88
- !args.options.preview &&
89
- prerelease(this.toVersion)) {
90
- // no version and no preview specified while the current version to
91
- // upgrade to is a prerelease so let's grab the first non-preview version
92
- // since we're supporting only one preview version, it's sufficient for
93
- // us to take second to last version
94
- this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
95
- }
85
+ // if (!args.options.toVersion &&
86
+ // !args.options.preview &&
87
+ // prerelease(this.toVersion)) {
88
+ // // no version and no preview specified while the current version to
89
+ // // upgrade to is a prerelease so let's grab the first non-preview version
90
+ // // since we're supporting only one preview version, it's sufficient for
91
+ // // us to take second to last version
92
+ // this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
93
+ // }
96
94
  this.packageManager = args.options.packageManager || 'npm';
97
95
  this.shell = args.options.shell || 'bash';
98
96
  if (this.supportedVersions.indexOf(this.toVersion) < 0) {
@@ -479,9 +477,9 @@ _a = SpfxProjectUpgradeCommand, _SpfxProjectUpgradeCommand_instances = new WeakS
479
477
  preview: args.options.preview
480
478
  });
481
479
  // uncomment to support upgrading to preview releases
482
- if (prerelease(this.telemetryProperties.toVersion) && !args.options.preview) {
483
- this.telemetryProperties.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
484
- }
480
+ // if (prerelease(this.telemetryProperties.toVersion) && !args.options.preview) {
481
+ // this.telemetryProperties.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
482
+ // }
485
483
  });
486
484
  }, _SpfxProjectUpgradeCommand_initOptions = function _SpfxProjectUpgradeCommand_initOptions() {
487
485
  this.options.unshift({
@@ -524,14 +524,14 @@ class SpfxDoctorCommand extends BaseProjectCommand {
524
524
  fix: 'npm i -g yo@4'
525
525
  }
526
526
  },
527
- '1.18.0-beta.5': {
527
+ '1.18.0': {
528
528
  gulpCli: {
529
529
  range: '^1 || ^2',
530
530
  fix: 'npm i -g gulp-cli@2'
531
531
  },
532
532
  node: {
533
- range: '>=16.14.0 <17.0.0',
534
- fix: 'Install Node.js >=16.14.0 <17.0.0'
533
+ range: '>=16.13.0 <17.0.0 || >=18.17.1 <19.0.0',
534
+ fix: 'Install Node.js >=16.13.0 <17.0.0 || >=18.17.1 <19.0.0'
535
535
  },
536
536
  sp: SharePointVersion.SPO,
537
537
  yo: {
@@ -9,6 +9,7 @@ import { spo } from '../../../../utils/spo.js';
9
9
  import { validation } from '../../../../utils/validation.js';
10
10
  import SpoCommand from '../../../base/SpoCommand.js';
11
11
  import commands from '../../commands.js';
12
+ import { Cli } from '../../../../cli/Cli.js';
12
13
  class SpoApplicationCustomizerGetCommand extends SpoCommand {
13
14
  get name() {
14
15
  return commands.APPLICATIONCUSTOMIZER_GET;
@@ -69,12 +70,13 @@ class SpoApplicationCustomizerGetCommand extends SpoCommand {
69
70
  if (customActions.length === 1) {
70
71
  return customActions[0];
71
72
  }
72
- const errorMessage = options.title ? `title '${options.title}'` : `Client Side Component Id '${options.clientSideComponentId}'`;
73
+ const identifier = options.title ? `title '${options.title}'` : `Client Side Component Id '${options.clientSideComponentId}'`;
73
74
  if (customActions.length === 0) {
74
- throw `No application customizer with ${errorMessage} found`;
75
+ throw `No application customizer with ${identifier} found`;
75
76
  }
76
77
  else {
77
- throw `Multiple application customizers with ${errorMessage} found. Please disambiguate using IDs: ${customActions.map(a => a.Id).join(', ')}`;
78
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', customActions);
79
+ return await Cli.handleMultipleResultsFound(`Multiple application customizers with ${identifier} found.`, resultAsKeyValuePair);
78
80
  }
79
81
  }
80
82
  humanizeScope(scope) {
@@ -11,7 +11,6 @@ import SpoCommand from '../../../base/SpoCommand.js';
11
11
  import commands from '../../commands.js';
12
12
  import { spo } from '../../../../utils/spo.js';
13
13
  import { formatting } from '../../../../utils/formatting.js';
14
- import os from 'os';
15
14
  class SpoApplicationCustomizerRemoveCommand extends SpoCommand {
16
15
  get name() {
17
16
  return commands.APPLICATIONCUSTOMIZER_REMOVE;
@@ -80,7 +79,8 @@ class SpoApplicationCustomizerRemoveCommand extends SpoCommand {
80
79
  throw `No application customizer with ${options.title && `title '${options.title}'` || options.clientSideComponentId && `ClientSideComponentId '${options.clientSideComponentId}'` || options.id && `id '${options.id}'`} found`;
81
80
  }
82
81
  if (appCustomizers.length > 1) {
83
- throw `Multiple application customizer with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found. Please disambiguate using IDs: ${os.EOL}${appCustomizers.map(a => `- ${a.Id}`).join(os.EOL)}`;
82
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', appCustomizers);
83
+ return await Cli.handleMultipleResultsFound(`Multiple application customizer with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
84
84
  }
85
85
  return appCustomizers[0];
86
86
  }
@@ -10,7 +10,7 @@ import SpoCommand from '../../../base/SpoCommand.js';
10
10
  import commands from '../../commands.js';
11
11
  import { spo } from '../../../../utils/spo.js';
12
12
  import { formatting } from '../../../../utils/formatting.js';
13
- import os from 'os';
13
+ import { Cli } from '../../../../cli/Cli.js';
14
14
  class SpoApplicationCustomizerSetCommand extends SpoCommand {
15
15
  get name() {
16
16
  return commands.APPLICATIONCUSTOMIZER_SET;
@@ -82,7 +82,8 @@ class SpoApplicationCustomizerSetCommand extends SpoCommand {
82
82
  throw `No application customizer with ${title && `title '${title}'` || clientSideComponentId && `ClientSideComponentId '${clientSideComponentId}'` || id && `id '${id}'`} found`;
83
83
  }
84
84
  if (appCustomizers.length > 1) {
85
- throw `Multiple application customizer with ${title ? `title '${title}'` : `ClientSideComponentId '${clientSideComponentId}'`} found. Please disambiguate using IDs: ${os.EOL}${appCustomizers.map(a => `- ${a.Id}`).join(os.EOL)}`;
85
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', appCustomizers);
86
+ return await Cli.handleMultipleResultsFound(`Multiple application customizer with ${title ? `title '${title}'` : `ClientSideComponentId '${clientSideComponentId}'`} found.`, resultAsKeyValuePair);
86
87
  }
87
88
  return appCustomizers[0];
88
89
  }
@@ -4,12 +4,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _SpoCommandSetGetCommand_instances, _a, _SpoCommandSetGetCommand_initTelemetry, _SpoCommandSetGetCommand_initOptions, _SpoCommandSetGetCommand_initValidators, _SpoCommandSetGetCommand_initOptionSets;
7
- import os from 'os';
8
7
  import { formatting } from '../../../../utils/formatting.js';
9
8
  import { spo } from '../../../../utils/spo.js';
10
9
  import { validation } from '../../../../utils/validation.js';
11
10
  import SpoCommand from '../../../base/SpoCommand.js';
12
11
  import commands from '../../commands.js';
12
+ import { Cli } from '../../../../cli/Cli.js';
13
13
  class SpoCommandSetGetCommand extends SpoCommand {
14
14
  get name() {
15
15
  return commands.COMMANDSET_GET;
@@ -58,7 +58,9 @@ class SpoCommandSetGetCommand extends SpoCommand {
58
58
  throw `No command set with title '${args.options.title}' found.`;
59
59
  }
60
60
  else {
61
- throw `Multiple command sets with title '${args.options.title}' found. Please disambiguate using IDs: ${os.EOL}${commandSets.map(commandSet => `- ${commandSet.Id}`).join(os.EOL)}.`;
61
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', commandSets);
62
+ const commandSet = await Cli.handleMultipleResultsFound(`Multiple command sets with title '${args.options.title}' found.`, resultAsKeyValuePair);
63
+ logger.log(commandSet);
62
64
  }
63
65
  }
64
66
  }
@@ -63,7 +63,8 @@ class SpoCommandSetRemoveCommand extends SpoCommand {
63
63
  throw `No user commandsets with ${options.title && `title '${options.title}'` || options.clientSideComponentId && `ClientSideComponentId '${options.clientSideComponentId}'` || options.id && `id '${options.id}'`} found`;
64
64
  }
65
65
  if (commandSets.length > 1) {
66
- throw `Multiple user commandsets with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found. Please disambiguate using IDs: ${commandSets.map((commandSet) => commandSet.Id).join(', ')}`;
66
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', commandSets);
67
+ return await Cli.handleMultipleResultsFound(`Multiple user commandsets with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
67
68
  }
68
69
  return commandSets[0];
69
70
  }
@@ -10,6 +10,7 @@ import SpoCommand from '../../../base/SpoCommand.js';
10
10
  import request from '../../../../request.js';
11
11
  import { formatting } from '../../../../utils/formatting.js';
12
12
  import { spo } from '../../../../utils/spo.js';
13
+ import { Cli } from '../../../../cli/Cli.js';
13
14
  class SpoCommandSetSetCommand extends SpoCommand {
14
15
  get name() {
15
16
  return commands.COMMANDSET_SET;
@@ -84,7 +85,8 @@ class SpoCommandSetSetCommand extends SpoCommand {
84
85
  throw `No user commandsets with ${options.title && `title '${options.title}'` || options.clientSideComponentId && `ClientSideComponentId '${options.clientSideComponentId}'` || options.id && `id '${options.id}'`} found`;
85
86
  }
86
87
  if (commandSets.length > 1) {
87
- throw `Multiple user commandsets with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found. Please disambiguate using IDs: ${commandSets.map((commandSet) => commandSet.Id).join(', ')}`;
88
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', commandSets);
89
+ return await Cli.handleMultipleResultsFound(`Multiple user commandsets with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
88
90
  }
89
91
  return commandSets[0];
90
92
  }
@@ -4,6 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _SpoCustomActionGetCommand_instances, _SpoCustomActionGetCommand_initTelemetry, _SpoCustomActionGetCommand_initOptions, _SpoCustomActionGetCommand_initValidators, _SpoCustomActionGetCommand_initOptionSets;
7
+ import { Cli } from '../../../../cli/Cli.js';
7
8
  import { formatting } from '../../../../utils/formatting.js';
8
9
  import { spo } from '../../../../utils/spo.js';
9
10
  import { validation } from '../../../../utils/validation.js';
@@ -71,7 +72,8 @@ class SpoCustomActionGetCommand extends SpoCommand {
71
72
  if (customActions.length === 0) {
72
73
  throw `No user custom action with title '${options.title}' found`;
73
74
  }
74
- throw `Multiple user custom actions with title '${options.title}' found. Please disambiguate using IDs: ${customActions.map(a => a.Id).join(', ')}`;
75
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', customActions);
76
+ return await Cli.handleMultipleResultsFound(`Multiple user custom actions with title '${options.title}' found.`, resultAsKeyValuePair);
75
77
  }
76
78
  else {
77
79
  const customActions = await spo.getCustomActions(options.webUrl, options.scope, `ClientSideComponentId eq guid'${options.clientSideComponentId}'`);
@@ -79,7 +81,8 @@ class SpoCustomActionGetCommand extends SpoCommand {
79
81
  throw `No user custom action with ClientSideComponentId '${options.clientSideComponentId}' found`;
80
82
  }
81
83
  if (customActions.length > 1) {
82
- throw `Multiple user custom actions with ClientSideComponentId '${options.clientSideComponentId}' found. Please disambiguate using IDs: ${customActions.map((customAction) => customAction.Id).join(', ')}`;
84
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', customActions);
85
+ return await Cli.handleMultipleResultsFound(`Multiple user custom actions with ClientSideComponentId '${options.clientSideComponentId}' found.`, resultAsKeyValuePair);
83
86
  }
84
87
  return customActions[0];
85
88
  }
@@ -72,7 +72,9 @@ class SpoCustomActionRemoveCommand extends SpoCommand {
72
72
  if (customActions.length === 0) {
73
73
  throw `No user custom action with title '${options.title}' found`;
74
74
  }
75
- throw `Multiple user custom actions with title '${options.title}' found. Please disambiguate using IDs: ${customActions.map(a => a.Id).join(', ')}`;
75
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', customActions);
76
+ const result = await Cli.handleMultipleResultsFound(`Multiple user custom actions with title '${options.title}' found.`, resultAsKeyValuePair);
77
+ return result.Id;
76
78
  }
77
79
  async removeScopedCustomAction(options) {
78
80
  const customActionId = await this.getCustomActionId(options);
@@ -4,6 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
6
  var _SpoEventreceiverGetCommand_instances, _SpoEventreceiverGetCommand_initTelemetry, _SpoEventreceiverGetCommand_initOptions, _SpoEventreceiverGetCommand_initValidators, _SpoEventreceiverGetCommand_initOptionSets;
7
+ import { Cli } from '../../../../cli/Cli.js';
7
8
  import request from '../../../../request.js';
8
9
  import { formatting } from '../../../../utils/formatting.js';
9
10
  import { urlUtil } from '../../../../utils/urlUtil.js';
@@ -75,7 +76,8 @@ class SpoEventreceiverGetCommand extends SpoCommand {
75
76
  throw `The specified event receiver '${args.options.name}' does not exist.`;
76
77
  }
77
78
  if (res.value && res.value.length > 1) {
78
- throw `Multiple event receivers with name '${args.options.name}' found: ${res.value.map(x => x.ReceiverId)}`;
79
+ const resultAsKeyValuePair = formatting.convertArrayToHashTable('ReceiverId', res.value);
80
+ return await Cli.handleMultipleResultsFound(`Multiple event receivers with name '${args.options.name}' found.`, resultAsKeyValuePair);
79
81
  }
80
82
  return res.value[0];
81
83
  }
@@ -103,6 +103,9 @@ class SpoFileGetCommand extends SpoCommand {
103
103
  fileProperties.ListItemAllFields.RoleAssignments = response.value;
104
104
  }
105
105
  }
106
+ if (args.options.asListItem) {
107
+ delete fileProperties.ListItemAllFields.ID;
108
+ }
106
109
  await logger.log(args.options.asListItem ? fileProperties.ListItemAllFields : fileProperties);
107
110
  }
108
111
  }
@@ -115,20 +118,20 @@ class SpoFileGetCommand extends SpoCommand {
115
118
  _SpoFileGetCommand_instances = new WeakSet(), _SpoFileGetCommand_initTelemetry = function _SpoFileGetCommand_initTelemetry() {
116
119
  this.telemetry.push((args) => {
117
120
  Object.assign(this.telemetryProperties, {
118
- id: (!(!args.options.id)).toString(),
119
- url: (!(!args.options.url)).toString(),
120
- asString: args.options.asString || false,
121
- asListItem: args.options.asListItem || false,
122
- asFile: args.options.asFile || false,
123
- path: (!(!args.options.path)).toString(),
121
+ id: typeof args.options.id !== 'undefined',
122
+ url: typeof args.options.url !== 'undefined',
123
+ asString: !!args.options.asString,
124
+ asListItem: !!args.options.asListItem,
125
+ asFile: !!args.options.asFile,
126
+ path: typeof args.options.path !== 'undefined',
124
127
  withPermissions: !!args.options.withPermissions
125
128
  });
126
129
  });
127
130
  }, _SpoFileGetCommand_initOptions = function _SpoFileGetCommand_initOptions() {
128
131
  this.options.unshift({
129
- option: '-w, --webUrl <webUrl>'
132
+ option: '-u, --webUrl <webUrl>'
130
133
  }, {
131
- option: '-u, --url [url]'
134
+ option: '--url [url]'
132
135
  }, {
133
136
  option: '-i, --id [id]'
134
137
  }, {
@@ -92,11 +92,11 @@ _SpoFileRemoveCommand_instances = new WeakSet(), _SpoFileRemoveCommand_initTelem
92
92
  });
93
93
  }, _SpoFileRemoveCommand_initOptions = function _SpoFileRemoveCommand_initOptions() {
94
94
  this.options.unshift({
95
- option: '-w, --webUrl <webUrl>'
95
+ option: '-u, --webUrl <webUrl>'
96
96
  }, {
97
97
  option: '-i, --id [id]'
98
98
  }, {
99
- option: '-u, --url [url]'
99
+ option: '--url [url]'
100
100
  }, {
101
101
  option: '--recycle'
102
102
  }, {
@@ -79,9 +79,9 @@ _SpoFileVersionClearCommand_instances = new WeakSet(), _SpoFileVersionClearComma
79
79
  });
80
80
  }, _SpoFileVersionClearCommand_initOptions = function _SpoFileVersionClearCommand_initOptions() {
81
81
  this.options.unshift({
82
- option: '-w, --webUrl <webUrl>'
82
+ option: '-u, --webUrl <webUrl>'
83
83
  }, {
84
- option: '-u, --fileUrl [fileUrl]'
84
+ option: '--fileUrl [fileUrl]'
85
85
  }, {
86
86
  option: '-i, --fileId [fileId]'
87
87
  }, {
@@ -67,11 +67,11 @@ _SpoFileVersionGetCommand_instances = new WeakSet(), _SpoFileVersionGetCommand_i
67
67
  });
68
68
  }, _SpoFileVersionGetCommand_initOptions = function _SpoFileVersionGetCommand_initOptions() {
69
69
  this.options.unshift({
70
- option: '-w, --webUrl <webUrl>'
70
+ option: '-u, --webUrl <webUrl>'
71
71
  }, {
72
72
  option: '--label <label>'
73
73
  }, {
74
- option: '-u, --fileUrl [fileUrl]'
74
+ option: '--fileUrl [fileUrl]'
75
75
  }, {
76
76
  option: '-i, --fileId [fileId]'
77
77
  });
@@ -59,9 +59,9 @@ _SpoFileVersionListCommand_instances = new WeakSet(), _SpoFileVersionListCommand
59
59
  });
60
60
  }, _SpoFileVersionListCommand_initOptions = function _SpoFileVersionListCommand_initOptions() {
61
61
  this.options.unshift({
62
- option: '-w, --webUrl <webUrl>'
62
+ option: '-u, --webUrl <webUrl>'
63
63
  }, {
64
- option: '-u, --fileUrl [fileUrl]'
64
+ option: '--fileUrl [fileUrl]'
65
65
  }, {
66
66
  option: '-i, --fileId [fileId]'
67
67
  });
@@ -80,11 +80,11 @@ _SpoFileVersionRemoveCommand_instances = new WeakSet(), _SpoFileVersionRemoveCom
80
80
  });
81
81
  }, _SpoFileVersionRemoveCommand_initOptions = function _SpoFileVersionRemoveCommand_initOptions() {
82
82
  this.options.unshift({
83
- option: '-w, --webUrl <webUrl>'
83
+ option: '-u, --webUrl <webUrl>'
84
84
  }, {
85
85
  option: '--label <label>'
86
86
  }, {
87
- option: '-u, --fileUrl [fileUrl]'
87
+ option: '--fileUrl [fileUrl]'
88
88
  }, {
89
89
  option: '-i, --fileId [fileId]'
90
90
  }, {
@@ -80,11 +80,11 @@ _SpoFileVersionRestoreCommand_instances = new WeakSet(), _SpoFileVersionRestoreC
80
80
  });
81
81
  }, _SpoFileVersionRestoreCommand_initOptions = function _SpoFileVersionRestoreCommand_initOptions() {
82
82
  this.options.unshift({
83
- option: '-w, --webUrl <webUrl>'
83
+ option: '-u, --webUrl <webUrl>'
84
84
  }, {
85
85
  option: '--label <label>'
86
86
  }, {
87
- option: '-u, --fileUrl [fileUrl]'
87
+ option: '--fileUrl [fileUrl]'
88
88
  }, {
89
89
  option: '-i, --fileId [fileId]'
90
90
  }, {
@@ -82,24 +82,24 @@ class SpoGroupMemberAddCommand extends SpoCommand {
82
82
  await logger.logToStderr('Checking if the specified users and groups exist');
83
83
  }
84
84
  const validUserNames = [];
85
- const identifiers = args.options.userName ?? args.options.email ?? args.options.aadGroupId ?? args.options.aadGroupName ?? args.options.userId.toString();
85
+ const identifiers = args.options.userNames ?? args.options.emails ?? args.options.aadGroupIds ?? args.options.aadGroupNames ?? args.options.userIds.toString();
86
86
  await Promise.all(identifiers.split(',').map(async (identifier) => {
87
87
  const trimmedIdentifier = identifier.trim();
88
88
  try {
89
- if (args.options.userId) {
89
+ if (args.options.userIds) {
90
90
  if (this.verbose) {
91
91
  await logger.logToStderr(`Getting AAD ID of user with ID ${trimmedIdentifier}`);
92
92
  }
93
93
  const spoUserAzureId = await spo.getUserAzureIdBySpoId(args.options.webUrl, trimmedIdentifier);
94
94
  validUserNames.push(spoUserAzureId);
95
95
  }
96
- else if (args.options.userName) {
96
+ else if (args.options.userNames) {
97
97
  validUserNames.push(trimmedIdentifier);
98
98
  }
99
- else if (args.options.aadGroupId) {
99
+ else if (args.options.aadGroupIds) {
100
100
  validUserNames.push(trimmedIdentifier);
101
101
  }
102
- else if (args.options.aadGroupName) {
102
+ else if (args.options.aadGroupNames) {
103
103
  if (this.verbose) {
104
104
  await logger.logToStderr(`Getting ID of Azure AD group ${trimmedIdentifier}`);
105
105
  }
@@ -132,11 +132,11 @@ _SpoGroupMemberAddCommand_instances = new WeakSet(), _SpoGroupMemberAddCommand_i
132
132
  Object.assign(this.telemetryProperties, {
133
133
  groupId: typeof args.options.groupId !== 'undefined',
134
134
  groupName: typeof args.options.groupName !== 'undefined',
135
- userName: typeof args.options.userName !== 'undefined',
136
- email: typeof args.options.email !== 'undefined',
137
- userId: typeof args.options.userId !== 'undefined',
138
- aadGroupId: typeof args.options.aadGroupId !== 'undefined',
139
- aadGroupName: typeof args.options.aadGroupName !== 'undefined'
135
+ userNames: typeof args.options.userNames !== 'undefined',
136
+ emails: typeof args.options.emails !== 'undefined',
137
+ userIds: typeof args.options.userIds !== 'undefined',
138
+ aadGroupIds: typeof args.options.aadGroupIds !== 'undefined',
139
+ aadGroupNames: typeof args.options.aadGroupNames !== 'undefined'
140
140
  });
141
141
  });
142
142
  }, _SpoGroupMemberAddCommand_initOptions = function _SpoGroupMemberAddCommand_initOptions() {
@@ -147,15 +147,15 @@ _SpoGroupMemberAddCommand_instances = new WeakSet(), _SpoGroupMemberAddCommand_i
147
147
  }, {
148
148
  option: '--groupName [groupName]'
149
149
  }, {
150
- option: '--userName [userName]'
150
+ option: '--userNames [userNames]'
151
151
  }, {
152
- option: '--email [email]'
152
+ option: '--emails [emails]'
153
153
  }, {
154
- option: '--userId [userId]'
154
+ option: '--userIds [userIds]'
155
155
  }, {
156
- option: '--aadGroupId [aadGroupId]'
156
+ option: '--aadGroupIds [aadGroupIds]'
157
157
  }, {
158
- option: '--aadGroupName [aadGroupName]'
158
+ option: '--aadGroupNames [aadGroupNames]'
159
159
  });
160
160
  }, _SpoGroupMemberAddCommand_initValidators = function _SpoGroupMemberAddCommand_initValidators() {
161
161
  this.validators.push(async (args) => {
@@ -167,22 +167,22 @@ _SpoGroupMemberAddCommand_instances = new WeakSet(), _SpoGroupMemberAddCommand_i
167
167
  return `Specified groupId ${args.options.groupId} is not a number`;
168
168
  }
169
169
  const userIdReg = new RegExp(/^[0-9,]*$/);
170
- if (args.options.userId && !userIdReg.test(args.options.userId)) {
171
- return `${args.options.userId} is not a number or a comma seperated value`;
170
+ if (args.options.userIds && !userIdReg.test(args.options.userIds)) {
171
+ return `${args.options.userIds} is not a number or a comma separated value`;
172
172
  }
173
- if (args.options.userName && args.options.userName.split(',').some(e => !validation.isValidUserPrincipalName(e))) {
174
- return `${args.options.userName} contains one or more invalid usernames`;
173
+ if (args.options.userNames && args.options.userNames.split(',').some(e => !validation.isValidUserPrincipalName(e))) {
174
+ return `${args.options.userNames} contains one or more invalid usernames`;
175
175
  }
176
- if (args.options.email && args.options.email.split(',').some(e => !validation.isValidUserPrincipalName(e))) {
177
- return `${args.options.email} contains one or more invalid email addresses`;
176
+ if (args.options.emails && args.options.emails.split(',').some(e => !validation.isValidUserPrincipalName(e))) {
177
+ return `${args.options.emails} contains one or more invalid email addresses`;
178
178
  }
179
- if (args.options.aadGroupId && args.options.aadGroupId.split(',').some(e => !validation.isValidGuid(e))) {
180
- return `${args.options.aadGroupId} contains one or more invalid GUIDs`;
179
+ if (args.options.aadGroupIds && args.options.aadGroupIds.split(',').some(e => !validation.isValidGuid(e))) {
180
+ return `${args.options.aadGroupIds} contains one or more invalid GUIDs`;
181
181
  }
182
182
  return true;
183
183
  });
184
184
  }, _SpoGroupMemberAddCommand_initOptionSets = function _SpoGroupMemberAddCommand_initOptionSets() {
185
- this.optionSets.push({ options: ['groupId', 'groupName'] }, { options: ['userName', 'email', 'userId', 'aadGroupId', 'aadGroupName'] });
185
+ this.optionSets.push({ options: ['groupId', 'groupName'] }, { options: ['userNames', 'emails', 'userIds', 'aadGroupIds', 'aadGroupNames'] });
186
186
  };
187
187
  export default new SpoGroupMemberAddCommand();
188
188
  //# sourceMappingURL=group-member-add.js.map