@pnp/cli-microsoft365 11.7.0-beta.71e4ac5 → 11.7.0-beta.837cfea

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 (86) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/m365/entra/commands/user/user-license-add.js +2 -1
  4. package/dist/m365/entra/commands/user/user-license-list.js +4 -9
  5. package/dist/m365/entra/commands/user/user-license-remove.js +2 -1
  6. package/dist/m365/outlook/commands/calendar/calendar-set.js +132 -0
  7. package/dist/m365/outlook/commands/calendargroup/calendargroup-get.js +114 -0
  8. package/dist/m365/outlook/commands/calendargroup/calendargroup-set.js +115 -0
  9. package/dist/m365/outlook/commands/event/event-cancel.js +103 -0
  10. package/dist/m365/outlook/commands/event/event-remove.js +104 -0
  11. package/dist/m365/outlook/commands.js +5 -0
  12. package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +643 -0
  13. package/dist/m365/spfx/commands/project/DeployWorkflow.js +2 -2
  14. package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +13 -1
  15. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.0-rc.0.js +19 -0
  16. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  17. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +16 -1
  18. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
  19. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +2 -2
  20. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +1 -1
  21. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015016_FILE_eslint_config_js.js +10 -0
  22. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.0-rc.0.js +84 -0
  23. package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
  24. package/dist/m365/spfx/commands/spfx-doctor.js +5 -631
  25. package/dist/m365/spo/commands/brandcenter/brandcenter-colors-list.js +59 -0
  26. package/dist/m365/spo/commands/propertybag/propertybag-set.js +3 -9
  27. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +5 -1
  28. package/dist/m365/spo/commands.js +1 -0
  29. package/dist/m365/teams/commands/chat/chat-message-list.js +43 -4
  30. package/dist/request.js +0 -16
  31. package/dist/utils/entraApp.js +9 -2
  32. package/dist/utils/spfx.js +59 -0
  33. package/docs/docs/cmd/entra/license/license-list.mdx +19 -0
  34. package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +19 -0
  35. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +19 -0
  36. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +21 -0
  37. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +19 -0
  38. package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +21 -0
  39. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +21 -0
  40. package/docs/docs/cmd/entra/roledefinition/roledefinition-add.mdx +19 -0
  41. package/docs/docs/cmd/entra/roledefinition/roledefinition-get.mdx +19 -0
  42. package/docs/docs/cmd/entra/roledefinition/roledefinition-list.mdx +19 -0
  43. package/docs/docs/cmd/entra/roledefinition/roledefinition-remove.mdx +21 -0
  44. package/docs/docs/cmd/entra/roledefinition/roledefinition-set.mdx +21 -0
  45. package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +21 -0
  46. package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +21 -0
  47. package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +19 -0
  48. package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +20 -0
  49. package/docs/docs/cmd/entra/user/user-groupmembership-list.mdx +19 -0
  50. package/docs/docs/cmd/entra/user/user-guest-add.mdx +19 -0
  51. package/docs/docs/cmd/entra/user/user-license-add.mdx +19 -0
  52. package/docs/docs/cmd/entra/user/user-license-list.mdx +18 -1
  53. package/docs/docs/cmd/entra/user/user-license-remove.mdx +21 -0
  54. package/docs/docs/cmd/entra/user/user-password-validate.mdx +12 -0
  55. package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +21 -0
  56. package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +19 -0
  57. package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +21 -0
  58. package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +19 -0
  59. package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +19 -0
  60. package/docs/docs/cmd/entra/user/user-session-revoke.mdx +21 -0
  61. package/docs/docs/cmd/entra/user/user-signin-list.mdx +19 -0
  62. package/docs/docs/cmd/exo/approleassignment/approleassignment-add.mdx +19 -0
  63. package/docs/docs/cmd/external/connection/connection-add.mdx +21 -0
  64. package/docs/docs/cmd/external/connection/connection-doctor.mdx +19 -0
  65. package/docs/docs/cmd/external/connection/connection-get.mdx +19 -0
  66. package/docs/docs/cmd/external/connection/connection-list.mdx +19 -0
  67. package/docs/docs/cmd/external/connection/connection-remove.mdx +21 -0
  68. package/docs/docs/cmd/external/connection/connection-schema-add.mdx +21 -0
  69. package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +21 -0
  70. package/docs/docs/cmd/external/item/item-add.mdx +19 -0
  71. package/docs/docs/cmd/file/convert/convert-pdf.mdx +21 -0
  72. package/docs/docs/cmd/file/file-add.mdx +21 -0
  73. package/docs/docs/cmd/file/file-copy.mdx +21 -0
  74. package/docs/docs/cmd/file/file-list.mdx +19 -0
  75. package/docs/docs/cmd/file/file-move.mdx +21 -0
  76. package/docs/docs/cmd/outlook/calendar/calendar-set.mdx +178 -0
  77. package/docs/docs/cmd/outlook/calendargroup/calendargroup-get.mdx +125 -0
  78. package/docs/docs/cmd/outlook/calendargroup/calendargroup-set.mdx +83 -0
  79. package/docs/docs/cmd/outlook/event/event-cancel.mdx +85 -0
  80. package/docs/docs/cmd/outlook/event/event-remove.mdx +85 -0
  81. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  82. package/docs/docs/cmd/spo/brandcenter/brandcenter-colors-list.mdx +115 -0
  83. package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +1 -1
  84. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +3 -0
  85. package/docs/docs/cmd/teams/chat/chat-message-list.mdx +23 -2
  86. package/package.json +2 -1
