@pnp/cli-microsoft365 6.11.0-beta.ee225fb → 6.11.0
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/Auth.js +2 -1
- package/dist/Command.js +1 -1
- package/dist/m365/pa/commands/app/app-permission-ensure.js +177 -0
- package/dist/m365/pa/commands/app/app-permission-remove.js +170 -0
- package/dist/m365/pa/commands.js +2 -0
- 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-externalize/rules/PnPJsRule.js +34 -23
- 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 +35 -51
- 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/file/file-add.js +13 -13
- package/dist/m365/spo/commands/file/file-checkin.js +1 -1
- package/dist/m365/spo/commands/file/file-checkout.js +1 -1
- package/dist/m365/spo/commands/file/file-copy.js +38 -4
- package/dist/m365/spo/commands/file/file-list.js +4 -4
- package/dist/m365/spo/commands/file/file-move.js +2 -2
- package/dist/m365/spo/commands/file/file-remove.js +6 -6
- package/dist/m365/spo/commands/file/file-rename.js +2 -2
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
- package/dist/m365/spo/commands/file/file-version-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +1 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
- package/dist/m365/spo/commands/folder/folder-add.js +2 -4
- package/dist/m365/spo/commands/folder/folder-get.js +1 -1
- package/dist/m365/spo/commands/folder/folder-list.js +2 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +7 -4
- package/dist/m365/spo/commands/folder/folder-rename.js +13 -17
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/group/group-list.js +0 -1
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +32 -3
- package/dist/m365/spo/commands/page/Page.js +24 -32
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +75 -54
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +41 -40
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +32 -32
- package/dist/m365/spo/commands/site/FlowsPolicy.js +10 -0
- 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 +19 -70
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +24 -22
- package/dist/m365/spo/commands/site/site-list.js +28 -36
- package/dist/m365/spo/commands/site/site-remove.js +139 -171
- package/dist/m365/spo/commands/site/site-set.js +179 -178
- package/dist/m365/spo/commands/theme/theme-remove.js +26 -24
- package/dist/m365/spo/commands/theme/theme-set.js +0 -1
- package/dist/m365/spo/commands/user/user-remove.js +29 -27
- package/dist/m365/spo/commands/web/web-reindex.js +17 -20
- package/dist/m365/spo/commands/web/web-remove.js +23 -21
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +45 -52
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +58 -61
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +20 -18
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +21 -19
- package/dist/m365/yammer/commands/message/message-like-set.js +29 -28
- package/dist/m365/yammer/commands/message/message-list.js +9 -26
- package/dist/m365/yammer/commands/message/message-remove.js +20 -18
- package/dist/m365/yammer/commands/yammer-search.js +42 -56
- package/dist/utils/aadGroup.js +20 -0
- package/dist/utils/fsUtil.js +5 -0
- package/dist/utils/spo.js +601 -1
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -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/file/file-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -9
- package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-copy.mdx +20 -16
- package/docs/docs/cmd/spo/file/file-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-list.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-move.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-remove.mdx +8 -8
- package/docs/docs/cmd/spo/file/file-rename.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-add.mdx +76 -1
- package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +5 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +14 -1
- package/docs/docs/cmd/spo/site/site-ensure.mdx +1 -1
- package/npm-shrinkwrap.json +698 -345
- package/package.json +16 -15
|
@@ -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);
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.PnPJsRule = void 0;
|
|
4
13
|
const BasicDependencyRule_1 = require("./BasicDependencyRule");
|
|
@@ -46,31 +55,33 @@ class PnPJsRule extends BasicDependencyRule_1.BasicDependencyRule {
|
|
|
46
55
|
];
|
|
47
56
|
}
|
|
48
57
|
visit(project) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.filter(x => x.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
path: y,
|
|
58
|
-
targetValue: x.shadowRequire
|
|
59
|
-
})));
|
|
60
|
-
const fileEdits = rawFileEdits.length > 0 ? rawFileEdits.reduce((x, y) => [...x, ...y]) : [];
|
|
61
|
-
if (findings.filter(x => x.key && x.key !== '@pnp/pnpjs').length > 0) { // we're adding tslib only if we found other packages that are not the bundle which already contains tslib
|
|
62
|
-
findings.push({
|
|
63
|
-
key: 'tslib',
|
|
64
|
-
globalName: 'tslib',
|
|
65
|
-
path: `https://unpkg.com/tslib@^1.10.0/tslib.js`
|
|
66
|
-
});
|
|
67
|
-
fileEdits.push(...files.map(x => ({
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const findings = this.pnpModules
|
|
60
|
+
.map(x => this.getModuleAndParents(project, x.key))
|
|
61
|
+
.reduce((x, y) => [...x, ...y]);
|
|
62
|
+
const files = this.getEntryFilesList(project);
|
|
63
|
+
const rawFileEdits = this.pnpModules.filter(x => findings.find(y => y.key === x.key) !== undefined)
|
|
64
|
+
.filter(x => x.shadowRequire !== undefined)
|
|
65
|
+
.map(x => files.map(y => ({
|
|
68
66
|
action: "add",
|
|
69
|
-
path:
|
|
70
|
-
targetValue:
|
|
67
|
+
path: y,
|
|
68
|
+
targetValue: x.shadowRequire
|
|
71
69
|
})));
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
const fileEdits = rawFileEdits.length > 0 ? rawFileEdits.reduce((x, y) => [...x, ...y]) : [];
|
|
71
|
+
if (findings.filter(x => x.key && x.key !== '@pnp/pnpjs').length > 0) { // we're adding tslib only if we found other packages that are not the bundle which already contains tslib
|
|
72
|
+
findings.push({
|
|
73
|
+
key: 'tslib',
|
|
74
|
+
globalName: 'tslib',
|
|
75
|
+
path: `https://unpkg.com/tslib@^1.10.0/tslib.js`
|
|
76
|
+
});
|
|
77
|
+
fileEdits.push(...files.map(x => ({
|
|
78
|
+
action: "add",
|
|
79
|
+
path: x,
|
|
80
|
+
targetValue: 'require(\"tslib\");'
|
|
81
|
+
})));
|
|
82
|
+
}
|
|
83
|
+
return { entries: findings, suggestions: fileEdits };
|
|
84
|
+
});
|
|
74
85
|
}
|
|
75
86
|
getEntryFilesList(project) {
|
|
76
87
|
return project && project.manifests ? project.manifests.map(x => x.path.replace('.manifest.json', '.ts')) : [];
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
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
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _SpfxProjectGithubWorkflowAddCommand_instances, _SpfxProjectGithubWorkflowAddCommand_initTelemetry, _SpfxProjectGithubWorkflowAddCommand_initOptions, _SpfxProjectGithubWorkflowAddCommand_initValidators;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const fs = require("fs");
|
|
19
|
+
const path = require("path");
|
|
20
|
+
const yaml = require("yaml");
|
|
21
|
+
const Command_1 = require("../../../../Command");
|
|
22
|
+
const fsUtil_1 = require("../../../../utils/fsUtil");
|
|
23
|
+
const validation_1 = require("../../../../utils/validation");
|
|
24
|
+
const commands_1 = require("../../commands");
|
|
25
|
+
const DeployWorkflow_1 = require("./DeployWorkflow");
|
|
26
|
+
const base_project_command_1 = require("./base-project-command");
|
|
27
|
+
class SpfxProjectGithubWorkflowAddCommand extends base_project_command_1.BaseProjectCommand {
|
|
28
|
+
get name() {
|
|
29
|
+
return commands_1.default.PROJECT_GITHUB_WORKFLOW_ADD;
|
|
30
|
+
}
|
|
31
|
+
get description() {
|
|
32
|
+
return 'Adds a GitHub workflow for a SharePoint Framework project.';
|
|
33
|
+
}
|
|
34
|
+
constructor() {
|
|
35
|
+
super();
|
|
36
|
+
_SpfxProjectGithubWorkflowAddCommand_instances.add(this);
|
|
37
|
+
__classPrivateFieldGet(this, _SpfxProjectGithubWorkflowAddCommand_instances, "m", _SpfxProjectGithubWorkflowAddCommand_initTelemetry).call(this);
|
|
38
|
+
__classPrivateFieldGet(this, _SpfxProjectGithubWorkflowAddCommand_instances, "m", _SpfxProjectGithubWorkflowAddCommand_initOptions).call(this);
|
|
39
|
+
__classPrivateFieldGet(this, _SpfxProjectGithubWorkflowAddCommand_instances, "m", _SpfxProjectGithubWorkflowAddCommand_initValidators).call(this);
|
|
40
|
+
}
|
|
41
|
+
commandAction(logger, args) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
this.projectRootPath = this.getProjectRoot(process.cwd());
|
|
44
|
+
if (this.projectRootPath === null) {
|
|
45
|
+
throw new Command_1.CommandError(`Couldn't find project root folder`, SpfxProjectGithubWorkflowAddCommand.ERROR_NO_PROJECT_ROOT_FOLDER);
|
|
46
|
+
}
|
|
47
|
+
const solutionPackageJsonFile = path.join(this.projectRootPath, 'package.json');
|
|
48
|
+
const packageJson = fs.readFileSync(solutionPackageJsonFile, 'utf-8');
|
|
49
|
+
const solutionName = JSON.parse(packageJson).name;
|
|
50
|
+
if (this.debug) {
|
|
51
|
+
logger.logToStderr(`Adding GitHub workflow in the current SPFx project`);
|
|
52
|
+
}
|
|
53
|
+
try {
|
|
54
|
+
this.updateWorkflow(solutionName, DeployWorkflow_1.workflow, args.options);
|
|
55
|
+
this.saveWorkflow(DeployWorkflow_1.workflow);
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
throw new Command_1.CommandError(error);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
saveWorkflow(workflow) {
|
|
63
|
+
const githubPath = path.join(this.projectRootPath, '.github');
|
|
64
|
+
fsUtil_1.fsUtil.ensureDirectory(githubPath);
|
|
65
|
+
const workflowPath = path.join(githubPath, 'workflows');
|
|
66
|
+
fsUtil_1.fsUtil.ensureDirectory(workflowPath);
|
|
67
|
+
const workflowFile = path.join(workflowPath, 'deploy-spfx-solution.yml');
|
|
68
|
+
fs.writeFileSync(path.resolve(workflowFile), yaml.stringify(workflow), 'utf-8');
|
|
69
|
+
}
|
|
70
|
+
updateWorkflow(solutionName, workflow, options) {
|
|
71
|
+
var _a;
|
|
72
|
+
workflow.name = workflow.name.replace('{{ name }}', (_a = options.name) !== null && _a !== void 0 ? _a : solutionName);
|
|
73
|
+
if (options.branchName) {
|
|
74
|
+
workflow.on.push.branches[0] = options.branchName;
|
|
75
|
+
}
|
|
76
|
+
if (options.manuallyTrigger) {
|
|
77
|
+
// eslint-disable-next-line camelcase
|
|
78
|
+
workflow.on.workflow_dispatch = null;
|
|
79
|
+
}
|
|
80
|
+
if (options.skipFeatureDeployment) {
|
|
81
|
+
this.getDeployAction(workflow).with.SKIP_FEATURE_DEPLOYMENT = true;
|
|
82
|
+
}
|
|
83
|
+
if (options.overwrite) {
|
|
84
|
+
this.getDeployAction(workflow).with.OVERWRITE = true;
|
|
85
|
+
}
|
|
86
|
+
if (options.loginMethod === 'user') {
|
|
87
|
+
const loginAction = this.getLoginAction(workflow);
|
|
88
|
+
loginAction.with = {
|
|
89
|
+
ADMIN_USERNAME: '${{ secrets.ADMIN_USERNAME }}',
|
|
90
|
+
ADMIN_PASSWORD: '${{ secrets.ADMIN_PASSWORD }}'
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
if (options.scope === 'sitecollection') {
|
|
94
|
+
const deployAction = this.getDeployAction(workflow);
|
|
95
|
+
deployAction.with.SCOPE = 'sitecollection';
|
|
96
|
+
deployAction.with.SITE_COLLECTION_URL = options.siteUrl;
|
|
97
|
+
}
|
|
98
|
+
if (solutionName) {
|
|
99
|
+
const deployAction = this.getDeployAction(workflow);
|
|
100
|
+
deployAction.with.APP_FILE_PATH = deployAction.with.APP_FILE_PATH.replace('{{ solutionName }}', solutionName);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
getLoginAction(workflow) {
|
|
104
|
+
const steps = this.getWorkFlowSteps(workflow);
|
|
105
|
+
return steps.find(step => step.uses && step.uses.indexOf('action-cli-login') >= 0);
|
|
106
|
+
}
|
|
107
|
+
getDeployAction(workflow) {
|
|
108
|
+
const steps = this.getWorkFlowSteps(workflow);
|
|
109
|
+
return steps.find(step => step.uses && step.uses.indexOf('action-cli-deploy') >= 0);
|
|
110
|
+
}
|
|
111
|
+
getWorkFlowSteps(workflow) {
|
|
112
|
+
return workflow.jobs['build-and-deploy'].steps;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
_SpfxProjectGithubWorkflowAddCommand_instances = new WeakSet(), _SpfxProjectGithubWorkflowAddCommand_initTelemetry = function _SpfxProjectGithubWorkflowAddCommand_initTelemetry() {
|
|
116
|
+
this.telemetry.push((args) => {
|
|
117
|
+
Object.assign(this.telemetryProperties, {
|
|
118
|
+
name: typeof args.options.name !== 'undefined',
|
|
119
|
+
branchName: typeof args.options.branchName !== 'undefined',
|
|
120
|
+
manuallyTrigger: !!args.options.manuallyTrigger,
|
|
121
|
+
loginMethod: typeof args.options.loginMethod !== 'undefined',
|
|
122
|
+
scope: typeof args.options.scope !== 'undefined',
|
|
123
|
+
skipFeatureDeployment: !!args.options.skipFeatureDeployment,
|
|
124
|
+
overwrite: !!args.options.overwrite
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
}, _SpfxProjectGithubWorkflowAddCommand_initOptions = function _SpfxProjectGithubWorkflowAddCommand_initOptions() {
|
|
128
|
+
this.options.unshift({
|
|
129
|
+
option: '-n, --name [name]'
|
|
130
|
+
}, {
|
|
131
|
+
option: '-b, --branchName [branchName]'
|
|
132
|
+
}, {
|
|
133
|
+
option: '-m, --manuallyTrigger'
|
|
134
|
+
}, {
|
|
135
|
+
option: '-l, --loginMethod [loginMethod]',
|
|
136
|
+
autocomplete: SpfxProjectGithubWorkflowAddCommand.loginMethod
|
|
137
|
+
}, {
|
|
138
|
+
option: '-s, --scope [scope]',
|
|
139
|
+
autocomplete: SpfxProjectGithubWorkflowAddCommand.scope
|
|
140
|
+
}, {
|
|
141
|
+
option: '-u, --siteUrl [siteUrl]'
|
|
142
|
+
}, {
|
|
143
|
+
option: '--skipFeatureDeployment'
|
|
144
|
+
}, {
|
|
145
|
+
option: '--overwrite'
|
|
146
|
+
});
|
|
147
|
+
}, _SpfxProjectGithubWorkflowAddCommand_initValidators = function _SpfxProjectGithubWorkflowAddCommand_initValidators() {
|
|
148
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
if (args.options.scope && args.options.scope === 'sitecollection') {
|
|
150
|
+
if (!args.options.siteUrl) {
|
|
151
|
+
return `siteUrl option has to be defined when scope set to ${args.options.scope}`;
|
|
152
|
+
}
|
|
153
|
+
const isValidSharePointUrl = validation_1.validation.isValidSharePointUrl(args.options.siteUrl);
|
|
154
|
+
if (isValidSharePointUrl !== true) {
|
|
155
|
+
return isValidSharePointUrl;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if (args.options.loginMethod && SpfxProjectGithubWorkflowAddCommand.loginMethod.indexOf(args.options.loginMethod) < 0) {
|
|
159
|
+
return `${args.options.loginMethod} is not a valid login method. Allowed values are ${SpfxProjectGithubWorkflowAddCommand.loginMethod.join(', ')}`;
|
|
160
|
+
}
|
|
161
|
+
if (args.options.scope && SpfxProjectGithubWorkflowAddCommand.scope.indexOf(args.options.scope) < 0) {
|
|
162
|
+
return `${args.options.scope} is not a valid scope. Allowed values are ${SpfxProjectGithubWorkflowAddCommand.scope.join(', ')}`;
|
|
163
|
+
}
|
|
164
|
+
return true;
|
|
165
|
+
}));
|
|
166
|
+
};
|
|
167
|
+
SpfxProjectGithubWorkflowAddCommand.loginMethod = ['application', 'user'];
|
|
168
|
+
SpfxProjectGithubWorkflowAddCommand.scope = ['tenant', 'sitecollection'];
|
|
169
|
+
SpfxProjectGithubWorkflowAddCommand.ERROR_NO_PROJECT_ROOT_FOLDER = 1;
|
|
170
|
+
module.exports = new SpfxProjectGithubWorkflowAddCommand();
|
|
171
|
+
//# sourceMappingURL=project-github-workflow-add.js.map
|
|
@@ -105,7 +105,7 @@ module.exports = [
|
|
|
105
105
|
'fixWith': 'symbol'
|
|
106
106
|
},
|
|
107
107
|
'Function': {
|
|
108
|
-
'message': 'The \\'Function\\' type accepts any function-like value
|
|
108
|
+
'message': 'The \\'Function\\' type accepts any function-like value.\\nIt provides no type safety when calling the function, which can be a common source of bugs.\\nIt also accepts things like class declarations, which will throw at runtime as they will not be called with \\'new\\'.\\nIf you are expecting the function to accept certain arguments, you should explicitly define the function shape.'
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -29,33 +29,33 @@ const FN002023_DEVDEP_microsoft_eslint_config_spfx_1 = require("./rules/FN002023
|
|
|
29
29
|
const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
|
|
30
30
|
const FN010010_YORC_sdkVersions_teams_js_1 = require("./rules/FN010010_YORC_sdkVersions_teams_js");
|
|
31
31
|
module.exports = [
|
|
32
|
-
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.18.0-beta.
|
|
33
|
-
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.18.0-beta.
|
|
34
|
-
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.18.0-beta.
|
|
35
|
-
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.18.0-beta.
|
|
36
|
-
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.18.0-beta.
|
|
37
|
-
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.18.0-beta.
|
|
38
|
-
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.18.0-beta.
|
|
39
|
-
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.18.0-beta.
|
|
32
|
+
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.18.0-beta.5'),
|
|
33
|
+
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.18.0-beta.5'),
|
|
34
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.18.0-beta.5'),
|
|
35
|
+
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.18.0-beta.5'),
|
|
36
|
+
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.18.0-beta.5'),
|
|
37
|
+
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.18.0-beta.5'),
|
|
38
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.18.0-beta.5'),
|
|
39
|
+
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.18.0-beta.5'),
|
|
40
40
|
new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('', false),
|
|
41
|
-
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.18.0-beta.
|
|
42
|
-
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.18.0-beta.
|
|
43
|
-
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.18.0-beta.
|
|
44
|
-
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.18.0-beta.
|
|
45
|
-
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.18.0-beta.
|
|
46
|
-
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.18.0-beta.
|
|
47
|
-
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.18.0-beta.
|
|
48
|
-
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.18.0-beta.
|
|
49
|
-
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.18.0-beta.
|
|
50
|
-
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.18.0-beta.
|
|
41
|
+
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.18.0-beta.5'),
|
|
42
|
+
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.18.0-beta.5'),
|
|
43
|
+
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.18.0-beta.5'),
|
|
44
|
+
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.18.0-beta.5'),
|
|
45
|
+
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.18.0-beta.5'),
|
|
46
|
+
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.18.0-beta.5'),
|
|
47
|
+
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.18.0-beta.5'),
|
|
48
|
+
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.18.0-beta.5'),
|
|
49
|
+
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.18.0-beta.5'),
|
|
50
|
+
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.18.0-beta.5'),
|
|
51
51
|
new FN001035_DEP_fluentui_react_1.FN001035_DEP_fluentui_react('8.106.4'),
|
|
52
|
-
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.18.0-beta.
|
|
53
|
-
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.18.0-beta.
|
|
54
|
-
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.18.0-beta.
|
|
55
|
-
new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.18.0-beta.
|
|
56
|
-
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.18.0-beta.
|
|
57
|
-
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.18.0-beta.
|
|
58
|
-
new FN010001_YORC_version_1.FN010001_YORC_version('1.18.0-beta.
|
|
52
|
+
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.18.0-beta.5'),
|
|
53
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.18.0-beta.5'),
|
|
54
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.18.0-beta.5'),
|
|
55
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.18.0-beta.5'),
|
|
56
|
+
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.18.0-beta.5'),
|
|
57
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.18.0-beta.5'),
|
|
58
|
+
new FN010001_YORC_version_1.FN010001_YORC_version('1.18.0-beta.5'),
|
|
59
59
|
new FN010010_YORC_sdkVersions_teams_js_1.FN010010_YORC_sdkVersions_teams_js('2.12.0')
|
|
60
60
|
];
|
|
61
|
-
//# sourceMappingURL=upgrade-1.18.0-beta.
|
|
61
|
+
//# sourceMappingURL=upgrade-1.18.0-beta.5.js.map
|
|
@@ -82,7 +82,7 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
|
|
|
82
82
|
'1.17.2',
|
|
83
83
|
'1.17.3',
|
|
84
84
|
'1.17.4',
|
|
85
|
-
'1.18.0-beta.
|
|
85
|
+
'1.18.0-beta.5'
|
|
86
86
|
];
|
|
87
87
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
|
|
88
88
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
|