@pnp/cli-microsoft365 10.11.0-beta.c2217b6 → 10.11.0

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 (115) hide show
  1. package/.eslintrc.cjs +2 -0
  2. package/Dockerfile +2 -2
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/config.js +1 -0
  6. package/dist/m365/base/GraphApplicationCommand.js +17 -0
  7. package/dist/m365/base/{DelegatedGraphCommand.js → GraphDelegatedCommand.js} +4 -4
  8. package/dist/m365/base/PowerAppsCommand.js +1 -1
  9. package/dist/m365/base/PowerAutomateCommand.js +1 -1
  10. package/dist/m365/base/PowerBICommand.js +1 -1
  11. package/dist/m365/base/PowerPlatformCommand.js +1 -1
  12. package/dist/m365/base/VivaEngageCommand.js +1 -1
  13. package/dist/m365/cli/commands/app/app-add.js +95 -0
  14. package/dist/m365/cli/commands.js +1 -0
  15. package/dist/m365/entra/commands/app/app-get.js +11 -52
  16. package/dist/m365/entra/commands/app/app-permission-add.js +19 -30
  17. package/dist/m365/entra/commands/app/app-permission-list.js +2 -19
  18. package/dist/m365/entra/commands/app/app-permission-remove.js +22 -31
  19. package/dist/m365/entra/commands/app/app-remove.js +2 -18
  20. package/dist/m365/entra/commands/app/app-role-add.js +10 -43
  21. package/dist/m365/entra/commands/app/app-role-list.js +2 -20
  22. package/dist/m365/entra/commands/app/app-role-remove.js +9 -40
  23. package/dist/m365/entra/commands/app/app-set.js +2 -19
  24. package/dist/m365/entra/commands/group/group-member-add.js +55 -10
  25. package/dist/m365/entra/commands/group/group-member-set.js +18 -3
  26. package/dist/m365/outlook/commands/message/message-move.js +1 -1
  27. package/dist/m365/pp/commands/managementapp/managementapp-add.js +7 -21
  28. package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +96 -0
  29. package/dist/m365/spe/commands.js +1 -0
  30. package/dist/m365/spfx/commands/project/base-project-command.js +1 -0
  31. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.0.js +2 -0
  32. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.1.js +2 -0
  33. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.0-beta.1.js +21 -0
  34. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002022_DEVDEP_typescript.js +10 -0
  35. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  36. package/dist/m365/spfx/commands/project/project-model/SassJson.js +2 -0
  37. package/dist/m365/spfx/commands/project/project-model/index.js +1 -0
  38. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002001_DEVDEP_microsoft_sp_build_web.js +2 -2
  39. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002004_DEVDEP_gulp.js +2 -2
  40. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002007_DEVDEP_ajv.js +2 -2
  41. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js +2 -2
  42. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js +10 -0
  43. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002031_DEVDEP_rushstack_heft.js +10 -0
  44. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +10 -0
  45. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002033_DEVDEP_jest_junit.js +10 -0
  46. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010011_YORC_useGulp.js +40 -0
  47. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015010_FILE_gulpfile_js.js +10 -0
  48. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015011_FILE_tsconfig_json.js +10 -0
  49. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015012_FILE_config_heft_json.js +10 -0
  50. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015013_FILE_config_jest_config_json.js +10 -0
  51. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015014_FILE_config_rig_json.js +10 -0
  52. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015015_FILE_config_typescript_json.js +10 -0
  53. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021004_PKG_scripts_build.js +45 -0
  54. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021005_PKG_scripts_test.js +45 -0
  55. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021006_PKG_scripts_clean.js +45 -0
  56. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021007_PKG_scripts_deploy.js +45 -0
  57. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021008_PKG_scripts_start.js +45 -0
  58. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021009_PKG_scripts_build_watch.js +45 -0
  59. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021010_PKG_scripts_package_solution.js +45 -0
  60. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021011_PKG_scripts_deploy_azure_storage.js +45 -0
  61. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021012_PKG_scripts_eject_webpack.js +45 -0
  62. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021013_PKG_overrides_rushstack_heft.js +45 -0
  63. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023003_GITIGNORE_libdts.js +36 -0
  64. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023004_GITIGNORE_libcommonjs.js +36 -0
  65. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023005_GITIGNORE_libesm.js +36 -0
  66. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023006_GITIGNORE_jestoutput.js +36 -0
  67. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026001_CFG_SASS_schema.js +40 -0
  68. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026002_CFG_SASS_extends.js +40 -0
  69. package/dist/m365/spfx/commands/project/project-upgrade/rules/FileAddRemoveRule.js +7 -0
  70. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.0-beta.1.js +241 -0
  71. package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
  72. package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
  73. package/dist/m365/spo/commands/file/file-version-get.js +1 -0
  74. package/dist/m365/spo/commands/file/file-version-list.js +2 -2
  75. package/dist/m365/spo/commands/page/Page.js +10 -3
  76. package/dist/m365/spo/commands/page/page-section-list.js +5 -1
  77. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +13 -7
  78. package/dist/m365/spo/commands/site/site-appcatalog-list.js +38 -2
  79. package/dist/m365/spo/commands/tenant/tenant-site-unarchive.js +1 -1
  80. package/dist/m365/teams/commands/callrecord/callrecord-list.js +100 -0
  81. package/dist/m365/teams/commands/chat/chat-message-send.js +2 -2
  82. package/dist/m365/teams/commands/message/message-remove.js +2 -2
  83. package/dist/m365/teams/commands/message/message-restore.js +2 -2
  84. package/dist/m365/teams/commands.js +1 -0
  85. package/dist/m365/todo/commands/list/list-add.js +2 -2
  86. package/dist/m365/todo/commands/list/list-get.js +2 -2
  87. package/dist/m365/todo/commands/list/list-list.js +2 -2
  88. package/dist/m365/todo/commands/list/list-remove.js +2 -2
  89. package/dist/m365/todo/commands/list/list-set.js +2 -2
  90. package/dist/m365/todo/commands/task/task-add.js +2 -2
  91. package/dist/m365/todo/commands/task/task-get.js +2 -2
  92. package/dist/m365/todo/commands/task/task-list.js +2 -2
  93. package/dist/m365/todo/commands/task/task-remove.js +2 -2
  94. package/dist/m365/todo/commands/task/task-set.js +2 -2
  95. package/dist/m365/viva/commands/engage/EngageRole.js +2 -0
  96. package/dist/m365/viva/commands/engage/engage-role-list.js +28 -0
  97. package/dist/m365/viva/commands/engage/engage-role-member-list.js +57 -0
  98. package/dist/m365/viva/commands.js +2 -0
  99. package/dist/utils/accessToken.js +9 -5
  100. package/dist/utils/entraApp.js +15 -0
  101. package/dist/utils/entraGroup.js +43 -0
  102. package/dist/utils/vivaEngage.js +19 -0
  103. package/docs/docs/cmd/cli/app/app-add.mdx +50 -0
  104. package/docs/docs/cmd/entra/group/group-member-add.mdx +26 -5
  105. package/docs/docs/cmd/entra/group/group-member-set.mdx +7 -4
  106. package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +53 -0
  107. package/docs/docs/cmd/spo/file/file-version-get.mdx +5 -2
  108. package/docs/docs/cmd/spo/file/file-version-list.mdx +7 -5
  109. package/docs/docs/cmd/spo/site/site-appcatalog-list.mdx +11 -0
  110. package/docs/docs/cmd/spo/tenant/tenant-site-unarchive.mdx +1 -1
  111. package/docs/docs/cmd/teams/callrecord/callrecord-list.mdx +173 -0
  112. package/docs/docs/cmd/viva/engage/engage-role-list.mdx +102 -0
  113. package/docs/docs/cmd/viva/engage/engage-role-member-list.mdx +118 -0
  114. package/npm-shrinkwrap.json +291 -763
  115. package/package.json +19 -18
