@pnp/cli-microsoft365 6.5.0-beta.f8b8018 → 6.6.0-beta.2339ae2

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.
Files changed (45) hide show
  1. package/.eslintrc.js +2 -0
  2. package/Dockerfile +1 -0
  3. package/dist/Command.js +17 -7
  4. package/dist/cli/Cli.js +15 -11
  5. package/dist/m365/cli/commands/config/config-set.js +1 -0
  6. package/dist/m365/commands/request.js +18 -1
  7. package/dist/m365/pa/commands/app/app-export.js +197 -0
  8. package/dist/m365/pa/commands.js +1 -0
  9. package/dist/m365/pp/commands/tenant/tenant-settings-set.js +261 -0
  10. package/dist/m365/pp/commands.js +2 -1
  11. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +79 -0
  12. package/dist/m365/purview/commands.js +2 -1
  13. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.0.js +23 -0
  14. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.1.js +23 -0
  15. package/dist/m365/spfx/commands/project/project-doctor.js +3 -1
  16. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.17.0-rc.1.js → upgrade-1.17.0.js} +26 -26
  17. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.1.js +55 -0
  18. package/dist/m365/spfx/commands/project/project-upgrade.js +14 -15
  19. package/dist/m365/spfx/commands/spfx-doctor.js +30 -0
  20. package/dist/m365/spo/commands/file/file-move.js +1 -1
  21. package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +22 -1
  22. package/dist/m365/spo/commands/listitem/ListItemFieldValueResult.js +3 -0
  23. package/dist/m365/spo/commands/listitem/listitem-add.js +6 -5
  24. package/dist/m365/spo/commands/listitem/listitem-batch-add.js +18 -1
  25. package/dist/m365/spo/commands/listitem/listitem-get.js +21 -6
  26. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-ensure.js +35 -1
  27. package/dist/m365/spo/commands/listitem/listitem-set.js +5 -6
  28. package/dist/m365/spo/commands/web/web-set.js +33 -13
  29. package/dist/settingsNames.js +2 -1
  30. package/dist/utils/fsUtil.js +1 -1
  31. package/docs/docs/_clisettings.md +1 -0
  32. package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
  33. package/docs/docs/cmd/pa/app/app-export.md +52 -0
  34. package/docs/docs/cmd/pp/tenant/tenant-settings-set.md +218 -0
  35. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.md +191 -0
  36. package/docs/docs/cmd/request.md +10 -4
  37. package/docs/docs/cmd/spfx/project/project-upgrade.md +2 -2
  38. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.md +12 -1
  39. package/docs/docs/cmd/spo/listitem/listitem-add.md +12 -1
  40. package/docs/docs/cmd/spo/listitem/listitem-batch-add.md +12 -9
  41. package/docs/docs/cmd/spo/listitem/listitem-get.md +14 -5
  42. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.md +15 -2
  43. package/docs/docs/cmd/spo/listitem/listitem-set.md +12 -1
  44. package/npm-shrinkwrap.json +460 -273
  45. package/package.json +14 -12
