@pnp/cli-microsoft365 5.7.0 → 5.8.0-beta.bc15f2b
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/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/managementapp/managementapp-add.js +4 -11
- 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/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/docs/docs/cmd/adaptivecard/adaptivecard-send.md +0 -20
- package/docs/docs/cmd/onenote/notebook/notebook-list.md +70 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +2 -2
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +3 -0
- 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 +2 -2
- package/scripts/Register-CLIM365Completion.ps1 +1 -1
package/dist/cli/Cli.js
CHANGED
|
@@ -116,7 +116,7 @@ class Cli {
|
|
|
116
116
|
}
|
|
117
117
|
// if output not specified, set the configured output value (if any)
|
|
118
118
|
if (optionsWithoutShorts.options.output === undefined) {
|
|
119
|
-
optionsWithoutShorts.options.output = this.getSettingWithDefaultValue(settingsNames_1.settingsNames.output,
|
|
119
|
+
optionsWithoutShorts.options.output = this.getSettingWithDefaultValue(settingsNames_1.settingsNames.output, 'json');
|
|
120
120
|
}
|
|
121
121
|
const validationResult = yield this.commandToExecute.command.validate(optionsWithoutShorts, this.commandToExecute);
|
|
122
122
|
if (validationResult !== true) {
|
|
@@ -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 _AadAppGetCommand_instances, _AadAppGetCommand_initTelemetry, _AadAppGetCommand_initOptions, _AadAppGetCommand_initValidators;
|
|
16
|
+
var _AadAppGetCommand_instances, _AadAppGetCommand_initTelemetry, _AadAppGetCommand_initOptions, _AadAppGetCommand_initValidators, _AadAppGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const fs = require("fs");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class AadAppGetCommand extends GraphCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _AadAppGetCommand_instances, "m", _AadAppGetCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadAppGetCommand_instances, "m", _AadAppGetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _AadAppGetCommand_instances, "m", _AadAppGetCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _AadAppGetCommand_instances, "m", _AadAppGetCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.APP_GET;
|
|
@@ -136,16 +137,6 @@ _AadAppGetCommand_instances = new WeakSet(), _AadAppGetCommand_initTelemetry = f
|
|
|
136
137
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '--name [name]' }, { option: '--save' });
|
|
137
138
|
}, _AadAppGetCommand_initValidators = function _AadAppGetCommand_initValidators() {
|
|
138
139
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
139
|
-
if (!args.options.appId &&
|
|
140
|
-
!args.options.objectId &&
|
|
141
|
-
!args.options.name) {
|
|
142
|
-
return 'Specify either appId, objectId, or name';
|
|
143
|
-
}
|
|
144
|
-
if ((args.options.appId && args.options.objectId) ||
|
|
145
|
-
(args.options.appId && args.options.name) ||
|
|
146
|
-
(args.options.objectId && args.options.name)) {
|
|
147
|
-
return 'Specify either appId, objectId, or name but not both';
|
|
148
|
-
}
|
|
149
140
|
if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
|
|
150
141
|
return `${args.options.appId} is not a valid GUID`;
|
|
151
142
|
}
|
|
@@ -154,6 +145,8 @@ _AadAppGetCommand_instances = new WeakSet(), _AadAppGetCommand_initTelemetry = f
|
|
|
154
145
|
}
|
|
155
146
|
return true;
|
|
156
147
|
}));
|
|
148
|
+
}, _AadAppGetCommand_initOptionSets = function _AadAppGetCommand_initOptionSets() {
|
|
149
|
+
this.optionSets.push(['appId', 'objectId', 'name']);
|
|
157
150
|
};
|
|
158
151
|
module.exports = new AadAppGetCommand();
|
|
159
152
|
//# 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 _AadAppRemoveCommand_instances, _AadAppRemoveCommand_initTelemetry, _AadAppRemoveCommand_initOptions, _AadAppRemoveCommand_initValidators;
|
|
16
|
+
var _AadAppRemoveCommand_instances, _AadAppRemoveCommand_initTelemetry, _AadAppRemoveCommand_initOptions, _AadAppRemoveCommand_initValidators, _AadAppRemoveCommand_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 AadAppRemoveCommand extends GraphCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _AadAppRemoveCommand_instances, "m", _AadAppRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadAppRemoveCommand_instances, "m", _AadAppRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _AadAppRemoveCommand_instances, "m", _AadAppRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _AadAppRemoveCommand_instances, "m", _AadAppRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.APP_REMOVE;
|
|
@@ -121,16 +122,6 @@ _AadAppRemoveCommand_instances = new WeakSet(), _AadAppRemoveCommand_initTelemet
|
|
|
121
122
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '--name [name]' }, { option: '--confirm' });
|
|
122
123
|
}, _AadAppRemoveCommand_initValidators = function _AadAppRemoveCommand_initValidators() {
|
|
123
124
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
if (!args.options.appId &&
|
|
125
|
-
!args.options.objectId &&
|
|
126
|
-
!args.options.name) {
|
|
127
|
-
return 'Specify either appId, objectId, or name';
|
|
128
|
-
}
|
|
129
|
-
if ((args.options.appId && args.options.objectId) ||
|
|
130
|
-
(args.options.appId && args.options.name) ||
|
|
131
|
-
(args.options.objectId && args.options.name)) {
|
|
132
|
-
return 'Specify either appId, objectId, or name';
|
|
133
|
-
}
|
|
134
125
|
if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
|
|
135
126
|
return `${args.options.appId} is not a valid GUID`;
|
|
136
127
|
}
|
|
@@ -139,6 +130,8 @@ _AadAppRemoveCommand_instances = new WeakSet(), _AadAppRemoveCommand_initTelemet
|
|
|
139
130
|
}
|
|
140
131
|
return true;
|
|
141
132
|
}));
|
|
133
|
+
}, _AadAppRemoveCommand_initOptionSets = function _AadAppRemoveCommand_initOptionSets() {
|
|
134
|
+
this.optionSets.push(['appId', 'objectId', 'name']);
|
|
142
135
|
};
|
|
143
136
|
module.exports = new AadAppRemoveCommand();
|
|
144
137
|
//# sourceMappingURL=app-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 _AadAppRoleAddCommand_instances, _AadAppRoleAddCommand_initTelemetry, _AadAppRoleAddCommand_initOptions, _AadAppRoleAddCommand_initValidators;
|
|
16
|
+
var _AadAppRoleAddCommand_instances, _AadAppRoleAddCommand_initTelemetry, _AadAppRoleAddCommand_initOptions, _AadAppRoleAddCommand_initValidators, _AadAppRoleAddCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const uuid_1 = require("uuid");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -26,6 +26,7 @@ class AadAppRoleAddCommand extends GraphCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _AadAppRoleAddCommand_instances, "m", _AadAppRoleAddCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _AadAppRoleAddCommand_instances, "m", _AadAppRoleAddCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadAppRoleAddCommand_instances, "m", _AadAppRoleAddCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _AadAppRoleAddCommand_instances, "m", _AadAppRoleAddCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.APP_ROLE_ADD;
|
|
@@ -132,15 +133,7 @@ _AadAppRoleAddCommand_instances = new WeakSet(), _AadAppRoleAddCommand_initTelem
|
|
|
132
133
|
}, { option: '-c, --claim <claim>' });
|
|
133
134
|
}, _AadAppRoleAddCommand_initValidators = function _AadAppRoleAddCommand_initValidators() {
|
|
134
135
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
135
|
-
const {
|
|
136
|
-
if ((appId && appObjectId) ||
|
|
137
|
-
(appId && appName) ||
|
|
138
|
-
(appObjectId && appName)) {
|
|
139
|
-
return `Specify either appId, appObjectId or appName but not multiple`;
|
|
140
|
-
}
|
|
141
|
-
if (!appId && !appObjectId && !appName) {
|
|
142
|
-
return `Specify either appId, appObjectId or appName`;
|
|
143
|
-
}
|
|
136
|
+
const { allowedMembers, claim } = args.options;
|
|
144
137
|
if (AadAppRoleAddCommand.allowedMembers.indexOf(allowedMembers) < 0) {
|
|
145
138
|
return `${allowedMembers} is not a valid value for allowedMembers. Valid values are ${AadAppRoleAddCommand.allowedMembers.join(', ')}`;
|
|
146
139
|
}
|
|
@@ -155,6 +148,8 @@ _AadAppRoleAddCommand_instances = new WeakSet(), _AadAppRoleAddCommand_initTelem
|
|
|
155
148
|
}
|
|
156
149
|
return true;
|
|
157
150
|
}));
|
|
151
|
+
}, _AadAppRoleAddCommand_initOptionSets = function _AadAppRoleAddCommand_initOptionSets() {
|
|
152
|
+
this.optionSets.push(['appId', 'appObjectId', 'appName']);
|
|
158
153
|
};
|
|
159
154
|
AadAppRoleAddCommand.allowedMembers = ['usersGroups', 'applications', 'both'];
|
|
160
155
|
module.exports = new AadAppRoleAddCommand();
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
3
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
4
|
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
5
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
6
|
};
|
|
16
|
-
var _AadAppRoleListCommand_instances, _AadAppRoleListCommand_initTelemetry, _AadAppRoleListCommand_initOptions,
|
|
7
|
+
var _AadAppRoleListCommand_instances, _AadAppRoleListCommand_initTelemetry, _AadAppRoleListCommand_initOptions, _AadAppRoleListCommand_initOptionSets;
|
|
17
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
9
|
const request_1 = require("../../../../request");
|
|
19
10
|
const utils_1 = require("../../../../utils");
|
|
@@ -25,7 +16,7 @@ class AadAppRoleListCommand extends GraphCommand_1.default {
|
|
|
25
16
|
_AadAppRoleListCommand_instances.add(this);
|
|
26
17
|
__classPrivateFieldGet(this, _AadAppRoleListCommand_instances, "m", _AadAppRoleListCommand_initTelemetry).call(this);
|
|
27
18
|
__classPrivateFieldGet(this, _AadAppRoleListCommand_instances, "m", _AadAppRoleListCommand_initOptions).call(this);
|
|
28
|
-
__classPrivateFieldGet(this, _AadAppRoleListCommand_instances, "m",
|
|
19
|
+
__classPrivateFieldGet(this, _AadAppRoleListCommand_instances, "m", _AadAppRoleListCommand_initOptionSets).call(this);
|
|
29
20
|
}
|
|
30
21
|
get name() {
|
|
31
22
|
return commands_1.default.APP_ROLE_LIST;
|
|
@@ -87,19 +78,8 @@ _AadAppRoleListCommand_instances = new WeakSet(), _AadAppRoleListCommand_initTel
|
|
|
87
78
|
});
|
|
88
79
|
}, _AadAppRoleListCommand_initOptions = function _AadAppRoleListCommand_initOptions() {
|
|
89
80
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--appName [appName]' });
|
|
90
|
-
},
|
|
91
|
-
this.
|
|
92
|
-
const { appId, appObjectId, appName } = args.options;
|
|
93
|
-
if ((appId && appObjectId) ||
|
|
94
|
-
(appId && appName) ||
|
|
95
|
-
(appObjectId && appName)) {
|
|
96
|
-
return `Specify either appId, appObjectId or appName but not multiple`;
|
|
97
|
-
}
|
|
98
|
-
if (!appId && !appObjectId && !appName) {
|
|
99
|
-
return `Specify either appId, appObjectId or appName`;
|
|
100
|
-
}
|
|
101
|
-
return true;
|
|
102
|
-
}));
|
|
81
|
+
}, _AadAppRoleListCommand_initOptionSets = function _AadAppRoleListCommand_initOptionSets() {
|
|
82
|
+
this.optionSets.push(['appId', 'appObjectId', 'appName']);
|
|
103
83
|
};
|
|
104
84
|
module.exports = new AadAppRoleListCommand();
|
|
105
85
|
//# sourceMappingURL=app-role-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 _AadAppRoleRemoveCommand_instances, _AadAppRoleRemoveCommand_initTelemetry, _AadAppRoleRemoveCommand_initOptions, _AadAppRoleRemoveCommand_initValidators;
|
|
16
|
+
var _AadAppRoleRemoveCommand_instances, _AadAppRoleRemoveCommand_initTelemetry, _AadAppRoleRemoveCommand_initOptions, _AadAppRoleRemoveCommand_initValidators, _AadAppRoleRemoveCommand_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 AadAppRoleRemoveCommand extends GraphCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _AadAppRoleRemoveCommand_instances, "m", _AadAppRoleRemoveCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadAppRoleRemoveCommand_instances, "m", _AadAppRoleRemoveCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _AadAppRoleRemoveCommand_instances, "m", _AadAppRoleRemoveCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _AadAppRoleRemoveCommand_instances, "m", _AadAppRoleRemoveCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.APP_ROLE_REMOVE;
|
|
@@ -190,27 +191,6 @@ _AadAppRoleRemoveCommand_instances = new WeakSet(), _AadAppRoleRemoveCommand_ini
|
|
|
190
191
|
this.options.unshift({ option: '--appId [appId]' }, { option: '--appObjectId [appObjectId]' }, { option: '--appName [appName]' }, { option: '-n, --name [name]' }, { option: '-i, --id [id]' }, { option: '-c, --claim [claim]' }, { option: '--confirm' });
|
|
191
192
|
}, _AadAppRoleRemoveCommand_initValidators = function _AadAppRoleRemoveCommand_initValidators() {
|
|
192
193
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
193
|
-
const { appId, appObjectId, appName, name, id, claim } = args.options;
|
|
194
|
-
if ((appId && appObjectId) ||
|
|
195
|
-
(appId && appName) ||
|
|
196
|
-
(appObjectId && appName)) {
|
|
197
|
-
return `Specify either appId, appObjectId or appName but not multiple`;
|
|
198
|
-
}
|
|
199
|
-
if ((name && claim) ||
|
|
200
|
-
(name && id) ||
|
|
201
|
-
(claim && id)) {
|
|
202
|
-
return `Specify either name, claim or id of the role but not multiple`;
|
|
203
|
-
}
|
|
204
|
-
if (!appId &&
|
|
205
|
-
!appObjectId &&
|
|
206
|
-
!appName) {
|
|
207
|
-
return `Specify either appId, appObjectId or appName`;
|
|
208
|
-
}
|
|
209
|
-
if (!name &&
|
|
210
|
-
!claim &&
|
|
211
|
-
!id) {
|
|
212
|
-
return `Specify either name, claim or id of the role`;
|
|
213
|
-
}
|
|
214
194
|
if (args.options.id) {
|
|
215
195
|
if (!utils_1.validation.isValidGuid(args.options.id)) {
|
|
216
196
|
return `${args.options.id} is not a valid GUID`;
|
|
@@ -218,6 +198,8 @@ _AadAppRoleRemoveCommand_instances = new WeakSet(), _AadAppRoleRemoveCommand_ini
|
|
|
218
198
|
}
|
|
219
199
|
return true;
|
|
220
200
|
}));
|
|
201
|
+
}, _AadAppRoleRemoveCommand_initOptionSets = function _AadAppRoleRemoveCommand_initOptionSets() {
|
|
202
|
+
this.optionSets.push(['appId', 'appObjectId', 'appName'], ['name', 'claim', 'id']);
|
|
221
203
|
};
|
|
222
204
|
module.exports = new AadAppRoleRemoveCommand();
|
|
223
205
|
//# sourceMappingURL=app-role-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 _AadAppSetCommand_instances, _AadAppSetCommand_initTelemetry, _AadAppSetCommand_initOptions, _AadAppSetCommand_initValidators;
|
|
16
|
+
var _AadAppSetCommand_instances, _AadAppSetCommand_initTelemetry, _AadAppSetCommand_initOptions, _AadAppSetCommand_initValidators, _AadAppSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const fs = require("fs");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -26,6 +26,7 @@ class AadAppSetCommand extends GraphCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _AadAppSetCommand_instances, "m", _AadAppSetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _AadAppSetCommand_instances, "m", _AadAppSetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadAppSetCommand_instances, "m", _AadAppSetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _AadAppSetCommand_instances, "m", _AadAppSetCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.APP_SET;
|
|
@@ -269,16 +270,6 @@ _AadAppSetCommand_instances = new WeakSet(), _AadAppSetCommand_initTelemetry = f
|
|
|
269
270
|
}, { option: '--redirectUrisToRemove [redirectUrisToRemove]' });
|
|
270
271
|
}, _AadAppSetCommand_initValidators = function _AadAppSetCommand_initValidators() {
|
|
271
272
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
272
|
-
if (!args.options.appId &&
|
|
273
|
-
!args.options.objectId &&
|
|
274
|
-
!args.options.name) {
|
|
275
|
-
return 'Specify either appId, objectId or name';
|
|
276
|
-
}
|
|
277
|
-
if ((args.options.appId && args.options.objectId) ||
|
|
278
|
-
(args.options.appId && args.options.name) ||
|
|
279
|
-
(args.options.objectId && args.options.name)) {
|
|
280
|
-
return 'Specify either appId, objectId or name but not both';
|
|
281
|
-
}
|
|
282
273
|
if (args.options.certificateFile && args.options.certificateBase64Encoded) {
|
|
283
274
|
return 'Specify either certificateFile or certificateBase64Encoded but not both';
|
|
284
275
|
}
|
|
@@ -297,6 +288,8 @@ _AadAppSetCommand_instances = new WeakSet(), _AadAppSetCommand_initTelemetry = f
|
|
|
297
288
|
}
|
|
298
289
|
return true;
|
|
299
290
|
}));
|
|
291
|
+
}, _AadAppSetCommand_initOptionSets = function _AadAppSetCommand_initOptionSets() {
|
|
292
|
+
this.optionSets.push(['appId', 'objectId', 'name']);
|
|
300
293
|
};
|
|
301
294
|
AadAppSetCommand.aadApplicationPlatform = ['spa', 'web', 'publicClient'];
|
|
302
295
|
module.exports = new AadAppSetCommand();
|
|
@@ -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 _AadAppRoleAssignmentAddCommand_instances, _AadAppRoleAssignmentAddCommand_initTelemetry, _AadAppRoleAssignmentAddCommand_initOptions, _AadAppRoleAssignmentAddCommand_initValidators;
|
|
16
|
+
var _AadAppRoleAssignmentAddCommand_instances, _AadAppRoleAssignmentAddCommand_initTelemetry, _AadAppRoleAssignmentAddCommand_initOptions, _AadAppRoleAssignmentAddCommand_initValidators, _AadAppRoleAssignmentAddCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const os = require("os");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -27,6 +27,7 @@ class AadAppRoleAssignmentAddCommand extends GraphCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _AadAppRoleAssignmentAddCommand_instances, "m", _AadAppRoleAssignmentAddCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadAppRoleAssignmentAddCommand_instances, "m", _AadAppRoleAssignmentAddCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _AadAppRoleAssignmentAddCommand_instances, "m", _AadAppRoleAssignmentAddCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _AadAppRoleAssignmentAddCommand_instances, "m", _AadAppRoleAssignmentAddCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_1.default.APPROLEASSIGNMENT_ADD;
|
|
@@ -179,13 +180,6 @@ _AadAppRoleAssignmentAddCommand_instances = new WeakSet(), _AadAppRoleAssignment
|
|
|
179
180
|
});
|
|
180
181
|
}, _AadAppRoleAssignmentAddCommand_initValidators = function _AadAppRoleAssignmentAddCommand_initValidators() {
|
|
181
182
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
182
|
-
let optionsSpecified = 0;
|
|
183
|
-
optionsSpecified += args.options.appId ? 1 : 0;
|
|
184
|
-
optionsSpecified += args.options.displayName ? 1 : 0;
|
|
185
|
-
optionsSpecified += args.options.objectId ? 1 : 0;
|
|
186
|
-
if (optionsSpecified !== 1) {
|
|
187
|
-
return 'Specify either appId, objectId or displayName';
|
|
188
|
-
}
|
|
189
183
|
if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
|
|
190
184
|
return `${args.options.appId} is not a valid GUID`;
|
|
191
185
|
}
|
|
@@ -194,6 +188,8 @@ _AadAppRoleAssignmentAddCommand_instances = new WeakSet(), _AadAppRoleAssignment
|
|
|
194
188
|
}
|
|
195
189
|
return true;
|
|
196
190
|
}));
|
|
191
|
+
}, _AadAppRoleAssignmentAddCommand_initOptionSets = function _AadAppRoleAssignmentAddCommand_initOptionSets() {
|
|
192
|
+
this.optionSets.push(['appId', 'objectId', 'displayName']);
|
|
197
193
|
};
|
|
198
194
|
module.exports = new AadAppRoleAssignmentAddCommand();
|
|
199
195
|
//# sourceMappingURL=approleassignment-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 _AadAppRoleAssignmentListCommand_instances, _AadAppRoleAssignmentListCommand_initTelemetry, _AadAppRoleAssignmentListCommand_initOptions, _AadAppRoleAssignmentListCommand_initValidators;
|
|
16
|
+
var _AadAppRoleAssignmentListCommand_instances, _AadAppRoleAssignmentListCommand_initTelemetry, _AadAppRoleAssignmentListCommand_initOptions, _AadAppRoleAssignmentListCommand_initValidators, _AadAppRoleAssignmentListCommand_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 AadAppRoleAssignmentListCommand extends GraphCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _AadAppRoleAssignmentListCommand_instances, "m", _AadAppRoleAssignmentListCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _AadAppRoleAssignmentListCommand_instances, "m", _AadAppRoleAssignmentListCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadAppRoleAssignmentListCommand_instances, "m", _AadAppRoleAssignmentListCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _AadAppRoleAssignmentListCommand_instances, "m", _AadAppRoleAssignmentListCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.APPROLEASSIGNMENT_LIST;
|
|
@@ -161,24 +162,16 @@ _AadAppRoleAssignmentListCommand_instances = new WeakSet(), _AadAppRoleAssignmen
|
|
|
161
162
|
});
|
|
162
163
|
}, _AadAppRoleAssignmentListCommand_initValidators = function _AadAppRoleAssignmentListCommand_initValidators() {
|
|
163
164
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
164
|
-
if (!args.options.appId && !args.options.displayName && !args.options.objectId) {
|
|
165
|
-
return 'Specify either appId, objectId or displayName';
|
|
166
|
-
}
|
|
167
165
|
if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
|
|
168
166
|
return `${args.options.appId} is not a valid GUID`;
|
|
169
167
|
}
|
|
170
168
|
if (args.options.objectId && !utils_1.validation.isValidGuid(args.options.objectId)) {
|
|
171
169
|
return `${args.options.objectId} is not a valid GUID`;
|
|
172
170
|
}
|
|
173
|
-
let optionsSpecified = 0;
|
|
174
|
-
optionsSpecified += args.options.appId ? 1 : 0;
|
|
175
|
-
optionsSpecified += args.options.displayName ? 1 : 0;
|
|
176
|
-
optionsSpecified += args.options.objectId ? 1 : 0;
|
|
177
|
-
if (optionsSpecified > 1) {
|
|
178
|
-
return 'Specify either appId, objectId or displayName';
|
|
179
|
-
}
|
|
180
171
|
return true;
|
|
181
172
|
}));
|
|
173
|
+
}, _AadAppRoleAssignmentListCommand_initOptionSets = function _AadAppRoleAssignmentListCommand_initOptionSets() {
|
|
174
|
+
this.optionSets.push(['appId', 'objectId', 'displayName']);
|
|
182
175
|
};
|
|
183
176
|
module.exports = new AadAppRoleAssignmentListCommand();
|
|
184
177
|
//# sourceMappingURL=approleassignment-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 _AadAppRoleAssignmentRemoveCommand_instances, _AadAppRoleAssignmentRemoveCommand_initTelemetry, _AadAppRoleAssignmentRemoveCommand_initOptions, _AadAppRoleAssignmentRemoveCommand_initValidators;
|
|
16
|
+
var _AadAppRoleAssignmentRemoveCommand_instances, _AadAppRoleAssignmentRemoveCommand_initTelemetry, _AadAppRoleAssignmentRemoveCommand_initOptions, _AadAppRoleAssignmentRemoveCommand_initValidators, _AadAppRoleAssignmentRemoveCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const os = require("os");
|
|
19
19
|
const cli_1 = require("../../../../cli");
|
|
@@ -28,6 +28,7 @@ class AadAppRoleAssignmentRemoveCommand extends GraphCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _AadAppRoleAssignmentRemoveCommand_instances, "m", _AadAppRoleAssignmentRemoveCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _AadAppRoleAssignmentRemoveCommand_instances, "m", _AadAppRoleAssignmentRemoveCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _AadAppRoleAssignmentRemoveCommand_instances, "m", _AadAppRoleAssignmentRemoveCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _AadAppRoleAssignmentRemoveCommand_instances, "m", _AadAppRoleAssignmentRemoveCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_1.default.APPROLEASSIGNMENT_REMOVE;
|
|
@@ -182,13 +183,6 @@ _AadAppRoleAssignmentRemoveCommand_instances = new WeakSet(), _AadAppRoleAssignm
|
|
|
182
183
|
});
|
|
183
184
|
}, _AadAppRoleAssignmentRemoveCommand_initValidators = function _AadAppRoleAssignmentRemoveCommand_initValidators() {
|
|
184
185
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
185
|
-
let optionsSpecified = 0;
|
|
186
|
-
optionsSpecified += args.options.appId ? 1 : 0;
|
|
187
|
-
optionsSpecified += args.options.displayName ? 1 : 0;
|
|
188
|
-
optionsSpecified += args.options.objectId ? 1 : 0;
|
|
189
|
-
if (optionsSpecified !== 1) {
|
|
190
|
-
return 'Specify either appId, objectId or displayName';
|
|
191
|
-
}
|
|
192
186
|
if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
|
|
193
187
|
return `${args.options.appId} is not a valid GUID`;
|
|
194
188
|
}
|
|
@@ -197,6 +191,8 @@ _AadAppRoleAssignmentRemoveCommand_instances = new WeakSet(), _AadAppRoleAssignm
|
|
|
197
191
|
}
|
|
198
192
|
return true;
|
|
199
193
|
}));
|
|
194
|
+
}, _AadAppRoleAssignmentRemoveCommand_initOptionSets = function _AadAppRoleAssignmentRemoveCommand_initOptionSets() {
|
|
195
|
+
this.optionSets.push(['appId', 'objectId', 'displayName']);
|
|
200
196
|
};
|
|
201
197
|
module.exports = new AadAppRoleAssignmentRemoveCommand();
|
|
202
198
|
//# sourceMappingURL=approleassignment-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 _AadGroupSettingTemplateGetCommand_instances, _AadGroupSettingTemplateGetCommand_initTelemetry, _AadGroupSettingTemplateGetCommand_initOptions, _AadGroupSettingTemplateGetCommand_initValidators;
|
|
16
|
+
var _AadGroupSettingTemplateGetCommand_instances, _AadGroupSettingTemplateGetCommand_initTelemetry, _AadGroupSettingTemplateGetCommand_initOptions, _AadGroupSettingTemplateGetCommand_initValidators, _AadGroupSettingTemplateGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Command_1 = require("../../../../Command");
|
|
19
19
|
const utils_1 = require("../../../../utils");
|
|
@@ -26,6 +26,7 @@ class AadGroupSettingTemplateGetCommand extends GraphCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _AadGroupSettingTemplateGetCommand_instances, "m", _AadGroupSettingTemplateGetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _AadGroupSettingTemplateGetCommand_instances, "m", _AadGroupSettingTemplateGetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadGroupSettingTemplateGetCommand_instances, "m", _AadGroupSettingTemplateGetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _AadGroupSettingTemplateGetCommand_instances, "m", _AadGroupSettingTemplateGetCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.GROUPSETTINGTEMPLATE_GET;
|
|
@@ -64,18 +65,14 @@ _AadGroupSettingTemplateGetCommand_instances = new WeakSet(), _AadGroupSettingTe
|
|
|
64
65
|
});
|
|
65
66
|
}, _AadGroupSettingTemplateGetCommand_initValidators = function _AadGroupSettingTemplateGetCommand_initValidators() {
|
|
66
67
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
if (!args.options.id && !args.options.displayName) {
|
|
68
|
-
return 'Specify either id or displayName';
|
|
69
|
-
}
|
|
70
|
-
if (args.options.id && args.options.displayName) {
|
|
71
|
-
return 'Specify either id or displayName but not both';
|
|
72
|
-
}
|
|
73
68
|
if (args.options.id &&
|
|
74
69
|
!utils_1.validation.isValidGuid(args.options.id)) {
|
|
75
70
|
return `${args.options.id} is not a valid GUID`;
|
|
76
71
|
}
|
|
77
72
|
return true;
|
|
78
73
|
}));
|
|
74
|
+
}, _AadGroupSettingTemplateGetCommand_initOptionSets = function _AadGroupSettingTemplateGetCommand_initOptionSets() {
|
|
75
|
+
this.optionSets.push(['id', 'displayName']);
|
|
79
76
|
};
|
|
80
77
|
module.exports = new AadGroupSettingTemplateGetCommand();
|
|
81
78
|
//# sourceMappingURL=groupsettingtemplate-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 _AadO365GroupConversationPostListCommand_instances, _AadO365GroupConversationPostListCommand_initTelemetry, _AadO365GroupConversationPostListCommand_initOptions, _AadO365GroupConversationPostListCommand_initValidators;
|
|
16
|
+
var _AadO365GroupConversationPostListCommand_instances, _AadO365GroupConversationPostListCommand_initTelemetry, _AadO365GroupConversationPostListCommand_initOptions, _AadO365GroupConversationPostListCommand_initValidators, _AadO365GroupConversationPostListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const utils_1 = require("../../../../utils");
|
|
19
19
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
@@ -26,6 +26,7 @@ class AadO365GroupConversationPostListCommand extends GraphCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _AadO365GroupConversationPostListCommand_instances, "m", _AadO365GroupConversationPostListCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _AadO365GroupConversationPostListCommand_instances, "m", _AadO365GroupConversationPostListCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadO365GroupConversationPostListCommand_instances, "m", _AadO365GroupConversationPostListCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _AadO365GroupConversationPostListCommand_instances, "m", _AadO365GroupConversationPostListCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.O365GROUP_CONVERSATION_POST_LIST;
|
|
@@ -73,18 +74,13 @@ _AadO365GroupConversationPostListCommand_instances = new WeakSet(), _AadO365Grou
|
|
|
73
74
|
});
|
|
74
75
|
}, _AadO365GroupConversationPostListCommand_initValidators = function _AadO365GroupConversationPostListCommand_initValidators() {
|
|
75
76
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
if (!args.options.groupId &&
|
|
77
|
-
!args.options.groupDisplayName) {
|
|
78
|
-
return 'Specify either groupId or groupDisplayName';
|
|
79
|
-
}
|
|
80
|
-
if (args.options.groupId && args.options.groupDisplayName) {
|
|
81
|
-
return 'Specify either groupId or groupDisplayName, but not both';
|
|
82
|
-
}
|
|
83
77
|
if (args.options.groupId && !utils_1.validation.isValidGuid(args.options.groupId)) {
|
|
84
78
|
return `${args.options.groupId} is not a valid GUID`;
|
|
85
79
|
}
|
|
86
80
|
return true;
|
|
87
81
|
}));
|
|
82
|
+
}, _AadO365GroupConversationPostListCommand_initOptionSets = function _AadO365GroupConversationPostListCommand_initOptionSets() {
|
|
83
|
+
this.optionSets.push(['groupId', 'groupDisplayName']);
|
|
88
84
|
};
|
|
89
85
|
module.exports = new AadO365GroupConversationPostListCommand();
|
|
90
86
|
//# sourceMappingURL=o365group-conversation-post-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 _AadO365GroupTeamifyCommand_instances, _AadO365GroupTeamifyCommand_initTelemetry, _AadO365GroupTeamifyCommand_initOptions, _AadO365GroupTeamifyCommand_initValidators;
|
|
16
|
+
var _AadO365GroupTeamifyCommand_instances, _AadO365GroupTeamifyCommand_initTelemetry, _AadO365GroupTeamifyCommand_initOptions, _AadO365GroupTeamifyCommand_initValidators, _AadO365GroupTeamifyCommand_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 AadO365GroupTeamifyCommand extends GraphCommand_1.default {
|
|
|
26
26
|
__classPrivateFieldGet(this, _AadO365GroupTeamifyCommand_instances, "m", _AadO365GroupTeamifyCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _AadO365GroupTeamifyCommand_instances, "m", _AadO365GroupTeamifyCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadO365GroupTeamifyCommand_instances, "m", _AadO365GroupTeamifyCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _AadO365GroupTeamifyCommand_instances, "m", _AadO365GroupTeamifyCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
get name() {
|
|
31
32
|
return commands_1.default.O365GROUP_TEAMIFY;
|
|
@@ -103,17 +104,13 @@ _AadO365GroupTeamifyCommand_instances = new WeakSet(), _AadO365GroupTeamifyComma
|
|
|
103
104
|
});
|
|
104
105
|
}, _AadO365GroupTeamifyCommand_initValidators = function _AadO365GroupTeamifyCommand_initValidators() {
|
|
105
106
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
106
|
-
if (args.options.groupId && args.options.mailNickname) {
|
|
107
|
-
return 'Specify either groupId or mailNickname, but not both.';
|
|
108
|
-
}
|
|
109
|
-
if (!args.options.groupId && !args.options.mailNickname) {
|
|
110
|
-
return 'Specify groupId or mailNickname, one is required';
|
|
111
|
-
}
|
|
112
107
|
if (args.options.groupId && !utils_1.validation.isValidGuid(args.options.groupId)) {
|
|
113
108
|
return `${args.options.groupId} is not a valid GUID`;
|
|
114
109
|
}
|
|
115
110
|
return true;
|
|
116
111
|
}));
|
|
112
|
+
}, _AadO365GroupTeamifyCommand_initOptionSets = function _AadO365GroupTeamifyCommand_initOptionSets() {
|
|
113
|
+
this.optionSets.push(['groupId', 'mailNickname']);
|
|
117
114
|
};
|
|
118
115
|
module.exports = new AadO365GroupTeamifyCommand();
|
|
119
116
|
//# sourceMappingURL=o365group-teamify.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 _AadO365GroupUserAddCommand_instances, _AadO365GroupUserAddCommand_initTelemetry, _AadO365GroupUserAddCommand_initOptions, _AadO365GroupUserAddCommand_initValidators;
|
|
16
|
+
var _AadO365GroupUserAddCommand_instances, _AadO365GroupUserAddCommand_initTelemetry, _AadO365GroupUserAddCommand_initOptions, _AadO365GroupUserAddCommand_initValidators, _AadO365GroupUserAddCommand_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 AadO365GroupUserAddCommand extends GraphCommand_1.default {
|
|
|
27
27
|
__classPrivateFieldGet(this, _AadO365GroupUserAddCommand_instances, "m", _AadO365GroupUserAddCommand_initTelemetry).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _AadO365GroupUserAddCommand_instances, "m", _AadO365GroupUserAddCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _AadO365GroupUserAddCommand_instances, "m", _AadO365GroupUserAddCommand_initValidators).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _AadO365GroupUserAddCommand_instances, "m", _AadO365GroupUserAddCommand_initOptionSets).call(this);
|
|
30
31
|
}
|
|
31
32
|
get name() {
|
|
32
33
|
return commands_2.default.O365GROUP_USER_ADD;
|
|
@@ -84,12 +85,6 @@ _AadO365GroupUserAddCommand_instances = new WeakSet(), _AadO365GroupUserAddComma
|
|
|
84
85
|
});
|
|
85
86
|
}, _AadO365GroupUserAddCommand_initValidators = function _AadO365GroupUserAddCommand_initValidators() {
|
|
86
87
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
if (!args.options.groupId && !args.options.teamId) {
|
|
88
|
-
return 'Please provide one of the following parameters: groupId or teamId';
|
|
89
|
-
}
|
|
90
|
-
if (args.options.groupId && args.options.teamId) {
|
|
91
|
-
return 'You cannot provide both a groupId and teamId parameter, please provide only one';
|
|
92
|
-
}
|
|
93
88
|
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
94
89
|
return `${args.options.teamId} is not a valid GUID`;
|
|
95
90
|
}
|
|
@@ -103,6 +98,8 @@ _AadO365GroupUserAddCommand_instances = new WeakSet(), _AadO365GroupUserAddComma
|
|
|
103
98
|
}
|
|
104
99
|
return true;
|
|
105
100
|
}));
|
|
101
|
+
}, _AadO365GroupUserAddCommand_initOptionSets = function _AadO365GroupUserAddCommand_initOptionSets() {
|
|
102
|
+
this.optionSets.push(['groupId', 'teamId']);
|
|
106
103
|
};
|
|
107
104
|
module.exports = new AadO365GroupUserAddCommand();
|
|
108
105
|
//# sourceMappingURL=o365group-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 _AadO365GroupUserRemoveCommand_instances, _AadO365GroupUserRemoveCommand_initTelemetry, _AadO365GroupUserRemoveCommand_initOptions, _AadO365GroupUserRemoveCommand_initValidators;
|
|
16
|
+
var _AadO365GroupUserRemoveCommand_instances, _AadO365GroupUserRemoveCommand_initTelemetry, _AadO365GroupUserRemoveCommand_initOptions, _AadO365GroupUserRemoveCommand_initValidators, _AadO365GroupUserRemoveCommand_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 AadO365GroupUserRemoveCommand extends GraphCommand_1.default {
|
|
|
28
28
|
__classPrivateFieldGet(this, _AadO365GroupUserRemoveCommand_instances, "m", _AadO365GroupUserRemoveCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _AadO365GroupUserRemoveCommand_instances, "m", _AadO365GroupUserRemoveCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _AadO365GroupUserRemoveCommand_instances, "m", _AadO365GroupUserRemoveCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _AadO365GroupUserRemoveCommand_instances, "m", _AadO365GroupUserRemoveCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
get name() {
|
|
33
34
|
return commands_2.default.O365GROUP_USER_REMOVE;
|
|
@@ -133,12 +134,6 @@ _AadO365GroupUserRemoveCommand_instances = new WeakSet(), _AadO365GroupUserRemov
|
|
|
133
134
|
});
|
|
134
135
|
}, _AadO365GroupUserRemoveCommand_initValidators = function _AadO365GroupUserRemoveCommand_initValidators() {
|
|
135
136
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
if (!args.options.groupId && !args.options.teamId) {
|
|
137
|
-
return 'Please provide one of the following parameters: groupId or teamId';
|
|
138
|
-
}
|
|
139
|
-
if (args.options.groupId && args.options.teamId) {
|
|
140
|
-
return 'You cannot provide both a groupId and teamId parameter, please provide only one';
|
|
141
|
-
}
|
|
142
137
|
if (args.options.teamId && !utils_1.validation.isValidGuid(args.options.teamId)) {
|
|
143
138
|
return `${args.options.teamId} is not a valid GUID`;
|
|
144
139
|
}
|
|
@@ -147,6 +142,8 @@ _AadO365GroupUserRemoveCommand_instances = new WeakSet(), _AadO365GroupUserRemov
|
|
|
147
142
|
}
|
|
148
143
|
return true;
|
|
149
144
|
}));
|
|
145
|
+
}, _AadO365GroupUserRemoveCommand_initOptionSets = function _AadO365GroupUserRemoveCommand_initOptionSets() {
|
|
146
|
+
this.optionSets.push(['groupId', 'teamId']);
|
|
150
147
|
};
|
|
151
148
|
module.exports = new AadO365GroupUserRemoveCommand();
|
|
152
149
|
//# sourceMappingURL=o365group-user-remove.js.map
|