@pnp/cli-microsoft365 5.7.0 → 5.8.0-beta.29e39ab
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/cli/Cli.js +1 -1
- package/dist/m365/aad/commands/app/app-get.js +4 -11
- package/dist/m365/aad/commands/app/app-remove.js +4 -11
- package/dist/m365/aad/commands/app/app-role-add.js +5 -10
- package/dist/m365/aad/commands/app/app-role-list.js +4 -24
- package/dist/m365/aad/commands/app/app-role-remove.js +4 -22
- package/dist/m365/aad/commands/app/app-set.js +4 -11
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -8
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +4 -11
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -8
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -8
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +4 -7
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +4 -7
- package/dist/m365/aad/commands/sp/sp-add.js +4 -8
- package/dist/m365/aad/commands/sp/sp-get.js +4 -8
- package/dist/m365/aad/commands/user/user-get.js +4 -9
- package/dist/m365/aad/commands/user/user-list.js +13 -2
- package/dist/m365/aad/commands/user/user-set.js +4 -7
- package/dist/m365/commands/commands.js +1 -0
- package/dist/m365/commands/request.js +153 -0
- package/dist/m365/graph/Changelog.js +3 -0
- package/dist/m365/graph/commands/changelog/changelog-list.js +160 -0
- package/dist/m365/graph/commands.js +1 -0
- package/dist/m365/onenote/commands/notebook/notebook-list.js +139 -0
- package/dist/m365/onenote/commands.js +7 -0
- package/dist/m365/outlook/commands/message/message-list.js +4 -23
- package/dist/m365/outlook/commands/message/message-move.js +4 -31
- package/dist/m365/pa/commands/app/app-get.js +4 -7
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -7
- package/dist/m365/planner/commands/bucket/bucket-list.js +4 -7
- package/dist/m365/planner/commands/plan/plan-add.js +4 -7
- package/dist/m365/planner/commands/plan/plan-list.js +4 -7
- package/dist/m365/planner/commands/task/task-add.js +4 -13
- package/dist/m365/planner/commands/task/task-get.js +7 -0
- package/dist/m365/pp/commands/environment/environment-list.js +1 -1
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -11
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.0-beta.1.js +23 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +47 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +48 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0-beta.1.js +61 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
- package/dist/m365/spfx/commands/spfx-doctor.js +90 -79
- package/dist/m365/spo/commands/app/app-deploy.js +4 -7
- package/dist/m365/spo/commands/app/app-get.js +4 -7
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +4 -7
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +5 -14
- package/dist/m365/spo/commands/file/file-checkin.js +4 -7
- package/dist/m365/spo/commands/file/file-checkout.js +4 -7
- package/dist/m365/spo/commands/file/file-get.js +4 -7
- package/dist/m365/spo/commands/file/file-remove.js +4 -7
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +4 -7
- package/dist/m365/spo/commands/group/group-remove.js +4 -7
- package/dist/m365/spo/commands/group/group-user-add.js +4 -13
- package/dist/m365/spo/commands/group/group-user-list.js +4 -7
- package/dist/m365/spo/commands/group/group-user-remove.js +4 -7
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +1 -1
- package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -7
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +4 -7
- package/dist/m365/spo/commands/list/list-contenttype-list.js +4 -7
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +4 -7
- package/dist/m365/spo/commands/list/list-get.js +4 -7
- package/dist/m365/spo/commands/list/list-label-get.js +4 -7
- package/dist/m365/spo/commands/list/list-label-set.js +4 -4
- package/dist/m365/spo/commands/list/list-remove.js +4 -7
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +9 -0
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +57 -28
- package/dist/m365/spo/commands/list/list-sitescript-get.js +4 -7
- package/dist/m365/spo/commands/list/list-view-field-add.js +4 -19
- package/dist/m365/spo/commands/list/list-view-field-remove.js +4 -19
- package/dist/m365/spo/commands/list/list-view-field-set.js +4 -19
- package/dist/m365/spo/commands/list/list-view-get.js +4 -10
- package/dist/m365/spo/commands/list/list-view-list.js +4 -7
- package/dist/m365/spo/commands/list/list-view-remove.js +4 -13
- package/dist/m365/spo/commands/list/list-view-set.js +4 -13
- package/dist/m365/spo/commands/list/list-webhook-add.js +4 -7
- package/dist/m365/spo/commands/list/list-webhook-get.js +4 -7
- package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -7
- package/dist/m365/spo/commands/list/list-webhook-set.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-add.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-get.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-remove.js +4 -7
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +206 -0
- package/dist/m365/spo/commands/listitem/listitem-set.js +4 -7
- package/dist/m365/spo/commands/site/site-apppermission-add.js +4 -4
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +4 -9
- package/dist/m365/spo/commands/site/site-apppermission-set.js +4 -4
- package/dist/m365/spo/commands/term/term-add.js +4 -7
- package/dist/m365/spo/commands/term/term-get.js +4 -7
- package/dist/m365/spo/commands/term/term-group-get.js +4 -7
- package/dist/m365/spo/commands/term/term-list.js +4 -13
- package/dist/m365/spo/commands/term/term-set-add.js +4 -7
- package/dist/m365/spo/commands/term/term-set-get.js +4 -13
- package/dist/m365/spo/commands/term/term-set-list.js +4 -7
- package/dist/m365/spo/commands/user/user-get.js +4 -9
- package/dist/m365/spo/commands/user/user-remove.js +4 -7
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +187 -0
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +170 -0
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/teams/commands/app/app-install.js +4 -11
- package/dist/m365/teams/commands/app/app-update.js +4 -7
- package/dist/m365/teams/commands/channel/channel-add.js +4 -7
- package/dist/m365/teams/commands/channel/channel-get.js +4 -22
- package/dist/m365/teams/commands/channel/channel-list.js +4 -7
- package/dist/m365/teams/commands/channel/channel-member-list.js +4 -13
- package/dist/m365/teams/commands/channel/channel-member-set.js +4 -21
- package/dist/m365/teams/commands/channel/channel-remove.js +4 -7
- package/dist/m365/teams/commands/chat/chat-get.js +4 -17
- package/dist/m365/teams/commands/chat/chat-message-send.js +4 -17
- package/dist/m365/teams/commands/tab/tab-get.js +4 -19
- package/dist/m365/teams/commands/team/team-get.js +4 -7
- package/dist/m365/teams/commands/user/user-app-list.js +4 -7
- package/dist/m365/todo/commands/list/list-remove.js +4 -21
- package/dist/m365/todo/commands/list/list-set.js +4 -21
- package/dist/m365/todo/commands/task/task-add.js +4 -21
- package/dist/m365/todo/commands/task/task-list.js +4 -21
- package/dist/m365/todo/commands/task/task-remove.js +4 -21
- package/dist/m365/todo/commands/task/task-set.js +4 -7
- package/dist/request.js +6 -2
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +0 -20
- package/docs/docs/cmd/graph/changelog/changelog-list.md +53 -0
- package/docs/docs/cmd/onenote/notebook/notebook-list.md +70 -0
- package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
- package/docs/docs/cmd/request.md +76 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spfx/spfx-doctor.md +3 -3
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +2 -2
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +2 -2
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +5 -2
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +67 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +6 -6
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +57 -0
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +54 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +3 -2
- package/scripts/Register-CLIM365Completion.ps1 +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FN010008_YORC_nodeVersion = void 0;
|
|
4
|
+
const JsonRule_1 = require("../../JsonRule");
|
|
5
|
+
const process = require("process");
|
|
6
|
+
class FN010008_YORC_nodeVersion extends JsonRule_1.JsonRule {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
get id() {
|
|
11
|
+
return 'FN010008';
|
|
12
|
+
}
|
|
13
|
+
get title() {
|
|
14
|
+
return '.yo-rc.json nodeVersion';
|
|
15
|
+
}
|
|
16
|
+
get description() {
|
|
17
|
+
return `Update nodeVersion in .yo-rc.json`;
|
|
18
|
+
}
|
|
19
|
+
get resolution() {
|
|
20
|
+
return `{
|
|
21
|
+
"@microsoft/generator-sharepoint": {
|
|
22
|
+
"nodeVersion": ${process.version.substring(1)}
|
|
23
|
+
}
|
|
24
|
+
}`;
|
|
25
|
+
}
|
|
26
|
+
get resolutionType() {
|
|
27
|
+
return 'json';
|
|
28
|
+
}
|
|
29
|
+
get severity() {
|
|
30
|
+
return 'Recommended';
|
|
31
|
+
}
|
|
32
|
+
get file() {
|
|
33
|
+
return './.yo-rc.json';
|
|
34
|
+
}
|
|
35
|
+
visit(project, findings) {
|
|
36
|
+
if (!project.yoRcJson) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const nodeVersion = process.version.substring(1);
|
|
40
|
+
if (project.yoRcJson["@microsoft/generator-sharepoint"].nodeVersion !== nodeVersion) {
|
|
41
|
+
const node = this.getAstNodeFromFile(project.yoRcJson, '@microsoft/generator-sharepoint.nodeVersion');
|
|
42
|
+
this.addFindingWithPosition(findings, node);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.FN010008_YORC_nodeVersion = FN010008_YORC_nodeVersion;
|
|
47
|
+
//# sourceMappingURL=FN010008_YORC_nodeVersion.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FN021003_PKG_engines_node = void 0;
|
|
4
|
+
const JsonRule_1 = require("../../JsonRule");
|
|
5
|
+
class FN021003_PKG_engines_node extends JsonRule_1.JsonRule {
|
|
6
|
+
constructor(version) {
|
|
7
|
+
super();
|
|
8
|
+
this.version = version;
|
|
9
|
+
}
|
|
10
|
+
get id() {
|
|
11
|
+
return 'FN021003';
|
|
12
|
+
}
|
|
13
|
+
get title() {
|
|
14
|
+
return 'package.json engines.node';
|
|
15
|
+
}
|
|
16
|
+
get description() {
|
|
17
|
+
return 'Update package.json engines.node property';
|
|
18
|
+
}
|
|
19
|
+
get resolution() {
|
|
20
|
+
return `{
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": "${this.version}"
|
|
23
|
+
}
|
|
24
|
+
}`;
|
|
25
|
+
}
|
|
26
|
+
get resolutionType() {
|
|
27
|
+
return 'json';
|
|
28
|
+
}
|
|
29
|
+
get severity() {
|
|
30
|
+
return 'Required';
|
|
31
|
+
}
|
|
32
|
+
get file() {
|
|
33
|
+
return './package.json';
|
|
34
|
+
}
|
|
35
|
+
visit(project, findings) {
|
|
36
|
+
if (!project.packageJson) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (!project.packageJson.engines ||
|
|
40
|
+
!project.packageJson.engines.node ||
|
|
41
|
+
project.packageJson.engines.node !== this.version) {
|
|
42
|
+
const node = this.getAstNodeFromFile(project.packageJson, 'engines.node');
|
|
43
|
+
this.addFindingWithPosition(findings, node);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.FN021003_PKG_engines_node = FN021003_PKG_engines_node;
|
|
48
|
+
//# sourceMappingURL=FN021003_PKG_engines_node.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const FN001001_DEP_microsoft_sp_core_library_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library");
|
|
4
|
+
const FN001002_DEP_microsoft_sp_lodash_subset_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset");
|
|
5
|
+
const FN001003_DEP_microsoft_sp_office_ui_fabric_core_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core");
|
|
6
|
+
const FN001004_DEP_microsoft_sp_webpart_base_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base");
|
|
7
|
+
const FN001011_DEP_microsoft_sp_dialog_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog");
|
|
8
|
+
const FN001012_DEP_microsoft_sp_application_base_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base");
|
|
9
|
+
const FN001013_DEP_microsoft_decorators_1 = require("./rules/FN001013_DEP_microsoft_decorators");
|
|
10
|
+
const FN001014_DEP_microsoft_sp_listview_extensibility_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility");
|
|
11
|
+
const FN001021_DEP_microsoft_sp_property_pane_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane");
|
|
12
|
+
const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
|
|
13
|
+
const FN001023_DEP_microsoft_sp_component_base_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base");
|
|
14
|
+
const FN001024_DEP_microsoft_sp_diagnostics_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics");
|
|
15
|
+
const FN001025_DEP_microsoft_sp_dynamic_data_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data");
|
|
16
|
+
const FN001026_DEP_microsoft_sp_extension_base_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base");
|
|
17
|
+
const FN001027_DEP_microsoft_sp_http_1 = require("./rules/FN001027_DEP_microsoft_sp_http");
|
|
18
|
+
const FN001028_DEP_microsoft_sp_list_subscription_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription");
|
|
19
|
+
const FN001029_DEP_microsoft_sp_loader_1 = require("./rules/FN001029_DEP_microsoft_sp_loader");
|
|
20
|
+
const FN001030_DEP_microsoft_sp_module_interfaces_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces");
|
|
21
|
+
const FN001031_DEP_microsoft_sp_odata_types_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types");
|
|
22
|
+
const FN001032_DEP_microsoft_sp_page_context_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context");
|
|
23
|
+
const FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1 = require("./rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base");
|
|
24
|
+
const FN002001_DEVDEP_microsoft_sp_build_web_1 = require("./rules/FN002001_DEVDEP_microsoft_sp_build_web");
|
|
25
|
+
const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
|
|
26
|
+
const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx");
|
|
27
|
+
const FN002023_DEVDEP_microsoft_eslint_config_spfx_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx");
|
|
28
|
+
const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
|
|
29
|
+
const FN010008_YORC_nodeVersion_1 = require("./rules/FN010008_YORC_nodeVersion");
|
|
30
|
+
const FN021003_PKG_engines_node_1 = require("./rules/FN021003_PKG_engines_node");
|
|
31
|
+
module.exports = [
|
|
32
|
+
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.16.0-beta.1'),
|
|
33
|
+
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.16.0-beta.1'),
|
|
34
|
+
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.16.0-beta.1'),
|
|
35
|
+
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.16.0-beta.1'),
|
|
36
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.16.0-beta.1'),
|
|
37
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.16.0-beta.1'),
|
|
38
|
+
new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('7.192.0'),
|
|
39
|
+
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.16.0-beta.1'),
|
|
40
|
+
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.16.0-beta.1'),
|
|
41
|
+
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.16.0-beta.1'),
|
|
42
|
+
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.16.0-beta.1'),
|
|
43
|
+
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.16.0-beta.1'),
|
|
44
|
+
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.16.0-beta.1'),
|
|
45
|
+
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.16.0-beta.1'),
|
|
46
|
+
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.16.0-beta.1'),
|
|
47
|
+
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.16.0-beta.1'),
|
|
48
|
+
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.16.0-beta.1'),
|
|
49
|
+
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.16.0-beta.1'),
|
|
50
|
+
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.16.0-beta.1'),
|
|
51
|
+
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.16.0-beta.1'),
|
|
52
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.16.0-beta.1'),
|
|
53
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.16.0-beta.1'),
|
|
54
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.16.0-beta.1'),
|
|
55
|
+
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.16.0-beta.1'),
|
|
56
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.16.0-beta.1'),
|
|
57
|
+
new FN010001_YORC_version_1.FN010001_YORC_version('1.16.0-beta.1'),
|
|
58
|
+
new FN010008_YORC_nodeVersion_1.FN010008_YORC_nodeVersion(),
|
|
59
|
+
new FN021003_PKG_engines_node_1.FN021003_PKG_engines_node('>=16.13.0 <17.0.0')
|
|
60
|
+
];
|
|
61
|
+
//# sourceMappingURL=upgrade-1.16.0-beta.1.js.map
|
|
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const fs = require("fs");
|
|
19
19
|
const os = require("os");
|
|
20
20
|
const path = require("path");
|
|
21
|
+
// uncomment to support upgrading to preview releases
|
|
22
|
+
const semver_1 = require("semver");
|
|
21
23
|
const Command_1 = require("../../../../Command");
|
|
22
24
|
const utils_1 = require("../../../../utils");
|
|
23
25
|
const commands_1 = require("../../commands");
|
|
@@ -62,7 +64,8 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
|
|
|
62
64
|
'1.13.1',
|
|
63
65
|
'1.14.0',
|
|
64
66
|
'1.15.0',
|
|
65
|
-
'1.15.2'
|
|
67
|
+
'1.15.2',
|
|
68
|
+
'1.16.0-beta.1'
|
|
66
69
|
];
|
|
67
70
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
|
|
68
71
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
|
|
@@ -82,15 +85,15 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
|
|
|
82
85
|
}
|
|
83
86
|
this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
|
|
84
87
|
// uncomment to support upgrading to preview releases
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
if (!args.options.toVersion &&
|
|
89
|
+
!args.options.preview &&
|
|
90
|
+
(0, semver_1.prerelease)(this.toVersion)) {
|
|
91
|
+
// no version and no preview specified while the current version to
|
|
92
|
+
// upgrade to is a prerelease so let's grab the first non-preview version
|
|
93
|
+
// since we're supporting only one preview version, it's sufficient for
|
|
94
|
+
// us to take second to last version
|
|
95
|
+
this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
96
|
+
}
|
|
94
97
|
this.packageManager = args.options.packageManager || 'npm';
|
|
95
98
|
this.shell = args.options.shell || 'bash';
|
|
96
99
|
if (this.supportedVersions.indexOf(this.toVersion) < 0) {
|
|
@@ -478,9 +481,9 @@ _SpfxProjectUpgradeCommand_instances = new WeakSet(), _SpfxProjectUpgradeCommand
|
|
|
478
481
|
preview: args.options.preview
|
|
479
482
|
});
|
|
480
483
|
// uncomment to support upgrading to preview releases
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
+
if ((0, semver_1.prerelease)(this.telemetryProperties.toVersion) && !args.options.preview) {
|
|
485
|
+
this.telemetryProperties.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
486
|
+
}
|
|
484
487
|
});
|
|
485
488
|
}, _SpfxProjectUpgradeCommand_initOptions = function _SpfxProjectUpgradeCommand_initOptions() {
|
|
486
489
|
this.options.unshift({
|
|
@@ -71,9 +71,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
71
71
|
_SpfxDoctorCommand_instances.add(this);
|
|
72
72
|
this.versions = {
|
|
73
73
|
'1.0.0': {
|
|
74
|
-
|
|
75
|
-
range: '^
|
|
76
|
-
fix: 'npm i -g gulp@
|
|
74
|
+
gulpCli: {
|
|
75
|
+
range: '^1 || ^2',
|
|
76
|
+
fix: 'npm i -g gulp-cli@2'
|
|
77
77
|
},
|
|
78
78
|
node: {
|
|
79
79
|
range: '^6',
|
|
@@ -86,9 +86,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
'1.1.0': {
|
|
89
|
-
|
|
90
|
-
range: '^
|
|
91
|
-
fix: 'npm i -g gulp@
|
|
89
|
+
gulpCli: {
|
|
90
|
+
range: '^1 || ^2',
|
|
91
|
+
fix: 'npm i -g gulp-cli@2'
|
|
92
92
|
},
|
|
93
93
|
node: {
|
|
94
94
|
range: '^6',
|
|
@@ -101,9 +101,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
'1.2.0': {
|
|
104
|
-
|
|
105
|
-
range: '^
|
|
106
|
-
fix: 'npm i -g gulp@
|
|
104
|
+
gulpCli: {
|
|
105
|
+
range: '^1 || ^2',
|
|
106
|
+
fix: 'npm i -g gulp-cli@2'
|
|
107
107
|
},
|
|
108
108
|
node: {
|
|
109
109
|
range: '^6',
|
|
@@ -116,9 +116,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
'1.4.0': {
|
|
119
|
-
|
|
120
|
-
range: '^
|
|
121
|
-
fix: 'npm i -g gulp@
|
|
119
|
+
gulpCli: {
|
|
120
|
+
range: '^1 || ^2',
|
|
121
|
+
fix: 'npm i -g gulp-cli@2'
|
|
122
122
|
},
|
|
123
123
|
node: {
|
|
124
124
|
range: '^6',
|
|
@@ -131,9 +131,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
'1.4.1': {
|
|
134
|
-
|
|
135
|
-
range: '^
|
|
136
|
-
fix: 'npm i -g gulp@
|
|
134
|
+
gulpCli: {
|
|
135
|
+
range: '^1 || ^2',
|
|
136
|
+
fix: 'npm i -g gulp-cli@2'
|
|
137
137
|
},
|
|
138
138
|
node: {
|
|
139
139
|
range: '^6 || ^8',
|
|
@@ -146,9 +146,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
'1.5.0': {
|
|
149
|
-
|
|
150
|
-
range: '^
|
|
151
|
-
fix: 'npm i -g gulp@
|
|
149
|
+
gulpCli: {
|
|
150
|
+
range: '^1 || ^2',
|
|
151
|
+
fix: 'npm i -g gulp-cli@2'
|
|
152
152
|
},
|
|
153
153
|
node: {
|
|
154
154
|
range: '^6 || ^8',
|
|
@@ -161,9 +161,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
'1.5.1': {
|
|
164
|
-
|
|
165
|
-
range: '^
|
|
166
|
-
fix: 'npm i -g gulp@
|
|
164
|
+
gulpCli: {
|
|
165
|
+
range: '^1 || ^2',
|
|
166
|
+
fix: 'npm i -g gulp-cli@2'
|
|
167
167
|
},
|
|
168
168
|
node: {
|
|
169
169
|
range: '^6 || ^8',
|
|
@@ -176,9 +176,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
'1.6.0': {
|
|
179
|
-
|
|
180
|
-
range: '^
|
|
181
|
-
fix: 'npm i -g gulp@
|
|
179
|
+
gulpCli: {
|
|
180
|
+
range: '^1 || ^2',
|
|
181
|
+
fix: 'npm i -g gulp-cli@2'
|
|
182
182
|
},
|
|
183
183
|
node: {
|
|
184
184
|
range: '^6 || ^8',
|
|
@@ -191,9 +191,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
'1.7.0': {
|
|
194
|
-
|
|
195
|
-
range: '^
|
|
196
|
-
fix: 'npm i -g gulp@
|
|
194
|
+
gulpCli: {
|
|
195
|
+
range: '^1 || ^2',
|
|
196
|
+
fix: 'npm i -g gulp-cli@2'
|
|
197
197
|
},
|
|
198
198
|
node: {
|
|
199
199
|
range: '^8',
|
|
@@ -206,9 +206,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
'1.7.1': {
|
|
209
|
-
|
|
210
|
-
range: '^
|
|
211
|
-
fix: 'npm i -g gulp@
|
|
209
|
+
gulpCli: {
|
|
210
|
+
range: '^1 || ^2',
|
|
211
|
+
fix: 'npm i -g gulp-cli@2'
|
|
212
212
|
},
|
|
213
213
|
node: {
|
|
214
214
|
range: '^8',
|
|
@@ -221,9 +221,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
'1.8.0': {
|
|
224
|
-
|
|
225
|
-
range: '^
|
|
226
|
-
fix: 'npm i -g gulp@
|
|
224
|
+
gulpCli: {
|
|
225
|
+
range: '^1 || ^2',
|
|
226
|
+
fix: 'npm i -g gulp-cli@2'
|
|
227
227
|
},
|
|
228
228
|
node: {
|
|
229
229
|
range: '^8',
|
|
@@ -236,9 +236,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
'1.8.1': {
|
|
239
|
-
|
|
240
|
-
range: '^
|
|
241
|
-
fix: 'npm i -g gulp@
|
|
239
|
+
gulpCli: {
|
|
240
|
+
range: '^1 || ^2',
|
|
241
|
+
fix: 'npm i -g gulp-cli@2'
|
|
242
242
|
},
|
|
243
243
|
node: {
|
|
244
244
|
range: '^8',
|
|
@@ -251,9 +251,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
253
|
'1.8.2': {
|
|
254
|
-
|
|
255
|
-
range: '^
|
|
256
|
-
fix: 'npm i -g gulp@
|
|
254
|
+
gulpCli: {
|
|
255
|
+
range: '^1 || ^2',
|
|
256
|
+
fix: 'npm i -g gulp-cli@2'
|
|
257
257
|
},
|
|
258
258
|
node: {
|
|
259
259
|
range: '^8 || ^10',
|
|
@@ -266,9 +266,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
'1.9.0': {
|
|
269
|
-
|
|
270
|
-
range: '^
|
|
271
|
-
fix: 'npm i -g gulp@
|
|
269
|
+
gulpCli: {
|
|
270
|
+
range: '^1 || ^2',
|
|
271
|
+
fix: 'npm i -g gulp-cli@2'
|
|
272
272
|
},
|
|
273
273
|
node: {
|
|
274
274
|
range: '^8 || ^10',
|
|
@@ -281,9 +281,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
283
|
'1.9.1': {
|
|
284
|
-
|
|
285
|
-
range: '^
|
|
286
|
-
fix: 'npm i -g gulp@
|
|
284
|
+
gulpCli: {
|
|
285
|
+
range: '^1 || ^2',
|
|
286
|
+
fix: 'npm i -g gulp-cli@2'
|
|
287
287
|
},
|
|
288
288
|
node: {
|
|
289
289
|
range: '^10',
|
|
@@ -296,9 +296,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
296
296
|
}
|
|
297
297
|
},
|
|
298
298
|
'1.10.0': {
|
|
299
|
-
|
|
300
|
-
range: '^
|
|
301
|
-
fix: 'npm i -g gulp@
|
|
299
|
+
gulpCli: {
|
|
300
|
+
range: '^1 || ^2',
|
|
301
|
+
fix: 'npm i -g gulp-cli@2'
|
|
302
302
|
},
|
|
303
303
|
node: {
|
|
304
304
|
range: '^10',
|
|
@@ -311,9 +311,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
313
|
'1.11.0': {
|
|
314
|
-
|
|
315
|
-
range: '^
|
|
316
|
-
fix: 'npm i -g gulp@
|
|
314
|
+
gulpCli: {
|
|
315
|
+
range: '^1 || ^2',
|
|
316
|
+
fix: 'npm i -g gulp-cli@2'
|
|
317
317
|
},
|
|
318
318
|
node: {
|
|
319
319
|
range: '^10',
|
|
@@ -326,9 +326,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
326
326
|
}
|
|
327
327
|
},
|
|
328
328
|
'1.12.0': {
|
|
329
|
-
|
|
330
|
-
range: '^
|
|
331
|
-
fix: 'npm i -g gulp@
|
|
329
|
+
gulpCli: {
|
|
330
|
+
range: '^1 || ^2',
|
|
331
|
+
fix: 'npm i -g gulp-cli@2'
|
|
332
332
|
},
|
|
333
333
|
node: {
|
|
334
334
|
range: '^12',
|
|
@@ -341,9 +341,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
343
|
'1.12.1': {
|
|
344
|
-
|
|
345
|
-
range: '^
|
|
346
|
-
fix: 'npm i -g gulp@
|
|
344
|
+
gulpCli: {
|
|
345
|
+
range: '^1 || ^2',
|
|
346
|
+
fix: 'npm i -g gulp-cli@2'
|
|
347
347
|
},
|
|
348
348
|
node: {
|
|
349
349
|
range: '^12 || ^14',
|
|
@@ -356,9 +356,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
358
|
'1.13.0': {
|
|
359
|
-
|
|
360
|
-
range: '^
|
|
361
|
-
fix: 'npm i -g gulp@
|
|
359
|
+
gulpCli: {
|
|
360
|
+
range: '^1 || ^2',
|
|
361
|
+
fix: 'npm i -g gulp-cli@2'
|
|
362
362
|
},
|
|
363
363
|
node: {
|
|
364
364
|
range: '^12 || ^14',
|
|
@@ -371,9 +371,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
371
371
|
}
|
|
372
372
|
},
|
|
373
373
|
'1.13.1': {
|
|
374
|
-
|
|
375
|
-
range: '^
|
|
376
|
-
fix: 'npm i -g gulp@
|
|
374
|
+
gulpCli: {
|
|
375
|
+
range: '^1 || ^2',
|
|
376
|
+
fix: 'npm i -g gulp-cli@2'
|
|
377
377
|
},
|
|
378
378
|
node: {
|
|
379
379
|
range: '^12 || ^14',
|
|
@@ -386,9 +386,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
388
|
'1.14.0': {
|
|
389
|
-
|
|
390
|
-
range: '^
|
|
391
|
-
fix: 'npm i -g gulp@
|
|
389
|
+
gulpCli: {
|
|
390
|
+
range: '^1 || ^2',
|
|
391
|
+
fix: 'npm i -g gulp-cli@2'
|
|
392
392
|
},
|
|
393
393
|
node: {
|
|
394
394
|
range: '^12 || ^14',
|
|
@@ -401,9 +401,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
401
401
|
}
|
|
402
402
|
},
|
|
403
403
|
'1.15.0': {
|
|
404
|
-
|
|
405
|
-
range: '^
|
|
406
|
-
fix: 'npm i -g gulp@
|
|
404
|
+
gulpCli: {
|
|
405
|
+
range: '^1 || ^2',
|
|
406
|
+
fix: 'npm i -g gulp-cli@2'
|
|
407
407
|
},
|
|
408
408
|
node: {
|
|
409
409
|
range: '^12.13 || ^14.15 || ^16.13',
|
|
@@ -416,9 +416,9 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
'1.15.2': {
|
|
419
|
-
|
|
420
|
-
range: '^
|
|
421
|
-
fix: 'npm i -g gulp@
|
|
419
|
+
gulpCli: {
|
|
420
|
+
range: '^1 || ^2',
|
|
421
|
+
fix: 'npm i -g gulp-cli@2'
|
|
422
422
|
},
|
|
423
423
|
node: {
|
|
424
424
|
range: '^12.13 || ^14.15 || ^16.13',
|
|
@@ -472,7 +472,8 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
472
472
|
.then(_ => this.checkSharePointCompatibility(spfxVersion, prerequisites, args, fixes, logger))
|
|
473
473
|
.then(_ => this.checkNodeVersion(prerequisites, fixes, logger))
|
|
474
474
|
.then(_ => this.checkYo(prerequisites, fixes, logger))
|
|
475
|
-
.then(_ => this.checkGulp(
|
|
475
|
+
.then(_ => this.checkGulp(fixes, logger))
|
|
476
|
+
.then(_ => this.checkGulpCli(prerequisites, fixes, logger))
|
|
476
477
|
.then(_ => this.checkTypeScript(fixes, logger))
|
|
477
478
|
.then(_ => {
|
|
478
479
|
if (fixes.length > 0) {
|
|
@@ -534,16 +535,26 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
534
535
|
}
|
|
535
536
|
});
|
|
536
537
|
}
|
|
537
|
-
|
|
538
|
+
checkGulpCli(prerequisites, fixes, logger) {
|
|
539
|
+
return this
|
|
540
|
+
.getPackageVersion('gulp-cli', PackageSearchMode.GlobalOnly, HandlePromise.Continue, logger)
|
|
541
|
+
.then((gulpCliVersion) => {
|
|
542
|
+
if (gulpCliVersion) {
|
|
543
|
+
this.checkStatus('gulp-cli', gulpCliVersion, prerequisites.gulpCli, OptionalOrRequired.Required, fixes, logger);
|
|
544
|
+
}
|
|
545
|
+
else {
|
|
546
|
+
logger.log(this.getStatus(CheckStatus.Failure, `gulp-cli not found`));
|
|
547
|
+
fixes.push(prerequisites.gulpCli.fix);
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
checkGulp(fixes, logger) {
|
|
538
552
|
return this
|
|
539
553
|
.getPackageVersion('gulp', PackageSearchMode.GlobalOnly, HandlePromise.Continue, logger)
|
|
540
554
|
.then((gulpVersion) => {
|
|
541
555
|
if (gulpVersion) {
|
|
542
|
-
this.
|
|
543
|
-
|
|
544
|
-
else {
|
|
545
|
-
logger.log(this.getStatus(CheckStatus.Failure, `gulp not found`));
|
|
546
|
-
fixes.push(prerequisites.gulp.fix);
|
|
556
|
+
logger.log(this.getStatus(CheckStatus.Failure, `gulp should be removed`));
|
|
557
|
+
fixes.push('npm un -g gulp');
|
|
547
558
|
}
|
|
548
559
|
});
|
|
549
560
|
}
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoAppDeployCommand_instances, _SpoAppDeployCommand_initTelemetry, _SpoAppDeployCommand_initOptions, _SpoAppDeployCommand_initValidators;
|
|
16
|
+
var _SpoAppDeployCommand_instances, _SpoAppDeployCommand_initTelemetry, _SpoAppDeployCommand_initOptions, _SpoAppDeployCommand_initValidators, _SpoAppDeployCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoAppDeployCommand extends SpoAppBaseCommand_1.SpoAppBaseCommand {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoAppDeployCommand_instances, "m", _SpoAppDeployCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoAppDeployCommand_instances, "m", _SpoAppDeployCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoAppDeployCommand_instances, "m", _SpoAppDeployCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoAppDeployCommand_instances, "m", _SpoAppDeployCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.APP_DEPLOY;
|
|
@@ -118,12 +119,6 @@ _SpoAppDeployCommand_instances = new WeakSet(), _SpoAppDeployCommand_initTelemet
|
|
|
118
119
|
return `You must specify appCatalogUrl when the scope is sitecollection`;
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
|
-
if (!args.options.id && !args.options.name) {
|
|
122
|
-
return 'Specify either the id or the name';
|
|
123
|
-
}
|
|
124
|
-
if (args.options.id && args.options.name) {
|
|
125
|
-
return 'Specify either the id or the name but not both';
|
|
126
|
-
}
|
|
127
122
|
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
128
123
|
return `${args.options.id} is not a valid GUID`;
|
|
129
124
|
}
|
|
@@ -132,6 +127,8 @@ _SpoAppDeployCommand_instances = new WeakSet(), _SpoAppDeployCommand_initTelemet
|
|
|
132
127
|
}
|
|
133
128
|
return true;
|
|
134
129
|
}));
|
|
130
|
+
}, _SpoAppDeployCommand_initOptionSets = function _SpoAppDeployCommand_initOptionSets() {
|
|
131
|
+
this.optionSets.push(['id', 'name']);
|
|
135
132
|
};
|
|
136
133
|
module.exports = new SpoAppDeployCommand();
|
|
137
134
|
//# sourceMappingURL=app-deploy.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoAppGetCommand_instances, _SpoAppGetCommand_initTelemetry, _SpoAppGetCommand_initOptions, _SpoAppGetCommand_initValidators;
|
|
16
|
+
var _SpoAppGetCommand_instances, _SpoAppGetCommand_initTelemetry, _SpoAppGetCommand_initOptions, _SpoAppGetCommand_initValidators, _SpoAppGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class SpoAppGetCommand extends SpoAppBaseCommand_1.SpoAppBaseCommand {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoAppGetCommand_instances, "m", _SpoAppGetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoAppGetCommand_instances, "m", _SpoAppGetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoAppGetCommand_instances, "m", _SpoAppGetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoAppGetCommand_instances, "m", _SpoAppGetCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.APP_GET;
|
|
@@ -109,12 +110,6 @@ _SpoAppGetCommand_instances = new WeakSet(), _SpoAppGetCommand_initTelemetry = f
|
|
|
109
110
|
return `You must specify appCatalogUrl when the scope is sitecollection`;
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
if (!args.options.id && !args.options.name) {
|
|
113
|
-
return 'Specify either the id or the name';
|
|
114
|
-
}
|
|
115
|
-
if (args.options.id && args.options.name) {
|
|
116
|
-
return 'Specify either the id or the name but not both';
|
|
117
|
-
}
|
|
118
113
|
if (args.options.id && !utils_1.validation.isValidGuid(args.options.id)) {
|
|
119
114
|
return `${args.options.id} is not a valid GUID`;
|
|
120
115
|
}
|
|
@@ -123,6 +118,8 @@ _SpoAppGetCommand_instances = new WeakSet(), _SpoAppGetCommand_initTelemetry = f
|
|
|
123
118
|
}
|
|
124
119
|
return true;
|
|
125
120
|
}));
|
|
121
|
+
}, _SpoAppGetCommand_initOptionSets = function _SpoAppGetCommand_initOptionSets() {
|
|
122
|
+
this.optionSets.push(['id', 'name']);
|
|
126
123
|
};
|
|
127
124
|
module.exports = new SpoAppGetCommand();
|
|
128
125
|
//# sourceMappingURL=app-get.js.map
|