@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
|
@@ -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
|
|
@@ -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.fileUrl) {
|
|
110
|
-
return 'Specify either fileUrl or id but not both';
|
|
111
|
-
}
|
|
112
|
-
if (!args.options.id && !args.options.fileUrl) {
|
|
113
|
-
return 'Specify fileUrl 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(['fileUrl', '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.fileUrl) {
|
|
83
|
-
return 'Specify either id or fileUrl but not both';
|
|
84
|
-
}
|
|
85
|
-
if (!args.options.id && !args.options.fileUrl) {
|
|
86
|
-
return 'Specify id or fileUrl, one is required';
|
|
87
|
-
}
|
|
88
83
|
return true;
|
|
89
84
|
}));
|
|
85
|
+
}, _SpoFileCheckoutCommand_initOptionSets = function _SpoFileCheckoutCommand_initOptionSets() {
|
|
86
|
+
this.optionSets.push(['id', 'fileUrl']);
|
|
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.id} is not a valid GUID`;
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
|
-
if (args.options.id && args.options.url) {
|
|
139
|
-
return 'Specify id or url, but not both';
|
|
140
|
-
}
|
|
141
|
-
if (!args.options.id && !args.options.url) {
|
|
142
|
-
return 'Specify id or url, one is required';
|
|
143
|
-
}
|
|
144
139
|
return true;
|
|
145
140
|
}));
|
|
141
|
+
}, _SpoFileSharinginfoGetCommand_initOptionSets = function _SpoFileSharinginfoGetCommand_initOptionSets() {
|
|
142
|
+
this.optionSets.push(['id', 'url']);
|
|
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('contentTypeId', 'c');
|
|
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
|
|
@@ -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 _SpoListContentTypeListCommand_instances, _SpoListContentTypeListCommand_initTelemetry, _SpoListContentTypeListCommand_initOptions, _SpoListContentTypeListCommand_initValidators;
|
|
16
|
+
var _SpoListContentTypeListCommand_instances, _SpoListContentTypeListCommand_initTelemetry, _SpoListContentTypeListCommand_initOptions, _SpoListContentTypeListCommand_initValidators, _SpoListContentTypeListCommand_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 SpoListContentTypeListCommand extends SpoCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoListContentTypeListCommand_instances, "m", _SpoListContentTypeListCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListContentTypeListCommand_instances, "m", _SpoListContentTypeListCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListContentTypeListCommand_instances, "m", _SpoListContentTypeListCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoListContentTypeListCommand_instances, "m", _SpoListContentTypeListCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.LIST_CONTENTTYPE_LIST;
|
|
@@ -90,14 +91,10 @@ _SpoListContentTypeListCommand_instances = new WeakSet(), _SpoListContentTypeLis
|
|
|
90
91
|
return `${args.options.listId} is not a valid GUID`;
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
if (args.options.listId && args.options.listTitle) {
|
|
94
|
-
return 'Specify listId or listTitle, but not both';
|
|
95
|
-
}
|
|
96
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
97
|
-
return 'Specify listId or listTitle, one is required';
|
|
98
|
-
}
|
|
99
94
|
return true;
|
|
100
95
|
}));
|
|
96
|
+
}, _SpoListContentTypeListCommand_initOptionSets = function _SpoListContentTypeListCommand_initOptionSets() {
|
|
97
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
101
98
|
};
|
|
102
99
|
module.exports = new SpoListContentTypeListCommand();
|
|
103
100
|
//# sourceMappingURL=list-contenttype-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 _SpoListContentTypeRemoveCommand_instances, _SpoListContentTypeRemoveCommand_initTelemetry, _SpoListContentTypeRemoveCommand_initOptions, _SpoListContentTypeRemoveCommand_initValidators, _SpoListContentTypeRemoveCommand_initTypes;
|
|
16
|
+
var _SpoListContentTypeRemoveCommand_instances, _SpoListContentTypeRemoveCommand_initTelemetry, _SpoListContentTypeRemoveCommand_initOptions, _SpoListContentTypeRemoveCommand_initValidators, _SpoListContentTypeRemoveCommand_initTypes, _SpoListContentTypeRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const cli_1 = require("../../../../cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -28,6 +28,7 @@ class SpoListContentTypeRemoveCommand extends SpoCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListContentTypeRemoveCommand_instances, "m", _SpoListContentTypeRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListContentTypeRemoveCommand_instances, "m", _SpoListContentTypeRemoveCommand_initValidators).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _SpoListContentTypeRemoveCommand_instances, "m", _SpoListContentTypeRemoveCommand_initTypes).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _SpoListContentTypeRemoveCommand_instances, "m", _SpoListContentTypeRemoveCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.LIST_CONTENTTYPE_REMOVE;
|
|
@@ -115,16 +116,12 @@ _SpoListContentTypeRemoveCommand_instances = new WeakSet(), _SpoListContentTypeR
|
|
|
115
116
|
return `${args.options.listId} is not a valid GUID`;
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
|
-
if (args.options.listId && args.options.listTitle) {
|
|
119
|
-
return 'Specify listId or listTitle, but not both';
|
|
120
|
-
}
|
|
121
|
-
if (!args.options.listId && !args.options.listTitle) {
|
|
122
|
-
return 'Specify listId or listTitle, one is required';
|
|
123
|
-
}
|
|
124
119
|
return true;
|
|
125
120
|
}));
|
|
126
121
|
}, _SpoListContentTypeRemoveCommand_initTypes = function _SpoListContentTypeRemoveCommand_initTypes() {
|
|
127
122
|
this.types.string.push('contentTypeId', 'c');
|
|
123
|
+
}, _SpoListContentTypeRemoveCommand_initOptionSets = function _SpoListContentTypeRemoveCommand_initOptionSets() {
|
|
124
|
+
this.optionSets.push(['listId', 'listTitle']);
|
|
128
125
|
};
|
|
129
126
|
module.exports = new SpoListContentTypeRemoveCommand();
|
|
130
127
|
//# sourceMappingURL=list-contenttype-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 _SpoListGetCommand_instances, _SpoListGetCommand_initTelemetry, _SpoListGetCommand_initOptions, _SpoListGetCommand_initValidators;
|
|
16
|
+
var _SpoListGetCommand_instances, _SpoListGetCommand_initTelemetry, _SpoListGetCommand_initOptions, _SpoListGetCommand_initValidators, _SpoListGetCommand_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 SpoListGetCommand extends SpoCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _SpoListGetCommand_instances, "m", _SpoListGetCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoListGetCommand_instances, "m", _SpoListGetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _SpoListGetCommand_instances, "m", _SpoListGetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _SpoListGetCommand_instances, "m", _SpoListGetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.LIST_GET;
|
|
@@ -99,14 +100,10 @@ _SpoListGetCommand_instances = new WeakSet(), _SpoListGetCommand_initTelemetry =
|
|
|
99
100
|
return `${args.options.id} is not a valid GUID`;
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
|
-
if (args.options.id && args.options.title) {
|
|
103
|
-
return 'Specify id or title, but not both';
|
|
104
|
-
}
|
|
105
|
-
if (!args.options.id && !args.options.title) {
|
|
106
|
-
return 'Specify id or title, one is required';
|
|
107
|
-
}
|
|
108
103
|
return true;
|
|
109
104
|
}));
|
|
105
|
+
}, _SpoListGetCommand_initOptionSets = function _SpoListGetCommand_initOptionSets() {
|
|
106
|
+
this.optionSets.push(['id', 'title']);
|
|
110
107
|
};
|
|
111
108
|
module.exports = new SpoListGetCommand();
|
|
112
109
|
//# sourceMappingURL=list-get.js.map
|