@pnp/cli-microsoft365 6.0.0 → 6.1.0-beta.54cca1f
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/.eslintrc.js +2 -0
- package/dist/cli/Cli.js +48 -5
- package/dist/m365/planner/commands/plan/plan-set.js +305 -0
- package/dist/m365/planner/commands/tenant/tenant-settings-set.js +4 -7
- package/dist/m365/planner/commands.js +1 -0
- package/dist/m365/pp/commands/chatbot/chatbot-get.js +111 -0
- package/dist/m365/pp/commands/chatbot/chatbot-remove.js +131 -0
- package/dist/m365/pp/commands/dataverse/dataverse-table-row-list.js +95 -0
- package/dist/m365/pp/commands/solution/solution-publisher-add.js +101 -0
- package/dist/m365/pp/commands.js +4 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +38 -0
- package/dist/m365/purview/commands.js +7 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.1.js +23 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +63 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015009_FILE_config_sass_json.js +14 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.1.js +59 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/contenttype/contenttype-set.js +78 -31
- package/dist/m365/spo/commands/file/file-get.js +5 -17
- package/dist/m365/spo/commands/folder/folder-get.js +1 -9
- package/dist/m365/spo/commands/listitem/listitem-get.js +4 -16
- package/dist/m365/spo/commands/listitem/listitem-list.js +2 -2
- package/dist/m365/spo/commands/listitem/listitem-set.js +7 -4
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +5 -1
- package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +2 -13
- package/dist/m365/spo/commands/web/web-get.js +5 -16
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +121 -0
- package/dist/m365/teams/commands/user/user-app-list.js +1 -1
- package/dist/m365/teams/commands.js +1 -0
- package/dist/utils/formatting.js +37 -0
- package/docs/docs/cmd/cli/cli-consent.md +20 -0
- package/docs/docs/cmd/cli/cli-doctor.md +50 -0
- package/docs/docs/cmd/cli/cli-issue.md +20 -0
- package/docs/docs/cmd/cli/cli-reconsent.md +20 -0
- package/docs/docs/cmd/cli/completion/completion-clink-update.md +5 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-setup.md +5 -1
- package/docs/docs/cmd/cli/completion/completion-pwsh-update.md +5 -1
- package/docs/docs/cmd/cli/completion/completion-sh-setup.md +21 -1
- package/docs/docs/cmd/cli/completion/completion-sh-update.md +4 -0
- package/docs/docs/cmd/cli/config/config-get.md +22 -0
- package/docs/docs/cmd/cli/config/config-reset.md +4 -0
- package/docs/docs/cmd/cli/config/config-set.md +4 -0
- package/docs/docs/cmd/planner/plan/plan-set.md +144 -0
- package/docs/docs/cmd/pp/chatbot/chatbot-get.md +123 -0
- package/docs/docs/cmd/pp/chatbot/chatbot-remove.md +52 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.md +90 -0
- package/docs/docs/cmd/pp/solution/solution-publisher-add.md +49 -0
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.md +81 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-add.md +4 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +38 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-list.md +38 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +4 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.md +15 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +6 -6
- package/docs/docs/cmd/teams/meeting/meeting-attendancereport-list.md +69 -0
- package/docs/docs/cmd/teams/user/user-app-list.md +6 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,131 @@
|
|
|
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 _PpChatbotRemoveCommand_instances, _PpChatbotRemoveCommand_initTelemetry, _PpChatbotRemoveCommand_initOptions, _PpChatbotRemoveCommand_initOptionSets, _PpChatbotRemoveCommand_initValidators;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const powerPlatform_1 = require("../../../../utils/powerPlatform");
|
|
19
|
+
const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
|
|
20
|
+
const commands_1 = require("../../commands");
|
|
21
|
+
const request_1 = require("../../../../request");
|
|
22
|
+
const validation_1 = require("../../../../utils/validation");
|
|
23
|
+
const Cli_1 = require("../../../../cli/Cli");
|
|
24
|
+
const PpChatbotGetCommand = require("./chatbot-get");
|
|
25
|
+
class PpChatbotRemoveCommand extends PowerPlatformCommand_1.default {
|
|
26
|
+
constructor() {
|
|
27
|
+
super();
|
|
28
|
+
_PpChatbotRemoveCommand_instances.add(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PpChatbotRemoveCommand_instances, "m", _PpChatbotRemoveCommand_initTelemetry).call(this);
|
|
30
|
+
__classPrivateFieldGet(this, _PpChatbotRemoveCommand_instances, "m", _PpChatbotRemoveCommand_initOptions).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _PpChatbotRemoveCommand_instances, "m", _PpChatbotRemoveCommand_initValidators).call(this);
|
|
32
|
+
__classPrivateFieldGet(this, _PpChatbotRemoveCommand_instances, "m", _PpChatbotRemoveCommand_initOptionSets).call(this);
|
|
33
|
+
}
|
|
34
|
+
get name() {
|
|
35
|
+
return commands_1.default.CHATBOT_REMOVE;
|
|
36
|
+
}
|
|
37
|
+
get description() {
|
|
38
|
+
return 'Removes the specified chatbot';
|
|
39
|
+
}
|
|
40
|
+
commandAction(logger, args) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
if (this.verbose) {
|
|
43
|
+
logger.logToStderr(`Removing chatbot '${args.options.id || args.options.name}'...`);
|
|
44
|
+
}
|
|
45
|
+
if (args.options.confirm) {
|
|
46
|
+
yield this.deleteChatbot(args);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
const result = yield Cli_1.Cli.prompt({
|
|
50
|
+
type: 'confirm',
|
|
51
|
+
name: 'continue',
|
|
52
|
+
default: false,
|
|
53
|
+
message: `Are you sure you want to remove chatbot '${args.options.id || args.options.name}'?`
|
|
54
|
+
});
|
|
55
|
+
if (result.continue) {
|
|
56
|
+
yield this.deleteChatbot(args);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
getChatbotId(args) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
if (args.options.id) {
|
|
64
|
+
return args.options.id;
|
|
65
|
+
}
|
|
66
|
+
const options = {
|
|
67
|
+
environment: args.options.environment,
|
|
68
|
+
name: args.options.name,
|
|
69
|
+
output: 'json',
|
|
70
|
+
debug: this.debug,
|
|
71
|
+
verbose: this.verbose
|
|
72
|
+
};
|
|
73
|
+
const output = yield Cli_1.Cli.executeCommandWithOutput(PpChatbotGetCommand, { options: Object.assign(Object.assign({}, options), { _: [] }) });
|
|
74
|
+
const getBotOutput = JSON.parse(output.stdout);
|
|
75
|
+
return getBotOutput.botid;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
deleteChatbot(args) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
try {
|
|
81
|
+
const dynamicsApiUrl = yield powerPlatform_1.powerPlatform.getDynamicsInstanceApiUrl(args.options.environment, args.options.asAdmin);
|
|
82
|
+
const botId = yield this.getChatbotId(args);
|
|
83
|
+
const requestOptions = {
|
|
84
|
+
url: `${dynamicsApiUrl}/api/data/v9.1/bots(${botId})/Microsoft.Dynamics.CRM.PvaDeleteBot?tag=deprovisionbotondelete`,
|
|
85
|
+
headers: {
|
|
86
|
+
accept: 'application/json',
|
|
87
|
+
'content-type': 'application/json'
|
|
88
|
+
},
|
|
89
|
+
responseType: 'json'
|
|
90
|
+
};
|
|
91
|
+
yield request_1.default.post(requestOptions);
|
|
92
|
+
}
|
|
93
|
+
catch (err) {
|
|
94
|
+
this.handleRejectedODataJsonPromise(err);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
_PpChatbotRemoveCommand_instances = new WeakSet(), _PpChatbotRemoveCommand_initTelemetry = function _PpChatbotRemoveCommand_initTelemetry() {
|
|
100
|
+
this.telemetry.push((args) => {
|
|
101
|
+
Object.assign(this.telemetryProperties, {
|
|
102
|
+
id: typeof args.options.id !== 'undefined',
|
|
103
|
+
name: typeof args.options.name !== 'undefined',
|
|
104
|
+
asAdmin: !!args.options.asAdmin,
|
|
105
|
+
confirm: !!args.options.confirm
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
}, _PpChatbotRemoveCommand_initOptions = function _PpChatbotRemoveCommand_initOptions() {
|
|
109
|
+
this.options.unshift({
|
|
110
|
+
option: '-e, --environment <environment>'
|
|
111
|
+
}, {
|
|
112
|
+
option: '-i, --id [id]'
|
|
113
|
+
}, {
|
|
114
|
+
option: '-n, --name [name]'
|
|
115
|
+
}, {
|
|
116
|
+
option: '--asAdmin'
|
|
117
|
+
}, {
|
|
118
|
+
option: '--confirm'
|
|
119
|
+
});
|
|
120
|
+
}, _PpChatbotRemoveCommand_initOptionSets = function _PpChatbotRemoveCommand_initOptionSets() {
|
|
121
|
+
this.optionSets.push({ options: ['id', 'name'] });
|
|
122
|
+
}, _PpChatbotRemoveCommand_initValidators = function _PpChatbotRemoveCommand_initValidators() {
|
|
123
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
if (args.options.id && !validation_1.validation.isValidGuid(args.options.id)) {
|
|
125
|
+
return `${args.options.id} is not a valid GUID`;
|
|
126
|
+
}
|
|
127
|
+
return true;
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
module.exports = new PpChatbotRemoveCommand();
|
|
131
|
+
//# sourceMappingURL=chatbot-remove.js.map
|
|
@@ -0,0 +1,95 @@
|
|
|
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 _PpDataverseTableRowListCommand_instances, _PpDataverseTableRowListCommand_initTelemetry, _PpDataverseTableRowListCommand_initOptions, _PpDataverseTableRowListCommand_initOptionSets;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const powerPlatform_1 = require("../../../../utils/powerPlatform");
|
|
19
|
+
const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
|
|
20
|
+
const commands_1 = require("../../commands");
|
|
21
|
+
const request_1 = require("../../../../request");
|
|
22
|
+
const odata_1 = require("../../../../utils/odata");
|
|
23
|
+
class PpDataverseTableRowListCommand extends PowerPlatformCommand_1.default {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
_PpDataverseTableRowListCommand_instances.add(this);
|
|
27
|
+
__classPrivateFieldGet(this, _PpDataverseTableRowListCommand_instances, "m", _PpDataverseTableRowListCommand_initTelemetry).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _PpDataverseTableRowListCommand_instances, "m", _PpDataverseTableRowListCommand_initOptions).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PpDataverseTableRowListCommand_instances, "m", _PpDataverseTableRowListCommand_initOptionSets).call(this);
|
|
30
|
+
}
|
|
31
|
+
get name() {
|
|
32
|
+
return commands_1.default.DATAVERSE_TABLE_ROW_LIST;
|
|
33
|
+
}
|
|
34
|
+
get description() {
|
|
35
|
+
return 'Lists table rows for the given Dataverse table';
|
|
36
|
+
}
|
|
37
|
+
commandAction(logger, args) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (this.verbose) {
|
|
40
|
+
logger.logToStderr('Retrieving list of table rows');
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
const dynamicsApiUrl = yield powerPlatform_1.powerPlatform.getDynamicsInstanceApiUrl(args.options.environment, args.options.asAdmin);
|
|
44
|
+
const entitySetName = yield this.getEntitySetName(dynamicsApiUrl, args);
|
|
45
|
+
if (this.verbose) {
|
|
46
|
+
logger.logToStderr('Entity set name is: ' + entitySetName);
|
|
47
|
+
}
|
|
48
|
+
const response = yield odata_1.odata.getAllItems(`${dynamicsApiUrl}/api/data/v9.0/${entitySetName}`);
|
|
49
|
+
logger.log(response);
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
this.handleRejectedODataJsonPromise(err);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
getEntitySetName(dynamicsApiUrl, args) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
if (args.options.entitySetName) {
|
|
59
|
+
return args.options.entitySetName;
|
|
60
|
+
}
|
|
61
|
+
const requestOptions = {
|
|
62
|
+
url: `${dynamicsApiUrl}/api/data/v9.0/EntityDefinitions(LogicalName='${args.options.tableName}')?$select=EntitySetName`,
|
|
63
|
+
headers: {
|
|
64
|
+
accept: 'application/json;odata.metadata=none'
|
|
65
|
+
},
|
|
66
|
+
responseType: 'json'
|
|
67
|
+
};
|
|
68
|
+
const response = yield request_1.default.get(requestOptions);
|
|
69
|
+
return response.EntitySetName;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
_PpDataverseTableRowListCommand_instances = new WeakSet(), _PpDataverseTableRowListCommand_initTelemetry = function _PpDataverseTableRowListCommand_initTelemetry() {
|
|
74
|
+
this.telemetry.push((args) => {
|
|
75
|
+
Object.assign(this.telemetryProperties, {
|
|
76
|
+
entitySetName: typeof args.options.entitySetName !== 'undefined',
|
|
77
|
+
tableName: typeof args.options.tableName !== 'undefined',
|
|
78
|
+
asAdmin: !!args.options.asAdmin
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
}, _PpDataverseTableRowListCommand_initOptions = function _PpDataverseTableRowListCommand_initOptions() {
|
|
82
|
+
this.options.unshift({
|
|
83
|
+
option: '-e, --environment <environment>'
|
|
84
|
+
}, {
|
|
85
|
+
option: '--entitySetName [entitySetName]'
|
|
86
|
+
}, {
|
|
87
|
+
option: '--tableName [tableName]'
|
|
88
|
+
}, {
|
|
89
|
+
option: '--asAdmin'
|
|
90
|
+
});
|
|
91
|
+
}, _PpDataverseTableRowListCommand_initOptionSets = function _PpDataverseTableRowListCommand_initOptionSets() {
|
|
92
|
+
this.optionSets.push({ options: ['entitySetName', 'tableName'] });
|
|
93
|
+
};
|
|
94
|
+
module.exports = new PpDataverseTableRowListCommand();
|
|
95
|
+
//# sourceMappingURL=dataverse-table-row-list.js.map
|
|
@@ -0,0 +1,101 @@
|
|
|
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 _PpSolutionPublisherAddCommand_instances, _PpSolutionPublisherAddCommand_initTelemetry, _PpSolutionPublisherAddCommand_initOptions, _PpSolutionPublisherAddCommand_initValidators;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const request_1 = require("../../../../request");
|
|
19
|
+
const powerPlatform_1 = require("../../../../utils/powerPlatform");
|
|
20
|
+
const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
|
|
21
|
+
const commands_1 = require("../../commands");
|
|
22
|
+
class PpSolutionPublisherAddCommand extends PowerPlatformCommand_1.default {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
_PpSolutionPublisherAddCommand_instances.add(this);
|
|
26
|
+
__classPrivateFieldGet(this, _PpSolutionPublisherAddCommand_instances, "m", _PpSolutionPublisherAddCommand_initTelemetry).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _PpSolutionPublisherAddCommand_instances, "m", _PpSolutionPublisherAddCommand_initOptions).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _PpSolutionPublisherAddCommand_instances, "m", _PpSolutionPublisherAddCommand_initValidators).call(this);
|
|
29
|
+
}
|
|
30
|
+
get name() {
|
|
31
|
+
return commands_1.default.SOLUTION_PUBLISHER_ADD;
|
|
32
|
+
}
|
|
33
|
+
get description() {
|
|
34
|
+
return 'Adds a specified publisher in a given environment';
|
|
35
|
+
}
|
|
36
|
+
commandAction(logger, args) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (this.verbose) {
|
|
39
|
+
logger.logToStderr(`Adding new publisher '${args.options.name}'...`);
|
|
40
|
+
}
|
|
41
|
+
try {
|
|
42
|
+
const dynamicsApiUrl = yield powerPlatform_1.powerPlatform.getDynamicsInstanceApiUrl(args.options.environment, args.options.asAdmin);
|
|
43
|
+
const requestOptions = {
|
|
44
|
+
url: `${dynamicsApiUrl}/api/data/v9.0/publishers`,
|
|
45
|
+
headers: {
|
|
46
|
+
accept: 'application/json;odata.metadata=none'
|
|
47
|
+
},
|
|
48
|
+
responseType: 'json',
|
|
49
|
+
data: {
|
|
50
|
+
uniquename: args.options.name,
|
|
51
|
+
friendlyname: args.options.displayName,
|
|
52
|
+
customizationprefix: args.options.prefix,
|
|
53
|
+
customizationoptionvalueprefix: args.options.choiceValuePrefix
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
yield request_1.default.post(requestOptions);
|
|
57
|
+
}
|
|
58
|
+
catch (err) {
|
|
59
|
+
this.handleRejectedODataJsonPromise(err);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
_PpSolutionPublisherAddCommand_instances = new WeakSet(), _PpSolutionPublisherAddCommand_initTelemetry = function _PpSolutionPublisherAddCommand_initTelemetry() {
|
|
65
|
+
this.telemetry.push((args) => {
|
|
66
|
+
Object.assign(this.telemetryProperties, {
|
|
67
|
+
asAdmin: !!args.options.asAdmin
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
}, _PpSolutionPublisherAddCommand_initOptions = function _PpSolutionPublisherAddCommand_initOptions() {
|
|
71
|
+
this.options.unshift({
|
|
72
|
+
option: '-e, --environment <environment>'
|
|
73
|
+
}, {
|
|
74
|
+
option: '-n, --name <name>'
|
|
75
|
+
}, {
|
|
76
|
+
option: '--displayName <displayName>'
|
|
77
|
+
}, {
|
|
78
|
+
option: '--prefix <prefix>'
|
|
79
|
+
}, {
|
|
80
|
+
option: '--choiceValuePrefix <choiceValuePrefix>'
|
|
81
|
+
}, {
|
|
82
|
+
option: '--asAdmin'
|
|
83
|
+
});
|
|
84
|
+
}, _PpSolutionPublisherAddCommand_initValidators = function _PpSolutionPublisherAddCommand_initValidators() {
|
|
85
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
if (isNaN(args.options.choiceValuePrefix) || args.options.choiceValuePrefix < 10000 || args.options.choiceValuePrefix > 99999 || !Number.isInteger(args.options.choiceValuePrefix)) {
|
|
87
|
+
return 'Option choiceValuePrefix should be an integer between 10000 and 99999.';
|
|
88
|
+
}
|
|
89
|
+
const nameRegEx = new RegExp(/^[a-zA-Z_][A-Za-z0-9_]+$/);
|
|
90
|
+
if (!nameRegEx.test(args.options.name)) {
|
|
91
|
+
return 'Option name may only consist of alphanumeric characters and underscores. The first character cannot be a number.';
|
|
92
|
+
}
|
|
93
|
+
const prefixRegEx = new RegExp(/^(?!mscrm.*$)[a-zA-Z][A-Za-z0-9]{1,7}$/);
|
|
94
|
+
if (!prefixRegEx.test(args.options.prefix)) {
|
|
95
|
+
return `Option prefix may only consist of alphanumeric characters. The first character cannot be a number and may not start with 'mscrm'. It must be between 2 and 8 characters long.`;
|
|
96
|
+
}
|
|
97
|
+
return true;
|
|
98
|
+
}));
|
|
99
|
+
};
|
|
100
|
+
module.exports = new PpSolutionPublisherAddCommand();
|
|
101
|
+
//# sourceMappingURL=solution-publisher-add.js.map
|
package/dist/m365/pp/commands.js
CHANGED
|
@@ -6,10 +6,13 @@ exports.default = {
|
|
|
6
6
|
CARD_GET: `${prefix} card get`,
|
|
7
7
|
CARD_LIST: `${prefix} card list`,
|
|
8
8
|
CARD_REMOVE: `${prefix} card remove`,
|
|
9
|
+
CHATBOT_GET: `${prefix} chatbot get`,
|
|
9
10
|
CHATBOT_LIST: `${prefix} chatbot list`,
|
|
11
|
+
CHATBOT_REMOVE: `${prefix} chatbot remove`,
|
|
10
12
|
DATAVERSE_TABLE_LIST: `${prefix} dataverse table list`,
|
|
11
13
|
DATAVERSE_TABLE_GET: `${prefix} dataverse table get`,
|
|
12
14
|
DATAVERSE_TABLE_REMOVE: `${prefix} dataverse table remove`,
|
|
15
|
+
DATAVERSE_TABLE_ROW_LIST: `${prefix} dataverse table row list`,
|
|
13
16
|
ENVIRONMENT_GET: `${prefix} environment get`,
|
|
14
17
|
ENVIRONMENT_LIST: `${prefix} environment list`,
|
|
15
18
|
GATEWAY_GET: `${prefix} gateway get`,
|
|
@@ -19,6 +22,7 @@ exports.default = {
|
|
|
19
22
|
SOLUTION_GET: `${prefix} solution get`,
|
|
20
23
|
SOLUTION_LIST: `${prefix} solution list`,
|
|
21
24
|
SOLUTION_REMOVE: `${prefix} solution remove`,
|
|
25
|
+
SOLUTION_PUBLISHER_ADD: `${prefix} solution publisher add`,
|
|
22
26
|
SOLUTION_PUBLISHER_GET: `${prefix} solution publisher get`,
|
|
23
27
|
SOLUTION_PUBLISHER_LIST: `${prefix} solution publisher list`,
|
|
24
28
|
SOLUTION_PUBLISHER_REMOVE: `${prefix} solution publisher remove`,
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const odata_1 = require("../../../../utils/odata");
|
|
13
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
14
|
+
const commands_1 = require("../../commands");
|
|
15
|
+
class PurviewRetentionLabelListCommand extends GraphCommand_1.default {
|
|
16
|
+
get name() {
|
|
17
|
+
return commands_1.default.RETENTIONLABEL_LIST;
|
|
18
|
+
}
|
|
19
|
+
get description() {
|
|
20
|
+
return 'Get a list of retention labels';
|
|
21
|
+
}
|
|
22
|
+
defaultProperties() {
|
|
23
|
+
return ['id', 'displayName', 'isInUse'];
|
|
24
|
+
}
|
|
25
|
+
commandAction(logger) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
try {
|
|
28
|
+
const items = yield odata_1.odata.getAllItems(`${this.resource}/beta/security/labels/retentionLabels`);
|
|
29
|
+
logger.log(items);
|
|
30
|
+
}
|
|
31
|
+
catch (err) {
|
|
32
|
+
this.handleRejectedODataJsonPromise(err);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
module.exports = new PurviewRetentionLabelListCommand();
|
|
38
|
+
//# sourceMappingURL=retentionlabel-list.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.16.1.js.map
|
|
@@ -62,7 +62,8 @@ class SpfxProjectDoctorCommand extends base_project_command_1.BaseProjectCommand
|
|
|
62
62
|
'1.14.0',
|
|
63
63
|
'1.15.0',
|
|
64
64
|
'1.15.2',
|
|
65
|
-
'1.16.0'
|
|
65
|
+
'1.16.0',
|
|
66
|
+
'1.16.1'
|
|
66
67
|
];
|
|
67
68
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
|
|
68
69
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FN006006_CFG_PS_features = void 0;
|
|
4
|
+
const JsonRule_1 = require("../../JsonRule");
|
|
5
|
+
class FN006006_CFG_PS_features extends JsonRule_1.JsonRule {
|
|
6
|
+
get id() {
|
|
7
|
+
return 'FN006006';
|
|
8
|
+
}
|
|
9
|
+
get title() {
|
|
10
|
+
return 'package-solution.json features';
|
|
11
|
+
}
|
|
12
|
+
get description() {
|
|
13
|
+
return `In package-solution.json add features for components`;
|
|
14
|
+
}
|
|
15
|
+
get resolution() {
|
|
16
|
+
return '';
|
|
17
|
+
}
|
|
18
|
+
get resolutionType() {
|
|
19
|
+
return 'json';
|
|
20
|
+
}
|
|
21
|
+
get severity() {
|
|
22
|
+
return 'Required';
|
|
23
|
+
}
|
|
24
|
+
get file() {
|
|
25
|
+
return './config/package-solution.json';
|
|
26
|
+
}
|
|
27
|
+
visit(project, findings) {
|
|
28
|
+
if (!project.packageSolutionJson ||
|
|
29
|
+
!project.packageSolutionJson.solution ||
|
|
30
|
+
// if project already has features defined, we don't need to do anything
|
|
31
|
+
(project.packageSolutionJson.solution.features && project.packageSolutionJson.solution.features.length > 0) ||
|
|
32
|
+
// if there are no components, we don't need to do anything
|
|
33
|
+
!project.manifests || project.manifests.length < 1) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const occurrences = [];
|
|
37
|
+
project.manifests.forEach(manifest => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
const resolution = {
|
|
40
|
+
solution: {
|
|
41
|
+
features: [
|
|
42
|
+
{
|
|
43
|
+
title: `${(_a = project.packageJson) === null || _a === void 0 ? void 0 : _a.name} ${manifest.alias} Feature`,
|
|
44
|
+
description: `The feature that activates ${manifest.alias} from the ${(_b = project.packageJson) === null || _b === void 0 ? void 0 : _b.name} solution.`,
|
|
45
|
+
id: manifest.id,
|
|
46
|
+
version: project.packageSolutionJson.solution.version,
|
|
47
|
+
componentIds: [manifest.id]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const node = this.getAstNodeFromFile(project.packageSolutionJson, 'solution');
|
|
53
|
+
occurrences.push({
|
|
54
|
+
file: this.file,
|
|
55
|
+
resolution: JSON.stringify(resolution, null, 2),
|
|
56
|
+
position: this.getPositionFromNode(node)
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
this.addFindingWithOccurrences(occurrences, findings);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.FN006006_CFG_PS_features = FN006006_CFG_PS_features;
|
|
63
|
+
//# sourceMappingURL=FN006006_CFG_PS_features.js.map
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015009_FILE_config_sass_json.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FN015009_FILE_config_sass_json = void 0;
|
|
4
|
+
const FileAddRemoveRule_1 = require("./FileAddRemoveRule");
|
|
5
|
+
class FN015009_FILE_config_sass_json extends FileAddRemoveRule_1.FileAddRemoveRule {
|
|
6
|
+
constructor(add, contents) {
|
|
7
|
+
super('./config/sass.json', add, contents);
|
|
8
|
+
}
|
|
9
|
+
get id() {
|
|
10
|
+
return 'FN015009';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.FN015009_FILE_config_sass_json = FN015009_FILE_config_sass_json;
|
|
14
|
+
//# sourceMappingURL=FN015009_FILE_config_sass_json.js.map
|
|
@@ -25,6 +25,7 @@ const FN002009_DEVDEP_microsoft_sp_tslint_rules_1 = require("./rules/FN002009_DE
|
|
|
25
25
|
const FN002019_DEVDEP_spfx_fast_serve_helpers_1 = require("./rules/FN002019_DEVDEP_spfx_fast_serve_helpers");
|
|
26
26
|
const FN006004_CFG_PS_developer_1 = require("./rules/FN006004_CFG_PS_developer");
|
|
27
27
|
const FN006005_CFG_PS_metadata_1 = require("./rules/FN006005_CFG_PS_metadata");
|
|
28
|
+
const FN006006_CFG_PS_features_1 = require("./rules/FN006006_CFG_PS_features");
|
|
28
29
|
const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
|
|
29
30
|
const FN014008_CODE_launch_hostedWorkbench_type_1 = require("./rules/FN014008_CODE_launch_hostedWorkbench_type");
|
|
30
31
|
module.exports = [
|
|
@@ -53,6 +54,7 @@ module.exports = [
|
|
|
53
54
|
new FN002019_DEVDEP_spfx_fast_serve_helpers_1.FN002019_DEVDEP_spfx_fast_serve_helpers('1.14.0'),
|
|
54
55
|
new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.14.0'),
|
|
55
56
|
new FN006005_CFG_PS_metadata_1.FN006005_CFG_PS_metadata(),
|
|
57
|
+
new FN006006_CFG_PS_features_1.FN006006_CFG_PS_features(),
|
|
56
58
|
new FN010001_YORC_version_1.FN010001_YORC_version('1.14.0'),
|
|
57
59
|
new FN014008_CODE_launch_hostedWorkbench_type_1.FN014008_CODE_launch_hostedWorkbench_type('pwa-chrome')
|
|
58
60
|
];
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
const FN015009_FILE_config_sass_json_1 = require("./rules/FN015009_FILE_config_sass_json");
|
|
29
|
+
module.exports = [
|
|
30
|
+
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.16.1'),
|
|
31
|
+
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.16.1'),
|
|
32
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.16.1'),
|
|
33
|
+
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.16.1'),
|
|
34
|
+
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.16.1'),
|
|
35
|
+
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.16.1'),
|
|
36
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.16.1'),
|
|
37
|
+
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.16.1'),
|
|
38
|
+
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.16.1'),
|
|
39
|
+
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.16.1'),
|
|
40
|
+
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.16.1'),
|
|
41
|
+
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.16.1'),
|
|
42
|
+
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.16.1'),
|
|
43
|
+
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.16.1'),
|
|
44
|
+
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.16.1'),
|
|
45
|
+
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.16.1'),
|
|
46
|
+
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.16.1'),
|
|
47
|
+
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.16.1'),
|
|
48
|
+
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.16.1'),
|
|
49
|
+
new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.16.1'),
|
|
50
|
+
new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.16.1'),
|
|
51
|
+
new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.16.1'),
|
|
52
|
+
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.16.1'),
|
|
53
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.16.1'),
|
|
54
|
+
new FN010001_YORC_version_1.FN010001_YORC_version('1.16.1'),
|
|
55
|
+
new FN015009_FILE_config_sass_json_1.FN015009_FILE_config_sass_json(true, `{
|
|
56
|
+
"$schema": "https://developer.microsoft.com/json-schemas/core-build/sass.schema.json"
|
|
57
|
+
}`)
|
|
58
|
+
];
|
|
59
|
+
//# sourceMappingURL=upgrade-1.16.1.js.map
|
|
@@ -64,7 +64,8 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
|
|
|
64
64
|
'1.14.0',
|
|
65
65
|
'1.15.0',
|
|
66
66
|
'1.15.2',
|
|
67
|
-
'1.16.0'
|
|
67
|
+
'1.16.0',
|
|
68
|
+
'1.16.1'
|
|
68
69
|
];
|
|
69
70
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
|
|
70
71
|
__classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
|
|
@@ -443,6 +443,21 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
443
443
|
range: '^4',
|
|
444
444
|
fix: 'npm i -g yo@4'
|
|
445
445
|
}
|
|
446
|
+
},
|
|
447
|
+
'1.16.1': {
|
|
448
|
+
gulpCli: {
|
|
449
|
+
range: '^1 || ^2',
|
|
450
|
+
fix: 'npm i -g gulp-cli@2'
|
|
451
|
+
},
|
|
452
|
+
node: {
|
|
453
|
+
range: '>=16.13.0 <17.0.0',
|
|
454
|
+
fix: 'Install Node.js >=16.13.0 <17.0.0'
|
|
455
|
+
},
|
|
456
|
+
sp: SharePointVersion.SPO,
|
|
457
|
+
yo: {
|
|
458
|
+
range: '^4',
|
|
459
|
+
fix: 'npm i -g yo@4'
|
|
460
|
+
}
|
|
446
461
|
}
|
|
447
462
|
};
|
|
448
463
|
__classPrivateFieldGet(this, _SpfxDoctorCommand_instances, "m", _SpfxDoctorCommand_initTelemetry).call(this);
|