@@ -0,0 +1,45 @@
1
+ import { JsonRule } from "../../JsonRule.js";
2
+ export class FN021012_PKG_scripts_eject_webpack extends JsonRule {
3
+ constructor(script) {
4
+ super();
5
+ this.script = script;
6
+ }
7
+ get id() {
8
+ return 'FN021012';
9
+ }
10
+ get title() {
11
+ return 'package.json scripts.eject-webpack';
12
+ }
13
+ get description() {
14
+ return 'Update package.json scripts.eject-webpack property';
15
+ }
16
+ get resolution() {
17
+ return `{
18
+ "scripts": {
19
+ "eject-webpack": "${this.script}"
20
+ }
21
+ }`;
22
+ }
23
+ get resolutionType() {
24
+ return 'json';
25
+ }
26
+ get severity() {
27
+ return 'Required';
28
+ }
29
+ get file() {
30
+ return './package.json';
31
+ }
32
+ visit(project, findings) {
33
+ if (!project.packageJson) {
34
+ return;
35
+ }
36
+ if (!project.packageJson.scripts ||
37
+ typeof project.packageJson.scripts !== 'object' ||
38
+ !project.packageJson.scripts['eject-webpack'] ||
39
+ project.packageJson.scripts['eject-webpack'] !== this.script) {
40
+ const node = this.getAstNodeFromFile(project.packageJson, 'scripts.eject-webpack');
41
+ this.addFindingWithPosition(findings, node);
42
+ }
43
+ }
44
+ }
45
+ //# sourceMappingURL=FN021012_PKG_scripts_eject_webpack.js.map
@@ -0,0 +1,45 @@
1
+ import { JsonRule } from "../../JsonRule.js";
2
+ export class FN021013_PKG_overrides_rushstack_heft extends JsonRule {
3
+ constructor(version) {
4
+ super();
5
+ this.version = version;
6
+ }
7
+ get id() {
8
+ return 'FN021013';
9
+ }
10
+ get title() {
11
+ return 'package.json overrides.@rushstack/heft';
12
+ }
13
+ get description() {
14
+ return 'Update package.json overrides.@rushstack/heft property';
15
+ }
16
+ get resolution() {
17
+ return `{
18
+ "overrides": {
19
+ "@rushstack/heft": "${this.version}"
20
+ }
21
+ }`;
22
+ }
23
+ get resolutionType() {
24
+ return 'json';
25
+ }
26
+ get severity() {
27
+ return 'Required';
28
+ }
29
+ get file() {
30
+ return './package.json';
31
+ }
32
+ visit(project, findings) {
33
+ if (!project.packageJson) {
34
+ return;
35
+ }
36
+ if (!project.packageJson.overrides ||
37
+ typeof project.packageJson.overrides !== 'object' ||
38
+ !project.packageJson.overrides['@rushstack/heft'] ||
39
+ project.packageJson.overrides['@rushstack/heft'] !== this.version) {
40
+ const node = this.getAstNodeFromFile(project.packageJson, 'overrides.@rushstack/heft');
41
+ this.addFindingWithPosition(findings, node);
42
+ }
43
+ }
44
+ }
45
+ //# sourceMappingURL=FN021013_PKG_overrides_rushstack_heft.js.map
@@ -0,0 +1,36 @@
1
+ import { Rule } from '../../Rule.js';
2
+ export class FN023003_GITIGNORE_libdts extends Rule {
3
+ constructor() {
4
+ super();
5
+ }
6
+ get id() {
7
+ return 'FN023003';
8
+ }
9
+ get title() {
10
+ return `.gitignore 'lib-dts' folder`;
11
+ }
12
+ get description() {
13
+ return `To .gitignore add the 'lib-dts' folder`;
14
+ }
15
+ get resolution() {
16
+ return `lib-dts`;
17
+ }
18
+ get resolutionType() {
19
+ return 'text';
20
+ }
21
+ get severity() {
22
+ return 'Required';
23
+ }
24
+ get file() {
25
+ return './.gitignore';
26
+ }
27
+ visit(project, findings) {
28
+ if (!project.gitignore) {
29
+ return;
30
+ }
31
+ if (!/^lib-dts$/m.test(project.gitignore.source)) {
32
+ this.addFinding(findings);
33
+ }
34
+ }
35
+ }
36
+ //# sourceMappingURL=FN023003_GITIGNORE_libdts.js.map
@@ -0,0 +1,36 @@
1
+ import { Rule } from '../../Rule.js';
2
+ export class FN023004_GITIGNORE_libcommonjs extends Rule {
3
+ constructor() {
4
+ super();
5
+ }
6
+ get id() {
7
+ return 'FN023004';
8
+ }
9
+ get title() {
10
+ return `.gitignore 'lib-commonjs' folder`;
11
+ }
12
+ get description() {
13
+ return `To .gitignore add the 'lib-commonjs' folder`;
14
+ }
15
+ get resolution() {
16
+ return `lib-commonjs`;
17
+ }
18
+ get resolutionType() {
19
+ return 'text';
20
+ }
21
+ get severity() {
22
+ return 'Required';
23
+ }
24
+ get file() {
25
+ return './.gitignore';
26
+ }
27
+ visit(project, findings) {
28
+ if (!project.gitignore) {
29
+ return;
30
+ }
31
+ if (!/^lib-commonjs$/m.test(project.gitignore.source)) {
32
+ this.addFinding(findings);
33
+ }
34
+ }
35
+ }
36
+ //# sourceMappingURL=FN023004_GITIGNORE_libcommonjs.js.map
@@ -0,0 +1,36 @@
1
+ import { Rule } from '../../Rule.js';
2
+ export class FN023005_GITIGNORE_libesm extends Rule {
3
+ constructor() {
4
+ super();
5
+ }
6
+ get id() {
7
+ return 'FN023005';
8
+ }
9
+ get title() {
10
+ return `.gitignore 'lib-esm' folder`;
11
+ }
12
+ get description() {
13
+ return `To .gitignore add the 'lib-esm' folder`;
14
+ }
15
+ get resolution() {
16
+ return `lib-esm`;
17
+ }
18
+ get resolutionType() {
19
+ return 'text';
20
+ }
21
+ get severity() {
22
+ return 'Required';
23
+ }
24
+ get file() {
25
+ return './.gitignore';
26
+ }
27
+ visit(project, findings) {
28
+ if (!project.gitignore) {
29
+ return;
30
+ }
31
+ if (!/^lib-esm$/m.test(project.gitignore.source)) {
32
+ this.addFinding(findings);
33
+ }
34
+ }
35
+ }
36
+ //# sourceMappingURL=FN023005_GITIGNORE_libesm.js.map
@@ -0,0 +1,36 @@
1
+ import { Rule } from '../../Rule.js';
2
+ export class FN023006_GITIGNORE_jestoutput extends Rule {
3
+ constructor() {
4
+ super();
5
+ }
6
+ get id() {
7
+ return 'FN023006';
8
+ }
9
+ get title() {
10
+ return `.gitignore 'jest-output' folder`;
11
+ }
12
+ get description() {
13
+ return `To .gitignore add the 'jest-output' folder`;
14
+ }
15
+ get resolution() {
16
+ return `jest-output`;
17
+ }
18
+ get resolutionType() {
19
+ return 'text';
20
+ }
21
+ get severity() {
22
+ return 'Required';
23
+ }
24
+ get file() {
25
+ return './.gitignore';
26
+ }
27
+ visit(project, findings) {
28
+ if (!project.gitignore) {
29
+ return;
30
+ }
31
+ if (!/^jest-output$/m.test(project.gitignore.source)) {
32
+ this.addFinding(findings);
33
+ }
34
+ }
35
+ }
36
+ //# sourceMappingURL=FN023006_GITIGNORE_jestoutput.js.map
@@ -0,0 +1,40 @@
1
+ import { JsonRule } from '../../JsonRule.js';
2
+ export class FN026001_CFG_SASS_schema extends JsonRule {
3
+ constructor(schema) {
4
+ super();
5
+ this.schema = schema;
6
+ }
7
+ get id() {
8
+ return 'FN026001';
9
+ }
10
+ get title() {
11
+ return 'sass.json schema';
12
+ }
13
+ get description() {
14
+ return `Update sass.json schema URL`;
15
+ }
16
+ get resolution() {
17
+ return `{
18
+ "$schema": "${this.schema}"
19
+ }`;
20
+ }
21
+ get resolutionType() {
22
+ return 'json';
23
+ }
24
+ get severity() {
25
+ return 'Required';
26
+ }
27
+ get file() {
28
+ return './config/sass.json';
29
+ }
30
+ visit(project, findings) {
31
+ if (!project.sassJson) {
32
+ return;
33
+ }
34
+ if (project.sassJson.$schema !== this.schema) {
35
+ const node = this.getAstNodeFromFile(project.sassJson, '$schema');
36
+ this.addFindingWithPosition(findings, node);
37
+ }
38
+ }
39
+ }
40
+ //# sourceMappingURL=FN026001_CFG_SASS_schema.js.map
@@ -0,0 +1,40 @@
1
+ import { JsonRule } from '../../JsonRule.js';
2
+ export class FN026002_CFG_SASS_extends extends JsonRule {
3
+ constructor(_extends) {
4
+ super();
5
+ this._extends = _extends;
6
+ }
7
+ get id() {
8
+ return 'FN026002';
9
+ }
10
+ get title() {
11
+ return 'sass.json extends';
12
+ }
13
+ get description() {
14
+ return `Update sass.json extends property`;
15
+ }
16
+ get resolution() {
17
+ return `{
18
+ "extends": "${this._extends}"
19
+ }`;
20
+ }
21
+ get resolutionType() {
22
+ return 'json';
23
+ }
24
+ get severity() {
25
+ return 'Required';
26
+ }
27
+ get file() {
28
+ return './config/sass.json';
29
+ }
30
+ visit(project, findings) {
31
+ if (!project.sassJson) {
32
+ return;
33
+ }
34
+ if (project.sassJson.extends !== this._extends) {
35
+ const node = this.getAstNodeFromFile(project.sassJson, 'extends');
36
+ this.addFindingWithPosition(findings, node);
37
+ }
38
+ }
39
+ }
40
+ //# sourceMappingURL=FN026002_CFG_SASS_extends.js.map
@@ -39,6 +39,13 @@ ${this.contents}
39
39
  if ((!this.add && fs.existsSync(targetPath)) ||
40
40
  (this.add && !fs.existsSync(targetPath))) {
41
41
  this.addFinding(notifications);
42
+ return;
43
+ }
44
+ if (this.add && this.contents) {
45
+ const fileContent = fs.readFileSync(path.join(project.path, this.filePath), 'utf8');
46
+ if (fileContent !== this.contents) {
47
+ this.addFinding(notifications);
48
+ }
42
49
  }