@@ -0,0 +1,261 @@
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 _PpTenantSettingsSetCommand_instances, _PpTenantSettingsSetCommand_initTelemetry, _PpTenantSettingsSetCommand_initOptions, _PpTenantSettingsSetCommand_initTypes, _PpTenantSettingsSetCommand_initValidators;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const request_1 = require("../../../../request");
19
+ const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
20
+ const commands_1 = require("../../commands");
21
+ class PpTenantSettingsSetCommand extends PowerPlatformCommand_1.default {
22
+ get name() {
23
+ return commands_1.default.TENANT_SETTINGS_SET;
24
+ }
25
+ get description() {
26
+ return 'Sets the global Power Platform configuration of the tenant';
27
+ }
28
+ constructor() {
29
+ super();
30
+ _PpTenantSettingsSetCommand_instances.add(this);
31
+ __classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initTelemetry).call(this);
32
+ __classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initOptions).call(this);
33
+ __classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initTypes).call(this);
34
+ __classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initValidators).call(this);
35
+ }
36
+ commandAction(logger, args) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const data = {
39
+ walkMeOptOut: args.options.walkMeOptOut,
40
+ disableNPSCommentsReachout: args.options.disableNPSCommentsReachout,
41
+ disableNewsletterSendout: args.options.disableNewsletterSendout,
42
+ disableEnvironmentCreationByNonAdminUsers: args.options.disableEnvironmentCreationByNonAdminUsers,
43
+ disablePortalsCreationByNonAdminUsers: args.options.disablePortalsCreationByNonAdminUsers,
44
+ disableSurveyFeedback: args.options.disableSurveyFeedback,
45
+ disableTrialEnvironmentCreationByNonAdminUsers: args.options.disableTrialEnvironmentCreationByNonAdminUsers,
46
+ disableCapacityAllocationByEnvironmentAdmins: args.options.disableCapacityAllocationByEnvironmentAdmins,
47
+ disableSupportTicketsVisibleByAllUsers: args.options.disableSupportTicketsVisibleByAllUsers,
48
+ powerPlatform: {
49
+ search: {
50
+ disableDocsSearch: args.options.disableDocsSearch,
51
+ disableCommunitySearch: args.options.disableCommunitySearch,
52
+ disableBingVideoSearch: args.options.disableBingVideoSearch
53
+ },
54
+ teamsIntegration: {
55
+ shareWithColleaguesUserLimit: args.options.shareWithColleaguesUserLimit
56
+ },
57
+ powerApps: {
58
+ disableShareWithEveryone: args.options.disableShareWithEveryone,
59
+ enableGuestsToMake: args.options.enableGuestsToMake,
60
+ disableMembersIndicator: args.options.disableMembersIndicator,
61
+ disableMakerMatch: args.options.disableMakerMatch
62
+ },
63
+ environments: {
64
+ disablePreferredDataLocationForTeamsEnvironment: args.options.disablePreferredDataLocationForTeamsEnvironment
65
+ },
66
+ governance: {
67
+ disableAdminDigest: args.options.disableAdminDigest,
68
+ disableDeveloperEnvironmentCreationByNonAdminUsers: args.options.disableDeveloperEnvironmentCreationByNonAdminUsers
69
+ },
70
+ licensing: {
71
+ disableBillingPolicyCreationByNonAdminUsers: args.options.disableBillingPolicyCreationByNonAdminUsers,
72
+ storageCapacityConsumptionWarningThreshold: args.options.storageCapacityConsumptionWarningThreshold
73
+ },
74
+ champions: {
75
+ disableChampionsInvitationReachout: args.options.disableChampionsInvitationReachout,
76
+ disableSkillsMatchInvitationReachout: args.options.disableSkillsMatchInvitationReachout
77
+ },
78
+ intelligence: {
79
+ disableCopilot: args.options.disableCopilot,
80
+ enableOpenAiBotPublishing: args.options.enableOpenAiBotPublishing
81
+ },
82
+ modelExperimentation: {
83
+ enableModelDataSharing: args.options.enableModelDataSharing
84
+ }
85
+ }
86
+ };
87
+ const requestOptions = {
88
+ url: `${this.resource}/providers/Microsoft.BusinessAppPlatform/scopes/admin/updateTenantSettings?api-version=2020-10-01`,
89
+ headers: {
90
+ accept: 'application/json'
91
+ },
92
+ responseType: 'json',
93
+ data: data
94
+ };
95
+ try {
96
+ const res = yield request_1.default.post(requestOptions);
97
+ logger.log(res);
98
+ }
99
+ catch (err) {
100
+ this.handleRejectedODataJsonPromise(err);
101
+ }
102
+ });
103
+ }
104
+ }
105
+ _PpTenantSettingsSetCommand_instances = new WeakSet(), _PpTenantSettingsSetCommand_initTelemetry = function _PpTenantSettingsSetCommand_initTelemetry() {
106
+ this.telemetry.push((args) => {
107
+ Object.assign(this.telemetryProperties, {
108
+ walkMeOptOut: typeof args.options.walkMeOptOut !== 'undefined',
109
+ disableNPSCommentsReachout: typeof args.options.disableNPSCommentsReachout !== 'undefined',
110
+ disableNewsletterSendout: typeof args.options.disableNewsletterSendout !== 'undefined',
111
+ disableEnvironmentCreationByNonAdminUsers: typeof args.options.disableEnvironmentCreationByNonAdminUsers !== 'undefined',
112
+ disablePortalsCreationByNonAdminUsers: typeof args.options.disablePortalsCreationByNonAdminUsers !== 'undefined',
113
+ disableSurveyFeedback: typeof args.options.disableSurveyFeedback !== 'undefined',
114
+ disableTrialEnvironmentCreationByNonAdminUsers: typeof args.options.disableTrialEnvironmentCreationByNonAdminUsers !== 'undefined',
115
+ disableCapacityAllocationByEnvironmentAdmins: typeof args.options.disableCapacityAllocationByEnvironmentAdmins !== 'undefined',
116
+ disableSupportTicketsVisibleByAllUsers: typeof args.options.disableSupportTicketsVisibleByAllUsers !== 'undefined',
117
+ disableDocsSearch: typeof args.options.disableDocsSearch !== 'undefined',
118
+ disableCommunitySearch: typeof args.options.disableCommunitySearch !== 'undefined',
119
+ disableBingVideoSearch: typeof args.options.disableBingVideoSearch !== 'undefined',
120
+ shareWithColleaguesUserLimit: typeof args.options.shareWithColleaguesUserLimit !== 'undefined',
121
+ disableShareWithEveryone: typeof args.options.disableShareWithEveryone !== 'undefined',
122
+ enableGuestsToMake: typeof args.options.enableGuestsToMake !== 'undefined',
123
+ disableMembersIndicator: typeof args.options.disableMembersIndicator !== 'undefined',
124
+ disableMakerMatch: typeof args.options.disableMakerMatch !== 'undefined',
125
+ disablePreferredDataLocationForTeamsEnvironment: typeof args.options.disablePreferredDataLocationForTeamsEnvironment !== 'undefined',
126
+ disableAdminDigest: typeof args.options.disableAdminDigest !== 'undefined',
127
+ disableDeveloperEnvironmentCreationByNonAdminUsers: typeof args.options.disableDeveloperEnvironmentCreationByNonAdminUsers !== 'undefined',
128
+ disableBillingPolicyCreationByNonAdminUsers: typeof args.options.disableBillingPolicyCreationByNonAdminUsers !== 'undefined',
129
+ storageCapacityConsumptionWarningThreshold: typeof args.options.storageCapacityConsumptionWarningThreshold !== 'undefined',
130
+ disableChampionsInvitationReachout: typeof args.options.disableChampionsInvitationReachout !== 'undefined',
131
+ disableSkillsMatchInvitationReachout: typeof args.options.disableSkillsMatchInvitationReachout !== 'undefined',
132
+ disableCopilot: typeof args.options.disableCopilot !== 'undefined',
133
+ enableOpenAiBotPublishing: typeof args.options.enableOpenAiBotPublishing !== 'undefined',
134
+ enableModelDataSharing: typeof args.options.enableModelDataSharing !== 'undefined'
135
+ });
136
+ });
137
+ }, _PpTenantSettingsSetCommand_initOptions = function _PpTenantSettingsSetCommand_initOptions() {
138
+ this.options.unshift({
139
+ option: '--walkMeOptOut [walkMeOptOut]',
140
+ autocomplete: ['true', 'false']
141
+ }, {
142
+ option: '--disableNPSCommentsReachout [disableNPSCommentsReachout]',
143
+ autocomplete: ['true', 'false']
144
+ }, {
145
+ option: '--disableNewsletterSendout [disableNewsletterSendout]',
146
+ autocomplete: ['true', 'false']
147
+ }, {
148
+ option: '--disableEnvironmentCreationByNonAdminUsers [disableEnvironmentCreationByNonAdminUsers]',
149
+ autocomplete: ['true', 'false']
150
+ }, {
151
+ option: '--disablePortalsCreationByNonAdminUsers [disablePortalsCreationByNonAdminUsers]',
152
+ autocomplete: ['true', 'false']
153
+ }, {
154
+ option: '--disableSurveyFeedback [disableSurveyFeedback]',
155
+ autocomplete: ['true', 'false']
156
+ }, {
157
+ option: '--disableTrialEnvironmentCreationByNonAdminUsers [disableTrialEnvironmentCreationByNonAdminUsers]',
158
+ autocomplete: ['true', 'false']
159
+ }, {
160
+ option: '--disableCapacityAllocationByEnvironmentAdmins [disableCapacityAllocationByEnvironmentAdmins]',
161
+ autocomplete: ['true', 'false']
162
+ }, {
163
+ option: '--disableSupportTicketsVisibleByAllUsers [disableSupportTicketsVisibleByAllUsers]',
164
+ autocomplete: ['true', 'false']
165
+ }, {
166
+ option: '--disableDocsSearch [disableDocsSearch]',
167
+ autocomplete: ['true', 'false']
168
+ }, {
169
+ option: '--disableCommunitySearch [disableCommunitySearch]',
170
+ autocomplete: ['true', 'false']
171
+ }, {
172
+ option: '--disableBingVideoSearch [disableBingVideoSearch]',
173
+ autocomplete: ['true', 'false']
174
+ }, {
175
+ option: '--shareWithColleaguesUserLimit [shareWithColleaguesUserLimit]'
176
+ }, {
177
+ option: '--disableShareWithEveryone [disableShareWithEveryone]',
178
+ autocomplete: ['true', 'false']
179
+ }, {
180
+ option: '--enableGuestsToMake [enableGuestsToMake]',
181
+ autocomplete: ['true', 'false']
182
+ }, {
183
+ option: '--disableMembersIndicator [disableMembersIndicator]',
184
+ autocomplete: ['true', 'false']
185
+ }, {
186
+ option: '--disableMakerMatch [disableMakerMatch]',
187
+ autocomplete: ['true', 'false']
188
+ }, {
189
+ option: '--disablePreferredDataLocationForTeamsEnvironment [disablePreferredDataLocationForTeamsEnvironment]',
190
+ autocomplete: ['true', 'false']
191
+ }, {
192
+ option: '--disableAdminDigest [disableAdminDigest]',
193
+ autocomplete: ['true', 'false']
194
+ }, {
195
+ option: '--disableDeveloperEnvironmentCreationByNonAdminUsers [disableDeveloperEnvironmentCreationByNonAdminUsers]',
196
+ autocomplete: ['true', 'false']
197
+ }, {
198
+ option: '--disableBillingPolicyCreationByNonAdminUsers [disableBillingPolicyCreationByNonAdminUsers]',
199
+ autocomplete: ['true', 'false']
200
+ }, {
201
+ option: '--storageCapacityConsumptionWarningThreshold [storageCapacityConsumptionWarningThreshold]'
202
+ }, {
203
+ option: '--disableChampionsInvitationReachout [disableChampionsInvitationReachout]',
204
+ autocomplete: ['true', 'false']
205
+ }, {
206
+ option: '--disableSkillsMatchInvitationReachout [disableSkillsMatchInvitationReachout]',
207
+ autocomplete: ['true', 'false']
208
+ }, {
209
+ option: '--disableCopilot [disableCopilot]',
210
+ autocomplete: ['true', 'false']
211
+ }, {
212
+ option: '--enableOpenAiBotPublishing [enableOpenAiBotPublishing]',
213
+ autocomplete: ['true', 'false']
214
+ }, {
215
+ option: '--enableModelDataSharing [enableModelDataSharing]',
216
+ autocomplete: ['true', 'false']
217
+ });
218
+ }, _PpTenantSettingsSetCommand_initTypes = function _PpTenantSettingsSetCommand_initTypes() {
219
+ this.types.boolean.push('walkMeOptOut', 'disableNPSCommentsReachout', 'disableNewsletterSendout', 'disableEnvironmentCreationByNonAdminUsers', 'disablePortalsCreationByNonAdminUsers', 'disableSurveyFeedback', 'disableTrialEnvironmentCreationByNonAdminUsers', 'disableCapacityAllocationByEnvironmentAdmins', 'disableSupportTicketsVisibleByAllUsers', 'disableDocsSearch', 'disableCommunitySearch', 'disableBingVideoSearch', 'disableShareWithEveryone', 'enableGuestsToMake', 'disableMembersIndicator', 'disableMakerMatch', 'disablePreferredDataLocationForTeamsEnvironment', 'disableAdminDigest', 'disableDeveloperEnvironmentCreationByNonAdminUsers', 'disableBillingPolicyCreationByNonAdminUsers', 'disableChampionsInvitationReachout', 'disableSkillsMatchInvitationReachout', 'disableCopilot', 'enableOpenAiBotPublishing', 'enableModelDataSharing');
220
+ }, _PpTenantSettingsSetCommand_initValidators = function _PpTenantSettingsSetCommand_initValidators() {
221
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
222
+ if (args.options.shareWithColleaguesUserLimit !== undefined && (!Number.isInteger(args.options.shareWithColleaguesUserLimit) || args.options.shareWithColleaguesUserLimit < 0)) {
223
+ return `'${args.options.shareWithColleaguesUserLimit}' is not a valid number.`;
224
+ }
225
+ if (args.options.storageCapacityConsumptionWarningThreshold !== undefined && (!Number.isInteger(args.options.storageCapacityConsumptionWarningThreshold) || args.options.storageCapacityConsumptionWarningThreshold < 0)) {
226
+ return `'${args.options.storageCapacityConsumptionWarningThreshold}' is not a valid number.`;
227
+ }
228
+ if (typeof args.options.walkMeOptOut === 'undefined' &&
229
+ typeof args.options.disableNPSCommentsReachout === 'undefined' &&
230
+ typeof args.options.disableNewsletterSendout === 'undefined' &&
231
+ typeof args.options.disableEnvironmentCreationByNonAdminUsers === 'undefined' &&
232
+ typeof args.options.disablePortalsCreationByNonAdminUsers === 'undefined' &&
233
+ typeof args.options.disableSurveyFeedback === 'undefined' &&
234
+ typeof args.options.disableTrialEnvironmentCreationByNonAdminUsers === 'undefined' &&
235
+ typeof args.options.disableCapacityAllocationByEnvironmentAdmins === 'undefined' &&
236
+ typeof args.options.disableSupportTicketsVisibleByAllUsers === 'undefined' &&
237
+ typeof args.options.disableDocsSearch === 'undefined' &&
238
+ typeof args.options.disableCommunitySearch === 'undefined' &&
239
+ typeof args.options.disableBingVideoSearch === 'undefined' &&
240
+ typeof args.options.shareWithColleaguesUserLimit === 'undefined' &&
241
+ typeof args.options.disableShareWithEveryone === 'undefined' &&
242
+ typeof args.options.enableGuestsToMake === 'undefined' &&
243
+ typeof args.options.disableMembersIndicator === 'undefined' &&
244
+ typeof args.options.disableMakerMatch === 'undefined' &&
245
+ typeof args.options.disablePreferredDataLocationForTeamsEnvironment === 'undefined' &&
246
+ typeof args.options.disableAdminDigest === 'undefined' &&
247
+ typeof args.options.disableDeveloperEnvironmentCreationByNonAdminUsers === 'undefined' &&
248
+ typeof args.options.disableBillingPolicyCreationByNonAdminUsers === 'undefined' &&
249
+ typeof args.options.storageCapacityConsumptionWarningThreshold === 'undefined' &&
250
+ typeof args.options.disableChampionsInvitationReachout === 'undefined' &&
251
+ typeof args.options.disableSkillsMatchInvitationReachout === 'undefined' &&
252
+ typeof args.options.disableCopilot === 'undefined' &&
253
+ typeof args.options.enableOpenAiBotPublishing === 'undefined' &&
254
+ typeof args.options.enableModelDataSharing === 'undefined') {
255
+ return 'Specify at least one option.';
256
+ }
257
+ return true;
258
+ }));
259
+ };
260
+ module.exports = new PpTenantSettingsSetCommand();
261
+ //# sourceMappingURL=tenant-settings-set.js.map
@@ -31,6 +31,7 @@ exports.default = {
31
31
  SOLUTION_PUBLISHER_GET: `${prefix} solution publisher get`,
32
32
  SOLUTION_PUBLISHER_LIST: `${prefix} solution publisher list`,
33
33
  SOLUTION_PUBLISHER_REMOVE: `${prefix} solution publisher remove`,
34
- TENANT_SETTINGS_LIST: `${prefix} tenant settings list`
34
+ TENANT_SETTINGS_LIST: `${prefix} tenant settings list`,
35
+ TENANT_SETTINGS_SET: `${prefix} tenant settings set`
35
36
  };
