@pnp/cli-microsoft365 10.10.0-beta.eb74779 → 10.11.0-beta.24af61c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +2 -0
- package/Dockerfile +2 -2
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/config.js +1 -0
- package/dist/m365/base/GraphApplicationCommand.js +17 -0
- package/dist/m365/base/{DelegatedGraphCommand.js → GraphDelegatedCommand.js} +4 -4
- package/dist/m365/base/PowerAppsCommand.js +1 -1
- package/dist/m365/base/PowerAutomateCommand.js +1 -1
- package/dist/m365/base/PowerBICommand.js +1 -1
- package/dist/m365/base/PowerPlatformCommand.js +1 -1
- package/dist/m365/base/VivaEngageCommand.js +1 -1
- package/dist/m365/cli/commands/app/app-add.js +95 -0
- package/dist/m365/cli/commands.js +1 -0
- package/dist/m365/entra/commands/app/app-get.js +11 -52
- package/dist/m365/entra/commands/app/app-permission-add.js +19 -30
- package/dist/m365/entra/commands/app/app-permission-list.js +2 -19
- package/dist/m365/entra/commands/app/app-permission-remove.js +22 -31
- package/dist/m365/entra/commands/app/app-remove.js +2 -18
- package/dist/m365/entra/commands/app/app-role-add.js +10 -43
- package/dist/m365/entra/commands/app/app-role-list.js +2 -20
- package/dist/m365/entra/commands/app/app-role-remove.js +9 -40
- package/dist/m365/entra/commands/app/app-set.js +2 -19
- package/dist/m365/entra/commands/group/group-member-add.js +55 -10
- package/dist/m365/entra/commands/group/group-member-set.js +18 -3
- package/dist/m365/entra/commands/organization/organization-set.js +104 -0
- package/dist/m365/entra/commands.js +1 -0
- package/dist/m365/outlook/commands/message/message-move.js +1 -1
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +7 -21
- package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +96 -0
- package/dist/m365/spe/commands.js +1 -0
- package/dist/m365/spfx/commands/project/base-project-command.js +1 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.0.js +2 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.1.js +2 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.0-beta.1.js +21 -0
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002022_DEVDEP_typescript.js +10 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-model/SassJson.js +2 -0
- package/dist/m365/spfx/commands/project/project-model/index.js +1 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002001_DEVDEP_microsoft_sp_build_web.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002004_DEVDEP_gulp.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002007_DEVDEP_ajv.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002030_DEVDEP_microsoft_spfx_web_build_rig.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002031_DEVDEP_rushstack_heft.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002033_DEVDEP_jest_junit.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010011_YORC_useGulp.js +40 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015010_FILE_gulpfile_js.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015011_FILE_tsconfig_json.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015012_FILE_config_heft_json.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015013_FILE_config_jest_config_json.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015014_FILE_config_rig_json.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015015_FILE_config_typescript_json.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021004_PKG_scripts_build.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021005_PKG_scripts_test.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021006_PKG_scripts_clean.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021007_PKG_scripts_deploy.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021008_PKG_scripts_start.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021009_PKG_scripts_build_watch.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021010_PKG_scripts_package_solution.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021011_PKG_scripts_deploy_azure_storage.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021012_PKG_scripts_eject_webpack.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021013_PKG_overrides_rushstack_heft.js +45 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023003_GITIGNORE_libdts.js +36 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023004_GITIGNORE_libcommonjs.js +36 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023005_GITIGNORE_libesm.js +36 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023006_GITIGNORE_jestoutput.js +36 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026001_CFG_SASS_schema.js +40 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN026002_CFG_SASS_extends.js +40 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FileAddRemoveRule.js +7 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.0-beta.1.js +241 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/file/file-version-get.js +1 -0
- package/dist/m365/spo/commands/file/file-version-list.js +2 -2
- package/dist/m365/spo/commands/homesite/homesite-remove.js +57 -37
- package/dist/m365/spo/commands/list/list-view-add.js +140 -87
- package/dist/m365/spo/commands/page/Page.js +10 -3
- package/dist/m365/spo/commands/page/clientsidepages.js +4 -0
- package/dist/m365/spo/commands/page/page-section-add.js +73 -13
- package/dist/m365/spo/commands/page/page-section-list.js +5 -1
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +13 -7
- package/dist/m365/spo/commands/site/site-appcatalog-list.js +38 -2
- package/dist/m365/spo/commands/tenant/tenant-site-unarchive.js +1 -1
- package/dist/m365/teams/commands/callrecord/callrecord-list.js +100 -0
- package/dist/m365/teams/commands/chat/chat-message-send.js +2 -2
- package/dist/m365/teams/commands/message/message-remove.js +2 -2
- package/dist/m365/teams/commands/message/message-restore.js +2 -2
- package/dist/m365/teams/commands.js +1 -0
- package/dist/m365/todo/commands/list/list-add.js +2 -2
- package/dist/m365/todo/commands/list/list-get.js +2 -2
- package/dist/m365/todo/commands/list/list-list.js +2 -2
- package/dist/m365/todo/commands/list/list-remove.js +2 -2
- package/dist/m365/todo/commands/list/list-set.js +2 -2
- package/dist/m365/todo/commands/task/task-add.js +2 -2
- package/dist/m365/todo/commands/task/task-get.js +2 -2
- package/dist/m365/todo/commands/task/task-list.js +2 -2
- package/dist/m365/todo/commands/task/task-remove.js +2 -2
- package/dist/m365/todo/commands/task/task-set.js +2 -2
- package/dist/m365/viva/commands/engage/EngageRole.js +2 -0
- package/dist/m365/viva/commands/engage/engage-role-list.js +28 -0
- package/dist/m365/viva/commands/engage/engage-role-member-list.js +57 -0
- package/dist/m365/viva/commands.js +2 -0
- package/dist/utils/accessToken.js +9 -5
- package/dist/utils/entraApp.js +15 -0
- package/dist/utils/entraGroup.js +43 -0
- package/dist/utils/vivaEngage.js +19 -0
- package/docs/docs/cmd/cli/app/app-add.mdx +50 -0
- package/docs/docs/cmd/entra/group/group-member-add.mdx +26 -5
- package/docs/docs/cmd/entra/group/group-member-set.mdx +7 -4
- package/docs/docs/cmd/entra/organization/organization-set.mdx +84 -0
- package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +53 -0
- package/docs/docs/cmd/spo/file/file-version-get.mdx +5 -2
- package/docs/docs/cmd/spo/file/file-version-list.mdx +7 -5
- package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +6 -3
- package/docs/docs/cmd/spo/list/list-view-add.mdx +53 -10
- package/docs/docs/cmd/spo/page/page-section-add.mdx +22 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-list.mdx +11 -0
- package/docs/docs/cmd/spo/tenant/tenant-site-unarchive.mdx +1 -1
- package/docs/docs/cmd/teams/callrecord/callrecord-list.mdx +173 -0
- package/docs/docs/cmd/viva/engage/engage-role-list.mdx +102 -0
- package/docs/docs/cmd/viva/engage/engage-role-member-list.mdx +118 -0
- package/npm-shrinkwrap.json +293 -765
- package/package.json +18 -17
|
@@ -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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
489
|
-
|
|
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: {
|
|
@@ -18,7 +18,7 @@ class SpoFileVersionListCommand extends SpoCommand {
|
|
|
18
18
|
return 'Retrieves all versions of a file';
|
|
19
19
|
}
|
|
20
20
|
defaultProperties() {
|
|
21
|
-
return ['Created', 'ID', 'IsCurrentVersion', 'VersionLabel'];
|
|
21
|
+
return ['Created', 'ID', 'IsCurrentVersion', 'VersionLabel', 'ExpirationDate'];
|
|
22
22
|
}
|
|
23
23
|
constructor() {
|
|
24
24
|
super();
|
|
@@ -42,7 +42,7 @@ class SpoFileVersionListCommand extends SpoCommand {
|
|
|
42
42
|
else {
|
|
43
43
|
requestUrl += `/GetFileById('${args.options.fileId}')`;
|
|
44
44
|
}
|
|
45
|
-
requestUrl += `/versions`;
|
|
45
|
+
requestUrl += `/versions?$select=*,ExpirationDate`;
|
|
46
46
|
const response = await odata.getAllItems(requestUrl);
|
|
47
47
|
await logger.log(response);
|
|
48
48
|
}
|
|
@@ -1,48 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
var _SpoHomeSiteRemoveCommand_instances, _SpoHomeSiteRemoveCommand_initTelemetry, _SpoHomeSiteRemoveCommand_initOptions;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { zod } from '../../../../utils/zod.js';
|
|
3
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
4
|
+
import { validation } from '../../../../utils/validation.js';
|
|
7
5
|
import { cli } from '../../../../cli/cli.js';
|
|
8
6
|
import config from '../../../../config.js';
|
|
9
7
|
import request from '../../../../request.js';
|
|
10
8
|
import { spo } from '../../../../utils/spo.js';
|
|
11
9
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
12
10
|
import commands from '../../commands.js';
|
|
11
|
+
const options = globalOptionsZod
|
|
12
|
+
.extend({
|
|
13
|
+
url: zod.alias('u', z.string()
|
|
14
|
+
.refine(url => validation.isValidSharePointUrl(url) === true, url => ({
|
|
15
|
+
message: `'${url}' is not a valid SharePoint Online site URL.`
|
|
16
|
+
})).optional()),
|
|
17
|
+
force: zod.alias('f', z.boolean().optional())
|
|
18
|
+
})
|
|
19
|
+
.strict();
|
|
13
20
|
class SpoHomeSiteRemoveCommand extends SpoCommand {
|
|
14
21
|
get name() {
|
|
15
22
|
return commands.HOMESITE_REMOVE;
|
|
16
23
|
}
|
|
17
24
|
get description() {
|
|
18
|
-
return 'Removes
|
|
25
|
+
return 'Removes a Home Site';
|
|
19
26
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
_SpoHomeSiteRemoveCommand_instances.add(this);
|
|
23
|
-
__classPrivateFieldGet(this, _SpoHomeSiteRemoveCommand_instances, "m", _SpoHomeSiteRemoveCommand_initTelemetry).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoHomeSiteRemoveCommand_instances, "m", _SpoHomeSiteRemoveCommand_initOptions).call(this);
|
|
27
|
+
get schema() {
|
|
28
|
+
return options;
|
|
25
29
|
}
|
|
26
30
|
async commandAction(logger, args) {
|
|
27
31
|
const removeHomeSite = async () => {
|
|
28
32
|
try {
|
|
33
|
+
if (this.verbose) {
|
|
34
|
+
await logger.logToStderr(`Removing ${args.options.url ? `'${args.options.url}' as home site` : 'the current home site'}...`);
|
|
35
|
+
}
|
|
29
36
|
const spoAdminUrl = await spo.getSpoAdminUrl(logger, this.debug);
|
|
30
37
|
const reqDigest = await spo.getRequestDigest(spoAdminUrl);
|
|
31
|
-
|
|
32
|
-
url
|
|
33
|
-
|
|
34
|
-
'X-RequestDigest': reqDigest.FormDigestValue
|
|
35
|
-
},
|
|
36
|
-
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="28" ObjectPathId="27" /><Method Name="RemoveSPHSite" Id="29" ObjectPathId="27" /></Actions><ObjectPaths><Constructor Id="27" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
|
|
37
|
-
};
|
|
38
|
-
const res = await request.post(requestOptions);
|
|
39
|
-
const json = JSON.parse(res);
|
|
40
|
-
const response = json[0];
|
|
41
|
-
if (response.ErrorInfo) {
|
|
42
|
-
throw response.ErrorInfo.ErrorMessage;
|
|
38
|
+
if (args.options.url) {
|
|
39
|
+
await this.removeHomeSiteByUrl(args.options.url, spoAdminUrl, logger);
|
|
40
|
+
await logger.log(`${args.options.url} has been removed as a Home Site. It may take some time for the change to apply. Check aka.ms/homesites for details.`);
|
|
43
41
|
}
|
|
44
42
|
else {
|
|
45
|
-
await
|
|
43
|
+
await this.warn(logger, `The current way this command works is deprecated and will change in the next major release. The '--url' option will become required.`);
|
|
44
|
+
const requestOptions = {
|
|
45
|
+
url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
46
|
+
headers: {
|
|
47
|
+
'X-RequestDigest': reqDigest.FormDigestValue
|
|
48
|
+
},
|
|
49
|
+
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="28" ObjectPathId="27" /><Method Name="RemoveSPHSite" Id="29" ObjectPathId="27" /></Actions><ObjectPaths><Constructor Id="27" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
|
|
50
|
+
};
|
|
51
|
+
const res = await request.post(requestOptions);
|
|
52
|
+
const json = JSON.parse(res);
|
|
53
|
+
const response = json[0];
|
|
54
|
+
if (response.ErrorInfo) {
|
|
55
|
+
throw response.ErrorInfo.ErrorMessage;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
await logger.log(json[json.length - 1]);
|
|
59
|
+
}
|
|
46
60
|
}
|
|
47
61
|
}
|
|
48
62
|
catch (err) {
|
|
@@ -53,23 +67,29 @@ class SpoHomeSiteRemoveCommand extends SpoCommand {
|
|
|
53
67
|
await removeHomeSite();
|
|
54
68
|
}
|
|
55
69
|
else {
|
|
56
|
-
const result = await cli.promptForConfirmation({
|
|
70
|
+
const result = await cli.promptForConfirmation({
|
|
71
|
+
message: args.options.url
|
|
72
|
+
? `Are you sure you want to remove '${args.options.url}' as home site?`
|
|
73
|
+
: `Are you sure you want to remove the current home site?`
|
|
74
|
+
});
|
|
57
75
|
if (result) {
|
|
58
76
|
await removeHomeSite();
|
|
59
77
|
}
|
|
60
78
|
}
|
|
61
79
|
}
|
|
80
|
+
async removeHomeSiteByUrl(siteUrl, spoAdminUrl, logger) {
|
|
81
|
+
const siteAdminProperties = await spo.getSiteAdminPropertiesByUrl(siteUrl, false, logger, this.verbose);
|
|
82
|
+
const requestOptions = {
|
|
83
|
+
url: `${spoAdminUrl}/_api/SPO.Tenant/RemoveTargetedSite`,
|
|
84
|
+
headers: {
|
|
85
|
+
accept: 'application/json;odata=nometadata'
|
|
86
|
+
},
|
|
87
|
+
data: {
|
|
88
|
+
siteId: siteAdminProperties.SiteId
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
await request.post(requestOptions);
|
|
92
|
+
}
|
|
62
93
|
}
|
|
63
|
-
_SpoHomeSiteRemoveCommand_instances = new WeakSet(), _SpoHomeSiteRemoveCommand_initTelemetry = function _SpoHomeSiteRemoveCommand_initTelemetry() {
|
|
64
|
-
this.telemetry.push((args) => {
|
|
65
|
-
Object.assign(this.telemetryProperties, {
|
|
66
|
-
force: args.options.force || false
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
}, _SpoHomeSiteRemoveCommand_initOptions = function _SpoHomeSiteRemoveCommand_initOptions() {
|
|
70
|
-
this.options.unshift({
|
|
71
|
-
option: '-f, --force'
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
94
|
export default new SpoHomeSiteRemoveCommand();
|
|
75
95
|
//# sourceMappingURL=homesite-remove.js.map
|