43
50
  }
44
51
  }
@@ -0,0 +1,241 @@
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 { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_microsoft_sp_build_web.js';
22
+ import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
23
+ import { FN002004_DEVDEP_gulp } from './rules/FN002004_DEVDEP_gulp.js';
24
+ import { FN002007_DEVDEP_ajv } from './rules/FN002007_DEVDEP_ajv.js';
25
+ import { FN002021_DEVDEP_rushstack_eslint_config } from './rules/FN002021_DEVDEP_rushstack_eslint_config.js';
26
+ import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
27
+ import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
28
+ import { FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3 } from './rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js';
29
+ import { FN002030_DEVDEP_microsoft_spfx_web_build_rig } from './rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js';
30
+ import { FN002031_DEVDEP_rushstack_heft } from './rules/FN002031_DEVDEP_rushstack_heft.js';
31
+ import { FN002032_DEVDEP_typescript_eslint_parser } from './rules/FN002032_DEVDEP_typescript_eslint_parser.js';
32
+ import { FN002033_DEVDEP_jest_junit } from './rules/FN002033_DEVDEP_jest_junit.js';
33
+ import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
34
+ import { FN010011_YORC_useGulp } from './rules/FN010011_YORC_useGulp.js';
35
+ import { FN015005_FILE_src_index_ts } from './rules/FN015005_FILE_src_index_ts.js';
36
+ import { FN015010_FILE_gulpfile_js } from './rules/FN015010_FILE_gulpfile_js.js';
37
+ import { FN015011_FILE_tsconfig_json } from './rules/FN015011_FILE_tsconfig_json.js';
38
+ import { FN015012_FILE_config_heft_json } from './rules/FN015012_FILE_config_heft_json.js';
39
+ import { FN015013_FILE_config_jest_config_json } from './rules/FN015013_FILE_config_jest_config_json.js';
40
+ import { FN015014_FILE_config_rig_json } from './rules/FN015014_FILE_config_rig_json.js';
41
+ import { FN015015_FILE_config_typescript_json } from './rules/FN015015_FILE_config_typescript_json.js';
42
+ import { FN020001_RES_types_react } from './rules/FN020001_RES_types_react.js';
43
+ import { FN021001_PKG_main } from './rules/FN021001_PKG_main.js';
44
+ import { FN021004_PKG_scripts_build } from './rules/FN021004_PKG_scripts_build.js';
45
+ import { FN021005_PKG_scripts_test } from './rules/FN021005_PKG_scripts_test.js';
46
+ import { FN021006_PKG_scripts_clean } from './rules/FN021006_PKG_scripts_clean.js';
47
+ import { FN021007_PKG_scripts_deploy } from './rules/FN021007_PKG_scripts_deploy.js';
48
+ import { FN021008_PKG_scripts_start } from './rules/FN021008_PKG_scripts_start.js';
49
+ import { FN021009_PKG_scripts_build_watch } from './rules/FN021009_PKG_scripts_build_watch.js';
50
+ import { FN021010_PKG_scripts_package_solution } from './rules/FN021010_PKG_scripts_package_solution.js';
51
+ import { FN021011_PKG_scripts_deploy_azure_storage } from './rules/FN021011_PKG_scripts_deploy_azure_storage.js';
52
+ import { FN021012_PKG_scripts_eject_webpack } from './rules/FN021012_PKG_scripts_eject_webpack.js';
53
+ import { FN021013_PKG_overrides_rushstack_heft } from './rules/FN021013_PKG_overrides_rushstack_heft.js';
54
+ import { FN023003_GITIGNORE_libdts } from './rules/FN023003_GITIGNORE_libdts.js';
55
+ import { FN023004_GITIGNORE_libcommonjs } from './rules/FN023004_GITIGNORE_libcommonjs.js';
56
+ import { FN023005_GITIGNORE_libesm } from './rules/FN023005_GITIGNORE_libesm.js';
57
+ import { FN023006_GITIGNORE_jestoutput } from './rules/FN023006_GITIGNORE_jestoutput.js';
58
+ import { FN026001_CFG_SASS_schema } from './rules/FN026001_CFG_SASS_schema.js';
59
+ import { FN026002_CFG_SASS_extends } from './rules/FN026002_CFG_SASS_extends.js';
60
+ export default [
61
+ new FN001001_DEP_microsoft_sp_core_library('1.22.0-beta.1'),
62
+ new FN001002_DEP_microsoft_sp_lodash_subset('1.22.0-beta.1'),
63
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.22.0-beta.1'),
64
+ new FN001004_DEP_microsoft_sp_webpart_base('1.22.0-beta.1'),
65
+ new FN001011_DEP_microsoft_sp_dialog('1.22.0-beta.1'),
66
+ new FN001012_DEP_microsoft_sp_application_base('1.22.0-beta.1'),
67
+ new FN001014_DEP_microsoft_sp_listview_extensibility('1.22.0-beta.1'),
68
+ new FN001021_DEP_microsoft_sp_property_pane('1.22.0-beta.1'),
69
+ new FN001023_DEP_microsoft_sp_component_base('1.22.0-beta.1'),
70
+ new FN001024_DEP_microsoft_sp_diagnostics('1.22.0-beta.1'),
71
+ new FN001025_DEP_microsoft_sp_dynamic_data('1.22.0-beta.1'),
72
+ new FN001026_DEP_microsoft_sp_extension_base('1.22.0-beta.1'),
73
+ new FN001027_DEP_microsoft_sp_http('1.22.0-beta.1'),
74
+ new FN001028_DEP_microsoft_sp_list_subscription('1.22.0-beta.1'),
75
+ new FN001029_DEP_microsoft_sp_loader('1.22.0-beta.1'),
76
+ new FN001030_DEP_microsoft_sp_module_interfaces('1.22.0-beta.1'),
77
+ new FN001031_DEP_microsoft_sp_odata_types('1.22.0-beta.1'),
78
+ new FN001032_DEP_microsoft_sp_page_context('1.22.0-beta.1'),
79
+ new FN001013_DEP_microsoft_decorators('1.22.0-beta.1'),
80
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.22.0-beta.1'),
81
+ new FN002001_DEVDEP_microsoft_sp_build_web('1.22.0-beta.1', false),
82
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.22.0-beta.1'),
83
+ new FN002004_DEVDEP_gulp('4.0.2', false),
84
+ new FN002007_DEVDEP_ajv('6.12.6', false),
85
+ new FN002021_DEVDEP_rushstack_eslint_config('4.3.0'),
86
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.22.0-beta.1'),
87
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.22.0-beta.1'),
88
+ new FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3('0.1.0', false),
89
+ new FN002030_DEVDEP_microsoft_spfx_web_build_rig('1.22.0-beta.1'),
90
+ new FN002031_DEVDEP_rushstack_heft('0.73.6'),
91
+ new FN002032_DEVDEP_typescript_eslint_parser('8.26.1'),
92
+ new FN002033_DEVDEP_jest_junit('12.3.0'),
93
+ new FN010001_YORC_version('1.22.0-beta.1'),
94
+ new FN010011_YORC_useGulp(true),
95
+ new FN015005_FILE_src_index_ts(false),
96
+ new FN015010_FILE_gulpfile_js(false),
97
+ new FN015011_FILE_tsconfig_json(true, `{
98
+ "extends": "./node_modules/@microsoft/spfx-web-build-rig/profiles/default/tsconfig-base.json",
99
+ "compilerOptions": {
100
+ "skipLibCheck": true
101
+ }
102
+ }
103
+ `),
104
+ new FN015012_FILE_config_heft_json(true, `{
105
+ "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json",
106
+
107
+ "extends": "@microsoft/spfx-web-build-rig/profiles/default/config/heft.json",
108
+
109
+ "phasesByName": {
110
+ "build": {
111
+ "tasksByName": {
112
+ // copies the localization js files to the lib folder
113
+ "copy-strings": {
114
+ "taskPlugin": {
115
+ "pluginPackage": "@rushstack/heft",
116
+ "pluginName": "copy-files-plugin",
117
+ "options": {
118
+ "copyOperations": [
119
+ {
120
+ "sourcePath": "./src",
121
+ "destinationFolders": ["./lib", "./lib-commonjs"],
122
+ "fileExtensions": [".js"]
123
+ }
124
+ ]
125
+ }
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "eject-webpack": {
131
+ "tasksByName": {
132
+ "eject-webpack": {
133
+ "taskPlugin": {
134
+ "pluginPackage": "@rushstack/heft",
135
+ "pluginName": "run-script-plugin",
136
+ "options": {
137
+ "scriptPath": "node_modules/@microsoft/spfx-heft-plugins/lib-commonjs/plugins/ejectWebpackPlugin/EjectWebpackPlugin.js"
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ }
145
+ `),
146
+ new FN015013_FILE_config_jest_config_json(true, `{
147
+ "extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json",
148
+
149
+ "roots": ["<rootDir>/lib"],
150
+
151
+ "testMatch": ["<rootDir>/lib/**/*.test.js"],
152
+
153
+ "collectCoverageFrom": [
154
+ "lib/**/*.js",
155
+ "!lib/**/*.d.ts",
156
+ "!lib/**/*.test.js",
157
+ "!lib/**/test/**",
158
+ "!lib/**/__tests__/**",
159
+ "!lib/**/__fixtures__/**",
160
+ "!lib/**/__mocks__/**"
161
+ ],
162
+
163
+ "transformIgnorePatterns": ["[\\/]lib[\\/](.*)\\.js$"],
164
+
165
+ "testEnvironment": "jest-environment-jsdom",
166
+ "testEnvironmentOptions": {
167
+ "customExportConditions": ["require", "node", "umd"]
168
+ },
169
+
170
+ "moduleFileExtensions": ["cjs", "js", "json", "node", "css"],
171
+
172
+ // Enable code coverage for Jest
173
+ "collectCoverage": true,
174
+ "coverageDirectory": "<rootDir>/jest-output/coverage",
175
+ "coverageReporters": [
176
+ [
177
+ "cobertura",
178
+ {
179
+ "file": "cobertura/cobertura-coverage.xml"
180
+ }
181
+ ],
182
+ "html",
183
+ "json-summary"
184
+ ],
185
+
186
+ // Use v8 coverage provider to avoid Babel
187
+ "coverageProvider": "v8",
188
+
189
+ // Enable junit reporting for Jest
190
+ "reporters": [
191
+ "default",
192
+ [
193
+ "jest-junit",
194
+ {
195
+ "outputDirectory": "<rootDir>/jest-output",
196
+ "outputName": "JUnit.xml", // QTest expects this casing.
197
+ "classNameTemplate": "{classname} > ",
198
+ "titleTemplate": "{title} ({filepath})"
199
+ }
200
+ ]
201
+ ]
202
+ }
203
+ `),
204
+ new FN015014_FILE_config_rig_json(true, `{
205
+ // The "rig.json" file directs tools to look for their config files in an external package.
206
+ // Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
207
+ "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
208
+
209
+ "rigPackageName": "@microsoft/spfx-web-build-rig"
210
+ }
211
+ `),
212
+ new FN015015_FILE_config_typescript_json(true, `{
213
+ "extends": "@microsoft/spfx-web-build-rig/profiles/default/config/typescript.json",
214
+
215
+ "staticAssetsToCopy": {
216
+ "fileExtensions": [".resx", ".jpg", ".png", ".woff", ".eot", ".ttf", ".svg", ".gif"],
217
+
218
+ "includeGlobs": ["webparts/*/loc/*.js"]
219
+ }
220
+ }
221
+ `),
222
+ new FN020001_RES_types_react('17.0.45'),
223
+ new FN021001_PKG_main(false),
224
+ new FN021004_PKG_scripts_build('heft test --clean'),
225
+ new FN021005_PKG_scripts_test('heft test'),
226
+ new FN021006_PKG_scripts_clean('heft clean'),
227
+ new FN021007_PKG_scripts_deploy('heft dev-deploy'),
228
+ new FN021008_PKG_scripts_start('heft start --clean'),
229
+ new FN021009_PKG_scripts_build_watch('heft build --lite'),
230
+ new FN021010_PKG_scripts_package_solution('heft package-solution'),
231
+ new FN021011_PKG_scripts_deploy_azure_storage('heft deploy-azure-storage'),
232
+ new FN021012_PKG_scripts_eject_webpack('heft eject-webpack'),
233
+ new FN021013_PKG_overrides_rushstack_heft('0.73.6'),
234
+ new FN023003_GITIGNORE_libdts(),
235
+ new FN023004_GITIGNORE_libcommonjs(),
236
+ new FN023005_GITIGNORE_libesm(),
237
+ new FN023006_GITIGNORE_jestoutput(),
238
+ new FN026001_CFG_SASS_schema('https://developer.microsoft.com/json-schemas/heft/v0/heft-sass-plugin.schema.json'),
239
+ new FN026002_CFG_SASS_extends('@microsoft/spfx-web-build-rig/profiles/default/config/sass.json')
240
+ ];
241
+ //# sourceMappingURL=upgrade-1.22.0-beta.1.js.map
@@ -7,6 +7,8 @@ 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';
10
12
  import { CommandError } from '../../../../Command.js';
11
13
  import { fsUtil } from '../../../../utils/fsUtil.js';
12
14
  import { packageManager } from '../../../../utils/packageManager.js';
@@ -75,7 +77,8 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
75
77
  '1.19.0',
76
78
  '1.20.0',
77
79
  '1.21.0',
78
- '1.21.1'
80
+ '1.21.1',
81
+ '1.22.0-beta.1'
79
82
  ];