36
37
  //# sourceMappingURL=commands.js.map
@@ -0,0 +1,79 @@
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 _PurviewThreatAssessmentGetCommand_instances, _PurviewThreatAssessmentGetCommand_initTelemetry, _PurviewThreatAssessmentGetCommand_initOptions, _PurviewThreatAssessmentGetCommand_initValidators;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const request_1 = require("../../../../request");
19
+ const validation_1 = require("../../../../utils/validation");
20
+ const GraphCommand_1 = require("../../../base/GraphCommand");
21
+ const commands_1 = require("../../commands");
22
+ class PurviewThreatAssessmentGetCommand extends GraphCommand_1.default {
23
+ get name() {
24
+ return commands_1.default.THREATASSESSMENT_GET;
25
+ }
26
+ get description() {
27
+ return 'Get a threat assessment';
28
+ }
29
+ constructor() {
30
+ super();
31
+ _PurviewThreatAssessmentGetCommand_instances.add(this);
32
+ __classPrivateFieldGet(this, _PurviewThreatAssessmentGetCommand_instances, "m", _PurviewThreatAssessmentGetCommand_initTelemetry).call(this);
33
+ __classPrivateFieldGet(this, _PurviewThreatAssessmentGetCommand_instances, "m", _PurviewThreatAssessmentGetCommand_initOptions).call(this);
34
+ __classPrivateFieldGet(this, _PurviewThreatAssessmentGetCommand_instances, "m", _PurviewThreatAssessmentGetCommand_initValidators).call(this);
35
+ }
36
+ commandAction(logger, args) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ try {
39
+ if (this.verbose) {
40
+ logger.logToStderr(`Retrieving threat assessment with id ${args.options.id}`);
41
+ }
42
+ const requestOptions = {
43
+ url: `${this.resource}/v1.0/informationProtection/threatAssessmentRequests/${args.options.id}${args.options.includeResults ? '?$expand=results' : ''}`,
44
+ headers: {
45
+ accept: 'application/json;odata.metadata=none'
46
+ },
47
+ responseType: 'json'
48
+ };
49
+ const res = yield request_1.default.get(requestOptions);
50
+ logger.log(res);
51
+ }
52
+ catch (err) {
53
+ this.handleRejectedODataJsonPromise(err);
54
+ }
55
+ });
56
+ }
57
+ }
58
+ _PurviewThreatAssessmentGetCommand_instances = new WeakSet(), _PurviewThreatAssessmentGetCommand_initTelemetry = function _PurviewThreatAssessmentGetCommand_initTelemetry() {
59
+ this.telemetry.push((args) => {
60
+ Object.assign(this.telemetryProperties, {
61
+ includeResults: !!args.options.includeResults
62
+ });
63
+ });
64
+ }, _PurviewThreatAssessmentGetCommand_initOptions = function _PurviewThreatAssessmentGetCommand_initOptions() {
65
+ this.options.unshift({
66
+ option: '-i, --id <id>'
67
+ }, {
68
+ option: '--includeResults'
69
+ });
70
+ }, _PurviewThreatAssessmentGetCommand_initValidators = function _PurviewThreatAssessmentGetCommand_initValidators() {
71
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
72
+ if (!validation_1.validation.isValidGuid(args.options.id)) {
73
+ return `${args.options.id} is not a valid GUID.`;
74
+ }
75
+ return true;
76
+ }));
77
+ };
78
+ module.exports = new PurviewThreatAssessmentGetCommand();
79
+ //# sourceMappingURL=threatassessment-get.js.map
@@ -16,6 +16,7 @@ exports.default = {
16
16
  RETENTIONLABEL_GET: `${prefix} retentionlabel get`,
17
17
  RETENTIONLABEL_LIST: `${prefix} retentionlabel list`,
18
18
  RETENTIONLABEL_REMOVE: `${prefix} retentionlabel remove`,
19
- RETENTIONLABEL_SET: `${prefix} retentionlabel set`
19
+ RETENTIONLABEL_SET: `${prefix} retentionlabel set`,
20
+ THREATASSESSMENT_GET: `${prefix} threatassessment get`
20
21
  };
