@pnp/cli-microsoft365 7.0.0-beta.093ef31 → 7.0.0-beta.18ce559
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/Command.js +2 -2
- package/dist/cli/Cli.js +4 -4
- 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-conversation-list.js +5 -0
- package/dist/m365/aad/commands/m365group/m365group-conversation-post-list.js +4 -0
- package/dist/m365/aad/commands/m365group/m365group-get.js +4 -3
- 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-remove.js +5 -0
- package/dist/m365/aad/commands/m365group/m365group-renew.js +5 -0
- package/dist/m365/aad/commands/m365group/m365group-set.js +5 -0
- package/dist/m365/aad/commands/m365group/m365group-teamify.js +14 -6
- package/dist/m365/aad/commands/m365group/m365group-user-add.js +5 -0
- package/dist/m365/aad/commands/m365group/m365group-user-list.js +5 -0
- package/dist/m365/aad/commands/m365group/m365group-user-remove.js +5 -0
- package/dist/m365/aad/commands/m365group/m365group-user-set.js +5 -0
- 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/flow/commands/flow-export.js +13 -13
- 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/pa/commands/connector/connector-export.js +5 -5
- 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/chatbot/chatbot-list.js +2 -2
- 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-attachment-add.js +127 -0
- package/dist/m365/spo/commands/listitem/listitem-attachment-get.js +97 -0
- package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +121 -0
- package/dist/m365/spo/commands/listitem/listitem-attachment-set.js +115 -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/spo/commands/user/user-get.js +10 -10
- package/dist/m365/spo/commands.js +4 -0
- 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 +21 -3
- package/dist/utils/formatting.js +7 -0
- package/dist/utils/powerPlatform.js +1 -1
- package/docs/docs/_clisettings.mdx +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/flow/flow-export.mdx +11 -11
- 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/pa/connector/connector-export.mdx +3 -3
- package/docs/docs/cmd/pp/chatbot/chatbot-list.mdx +4 -4
- 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-attachment-add.mdx +110 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-get.mdx +104 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-remove.mdx +58 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx +58 -0
- 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/spo/user/user-get.mdx +8 -8
- 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
|
@@ -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 _PlannerTaskGetCommand_instances, _PlannerTaskGetCommand_initTelemetry, _PlannerTaskGetCommand_initOptions, _PlannerTaskGetCommand_initValidators, _PlannerTaskGetCommand_initOptionSets;
|
|
6
|
+
var _PlannerTaskGetCommand_instances, _PlannerTaskGetCommand_initTelemetry, _PlannerTaskGetCommand_initOptions, _PlannerTaskGetCommand_initValidators, _PlannerTaskGetCommand_initOptionSets, _PlannerTaskGetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.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 { Cli } from '../../../../cli/Cli.js';
|
|
14
15
|
class PlannerTaskGetCommand extends GraphCommand {
|
|
15
16
|
get name() {
|
|
16
17
|
return commands.TASK_GET;
|
|
@@ -25,6 +26,7 @@ class PlannerTaskGetCommand extends GraphCommand {
|
|
|
25
26
|
__classPrivateFieldGet(this, _PlannerTaskGetCommand_instances, "m", _PlannerTaskGetCommand_initOptions).call(this);
|
|
26
27
|
__classPrivateFieldGet(this, _PlannerTaskGetCommand_instances, "m", _PlannerTaskGetCommand_initValidators).call(this);
|
|
27
28
|
__classPrivateFieldGet(this, _PlannerTaskGetCommand_instances, "m", _PlannerTaskGetCommand_initOptionSets).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PlannerTaskGetCommand_instances, "m", _PlannerTaskGetCommand_initTypes).call(this);
|
|
28
30
|
}
|
|
29
31
|
async commandAction(logger, args) {
|
|
30
32
|
try {
|
|
@@ -78,7 +80,9 @@ class PlannerTaskGetCommand extends GraphCommand {
|
|
|
78
80
|
throw `The specified task ${options.title} does not exist`;
|
|
79
81
|
}
|
|
80
82
|
if (tasks.length > 1) {
|
|
81
|
-
|
|
83
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', tasks);
|
|
84
|
+
const result = (await Cli.handleMultipleResultsFound(`Multiple tasks with title '${options.title}' found.`, resultAsKeyValuePair));
|
|
85
|
+
return result.id;
|
|
82
86
|
}
|
|
83
87
|
return tasks[0].id;
|
|
84
88
|
}
|
|
@@ -101,7 +105,9 @@ class PlannerTaskGetCommand extends GraphCommand {
|
|
|
101
105
|
throw `The specified bucket ${options.bucketName} does not exist`;
|
|
102
106
|
}
|
|
103
107
|
if (buckets.length > 1) {
|
|
104
|
-
|
|
108
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', buckets);
|
|
109
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple buckets with name '${options.bucketName}' found.`, resultAsKeyValuePair);
|
|
110
|
+
return result.id;
|
|
105
111
|
}
|
|
106
112
|
return buckets[0].id;
|
|
107
113
|
}
|
|
@@ -179,6 +185,8 @@ _PlannerTaskGetCommand_instances = new WeakSet(), _PlannerTaskGetCommand_initTel
|
|
|
179
185
|
return args.options.planTitle !== undefined;
|
|
180
186
|
}
|
|
181
187
|
});
|
|
188
|
+
}, _PlannerTaskGetCommand_initTypes = function _PlannerTaskGetCommand_initTypes() {
|
|
189
|
+
this.types.string.push('id', 'title', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'bucketId', 'bucketName', 'rosterId');
|
|
182
190
|
};
|
|
183
191
|
export default new PlannerTaskGetCommand();
|
|
184
192
|
//# sourceMappingURL=task-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 _PlannerTaskListCommand_instances, _PlannerTaskListCommand_initTelemetry, _PlannerTaskListCommand_initOptions, _PlannerTaskListCommand_initValidators, _PlannerTaskListCommand_initOptionSets;
|
|
6
|
+
var _PlannerTaskListCommand_instances, _PlannerTaskListCommand_initTelemetry, _PlannerTaskListCommand_initOptions, _PlannerTaskListCommand_initValidators, _PlannerTaskListCommand_initOptionSets, _PlannerTaskListCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -29,6 +29,7 @@ class PlannerTaskListCommand extends GraphCommand {
|
|
|
29
29
|
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initValidators).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initOptionSets).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initTypes).call(this);
|
|
32
33
|
}
|
|
33
34
|
async commandAction(logger, args) {
|
|
34
35
|
const bucketName = args.options.bucketName;
|
|
@@ -157,7 +158,12 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
157
158
|
return true;
|
|
158
159
|
});
|
|
159
160
|
}, _PlannerTaskListCommand_initOptionSets = function _PlannerTaskListCommand_initOptionSets() {
|
|
160
|
-
this.optionSets.push({
|
|
161
|
+
this.optionSets.push({
|
|
162
|
+
options: ['bucketId', 'bucketName'],
|
|
163
|
+
runsWhen: (args) => {
|
|
164
|
+
return args.options.bucketId !== undefined || args.options.bucketName !== undefined;
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
161
167
|
options: ['planId', 'planTitle'],
|
|
162
168
|
runsWhen: (args) => {
|
|
163
169
|
return args.options.bucketName !== undefined && args.options.rosterId === undefined;
|
|
@@ -168,6 +174,8 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
168
174
|
return args.options.planTitle !== undefined;
|
|
169
175
|
}
|
|
170
176
|
});
|
|
177
|
+
}, _PlannerTaskListCommand_initTypes = function _PlannerTaskListCommand_initTypes() {
|
|
178
|
+
this.types.string.push('planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'bucketId', 'bucketName', 'rosterId');
|
|
171
179
|
};
|
|
172
180
|
export default new PlannerTaskListCommand();
|
|
173
181
|
//# sourceMappingURL=task-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 _PlannerTaskReferenceAddCommand_instances, _PlannerTaskReferenceAddCommand_initTelemetry, _PlannerTaskReferenceAddCommand_initOptions, _PlannerTaskReferenceAddCommand_initValidators;
|
|
6
|
+
var _PlannerTaskReferenceAddCommand_instances, _PlannerTaskReferenceAddCommand_initTelemetry, _PlannerTaskReferenceAddCommand_initOptions, _PlannerTaskReferenceAddCommand_initValidators, _PlannerTaskReferenceAddCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -21,6 +21,7 @@ class PlannerTaskReferenceAddCommand extends GraphCommand {
|
|
|
21
21
|
__classPrivateFieldGet(this, _PlannerTaskReferenceAddCommand_instances, "m", _PlannerTaskReferenceAddCommand_initTelemetry).call(this);
|
|
22
22
|
__classPrivateFieldGet(this, _PlannerTaskReferenceAddCommand_instances, "m", _PlannerTaskReferenceAddCommand_initOptions).call(this);
|
|
23
23
|
__classPrivateFieldGet(this, _PlannerTaskReferenceAddCommand_instances, "m", _PlannerTaskReferenceAddCommand_initValidators).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _PlannerTaskReferenceAddCommand_instances, "m", _PlannerTaskReferenceAddCommand_initTypes).call(this);
|
|
24
25
|
}
|
|
25
26
|
async commandAction(logger, args) {
|
|
26
27
|
try {
|
|
@@ -82,6 +83,8 @@ _PlannerTaskReferenceAddCommand_instances = new WeakSet(), _PlannerTaskReference
|
|
|
82
83
|
}
|
|
83
84
|
return true;
|
|
84
85
|
});
|
|
86
|
+
}, _PlannerTaskReferenceAddCommand_initTypes = function _PlannerTaskReferenceAddCommand_initTypes() {
|
|
87
|
+
this.types.string.push('taskId', 'url', 'alias', 'type');
|
|
85
88
|
};
|
|
86
89
|
export default new PlannerTaskReferenceAddCommand();
|
|
87
90
|
//# sourceMappingURL=task-reference-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 _PlannerTaskReferenceListCommand_instances, _PlannerTaskReferenceListCommand_initOptions;
|
|
6
|
+
var _PlannerTaskReferenceListCommand_instances, _PlannerTaskReferenceListCommand_initOptions, _PlannerTaskReferenceListCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -19,6 +19,7 @@ class PlannerTaskReferenceListCommand extends GraphCommand {
|
|
|
19
19
|
super();
|
|
20
20
|
_PlannerTaskReferenceListCommand_instances.add(this);
|
|
21
21
|
__classPrivateFieldGet(this, _PlannerTaskReferenceListCommand_instances, "m", _PlannerTaskReferenceListCommand_initOptions).call(this);
|
|
22
|
+
__classPrivateFieldGet(this, _PlannerTaskReferenceListCommand_instances, "m", _PlannerTaskReferenceListCommand_initTypes).call(this);
|
|
22
23
|
}
|
|
23
24
|
async commandAction(logger, args) {
|
|
24
25
|
const requestOptions = {
|
|
@@ -41,6 +42,8 @@ _PlannerTaskReferenceListCommand_instances = new WeakSet(), _PlannerTaskReferenc
|
|
|
41
42
|
this.options.unshift({
|
|
42
43
|
option: '-i, --taskId <taskId>'
|
|
43
44
|
});
|
|
45
|
+
}, _PlannerTaskReferenceListCommand_initTypes = function _PlannerTaskReferenceListCommand_initTypes() {
|
|
46
|
+
this.types.string.push('taskId');
|
|
44
47
|
};
|
|
45
48
|
export default new PlannerTaskReferenceListCommand();
|
|
46
49
|
//# sourceMappingURL=task-reference-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 _PlannerTaskReferenceRemoveCommand_instances, _PlannerTaskReferenceRemoveCommand_initTelemetry, _PlannerTaskReferenceRemoveCommand_initOptions, _PlannerTaskReferenceRemoveCommand_initValidators, _PlannerTaskReferenceRemoveCommand_initOptionSets;
|
|
6
|
+
var _PlannerTaskReferenceRemoveCommand_instances, _PlannerTaskReferenceRemoveCommand_initTelemetry, _PlannerTaskReferenceRemoveCommand_initOptions, _PlannerTaskReferenceRemoveCommand_initValidators, _PlannerTaskReferenceRemoveCommand_initOptionSets, _PlannerTaskReferenceRemoveCommand_initTypes;
|
|
7
7
|
import { Cli } from '../../../../cli/Cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -23,6 +23,7 @@ class PlannerTaskReferenceRemoveCommand extends GraphCommand {
|
|
|
23
23
|
__classPrivateFieldGet(this, _PlannerTaskReferenceRemoveCommand_instances, "m", _PlannerTaskReferenceRemoveCommand_initOptions).call(this);
|
|
24
24
|
__classPrivateFieldGet(this, _PlannerTaskReferenceRemoveCommand_instances, "m", _PlannerTaskReferenceRemoveCommand_initValidators).call(this);
|
|
25
25
|
__classPrivateFieldGet(this, _PlannerTaskReferenceRemoveCommand_instances, "m", _PlannerTaskReferenceRemoveCommand_initOptionSets).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _PlannerTaskReferenceRemoveCommand_instances, "m", _PlannerTaskReferenceRemoveCommand_initTypes).call(this);
|
|
26
27
|
}
|
|
27
28
|
async commandAction(logger, args) {
|
|
28
29
|
if (args.options.force) {
|
|
@@ -112,6 +113,8 @@ _PlannerTaskReferenceRemoveCommand_instances = new WeakSet(), _PlannerTaskRefere
|
|
|
112
113
|
});
|
|
113
114
|
}, _PlannerTaskReferenceRemoveCommand_initOptionSets = function _PlannerTaskReferenceRemoveCommand_initOptionSets() {
|
|
114
115
|
this.optionSets.push({ options: ['url', 'alias'] });
|
|
116
|
+
}, _PlannerTaskReferenceRemoveCommand_initTypes = function _PlannerTaskReferenceRemoveCommand_initTypes() {
|
|
117
|
+
this.types.string.push('url', 'taskId', 'alias');
|
|
115
118
|
};
|
|
116
119
|
export default new PlannerTaskReferenceRemoveCommand();
|
|
117
120
|
//# sourceMappingURL=task-reference-remove.js.map
|
|
@@ -3,8 +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 _PlannerTaskRemoveCommand_instances, _PlannerTaskRemoveCommand_initTelemetry, _PlannerTaskRemoveCommand_initOptions, _PlannerTaskRemoveCommand_initValidators, _PlannerTaskRemoveCommand_initOptionSets;
|
|
7
|
-
import os from 'os';
|
|
6
|
+
var _PlannerTaskRemoveCommand_instances, _PlannerTaskRemoveCommand_initTelemetry, _PlannerTaskRemoveCommand_initOptions, _PlannerTaskRemoveCommand_initValidators, _PlannerTaskRemoveCommand_initOptionSets, _PlannerTaskRemoveCommand_initTypes;
|
|
8
7
|
import { Cli } from '../../../../cli/Cli.js';
|
|
9
8
|
import request from '../../../../request.js';
|
|
10
9
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
@@ -13,6 +12,7 @@ import { planner } from '../../../../utils/planner.js';
|
|
|
13
12
|
import { validation } from '../../../../utils/validation.js';
|
|
14
13
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
15
14
|
import commands from '../../commands.js';
|
|
15
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
16
16
|
class PlannerTaskRemoveCommand extends GraphCommand {
|
|
17
17
|
get name() {
|
|
18
18
|
return commands.TASK_REMOVE;
|
|
@@ -27,6 +27,7 @@ class PlannerTaskRemoveCommand extends GraphCommand {
|
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerTaskRemoveCommand_instances, "m", _PlannerTaskRemoveCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerTaskRemoveCommand_instances, "m", _PlannerTaskRemoveCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _PlannerTaskRemoveCommand_instances, "m", _PlannerTaskRemoveCommand_initOptionSets).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _PlannerTaskRemoveCommand_instances, "m", _PlannerTaskRemoveCommand_initTypes).call(this);
|
|
30
31
|
}
|
|
31
32
|
async commandAction(logger, args) {
|
|
32
33
|
const removeTask = async () => {
|
|
@@ -81,7 +82,8 @@ class PlannerTaskRemoveCommand extends GraphCommand {
|
|
|
81
82
|
throw `The specified task ${title} does not exist`;
|
|
82
83
|
}
|
|
83
84
|
if (filteredtasks.length > 1) {
|
|
84
|
-
|
|
85
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', filteredtasks);
|
|
86
|
+
return await Cli.handleMultipleResultsFound(`Multiple tasks with title '${title}' found.`, resultAsKeyValuePair);
|
|
85
87
|
}
|
|
86
88
|
return filteredtasks[0];
|
|
87
89
|
}
|
|
@@ -104,7 +106,9 @@ class PlannerTaskRemoveCommand extends GraphCommand {
|
|
|
104
106
|
throw `The specified bucket ${bucketName} does not exist`;
|
|
105
107
|
}
|
|
106
108
|
if (filteredBuckets.length > 1) {
|
|
107
|
-
|
|
109
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', filteredBuckets);
|
|
110
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple buckets with name '${bucketName}' found.`, resultAsKeyValuePair);
|
|
111
|
+
return result.id;
|
|
108
112
|
}
|
|
109
113
|
return filteredBuckets[0].id;
|
|
110
114
|
}
|
|
@@ -185,6 +189,8 @@ _PlannerTaskRemoveCommand_instances = new WeakSet(), _PlannerTaskRemoveCommand_i
|
|
|
185
189
|
return args.options.planTitle !== undefined;
|
|
186
190
|
}
|
|
187
191
|
});
|
|
192
|
+
}, _PlannerTaskRemoveCommand_initTypes = function _PlannerTaskRemoveCommand_initTypes() {
|
|
193
|
+
this.types.string.push('id', 'title', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'bucketId', 'bucketName', 'rosterId');
|
|
188
194
|
};
|
|
189
195
|
export default new PlannerTaskRemoveCommand();
|
|
190
196
|
//# sourceMappingURL=task-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 _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _PlannerTaskSetCommand_initOptions, _PlannerTaskSetCommand_initValidators, _PlannerTaskSetCommand_initOptionSets;
|
|
6
|
+
var _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _PlannerTaskSetCommand_initOptions, _PlannerTaskSetCommand_initValidators, _PlannerTaskSetCommand_initOptionSets, _PlannerTaskSetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -27,6 +27,7 @@ class PlannerTaskSetCommand extends GraphCommand {
|
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initValidators).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initOptionSets).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initTypes).call(this);
|
|
30
31
|
}
|
|
31
32
|
async commandAction(logger, args) {
|
|
32
33
|
try {
|
|
@@ -305,6 +306,8 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
305
306
|
return args.options.assignedToUserIds || args.options.assignedToUserNames;
|
|
306
307
|
}
|
|
307
308
|
});
|
|
309
|
+
}, _PlannerTaskSetCommand_initTypes = function _PlannerTaskSetCommand_initTypes() {
|
|
310
|
+
this.types.string.push('id', 'title', 'planId', 'planTitle', 'ownerGroupId', 'ownerGroupName', 'bucketId', 'bucketName', 'description', 'assigneePriority', 'orderHint', 'rosterId', 'startDateTime', 'dueDateTime', 'assignedToUserIds', 'assignedToUserNames', 'assignments', 'appliedCategories');
|
|
308
311
|
};
|
|
309
312
|
export default new PlannerTaskSetCommand();
|
|
310
313
|
//# sourceMappingURL=task-set.js.map
|
|
@@ -4,7 +4,9 @@ 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 _PpAiBuilderModelGetCommand_instances, _PpAiBuilderModelGetCommand_initTelemetry, _PpAiBuilderModelGetCommand_initOptions, _PpAiBuilderModelGetCommand_initOptionSets, _PpAiBuilderModelGetCommand_initValidators;
|
|
7
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
7
8
|
import request from '../../../../request.js';
|
|
9
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
8
10
|
import { powerPlatform } from '../../../../utils/powerPlatform.js';
|
|
9
11
|
import { validation } from '../../../../utils/validation.js';
|
|
10
12
|
import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
|
|
@@ -58,7 +60,8 @@ class PpAiBuilderModelGetCommand extends PowerPlatformCommand {
|
|
|
58
60
|
throw `The specified AI builder model '${options.name}' does not exist.`;
|
|
59
61
|
}
|
|
60
62
|
if (result.value.length > 1) {
|
|
61
|
-
|
|
63
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('msdyn_aimodelid', result.value);
|
|
64
|
+
return await Cli.handleMultipleResultsFound(`Multiple AI builder models with name '${options.name}' found.`, resultAsKeyValuePair);
|
|
62
65
|
}
|
|
63
66
|
return result.value[0];
|
|
64
67
|
}
|
|
@@ -10,6 +10,7 @@ import { powerPlatform } from '../../../../utils/powerPlatform.js';
|
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
13
14
|
class PpCardGetCommand extends PowerPlatformCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.CARD_GET;
|
|
@@ -59,11 +60,8 @@ class PpCardGetCommand extends PowerPlatformCommand {
|
|
|
59
60
|
throw `The specified card '${options.name}' does not exist.`;
|
|
60
61
|
}
|
|
61
62
|
if (result.value.length > 1) {
|
|
62
|
-
const resultAsKeyValuePair =
|
|
63
|
-
|
|
64
|
-
resultAsKeyValuePair[obj.cardid] = obj;
|
|
65
|
-
});
|
|
66
|
-
return Cli.handleMultipleResultsFound(`Multiple cards with name '${options.name}' found. Choose the correct ID:`, `Multiple cards with name '${options.name}' found.`, resultAsKeyValuePair);
|
|
63
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('cardid', result.value);
|
|
64
|
+
return Cli.handleMultipleResultsFound(`Multiple cards with name '${options.name}' found`, resultAsKeyValuePair);
|
|
67
65
|
}
|
|
68
66
|
return result.value[0];
|
|
69
67
|
}
|
|
@@ -10,6 +10,7 @@ import { powerPlatform } from '../../../../utils/powerPlatform.js';
|
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
13
14
|
class PpChatbotGetCommand extends PowerPlatformCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.CHATBOT_GET;
|
|
@@ -56,7 +57,8 @@ class PpChatbotGetCommand extends PowerPlatformCommand {
|
|
|
56
57
|
requestOptions.url = `${dynamicsApiUrl}/api/data/v9.1/bots?$filter=name eq '${formatting.encodeQueryParameter(options.name)}'`;
|
|
57
58
|
const result = await request.get(requestOptions);
|
|
58
59
|
if (result.value.length > 1) {
|
|
59
|
-
|
|
60
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('botid', result.value);
|
|
61
|
+
return await Cli.handleMultipleResultsFound(`Multiple chatbots with name '${options.name}' found.`, resultAsKeyValuePair);
|
|
60
62
|
}
|
|
61
63
|
if (result.value.length === 0) {
|
|
62
64
|
throw `The specified chatbot '${options.name}' does not exist.`;
|
|
@@ -16,7 +16,7 @@ class PpChatbotListCommand extends PowerPlatformCommand {
|
|
|
16
16
|
return 'Lists Microsoft Power Platform chatbots in the specified Power Platform environment';
|
|
17
17
|
}
|
|
18
18
|
defaultProperties() {
|
|
19
|
-
return ['
|
|
19
|
+
return ['name', 'botid', 'publishedOn', 'createdOn', 'botModifiedOn'];
|
|
20
20
|
}
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
@@ -55,7 +55,7 @@ class PpChatbotListCommand extends PowerPlatformCommand {
|
|
|
55
55
|
<attribute name='timezoneruleversionnumber' alias='timezoneRuleVersionNumber' />,
|
|
56
56
|
<attribute name='utcconversiontimezonecode' alias='utcConversionTimezoneCode' />,
|
|
57
57
|
<attribute name='versionnumber' alias='versionNumber' />,
|
|
58
|
-
<attribute name='name' alias='
|
|
58
|
+
<attribute name='name' alias='name' />,
|
|
59
59
|
<attribute name='botid' alias='cdsBotId' />,
|
|
60
60
|
<attribute name='ownerid' alias='ownerId' />,
|
|
61
61
|
<attribute name='synchronizationstatus' alias='synchronizationStatus' />
|
|
@@ -9,6 +9,7 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
12
13
|
class PpManagementAppAddCommand extends PowerPlatformCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.MANAGEMENTAPP_ADD;
|
|
@@ -65,7 +66,9 @@ class PpManagementAppAddCommand extends PowerPlatformCommand {
|
|
|
65
66
|
if (aadApps.value.length === 1 && aadApps.value[0].appId) {
|
|
66
67
|
return aadApps.value[0].appId;
|
|
67
68
|
}
|
|
68
|
-
|
|
69
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('appId', aadApps.value);
|
|
70
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple Azure AD application registration with name '${name}' found.`, resultAsKeyValuePair);
|
|
71
|
+
return result.appId;
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
_PpManagementAppAddCommand_instances = new WeakSet(), _PpManagementAppAddCommand_initTelemetry = function _PpManagementAppAddCommand_initTelemetry() {
|
|
@@ -41,7 +41,9 @@ class SearchExternalConnectionRemoveCommand extends GraphCommand {
|
|
|
41
41
|
if (res.value.length === 0) {
|
|
42
42
|
throw `The specified connection does not exist in Microsoft Search`;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', res.value);
|
|
45
|
+
const result = await Cli.handleMultipleResultsFound(`Multiple external connections with name ${args.options.name} found.`, resultAsKeyValuePair);
|
|
46
|
+
return result.id;
|
|
45
47
|
}
|
|
46
48
|
async commandAction(logger, args) {
|
|
47
49
|
if (args.options.force) {
|
package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.5.js → doctor-1.18.0.js}
RENAMED
|
@@ -16,6 +16,6 @@ export default [
|
|
|
16
16
|
new FN002013_DEVDEP_types_webpack_env('~1.15.2'),
|
|
17
17
|
new FN002015_DEVDEP_types_react('17'),
|
|
18
18
|
new FN002016_DEVDEP_types_react_dom('17'),
|
|
19
|
-
new FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.
|
|
19
|
+
new FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.7'])
|
|
20
20
|
];
|
|
21
|
-
//# sourceMappingURL=doctor-1.18.0
|
|
21
|
+
//# sourceMappingURL=doctor-1.18.0.js.map
|
|
@@ -67,7 +67,7 @@ class SpfxProjectDoctorCommand extends BaseProjectCommand {
|
|
|
67
67
|
'1.17.2',
|
|
68
68
|
'1.17.3',
|
|
69
69
|
'1.17.4',
|
|
70
|
-
'1.18.0
|
|
70
|
+
'1.18.0'
|
|
71
71
|
];
|
|
72
72
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
|
|
73
73
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js
CHANGED
|
@@ -2,7 +2,7 @@ import { spfx } from "../../../../../../utils/spfx.js";
|
|
|
2
2
|
import { DependencyRule } from "./DependencyRule.js";
|
|
3
3
|
export class FN001022_DEP_office_ui_fabric_react extends DependencyRule {
|
|
4
4
|
constructor(packageVersion, add = true) {
|
|
5
|
-
super('office-ui-fabric-react', packageVersion, false, add);
|
|
5
|
+
super('office-ui-fabric-react', packageVersion, false, true, add);
|
|
6
6
|
}
|
|
7
7
|
get id() {
|
|
8
8
|
return 'FN001022';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DependencyRule } from "./DependencyRule.js";
|
|
2
|
+
export class FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7 extends DependencyRule {
|
|
3
|
+
constructor(packageVersion) {
|
|
4
|
+
super('@microsoft/rush-stack-compiler-4.7', packageVersion, true);
|
|
5
|
+
}
|
|
6
|
+
get id() {
|
|
7
|
+
return 'FN002028';
|
|
8
|
+
}
|
|
9
|
+
get supersedes() {
|
|
10
|
+
return ['FN002010', 'FN002011', 'FN002012', 'FN002017', 'FN002018', 'FN002020'];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js.map
|
|
@@ -24,36 +24,44 @@ import { FN002001_DEVDEP_microsoft_sp_build_web } from './rules/FN002001_DEVDEP_
|
|
|
24
24
|
import { FN002002_DEVDEP_microsoft_sp_module_interfaces } from './rules/FN002002_DEVDEP_microsoft_sp_module_interfaces.js';
|
|
25
25
|
import { FN002022_DEVDEP_microsoft_eslint_plugin_spfx } from './rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx.js';
|
|
26
26
|
import { FN002023_DEVDEP_microsoft_eslint_config_spfx } from './rules/FN002023_DEVDEP_microsoft_eslint_config_spfx.js';
|
|
27
|
+
import { FN002026_DEVDEP_typescript } from './rules/FN002026_DEVDEP_typescript.js';
|
|
28
|
+
import { FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7 } from './rules/FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7.js';
|
|
27
29
|
import { FN010001_YORC_version } from './rules/FN010001_YORC_version.js';
|
|
28
30
|
import { FN010010_YORC_sdkVersions_teams_js } from './rules/FN010010_YORC_sdkVersions_teams_js.js';
|
|
31
|
+
import { FN012017_TSC_extends } from './rules/FN012017_TSC_extends.js';
|
|
32
|
+
import { FN021003_PKG_engines_node } from './rules/FN021003_PKG_engines_node.js';
|
|
29
33
|
export default [
|
|
30
|
-
new FN001001_DEP_microsoft_sp_core_library('1.18.0
|
|
31
|
-
new FN001002_DEP_microsoft_sp_lodash_subset('1.18.0
|
|
32
|
-
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.18.0
|
|
33
|
-
new FN001004_DEP_microsoft_sp_webpart_base('1.18.0
|
|
34
|
-
new FN001011_DEP_microsoft_sp_dialog('1.18.0
|
|
35
|
-
new FN001012_DEP_microsoft_sp_application_base('1.18.0
|
|
36
|
-
new FN001014_DEP_microsoft_sp_listview_extensibility('1.18.0
|
|
37
|
-
new FN001021_DEP_microsoft_sp_property_pane('1.18.0
|
|
34
|
+
new FN001001_DEP_microsoft_sp_core_library('1.18.0'),
|
|
35
|
+
new FN001002_DEP_microsoft_sp_lodash_subset('1.18.0'),
|
|
36
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.18.0'),
|
|
37
|
+
new FN001004_DEP_microsoft_sp_webpart_base('1.18.0'),
|
|
38
|
+
new FN001011_DEP_microsoft_sp_dialog('1.18.0'),
|
|
39
|
+
new FN001012_DEP_microsoft_sp_application_base('1.18.0'),
|
|
40
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility('1.18.0'),
|
|
41
|
+
new FN001021_DEP_microsoft_sp_property_pane('1.18.0'),
|
|
38
42
|
new FN001022_DEP_office_ui_fabric_react('', false),
|
|
39
|
-
new FN001023_DEP_microsoft_sp_component_base('1.18.0
|
|
40
|
-
new FN001024_DEP_microsoft_sp_diagnostics('1.18.0
|
|
41
|
-
new FN001025_DEP_microsoft_sp_dynamic_data('1.18.0
|
|
42
|
-
new FN001026_DEP_microsoft_sp_extension_base('1.18.0
|
|
43
|
-
new FN001027_DEP_microsoft_sp_http('1.18.0
|
|
44
|
-
new FN001028_DEP_microsoft_sp_list_subscription('1.18.0
|
|
45
|
-
new FN001029_DEP_microsoft_sp_loader('1.18.0
|
|
46
|
-
new FN001030_DEP_microsoft_sp_module_interfaces('1.18.0
|
|
47
|
-
new FN001031_DEP_microsoft_sp_odata_types('1.18.0
|
|
48
|
-
new FN001032_DEP_microsoft_sp_page_context('1.18.0
|
|
43
|
+
new FN001023_DEP_microsoft_sp_component_base('1.18.0'),
|
|
44
|
+
new FN001024_DEP_microsoft_sp_diagnostics('1.18.0'),
|
|
45
|
+
new FN001025_DEP_microsoft_sp_dynamic_data('1.18.0'),
|
|
46
|
+
new FN001026_DEP_microsoft_sp_extension_base('1.18.0'),
|
|
47
|
+
new FN001027_DEP_microsoft_sp_http('1.18.0'),
|
|
48
|
+
new FN001028_DEP_microsoft_sp_list_subscription('1.18.0'),
|
|
49
|
+
new FN001029_DEP_microsoft_sp_loader('1.18.0'),
|
|
50
|
+
new FN001030_DEP_microsoft_sp_module_interfaces('1.18.0'),
|
|
51
|
+
new FN001031_DEP_microsoft_sp_odata_types('1.18.0'),
|
|
52
|
+
new FN001032_DEP_microsoft_sp_page_context('1.18.0'),
|
|
49
53
|
new FN001035_DEP_fluentui_react('8.106.4'),
|
|
50
|
-
new FN001013_DEP_microsoft_decorators('1.18.0
|
|
51
|
-
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.18.0
|
|
52
|
-
new
|
|
53
|
-
new
|
|
54
|
-
new
|
|
55
|
-
new
|
|
56
|
-
new
|
|
57
|
-
new
|
|
54
|
+
new FN001013_DEP_microsoft_decorators('1.18.0'),
|
|
55
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.18.0'),
|
|
56
|
+
new FN002001_DEVDEP_microsoft_sp_build_web('1.18.0'),
|
|
57
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces('1.18.0'),
|
|
58
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.18.0'),
|
|
59
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx('1.18.0'),
|
|
60
|
+
new FN002026_DEVDEP_typescript('4.7.4'),
|
|
61
|
+
new FN002028_DEVDEP_microsoft_rush_stack_compiler_4_7('0.1.0'),
|
|
62
|
+
new FN010001_YORC_version('1.18.0'),
|
|
63
|
+
new FN010010_YORC_sdkVersions_teams_js('2.12.0'),
|
|
64
|
+
new FN012017_TSC_extends('./node_modules/@microsoft/rush-stack-compiler-4.7/includes/tsconfig-web.json'),
|
|
65
|
+
new FN021003_PKG_engines_node('>=16.13.0 <17.0.0 || >=18.17.1 <19.0.0')
|
|
58
66
|
];
|
|
59
|
-
//# sourceMappingURL=upgrade-1.18.0
|
|
67
|
+
//# sourceMappingURL=upgrade-1.18.0.js.map
|
|
@@ -7,8 +7,6 @@ var _SpfxProjectUpgradeCommand_instances, _a, _SpfxProjectUpgradeCommand_initTel
|
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import os from 'os';
|
|
9
9
|
import path from 'path';
|
|
10
|
-
// uncomment to support upgrading to preview releases
|
|
11
|
-
import { prerelease } from 'semver';
|
|
12
10
|
import { CommandError } from '../../../../Command.js';
|
|
13
11
|
import { fsUtil } from '../../../../utils/fsUtil.js';
|
|
14
12
|
import { packageManager } from '../../../../utils/packageManager.js';
|
|
@@ -71,7 +69,7 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
|
|
|
71
69
|
'1.17.2',
|
|
72
70
|
'1.17.3',
|
|
73
71
|
'1.17.4',
|
|
74
|
-
'1.18.0
|
|
72
|
+
'1.18.0'
|
|
75
73
|
];
|
|
76
74
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
|
|
77
75
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
|
|
@@ -84,15 +82,15 @@ class SpfxProjectUpgradeCommand extends BaseProjectCommand {
|
|
|
84
82
|
}
|
|
85
83
|
this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
|
|
86
84
|
// uncomment to support upgrading to preview releases
|
|
87
|
-
if (!args.options.toVersion &&
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
85
|
+
// if (!args.options.toVersion &&
|
|
86
|
+
// !args.options.preview &&
|
|
87
|
+
// prerelease(this.toVersion)) {
|
|
88
|
+
// // no version and no preview specified while the current version to
|
|
89
|
+
// // upgrade to is a prerelease so let's grab the first non-preview version
|
|
90
|
+
// // since we're supporting only one preview version, it's sufficient for
|
|
91
|
+
// // us to take second to last version
|
|
92
|
+
// this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
93
|
+
// }
|
|
96
94
|
this.packageManager = args.options.packageManager || 'npm';
|
|
97
95
|
this.shell = args.options.shell || 'bash';
|
|
98
96
|
if (this.supportedVersions.indexOf(this.toVersion) < 0) {
|
|
@@ -479,9 +477,9 @@ _a = SpfxProjectUpgradeCommand, _SpfxProjectUpgradeCommand_instances = new WeakS
|
|
|
479
477
|
preview: args.options.preview
|
|
480
478
|
});
|
|
481
479
|
// uncomment to support upgrading to preview releases
|
|
482
|
-
if (prerelease(this.telemetryProperties.toVersion) && !args.options.preview) {
|
|
483
|
-
|
|
484
|
-
}
|
|
480
|
+
// if (prerelease(this.telemetryProperties.toVersion) && !args.options.preview) {
|
|
481
|
+
// this.telemetryProperties.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
|
|
482
|
+
// }
|
|
485
483
|
});
|
|
486
484
|
}, _SpfxProjectUpgradeCommand_initOptions = function _SpfxProjectUpgradeCommand_initOptions() {
|
|
487
485
|
this.options.unshift({
|
|
@@ -524,14 +524,14 @@ class SpfxDoctorCommand extends BaseProjectCommand {
|
|
|
524
524
|
fix: 'npm i -g yo@4'
|
|
525
525
|
}
|
|
526
526
|
},
|
|
527
|
-
'1.18.0
|
|
527
|
+
'1.18.0': {
|
|
528
528
|
gulpCli: {
|
|
529
529
|
range: '^1 || ^2',
|
|
530
530
|
fix: 'npm i -g gulp-cli@2'
|
|
531
531
|
},
|
|
532
532
|
node: {
|
|
533
|
-
range: '>=16.
|
|
534
|
-
fix: 'Install Node.js >=16.
|
|
533
|
+
range: '>=16.13.0 <17.0.0 || >=18.17.1 <19.0.0',
|
|
534
|
+
fix: 'Install Node.js >=16.13.0 <17.0.0 || >=18.17.1 <19.0.0'
|
|
535
535
|
},
|
|
536
536
|
sp: SharePointVersion.SPO,
|
|
537
537
|
yo: {
|
|
@@ -9,6 +9,7 @@ import { spo } from '../../../../utils/spo.js';
|
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
|
+
import { Cli } from '../../../../cli/Cli.js';
|
|
12
13
|
class SpoApplicationCustomizerGetCommand extends SpoCommand {
|
|
13
14
|
get name() {
|
|
14
15
|
return commands.APPLICATIONCUSTOMIZER_GET;
|
|
@@ -69,12 +70,13 @@ class SpoApplicationCustomizerGetCommand extends SpoCommand {
|
|
|
69
70
|
if (customActions.length === 1) {
|
|
70
71
|
return customActions[0];
|
|
71
72
|
}
|
|
72
|
-
const
|
|
73
|
+
const identifier = options.title ? `title '${options.title}'` : `Client Side Component Id '${options.clientSideComponentId}'`;
|
|
73
74
|
if (customActions.length === 0) {
|
|
74
|
-
throw `No application customizer with ${
|
|
75
|
+
throw `No application customizer with ${identifier} found`;
|
|
75
76
|
}
|
|
76
77
|
else {
|
|
77
|
-
|
|
78
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', customActions);
|
|
79
|
+
return await Cli.handleMultipleResultsFound(`Multiple application customizers with ${identifier} found.`, resultAsKeyValuePair);
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
humanizeScope(scope) {
|
|
@@ -11,7 +11,6 @@ import SpoCommand from '../../../base/SpoCommand.js';
|
|
|
11
11
|
import commands from '../../commands.js';
|
|
12
12
|
import { spo } from '../../../../utils/spo.js';
|
|
13
13
|
import { formatting } from '../../../../utils/formatting.js';
|
|
14
|
-
import os from 'os';
|
|
15
14
|
class SpoApplicationCustomizerRemoveCommand extends SpoCommand {
|
|
16
15
|
get name() {
|
|
17
16
|
return commands.APPLICATIONCUSTOMIZER_REMOVE;
|
|
@@ -80,7 +79,8 @@ class SpoApplicationCustomizerRemoveCommand extends SpoCommand {
|
|
|
80
79
|
throw `No application customizer with ${options.title && `title '${options.title}'` || options.clientSideComponentId && `ClientSideComponentId '${options.clientSideComponentId}'` || options.id && `id '${options.id}'`} found`;
|
|
81
80
|
}
|
|
82
81
|
if (appCustomizers.length > 1) {
|
|
83
|
-
|
|
82
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('Id', appCustomizers);
|
|
83
|
+
return await Cli.handleMultipleResultsFound(`Multiple application customizer with ${options.title ? `title '${options.title}'` : `ClientSideComponentId '${options.clientSideComponentId}'`} found.`, resultAsKeyValuePair);
|
|
84
84
|
}
|
|
85
85
|
return appCustomizers[0];
|
|
86
86
|
}
|