80
83
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
81
84
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
@@ -88,15 +91,15 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
88
91
  }
89
92
  this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
90
93
  // uncomment to support upgrading to preview releases
91
- // if (!args.options.toVersion &&
92
- // !args.options.preview &&
93
- // prerelease(this.toVersion)) {
94
- // // no version and no preview specified while the current version to
95
- // // upgrade to is a prerelease so let's grab the first non-preview version
96
- // // since we're supporting only one preview version, it's sufficient for
97
- // // us to take second to last version
98
- // this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
99
- // }
94
+ if (!args.options.toVersion &&
95
+ !args.options.preview &&
96
+ prerelease(this.toVersion)) {
97
+ // no version and no preview specified while the current version to
98
+ // upgrade to is a prerelease so let's grab the first non-preview version
99
+ // since we're supporting only one preview version, it's sufficient for
100
+ // us to take second to last version
101
+ this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
102
+ }
100
103
  this.packageManager = args.options.packageManager || 'npm';
101
104
  this.shell = args.options.shell || 'bash';
102
105
  if (this.supportedVersions.indexOf(this.toVersion) < 0) {
@@ -485,9 +488,9 @@ _a = SpfxProjectUpgradeCommand, _SpfxProjectUpgradeCommand_instances = new WeakS
485
488
  preview: args.options.preview
486
489
  });