21
22
  //# sourceMappingURL=commands.js.map
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
4
+ const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
5
+ const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
6
+ const FN002004_DEVDEP_gulp_1 = require("./rules/FN002004_DEVDEP_gulp");
7
+ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
8
+ const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
9
+ const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
10
+ const FN002016_DEVDEP_types_react_dom_1 = require("./rules/FN002016_DEVDEP_types_react_dom");
11
+ const FN002019_DEVDEP_microsoft_rush_stack_compiler_1 = require("./rules/FN002019_DEVDEP_microsoft_rush_stack_compiler");
12
+ module.exports = [
13
+ new FN001008_DEP_react_1.FN001008_DEP_react('17'),
14
+ new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('17'),
15
+ new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('^7.199.1'),
16
+ new FN002004_DEVDEP_gulp_1.FN002004_DEVDEP_gulp('4.0.2'),
17
+ new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('^6.12.5'),
18
+ new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('~1.15.2'),
19
+ new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('17'),
20
+ new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('17'),
21
+ new FN002019_DEVDEP_microsoft_rush_stack_compiler_1.FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
22
+ ];
23
+ //# sourceMappingURL=doctor-1.17.0.js.map
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
4
+ const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
5
+ const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
6
+ const FN002004_DEVDEP_gulp_1 = require("./rules/FN002004_DEVDEP_gulp");
7
+ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
8
+ const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
9
+ const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
10
+ const FN002016_DEVDEP_types_react_dom_1 = require("./rules/FN002016_DEVDEP_types_react_dom");
11
+ const FN002019_DEVDEP_microsoft_rush_stack_compiler_1 = require("./rules/FN002019_DEVDEP_microsoft_rush_stack_compiler");
12
+ module.exports = [
13
+ new FN001008_DEP_react_1.FN001008_DEP_react('17'),
14
+ new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('17'),
15
+ new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('^7.199.1'),
16
+ new FN002004_DEVDEP_gulp_1.FN002004_DEVDEP_gulp('4.0.2'),
17
+ new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('^6.12.5'),
18
+ new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('~1.15.2'),
19
+ new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('17'),
20
+ new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('17'),
21
+ new FN002019_DEVDEP_microsoft_rush_stack_compiler_1.FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
22
+ ];
23
+ //# sourceMappingURL=doctor-1.17.1.js.map
@@ -72,7 +72,9 @@ class SpfxProjectDoctorCommand extends base_project_command_1.BaseProjectCommand
72
72
  '1.15.0',
