@pnp/cli-microsoft365 7.0.0-beta.093ef31 → 7.0.0-beta.14c7857
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/README.md +4 -4
- package/dist/Auth.js +10 -1
- package/dist/cli/Cli.js +3 -3
- package/dist/m365/aad/commands/app/app-get.js +4 -1
- package/dist/m365/aad/commands/app/app-remove.js +3 -1
- package/dist/m365/aad/commands/app/app-role-add.js +4 -1
- package/dist/m365/aad/commands/app/app-role-list.js +4 -1
- package/dist/m365/aad/commands/app/app-role-remove.js +5 -2
- package/dist/m365/aad/commands/app/app-set.js +8 -5
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -6
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -4
- package/dist/m365/aad/commands/group/group-get.js +4 -4
- package/dist/m365/aad/commands/group/group-list.js +1 -23
- package/dist/m365/aad/commands/group/group-remove.js +98 -0
- package/dist/m365/aad/commands/m365group/m365group-add.js +21 -12
- package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-remove.js +3 -1
- package/dist/m365/aad/commands/m365group/m365group-recyclebinitem-restore.js +4 -1
- package/dist/m365/aad/commands/m365group/m365group-teamify.js +4 -1
- package/dist/m365/aad/commands/sp/sp-add.js +4 -1
- package/dist/m365/aad/commands/sp/sp-get.js +4 -1
- package/dist/m365/aad/commands/user/user-get.js +7 -2
- package/dist/m365/aad/commands.js +1 -0
- package/dist/m365/booking/commands/business/business-get.js +4 -1
- package/dist/m365/commands/login.js +2 -2
- package/dist/m365/graph/commands/subscription/subscription-add.js +5 -5
- package/dist/m365/outlook/commands/message/message-list.js +4 -2
- package/dist/m365/outlook/commands/message/message-move.js +4 -2
- package/dist/m365/pa/commands/app/app-export.js +7 -7
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -1
- package/dist/m365/planner/commands/bucket/bucket-get.js +9 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +4 -1
- package/dist/m365/planner/commands/bucket/bucket-remove.js +7 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +8 -2
- 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 +11 -3
- package/dist/m365/planner/commands/task/task-list.js +10 -2
- 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 +10 -4
- package/dist/m365/planner/commands/task/task-set.js +4 -1
- package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +4 -1
- package/dist/m365/pp/commands/card/card-get.js +3 -5
- package/dist/m365/pp/commands/chatbot/chatbot-get.js +3 -1
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -1
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.5.js → doctor-1.18.0.js} +2 -2
- package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js +13 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.5.js → upgrade-1.18.0.js} +35 -27
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
- package/dist/m365/spfx/commands/spfx-doctor.js +3 -3
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +5 -3
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +2 -2
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +3 -2
- package/dist/m365/spo/commands/commandset/commandset-get.js +4 -2
- package/dist/m365/spo/commands/commandset/commandset-remove.js +2 -1
- package/dist/m365/spo/commands/commandset/commandset-set.js +3 -1
- package/dist/m365/spo/commands/customaction/customaction-get.js +5 -2
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +3 -1
- package/dist/m365/spo/commands/file/file-get.js +11 -8
- 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/hubsite/hubsite-connect.js +7 -4
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +4 -1
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +3 -1
- package/dist/m365/spo/commands/listitem/listitem-add.js +1 -0
- package/dist/m365/spo/commands/listitem/listitem-set.js +3 -2
- package/dist/m365/spo/commands/page/clientsidepages.js +18 -0
- package/dist/m365/spo/commands/page/page-get.js +1 -0
- package/dist/m365/spo/commands/page/page-list.js +4 -3
- package/dist/m365/spo/commands/page/page-section-add.js +56 -21
- 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/spo/commands/site/site-list.js +5 -7
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +8 -3
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +2 -1
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +8 -3
- package/dist/m365/spo/commands/tenant/tenant-commandset-list.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +3 -1
- package/dist/m365/spo/commands/term/term-get.js +6 -6
- package/dist/m365/teams/commands/app/app-remove.js +49 -15
- package/dist/m365/teams/commands/channel/channel-add.js +5 -1
- package/dist/m365/teams/commands/channel/channel-member-add.js +12 -10
- package/dist/m365/teams/commands/channel/channel-member-remove.js +3 -1
- package/dist/m365/teams/commands/channel/channel-member-set.js +4 -1
- package/dist/m365/teams/commands/chat/chat-get.js +7 -10
- package/dist/m365/teams/commands/chat/chat-message-send.js +8 -10
- package/dist/m365/teams/commands/team/team-clone.js +5 -10
- package/dist/m365/teams/commands/team/team-list.js +94 -30
- package/dist/m365/tenant/commands/info/info-get.js +83 -0
- package/dist/m365/tenant/commands.js +1 -0
- package/dist/utils/aadGroup.js +5 -3
- package/dist/utils/formatting.js +7 -0
- package/dist/utils/powerPlatform.js +1 -1
- 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-get.mdx +5 -5
- package/docs/docs/cmd/aad/group/group-list.mdx +0 -11
- 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/aad/policy/policy-list.mdx +5 -5
- package/docs/docs/cmd/cli/config/config-list.mdx +1 -1
- package/docs/docs/cmd/graph/subscription/subscription-add.mdx +10 -10
- package/docs/docs/cmd/pa/app/app-export.mdx +5 -5
- package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +2 -2
- package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +2 -2
- 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/listitem/listitem-add.mdx +2 -5
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +2 -5
- package/docs/docs/cmd/spo/page/page-get.mdx +0 -1
- package/docs/docs/cmd/spo/page/page-list.mdx +0 -1
- package/docs/docs/cmd/spo/page/page-section-add.mdx +25 -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/spo/tenant/tenant-applicationcustomizer-list.mdx +2 -4
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +2 -4
- package/docs/docs/cmd/teams/app/app-remove.mdx +9 -6
- package/docs/docs/cmd/teams/channel/channel-member-add.mdx +4 -4
- package/docs/docs/cmd/teams/team/team-clone.mdx +3 -3
- package/docs/docs/cmd/teams/team/team-list.mdx +47 -22
- package/docs/docs/cmd/tenant/info/info-get.mdx +101 -0
- package/npm-shrinkwrap.json +24 -24
- package/package.json +8 -12
|
@@ -4,6 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _AadSpGetCommand_instances, _AadSpGetCommand_initTelemetry, _AadSpGetCommand_initOptions, _AadSpGetCommand_initValidators, _AadSpGetCommand_initOptionSets;
|
|
7
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
7
8
|
import request from '../../../../request.js';
|
|
8
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
10
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -48,7 +49,9 @@ class AadSpGetCommand extends GraphCommand {
|
|
|
48
49
|
throw `The specified Azure AD app does not exist`;
|
|
49
50
|
}
|
|
50
51
|
if (response.value.length > 1) {
|
|
51
|
-
|
|
52
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', response.value);
|
|
53
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple Azure AD apps with name '${args.options.appDisplayName}' found.`, resultAsKeyValuePair);
|
|
54
|
+
return result.id;
|
|
52
55
|
}
|
|
53
56
|
return spItem.id;
|
|
54
57
|
}
|
|
@@ -9,6 +9,7 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
12
13
|
class AadUserGetCommand extends GraphCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.USER_GET;
|
|
@@ -57,9 +58,13 @@ class AadUserGetCommand extends GraphCommand {
|
|
|
57
58
|
throw `The specified user with ${identifier} does not exist`;
|
|
58
59
|
}
|
|
59
60
|
if (res.value.length > 1) {
|
|
60
|
-
|
|
61
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', res.value);
|
|
62
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple users with ${identifier} found.`, resultAsKeyValuePair);
|
|
63
|
+
await logger.log(result);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
await logger.log(res.value[0]);
|
|
61
67
|
}
|
|
62
|
-
await logger.log(res.value[0]);
|
|
63
68
|
}
|
|
64
69
|
catch (err) {
|
|
65
70
|
this.handleRejectedODataJsonPromise(err);
|
|
@@ -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`,
|
|
@@ -8,6 +8,7 @@ import request from '../../../../request.js';
|
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
11
12
|
class BookingBusinessGetCommand extends GraphCommand {
|
|
12
13
|
get name() {
|
|
13
14
|
return commands.BUSINESS_GET;
|
|
@@ -60,7 +61,9 @@ class BookingBusinessGetCommand extends GraphCommand {
|
|
|
60
61
|
throw `The specified business with name ${options.name} does not exist.`;
|
|
61
62
|
}
|
|
62
63
|
if (bookingBusinesses.length > 1) {
|
|
63
|
-
|
|
64
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', bookingBusinesses);
|
|
65
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple businesses with name '${options.name}' found.`, resultAsKeyValuePair);
|
|
66
|
+
return result.id;
|
|
64
67
|
}
|
|
65
68
|
return bookingBusinesses[0].id;
|
|
66
69
|
}
|
|
@@ -80,7 +80,7 @@ class LoginCommand extends Command {
|
|
|
80
80
|
throw new CommandError(error.message);
|
|
81
81
|
}
|
|
82
82
|
if (this.debug) {
|
|
83
|
-
await logger.
|
|
83
|
+
await logger.log({
|
|
84
84
|
connectedAs: accessToken.getUserNameFromAccessToken(auth.service.accessTokens[auth.defaultResource].accessToken),
|
|
85
85
|
authType: AuthType[auth.service.authType],
|
|
86
86
|
appId: auth.service.appId,
|
|
@@ -90,7 +90,7 @@ class LoginCommand extends Command {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
93
|
-
await logger.
|
|
93
|
+
await logger.log({
|
|
94
94
|
connectedAs: accessToken.getUserNameFromAccessToken(auth.service.accessTokens[auth.defaultResource].accessToken),
|
|
95
95
|
authType: AuthType[auth.service.authType],
|
|
96
96
|
appId: auth.service.appId,
|
|
@@ -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';
|
|
@@ -4,13 +4,13 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _OutlookMessageListCommand_instances, _OutlookMessageListCommand_initTelemetry, _OutlookMessageListCommand_initOptions, _OutlookMessageListCommand_initOptionSets;
|
|
7
|
-
import os from 'os';
|
|
8
7
|
import request from '../../../../request.js';
|
|
9
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
9
|
import { odata } from '../../../../utils/odata.js';
|
|
11
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
11
|
import commands from '../../commands.js';
|
|
13
12
|
import { Outlook } from '../../Outlook.js';
|
|
13
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
14
14
|
class OutlookMessageListCommand extends GraphCommand {
|
|
15
15
|
get name() {
|
|
16
16
|
return commands.MESSAGE_LIST;
|
|
@@ -61,7 +61,9 @@ class OutlookMessageListCommand extends GraphCommand {
|
|
|
61
61
|
throw `Folder with name '${args.options.folderName}' not found`;
|
|
62
62
|
}
|
|
63
63
|
if (response.value.length > 1) {
|
|
64
|
-
|
|
64
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', response.value);
|
|
65
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple folders with name '${args.options.folderName}' found.`, resultAsKeyValuePair);
|
|
66
|
+
return result.id;
|
|
65
67
|
}
|
|
66
68
|
return response.value[0].id;
|
|
67
69
|
}
|
|
@@ -4,12 +4,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _OutlookMessageMoveCommand_instances, _OutlookMessageMoveCommand_initTelemetry, _OutlookMessageMoveCommand_initOptions, _OutlookMessageMoveCommand_initOptionSets;
|
|
7
|
-
import os from 'os';
|
|
8
7
|
import request from '../../../../request.js';
|
|
9
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
10
|
import commands from '../../commands.js';
|
|
12
11
|
import { Outlook } from '../../Outlook.js';
|
|
12
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
13
13
|
class OutlookMessageMoveCommand extends GraphCommand {
|
|
14
14
|
get name() {
|
|
15
15
|
return commands.MESSAGE_MOVE;
|
|
@@ -66,7 +66,9 @@ class OutlookMessageMoveCommand extends GraphCommand {
|
|
|
66
66
|
throw `Folder with name '${folderName}' not found`;
|
|
67
67
|
}
|
|
68
68
|
if (response.value.length > 1) {
|
|
69
|
-
|
|
69
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', response.value);
|
|
70
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple folders with name '${folderName}' found.`, resultAsKeyValuePair);
|
|
71
|
+
return result.id;
|
|
70
72
|
}
|
|
71
73
|
return response.value[0].id;
|
|
72
74
|
}
|
|
@@ -69,7 +69,7 @@ class PaAppExportCommand extends PowerPlatformCommand {
|
|
|
69
69
|
},
|
|
70
70
|
data: {
|
|
71
71
|
baseResourceIds: [
|
|
72
|
-
`/providers/Microsoft.PowerApps/apps/${args.options.
|
|
72
|
+
`/providers/Microsoft.PowerApps/apps/${args.options.name}`
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
75
|
responseType: 'json'
|
|
@@ -82,7 +82,7 @@ class PaAppExportCommand extends PowerPlatformCommand {
|
|
|
82
82
|
}
|
|
83
83
|
async exportPackage(args, logger) {
|
|
84
84
|
if (this.verbose) {
|
|
85
|
-
await logger.logToStderr(`Initiating package export for Microsoft Power App ${args.options.
|
|
85
|
+
await logger.logToStderr(`Initiating package export for Microsoft Power App ${args.options.name}...`);
|
|
86
86
|
}
|
|
87
87
|
const resources = await this.getPackageResources(args, logger);
|
|
88
88
|
const requestOptions = {
|
|
@@ -93,7 +93,7 @@ class PaAppExportCommand extends PowerPlatformCommand {
|
|
|
93
93
|
responseType: 'json',
|
|
94
94
|
data: {
|
|
95
95
|
includedResourceIds: [
|
|
96
|
-
`/providers/Microsoft.PowerApps/apps/${args.options.
|
|
96
|
+
`/providers/Microsoft.PowerApps/apps/${args.options.name}`
|
|
97
97
|
],
|
|
98
98
|
details: {
|
|
99
99
|
creator: args.options.packageCreatedBy,
|
|
@@ -148,11 +148,11 @@ _PaAppExportCommand_instances = new WeakSet(), _PaAppExportCommand_initTelemetry
|
|
|
148
148
|
});
|
|
149
149
|
}, _PaAppExportCommand_initOptions = function _PaAppExportCommand_initOptions() {
|
|
150
150
|
this.options.unshift({
|
|
151
|
-
option: '-
|
|
151
|
+
option: '-n, --name <name>'
|
|
152
152
|
}, {
|
|
153
153
|
option: '-e, --environmentName <environmentName>'
|
|
154
154
|
}, {
|
|
155
|
-
option: '
|
|
155
|
+
option: '--packageDisplayName [packageDisplayName]'
|
|
156
156
|
}, {
|
|
157
157
|
option: '-d, --packageDescription [packageDescription]'
|
|
158
158
|
}, {
|
|
@@ -164,8 +164,8 @@ _PaAppExportCommand_instances = new WeakSet(), _PaAppExportCommand_initTelemetry
|
|
|
164
164
|
});
|
|
165
165
|
}, _PaAppExportCommand_initValidators = function _PaAppExportCommand_initValidators() {
|
|
166
166
|
this.validators.push(async (args) => {
|
|
167
|
-
if (
|
|
168
|
-
return `${args.options.
|
|
167
|
+
if (!validation.isValidGuid(args.options.name)) {
|
|
168
|
+
return `${args.options.name} is not a valid GUID for option name`;
|
|
169
169
|
}
|
|
170
170
|
if (args.options.path && !fs.existsSync(path.dirname(args.options.path))) {
|
|
171
171
|
return 'Specified path where to save the file does not exist';
|
|
@@ -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,13 +3,15 @@ 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';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
14
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
13
15
|
class PlannerBucketGetCommand extends GraphCommand {
|
|
14
16
|
get name() {
|
|
15
17
|
return commands.BUCKET_GET;
|
|
@@ -24,6 +26,7 @@ class PlannerBucketGetCommand extends GraphCommand {
|
|
|
24
26
|
__classPrivateFieldGet(this, _PlannerBucketGetCommand_instances, "m", _PlannerBucketGetCommand_initOptions).call(this);
|
|
25
27
|
__classPrivateFieldGet(this, _PlannerBucketGetCommand_instances, "m", _PlannerBucketGetCommand_initValidators).call(this);
|
|
26
28
|
__classPrivateFieldGet(this, _PlannerBucketGetCommand_instances, "m", _PlannerBucketGetCommand_initOptionSets).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PlannerBucketGetCommand_instances, "m", _PlannerBucketGetCommand_initTypes).call(this);
|
|
27
30
|
}
|
|
28
31
|
async commandAction(logger, args) {
|
|
29
32
|
try {
|
|
@@ -54,7 +57,9 @@ class PlannerBucketGetCommand extends GraphCommand {
|
|
|
54
57
|
throw `The specified bucket ${name} does not exist`;
|
|
55
58
|
}
|
|
56
59
|
if (filteredBuckets.length > 1) {
|
|
57
|
-
|
|
60
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', filteredBuckets);
|
|
61
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple buckets with name '${name}' found.`, resultAsKeyValuePair);
|
|
62
|
+
return result.id.toString();
|
|
58
63
|
}
|
|
59
64
|
return filteredBuckets[0].id.toString();
|
|
60
65
|
}
|
|
@@ -152,6 +157,8 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
152
157
|
options: ['ownerGroupId', 'ownerGroupName'],
|
|
153
158
|
runsWhen: (args) => args.options.planTitle !== undefined
|
|
154
159
|
});
|
|
160
|
+
}, _PlannerBucketGetCommand_initTypes = function _PlannerBucketGetCommand_initTypes() {
|
|
161
|
+
this.types.string.push('id', 'name', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'rosterId ');
|
|
155
162
|
};
|
|
156
163
|
export default new PlannerBucketGetCommand();
|
|
157
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';
|
|
@@ -11,6 +11,7 @@ import { planner } from '../../../../utils/planner.js';
|
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
14
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
14
15
|
class PlannerBucketRemoveCommand extends GraphCommand {
|
|
15
16
|
get name() {
|
|
16
17
|
return commands.BUCKET_REMOVE;
|
|
@@ -25,6 +26,7 @@ class PlannerBucketRemoveCommand extends GraphCommand {
|
|
|
25
26
|
__classPrivateFieldGet(this, _PlannerBucketRemoveCommand_instances, "m", _PlannerBucketRemoveCommand_initOptions).call(this);
|
|
26
27
|
__classPrivateFieldGet(this, _PlannerBucketRemoveCommand_instances, "m", _PlannerBucketRemoveCommand_initValidators).call(this);
|
|
27
28
|
__classPrivateFieldGet(this, _PlannerBucketRemoveCommand_instances, "m", _PlannerBucketRemoveCommand_initOptionSets).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PlannerBucketRemoveCommand_instances, "m", _PlannerBucketRemoveCommand_initTypes).call(this);
|
|
28
30
|
}
|
|
29
31
|
async commandAction(logger, args) {
|
|
30
32
|
const removeBucket = async () => {
|
|
@@ -84,7 +86,8 @@ class PlannerBucketRemoveCommand extends GraphCommand {
|
|
|
84
86
|
throw `The specified bucket ${args.options.name} does not exist`;
|
|
85
87
|
}
|
|
86
88
|
if (filteredBuckets.length > 1) {
|
|
87
|
-
|
|
89
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', filteredBuckets);
|
|
90
|
+
return await Cli.handleMultipleResultsFound(`Multiple buckets with name '${args.options.name}' found.`, resultAsKeyValuePair);
|
|
88
91
|
}
|
|
89
92
|
return filteredBuckets[0];
|
|
90
93
|
}
|
|
@@ -175,6 +178,8 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
175
178
|
options: ['ownerGroupId', 'ownerGroupName'],
|
|
176
179
|
runsWhen: (args) => args.options.planTitle !== undefined
|
|
177
180
|
});
|
|
181
|
+
}, _PlannerBucketRemoveCommand_initTypes = function _PlannerBucketRemoveCommand_initTypes() {
|
|
182
|
+
this.types.string.push('id', 'name', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'rosterId ');
|
|
178
183
|
};
|
|
179
184
|
export default new PlannerBucketRemoveCommand();
|
|
180
185
|
//# sourceMappingURL=bucket-remove.js.map
|
|
@@ -3,13 +3,15 @@ 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';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
14
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
13
15
|
class PlannerBucketSetCommand extends GraphCommand {
|
|
14
16
|
get name() {
|
|
15
17
|
return commands.BUCKET_SET;
|
|
@@ -24,6 +26,7 @@ class PlannerBucketSetCommand extends GraphCommand {
|
|
|
24
26
|
__classPrivateFieldGet(this, _PlannerBucketSetCommand_instances, "m", _PlannerBucketSetCommand_initOptions).call(this);
|
|
25
27
|
__classPrivateFieldGet(this, _PlannerBucketSetCommand_instances, "m", _PlannerBucketSetCommand_initValidators).call(this);
|
|
26
28
|
__classPrivateFieldGet(this, _PlannerBucketSetCommand_instances, "m", _PlannerBucketSetCommand_initOptionSets).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PlannerBucketSetCommand_instances, "m", _PlannerBucketSetCommand_initTypes).call(this);
|
|
27
30
|
}
|
|
28
31
|
async commandAction(logger, args) {
|
|
29
32
|
try {
|
|
@@ -75,7 +78,8 @@ class PlannerBucketSetCommand extends GraphCommand {
|
|
|
75
78
|
throw `The specified bucket ${args.options.name} does not exist`;
|
|
76
79
|
}
|
|
77
80
|
if (filteredBuckets.length > 1) {
|
|
78
|
-
|
|
81
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', filteredBuckets);
|
|
82
|
+
return await Cli.handleMultipleResultsFound(`Multiple buckets with name '${args.options.name}' found.`, resultAsKeyValuePair);
|
|
79
83
|
}
|
|
80
84
|
return filteredBuckets[0];
|
|
81
85
|
}
|
|
@@ -164,6 +168,8 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
164
168
|
options: ['ownerGroupId', 'ownerGroupName'],
|
|
165
169
|
runsWhen: (args) => args.options.planTitle !== undefined
|
|
166
170
|
});
|
|
171
|
+
}, _PlannerBucketSetCommand_initTypes = function _PlannerBucketSetCommand_initTypes() {
|
|
172
|
+
this.types.string.push('id', 'name', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'orderHint', 'newName', 'rosterId ');
|
|
167
173
|
};
|
|
168
174
|
export default new PlannerBucketSetCommand();
|
|
169
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
|