@@ -76,7 +76,8 @@ class SpfxProjectDoctorCommand extends BaseProjectCommand {
76
76
  '1.21.1',
77
77
  '1.22.0',
78
78
  '1.22.1',
79
- '1.22.2'
79
+ '1.22.2',
80
+ '1.23.0-rc.0'
80
81
  ];
81
82
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
82
83
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
@@ -13,6 +13,8 @@ import { validation } from '../../../../utils/validation.js';
13
13
  import commands from '../../commands.js';
14
14
  import { workflow } from './DeployWorkflow.js';
15
15
  import { BaseProjectCommand } from './base-project-command.js';
16
+ import { versions } from '../SpfxCompatibilityMatrix.js';
17
+ import { spfx } from '../../../../utils/spfx.js';
16
18
  class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
17
19
  get name() {
18
20
  return commands.PROJECT_GITHUB_WORKFLOW_ADD;
@@ -43,7 +45,7 @@ class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
43
45
  this.saveWorkflow(workflow);
44
46
  }
45
47
  catch (error) {
46
- throw new CommandError(error);
48
+ this.handleError(error);
47
49
  }
48
50
  }
49
51
  saveWorkflow(workflow) {
@@ -59,6 +61,16 @@ class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
59
61
  if (options.branchName) {
60
62
  workflow.on.push.branches[0] = options.branchName;
61
63
  }
64
+ const version = this.getProjectVersion();
65
+ if (!version) {
66
+ throw 'Unable to determine the version of the current SharePoint Framework project. Could not find the correct version based on the version property in the .yo-rc.json file.';
67
+ }
68
+ const versionRequirements = versions[version];
69
+ if (!versionRequirements) {
70
+ throw `Could not find Node version for version '${version}' of SharePoint Framework.`;
71
+ }
72
+ const nodeVersion = spfx.getHighestNodeVersion(versionRequirements.node.range);
73
+ this.assignNodeVersion(workflow, nodeVersion);
62
74
  if (options.manuallyTrigger) {
63
75
  // eslint-disable-next-line camelcase
64
76
  workflow.on.workflow_dispatch = null;
@@ -83,6 +95,9 @@ class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
83
95
  deployAction.with.APP_FILE_PATH = deployAction.with.APP_FILE_PATH.replace('{{ solutionName }}', solutionName);
84
96
  }
85
97
  }
