@pnp/cli-microsoft365 5.4.0-beta.fb9344d → 5.5.0-beta.10c7ae2
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/dist/Auth.js +1 -1
- package/dist/Command.js +22 -0
- package/dist/m365/flow/commands/flow-export.js +3 -0
- package/dist/m365/planner/commands/bucket/bucket-add.js +17 -9
- package/dist/m365/planner/commands/bucket/bucket-get.js +19 -11
- package/dist/m365/planner/commands/bucket/bucket-list.js +17 -9
- package/dist/m365/planner/commands/bucket/bucket-remove.js +19 -11
- package/dist/m365/planner/commands/bucket/bucket-set.js +19 -11
- package/dist/m365/planner/commands/plan/plan-get.js +58 -17
- package/dist/m365/planner/commands/plan/plan-remove.js +141 -0
- package/dist/m365/planner/commands/task/task-add.js +16 -16
- package/dist/m365/planner/commands/task/task-get.js +14 -9
- package/dist/m365/planner/commands/task/task-list.js +19 -11
- package/dist/m365/planner/commands/task/task-reference-add.js +1 -7
- package/dist/m365/planner/commands/task/task-reference-remove.js +11 -14
- package/dist/m365/planner/commands/task/task-remove.js +4 -19
- package/dist/m365/planner/commands/task/task-set.js +17 -23
- package/dist/m365/planner/commands/tenant/tenant-settings-set.js +95 -0
- package/dist/m365/planner/commands.js +3 -1
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +69 -0
- package/dist/m365/search/commands.js +1 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.0.js +23 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +7 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.15.0-rc.0.js → upgrade-1.15.0.js} +34 -32
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/base-permissions.js +9 -0
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +62 -12
- package/dist/m365/spo/commands/listitem/listitem-set.js +2 -2
- package/dist/m365/spo/commands/roledefinition/RoleDefinition.js +3 -0
- package/dist/m365/spo/commands/roledefinition/RoleType.js +16 -0
- package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +59 -0
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/cache/cache-remove.js +155 -0
- package/dist/m365/teams/commands.js +1 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +1 -9
- package/dist/utils/accessToken.js +18 -0
- package/dist/utils/planner.js +9 -8
- package/dist/utils/validation.js +5 -1
- package/docs/docs/cmd/aad/user/user-get.md +12 -0
- package/docs/docs/cmd/planner/bucket/bucket-add.md +9 -6
- package/docs/docs/cmd/planner/bucket/bucket-get.md +10 -7
- package/docs/docs/cmd/planner/bucket/bucket-list.md +8 -5
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +8 -5
- package/docs/docs/cmd/planner/bucket/bucket-set.md +9 -6
- package/docs/docs/cmd/planner/plan/plan-get.md +14 -2
- package/docs/docs/cmd/planner/plan/plan-remove.md +48 -0
- package/docs/docs/cmd/planner/task/task-add.md +11 -8
- package/docs/docs/cmd/planner/task/task-get.md +11 -8
- package/docs/docs/cmd/planner/task/task-list.md +9 -6
- package/docs/docs/cmd/planner/task/task-set.md +9 -6
- package/docs/docs/cmd/planner/tenant/tenant-settings-set.md +56 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +33 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +19 -8
- package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +27 -0
- package/docs/docs/cmd/teams/cache/cache-remove.md +46 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +1 -1
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/m365/planner/commands/plan/plan-details-get.js +0 -116
- package/docs/docs/cmd/planner/plan/plan-details-get.md +0 -45
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
5
|
+
const commands_1 = require("../../commands");
|
|
6
|
+
class SearchExternalConnectionGetCommand extends GraphCommand_1.default {
|
|
7
|
+
get name() {
|
|
8
|
+
return commands_1.default.EXTERNALCONNECTION_GET;
|
|
9
|
+
}
|
|
10
|
+
get description() {
|
|
11
|
+
return 'Get a specific external connection for use in Microsoft Search';
|
|
12
|
+
}
|
|
13
|
+
getTelemetryProperties(args) {
|
|
14
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
15
|
+
telemetryProps.id = typeof args.options.id !== 'undefined';
|
|
16
|
+
telemetryProps.name = typeof args.options.name !== 'undefined';
|
|
17
|
+
return telemetryProps;
|
|
18
|
+
}
|
|
19
|
+
commandAction(logger, args, cb) {
|
|
20
|
+
let url = `${this.resource}/v1.0/external/connections`;
|
|
21
|
+
if (args.options.id) {
|
|
22
|
+
url += `/${encodeURIComponent(args.options.id)}`;
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
url += `?$filter=name eq '${encodeURIComponent(args.options.name)}'`;
|
|
26
|
+
}
|
|
27
|
+
const requestOptions = {
|
|
28
|
+
url: url,
|
|
29
|
+
headers: {
|
|
30
|
+
accept: 'application/json;odata.metadata=none'
|
|
31
|
+
},
|
|
32
|
+
responseType: 'json'
|
|
33
|
+
};
|
|
34
|
+
request_1.default
|
|
35
|
+
.get(requestOptions)
|
|
36
|
+
.then((res) => {
|
|
37
|
+
if (args.options.name) {
|
|
38
|
+
if (res.value.length === 0) {
|
|
39
|
+
return Promise.reject(`External connection with name '${args.options.name}' not found`);
|
|
40
|
+
}
|
|
41
|
+
res = res.value[0];
|
|
42
|
+
}
|
|
43
|
+
return Promise.resolve(res);
|
|
44
|
+
})
|
|
45
|
+
.then(res => {
|
|
46
|
+
logger.log(res);
|
|
47
|
+
cb();
|
|
48
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
49
|
+
}
|
|
50
|
+
optionSets() {
|
|
51
|
+
return [
|
|
52
|
+
['id', 'name']
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
options() {
|
|
56
|
+
const options = [
|
|
57
|
+
{
|
|
58
|
+
option: '-i, --id [id]'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
option: '-n, --name [name]'
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
const parentOptions = super.options();
|
|
65
|
+
return options.concat(parentOptions);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
module.exports = new SearchExternalConnectionGetCommand();
|
|
69
|
+
//# sourceMappingURL=externalconnection-get.js.map
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const prefix = 'search';
|
|
4
4
|
exports.default = {
|
|
5
5
|
EXTERNALCONNECTION_ADD: `${prefix} externalconnection add`,
|
|
6
|
+
EXTERNALCONNECTION_GET: `${prefix} externalconnection get`,
|
|
6
7
|
EXTERNALCONNECTION_LIST: `${prefix} externalconnection list`
|
|
7
8
|
};
|
|
8
9
|
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
|
|
4
|
+
const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
|
|
5
|
+
const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
|
|
6
|
+
const FN002004_DEVDEP_gulp_1 = require("./rules/FN002004_DEVDEP_gulp");
|
|
7
|
+
const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
|
|
8
|
+
const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
|
|
9
|
+
const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
|
|
10
|
+
const FN002016_DEVDEP_types_react_dom_1 = require("./rules/FN002016_DEVDEP_types_react_dom");
|
|
11
|
+
const FN002019_DEVDEP_microsoft_rush_stack_compiler_1 = require("./rules/FN002019_DEVDEP_microsoft_rush_stack_compiler");
|
|
12
|
+
module.exports = [
|
|
13
|
+
new FN001008_DEP_react_1.FN001008_DEP_react('16'),
|
|
14
|
+
new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('16'),
|
|
15
|
+
new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('7.185.7'),
|
|
16
|
+
new FN002004_DEVDEP_gulp_1.FN002004_DEVDEP_gulp('4.0.2'),
|
|
17
|
+
new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('^6.12.5'),
|
|
18
|
+
new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('~1.15.2'),
|
|
19
|
+
new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('16'),
|
|
20
|
+
new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('16'),
|
|
21
|
+
new FN002019_DEVDEP_microsoft_rush_stack_compiler_1.FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
|
|
22
|
+
];
|
|
23
|
+
//# sourceMappingURL=doctor-1.15.0.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN015008_FILE_eslintrc_js = void 0;
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
4
5
|
const FileAddRemoveRule_1 = require("./FileAddRemoveRule");
|
|
5
6
|
class FN015008_FILE_eslintrc_js extends FileAddRemoveRule_1.FileAddRemoveRule {
|
|
6
7
|
constructor(add, contents) {
|
|
@@ -9,6 +10,12 @@ class FN015008_FILE_eslintrc_js extends FileAddRemoveRule_1.FileAddRemoveRule {
|
|
|
9
10
|
get id() {
|
|
10
11
|
return 'FN015008';
|
|
11
12
|
}
|
|
13
|
+
visit(project, notifications) {
|
|
14
|
+
if (utils_1.spfx.isReactProject(project)) {
|
|
15
|
+
this.contents = this.contents.replace('@microsoft/eslint-config-spfx/lib/profiles/default', '@microsoft/eslint-config-spfx/lib/profiles/react');
|
|
16
|
+
}
|
|
17
|
+
super.visit(project, notifications);
|
|
18
|
+
}
|
|
12
19
|
}
|
|
13
20
|
exports.FN015008_FILE_eslintrc_js = FN015008_FILE_eslintrc_js;
|
|
14
21
|
//# sourceMappingURL=FN015008_FILE_eslintrc_js.js.map
|
package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.15.0-rc.0.js → upgrade-1.15.0.js}
RENAMED
|
@@ -27,6 +27,7 @@ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
|
|
|
27
27
|
const FN002009_DEVDEP_microsoft_sp_tslint_rules_1 = require("./rules/FN002009_DEVDEP_microsoft_sp_tslint_rules");
|
|
28
28
|
const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
|
|
29
29
|
const FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9_1 = require("./rules/FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9");
|
|
30
|
+
const FN002019_DEVDEP_spfx_fast_serve_helpers_1 = require("./rules/FN002019_DEVDEP_spfx_fast_serve_helpers");
|
|
30
31
|
const FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5_1 = require("./rules/FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5");
|
|
31
32
|
const FN002021_DEVDEP_rushstack_eslint_config_1 = require("./rules/FN002021_DEVDEP_rushstack_eslint_config");
|
|
32
33
|
const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx");
|
|
@@ -40,48 +41,49 @@ const FN015003_FILE_tslint_json_1 = require("./rules/FN015003_FILE_tslint_json")
|
|
|
40
41
|
const FN015008_FILE_eslintrc_js_1 = require("./rules/FN015008_FILE_eslintrc_js");
|
|
41
42
|
const FN023002_GITIGNORE_heft_1 = require("./rules/FN023002_GITIGNORE_heft");
|
|
42
43
|
module.exports = [
|
|
43
|
-
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.15.0
|
|
44
|
-
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.15.0
|
|
45
|
-
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.15.0
|
|
46
|
-
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.15.0
|
|
47
|
-
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.15.0
|
|
48
|
-
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.15.0
|
|
49
|
-
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.15.0
|
|
50
|
-
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.15.0
|
|
51
|
-
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.15.0
|
|
52
|
-
new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('7.
|
|
53
|
-
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.15.0
|
|
54
|
-
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.15.0
|
|
55
|
-
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.15.0
|
|
56
|
-
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.15.0
|
|
57
|
-
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.15.0
|
|
58
|
-
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.15.0
|
|
59
|
-
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.15.0
|
|
60
|
-
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.15.0
|
|
61
|
-
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.15.0
|
|
62
|
-
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.15.0
|
|
44
|
+
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.15.0'),
|
|
45
|
+
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.15.0'),
|
|
46
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.15.0'),
|
|
47
|
+
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.15.0'),
|
|
48
|
+
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.15.0'),
|
|
49
|
+
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.15.0'),
|
|
50
|
+
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.15.0'),
|
|
51
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.15.0'),
|
|
52
|
+
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.15.0'),
|
|
53
|
+
new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('7.185.7'),
|
|
54
|
+
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.15.0'),
|
|
55
|
+
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.15.0'),
|
|
56
|
+
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.15.0'),
|
|
57
|
+
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.15.0'),
|
|
58
|
+
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.15.0'),
|
|
59
|
+
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.15.0'),
|
|
60
|
+
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.15.0'),
|
|
61
|
+
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.15.0'),
|
|
62
|
+
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.15.0'),
|
|
63
|
+
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.15.0'),
|
|
63
64
|
new FN001033_DEP_tslib_1.FN001033_DEP_tslib('2.3.1'),
|
|
64
|
-
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.15.0
|
|
65
|
-
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.15.0
|
|
65
|
+
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.15.0'),
|
|
66
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.15.0'),
|
|
66
67
|
new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('6.12.5'),
|
|
67
68
|
new FN002009_DEVDEP_microsoft_sp_tslint_rules_1.FN002009_DEVDEP_microsoft_sp_tslint_rules('', false),
|
|
68
69
|
new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('1.15.2'),
|
|
69
70
|
new FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9_1.FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9('', false),
|
|
70
|
-
new
|
|
71
|
+
new FN002019_DEVDEP_spfx_fast_serve_helpers_1.FN002019_DEVDEP_spfx_fast_serve_helpers('1.15.2'),
|
|
72
|
+
new FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5_1.FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5('0.2.2'),
|
|
71
73
|
new FN002021_DEVDEP_rushstack_eslint_config_1.FN002021_DEVDEP_rushstack_eslint_config('2.5.1'),
|
|
72
|
-
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.15.0
|
|
73
|
-
new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.15.0
|
|
74
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.15.0'),
|
|
75
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.15.0'),
|
|
74
76
|
new FN002024_DEVDEP_eslint_1.FN002024_DEVDEP_eslint('8.7.0'),
|
|
75
77
|
new FN002025_DEVDEP_eslint_plugin_react_hooks_1.FN002025_DEVDEP_eslint_plugin_react_hooks('4.3.0'),
|
|
76
|
-
new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.15.0
|
|
77
|
-
new FN010001_YORC_version_1.FN010001_YORC_version('1.15.0
|
|
78
|
+
new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.15.0'),
|
|
79
|
+
new FN010001_YORC_version_1.FN010001_YORC_version('1.15.0'),
|
|
78
80
|
new FN012017_TSC_extends_1.FN012017_TSC_extends('./node_modules/@microsoft/rush-stack-compiler-4.5/includes/tsconfig-web.json'),
|
|
79
81
|
new FN015003_FILE_tslint_json_1.FN015003_FILE_tslint_json(false, ''),
|
|
80
82
|
new FN015008_FILE_eslintrc_js_1.FN015008_FILE_eslintrc_js(true, `require('@rushstack/eslint-config/patch/modern-module-resolution');
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
module.exports = {
|
|
84
|
+
extends: ['@microsoft/eslint-config-spfx/lib/profiles/default'],
|
|
85
|
+
parserOptions: { tsconfigRootDir: __dirname }
|
|
86
|
+
};`),
|
|
85
87
|
new FN023002_GITIGNORE_heft_1.FN023002_GITIGNORE_heft()
|
|
86
88
|
];
|
|
87
|
-
//# sourceMappingURL=upgrade-1.15.0
|
|
89
|
+
//# sourceMappingURL=upgrade-1.15.0.js.map
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const os = require("os");
|
|
5
5
|
const path = require("path");
|
|
6
|
-
// uncomment to support upgrading to preview releases
|
|
7
|
-
const semver_1 = require("semver");
|
|
8
6
|
const Command_1 = require("../../../../Command");
|
|
9
7
|
const utils_1 = require("../../../../utils");
|
|
10
8
|
const commands_1 = require("../../commands");
|
|
@@ -47,7 +45,7 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
|
|
|
47
45
|
'1.13.0',
|
|
48
46
|
'1.13.1',
|
|
49
47
|
'1.14.0',
|
|
50
|
-
'1.15.0
|
|
48
|
+
'1.15.0'
|
|
51
49
|
];
|
|
52
50
|
}
|
|
53
51
|
get name() {
|
|
@@ -60,9 +58,9 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
|
|
|
60
58
|
const telemetryProps = super.getTelemetryProperties(args);
|
|
61
59
|
telemetryProps.toVersion = args.options.toVersion || this.supportedVersions[this.supportedVersions.length - 1];
|
|
62
60
|
// uncomment to support upgrading to preview releases
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
}
|
|
61
|
+
// if (prerelease(telemetryProps.toVersion) && !args.options.preview) {
|
|
62
|
+
// telemetryProps.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
63
|
+
// }
|
|
66
64
|
telemetryProps.packageManager = args.options.packageManager || 'npm';
|
|
67
65
|
telemetryProps.shell = args.options.shell || 'bash';
|
|
68
66
|
telemetryProps.preview = args.options.preview;
|
|
@@ -76,15 +74,15 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
|
|
|
76
74
|
}
|
|
77
75
|
this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
|
|
78
76
|
// uncomment to support upgrading to preview releases
|
|
79
|
-
if (!args.options.toVersion &&
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
77
|
+
// if (!args.options.toVersion &&
|
|
78
|
+
// !args.options.preview &&
|
|
79
|
+
// prerelease(this.toVersion)) {
|
|
80
|
+
// // no version and no preview specified while the current version to
|
|
81
|
+
// // upgrade to is a prerelease so let's grab the first non-preview version
|
|
82
|
+
// // since we're supporting only one preview version, it's sufficient for
|
|
83
|
+
// // us to take second to last version
|
|
84
|
+
// this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
85
|
+
// }
|
|
88
86
|
this.packageManager = args.options.packageManager || 'npm';
|
|
89
87
|
this.shell = args.options.shell || 'bash';
|
|
90
88
|
if (this.supportedVersions.indexOf(this.toVersion) < 0) {
|
|
@@ -383,6 +383,21 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
383
383
|
range: '^4',
|
|
384
384
|
fix: 'npm i -g yo@4'
|
|
385
385
|
}
|
|
386
|
+
},
|
|
387
|
+
'1.15.0': {
|
|
388
|
+
gulp: {
|
|
389
|
+
range: '^4',
|
|
390
|
+
fix: 'npm i -g gulp@4'
|
|
391
|
+
},
|
|
392
|
+
node: {
|
|
393
|
+
range: '^12.13 || ^14.15 || ^16.13',
|
|
394
|
+
fix: 'Install Node.js v12.13, v14.15, v16.13 or higher'
|
|
395
|
+
},
|
|
396
|
+
sp: SharePointVersion.SPO,
|
|
397
|
+
yo: {
|
|
398
|
+
range: '^4',
|
|
399
|
+
fix: 'npm i -g yo@4'
|
|
400
|
+
}
|
|
386
401
|
}
|
|
387
402
|
};
|
|
388
403
|
}
|
|
@@ -22,6 +22,15 @@ class BasePermissions {
|
|
|
22
22
|
set low(value) {
|
|
23
23
|
this._low = value;
|
|
24
24
|
}
|
|
25
|
+
parse() {
|
|
26
|
+
const result = [];
|
|
27
|
+
for (const permissionKind in PermissionKind) {
|
|
28
|
+
if (this.has(PermissionKind[permissionKind])) {
|
|
29
|
+
result.push(permissionKind);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return result;
|
|
33
|
+
}
|
|
25
34
|
has(perm) {
|
|
26
35
|
let hasPermission = false;
|
|
27
36
|
if (perm === PermissionKind.FullMask) {
|
|
@@ -11,37 +11,87 @@ class SpoHubSiteGetCommand extends SpoCommand_1.default {
|
|
|
11
11
|
get description() {
|
|
12
12
|
return 'Gets information about the specified hub site';
|
|
13
13
|
}
|
|
14
|
+
getTelemetryProperties(args) {
|
|
15
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
16
|
+
telemetryProps.id = typeof args.options.id !== 'undefined';
|
|
17
|
+
telemetryProps.title = typeof args.options.title !== 'undefined';
|
|
18
|
+
telemetryProps.url = typeof args.options.url !== 'undefined';
|
|
19
|
+
return telemetryProps;
|
|
20
|
+
}
|
|
14
21
|
commandAction(logger, args, cb) {
|
|
15
22
|
utils_1.spo
|
|
16
23
|
.getSpoUrl(logger, this.debug)
|
|
17
24
|
.then((spoUrl) => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
return request_1.default.get(requestOptions);
|
|
25
|
+
if (args.options.id) {
|
|
26
|
+
return this.getHubSiteById(spoUrl, args.options);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return this.getHubSite(spoUrl, args.options);
|
|
30
|
+
}
|
|
26
31
|
})
|
|
27
32
|
.then((res) => {
|
|
28
33
|
logger.log(res);
|
|
29
34
|
cb();
|
|
30
35
|
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
31
36
|
}
|
|
37
|
+
getHubSiteById(spoUrl, options) {
|
|
38
|
+
const requestOptions = {
|
|
39
|
+
url: `${spoUrl}/_api/hubsites/getbyid('${options.id}')`,
|
|
40
|
+
headers: {
|
|
41
|
+
accept: 'application/json;odata=nometadata'
|
|
42
|
+
},
|
|
43
|
+
responseType: 'json'
|
|
44
|
+
};
|
|
45
|
+
return request_1.default.get(requestOptions);
|
|
46
|
+
}
|
|
47
|
+
getHubSite(spoUrl, options) {
|
|
48
|
+
const requestOptions = {
|
|
49
|
+
url: `${spoUrl}/_api/hubsites`,
|
|
50
|
+
headers: {
|
|
51
|
+
accept: 'application/json;odata=nometadata'
|
|
52
|
+
},
|
|
53
|
+
responseType: 'json'
|
|
54
|
+
};
|
|
55
|
+
return request_1.default
|
|
56
|
+
.get(requestOptions)
|
|
57
|
+
.then((response) => {
|
|
58
|
+
let hubSites = response.value;
|
|
59
|
+
if (options.title) {
|
|
60
|
+
hubSites = hubSites.filter(site => site.Title.toLocaleLowerCase() === options.title.toLocaleLowerCase());
|
|
61
|
+
}
|
|
62
|
+
else if (options.url) {
|
|
63
|
+
hubSites = hubSites.filter(site => site.SiteUrl.toLocaleLowerCase() === options.url.toLocaleLowerCase());
|
|
64
|
+
}
|
|
65
|
+
if (hubSites.length === 0) {
|
|
66
|
+
return Promise.reject(`The specified hub site ${options.title || options.url} does not exist`);
|
|
67
|
+
}
|
|
68
|
+
if (hubSites.length > 1) {
|
|
69
|
+
return Promise.reject(`Multiple hub sites with ${options.title || options.url} found. Please disambiguate: ${hubSites.map(site => site.SiteUrl).join(', ')}`);
|
|
70
|
+
}
|
|
71
|
+
return hubSites[0];
|
|
72
|
+
});
|
|
73
|
+
}
|
|
32
74
|
options() {
|
|
33
75
|
const options = [
|
|
34
|
-
{
|
|
35
|
-
|
|
36
|
-
}
|
|
76
|
+
{ option: '-i, --id [id]' },
|
|
77
|
+
{ option: '-t, --title [title]' },
|
|
78
|
+
{ option: '-u, --url [url]' }
|
|
37
79
|
];
|
|
38
80
|
const parentOptions = super.options();
|
|
39
81
|
return options.concat(parentOptions);
|
|
40
82
|
}
|
|
83
|
+
optionSets() {
|
|
84
|
+
return [
|
|
85
|
+
['id', 'title', 'url']
|
|
86
|
+
];
|
|
87
|
+
}
|
|
41
88
|
validate(args) {
|
|
42
|
-
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
89
|
+
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
43
90
|
return `${args.options.id} is not a valid GUID`;
|
|
44
91
|
}
|
|
92
|
+
if (args.options.url) {
|
|
93
|
+
return utils_1.validation.isValidSharePointUrl(args.options.url);
|
|
94
|
+
}
|
|
45
95
|
return true;
|
|
46
96
|
}
|
|
47
97
|
}
|
|
@@ -281,11 +281,11 @@ class SpoListItemSetCommand extends SpoCommand_1.default {
|
|
|
281
281
|
requestBody.push(`
|
|
282
282
|
<Parameters>
|
|
283
283
|
<Parameter Type="String">${key}</Parameter>
|
|
284
|
-
<Parameter Type="String">${options[key]}</Parameter>
|
|
284
|
+
<Parameter Type="String">${options[key].toString()}</Parameter>
|
|
285
285
|
</Parameters>`);
|
|
286
286
|
}
|
|
287
287
|
else {
|
|
288
|
-
requestBody.push({ FieldName: key, FieldValue: options[key] });
|
|
288
|
+
requestBody.push({ FieldName: key, FieldValue: options[key].toString() });
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoleType = void 0;
|
|
4
|
+
var RoleType;
|
|
5
|
+
(function (RoleType) {
|
|
6
|
+
RoleType[RoleType["None"] = 0] = "None";
|
|
7
|
+
RoleType[RoleType["Guest"] = 1] = "Guest";
|
|
8
|
+
RoleType[RoleType["Reader"] = 2] = "Reader";
|
|
9
|
+
RoleType[RoleType["Contributor"] = 3] = "Contributor";
|
|
10
|
+
RoleType[RoleType["WebDesigner"] = 4] = "WebDesigner";
|
|
11
|
+
RoleType[RoleType["Administrator"] = 5] = "Administrator";
|
|
12
|
+
RoleType[RoleType["Editor"] = 6] = "Editor";
|
|
13
|
+
RoleType[RoleType["Reviewer"] = 7] = "Reviewer";
|
|
14
|
+
RoleType[RoleType["System"] = 8] = "System";
|
|
15
|
+
})(RoleType = exports.RoleType || (exports.RoleType = {}));
|
|
16
|
+
//# sourceMappingURL=RoleType.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
|
+
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
|
+
const base_permissions_1 = require("../../base-permissions");
|
|
7
|
+
const commands_1 = require("../../commands");
|
|
8
|
+
const RoleType_1 = require("./RoleType");
|
|
9
|
+
class SpoRoleDefinitionGetCommand extends SpoCommand_1.default {
|
|
10
|
+
get name() {
|
|
11
|
+
return commands_1.default.ROLEDEFINITION_GET;
|
|
12
|
+
}
|
|
13
|
+
get description() {
|
|
14
|
+
return 'Gets specified role definition from web by id';
|
|
15
|
+
}
|
|
16
|
+
commandAction(logger, args, cb) {
|
|
17
|
+
if (this.verbose) {
|
|
18
|
+
logger.logToStderr(`Getting role definition from ${args.options.webUrl}...`);
|
|
19
|
+
}
|
|
20
|
+
const requestOptions = {
|
|
21
|
+
url: `${args.options.webUrl}/_api/web/roledefinitions(${args.options.id})`,
|
|
22
|
+
headers: {
|
|
23
|
+
'accept': 'application/json;odata=nometadata'
|
|
24
|
+
},
|
|
25
|
+
responseType: 'json'
|
|
26
|
+
};
|
|
27
|
+
request_1.default
|
|
28
|
+
.get(requestOptions)
|
|
29
|
+
.then((response) => {
|
|
30
|
+
const permissions = new base_permissions_1.BasePermissions();
|
|
31
|
+
permissions.high = response.BasePermissions.High;
|
|
32
|
+
permissions.low = response.BasePermissions.Low;
|
|
33
|
+
response.BasePermissionsValue = permissions.parse();
|
|
34
|
+
response.RoleTypeKindValue = RoleType_1.RoleType[response.RoleTypeKind];
|
|
35
|
+
logger.log(response);
|
|
36
|
+
cb();
|
|
37
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
38
|
+
}
|
|
39
|
+
options() {
|
|
40
|
+
const options = [
|
|
41
|
+
{
|
|
42
|
+
option: '-u, --webUrl <webUrl>'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
option: '-i, --id <id>'
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
const parentOptions = super.options();
|
|
49
|
+
return options.concat(parentOptions);
|
|
50
|
+
}
|
|
51
|
+
validate(args) {
|
|
52
|
+
if (isNaN(args.options.id)) {
|
|
53
|
+
return `${args.options.id} is not a number`;
|
|
54
|
+
}
|
|
55
|
+
return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
module.exports = new SpoRoleDefinitionGetCommand();
|
|
59
|
+
//# sourceMappingURL=roledefinition-get.js.map
|
|
@@ -167,6 +167,7 @@ exports.default = {
|
|
|
167
167
|
REPORT_SITEUSAGEPAGES: `${prefix} report siteusagepages`,
|
|
168
168
|
REPORT_SITEUSAGESITECOUNTS: `${prefix} report siteusagesitecounts`,
|
|
169
169
|
REPORT_SITEUSAGESTORAGE: `${prefix} report siteusagestorage`,
|
|
170
|
+
ROLEDEFINITION_GET: `${prefix} roledefinition get`,
|
|
170
171
|
ROLEDEFINITION_LIST: `${prefix} roledefinition list`,
|
|
171
172
|
ROLEDEFINITION_REMOVE: `${prefix} roledefinition remove`,
|
|
172
173
|
SEARCH: `${prefix} search`,
|