@pnp/cli-microsoft365 4.1.0-beta.8f25ee2 → 4.2.0-beta.148750f
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/README.md +6 -5
- package/dist/cli/Cli.js +1 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +5 -8
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +6 -3
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +3 -3
- package/dist/m365/aad/commands/sp/sp-get.js +44 -21
- package/dist/m365/pa/commands/connector/connector-export.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/Utils.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002017_DEVDEP_microsoft_rush_stack_compiler_3_7.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002018_DEVDEP_microsoft_rush_stack_compiler_3_9.js +17 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015007_FILE_config_copy_assets_json.js +17 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.13.0-beta.20.js → upgrade-1.13.0.js} +43 -25
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +21 -1
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +90 -0
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/report/report-pstncalls.js +1 -1
- package/dist/m365/teams/commands/user/user-app-list.js +8 -6
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.md +2 -1
- package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.md +3 -2
- package/docs/docs/cmd/aad/sp/sp-get.md +2 -1
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.md +39 -0
- package/docs/docs/cmd/teams/report/report-pstncalls.md +4 -3
- package/npm-shrinkwrap.json +485 -481
- package/package.json +19 -20
- package/dist/m365/teams/UserTeamsApp.js +0 -3
|
@@ -23,7 +23,7 @@ class TeamsUserAppListCommand extends GraphItemsListCommand_1.GraphItemsListComm
|
|
|
23
23
|
.getUserId(args)
|
|
24
24
|
.then((_userId) => {
|
|
25
25
|
userId = _userId.value;
|
|
26
|
-
const endpoint = `${this.resource}/v1.0/users/${encodeURIComponent(userId)}/teamwork/installedApps`;
|
|
26
|
+
const endpoint = `${this.resource}/v1.0/users/${encodeURIComponent(userId)}/teamwork/installedApps?$expand=teamsAppDefinition`;
|
|
27
27
|
return this.getAllItems(endpoint, logger, true);
|
|
28
28
|
})
|
|
29
29
|
.then(() => {
|
|
@@ -39,7 +39,9 @@ class TeamsUserAppListCommand extends GraphItemsListCommand_1.GraphItemsListComm
|
|
|
39
39
|
logger.log(this.items.map(i => {
|
|
40
40
|
return {
|
|
41
41
|
id: i.id,
|
|
42
|
-
appId: i.appId
|
|
42
|
+
appId: i.appId,
|
|
43
|
+
displayName: i.teamsAppDefinition.displayName,
|
|
44
|
+
version: i.teamsAppDefinition.version
|
|
43
45
|
};
|
|
44
46
|
}));
|
|
45
47
|
}
|
|
@@ -62,10 +64,10 @@ class TeamsUserAppListCommand extends GraphItemsListCommand_1.GraphItemsListComm
|
|
|
62
64
|
options() {
|
|
63
65
|
const options = [
|
|
64
66
|
{
|
|
65
|
-
option: '--userId'
|
|
67
|
+
option: '--userId [userId]'
|
|
66
68
|
},
|
|
67
69
|
{
|
|
68
|
-
option: '--userName'
|
|
70
|
+
option: '--userName [userName]'
|
|
69
71
|
}
|
|
70
72
|
];
|
|
71
73
|
const parentOptions = super.options();
|
|
@@ -73,10 +75,10 @@ class TeamsUserAppListCommand extends GraphItemsListCommand_1.GraphItemsListComm
|
|
|
73
75
|
}
|
|
74
76
|
validate(args) {
|
|
75
77
|
if (!args.options.userId && !args.options.userName) {
|
|
76
|
-
return
|
|
78
|
+
return `userId or userName need to be provided`;
|
|
77
79
|
}
|
|
78
80
|
if (args.options.userId && args.options.userName) {
|
|
79
|
-
return `Please specify either
|
|
81
|
+
return `Please specify either userId or userName, not both`;
|
|
80
82
|
}
|
|
81
83
|
if (args.options.userId && !Utils_1.default.isValidGuid(args.options.userId)) {
|
|
82
84
|
return `${args.options.userId} is not a valid GUID`;
|
|
@@ -35,4 +35,5 @@ m365 aad oauth2grant remove --grantId YgA60KYa4UOPSdc-lpxYEnQkr8KVLDpCsOXkiV8i-e
|
|
|
35
35
|
|
|
36
36
|
## More information
|
|
37
37
|
|
|
38
|
-
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
38
|
+
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
39
|
+
- Delete a delegated permission grant (oAuth2PermissionGrant): [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-delete?view=graph-rest-1.0)
|
|
@@ -22,7 +22,7 @@ m365 aad oauth2grant set [options]
|
|
|
22
22
|
|
|
23
23
|
Before you can update service principal's OAuth2 permissions, you need to get the `objectId` of the permissions grant to update. You can retrieve it using the [aad oauth2grant list](./oauth2grant-list.md) command.
|
|
24
24
|
|
|
25
|
-
If the `objectId` listed when using the [aad oauth2grant list](./oauth2grant-list.md) command has a minus sign ('-') prefix, you may receive an error indicating `--grantId` is missing.
|
|
25
|
+
If the `objectId` listed when using the [aad oauth2grant list](./oauth2grant-list.md) command has a minus sign ('-') prefix, you may receive an error indicating `--grantId` is missing. To resolve this issue simply escape the leading '-'.
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
28
|
m365 aad oauth2grant set --grantId \\-Zc1JRY8REeLxmXz5KtixAYU3Q6noCBPlhwGiX7pxmU
|
|
@@ -38,4 +38,5 @@ m365 aad oauth2grant set --grantId YgA60KYa4UOPSdc-lpxYEnQkr8KVLDpCsOXkiV8i-ek -
|
|
|
38
38
|
|
|
39
39
|
## More information
|
|
40
40
|
|
|
41
|
-
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
41
|
+
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
42
|
+
- Update a delegated permission grant (oAuth2PermissionGrant): [https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/oauth2permissiongrant-update?view=graph-rest-1.0)
|
|
@@ -47,4 +47,5 @@ m365 aad sp get --objectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
|
47
47
|
|
|
48
48
|
## More information
|
|
49
49
|
|
|
50
|
-
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
50
|
+
- Application and service principal objects in Azure Active Directory (Azure AD): [https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects)
|
|
51
|
+
- Get servicePrincipal: [https://docs.microsoft.com/en-us/graph/api/serviceprincipal-get?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/serviceprincipal-get?view=graph-rest-1.0)
|
|
@@ -32,7 +32,7 @@ m365 spfx project upgrade [options]
|
|
|
32
32
|
|
|
33
33
|
## Remarks
|
|
34
34
|
|
|
35
|
-
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.
|
|
35
|
+
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.13.0).
|
|
36
36
|
|
|
37
37
|
This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
|
|
38
38
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# spo listitem attachment list
|
|
2
|
+
|
|
3
|
+
Gets the attachments associated to a list item
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo listitem attachment list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
URL of the site from which the item should be retrieved
|
|
15
|
+
|
|
16
|
+
`--listId [listId]`
|
|
17
|
+
: ID of the list from which to retrieve the item. Specify listId or listTitle but not both
|
|
18
|
+
|
|
19
|
+
`--listTitle [listTitle]`
|
|
20
|
+
: Title of the list from which to retrieve the item. Specify listId or listTitle but not both
|
|
21
|
+
|
|
22
|
+
`--itemId <itemId>`
|
|
23
|
+
ID of the list item to in question
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Gets the attachments from list item with itemId _147_ in list with title _Demo List_ in site _https://contoso.sharepoint.com/sites/project-x_
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo listitem attachment list --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List" --itemId 147
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Gets the attachments from list item with itemId _147_ in list with id _0cd891ef-afce-4e55-b836-fce03286cccf_ in site _https://contoso.sharepoint.com/sites/project-x_
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo listitem attachment list --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --itemId 147
|
|
39
|
+
```
|
|
@@ -24,9 +24,6 @@ This command only works with app-only permissions. You will need to create your
|
|
|
24
24
|
|
|
25
25
|
The difference between `fromDateTime` and `toDateTime` cannot exceed a period of 90 days
|
|
26
26
|
|
|
27
|
-
!!! attention
|
|
28
|
-
This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
|
|
29
|
-
|
|
30
27
|
## Examples
|
|
31
28
|
|
|
32
29
|
Get details about PSTN calls made between 2020-10-31 and today
|
|
@@ -46,3 +43,7 @@ Get details about PSTN calls made between 2020-10-31 and 2020-12-31 and exports
|
|
|
46
43
|
```sh
|
|
47
44
|
m365 teams report pstncalls --fromDateTime 2020-10-31 --toDateTime 2020-12-31 --output json > "pstncalls.json"
|
|
48
45
|
```
|
|
46
|
+
|
|
47
|
+
## More information
|
|
48
|
+
|
|
49
|
+
- List PSTN calls: [https://docs.microsoft.com/en-us/graph/api/callrecords-callrecord-getpstncalls?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/callrecords-callrecord-getpstncalls?view=graph-rest-1.0)
|