@pnp/cli-microsoft365 6.0.0-beta.ed1cc4a → 6.0.0-beta.f1889e3
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-add.js +4 -4
- 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-recyclebinitem-restore.js +0 -3
- 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/aad/commands.js +0 -1
- 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/mail/mail-send.js +22 -6
- 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/outlook/commands.js +1 -2
- 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/field/field-set.js +2 -9
- 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-roleinheritance-break.js +46 -21
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +42 -17
- 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-roleinheritance-break.js +46 -21
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +45 -17
- 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/web/web-roleinheritance-reset.js +43 -13
- 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-add.js +0 -4
- package/dist/m365/teams/commands/channel/channel-member-list.js +4 -17
- package/dist/m365/teams/commands/channel/channel-member-remove.js +0 -4
- 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 +6 -21
- 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/teams/commands.js +0 -3
- 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/dist/utils/fsUtil.js +2 -4
- package/dist/utils/md.js +1 -1
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +1 -7
- 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/outlook/mail/mail-send.md +45 -8
- 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/field/field-set.md +0 -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/list/list-roleinheritance-break.md +9 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +9 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +67 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +15 -6
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +9 -0
- package/docs/docs/cmd/spo/site/site-add.md +2 -2
- package/docs/docs/cmd/spo/site/site-groupify.md +0 -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/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +9 -0
- package/docs/docs/cmd/teams/channel/channel-member-add.md +0 -6
- package/docs/docs/cmd/teams/channel/channel-member-list.md +0 -6
- package/docs/docs/cmd/teams/channel/channel-member-remove.md +0 -6
- package/package.json +2 -1
- package/scripts/Register-CLIM365Completion.ps1 +1 -1
|
@@ -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 appCatalogScope 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 appCatalogScope 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
|
|
@@ -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 _SpoContentTypeGetCommand_instances, _SpoContentTypeGetCommand_initTelemetry, _SpoContentTypeGetCommand_initOptions, _SpoContentTypeGetCommand_initValidators, _SpoContentTypeGetCommand_initTypes;
|
|
16
|
+
var _SpoContentTypeGetCommand_instances, _SpoContentTypeGetCommand_initTelemetry, _SpoContentTypeGetCommand_initOptions, _SpoContentTypeGetCommand_initValidators, _SpoContentTypeGetCommand_initTypes, _SpoContentTypeGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -28,6 +28,7 @@ class SpoContentTypeGetCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoContentTypeGetCommand_instances, "m", _SpoContentTypeGetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoContentTypeGetCommand_instances, "m", _SpoContentTypeGetCommand_initValidators).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoContentTypeGetCommand_instances, "m", _SpoContentTypeGetCommand_initTypes).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoContentTypeGetCommand_instances, "m", _SpoContentTypeGetCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.CONTENTTYPE_GET;
|
|
@@ -98,16 +99,12 @@ _SpoContentTypeGetCommand_instances = new WeakSet(), _SpoContentTypeGetCommand_i
|
|
|
98
99
|
if (isValidSharePointUrl !== true) {
|
|
99
100
|
return isValidSharePointUrl;
|
|
100
101
|
}
|
|
101
|
-
if (args.options.id && args.options.name) {
|
|
102
|
-
return 'Specify id or name, but not both';
|
|
103
|
-
}
|
|
104
|
-
if (!args.options.id && !args.options.name) {
|
|
105
|
-
return 'Specify id or name, one is required';
|
|
106
|
-
}
|
|
107
102
|
return true;
|
|
108
103
|
}));
|
|
109
104
|
}, _SpoContentTypeGetCommand_initTypes = function _SpoContentTypeGetCommand_initTypes() {
|
|
110
105
|
this.types.string.push('id', 'i');
|
|
106
|
+
}, _SpoContentTypeGetCommand_initOptionSets = function _SpoContentTypeGetCommand_initOptionSets() {
|
|
107
|
+
this.optionSets.push(['id', 'name']);
|
|
111
108
|
};
|
|
112
109
|
module.exports = new SpoContentTypeGetCommand();
|
|
113
110
|
//# sourceMappingURL=contenttype-get.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 _SpoContentTypeRemoveCommand_instances, _SpoContentTypeRemoveCommand_initTelemetry, _SpoContentTypeRemoveCommand_initOptions, _SpoContentTypeRemoveCommand_initValidators, _SpoContentTypeRemoveCommand_initTypes;
|
|
16
|
+
var _SpoContentTypeRemoveCommand_instances, _SpoContentTypeRemoveCommand_initTelemetry, _SpoContentTypeRemoveCommand_initOptions, _SpoContentTypeRemoveCommand_initValidators, _SpoContentTypeRemoveCommand_initTypes, _SpoContentTypeRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const Command_1 = require("../../../../Command");
|
|
@@ -29,6 +29,7 @@ class SpoContentTypeRemoveCommand extends SpoCommand_1.default {
|
|
|
29
29
|
__classPrivateFieldGet(this, _SpoContentTypeRemoveCommand_instances, "m", _SpoContentTypeRemoveCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoContentTypeRemoveCommand_instances, "m", _SpoContentTypeRemoveCommand_initValidators).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _SpoContentTypeRemoveCommand_instances, "m", _SpoContentTypeRemoveCommand_initTypes).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _SpoContentTypeRemoveCommand_instances, "m", _SpoContentTypeRemoveCommand_initOptionSets).call(this);
|
|
32
33
|
}
|
|
33
34
|
get name() {
|
|
34
35
|
return commands_1.default.CONTENTTYPE_REMOVE;
|
|
@@ -126,21 +127,11 @@ _SpoContentTypeRemoveCommand_instances = new WeakSet(), _SpoContentTypeRemoveCom
|
|
|
126
127
|
option: '--confirm'
|
|
127
128
|
});
|
|
128
129
|
}, _SpoContentTypeRemoveCommand_initValidators = function _SpoContentTypeRemoveCommand_initValidators() {
|
|
129
|
-
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
130
|
-
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
131
|
-
if (isValidSharePointUrl !== true) {
|
|
132
|
-
return isValidSharePointUrl;
|
|
133
|
-
}
|
|
134
|
-
if (!args.options.id && !args.options.name) {
|
|
135
|
-
return 'Specify either the id or the name';
|
|
136
|
-
}
|
|
137
|
-
if (args.options.id && args.options.name) {
|
|
138
|
-
return 'Specify either the id or the name but not both';
|
|
139
|
-
}
|
|
140
|
-
return true;
|
|
141
|
-
}));
|
|
130
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return utils_1.validation.isValidSharePointUrl(args.options.webUrl); }));
|
|
142
131
|
}, _SpoContentTypeRemoveCommand_initTypes = function _SpoContentTypeRemoveCommand_initTypes() {
|
|
143
132
|
this.types.string.push('id', 'i');
|
|
133
|
+
}, _SpoContentTypeRemoveCommand_initOptionSets = function _SpoContentTypeRemoveCommand_initOptionSets() {
|
|
134
|
+
this.optionSets.push(['id', 'name']);
|
|
144
135
|
};
|
|
145
136
|
module.exports = new SpoContentTypeRemoveCommand();
|
|
146
137
|
//# sourceMappingURL=contenttype-remove.js.map
|
|
@@ -40,9 +40,6 @@ class SpoFieldSetCommand extends SpoCommand_1.default {
|
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
commandAction(logger, args, cb) {
|
|
43
|
-
if (args.options.name) {
|
|
44
|
-
this.warn(logger, `Option 'name' is deprecated. Please use 'title' instead.`);
|
|
45
|
-
}
|
|
46
43
|
let requestDigest = '';
|
|
47
44
|
utils_1.spo
|
|
48
45
|
.getRequestDigest(args.options.webUrl)
|
|
@@ -78,7 +75,7 @@ class SpoFieldSetCommand extends SpoCommand_1.default {
|
|
|
78
75
|
// retrieve column CSOM object id
|
|
79
76
|
const fieldQuery = args.options.id ?
|
|
80
77
|
`<Method Id="663" ParentId="7" Name="GetById"><Parameters><Parameter Type="Guid">${utils_1.formatting.escapeXml(args.options.id)}</Parameter></Parameters></Method>` :
|
|
81
|
-
`<Method Id="663" ParentId="7" Name="GetByInternalNameOrTitle"><Parameters><Parameter Type="String">${utils_1.formatting.escapeXml(args.options.
|
|
78
|
+
`<Method Id="663" ParentId="7" Name="GetByInternalNameOrTitle"><Parameters><Parameter Type="String">${utils_1.formatting.escapeXml(args.options.title)}</Parameter></Parameters></Method>`;
|
|
82
79
|
const requestOptions = {
|
|
83
80
|
url: `${args.options.webUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
84
81
|
headers: {
|
|
@@ -121,7 +118,6 @@ class SpoFieldSetCommand extends SpoCommand_1.default {
|
|
|
121
118
|
'listId',
|
|
122
119
|
'listTitle',
|
|
123
120
|
'id',
|
|
124
|
-
'name',
|
|
125
121
|
'title',
|
|
126
122
|
'updateExistingLists',
|
|
127
123
|
'debug',
|
|
@@ -140,7 +136,6 @@ _SpoFieldSetCommand_instances = new WeakSet(), _SpoFieldSetCommand_initTelemetry
|
|
|
140
136
|
Object.assign(this.telemetryProperties, {
|
|
141
137
|
id: typeof args.options.id !== 'undefined',
|
|
142
138
|
title: typeof args.options.title !== 'undefined',
|
|
143
|
-
name: typeof args.options.name !== 'undefined',
|
|
144
139
|
listId: typeof args.options.listId !== 'undefined',
|
|
145
140
|
listTitle: typeof args.options.listTitle !== 'undefined',
|
|
146
141
|
updateExistingLists: !!args.options.updateExistingLists
|
|
@@ -155,8 +150,6 @@ _SpoFieldSetCommand_instances = new WeakSet(), _SpoFieldSetCommand_initTelemetry
|
|
|
155
150
|
option: '--listTitle [listTitle]'
|
|
156
151
|
}, {
|
|
157
152
|
option: '-i, --id [id]'
|
|
158
|
-
}, {
|
|
159
|
-
option: '-n, --name [name]'
|
|
160
153
|
}, {
|
|
161
154
|
option: '-t, --title [title]'
|
|
162
155
|
}, {
|
|
@@ -182,7 +175,7 @@ _SpoFieldSetCommand_instances = new WeakSet(), _SpoFieldSetCommand_initTelemetry
|
|
|
182
175
|
return true;
|
|
183
176
|
}));
|
|
184
177
|
}, _SpoFieldSetCommand_initOptionSets = function _SpoFieldSetCommand_initOptionSets() {
|
|
185
|
-
this.optionSets.push(['id', 'title'
|
|
178
|
+
this.optionSets.push(['id', 'title']);
|
|
186
179
|
};
|
|
187
180
|
module.exports = new SpoFieldSetCommand();
|
|
188
181
|
//# sourceMappingURL=field-set.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 _SpoFileCheckinCommand_instances, _SpoFileCheckinCommand_initTelemetry, _SpoFileCheckinCommand_initOptions, _SpoFileCheckinCommand_initValidators;
|
|
16
|
+
var _SpoFileCheckinCommand_instances, _SpoFileCheckinCommand_initTelemetry, _SpoFileCheckinCommand_initOptions, _SpoFileCheckinCommand_initValidators, _SpoFileCheckinCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -32,6 +32,7 @@ class SpoFileCheckinCommand extends SpoCommand_1.default {
|
|
|
32
32
|
__classPrivateFieldGet(this, _SpoFileCheckinCommand_instances, "m", _SpoFileCheckinCommand_initTelemetry).call(this);
|
|
33
33
|
__classPrivateFieldGet(this, _SpoFileCheckinCommand_instances, "m", _SpoFileCheckinCommand_initOptions).call(this);
|
|
34
34
|
__classPrivateFieldGet(this, _SpoFileCheckinCommand_instances, "m", _SpoFileCheckinCommand_initValidators).call(this);
|
|
35
|
+
__classPrivateFieldGet(this, _SpoFileCheckinCommand_instances, "m", _SpoFileCheckinCommand_initOptionSets).call(this);
|
|
35
36
|
}
|
|
36
37
|
get name() {
|
|
37
38
|
return commands_1.default.FILE_CHECKIN;
|
|
@@ -106,12 +107,6 @@ _SpoFileCheckinCommand_instances = new WeakSet(), _SpoFileCheckinCommand_initTel
|
|
|
106
107
|
return `${args.options.id} is not a valid GUID`;
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
|
-
if (args.options.id && args.options.url) {
|
|
110
|
-
return 'Specify either url or id but not both';
|
|
111
|
-
}
|
|
112
|
-
if (!args.options.id && !args.options.url) {
|
|
113
|
-
return 'Specify url or id, one is required';
|
|
114
|
-
}
|
|
115
110
|
if (args.options.comment && args.options.comment.length > 1023) {
|
|
116
111
|
return 'The length of the comment must be less than 1024 letters';
|
|
117
112
|
}
|
|
@@ -124,6 +119,8 @@ _SpoFileCheckinCommand_instances = new WeakSet(), _SpoFileCheckinCommand_initTel
|
|
|
124
119
|
}
|
|
125
120
|
return true;
|
|
126
121
|
}));
|
|
122
|
+
}, _SpoFileCheckinCommand_initOptionSets = function _SpoFileCheckinCommand_initOptionSets() {
|
|
123
|
+
this.optionSets.push(['url', 'id']);
|
|
127
124
|
};
|
|
128
125
|
module.exports = new SpoFileCheckinCommand();
|
|
129
126
|
//# sourceMappingURL=file-checkin.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 _SpoFileCheckoutCommand_instances, _SpoFileCheckoutCommand_initTelemetry, _SpoFileCheckoutCommand_initOptions, _SpoFileCheckoutCommand_initValidators;
|
|
16
|
+
var _SpoFileCheckoutCommand_instances, _SpoFileCheckoutCommand_initTelemetry, _SpoFileCheckoutCommand_initOptions, _SpoFileCheckoutCommand_initValidators, _SpoFileCheckoutCommand_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 SpoFileCheckoutCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoFileCheckoutCommand_instances, "m", _SpoFileCheckoutCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoFileCheckoutCommand_instances, "m", _SpoFileCheckoutCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoFileCheckoutCommand_instances, "m", _SpoFileCheckoutCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoFileCheckoutCommand_instances, "m", _SpoFileCheckoutCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.FILE_CHECKOUT;
|
|
@@ -79,14 +80,10 @@ _SpoFileCheckoutCommand_instances = new WeakSet(), _SpoFileCheckoutCommand_initT
|
|
|
79
80
|
return `${args.options.id} is not a valid GUID`;
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
if (args.options.id && args.options.url) {
|
|
83
|
-
return 'Specify either id or url but not both';
|
|
84
|
-
}
|
|
85
|
-
if (!args.options.id && !args.options.url) {
|
|
86
|
-
return 'Specify id or url, one is required';
|
|
87
|
-
}
|
|
88
83
|
return true;
|
|
89
84
|
}));
|
|
85
|
+
}, _SpoFileCheckoutCommand_initOptionSets = function _SpoFileCheckoutCommand_initOptionSets() {
|
|
86
|
+
this.optionSets.push(['id', 'url']);
|
|
90
87
|
};
|
|
91
88
|
module.exports = new SpoFileCheckoutCommand();
|
|
92
89
|
//# sourceMappingURL=file-checkout.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 _SpoFileGetCommand_instances, _SpoFileGetCommand_initTelemetry, _SpoFileGetCommand_initOptions, _SpoFileGetCommand_initValidators;
|
|
16
|
+
var _SpoFileGetCommand_instances, _SpoFileGetCommand_initTelemetry, _SpoFileGetCommand_initOptions, _SpoFileGetCommand_initValidators, _SpoFileGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const fs = require("fs");
|
|
19
19
|
const path = require("path");
|
|
@@ -28,6 +28,7 @@ class SpoFileGetCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.FILE_GET;
|
|
@@ -150,12 +151,6 @@ _SpoFileGetCommand_instances = new WeakSet(), _SpoFileGetCommand_initTelemetry =
|
|
|
150
151
|
return `${args.options.id} is not a valid GUID`;
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
|
-
if (args.options.id && args.options.url) {
|
|
154
|
-
return 'Specify id or url, but not both';
|
|
155
|
-
}
|
|
156
|
-
if (!args.options.id && !args.options.url) {
|
|
157
|
-
return 'Specify id or url, one is required';
|
|
158
|
-
}
|
|
159
154
|
if (args.options.asFile && !args.options.path) {
|
|
160
155
|
return 'The path should be specified when the --asFile option is used';
|
|
161
156
|
}
|
|
@@ -174,6 +169,8 @@ _SpoFileGetCommand_instances = new WeakSet(), _SpoFileGetCommand_initTelemetry =
|
|
|
174
169
|
}
|
|
175
170
|
return true;
|
|
176
171
|
}));
|
|
172
|
+
}, _SpoFileGetCommand_initOptionSets = function _SpoFileGetCommand_initOptionSets() {
|
|
173
|
+
this.optionSets.push(['id', 'url']);
|
|
177
174
|
};
|
|
178
175
|
module.exports = new SpoFileGetCommand();
|
|
179
176
|
//# sourceMappingURL=file-get.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 _SpoFileRemoveCommand_instances, _SpoFileRemoveCommand_initTelemetry, _SpoFileRemoveCommand_initOptions, _SpoFileRemoveCommand_initValidators;
|
|
16
|
+
var _SpoFileRemoveCommand_instances, _SpoFileRemoveCommand_initTelemetry, _SpoFileRemoveCommand_initOptions, _SpoFileRemoveCommand_initValidators, _SpoFileRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoFileRemoveCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoFileRemoveCommand_instances, "m", _SpoFileRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoFileRemoveCommand_instances, "m", _SpoFileRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoFileRemoveCommand_instances, "m", _SpoFileRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoFileRemoveCommand_instances, "m", _SpoFileRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.FILE_REMOVE;
|
|
@@ -131,14 +132,10 @@ _SpoFileRemoveCommand_instances = new WeakSet(), _SpoFileRemoveCommand_initTelem
|
|
|
131
132
|
!utils_1.validation.isValidGuid(args.options.id)) {
|
|
132
133
|
return `${args.options.id} is not a valid GUID`;
|
|
133
134
|
}
|
|
134
|
-
if (args.options.id && args.options.url) {
|
|
135
|
-
return 'Specify id or url, but not both';
|
|
136
|
-
}
|
|
137
|
-
if (!args.options.id && !args.options.url) {
|
|
138
|
-
return 'Specify id or url';
|
|
139
|
-
}
|
|
140
135
|
return true;
|
|
141
136
|
}));
|
|
137
|
+
}, _SpoFileRemoveCommand_initOptionSets = function _SpoFileRemoveCommand_initOptionSets() {
|
|
138
|
+
this.optionSets.push(['id', 'url']);
|
|
142
139
|
};
|
|
143
140
|
module.exports = new SpoFileRemoveCommand();
|
|
144
141
|
//# sourceMappingURL=file-remove.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 _SpoFileSharinginfoGetCommand_instances, _SpoFileSharinginfoGetCommand_initTelemetry, _SpoFileSharinginfoGetCommand_initOptions, _SpoFileSharinginfoGetCommand_initValidators;
|
|
16
|
+
var _SpoFileSharinginfoGetCommand_instances, _SpoFileSharinginfoGetCommand_initTelemetry, _SpoFileSharinginfoGetCommand_initOptions, _SpoFileSharinginfoGetCommand_initValidators, _SpoFileSharinginfoGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -27,6 +27,7 @@ class SpoFileSharinginfoGetCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoFileSharinginfoGetCommand_instances, "m", _SpoFileSharinginfoGetCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoFileSharinginfoGetCommand_instances, "m", _SpoFileSharinginfoGetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoFileSharinginfoGetCommand_instances, "m", _SpoFileSharinginfoGetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoFileSharinginfoGetCommand_instances, "m", _SpoFileSharinginfoGetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.FILE_SHARINGINFO_GET;
|
|
@@ -135,14 +136,10 @@ _SpoFileSharinginfoGetCommand_instances = new WeakSet(), _SpoFileSharinginfoGetC
|
|
|
135
136
|
return `${args.options.fileId} is not a valid GUID`;
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
|
-
if (args.options.fileId && args.options.fileUrl) {
|
|
139
|
-
return 'Specify fileId or fileUrl, but not both';
|
|
140
|
-
}
|
|
141
|
-
if (!args.options.fileId && !args.options.fileUrl) {
|
|
142
|
-
return 'Specify fileId or fileUrl, one is required';
|
|
143
|
-
}
|
|
144
139
|
return true;
|
|
145
140
|
}));
|
|
141
|
+
}, _SpoFileSharinginfoGetCommand_initOptionSets = function _SpoFileSharinginfoGetCommand_initOptionSets() {
|
|
142
|
+
this.optionSets.push(['fileId', 'fileUrl']);
|
|
146
143
|
};
|
|
147
144
|
module.exports = new SpoFileSharinginfoGetCommand();
|
|
148
145
|
//# sourceMappingURL=file-sharinginfo-get.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 _SpoGroupRemoveCommand_instances, _SpoGroupRemoveCommand_initTelemetry, _SpoGroupRemoveCommand_initOptions, _SpoGroupRemoveCommand_initValidators;
|
|
16
|
+
var _SpoGroupRemoveCommand_instances, _SpoGroupRemoveCommand_initTelemetry, _SpoGroupRemoveCommand_initOptions, _SpoGroupRemoveCommand_initValidators, _SpoGroupRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoGroupRemoveCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoGroupRemoveCommand_instances, "m", _SpoGroupRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoGroupRemoveCommand_instances, "m", _SpoGroupRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoGroupRemoveCommand_instances, "m", _SpoGroupRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoGroupRemoveCommand_instances, "m", _SpoGroupRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.GROUP_REMOVE;
|
|
@@ -117,17 +118,13 @@ _SpoGroupRemoveCommand_instances = new WeakSet(), _SpoGroupRemoveCommand_initTel
|
|
|
117
118
|
if (isValidSharePointUrl !== true) {
|
|
118
119
|
return isValidSharePointUrl;
|
|
119
120
|
}
|
|
120
|
-
if (args.options.id && args.options.name) {
|
|
121
|
-
return 'Specify id or name, but not both';
|
|
122
|
-
}
|
|
123
|
-
if (!args.options.id && !args.options.name) {
|
|
124
|
-
return 'Specify id or name';
|
|
125
|
-
}
|
|
126
121
|
if (args.options.id && typeof args.options.id !== 'number') {
|
|
127
122
|
return `${args.options.id} is not a number`;
|
|
128
123
|
}
|
|
129
124
|
return true;
|
|
130
125
|
}));
|
|
126
|
+
}, _SpoGroupRemoveCommand_initOptionSets = function _SpoGroupRemoveCommand_initOptionSets() {
|
|
127
|
+
this.optionSets.push(['id', 'name']);
|
|
131
128
|
};
|
|
132
129
|
module.exports = new SpoGroupRemoveCommand();
|
|
133
130
|
//# sourceMappingURL=group-remove.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 _SpoGroupUserAddCommand_instances, _SpoGroupUserAddCommand_initTelemetry, _SpoGroupUserAddCommand_initOptions, _SpoGroupUserAddCommand_initValidators;
|
|
16
|
+
var _SpoGroupUserAddCommand_instances, _SpoGroupUserAddCommand_initTelemetry, _SpoGroupUserAddCommand_initOptions, _SpoGroupUserAddCommand_initValidators, _SpoGroupUserAddCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const Command_1 = require("../../../../Command");
|
|
@@ -29,6 +29,7 @@ class SpoGroupUserAddCommand extends SpoCommand_1.default {
|
|
|
29
29
|
__classPrivateFieldGet(this, _SpoGroupUserAddCommand_instances, "m", _SpoGroupUserAddCommand_initTelemetry).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoGroupUserAddCommand_instances, "m", _SpoGroupUserAddCommand_initOptions).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _SpoGroupUserAddCommand_instances, "m", _SpoGroupUserAddCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _SpoGroupUserAddCommand_instances, "m", _SpoGroupUserAddCommand_initOptionSets).call(this);
|
|
32
33
|
}
|
|
33
34
|
get name() {
|
|
34
35
|
return commands_1.default.GROUP_USER_ADD;
|
|
@@ -171,23 +172,13 @@ _SpoGroupUserAddCommand_instances = new WeakSet(), _SpoGroupUserAddCommand_initT
|
|
|
171
172
|
if (isValidSharePointUrl !== true) {
|
|
172
173
|
return isValidSharePointUrl;
|
|
173
174
|
}
|
|
174
|
-
if (!args.options.groupId && !args.options.groupName) {
|
|
175
|
-
return 'Specify either groupId or groupName';
|
|
176
|
-
}
|
|
177
|
-
if (args.options.groupId && args.options.groupName) {
|
|
178
|
-
return 'Specify either groupId or groupName but not both';
|
|
179
|
-
}
|
|
180
|
-
if (!args.options.userName && !args.options.email) {
|
|
181
|
-
return 'Specify either userName or email';
|
|
182
|
-
}
|
|
183
|
-
if (args.options.userName && args.options.email) {
|
|
184
|
-
return 'Specify either userName or email but not both';
|
|
185
|
-
}
|
|
186
175
|
if (args.options.groupId && isNaN(args.options.groupId)) {
|
|
187
176
|
return `Specified groupId ${args.options.groupId} is not a number`;
|
|
188
177
|
}
|
|
189
178
|
return true;
|
|
190
179
|
}));
|
|
180
|
+
}, _SpoGroupUserAddCommand_initOptionSets = function _SpoGroupUserAddCommand_initOptionSets() {
|
|
181
|
+
this.optionSets.push(['groupId', 'groupName'], ['userName', 'email']);
|
|
191
182
|
};
|
|
192
183
|
module.exports = new SpoGroupUserAddCommand();
|
|
193
184
|
//# sourceMappingURL=group-user-add.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 _SpoGroupUserListCommand_instances, _SpoGroupUserListCommand_initTelemetry, _SpoGroupUserListCommand_initOptions, _SpoGroupUserListCommand_initValidators;
|
|
16
|
+
var _SpoGroupUserListCommand_instances, _SpoGroupUserListCommand_initTelemetry, _SpoGroupUserListCommand_initOptions, _SpoGroupUserListCommand_initValidators, _SpoGroupUserListCommand_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 SpoGroupUserListCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoGroupUserListCommand_instances, "m", _SpoGroupUserListCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoGroupUserListCommand_instances, "m", _SpoGroupUserListCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoGroupUserListCommand_instances, "m", _SpoGroupUserListCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoGroupUserListCommand_instances, "m", _SpoGroupUserListCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.GROUP_USER_LIST;
|
|
@@ -75,17 +76,13 @@ _SpoGroupUserListCommand_instances = new WeakSet(), _SpoGroupUserListCommand_ini
|
|
|
75
76
|
});
|
|
76
77
|
}, _SpoGroupUserListCommand_initValidators = function _SpoGroupUserListCommand_initValidators() {
|
|
77
78
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
if (args.options.groupId && args.options.groupName) {
|
|
79
|
-
return 'Use either "groupName" or "groupId", but not both';
|
|
80
|
-
}
|
|
81
|
-
if (!args.options.groupId && !args.options.groupName) {
|
|
82
|
-
return 'Either "groupName" or "groupId" is required';
|
|
83
|
-
}
|
|
84
79
|
if (args.options.groupId && isNaN(args.options.groupId)) {
|
|
85
80
|
return `Specified "groupId" ${args.options.groupId} is not valid`;
|
|
86
81
|
}
|
|
87
82
|
return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
88
83
|
}));
|
|
84
|
+
}, _SpoGroupUserListCommand_initOptionSets = function _SpoGroupUserListCommand_initOptionSets() {
|
|
85
|
+
this.optionSets.push(['groupName', 'groupId']);
|
|
89
86
|
};
|
|
90
87
|
module.exports = new SpoGroupUserListCommand();
|
|
91
88
|
//# sourceMappingURL=group-user-list.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 _SpoGroupUserRemoveCommand_instances, _SpoGroupUserRemoveCommand_initTelemetry, _SpoGroupUserRemoveCommand_initOptions, _SpoGroupUserRemoveCommand_initValidators;
|
|
16
|
+
var _SpoGroupUserRemoveCommand_instances, _SpoGroupUserRemoveCommand_initTelemetry, _SpoGroupUserRemoveCommand_initOptions, _SpoGroupUserRemoveCommand_initValidators, _SpoGroupUserRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class SpoGroupUserRemoveCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoGroupUserRemoveCommand_instances, "m", _SpoGroupUserRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoGroupUserRemoveCommand_instances, "m", _SpoGroupUserRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoGroupUserRemoveCommand_instances, "m", _SpoGroupUserRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoGroupUserRemoveCommand_instances, "m", _SpoGroupUserRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.GROUP_USER_REMOVE;
|
|
@@ -101,17 +102,13 @@ _SpoGroupUserRemoveCommand_instances = new WeakSet(), _SpoGroupUserRemoveCommand
|
|
|
101
102
|
});
|
|
102
103
|
}, _SpoGroupUserRemoveCommand_initValidators = function _SpoGroupUserRemoveCommand_initValidators() {
|
|
103
104
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
if (args.options.groupId && args.options.groupName) {
|
|
105
|
-
return 'Use either "groupName" or "groupId", but not both';
|
|
106
|
-
}
|
|
107
|
-
if (!args.options.groupId && !args.options.groupName) {
|
|
108
|
-
return 'Either "groupName" or "groupId" is required';
|
|
109
|
-
}
|
|
110
105
|
if (args.options.groupId && isNaN(args.options.groupId)) {
|
|
111
106
|
return `Specified "groupId" ${args.options.groupId} is not valid`;
|
|
112
107
|
}
|
|
113
108
|
return utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
114
109
|
}));
|
|
110
|
+
}, _SpoGroupUserRemoveCommand_initOptionSets = function _SpoGroupUserRemoveCommand_initOptionSets() {
|
|
111
|
+
this.optionSets.push(['groupName', 'groupId']);
|
|
115
112
|
};
|
|
116
113
|
module.exports = new SpoGroupUserRemoveCommand();
|
|
117
114
|
//# sourceMappingURL=group-user-remove.js.map
|
|
@@ -32,7 +32,7 @@ class SpoHubSiteUnregisterCommand extends SpoCommand_1.default {
|
|
|
32
32
|
return commands_1.default.HUBSITE_UNREGISTER;
|
|
33
33
|
}
|
|
34
34
|
get description() {
|
|
35
|
-
return 'Unregisters the
|
|
35
|
+
return 'Unregisters the specified site collection as a hub site';
|
|
36
36
|
}
|
|
37
37
|
commandAction(logger, args, cb) {
|
|
38
38
|
const unregisterHubSite = () => {
|
|
@@ -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 _SpoListContentTypeAddCommand_instances, _SpoListContentTypeAddCommand_initTelemetry, _SpoListContentTypeAddCommand_initOptions, _SpoListContentTypeAddCommand_initValidators, _SpoListContentTypeAddCommand_initTypes;
|
|
16
|
+
var _SpoListContentTypeAddCommand_instances, _SpoListContentTypeAddCommand_initTelemetry, _SpoListContentTypeAddCommand_initOptions, _SpoListContentTypeAddCommand_initValidators, _SpoListContentTypeAddCommand_initTypes, _SpoListContentTypeAddCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -27,6 +27,7 @@ class SpoListContentTypeAddCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListContentTypeAddCommand_instances, "m", _SpoListContentTypeAddCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListContentTypeAddCommand_instances, "m", _SpoListContentTypeAddCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListContentTypeAddCommand_instances, "m", _SpoListContentTypeAddCommand_initTypes).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListContentTypeAddCommand_instances, "m", _SpoListContentTypeAddCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LIST_CONTENTTYPE_ADD;
|
|
@@ -96,16 +97,12 @@ _SpoListContentTypeAddCommand_instances = new WeakSet(), _SpoListContentTypeAddC
|
|
|
96
97
|
return `${args.options.listId} is not a valid GUID`;
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
|
-
if (args.options.listId && args.options.listTitle) {
|
|
100
|
-
return 'Specify listId or listTitle, but not both';
|
|
101
|
-
}
|
|
102
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
103
|
-
return 'Specify listId or listTitle, one is required';
|
|
104
|
-
}
|
|
105
100
|
return true;
|
|
106
101
|
}));
|
|
107
102
|
}, _SpoListContentTypeAddCommand_initTypes = function _SpoListContentTypeAddCommand_initTypes() {
|
|
108
103
|
this.types.string.push('id', 'i');
|
|
104
|
+
}, _SpoListContentTypeAddCommand_initOptionSets = function _SpoListContentTypeAddCommand_initOptionSets() {
|
|
105
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
109
106
|
};
|
|
110
107
|
module.exports = new SpoListContentTypeAddCommand();
|
|
111
108
|
//# sourceMappingURL=list-contenttype-add.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 _SpoListContentTypeDefaultSetCommand_instances, _SpoListContentTypeDefaultSetCommand_initTelemetry, _SpoListContentTypeDefaultSetCommand_initOptions, _SpoListContentTypeDefaultSetCommand_initValidators, _SpoListContentTypeDefaultSetCommand_initTypes;
|
|
16
|
+
var _SpoListContentTypeDefaultSetCommand_instances, _SpoListContentTypeDefaultSetCommand_initTelemetry, _SpoListContentTypeDefaultSetCommand_initOptions, _SpoListContentTypeDefaultSetCommand_initValidators, _SpoListContentTypeDefaultSetCommand_initTypes, _SpoListContentTypeDefaultSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -27,6 +27,7 @@ class SpoListContentTypeDefaultSetCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListContentTypeDefaultSetCommand_instances, "m", _SpoListContentTypeDefaultSetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListContentTypeDefaultSetCommand_instances, "m", _SpoListContentTypeDefaultSetCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListContentTypeDefaultSetCommand_instances, "m", _SpoListContentTypeDefaultSetCommand_initTypes).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListContentTypeDefaultSetCommand_instances, "m", _SpoListContentTypeDefaultSetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LIST_CONTENTTYPE_DEFAULT_SET;
|
|
@@ -180,16 +181,12 @@ _SpoListContentTypeDefaultSetCommand_instances = new WeakSet(), _SpoListContentT
|
|
|
180
181
|
return `${args.options.listId} is not a valid GUID`;
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
|
-
if (args.options.listId && args.options.listTitle) {
|
|
184
|
-
return 'Specify listId or listTitle, but not both';
|
|
185
|
-
}
|
|
186
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
187
|
-
return 'Specify listId or listTitle, one is required';
|
|
188
|
-
}
|
|
189
184
|
return true;
|
|
190
185
|
}));
|
|
191
186
|
}, _SpoListContentTypeDefaultSetCommand_initTypes = function _SpoListContentTypeDefaultSetCommand_initTypes() {
|
|
192
187
|
this.types.string.push('contentTypeId', 'c');
|
|
188
|
+
}, _SpoListContentTypeDefaultSetCommand_initOptionSets = function _SpoListContentTypeDefaultSetCommand_initOptionSets() {
|
|
189
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
193
190
|
};
|
|
194
191
|
module.exports = new SpoListContentTypeDefaultSetCommand();
|
|
195
192
|
//# sourceMappingURL=list-contenttype-default-set.js.map
|