73
73
  '1.15.2',
74
74
  '1.16.0',
75
- '1.16.1'
75
+ '1.16.1',
76
+ '1.17.0',
77
+ '1.17.1'
76
78
  ];
77
79
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
78
80
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
@@ -32,36 +32,36 @@ const FN010010_YORC_sdkVersions_teams_js_1 = require("./rules/FN010010_YORC_sdkV
32
32
  const FN014008_CODE_launch_hostedWorkbench_type_1 = require("./rules/FN014008_CODE_launch_hostedWorkbench_type");
33
33
  const FN014009_CODE_launch_hostedWorkbench_url_1 = require("./rules/FN014009_CODE_launch_hostedWorkbench_url");
34
34
  module.exports = [
35
- new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.17.0-rc.1'),
36
- new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.17.0-rc.1'),
37
- new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.17.0-rc.1'),
38
- new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.17.0-rc.1'),
39
- new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.17.0-rc.1'),
40
- new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.17.0-rc.1'),
41
- new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.17.0-rc.1'),
42
- new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.17.0-rc.1'),
43
- new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.17.0-rc.1'),
44
- new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.17.0-rc.1'),
45
- new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.17.0-rc.1'),
46
- new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.17.0-rc.1'),
47
- new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.17.0-rc.1'),
48
- new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.17.0-rc.1'),
49
- new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.17.0-rc.1'),
50
- new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.17.0-rc.1'),
51
- new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.17.0-rc.1'),
52
- new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.17.0-rc.1'),
53
- new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.17.0-rc.1'),
54
- new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.17.0-rc.1'),
55
- new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.17.0-rc.1'),
56
- new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.0-rc.1'),
57
- new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.17.0-rc.1'),
58
- new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.0-rc.1'),
35
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.17.0'),
36
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.17.0'),
37
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.17.0'),
38
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.17.0'),
39
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.17.0'),
40
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.17.0'),
41
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.17.0'),
42
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.17.0'),
43
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.17.0'),
44
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.17.0'),
45
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.17.0'),
46
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.17.0'),
47
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.17.0'),
48
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.17.0'),
49
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.17.0'),
50
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.17.0'),
51
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.17.0'),
52
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.17.0'),
53
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.17.0'),
54
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.17.0'),
55
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.17.0'),
56
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.0'),
57
+ new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.17.0'),
58
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.0'),
59
59
  new FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5_1.FN002020_DEVDEP_microsoft_rush_stack_compiler_4_5('0.4.0'),
60
60
  new FN002024_DEVDEP_eslint_1.FN002024_DEVDEP_eslint('8.7.0'),
61
61
  new FN007002_CFG_S_initialPage_1.FN007002_CFG_S_initialPage('https://{tenantDomain}/_layouts/workbench.aspx'),
62
- new FN010001_YORC_version_1.FN010001_YORC_version('1.17.0-rc.1'),
62
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.17.0'),
63
63
  new FN010010_YORC_sdkVersions_teams_js_1.FN010010_YORC_sdkVersions_teams_js('2.9.1'),
64
64
  new FN014008_CODE_launch_hostedWorkbench_type_1.FN014008_CODE_launch_hostedWorkbench_type('edge'),
65
65
  new FN014009_CODE_launch_hostedWorkbench_url_1.FN014009_CODE_launch_hostedWorkbench_url('https://{tenantDomain}/_layouts/workbench.aspx')
66
66
  ];
67
- //# sourceMappingURL=upgrade-1.17.0-rc.1.js.map
67
+ //# sourceMappingURL=upgrade-1.17.0.js.map
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001001_DEP_microsoft_sp_core_library_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library");
4
+ const FN001002_DEP_microsoft_sp_lodash_subset_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset");
5
+ const FN001003_DEP_microsoft_sp_office_ui_fabric_core_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core");
6
+ const FN001004_DEP_microsoft_sp_webpart_base_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base");
7
+ const FN001011_DEP_microsoft_sp_dialog_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog");
8
+ const FN001012_DEP_microsoft_sp_application_base_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base");
9
+ const FN001013_DEP_microsoft_decorators_1 = require("./rules/FN001013_DEP_microsoft_decorators");
10
+ const FN001014_DEP_microsoft_sp_listview_extensibility_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility");
11
+ const FN001021_DEP_microsoft_sp_property_pane_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane");
12
+ const FN001023_DEP_microsoft_sp_component_base_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base");
13
+ const FN001024_DEP_microsoft_sp_diagnostics_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics");
14
+ const FN001025_DEP_microsoft_sp_dynamic_data_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data");
15
+ const FN001026_DEP_microsoft_sp_extension_base_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base");
16
+ const FN001027_DEP_microsoft_sp_http_1 = require("./rules/FN001027_DEP_microsoft_sp_http");
17
+ const FN001028_DEP_microsoft_sp_list_subscription_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription");
18
+ const FN001029_DEP_microsoft_sp_loader_1 = require("./rules/FN001029_DEP_microsoft_sp_loader");
19
+ const FN001030_DEP_microsoft_sp_module_interfaces_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces");
20
+ const FN001031_DEP_microsoft_sp_odata_types_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types");
21
+ const FN001032_DEP_microsoft_sp_page_context_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context");
22
+ const FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1 = require("./rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base");
23
+ const FN002001_DEVDEP_microsoft_sp_build_web_1 = require("./rules/FN002001_DEVDEP_microsoft_sp_build_web");
24
+ const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
25
+ const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx");
26
+ const FN002023_DEVDEP_microsoft_eslint_config_spfx_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx");
27
+ const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
28
+ module.exports = [
29
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.17.1'),
30
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.17.1'),
31
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.17.1'),
32
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.17.1'),
33
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.17.1'),
34
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.17.1'),
35
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.17.1'),
36
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.17.1'),
37
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.17.1'),
38
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.17.1'),
39
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.17.1'),
40
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.17.1'),
41
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.17.1'),
42
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.17.1'),
43
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.17.1'),
44
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.17.1'),
45
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.17.1'),
46
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.17.1'),
47
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.17.1'),
48
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.17.1'),
49
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.17.1'),
50
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.1'),
51
+ new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.17.1'),
52
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.1'),
53
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.17.1')
54
+ ];
55
+ //# sourceMappingURL=upgrade-1.17.1.js.map
@@ -18,8 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const fs = require("fs");
19
19
  const os = require("os");
20
20
  const path = require("path");
21
- // uncomment to support upgrading to preview releases
22
- const semver_1 = require("semver");
23
21
  const Command_1 = require("../../../../Command");
24
22
  const fsUtil_1 = require("../../../../utils/fsUtil");
25
23
  const packageManager_1 = require("../../../../utils/packageManager");
@@ -77,7 +75,8 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
77
75
  '1.15.2',
78
76
  '1.16.0',
79
77
  '1.16.1',
80
- '1.17.0-rc.1'
78
+ '1.17.0',
79
+ '1.17.1'
81
80
  ];