487
490
  // uncomment to support upgrading to preview releases
488
- // if (prerelease(this.telemetryProperties.toVersion) && !args.options.preview) {
489
- // this.telemetryProperties.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
490
- // }
491
+ if (prerelease(this.telemetryProperties.toVersion) && !args.options.preview) {
492
+ this.telemetryProperties.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
493
+ }
491
494
  });
492
495
  }, _SpfxProjectUpgradeCommand_initOptions = function _SpfxProjectUpgradeCommand_initOptions() {
493
496
  this.options.unshift({
@@ -620,6 +620,17 @@ class SpfxDoctorCommand extends BaseProjectCommand {
620
620
  range: '^4 || ^5',
621
621
  fix: 'npm i -g yo@5'
622
622
  }
623
+ },
624
+ '1.22.0-beta.1': {
625
+ node: {
626
+ range: '>=22.14.0 < 23.0.0',
627
+ fix: 'Install Node.js >=22.14.0 < 23.0.0'
628
+ },
629
+ sp: SharePointVersion.SPO,
630
+ yo: {
631
+ range: '^4 || ^5',
632
+ fix: 'npm i -g yo@5'
633
+ }
623
634
  }
624
635
  };
625
636
  this.output = '';
@@ -801,6 +812,10 @@ class SpfxDoctorCommand extends BaseProjectCommand {
801
812
  }
802
813
  }
803
814
  async checkGulpCli(prerequisites) {
815
+ if (!prerequisites.gulpCli) {
816
+ // gulp-cli is not required for this version of SPFx
817
+ return;
818
+ }
804
819
  const gulpCliVersion = await this.getPackageVersion('gulp-cli', PackageSearchMode.GlobalOnly, HandlePromise.Continue);
805
820
  if (gulpCliVersion) {
806
821
  await this.checkStatus('gulp-cli', gulpCliVersion, prerequisites.gulpCli);
@@ -47,6 +47,7 @@ class SpoFileVersionGetCommand extends SpoCommand {
47
47
  else {
48
48
  requestUrl += `GetFileById('${args.options.fileId}')/versions/?$filter=VersionLabel eq '${args.options.label}'`;
49
49
  }
50
+ requestUrl += `&$select=*,ExpirationDate`;
50
51
  const requestOptions = {
51
52
  url: requestUrl,
52
53
  headers: {