@pnp/cli-microsoft365 5.1.0-beta.6ab68db → 5.1.0-beta.7b2911b

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 (42) hide show
  1. package/.eslintrc.js +1 -0
  2. package/dist/Auth.js +10 -0
  3. package/dist/Command.js +3 -0
  4. package/dist/cli/Cli.js +13 -0
  5. package/dist/m365/aad/commands/app/app-add.js +68 -10
  6. package/dist/m365/aad/commands/app/{app-delete.js → app-remove.js} +9 -5
  7. package/dist/m365/aad/commands/app/{app-role-delete.js → app-role-remove.js} +11 -7
  8. package/dist/m365/aad/commands.js +3 -1
  9. package/dist/m365/base/PowerPlatformCommand.js +10 -0
  10. package/dist/m365/cli/commands/config/config-set.js +3 -2
  11. package/dist/m365/pp/commands/managementapp/managementapp-add.js +98 -0
  12. package/dist/m365/pp/commands.js +7 -0
  13. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001033_DEP_tslib.js +14 -0
  14. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023002_GITIGNORE_heft.js +40 -0
  15. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.12.0.js +0 -2
  16. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.0-beta.1.js +63 -0
  17. package/dist/m365/spfx/commands/project/project-upgrade.js +24 -19
  18. package/dist/m365/spfx/commands/spfx-doctor.js +6 -0
  19. package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +66 -0
  20. package/dist/m365/spo/commands.js +1 -0
  21. package/dist/m365/tenant/commands.js +1 -6
  22. package/dist/settingsNames.js +1 -0
  23. package/dist/utils/formatting.js +3 -0
  24. package/docs/docs/cmd/aad/app/{app-delete.md → app-remove.md} +15 -9
  25. package/docs/docs/cmd/aad/app/{app-role-delete.md → app-role-remove.md} +25 -19
  26. package/docs/docs/cmd/pp/managementapp/managementapp-add.md +50 -0
  27. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  28. package/docs/docs/cmd/spfx/spfx-doctor.md +4 -1
  29. package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.md +27 -0
  30. package/npm-shrinkwrap.json +270 -4
  31. package/package.json +4 -2
  32. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015006_FILE_editorconfig.js +0 -14
  33. package/dist/m365/tenant/commands/auditlog/auditlog-report.js +0 -231
  34. package/dist/m365/tenant/commands/service/service-list.js +0 -41
  35. package/dist/m365/tenant/commands/service/service-message-list.js +0 -55
  36. package/dist/m365/tenant/commands/service/service-report-historicalservicestatus.js +0 -54
  37. package/dist/m365/tenant/commands/status/status-list.js +0 -55
  38. package/docs/docs/cmd/tenant/auditlog/auditlog-report.md +0 -61
  39. package/docs/docs/cmd/tenant/service/service-list.md +0 -25
  40. package/docs/docs/cmd/tenant/service/service-message-list.md +0 -34
  41. package/docs/docs/cmd/tenant/service/service-report-historicalservicestatus.md +0 -38
  42. package/docs/docs/cmd/tenant/status/status-list.md +0 -34
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Auth_1 = require("../../../../Auth");
4
- const Command_1 = require("../../../../Command");
5
- const request_1 = require("../../../../request");
6
- const utils_1 = require("../../../../utils");
7
- const commands_1 = require("../../commands");
8
- class TenantServiceListCommand extends Command_1.default {
9
- get name() {
10
- return commands_1.default.SERVICE_LIST;
11
- }
12
- get description() {
13
- return 'Gets services available in Microsoft 365';
14
- }
15
- defaultProperties() {
16
- return ['Id', 'DisplayName'];
17
- }
18
- commandAction(logger, args, cb) {
19
- if (this.verbose) {
20
- logger.logToStderr(`Getting the health status of the different services in Microsoft 365.`);
21
- }
22
- const serviceUrl = 'https://manage.office.com/api/v1.0';
23
- const statusEndpoint = 'ServiceComms/Services';
24
- const tenantId = utils_1.accessToken.getTenantIdFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
25
- const requestOptions = {
26
- url: `${serviceUrl}/${tenantId}/${statusEndpoint}`,
27
- headers: {
28
- accept: 'application/json;odata.metadata=none'
29
- },
30
- responseType: 'json'
31
- };
32
- request_1.default
33
- .get(requestOptions)
34
- .then((res) => {
35
- logger.log(res.value);
36
- cb();
37
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
38
- }
39
- }
40
- module.exports = new TenantServiceListCommand();
41
- //# sourceMappingURL=service-list.js.map
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Auth_1 = require("../../../../Auth");
4
- const Command_1 = require("../../../../Command");
5
- const request_1 = require("../../../../request");
6
- const utils_1 = require("../../../../utils");
7
- const commands_1 = require("../../commands");
8
- class TenantServiceMessageListCommand extends Command_1.default {
9
- get name() {
10
- return commands_1.default.SERVICE_MESSAGE_LIST;
11
- }
12
- get description() {
13
- return 'Gets service messages Microsoft 365';
14
- }
15
- defaultProperties() {
16
- return ['Workload', 'Id', 'Message'];
17
- }
18
- commandAction(logger, args, cb) {
19
- if (this.verbose) {
20
- logger.logToStderr(`Getting service messages...`);
21
- }
22
- const serviceUrl = 'https://manage.office.com/api/v1.0';
23
- const statusEndpoint = args.options.workload ? `ServiceComms/Messages?$filter=Workload eq '${encodeURIComponent(args.options.workload)}'` : 'ServiceComms/Messages';
24
- const tenantId = utils_1.accessToken.getTenantIdFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
25
- const requestOptions = {
26
- url: `${serviceUrl}/${tenantId}/${statusEndpoint}`,
27
- headers: {
28
- accept: 'application/json;odata.metadata=none'
29
- },
30
- responseType: 'json'
31
- };
32
- request_1.default
33
- .get(requestOptions)
34
- .then((res) => {
35
- res.value.forEach(r => {
36
- r.Workload = r.Id.startsWith('MC') ? r.AffectedWorkloadDisplayNames.join(', ') : r.Workload;
37
- r.Id = r.Id;
38
- r.Message = r.Id.startsWith('MC') ? r.Title : r.ImpactDescription;
39
- });
40
- logger.log(res.value);
41
- cb();
42
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
43
- }
44
- options() {
45
- const options = [
46
- {
47
- option: '-w, --workload [workload] '
48
- }
49
- ];
50
- const parentOptions = super.options();
51
- return options.concat(parentOptions);
52
- }
53
- }
54
- module.exports = new TenantServiceMessageListCommand();
55
- //# sourceMappingURL=service-message-list.js.map
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Auth_1 = require("../../../../Auth");
4
- const Command_1 = require("../../../../Command");
5
- const request_1 = require("../../../../request");
6
- const utils_1 = require("../../../../utils");
7
- const commands_1 = require("../../commands");
8
- class TenantServiceReportHistoricalServiceStatusCommand extends Command_1.default {
9
- get name() {
10
- return commands_1.default.SERVICE_REPORT_HISTORICALSERVICESTATUS;
11
- }
12
- get description() {
13
- return 'Gets the historical service status of Microsoft 365 Services of the last 7 days';
14
- }
15
- getTelemetryProperties(args) {
16
- const telemetryProps = super.getTelemetryProperties(args);
17
- telemetryProps.workload = args.options.workload;
18
- return telemetryProps;
19
- }
20
- defaultProperties() {
21
- return ['WorkloadDisplayName', 'StatusDisplayName', 'StatusTime'];
22
- }
23
- commandAction(logger, args, cb) {
24
- if (this.verbose) {
25
- logger.logToStderr(`Gets the historical service status of Microsoft 365 Services of the last 7 days`);
26
- }
27
- const serviceUrl = 'https://manage.office.com/api/v1.0';
28
- const statusEndpoint = typeof args.options.workload !== 'undefined' ? `ServiceComms/HistoricalStatus?$filter=Workload eq '${encodeURIComponent(args.options.workload)}'` : 'ServiceComms/HistoricalStatus';
29
- const tenantId = utils_1.accessToken.getTenantIdFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
30
- const requestOptions = {
31
- url: `${serviceUrl}/${tenantId}/${statusEndpoint}`,
32
- headers: {
33
- accept: 'application/json;odata.metadata=none'
34
- },
35
- responseType: 'json'
36
- };
37
- request_1.default.get(requestOptions)
38
- .then((res) => {
39
- logger.log(res);
40
- cb();
41
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
42
- }
43
- options() {
44
- const options = [
45
- {
46
- option: '-w, --workload [workload]'
47
- }
48
- ];
49
- const parentOptions = super.options();
50
- return options.concat(parentOptions);
51
- }
52
- }
53
- module.exports = new TenantServiceReportHistoricalServiceStatusCommand();
54
- //# sourceMappingURL=service-report-historicalservicestatus.js.map
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Auth_1 = require("../../../../Auth");
4
- const Command_1 = require("../../../../Command");
5
- const request_1 = require("../../../../request");
6
- const utils_1 = require("../../../../utils");
7
- const commands_1 = require("../../commands");
8
- class TenantStatusListCommand extends Command_1.default {
9
- get name() {
10
- return commands_1.default.STATUS_LIST;
11
- }
12
- get description() {
13
- return 'Gets health status of the different services in Microsoft 365';
14
- }
15
- getTelemetryProperties(args) {
16
- const telemetryProps = super.getTelemetryProperties(args);
17
- telemetryProps.workload = args.options.workload;
18
- return telemetryProps;
19
- }
20
- defaultProperties() {
21
- return ['WorkloadDisplayName', 'StatusDisplayName'];
22
- }
23
- commandAction(logger, args, cb) {
24
- if (this.verbose) {
25
- logger.logToStderr(`Getting the health status of the different services in Microsoft 365.`);
26
- }
27
- const serviceUrl = 'https://manage.office.com/api/v1.0';
28
- const statusEndpoint = typeof args.options.workload !== 'undefined' ? `ServiceComms/CurrentStatus?$filter=Workload eq '${encodeURIComponent(args.options.workload)}'` : 'ServiceComms/CurrentStatus';
29
- const tenantId = utils_1.accessToken.getTenantIdFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
30
- const requestOptions = {
31
- url: `${serviceUrl}/${tenantId}/${statusEndpoint}`,
32
- headers: {
33
- accept: 'application/json;odata.metadata=none'
34
- },
35
- responseType: 'json'
36
- };
37
- request_1.default
38
- .get(requestOptions)
39
- .then((res) => {
40
- logger.log(res.value);
41
- cb();
42
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
43
- }
44
- options() {
45
- const options = [
46
- {
47
- option: '-w, --workload [workload]'
48
- }
49
- ];
50
- const parentOptions = super.options();
51
- return options.concat(parentOptions);
52
- }
53
- }
54
- module.exports = new TenantStatusListCommand();
55
- //# sourceMappingURL=status-list.js.map
@@ -1,61 +0,0 @@
1
- # tenant auditlog report
2
-
3
- Gets audit logs from the Office 365 Management API
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant auditlog report [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-c, --contentType <contentType>`
14
- : Audit content type of logs to be retrieved, should be one of the following: `AzureActiveDirectory`, `Exchange`, `SharePoint`, `General`, `DLP`.
15
-
16
- `-s, --startTime [startTime]`
17
- : Start time of logs to be retrieved. Start time and end time must be less than or equal to 24 hours apart. Start time is mandatory if End time is specified.
18
-
19
- `-e, --endTime [endTime]`
20
- : End time of logs to be retrieved. Start time and end time must be less than or equal to 24 hours apart. If End time is not specified, command will assume the End time to be 24 hours from the specified Start time.
21
-
22
- --8<-- "docs/cmd/_global.md"
23
-
24
- ## Remarks
25
-
26
- By default, if `startTime` and `endTime` are not mentioned, then the content available in the last **24 hours** is returned. `startTime` and `endTime` must be less than or equal to **24 hours** apart, with the `startTime` prior to `endTime` and `startTime` no more than 7 days in the past.
27
-
28
- If `endTime` is not specified, command will assume the `endTime` to be **24 hours** from the specified `startTime`.
29
- `startTime` is mandatory if `endTime` is specified.
30
-
31
- `DLP` audit log data is only available to users that have been granted “Read DLP sensitive data” permission. Otherwise you will get `Error: Request failed with status code 401`
32
-
33
- ## Examples
34
-
35
- Gets audit logs from the Office 365 Management API for the `Exchange` content type.
36
-
37
- ```sh
38
- m365 tenant auditlog report --contentType "Exchange"
39
- ```
40
-
41
- Gets audit logs from the Office 365 Management API for the `Exchange` content type in the date range between `2020-12-13` and `2020-12-14`
42
-
43
- ```sh
44
- m365 tenant auditlog report --contentType "Exchange" --startTime "2020-12-13" --endTime "2020-12-14"
45
- ```
46
-
47
- Gets audit logs from the Office 365 Management API for the `Exchange` content type between `15:00` hours and `16:00` hours on `2020-12-13`
48
-
49
- ```sh
50
- m365 tenant auditlog report --contentType "Exchange" --startTime "2020-12-13T15:00:00" --endTime "2020-12-13T16:00:00"
51
- ```
52
-
53
- Gets audit logs from the Office 365 Management API for the `Exchange` content type between `23:00` hours on `2020-12-13` and `05:00` hours on `2020-12-14`
54
-
55
- ```sh
56
- m365 tenant auditlog report --contentType "Exchange" --startTime "2020-12-13T23:00:00" --endTime "2020-12-14T05:00:00"
57
- ```
58
-
59
- ## More information
60
-
61
- - Office 365 Management Activity API reference: [https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference](https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference)
@@ -1,25 +0,0 @@
1
- # tenant service list
2
-
3
- Gets services available in Microsoft 365
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant service list [options]
9
- ```
10
-
11
- ## Options
12
-
13
- --8<-- "docs/cmd/_global.md"
14
-
15
- ## Examples
16
-
17
- Get services available in Microsoft 365
18
-
19
- ```sh
20
- m365 tenant service list
21
- ```
22
-
23
- ## More information
24
-
25
- - Microsoft 365 Service Communications API reference: [https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-services](https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-services)
@@ -1,34 +0,0 @@
1
- # tenant service message list
2
-
3
- Gets service messages Microsoft 365
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant service message list [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-w, --workload [workload]`
14
- : Retrieve service messages for the particular workload. If not provided, retrieves messages for all workloads
15
-
16
- --8<-- "docs/cmd/_global.md"
17
-
18
- ## Examples
19
-
20
- Get service messages of all services in Microsoft 365
21
-
22
- ```sh
23
- m365 tenant service message list
24
- ```
25
-
26
- Get service messages for Microsoft Teams
27
-
28
- ```sh
29
- m365 tenant service message list --workload microsoftteams
30
- ```
31
-
32
- ## More information
33
-
34
- - Microsoft 365 Service Communications API reference: [https://docs.microsoft.com/office/office-365-management-api/office-365-service-communications-api-reference#get-messages](https://docs.microsoft.com/office/office-365-management-api/office-365-service-communications-api-reference#get-messages)
@@ -1,38 +0,0 @@
1
- # tenant service report historicalservicestatus
2
-
3
- Gets the historical service status of Microsoft 365 Services of the last 7 days
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant service report historicalservicestatus [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-w, --workload [workload]`
14
- : Retrieve the historical service status for the particular service. If not provided, the historical service status of all services will be returned.
15
-
16
- --8<-- "docs/cmd/_global.md"
17
-
18
- ## Remarks
19
-
20
- To get the name of the particular workload for use with the workload option, execute `m365 tenant service report historicalservicestatus --output json` and get the value of the `Workload` property for the particular service.
21
-
22
- ## Examples
23
-
24
- Gets the historical service status of Microsoft 365 Services of the last 7 days
25
-
26
- ```sh
27
- m365 tenant service report historicalservicestatus
28
- ```
29
-
30
- Gets the historical service status of Microsoft Teams for the last 7 days
31
-
32
- ```sh
33
- m365 tenant service report historicalservicestatus --workload "microsoftteams"
34
- ```
35
-
36
- ## More information
37
-
38
- - Microsoft 365 Service Communications API reference: [https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-historical-status](https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-historical-status)
@@ -1,34 +0,0 @@
1
- # tenant status list
2
-
3
- Gets health status of the different services in Microsoft 365
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant status list [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-w, --workload [workload]`
14
- : Retrieve service status for the specified service. If not provided, will list the current service status of all services
15
-
16
- --8<-- "docs/cmd/_global.md"
17
-
18
- ## Examples
19
-
20
- Gets health status of the different services in Microsoft 365
21
-
22
- ```sh
23
- m365 tenant status list
24
- ```
25
-
26
- Gets health status for SharePoint Online
27
-
28
- ```sh
29
- m365 tenant status list --workload "SharePoint"
30
- ```
31
-
32
- ## More information
33
-
34
- - Microsoft 365 Service Communications API reference: [https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-current-status](https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-current-status)