98
+ assignNodeVersion(workflow, nodeVersion) {
99
+ workflow.jobs['build-and-deploy'].env.NodeVersion = nodeVersion;
100
+ }
86
101
  getLoginAction(workflow) {
87
102
  const steps = this.getWorkFlowSteps(workflow);
88
103
  return steps.find(step => step.uses && step.uses.indexOf('action-cli-login') >= 0);
@@ -1,7 +1,7 @@
1
1
  import { DependencyRule } from "./DependencyRule.js";
2
2
  export class FN002021_DEVDEP_rushstack_eslint_config extends DependencyRule {
3
- constructor(packageVersion) {
4
- super('@rushstack/eslint-config', packageVersion, true);
3
+ constructor(packageVersion, add = true) {
4
+ super('@rushstack/eslint-config', packageVersion, true, false, add);
5
5
  }
6
6
  get id() {
7
7
  return 'FN002021';
@@ -1,7 +1,7 @@
1
1
  import { DependencyRule } from "./DependencyRule.js";
2
2
  export class FN002032_DEVDEP_typescript_eslint_parser extends DependencyRule {
3
- constructor(packageVersion) {
4
- super('@typescript-eslint/parser', packageVersion, true);
3
+ constructor(packageVersion, add = true) {
4
+ super('@typescript-eslint/parser', packageVersion, true, false, add);
5
5
  }
6
6
  get id() {
7
7
  return 'FN002032';
@@ -8,7 +8,7 @@ export class FN015008_FILE_eslintrc_js extends FileAddRemoveRule {
8
8
  return 'FN015008';
9
9
  }
10
10
  visit(project, notifications) {
11
- if (spfx.isReactProject(project)) {
11
+ if (spfx.isReactProject(project) && this.contents) {
12
12
  this.contents = this.contents.replace('@microsoft/eslint-config-spfx/lib/profiles/default', '@microsoft/eslint-config-spfx/lib/profiles/react');
13
13
  }
14
14
  super.visit(project, notifications);
@@ -0,0 +1,10 @@
1
+ import { FileAddRemoveRule } from "./FileAddRemoveRule.js";
2
+ export class FN015016_FILE_eslint_config_js extends FileAddRemoveRule {
3
+ constructor(add, contents) {
4
+ super('./eslint.config.js', add, contents);
5
+ }
6
+ get id() {
7
+ return 'FN015016';
8
+ }
9
+ }
10
+ //# sourceMappingURL=FN015016_FILE_eslint_config_js.js.map
@@ -0,0 +1,84 @@
1
+ import { FN001001_DEP_microsoft_sp_core_library } from './rules/FN001001_DEP_microsoft_sp_core_library.js';
2
+ import { FN001002_DEP_microsoft_sp_lodash_subset } from './rules/FN001002_DEP_microsoft_sp_lodash_subset.js';
3
+ import { FN001003_DEP_microsoft_sp_office_ui_fabric_core } from './rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core.js';
4
+ import { FN001004_DEP_microsoft_sp_webpart_base } from './rules/FN001004_DEP_microsoft_sp_webpart_base.js';
5
+ import { FN001011_DEP_microsoft_sp_dialog } from './rules/FN001011_DEP_microsoft_sp_dialog.js';
6
+ import { FN001012_DEP_microsoft_sp_application_base } from './rules/FN001012_DEP_microsoft_sp_application_base.js';
7
+ import { FN001013_DEP_microsoft_decorators } from './rules/FN001013_DEP_microsoft_decorators.js';
8
+ import { FN001014_DEP_microsoft_sp_listview_extensibility } from './rules/FN001014_DEP_microsoft_sp_listview_extensibility.js';
9
+ import { FN001021_DEP_microsoft_sp_property_pane } from './rules/FN001021_DEP_microsoft_sp_property_pane.js';
10
+ import { FN001023_DEP_microsoft_sp_component_base } from './rules/FN001023_DEP_microsoft_sp_component_base.js';
11
+ import { FN001024_DEP_microsoft_sp_diagnostics } from './rules/FN001024_DEP_microsoft_sp_diagnostics.js';
12
+ import { FN001025_DEP_microsoft_sp_dynamic_data } from './rules/FN001025_DEP_microsoft_sp_dynamic_data.js';
13
+ import { FN001026_DEP_microsoft_sp_extension_base } from './rules/FN001026_DEP_microsoft_sp_extension_base.js';
14
+ import { FN001027_DEP_microsoft_sp_http } from './rules/FN001027_DEP_microsoft_sp_http.js';
15
+ import { FN001028_DEP_microsoft_sp_list_subscription } from './rules/FN001028_DEP_microsoft_sp_list_subscription.js';
16
+ import { FN001029_DEP_microsoft_sp_loader } from './rules/FN001029_DEP_microsoft_sp_loader.js';
17
+ import { FN001030_DEP_microsoft_sp_module_interfaces } from './rules/FN001030_DEP_microsoft_sp_module_interfaces.js';
18
+ import { FN001031_DEP_microsoft_sp_odata_types } from './rules/FN001031_DEP_microsoft_sp_odata_types.js';
19
+ import { FN001032_DEP_microsoft_sp_page_context } from './rules/FN001032_DEP_microsoft_sp_page_context.js';
20
+ import { FN001034_DEP_microsoft_sp_adaptive_card_extension_base } from './rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base.js';
21
+ import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
22
+ import { FN002021_DEVDEP_rushstack_eslint_config } from './rules/FN002021_DEVDEP_rushstack_eslint_config.js';
23
+ import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
24
+ import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
25
+ import { FN002024_DEVDEP_eslint } from './rules/FN002024_DEVDEP_eslint.js';
26
+ import { FN002025_DEVDEP_eslint_plugin_react_hooks } from './rules/FN002025_DEVDEP_eslint_plugin_react_hooks.js';
27
+ import { FN002030_DEVDEP_microsoft_spfx_web_build_rig } from './rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js';
28
+ import { FN002031_DEVDEP_rushstack_heft } from './rules/FN002031_DEVDEP_rushstack_heft.js';
29
+ import { FN002032_DEVDEP_typescript_eslint_parser } from './rules/FN002032_DEVDEP_typescript_eslint_parser.js';
30
+ import { FN002034_DEVDEP_microsoft_spfx_heft_plugins } from './rules/FN002034_DEVDEP_microsoft_spfx_heft_plugins.js';
31
+ import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
32
+ import { FN015008_FILE_eslintrc_js } from './rules/FN015008_FILE_eslintrc_js.js';
33
+ import { FN015016_FILE_eslint_config_js } from './rules/FN015016_FILE_eslint_config_js.js';
34
+ import { FN021009_PKG_overrides_rushstack_heft } from './rules/FN021009_PKG_overrides_rushstack_heft.js';
35
+ export default [
36
+ new FN001001_DEP_microsoft_sp_core_library('1.23.0-rc.0'),
37
+ new FN001002_DEP_microsoft_sp_lodash_subset('1.23.0-rc.0'),
38
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.23.0-rc.0'),
39
+ new FN001004_DEP_microsoft_sp_webpart_base('1.23.0-rc.0'),
40
+ new FN001011_DEP_microsoft_sp_dialog('1.23.0-rc.0'),
41
+ new FN001012_DEP_microsoft_sp_application_base('1.23.0-rc.0'),
42
+ new FN001014_DEP_microsoft_sp_listview_extensibility('1.23.0-rc.0'),
43
+ new FN001021_DEP_microsoft_sp_property_pane('1.23.0-rc.0'),
44
+ new FN001023_DEP_microsoft_sp_component_base('1.23.0-rc.0'),
45
+ new FN001024_DEP_microsoft_sp_diagnostics('1.23.0-rc.0'),
46
+ new FN001025_DEP_microsoft_sp_dynamic_data('1.23.0-rc.0'),
47
+ new FN001026_DEP_microsoft_sp_extension_base('1.23.0-rc.0'),
48
+ new FN001027_DEP_microsoft_sp_http('1.23.0-rc.0'),
49
+ new FN001028_DEP_microsoft_sp_list_subscription('1.23.0-rc.0'),
50
+ new FN001029_DEP_microsoft_sp_loader('1.23.0-rc.0'),
51
+ new FN001030_DEP_microsoft_sp_module_interfaces('1.23.0-rc.0'),
52
+ new FN001031_DEP_microsoft_sp_odata_types('1.23.0-rc.0'),
53
+ new FN001032_DEP_microsoft_sp_page_context('1.23.0-rc.0'),
54
+ new FN001013_DEP_microsoft_decorators('1.23.0-rc.0'),
55
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.23.0-rc.0'),
56
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.23.0-rc.0'),
57
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.23.0-rc.0'),
58
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.23.0-rc.0'),
59
+ new FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.23.0-rc.0'),
60
+ new FN002034_DEVDEP_microsoft_spfx_heft_plugins('1.23.0-rc.0'),
61
+ new FN010001_YORC_version('1.23.0-rc.0'),
62
+ new FN002031_DEVDEP_rushstack_heft('1.2.7'),
63
+ new FN021009_PKG_overrides_rushstack_heft('1.2.7'),
64
+ new FN002025_DEVDEP_eslint_plugin_react_hooks('5.2.0'),
65
+ new FN002024_DEVDEP_eslint('9.37.0'),
66
+ new FN015016_FILE_eslint_config_js(true, `const spfxProfile = require('@microsoft/eslint-config-spfx/lib/flat-profiles/react');
67
+
68
+ module.exports = [
69
+ ...spfxProfile,
70
+ {
71
+ files: ['**/*.ts', '**/*.tsx'],
72
+ languageOptions: {
73
+ parserOptions: {
74
+ tsconfigRootDir: __dirname,
75
+ project: './tsconfig.json'
76
+ }
77
+ }
78
+ }
79
+ ];`),
80
+ new FN015008_FILE_eslintrc_js(false),
81
+ new FN002021_DEVDEP_rushstack_eslint_config('4.5.2', false),
82
+ new FN002032_DEVDEP_typescript_eslint_parser('8.46.2', false)
83
+ ];
84
+ //# sourceMappingURL=upgrade-1.23.0-rc.0.js.map
@@ -2,7 +2,7 @@ import fs from 'fs';
2
2
  import os from 'os';
3
3
  import path from 'path';
4
4
  // uncomment to support upgrading to preview releases
5
- // import { prerelease } from 'semver';
5
+ import { prerelease } from 'semver';
6
6
  import { z } from 'zod';
7
7
  import { CommandError, globalOptionsZod } from '../../../../Command.js';
8
8
  import { fsUtil } from '../../../../utils/fsUtil.js';
@@ -85,7 +85,8 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
85
85
  '1.21.1',
86
86
  '1.22.0',
87
87
  '1.22.1',
88
- '1.22.2'
88
+ '1.22.2',
89
+ '1.23.0-rc.0'
89
90
  ];
90
91
  }
91
92
  async commandAction(logger, args) {
@@ -95,15 +96,15 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
95
96
  }
96
97
  this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
97
98
  // uncomment to support upgrading to preview releases
98
- // if (!args.options.toVersion &&
99
- // !args.options.preview &&
100
- // prerelease(this.toVersion)) {
101
- // // no version and no preview specified while the current version to
102
- // // upgrade to is a prerelease so let's grab the first non-preview version
103
- // // since we're supporting only one preview version, it's sufficient for
104
- // // us to take second to last version
105
- // this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
106
- // }
99
+ if (!args.options.toVersion &&
100
+ !args.options.preview &&
101
+ prerelease(this.toVersion)) {
102
+ // no version and no preview specified while the current version to
103
+ // upgrade to is a prerelease so let's grab the first non-preview version
104
+ // since we're supporting only one preview version, it's sufficient for
105
+ // us to take second to last version
106
+ this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
107
+ }
107
108
  this.packageManager = args.options.packageManager || 'npm';
108
109
  this.shell = args.options.shell || 'powershell';
109
110
  if (this.supportedVersions.indexOf(this.toVersion) < 0) {