82
81
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
83
82
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
@@ -91,15 +90,15 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
91
90
  }
92
91
  this.toVersion = args.options.toVersion ? args.options.toVersion : this.supportedVersions[this.supportedVersions.length - 1];
93
92
  // uncomment to support upgrading to preview releases
94
- if (!args.options.toVersion &&
95
- !args.options.preview &&
96
- (0, semver_1.prerelease)(this.toVersion)) {
97
- // no version and no preview specified while the current version to
98
- // upgrade to is a prerelease so let's grab the first non-preview version
99
- // since we're supporting only one preview version, it's sufficient for
100
- // us to take second to last version
101
- this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
102
- }
93
+ // if (!args.options.toVersion &&
94
+ // !args.options.preview &&
95
+ // prerelease(this.toVersion)) {
96
+ // // no version and no preview specified while the current version to
97
+ // // upgrade to is a prerelease so let's grab the first non-preview version
98
+ // // since we're supporting only one preview version, it's sufficient for
99
+ // // us to take second to last version
100
+ // this.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
101
+ // }
103
102
  this.packageManager = args.options.packageManager || 'npm';
104
103
  this.shell = args.options.shell || 'bash';
105
104
  if (this.supportedVersions.indexOf(this.toVersion) < 0) {
@@ -486,9 +485,9 @@ _SpfxProjectUpgradeCommand_instances = new WeakSet(), _SpfxProjectUpgradeCommand
486
485
  preview: args.options.preview
487
486
  });
488
487
  // uncomment to support upgrading to preview releases
489
- if ((0, semver_1.prerelease)(this.telemetryProperties.toVersion) && !args.options.preview) {
490
- this.telemetryProperties.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
491
- }
488
+ // if (prerelease(this.telemetryProperties.toVersion) && !args.options.preview) {
489
+ // this.telemetryProperties.toVersion = this.supportedVersions[this.supportedVersions.length - 2];
490
+ // }
492
491
  });
493
492
  }, _SpfxProjectUpgradeCommand_initOptions = function _SpfxProjectUpgradeCommand_initOptions() {
494
493
  this.options.unshift({