@pnp/cli-microsoft365 6.11.0-beta.6b1d864 → 6.11.0-beta.79a1133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/m365/planner/commands/task/task-add.js +17 -11
- package/dist/m365/planner/commands/task/task-get.js +35 -25
- package/dist/m365/planner/commands/task/task-list.js +26 -19
- package/dist/m365/planner/commands/task/task-remove.js +40 -35
- package/dist/m365/planner/commands/task/task-set.js +35 -23
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +58 -0
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.1.js → doctor-1.18.0-beta.5.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +171 -0
- package/dist/m365/spfx/commands/project/project-github-workflow-model.js +3 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.1.js → upgrade-1.18.0-beta.5.js} +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +3 -3
- package/dist/m365/spfx/commands.js +1 -0
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +26 -14
- package/dist/m365/spo/commands/app/app-add.js +9 -9
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +32 -3
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +32 -32
- package/dist/m365/spo/commands/site/site-add.js +113 -154
- package/dist/m365/spo/commands/site/site-apppermission-add.js +26 -27
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +37 -37
- package/dist/m365/spo/commands/site/site-apppermission-set.js +15 -16
- package/dist/m365/spo/commands/site/site-ensure.js +18 -69
- package/dist/m365/spo/commands/site/site-remove.js +139 -171
- package/dist/m365/spo/commands/site/site-set.js +134 -146
- package/dist/utils/aadGroup.js +20 -0
- package/dist/utils/fsUtil.js +5 -0
- package/dist/utils/spo.js +600 -0
- package/docs/docs/cmd/planner/task/task-add.mdx +22 -7
- package/docs/docs/cmd/planner/task/task-get.mdx +13 -4
- package/docs/docs/cmd/planner/task/task-list.mdx +22 -7
- package/docs/docs/cmd/planner/task/task-remove.mdx +25 -8
- package/docs/docs/cmd/planner/task/task-set.mdx +22 -7
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +94 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +14 -1
- package/npm-shrinkwrap.json +15 -1
- package/package.json +3 -2
|
@@ -163,9 +163,15 @@ class PlannerTaskAddCommand extends GraphCommand_1.default {
|
|
|
163
163
|
if (args.options.planId) {
|
|
164
164
|
return args.options.planId;
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
if (args.options.rosterId) {
|
|
167
|
+
const plan = yield planner_1.planner.getPlanByRosterId(args.options.rosterId);
|
|
168
|
+
return plan.id;
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
const groupId = yield this.getGroupId(args);
|
|
172
|
+
const plan = yield planner_1.planner.getPlanByTitle(args.options.planTitle, groupId);
|
|
173
|
+
return plan.id;
|
|
174
|
+
}
|
|
169
175
|
});
|
|
170
176
|
}
|
|
171
177
|
getGroupId(args) {
|
|
@@ -214,6 +220,7 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
214
220
|
Object.assign(this.telemetryProperties, {
|
|
215
221
|
planId: typeof args.options.planId !== 'undefined',
|
|
216
222
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
223
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
217
224
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
218
225
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
219
226
|
bucketId: typeof args.options.bucketId !== 'undefined',
|
|
@@ -232,7 +239,7 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
232
239
|
});
|
|
233
240
|
});
|
|
234
241
|
}, _PlannerTaskAddCommand_initOptions = function _PlannerTaskAddCommand_initOptions() {
|
|
235
|
-
this.options.unshift({ option: '-t, --title <title>' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, {
|
|
242
|
+
this.options.unshift({ option: '-t, --title <title>' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, {
|
|
236
243
|
option: '--appliedCategories [appliedCategories]',
|
|
237
244
|
autocomplete: this.allowedAppliedCategories
|
|
238
245
|
}, {
|
|
@@ -241,12 +248,6 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
241
248
|
}, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority_1.taskPriority.priorityValues });
|
|
242
249
|
}, _PlannerTaskAddCommand_initValidators = function _PlannerTaskAddCommand_initValidators() {
|
|
243
250
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
244
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
245
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
246
|
-
}
|
|
247
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
248
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
249
|
-
}
|
|
250
251
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
251
252
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
252
253
|
}
|
|
@@ -287,7 +288,12 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
287
288
|
return true;
|
|
288
289
|
}));
|
|
289
290
|
}, _PlannerTaskAddCommand_initOptionSets = function _PlannerTaskAddCommand_initOptionSets() {
|
|
290
|
-
this.optionSets.push({ options: ['planId', 'planTitle'] }, { options: ['bucketId', 'bucketName'] }
|
|
291
|
+
this.optionSets.push({ options: ['planId', 'planTitle', 'rosterId'] }, { options: ['bucketId', 'bucketName'] }, {
|
|
292
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
293
|
+
runsWhen: (args) => {
|
|
294
|
+
return args.options.planTitle !== undefined;
|
|
295
|
+
}
|
|
296
|
+
});
|
|
291
297
|
};
|
|
292
298
|
module.exports = new PlannerTaskAddCommand();
|
|
293
299
|
//# sourceMappingURL=task-add.js.map
|
|
@@ -131,9 +131,15 @@ class PlannerTaskGetCommand extends GraphCommand_1.default {
|
|
|
131
131
|
if (options.planId) {
|
|
132
132
|
return options.planId;
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
if (options.rosterId) {
|
|
135
|
+
const plan = yield planner_1.planner.getPlanByRosterId(options.rosterId);
|
|
136
|
+
return plan.id;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
const groupId = yield this.getGroupId(options);
|
|
140
|
+
const plan = yield planner_1.planner.getPlanByTitle(options.planTitle, groupId);
|
|
141
|
+
return plan.id;
|
|
142
|
+
}
|
|
137
143
|
});
|
|
138
144
|
}
|
|
139
145
|
getGroupId(options) {
|
|
@@ -154,46 +160,50 @@ _PlannerTaskGetCommand_instances = new WeakSet(), _PlannerTaskGetCommand_initTel
|
|
|
154
160
|
bucketId: typeof args.options.bucketId !== 'undefined',
|
|
155
161
|
bucketName: typeof args.options.bucketName !== 'undefined',
|
|
156
162
|
planId: typeof args.options.planId !== 'undefined',
|
|
163
|
+
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
164
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
157
165
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
158
166
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
159
167
|
});
|
|
160
168
|
});
|
|
161
169
|
}, _PlannerTaskGetCommand_initOptions = function _PlannerTaskGetCommand_initOptions() {
|
|
162
|
-
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' });
|
|
170
|
+
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' });
|
|
163
171
|
}, _PlannerTaskGetCommand_initValidators = function _PlannerTaskGetCommand_initValidators() {
|
|
164
172
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
165
173
|
if (args.options.id) {
|
|
166
174
|
if (args.options.bucketId || args.options.bucketName ||
|
|
167
|
-
args.options.planId || args.options.
|
|
175
|
+
args.options.planId || args.options.planTitle || args.options.rosterId ||
|
|
168
176
|
args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
169
|
-
return 'Don\'t specify bucketId, bucketName, planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
177
|
+
return 'Don\'t specify bucketId, bucketName, planId, planTitle, rosterId, ownerGroupId or ownerGroupName when using id';
|
|
170
178
|
}
|
|
171
179
|
}
|
|
172
|
-
if (args.options.title && !args.options.bucketId && !args.options.bucketName) {
|
|
173
|
-
return 'Specify either bucketId or bucketName when using title';
|
|
174
|
-
}
|
|
175
|
-
if (args.options.title && args.options.bucketId && args.options.bucketName) {
|
|
176
|
-
return 'Specify either bucketId or bucketName when using title but not both';
|
|
177
|
-
}
|
|
178
|
-
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
179
|
-
return 'Specify either planId or planTitle when using bucketName';
|
|
180
|
-
}
|
|
181
|
-
if (args.options.bucketName && args.options.planId && args.options.planTitle) {
|
|
182
|
-
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
183
|
-
}
|
|
184
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
185
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
186
|
-
}
|
|
187
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
188
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
189
|
-
}
|
|
190
180
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
191
181
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
192
182
|
}
|
|
193
183
|
return true;
|
|
194
184
|
}));
|
|
195
185
|
}, _PlannerTaskGetCommand_initOptionSets = function _PlannerTaskGetCommand_initOptionSets() {
|
|
196
|
-
this.optionSets.push({ options: ['id', 'title'] }
|
|
186
|
+
this.optionSets.push({ options: ['id', 'title'] }, {
|
|
187
|
+
options: ['planId', 'planTitle', 'rosterId'],
|
|
188
|
+
runsWhen: (args) => {
|
|
189
|
+
return args.options.id === undefined;
|
|
190
|
+
}
|
|
191
|
+
}, {
|
|
192
|
+
options: ['bucketId', 'bucketName'],
|
|
193
|
+
runsWhen: (args) => {
|
|
194
|
+
return args.options.title !== undefined;
|
|
195
|
+
}
|
|
196
|
+
}, {
|
|
197
|
+
options: ['planId', 'planTitle'],
|
|
198
|
+
runsWhen: (args) => {
|
|
199
|
+
return args.options.bucketName !== undefined && args.options.rosterId === undefined;
|
|
200
|
+
}
|
|
201
|
+
}, {
|
|
202
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
203
|
+
runsWhen: (args) => {
|
|
204
|
+
return args.options.planTitle !== undefined;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
197
207
|
};
|
|
198
208
|
module.exports = new PlannerTaskGetCommand();
|
|
199
209
|
//# sourceMappingURL=task-get.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _PlannerTaskListCommand_instances, _PlannerTaskListCommand_initTelemetry, _PlannerTaskListCommand_initOptions, _PlannerTaskListCommand_initValidators;
|
|
16
|
+
var _PlannerTaskListCommand_instances, _PlannerTaskListCommand_initTelemetry, _PlannerTaskListCommand_initOptions, _PlannerTaskListCommand_initValidators, _PlannerTaskListCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const odata_1 = require("../../../../utils/odata");
|
|
@@ -39,6 +39,7 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
|
|
|
39
39
|
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initTelemetry).call(this);
|
|
40
40
|
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initOptions).call(this);
|
|
41
41
|
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initValidators).call(this);
|
|
42
|
+
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initOptionSets).call(this);
|
|
42
43
|
}
|
|
43
44
|
commandAction(logger, args) {
|
|
44
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -107,9 +108,15 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
|
|
|
107
108
|
if (args.options.planId) {
|
|
108
109
|
return formatting_1.formatting.encodeQueryParameter(args.options.planId);
|
|
109
110
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
if (args.options.rosterId) {
|
|
112
|
+
const plan = yield planner_1.planner.getPlanByRosterId(args.options.rosterId);
|
|
113
|
+
return plan.id;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
const groupId = yield this.getGroupId(args);
|
|
117
|
+
const plan = yield planner_1.planner.getPlanByTitle(args.options.planTitle, groupId);
|
|
118
|
+
return plan.id;
|
|
119
|
+
}
|
|
113
120
|
});
|
|
114
121
|
}
|
|
115
122
|
getGroupId(args) {
|
|
@@ -140,6 +147,7 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
140
147
|
bucketName: typeof args.options.bucketName !== 'undefined',
|
|
141
148
|
planId: typeof args.options.planId !== 'undefined',
|
|
142
149
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
150
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
143
151
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
144
152
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
145
153
|
});
|
|
@@ -153,6 +161,8 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
153
161
|
option: '--planId [planId]'
|
|
154
162
|
}, {
|
|
155
163
|
option: '--planTitle [planTitle]'
|
|
164
|
+
}, {
|
|
165
|
+
option: '--rosterId [rosterId]'
|
|
156
166
|
}, {
|
|
157
167
|
option: '--ownerGroupId [ownerGroupId]'
|
|
158
168
|
}, {
|
|
@@ -160,26 +170,23 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
160
170
|
});
|
|
161
171
|
}, _PlannerTaskListCommand_initValidators = function _PlannerTaskListCommand_initValidators() {
|
|
162
172
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
163
|
-
if (args.options.bucketId && args.options.bucketName) {
|
|
164
|
-
return 'To retrieve tasks from a bucket, specify bucketId or bucketName, but not both';
|
|
165
|
-
}
|
|
166
|
-
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
167
|
-
return 'Specify either planId or planTitle when using bucketName';
|
|
168
|
-
}
|
|
169
|
-
if (args.options.planId && args.options.planTitle) {
|
|
170
|
-
return 'Specify either planId or planTitle but not both';
|
|
171
|
-
}
|
|
172
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
173
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
174
|
-
}
|
|
175
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
176
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
177
|
-
}
|
|
178
173
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
179
174
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
180
175
|
}
|
|
181
176
|
return true;
|
|
182
177
|
}));
|
|
178
|
+
}, _PlannerTaskListCommand_initOptionSets = function _PlannerTaskListCommand_initOptionSets() {
|
|
179
|
+
this.optionSets.push({ options: ['bucketId', 'bucketName'] }, {
|
|
180
|
+
options: ['planId', 'planTitle'],
|
|
181
|
+
runsWhen: (args) => {
|
|
182
|
+
return args.options.bucketName !== undefined && args.options.rosterId === undefined;
|
|
183
|
+
}
|
|
184
|
+
}, {
|
|
185
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
186
|
+
runsWhen: (args) => {
|
|
187
|
+
return args.options.planTitle !== undefined;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
183
190
|
};
|
|
184
191
|
module.exports = new PlannerTaskListCommand();
|
|
185
192
|
//# sourceMappingURL=task-list.js.map
|
|
@@ -18,9 +18,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const os = require("os");
|
|
19
19
|
const Cli_1 = require("../../../../cli/Cli");
|
|
20
20
|
const request_1 = require("../../../../request");
|
|
21
|
+
const validation_1 = require("../../../../utils/validation");
|
|
21
22
|
const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
22
23
|
const odata_1 = require("../../../../utils/odata");
|
|
23
|
-
const validation_1 = require("../../../../utils/validation");
|
|
24
24
|
const planner_1 = require("../../../../utils/planner");
|
|
25
25
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
26
26
|
const commands_1 = require("../../commands");
|
|
@@ -127,13 +127,19 @@ class PlannerTaskRemoveCommand extends GraphCommand_1.default {
|
|
|
127
127
|
}
|
|
128
128
|
getPlanId(options) {
|
|
129
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
-
const { planId, planTitle } = options;
|
|
130
|
+
const { planId, planTitle, rosterId } = options;
|
|
131
131
|
if (planId) {
|
|
132
132
|
return planId;
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
if (options.rosterId) {
|
|
135
|
+
const plan = yield planner_1.planner.getPlanByRosterId(rosterId);
|
|
136
|
+
return plan.id;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
const groupId = yield this.getGroupId(options);
|
|
140
|
+
const plan = yield planner_1.planner.getPlanByTitle(planTitle, groupId);
|
|
141
|
+
return plan.id;
|
|
142
|
+
}
|
|
137
143
|
});
|
|
138
144
|
}
|
|
139
145
|
getGroupId(options) {
|
|
@@ -156,51 +162,50 @@ _PlannerTaskRemoveCommand_instances = new WeakSet(), _PlannerTaskRemoveCommand_i
|
|
|
156
162
|
bucketName: typeof args.options.bucketName !== 'undefined',
|
|
157
163
|
planId: typeof args.options.planId !== 'undefined',
|
|
158
164
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
165
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
159
166
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
160
167
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
161
168
|
confirm: !!args.options.confirm
|
|
162
169
|
});
|
|
163
170
|
});
|
|
164
171
|
}, _PlannerTaskRemoveCommand_initOptions = function _PlannerTaskRemoveCommand_initOptions() {
|
|
165
|
-
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--confirm' });
|
|
172
|
+
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--confirm' });
|
|
166
173
|
}, _PlannerTaskRemoveCommand_initValidators = function _PlannerTaskRemoveCommand_initValidators() {
|
|
167
174
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
168
175
|
if (args.options.id) {
|
|
169
|
-
if (args.options.bucketId || args.options.bucketName ||
|
|
170
|
-
|
|
176
|
+
if (args.options.bucketId || args.options.bucketName ||
|
|
177
|
+
args.options.planId || args.options.planTitle || args.options.rosterId ||
|
|
178
|
+
args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
179
|
+
return 'Don\'t specify bucketId,bucketName, planId, planTitle, rosterId, ownerGroupId, or ownerGroupName when using id';
|
|
171
180
|
}
|
|
172
181
|
}
|
|
173
|
-
if (args.options.
|
|
174
|
-
|
|
175
|
-
return 'Specify either bucketId or bucketName when using title';
|
|
176
|
-
}
|
|
177
|
-
if (args.options.bucketId && args.options.bucketName) {
|
|
178
|
-
return 'Specify either bucketId or bucketName when using title but not both';
|
|
179
|
-
}
|
|
180
|
-
if (args.options.bucketName) {
|
|
181
|
-
if (!args.options.planId && !args.options.planTitle) {
|
|
182
|
-
return 'Specify either planId or planTitle when using bucketName';
|
|
183
|
-
}
|
|
184
|
-
if (args.options.planId && args.options.planTitle) {
|
|
185
|
-
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
if (args.options.planTitle) {
|
|
189
|
-
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
190
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
191
|
-
}
|
|
192
|
-
if (args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
193
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
197
|
-
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
198
|
-
}
|
|
182
|
+
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
183
|
+
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
199
184
|
}
|
|
200
185
|
return true;
|
|
201
186
|
}));
|
|
202
187
|
}, _PlannerTaskRemoveCommand_initOptionSets = function _PlannerTaskRemoveCommand_initOptionSets() {
|
|
203
|
-
this.optionSets.push({ options: ['id', 'title'] }
|
|
188
|
+
this.optionSets.push({ options: ['id', 'title'] }, {
|
|
189
|
+
options: ['planId', 'planTitle', 'rosterId'],
|
|
190
|
+
runsWhen: (args) => {
|
|
191
|
+
return args.options.id === undefined;
|
|
192
|
+
}
|
|
193
|
+
}, {
|
|
194
|
+
options: ['bucketId', 'bucketName'],
|
|
195
|
+
runsWhen: (args) => {
|
|
196
|
+
return args.options.title !== undefined;
|
|
197
|
+
}
|
|
198
|
+
}, {
|
|
199
|
+
options: ['planId', 'planTitle'],
|
|
200
|
+
runsWhen: (args) => {
|
|
201
|
+
return args.options.bucketName !== undefined && args.options.rosterId === undefined;
|
|
202
|
+
}
|
|
203
|
+
}, {
|
|
204
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
205
|
+
runsWhen: (args) => {
|
|
206
|
+
return args.options.planTitle !== undefined;
|
|
207
|
+
}
|
|
208
|
+
});
|
|
204
209
|
};
|
|
205
210
|
module.exports = new PlannerTaskRemoveCommand();
|
|
206
211
|
//# sourceMappingURL=task-remove.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _PlannerTaskSetCommand_initOptions, _PlannerTaskSetCommand_initValidators;
|
|
16
|
+
var _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _PlannerTaskSetCommand_initOptions, _PlannerTaskSetCommand_initValidators, _PlannerTaskSetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const formatting_1 = require("../../../../utils/formatting");
|
|
@@ -37,6 +37,7 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
|
37
37
|
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initTelemetry).call(this);
|
|
38
38
|
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initOptions).call(this);
|
|
39
39
|
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initValidators).call(this);
|
|
40
|
+
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initOptionSets).call(this);
|
|
40
41
|
}
|
|
41
42
|
commandAction(logger, args) {
|
|
42
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -196,9 +197,15 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
|
|
|
196
197
|
if (options.planId) {
|
|
197
198
|
return options.planId;
|
|
198
199
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
if (options.rosterId) {
|
|
201
|
+
const plan = yield planner_1.planner.getPlanByRosterId(options.rosterId);
|
|
202
|
+
return plan.id;
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
const groupId = yield this.getGroupId(options);
|
|
206
|
+
const plan = yield planner_1.planner.getPlanByTitle(options.planTitle, groupId);
|
|
207
|
+
return plan.id;
|
|
208
|
+
}
|
|
202
209
|
});
|
|
203
210
|
}
|
|
204
211
|
getGroupId(options) {
|
|
@@ -251,6 +258,7 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
251
258
|
title: typeof args.options.title !== 'undefined',
|
|
252
259
|
planId: typeof args.options.planId !== 'undefined',
|
|
253
260
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
261
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
254
262
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
255
263
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
256
264
|
bucketId: typeof args.options.bucketId !== 'undefined',
|
|
@@ -268,24 +276,9 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
268
276
|
});
|
|
269
277
|
});
|
|
270
278
|
}, _PlannerTaskSetCommand_initOptions = function _PlannerTaskSetCommand_initOptions() {
|
|
271
|
-
this.options.unshift({ option: '-i, --id <id>' }, { option: '-t, --title [title]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, { option: '--appliedCategories [appliedCategories]' }, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority_1.taskPriority.priorityValues });
|
|
279
|
+
this.options.unshift({ option: '-i, --id <id>' }, { option: '-t, --title [title]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, { option: '--appliedCategories [appliedCategories]' }, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority_1.taskPriority.priorityValues });
|
|
272
280
|
}, _PlannerTaskSetCommand_initValidators = function _PlannerTaskSetCommand_initValidators() {
|
|
273
281
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
274
|
-
if (args.options.bucketId && args.options.bucketName) {
|
|
275
|
-
return 'Specify either bucketId or bucketName but not both';
|
|
276
|
-
}
|
|
277
|
-
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
278
|
-
return 'Specify either planId or planTitle when using bucketName';
|
|
279
|
-
}
|
|
280
|
-
if (args.options.bucketName && args.options.planId && args.options.planTitle) {
|
|
281
|
-
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
282
|
-
}
|
|
283
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
284
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
285
|
-
}
|
|
286
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
287
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
288
|
-
}
|
|
289
282
|
if (args.options.ownerGroupId && !validation_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
290
283
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
291
284
|
}
|
|
@@ -304,9 +297,6 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
304
297
|
if (args.options.assignedToUserIds && !validation_1.validation.isValidGuidArray(args.options.assignedToUserIds.split(','))) {
|
|
305
298
|
return 'assignedToUserIds contains invalid GUID';
|
|
306
299
|
}
|
|
307
|
-
if (args.options.assignedToUserIds && args.options.assignedToUserNames) {
|
|
308
|
-
return 'Specify either assignedToUserIds or assignedToUserNames but not both';
|
|
309
|
-
}
|
|
310
300
|
if (args.options.appliedCategories && args.options.appliedCategories.split(',').filter(category => this.allowedAppliedCategories.indexOf(category.toLocaleLowerCase()) < 0).length !== 0) {
|
|
311
301
|
return 'The appliedCategories contains invalid value. Specify either category1, category2, category3, category4, category5 and/or category6 as properties';
|
|
312
302
|
}
|
|
@@ -322,6 +312,28 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
322
312
|
}
|
|
323
313
|
return true;
|
|
324
314
|
}));
|
|
315
|
+
}, _PlannerTaskSetCommand_initOptionSets = function _PlannerTaskSetCommand_initOptionSets() {
|
|
316
|
+
this.optionSets.push({
|
|
317
|
+
options: ['bucketId', 'bucketName'],
|
|
318
|
+
runsWhen: (args) => {
|
|
319
|
+
return args.options.bucketId || args.options.bucketName;
|
|
320
|
+
}
|
|
321
|
+
}, {
|
|
322
|
+
options: ['planId', 'planTitle', 'rosterId'],
|
|
323
|
+
runsWhen: (args) => {
|
|
324
|
+
return args.options.bucketName !== undefined;
|
|
325
|
+
}
|
|
326
|
+
}, {
|
|
327
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
328
|
+
runsWhen: (args) => {
|
|
329
|
+
return args.options.planTitle !== undefined;
|
|
330
|
+
}
|
|
331
|
+
}, {
|
|
332
|
+
options: ['assignedToUserIds', 'assignedToUserNames'],
|
|
333
|
+
runsWhen: (args) => {
|
|
334
|
+
return args.options.assignedToUserIds || args.options.assignedToUserNames;
|
|
335
|
+
}
|
|
336
|
+
});
|
|
325
337
|
};
|
|
326
338
|
module.exports = new PlannerTaskSetCommand();
|
|
327
339
|
//# sourceMappingURL=task-set.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.workflow = void 0;
|
|
4
|
+
exports.workflow = {
|
|
5
|
+
name: "Deploy Solution {{ name }}",
|
|
6
|
+
on: {
|
|
7
|
+
push: {
|
|
8
|
+
branches: [
|
|
9
|
+
"main"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
jobs: {
|
|
14
|
+
"build-and-deploy": {
|
|
15
|
+
"runs-on": "ubuntu-latest",
|
|
16
|
+
steps: [
|
|
17
|
+
{
|
|
18
|
+
name: "Checkout",
|
|
19
|
+
uses: "actions/checkout@v3.5.3"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "Use Node.js 16.x",
|
|
23
|
+
uses: "actions/setup-node@v3.7.0",
|
|
24
|
+
with: {
|
|
25
|
+
"node-version": "16.x"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "Run npm ci",
|
|
30
|
+
run: "npm ci"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "Bundle & Package",
|
|
34
|
+
run: "gulp bundle --ship\ngulp package-solution --ship\n"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "CLI for Microsoft 365 Login",
|
|
38
|
+
uses: "pnp/action-cli-login@v2.2.2",
|
|
39
|
+
with: {
|
|
40
|
+
"CERTIFICATE_ENCODED": "${{ secrets.CERTIFICATE_ENCODED }}",
|
|
41
|
+
"CERTIFICATE_PASSWORD": "${{ secrets.CERTIFICATE_PASSWORD }}",
|
|
42
|
+
"APP_ID": "${{ secrets.APP_ID }}"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "CLI for Microsoft 365 Deploy App",
|
|
47
|
+
uses: "pnp/action-cli-deploy@v3.0.1",
|
|
48
|
+
with: {
|
|
49
|
+
"APP_FILE_PATH": "sharepoint/solution/{{ solutionName }}.sppkg",
|
|
50
|
+
"SKIP_FEATURE_DEPLOYMENT": false,
|
|
51
|
+
"OVERWRITE": false
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=DeployWorkflow.js.map
|
|
@@ -20,4 +20,4 @@ module.exports = [
|
|
|
20
20
|
new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('17'),
|
|
21
21
|
new FN002019_DEVDEP_microsoft_rush_stack_compiler_1.FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
|
|
22
22
|
];
|
|
23
|
-
//# sourceMappingURL=doctor-1.18.0-beta.
|
|
23
|
+
//# sourceMappingURL=doctor-1.18.0-beta.5.js.map
|
|
@@ -78,7 +78,7 @@ class SpfxProjectDoctorCommand extends base_project_command_1.BaseProjectCommand
|
|
|
78
78
|
'1.17.2',
|
|
79
79
|
'1.17.3',
|
|
80
80
|
'1.17.4',
|
|
81
|
-
'1.18.0-beta.
|
|
81
|
+
'1.18.0-beta.5'
|
|
82
82
|
];
|
|
83
83
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
|
|
84
84
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
|