@pnp/cli-microsoft365 7.0.0-beta.c2db9df → 7.0.0-beta.e15bb2d
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/m365/aad/commands/app/app-set.js +4 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -4
- package/dist/m365/aad/commands/group/group-remove.js +98 -0
- package/dist/m365/aad/commands/m365group/m365group-add.js +9 -3
- package/dist/m365/aad/commands.js +1 -0
- package/dist/m365/graph/commands/subscription/subscription-add.js +5 -5
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -1
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -1
- package/dist/m365/planner/commands/bucket/bucket-list.js +4 -1
- package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -1
- package/dist/m365/planner/commands/bucket/bucket-set.js +4 -1
- package/dist/m365/planner/commands/plan/plan-add.js +4 -1
- package/dist/m365/planner/commands/plan/plan-get.js +4 -1
- package/dist/m365/planner/commands/plan/plan-list.js +4 -1
- package/dist/m365/planner/commands/plan/plan-remove.js +4 -1
- package/dist/m365/planner/commands/plan/plan-set.js +4 -1
- package/dist/m365/planner/commands/roster/roster-get.js +4 -1
- package/dist/m365/planner/commands/roster/roster-member-add.js +4 -1
- package/dist/m365/planner/commands/roster/roster-member-get.js +4 -1
- package/dist/m365/planner/commands/roster/roster-member-list.js +4 -1
- package/dist/m365/planner/commands/roster/roster-member-remove.js +4 -1
- package/dist/m365/planner/commands/roster/roster-plan-list.js +4 -1
- package/dist/m365/planner/commands/roster/roster-remove.js +4 -1
- package/dist/m365/planner/commands/task/task-add.js +4 -1
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +4 -1
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +4 -1
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +4 -1
- package/dist/m365/planner/commands/task/task-get.js +4 -1
- package/dist/m365/planner/commands/task/task-list.js +4 -1
- package/dist/m365/planner/commands/task/task-reference-add.js +4 -1
- package/dist/m365/planner/commands/task/task-reference-list.js +4 -1
- package/dist/m365/planner/commands/task/task-reference-remove.js +4 -1
- package/dist/m365/planner/commands/task/task-remove.js +4 -1
- package/dist/m365/planner/commands/task/task-set.js +4 -1
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-rc.1.js → doctor-1.18.0.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-rc.1.js → upgrade-1.18.0.js} +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
- package/dist/m365/spfx/commands/spfx-doctor.js +1 -1
- package/dist/m365/spo/commands/file/file-get.js +2 -2
- package/dist/m365/spo/commands/file/file-remove.js +2 -2
- package/dist/m365/spo/commands/file/file-version-clear.js +2 -2
- package/dist/m365/spo/commands/file/file-version-get.js +2 -2
- package/dist/m365/spo/commands/file/file-version-list.js +2 -2
- package/dist/m365/spo/commands/file/file-version-remove.js +2 -2
- package/dist/m365/spo/commands/file/file-version-restore.js +2 -2
- package/dist/m365/spo/commands/group/group-member-add.js +24 -24
- package/dist/m365/spo/commands/page/page-set.js +13 -2
- package/dist/m365/spo/commands/site/site-commsite-enable.js +34 -5
- package/dist/m365/teams/commands/app/app-remove.js +49 -15
- package/dist/m365/teams/commands/channel/channel-member-add.js +8 -8
- package/docs/docs/cmd/aad/app/app-set.mdx +15 -15
- package/docs/docs/cmd/aad/approleassignment/approleassignment-add.mdx +9 -9
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.mdx +10 -10
- package/docs/docs/cmd/aad/group/group-remove.mdx +44 -0
- package/docs/docs/cmd/aad/m365group/m365group-add.mdx +13 -3
- package/docs/docs/cmd/graph/subscription/subscription-add.mdx +10 -10
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-get.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-remove.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-version-get.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-version-list.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +2 -2
- package/docs/docs/cmd/spo/group/group-member-add.mdx +27 -27
- package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-set.mdx +23 -0
- package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +11 -2
- package/docs/docs/cmd/teams/app/app-remove.mdx +9 -6
- package/docs/docs/cmd/teams/channel/channel-member-add.mdx +4 -4
- package/package.json +2 -1
|
@@ -67,13 +67,13 @@ class AadAppSetCommand extends GraphCommand {
|
|
|
67
67
|
return result.id;
|
|
68
68
|
}
|
|
69
69
|
async configureUri(args, objectId, logger) {
|
|
70
|
-
if (!args.options.
|
|
70
|
+
if (!args.options.uris) {
|
|
71
71
|
return objectId;
|
|
72
72
|
}
|
|
73
73
|
if (this.verbose) {
|
|
74
74
|
await logger.logToStderr(`Configuring Azure AD application ID URI...`);
|
|
75
75
|
}
|
|
76
|
-
const identifierUris = args.options.
|
|
76
|
+
const identifierUris = args.options.uris
|
|
77
77
|
.split(',')
|
|
78
78
|
.map(u => u.trim());
|
|
79
79
|
const applicationInfo = {
|
|
@@ -241,14 +241,14 @@ _a = AadAppSetCommand, _AadAppSetCommand_instances = new WeakSet(), _AadAppSetCo
|
|
|
241
241
|
platform: typeof args.options.platform !== 'undefined',
|
|
242
242
|
redirectUris: typeof args.options.redirectUris !== 'undefined',
|
|
243
243
|
redirectUrisToRemove: typeof args.options.redirectUrisToRemove !== 'undefined',
|
|
244
|
-
|
|
244
|
+
uris: typeof args.options.uris !== 'undefined',
|
|
245
245
|
certificateFile: typeof args.options.certificateFile !== 'undefined',
|
|
246
246
|
certificateBase64Encoded: typeof args.options.certificateBase64Encoded !== 'undefined',
|
|
247
247
|
certificateDisplayName: typeof args.options.certificateDisplayName !== 'undefined'
|
|
248
248
|
});
|
|
249
249
|
});
|
|
250
250
|
}, _AadAppSetCommand_initOptions = function _AadAppSetCommand_initOptions() {
|
|
251
|
-
this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '-n, --name [name]' }, { option: '-u, --
|
|
251
|
+
this.options.unshift({ option: '--appId [appId]' }, { option: '--objectId [objectId]' }, { option: '-n, --name [name]' }, { option: '-u, --uris [uris]' }, { option: '-r, --redirectUris [redirectUris]' }, { option: '--certificateFile [certificateFile]' }, { option: '--certificateBase64Encoded [certificateBase64Encoded]' }, { option: '--certificateDisplayName [certificateDisplayName]' }, {
|
|
252
252
|
option: '--platform [platform]',
|
|
253
253
|
autocomplete: _a.aadApplicationPlatform
|
|
254
254
|
}, { option: '--redirectUrisToRemove [redirectUrisToRemove]' });
|
|
@@ -99,13 +99,13 @@ class AadAppRoleAssignmentAddCommand extends GraphCommand {
|
|
|
99
99
|
if (!appRolesFound.length) {
|
|
100
100
|
throw `The resource '${args.options.resource}' does not have any application permissions available.`;
|
|
101
101
|
}
|
|
102
|
-
// search for match between the found app roles and the specified
|
|
103
|
-
for (const scope of args.options.
|
|
102
|
+
// search for match between the found app roles and the specified scopes option value
|
|
103
|
+
for (const scope of args.options.scopes.split(',')) {
|
|
104
104
|
const existingRoles = appRolesFound.filter((role) => {
|
|
105
105
|
return role.value.toLocaleLowerCase() === scope.toLocaleLowerCase().trim();
|
|
106
106
|
});
|
|
107
107
|
if (!existingRoles.length) {
|
|
108
|
-
// the role specified in the
|
|
108
|
+
// the role specified in the scopes option does not belong to the found service principles
|
|
109
109
|
// throw an error and show list with available roles (scopes)
|
|
110
110
|
let availableRoles = '';
|
|
111
111
|
appRolesFound.map((r) => availableRoles += `${os.EOL}${r.value}`);
|
|
@@ -168,7 +168,7 @@ _AadAppRoleAssignmentAddCommand_instances = new WeakSet(), _AadAppRoleAssignment
|
|
|
168
168
|
option: '-r, --resource <resource>',
|
|
169
169
|
autocomplete: ['Microsoft Graph', 'SharePoint', 'OneNote', 'Exchange', 'Microsoft Forms', 'Azure Active Directory Graph', 'Skype for Business']
|
|
170
170
|
}, {
|
|
171
|
-
option: '-s, --
|
|
171
|
+
option: '-s, --scopes <scopes>'
|
|
172
172
|
});
|
|
173
173
|
}, _AadAppRoleAssignmentAddCommand_initValidators = function _AadAppRoleAssignmentAddCommand_initValidators() {
|
|
174
174
|
this.validators.push(async (args) => {
|
|
@@ -80,12 +80,12 @@ class AadAppRoleAssignmentRemoveCommand extends GraphCommand {
|
|
|
80
80
|
if (!appRolesFound.length) {
|
|
81
81
|
throw `The resource '${args.options.resource}' does not have any application permissions available.`;
|
|
82
82
|
}
|
|
83
|
-
for (const scope of args.options.
|
|
83
|
+
for (const scope of args.options.scopes.split(',')) {
|
|
84
84
|
const existingRoles = appRolesFound.filter((role) => {
|
|
85
85
|
return role.value.toLocaleLowerCase() === scope.toLocaleLowerCase().trim();
|
|
86
86
|
});
|
|
87
87
|
if (!existingRoles.length) {
|
|
88
|
-
// the role specified in the
|
|
88
|
+
// the role specified in the scopes option does not belong to the found service principles
|
|
89
89
|
// throw an error and show list with available roles (scopes)
|
|
90
90
|
let availableRoles = '';
|
|
91
91
|
appRolesFound.map((r) => availableRoles += `${os.EOL}${r.value}`);
|
|
@@ -115,7 +115,7 @@ class AadAppRoleAssignmentRemoveCommand extends GraphCommand {
|
|
|
115
115
|
type: 'confirm',
|
|
116
116
|
name: 'continue',
|
|
117
117
|
default: false,
|
|
118
|
-
message: `Are you sure you want to remove the appRoleAssignment with
|
|
118
|
+
message: `Are you sure you want to remove the appRoleAssignment with scopes ${args.options.scopes} for resource ${args.options.resource}?`
|
|
119
119
|
});
|
|
120
120
|
if (result.continue) {
|
|
121
121
|
await removeAppRoleAssignment();
|
|
@@ -163,7 +163,7 @@ _AadAppRoleAssignmentRemoveCommand_instances = new WeakSet(), _AadAppRoleAssignm
|
|
|
163
163
|
option: '-r, --resource <resource>',
|
|
164
164
|
autocomplete: ['Microsoft Graph', 'SharePoint', 'OneNote', 'Exchange', 'Microsoft Forms', 'Azure Active Directory Graph', 'Skype for Business']
|
|
165
165
|
}, {
|
|
166
|
-
option: '-s, --
|
|
166
|
+
option: '-s, --scopes <scopes>'
|
|
167
167
|
}, {
|
|
168
168
|
option: '-f, --force'
|
|
169
169
|
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
+
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");
|
|
4
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
+
};
|
|
6
|
+
var _AadGroupRemoveCommand_instances, _AadGroupRemoveCommand_initTelemetry, _AadGroupRemoveCommand_initOptions, _AadGroupRemoveCommand_initOptionSets, _AadGroupRemoveCommand_initValidators, _AadGroupRemoveCommand_initTypes;
|
|
7
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
8
|
+
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
|
+
import commands from '../../commands.js';
|
|
10
|
+
import request from '../../../../request.js';
|
|
11
|
+
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
12
|
+
import { validation } from '../../../../utils/validation.js';
|
|
13
|
+
class AadGroupRemoveCommand extends GraphCommand {
|
|
14
|
+
get name() {
|
|
15
|
+
return commands.GROUP_REMOVE;
|
|
16
|
+
}
|
|
17
|
+
get description() {
|
|
18
|
+
return 'Removes an Azure AD group';
|
|
19
|
+
}
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
_AadGroupRemoveCommand_instances.add(this);
|
|
23
|
+
__classPrivateFieldGet(this, _AadGroupRemoveCommand_instances, "m", _AadGroupRemoveCommand_initOptions).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _AadGroupRemoveCommand_instances, "m", _AadGroupRemoveCommand_initValidators).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _AadGroupRemoveCommand_instances, "m", _AadGroupRemoveCommand_initOptionSets).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _AadGroupRemoveCommand_instances, "m", _AadGroupRemoveCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _AadGroupRemoveCommand_instances, "m", _AadGroupRemoveCommand_initTypes).call(this);
|
|
28
|
+
}
|
|
29
|
+
async commandAction(logger, args) {
|
|
30
|
+
const removeGroup = async () => {
|
|
31
|
+
if (this.verbose) {
|
|
32
|
+
await logger.logToStderr(`Removing group ${args.options.id || args.options.displayName}...`);
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
let groupId = args.options.id;
|
|
36
|
+
if (args.options.displayName) {
|
|
37
|
+
groupId = await aadGroup.getGroupIdByDisplayName(args.options.displayName);
|
|
38
|
+
}
|
|
39
|
+
const requestOptions = {
|
|
40
|
+
url: `${this.resource}/v1.0/groups/${groupId}`,
|
|
41
|
+
headers: {
|
|
42
|
+
accept: 'application/json;odata.metadata=none'
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
await request.delete(requestOptions);
|
|
46
|
+
}
|
|
47
|
+
catch (err) {
|
|
48
|
+
this.handleRejectedODataJsonPromise(err);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
if (args.options.force) {
|
|
52
|
+
await removeGroup();
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const result = await Cli.prompt({
|
|
56
|
+
type: 'confirm',
|
|
57
|
+
name: 'continue',
|
|
58
|
+
default: false,
|
|
59
|
+
message: `Are you sure you want to remove group '${args.options.id || args.options.displayName}'?`
|
|
60
|
+
});
|
|
61
|
+
if (result.continue) {
|
|
62
|
+
await removeGroup();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
_AadGroupRemoveCommand_instances = new WeakSet(), _AadGroupRemoveCommand_initTelemetry = function _AadGroupRemoveCommand_initTelemetry() {
|
|
68
|
+
this.telemetry.push((args) => {
|
|
69
|
+
Object.assign(this.telemetryProperties, {
|
|
70
|
+
id: args.options.id !== 'undefined',
|
|
71
|
+
displayName: args.options.displayName !== 'undefined',
|
|
72
|
+
force: !!args.options.force
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}, _AadGroupRemoveCommand_initOptions = function _AadGroupRemoveCommand_initOptions() {
|
|
76
|
+
this.options.unshift({
|
|
77
|
+
option: '-i, --id [id]'
|
|
78
|
+
}, {
|
|
79
|
+
option: '-n, --displayName [displayName]'
|
|
80
|
+
}, {
|
|
81
|
+
option: '-f, --force'
|
|
82
|
+
});
|
|
83
|
+
}, _AadGroupRemoveCommand_initOptionSets = function _AadGroupRemoveCommand_initOptionSets() {
|
|
84
|
+
this.optionSets.push({
|
|
85
|
+
options: ['id', 'displayName']
|
|
86
|
+
});
|
|
87
|
+
}, _AadGroupRemoveCommand_initValidators = function _AadGroupRemoveCommand_initValidators() {
|
|
88
|
+
this.validators.push(async (args) => {
|
|
89
|
+
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
90
|
+
return `${args.options.id} is not a valid GUID for option id.`;
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
93
|
+
});
|
|
94
|
+
}, _AadGroupRemoveCommand_initTypes = function _AadGroupRemoveCommand_initTypes() {
|
|
95
|
+
this.types.string.push('id', 'displayName');
|
|
96
|
+
};
|
|
97
|
+
export default new AadGroupRemoveCommand();
|
|
98
|
+
//# sourceMappingURL=group-remove.js.map
|
|
@@ -22,6 +22,7 @@ class AadM365GroupAddCommand extends GraphCommand {
|
|
|
22
22
|
super();
|
|
23
23
|
_AadM365GroupAddCommand_instances.add(this);
|
|
24
24
|
this.pollingInterval = 500;
|
|
25
|
+
this.allowedVisibilities = ['Private', 'Public', 'HiddenMembership'];
|
|
25
26
|
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initTelemetry).call(this);
|
|
26
27
|
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initOptions).call(this);
|
|
27
28
|
__classPrivateFieldGet(this, _AadM365GroupAddCommand_instances, "m", _AadM365GroupAddCommand_initTypes).call(this);
|
|
@@ -32,6 +33,7 @@ class AadM365GroupAddCommand extends GraphCommand {
|
|
|
32
33
|
let ownerIds = [];
|
|
33
34
|
let memberIds = [];
|
|
34
35
|
const resourceBehaviorOptionsCollection = [];
|
|
36
|
+
const resolvedVisibility = args.options.visibility || 'Public';
|
|
35
37
|
if (this.verbose) {
|
|
36
38
|
await logger.logToStderr('Creating Microsoft 365 Group...');
|
|
37
39
|
}
|
|
@@ -63,7 +65,7 @@ class AadM365GroupAddCommand extends GraphCommand {
|
|
|
63
65
|
mailNickname: args.options.mailNickname,
|
|
64
66
|
resourceBehaviorOptions: resourceBehaviorOptionsCollection,
|
|
65
67
|
securityEnabled: false,
|
|
66
|
-
visibility:
|
|
68
|
+
visibility: resolvedVisibility
|
|
67
69
|
}
|
|
68
70
|
};
|
|
69
71
|
try {
|
|
@@ -185,7 +187,7 @@ _AadM365GroupAddCommand_instances = new WeakSet(), _AadM365GroupAddCommand_initT
|
|
|
185
187
|
owners: typeof args.options.owners !== 'undefined',
|
|
186
188
|
members: typeof args.options.members !== 'undefined',
|
|
187
189
|
logoPath: typeof args.options.logoPath !== 'undefined',
|
|
188
|
-
|
|
190
|
+
visibility: typeof args.options.visibility !== 'undefined',
|
|
189
191
|
allowMembersToPost: !!args.options.allowMembersToPost,
|
|
190
192
|
hideGroupInOutlook: !!args.options.hideGroupInOutlook,
|
|
191
193
|
subscribeNewGroupMembers: !!args.options.subscribeNewGroupMembers,
|
|
@@ -204,7 +206,8 @@ _AadM365GroupAddCommand_instances = new WeakSet(), _AadM365GroupAddCommand_initT
|
|
|
204
206
|
}, {
|
|
205
207
|
option: '--members [members]'
|
|
206
208
|
}, {
|
|
207
|
-
option: '--
|
|
209
|
+
option: '--visibility [visibility]',
|
|
210
|
+
autocomplete: this.allowedVisibilities
|
|
208
211
|
}, {
|
|
209
212
|
option: '--allowMembersToPost [allowMembersToPost]',
|
|
210
213
|
autocomplete: ['true', 'false']
|
|
@@ -252,6 +255,9 @@ _AadM365GroupAddCommand_instances = new WeakSet(), _AadM365GroupAddCommand_initT
|
|
|
252
255
|
return `Path '${fullPath}' points to a directory`;
|
|
253
256
|
}
|
|
254
257
|
}
|
|
258
|
+
if (args.options.visibility && this.allowedVisibilities.map(x => x.toLowerCase()).indexOf(args.options.visibility.toLowerCase()) === -1) {
|
|
259
|
+
return `${args.options.visibility} is not a valid visibility. Allowed values are ${this.allowedVisibilities.join(', ')}`;
|
|
260
|
+
}
|
|
255
261
|
return true;
|
|
256
262
|
});
|
|
257
263
|
};
|
|
@@ -13,6 +13,7 @@ export default {
|
|
|
13
13
|
APPROLEASSIGNMENT_REMOVE: `${prefix} approleassignment remove`,
|
|
14
14
|
GROUP_GET: `${prefix} group get`,
|
|
15
15
|
GROUP_LIST: `${prefix} group list`,
|
|
16
|
+
GROUP_REMOVE: `${prefix} group remove`,
|
|
16
17
|
GROUPSETTING_ADD: `${prefix} groupsetting add`,
|
|
17
18
|
GROUPSETTING_GET: `${prefix} groupsetting get`,
|
|
18
19
|
GROUPSETTING_LIST: `${prefix} groupsetting list`,
|
|
@@ -43,7 +43,7 @@ class GraphSubscriptionAddCommand extends GraphCommand {
|
|
|
43
43
|
}
|
|
44
44
|
async commandAction(logger, args) {
|
|
45
45
|
const data = {
|
|
46
|
-
changeType: args.options.
|
|
46
|
+
changeType: args.options.changeTypes,
|
|
47
47
|
resource: args.options.resource,
|
|
48
48
|
notificationUrl: args.options.notificationUrl,
|
|
49
49
|
expirationDateTime: await this.getExpirationDateTimeOrDefault(logger, args)
|
|
@@ -121,7 +121,7 @@ class GraphSubscriptionAddCommand extends GraphCommand {
|
|
|
121
121
|
_GraphSubscriptionAddCommand_instances = new WeakSet(), _GraphSubscriptionAddCommand_initTelemetry = function _GraphSubscriptionAddCommand_initTelemetry() {
|
|
122
122
|
this.telemetry.push((args) => {
|
|
123
123
|
Object.assign(this.telemetryProperties, {
|
|
124
|
-
|
|
124
|
+
changeTypes: args.options.changeTypes,
|
|
125
125
|
expirationDateTime: typeof args.options.expirationDateTime !== 'undefined',
|
|
126
126
|
clientState: typeof args.options.clientState !== 'undefined'
|
|
127
127
|
});
|
|
@@ -132,7 +132,7 @@ _GraphSubscriptionAddCommand_instances = new WeakSet(), _GraphSubscriptionAddCom
|
|
|
132
132
|
}, {
|
|
133
133
|
option: '-u, --notificationUrl <notificationUrl>'
|
|
134
134
|
}, {
|
|
135
|
-
option: '-c, --
|
|
135
|
+
option: '-c, --changeTypes <changeTypes>',
|
|
136
136
|
autocomplete: ['created', 'updated', 'deleted']
|
|
137
137
|
}, {
|
|
138
138
|
option: '-e, --expirationDateTime [expirationDateTime]'
|
|
@@ -144,8 +144,8 @@ _GraphSubscriptionAddCommand_instances = new WeakSet(), _GraphSubscriptionAddCom
|
|
|
144
144
|
if (args.options.notificationUrl.indexOf('https://') !== 0) {
|
|
145
145
|
return `The specified notification URL '${args.options.notificationUrl}' does not start with 'https://'`;
|
|
146
146
|
}
|
|
147
|
-
if (!this.isValidChangeTypes(args.options.
|
|
148
|
-
return `The specified
|
|
147
|
+
if (!this.isValidChangeTypes(args.options.changeTypes)) {
|
|
148
|
+
return `The specified changeTypes are invalid. Valid options are 'created', 'updated' and 'deleted'`;
|
|
149
149
|
}
|
|
150
150
|
if (args.options.expirationDateTime && !validation.isValidISODateTime(args.options.expirationDateTime)) {
|
|
151
151
|
return 'The expirationDateTime is not a valid ISO date string';
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerBucketAddCommand_instances, _PlannerBucketAddCommand_initTelemetry, _PlannerBucketAddCommand_initOptions, _PlannerBucketAddCommand_initValidators, _PlannerBucketAddCommand_initOptionSets;
|
|
6
|
+
var _PlannerBucketAddCommand_instances, _PlannerBucketAddCommand_initTelemetry, _PlannerBucketAddCommand_initOptions, _PlannerBucketAddCommand_initValidators, _PlannerBucketAddCommand_initOptionSets, _PlannerBucketAddCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
@@ -27,6 +27,7 @@ class PlannerBucketAddCommand extends GraphCommand {
|
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerBucketAddCommand_instances, "m", _PlannerBucketAddCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerBucketAddCommand_instances, "m", _PlannerBucketAddCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _PlannerBucketAddCommand_instances, "m", _PlannerBucketAddCommand_initOptionSets).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _PlannerBucketAddCommand_instances, "m", _PlannerBucketAddCommand_initTypes).call(this);
|
|
30
31
|
}
|
|
31
32
|
async commandAction(logger, args) {
|
|
32
33
|
try {
|
|
@@ -109,6 +110,8 @@ _PlannerBucketAddCommand_instances = new WeakSet(), _PlannerBucketAddCommand_ini
|
|
|
109
110
|
options: ['ownerGroupId', 'ownerGroupName'],
|
|
110
111
|
runsWhen: (args) => args.options.planTitle !== undefined
|
|
111
112
|
});
|
|
113
|
+
}, _PlannerBucketAddCommand_initTypes = function _PlannerBucketAddCommand_initTypes() {
|
|
114
|
+
this.types.string.push('name', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'orderHint', 'rosterId ');
|
|
112
115
|
};
|
|
113
116
|
export default new PlannerBucketAddCommand();
|
|
114
117
|
//# sourceMappingURL=bucket-add.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerBucketGetCommand_instances, _PlannerBucketGetCommand_initTelemetry, _PlannerBucketGetCommand_initOptions, _PlannerBucketGetCommand_initValidators, _PlannerBucketGetCommand_initOptionSets;
|
|
6
|
+
var _PlannerBucketGetCommand_instances, _PlannerBucketGetCommand_initTelemetry, _PlannerBucketGetCommand_initOptions, _PlannerBucketGetCommand_initValidators, _PlannerBucketGetCommand_initOptionSets, _PlannerBucketGetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
@@ -26,6 +26,7 @@ class PlannerBucketGetCommand extends GraphCommand {
|
|
|
26
26
|
__classPrivateFieldGet(this, _PlannerBucketGetCommand_instances, "m", _PlannerBucketGetCommand_initOptions).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerBucketGetCommand_instances, "m", _PlannerBucketGetCommand_initValidators).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerBucketGetCommand_instances, "m", _PlannerBucketGetCommand_initOptionSets).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PlannerBucketGetCommand_instances, "m", _PlannerBucketGetCommand_initTypes).call(this);
|
|
29
30
|
}
|
|
30
31
|
async commandAction(logger, args) {
|
|
31
32
|
try {
|
|
@@ -156,6 +157,8 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
156
157
|
options: ['ownerGroupId', 'ownerGroupName'],
|
|
157
158
|
runsWhen: (args) => args.options.planTitle !== undefined
|
|
158
159
|
});
|
|
160
|
+
}, _PlannerBucketGetCommand_initTypes = function _PlannerBucketGetCommand_initTypes() {
|
|
161
|
+
this.types.string.push('id', 'name', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'rosterId ');
|
|
159
162
|
};
|
|
160
163
|
export default new PlannerBucketGetCommand();
|
|
161
164
|
//# sourceMappingURL=bucket-get.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerBucketListCommand_instances, _PlannerBucketListCommand_initTelemetry, _PlannerBucketListCommand_initOptions, _PlannerBucketListCommand_initValidators, _PlannerBucketListCommand_initOptionSets;
|
|
6
|
+
var _PlannerBucketListCommand_instances, _PlannerBucketListCommand_initTelemetry, _PlannerBucketListCommand_initOptions, _PlannerBucketListCommand_initValidators, _PlannerBucketListCommand_initOptionSets, _PlannerBucketListCommand_initTypes;
|
|
7
7
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
@@ -27,6 +27,7 @@ class PlannerBucketListCommand extends GraphCommand {
|
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerBucketListCommand_instances, "m", _PlannerBucketListCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerBucketListCommand_instances, "m", _PlannerBucketListCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _PlannerBucketListCommand_instances, "m", _PlannerBucketListCommand_initOptionSets).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _PlannerBucketListCommand_instances, "m", _PlannerBucketListCommand_initTypes).call(this);
|
|
30
31
|
}
|
|
31
32
|
async commandAction(logger, args) {
|
|
32
33
|
try {
|
|
@@ -92,6 +93,8 @@ _PlannerBucketListCommand_instances = new WeakSet(), _PlannerBucketListCommand_i
|
|
|
92
93
|
options: ['ownerGroupId', 'ownerGroupName'],
|
|
93
94
|
runsWhen: (args) => args.options.planTitle !== undefined
|
|
94
95
|
});
|
|
96
|
+
}, _PlannerBucketListCommand_initTypes = function _PlannerBucketListCommand_initTypes() {
|
|
97
|
+
this.types.string.push('planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'rosterId ');
|
|
95
98
|
};
|
|
96
99
|
export default new PlannerBucketListCommand();
|
|
97
100
|
//# sourceMappingURL=bucket-list.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerBucketRemoveCommand_instances, _PlannerBucketRemoveCommand_initTelemetry, _PlannerBucketRemoveCommand_initOptions, _PlannerBucketRemoveCommand_initValidators, _PlannerBucketRemoveCommand_initOptionSets;
|
|
6
|
+
var _PlannerBucketRemoveCommand_instances, _PlannerBucketRemoveCommand_initTelemetry, _PlannerBucketRemoveCommand_initOptions, _PlannerBucketRemoveCommand_initValidators, _PlannerBucketRemoveCommand_initOptionSets, _PlannerBucketRemoveCommand_initTypes;
|
|
7
7
|
import { Cli } from '../../../../cli/Cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
@@ -26,6 +26,7 @@ class PlannerBucketRemoveCommand extends GraphCommand {
|
|
|
26
26
|
__classPrivateFieldGet(this, _PlannerBucketRemoveCommand_instances, "m", _PlannerBucketRemoveCommand_initOptions).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerBucketRemoveCommand_instances, "m", _PlannerBucketRemoveCommand_initValidators).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerBucketRemoveCommand_instances, "m", _PlannerBucketRemoveCommand_initOptionSets).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PlannerBucketRemoveCommand_instances, "m", _PlannerBucketRemoveCommand_initTypes).call(this);
|
|
29
30
|
}
|
|
30
31
|
async commandAction(logger, args) {
|
|
31
32
|
const removeBucket = async () => {
|
|
@@ -177,6 +178,8 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
177
178
|
options: ['ownerGroupId', 'ownerGroupName'],
|
|
178
179
|
runsWhen: (args) => args.options.planTitle !== undefined
|
|
179
180
|
});
|
|
181
|
+
}, _PlannerBucketRemoveCommand_initTypes = function _PlannerBucketRemoveCommand_initTypes() {
|
|
182
|
+
this.types.string.push('id', 'name', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'rosterId ');
|
|
180
183
|
};
|
|
181
184
|
export default new PlannerBucketRemoveCommand();
|
|
182
185
|
//# sourceMappingURL=bucket-remove.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerBucketSetCommand_instances, _PlannerBucketSetCommand_initTelemetry, _PlannerBucketSetCommand_initOptions, _PlannerBucketSetCommand_initValidators, _PlannerBucketSetCommand_initOptionSets;
|
|
6
|
+
var _PlannerBucketSetCommand_instances, _PlannerBucketSetCommand_initTelemetry, _PlannerBucketSetCommand_initOptions, _PlannerBucketSetCommand_initValidators, _PlannerBucketSetCommand_initOptionSets, _PlannerBucketSetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
@@ -26,6 +26,7 @@ class PlannerBucketSetCommand extends GraphCommand {
|
|
|
26
26
|
__classPrivateFieldGet(this, _PlannerBucketSetCommand_instances, "m", _PlannerBucketSetCommand_initOptions).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerBucketSetCommand_instances, "m", _PlannerBucketSetCommand_initValidators).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerBucketSetCommand_instances, "m", _PlannerBucketSetCommand_initOptionSets).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PlannerBucketSetCommand_instances, "m", _PlannerBucketSetCommand_initTypes).call(this);
|
|
29
30
|
}
|
|
30
31
|
async commandAction(logger, args) {
|
|
31
32
|
try {
|
|
@@ -167,6 +168,8 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
167
168
|
options: ['ownerGroupId', 'ownerGroupName'],
|
|
168
169
|
runsWhen: (args) => args.options.planTitle !== undefined
|
|
169
170
|
});
|
|
171
|
+
}, _PlannerBucketSetCommand_initTypes = function _PlannerBucketSetCommand_initTypes() {
|
|
172
|
+
this.types.string.push('id', 'name', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'orderHint', 'newName', 'rosterId ');
|
|
170
173
|
};
|
|
171
174
|
export default new PlannerBucketSetCommand();
|
|
172
175
|
//# sourceMappingURL=bucket-set.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerPlanAddCommand_instances, _PlannerPlanAddCommand_initTelemetry, _PlannerPlanAddCommand_initOptions, _PlannerPlanAddCommand_initValidators, _PlannerPlanAddCommand_initOptionSets;
|
|
6
|
+
var _PlannerPlanAddCommand_instances, _PlannerPlanAddCommand_initTelemetry, _PlannerPlanAddCommand_initOptions, _PlannerPlanAddCommand_initValidators, _PlannerPlanAddCommand_initOptionSets, _PlannerPlanAddCommand_initTypes;
|
|
7
7
|
import { CommandError } from '../../../../Command.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
@@ -28,6 +28,7 @@ class PlannerPlanAddCommand extends GraphCommand {
|
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerPlanAddCommand_instances, "m", _PlannerPlanAddCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _PlannerPlanAddCommand_instances, "m", _PlannerPlanAddCommand_initValidators).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _PlannerPlanAddCommand_instances, "m", _PlannerPlanAddCommand_initOptionSets).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _PlannerPlanAddCommand_instances, "m", _PlannerPlanAddCommand_initTypes).call(this);
|
|
31
32
|
}
|
|
32
33
|
async commandAction(logger, args) {
|
|
33
34
|
try {
|
|
@@ -175,6 +176,8 @@ _PlannerPlanAddCommand_instances = new WeakSet(), _PlannerPlanAddCommand_initTel
|
|
|
175
176
|
});
|
|
176
177
|
}, _PlannerPlanAddCommand_initOptionSets = function _PlannerPlanAddCommand_initOptionSets() {
|
|
177
178
|
this.optionSets.push({ options: ['ownerGroupId', 'ownerGroupName', 'rosterId'] });
|
|
179
|
+
}, _PlannerPlanAddCommand_initTypes = function _PlannerPlanAddCommand_initTypes() {
|
|
180
|
+
this.types.string.push('title', 'ownerGroupId', 'ownerGroupName', 'rosterId', 'shareWithUserIds', 'shareWithUserNames');
|
|
178
181
|
};
|
|
179
182
|
export default new PlannerPlanAddCommand();
|
|
180
183
|
//# sourceMappingURL=plan-add.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerPlanGetCommand_instances, _PlannerPlanGetCommand_initTelemetry, _PlannerPlanGetCommand_initOptions, _PlannerPlanGetCommand_initValidators, _PlannerPlanGetCommand_initOptionSets;
|
|
6
|
+
var _PlannerPlanGetCommand_instances, _PlannerPlanGetCommand_initTelemetry, _PlannerPlanGetCommand_initOptions, _PlannerPlanGetCommand_initValidators, _PlannerPlanGetCommand_initOptionSets, _PlannerPlanGetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
@@ -27,6 +27,7 @@ class PlannerPlanGetCommand extends GraphCommand {
|
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerPlanGetCommand_instances, "m", _PlannerPlanGetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerPlanGetCommand_instances, "m", _PlannerPlanGetCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _PlannerPlanGetCommand_instances, "m", _PlannerPlanGetCommand_initOptionSets).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _PlannerPlanGetCommand_instances, "m", _PlannerPlanGetCommand_initTypes).call(this);
|
|
30
31
|
}
|
|
31
32
|
async commandAction(logger, args) {
|
|
32
33
|
try {
|
|
@@ -115,6 +116,8 @@ _PlannerPlanGetCommand_instances = new WeakSet(), _PlannerPlanGetCommand_initTel
|
|
|
115
116
|
return args.options.title !== undefined;
|
|
116
117
|
}
|
|
117
118
|
});
|
|
119
|
+
}, _PlannerPlanGetCommand_initTypes = function _PlannerPlanGetCommand_initTypes() {
|
|
120
|
+
this.types.string.push('id', 'title', 'ownerGroupId', 'ownerGroupName', 'rosterId');
|
|
118
121
|
};
|
|
119
122
|
export default new PlannerPlanGetCommand();
|
|
120
123
|
//# sourceMappingURL=plan-get.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerPlanListCommand_instances, _PlannerPlanListCommand_initTelemetry, _PlannerPlanListCommand_initOptions, _PlannerPlanListCommand_initValidators, _PlannerPlanListCommand_initOptionSets;
|
|
6
|
+
var _PlannerPlanListCommand_instances, _PlannerPlanListCommand_initTelemetry, _PlannerPlanListCommand_initOptions, _PlannerPlanListCommand_initValidators, _PlannerPlanListCommand_initOptionSets, _PlannerPlanListCommand_initTypes;
|
|
7
7
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
8
8
|
import { planner } from '../../../../utils/planner.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -23,6 +23,7 @@ class PlannerPlanListCommand extends GraphCommand {
|
|
|
23
23
|
__classPrivateFieldGet(this, _PlannerPlanListCommand_instances, "m", _PlannerPlanListCommand_initOptions).call(this);
|
|
24
24
|
__classPrivateFieldGet(this, _PlannerPlanListCommand_instances, "m", _PlannerPlanListCommand_initValidators).call(this);
|
|
25
25
|
__classPrivateFieldGet(this, _PlannerPlanListCommand_instances, "m", _PlannerPlanListCommand_initOptionSets).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _PlannerPlanListCommand_instances, "m", _PlannerPlanListCommand_initTypes).call(this);
|
|
26
27
|
}
|
|
27
28
|
defaultProperties() {
|
|
28
29
|
return ['id', 'title', 'createdDateTime', 'owner'];
|
|
@@ -77,6 +78,8 @@ _PlannerPlanListCommand_instances = new WeakSet(), _PlannerPlanListCommand_initT
|
|
|
77
78
|
});
|
|
78
79
|
}, _PlannerPlanListCommand_initOptionSets = function _PlannerPlanListCommand_initOptionSets() {
|
|
79
80
|
this.optionSets.push({ options: ['ownerGroupId', 'ownerGroupName', 'rosterId'] });
|
|
81
|
+
}, _PlannerPlanListCommand_initTypes = function _PlannerPlanListCommand_initTypes() {
|
|
82
|
+
this.types.string.push('ownerGroupId', 'ownerGroupName', 'rosterId');
|
|
80
83
|
};
|
|
81
84
|
export default new PlannerPlanListCommand();
|
|
82
85
|
//# sourceMappingURL=plan-list.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerPlanRemoveCommand_instances, _PlannerPlanRemoveCommand_initTelemetry, _PlannerPlanRemoveCommand_initOptions, _PlannerPlanRemoveCommand_initValidators, _PlannerPlanRemoveCommand_initOptionSets;
|
|
6
|
+
var _PlannerPlanRemoveCommand_instances, _PlannerPlanRemoveCommand_initTelemetry, _PlannerPlanRemoveCommand_initOptions, _PlannerPlanRemoveCommand_initValidators, _PlannerPlanRemoveCommand_initOptionSets, _PlannerPlanRemoveCommand_initTypes;
|
|
7
7
|
import { Cli } from '../../../../cli/Cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
@@ -25,6 +25,7 @@ class PlannerPlanRemoveCommand extends GraphCommand {
|
|
|
25
25
|
__classPrivateFieldGet(this, _PlannerPlanRemoveCommand_instances, "m", _PlannerPlanRemoveCommand_initOptions).call(this);
|
|
26
26
|
__classPrivateFieldGet(this, _PlannerPlanRemoveCommand_instances, "m", _PlannerPlanRemoveCommand_initValidators).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerPlanRemoveCommand_instances, "m", _PlannerPlanRemoveCommand_initOptionSets).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _PlannerPlanRemoveCommand_instances, "m", _PlannerPlanRemoveCommand_initTypes).call(this);
|
|
28
29
|
}
|
|
29
30
|
async commandAction(logger, args) {
|
|
30
31
|
const removePlan = async () => {
|
|
@@ -118,6 +119,8 @@ _PlannerPlanRemoveCommand_instances = new WeakSet(), _PlannerPlanRemoveCommand_i
|
|
|
118
119
|
});
|
|
119
120
|
}, _PlannerPlanRemoveCommand_initOptionSets = function _PlannerPlanRemoveCommand_initOptionSets() {
|
|
120
121
|
this.optionSets.push({ options: ['id', 'title'] });
|
|
122
|
+
}, _PlannerPlanRemoveCommand_initTypes = function _PlannerPlanRemoveCommand_initTypes() {
|
|
123
|
+
this.types.string.push('id', 'title', 'ownerGroupId', 'ownerGroupName');
|
|
121
124
|
};
|
|
122
125
|
export default new PlannerPlanRemoveCommand();
|
|
123
126
|
//# sourceMappingURL=plan-remove.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerPlanSetCommand_instances, _PlannerPlanSetCommand_initTelemetry, _PlannerPlanSetCommand_initOptions, _PlannerPlanSetCommand_initValidators, _PlannerPlanSetCommand_initOptionSets;
|
|
6
|
+
var _PlannerPlanSetCommand_instances, _PlannerPlanSetCommand_initTelemetry, _PlannerPlanSetCommand_initOptions, _PlannerPlanSetCommand_initValidators, _PlannerPlanSetCommand_initOptionSets, _PlannerPlanSetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -28,6 +28,7 @@ class PlannerPlanSetCommand extends GraphCommand {
|
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerPlanSetCommand_instances, "m", _PlannerPlanSetCommand_initOptions).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _PlannerPlanSetCommand_instances, "m", _PlannerPlanSetCommand_initValidators).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _PlannerPlanSetCommand_instances, "m", _PlannerPlanSetCommand_initOptionSets).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _PlannerPlanSetCommand_instances, "m", _PlannerPlanSetCommand_initTypes).call(this);
|
|
31
32
|
}
|
|
32
33
|
allowUnknownOptions() {
|
|
33
34
|
return true;
|
|
@@ -275,6 +276,8 @@ _PlannerPlanSetCommand_instances = new WeakSet(), _PlannerPlanSetCommand_initTel
|
|
|
275
276
|
return args.options.title !== undefined;
|
|
276
277
|
}
|
|
277
278
|
});
|
|
279
|
+
}, _PlannerPlanSetCommand_initTypes = function _PlannerPlanSetCommand_initTypes() {
|
|
280
|
+
this.types.string.push('id', 'title', 'ownerGroupId', 'ownerGroupName', 'rosterId', 'newTitle', 'shareWithUserIds', 'shareWithUserNames');
|
|
278
281
|
};
|
|
279
282
|
export default new PlannerPlanSetCommand();
|
|
280
283
|
//# sourceMappingURL=plan-set.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerRosterGetCommand_instances, _PlannerRosterGetCommand_initOptions;
|
|
6
|
+
var _PlannerRosterGetCommand_instances, _PlannerRosterGetCommand_initOptions, _PlannerRosterGetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
9
|
import commands from '../../commands.js';
|
|
@@ -18,6 +18,7 @@ class PlannerRosterGetCommand extends GraphCommand {
|
|
|
18
18
|
super();
|
|
19
19
|
_PlannerRosterGetCommand_instances.add(this);
|
|
20
20
|
__classPrivateFieldGet(this, _PlannerRosterGetCommand_instances, "m", _PlannerRosterGetCommand_initOptions).call(this);
|
|
21
|
+
__classPrivateFieldGet(this, _PlannerRosterGetCommand_instances, "m", _PlannerRosterGetCommand_initTypes).call(this);
|
|
21
22
|
}
|
|
22
23
|
async commandAction(logger, args) {
|
|
23
24
|
if (this.verbose) {
|
|
@@ -43,6 +44,8 @@ _PlannerRosterGetCommand_instances = new WeakSet(), _PlannerRosterGetCommand_ini
|
|
|
43
44
|
this.options.unshift({
|
|
44
45
|
option: '--id <id>'
|
|
45
46
|
});
|
|
47
|
+
}, _PlannerRosterGetCommand_initTypes = function _PlannerRosterGetCommand_initTypes() {
|
|
48
|
+
this.types.string.push('id');
|
|
46
49
|
};
|
|
47
50
|
export default new PlannerRosterGetCommand();
|
|
48
51
|
//# sourceMappingURL=roster-get.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
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");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _PlannerRosterMemberAddCommand_instances, _PlannerRosterMemberAddCommand_initTelemetry, _PlannerRosterMemberAddCommand_initOptions, _PlannerRosterMemberAddCommand_initOptionSets, _PlannerRosterMemberAddCommand_initValidators;
|
|
6
|
+
var _PlannerRosterMemberAddCommand_instances, _PlannerRosterMemberAddCommand_initTelemetry, _PlannerRosterMemberAddCommand_initOptions, _PlannerRosterMemberAddCommand_initOptionSets, _PlannerRosterMemberAddCommand_initValidators, _PlannerRosterMemberAddCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadUser } from '../../../../utils/aadUser.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -23,6 +23,7 @@ class PlannerRosterMemberAddCommand extends GraphCommand {
|
|
|
23
23
|
__classPrivateFieldGet(this, _PlannerRosterMemberAddCommand_instances, "m", _PlannerRosterMemberAddCommand_initOptions).call(this);
|
|
24
24
|
__classPrivateFieldGet(this, _PlannerRosterMemberAddCommand_instances, "m", _PlannerRosterMemberAddCommand_initValidators).call(this);
|
|
25
25
|
__classPrivateFieldGet(this, _PlannerRosterMemberAddCommand_instances, "m", _PlannerRosterMemberAddCommand_initOptionSets).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _PlannerRosterMemberAddCommand_instances, "m", _PlannerRosterMemberAddCommand_initTypes).call(this);
|
|
26
27
|
}
|
|
27
28
|
async commandAction(logger, args) {
|
|
28
29
|
if (this.verbose) {
|
|
@@ -85,6 +86,8 @@ _PlannerRosterMemberAddCommand_instances = new WeakSet(), _PlannerRosterMemberAd
|
|
|
85
86
|
}
|
|
86
87
|
return true;
|
|
87
88
|
});
|
|
89
|
+
}, _PlannerRosterMemberAddCommand_initTypes = function _PlannerRosterMemberAddCommand_initTypes() {
|
|
90
|
+
this.types.string.push('rosterId', 'userId', 'userName');
|
|
88
91
|
};
|
|
89
92
|
export default new PlannerRosterMemberAddCommand();
|
|
90
93
|
//# sourceMappingURL=roster-member-add.js.map
|