@pnp/cli-microsoft365 5.9.0-beta.06d9445 → 5.9.0-beta.174dde9

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 (35) hide show
  1. package/.eslintrc.js +11 -0
  2. package/README.md +5 -0
  3. package/dist/m365/pp/commands/card/card-list.js +68 -0
  4. package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +6 -12
  5. package/dist/m365/pp/commands/solution/Solution.js +3 -0
  6. package/dist/m365/pp/commands/solution/solution-list.js +87 -0
  7. package/dist/m365/pp/commands.js +2 -0
  8. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +0 -2
  9. package/dist/m365/spfx/commands/spfx-doctor.js +37 -7
  10. package/dist/m365/spo/commands/eventreceiver/EventReceiver.js +3 -0
  11. package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +182 -0
  12. package/dist/m365/spo/commands/file/file-copy.js +25 -39
  13. package/dist/m365/spo/commands/file/file-move.js +24 -37
  14. package/dist/m365/spo/commands/file/file-rename.js +19 -16
  15. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +129 -0
  16. package/dist/m365/spo/commands/group/AssociatedGroupPropertiesCollection.js +3 -0
  17. package/dist/m365/spo/commands/group/group-list.js +49 -10
  18. package/dist/m365/spo/commands/list/list-roleassignment-add.js +10 -10
  19. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +8 -8
  20. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +8 -8
  21. package/dist/m365/spo/commands/web/web-roleassignment-add.js +10 -10
  22. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +8 -8
  23. package/dist/m365/spo/commands.js +2 -0
  24. package/dist/m365/teams/commands/channel/channel-add.js +9 -9
  25. package/docs/docs/cmd/pp/card/card-list.md +33 -0
  26. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.md +2 -2
  27. package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
  28. package/docs/docs/cmd/pp/solution/solution-list.md +33 -0
  29. package/docs/docs/cmd/spfx/spfx-doctor.md +10 -1
  30. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +69 -0
  31. package/docs/docs/cmd/spo/file/file-roleinheritance-break.md +54 -0
  32. package/docs/docs/cmd/spo/group/group-list.md +10 -1
  33. package/docs/docs/cmd/teams/channel/channel-add.md +4 -4
  34. package/package.json +2 -1
  35. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +0 -60
@@ -73,8 +73,8 @@ class TeamsChannelAddCommand extends GraphCommand_1.default {
73
73
  },
74
74
  responseType: 'json'
75
75
  };
76
- if (args.options.type === 'private') {
77
- // Private channels must have at least 1 owner
76
+ if (args.options.type === 'private' || args.options.type === 'shared') {
77
+ // Private and Shared channels must have at least 1 owner
78
78
  requestOptions.data.members = [
79
79
  {
80
80
  '@odata.type': '#microsoft.graph.aadUserConversationMember',
@@ -119,7 +119,7 @@ _TeamsChannelAddCommand_instances = new WeakSet(), _TeamsChannelAddCommand_initT
119
119
  option: '-d, --description [description]'
120
120
  }, {
121
121
  option: '--type [type]',
122
- autocomplete: ['standard', 'private']
122
+ autocomplete: ['standard', 'private', 'shared']
123
123
  }, {
124
124
  option: '--owner [owner]'
125
125
  });
@@ -128,14 +128,14 @@ _TeamsChannelAddCommand_instances = new WeakSet(), _TeamsChannelAddCommand_initT
128
128
  if (args.options.teamId && !validation_1.validation.isValidGuid(args.options.teamId)) {
129
129
  return `${args.options.teamId} is not a valid GUID`;
130
130
  }
131
- if (args.options.type && ['standard', 'private'].indexOf(args.options.type) === -1) {
132
- return `${args.options.type} is not a valid type value. Allowed values standard|private.`;
131
+ if (args.options.type && ['standard', 'private', 'shared'].indexOf(args.options.type) === -1) {
132
+ return `${args.options.type} is not a valid type value. Allowed values standard|private|shared.`;
133
133
  }
134
- if (args.options.type === 'private' && !args.options.owner) {
135
- return 'Specify owner when creating a private channel.';
134
+ if ((args.options.type === 'private' || args.options.type === 'shared') && !args.options.owner) {
135
+ return `Specify owner when creating a ${args.options.type} channel.`;
136
136
  }
137
- if (args.options.type !== 'private' && args.options.owner) {
138
- return 'Specify owner only when creating a private channel.';
137
+ if ((args.options.type !== 'private' && args.options.type !== 'shared') && args.options.owner) {
138
+ return `Specify owner only when creating a private or shared channel.`;
139
139
  }
140
140
  return true;
141
141
  }));
@@ -0,0 +1,33 @@
1
+ # pp card list
2
+
3
+ Lists Microsoft Power Platform cards in the specified Power Platform environment.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ pp card list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-e, --environment <environment>`
14
+ : The name of the environment.
15
+
16
+ `-a, --asAdmin`
17
+ : Run the command as admin for environments you do not have explicitly assigned permissions to.
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Examples
22
+
23
+ List cards in a specific environment.
24
+
25
+ ```sh
26
+ m365 pp card list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
27
+ ```
28
+
29
+ List cards in a specific environment as admin.
30
+
31
+ ```sh
32
+ m365 pp card list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --asAdmin
33
+ ```
@@ -11,10 +11,10 @@ pp dataverse table list [options]
11
11
  ## Options
12
12
 
13
13
  `-e, --environment <environment>`
14
- The name of the environment to list all tables for
14
+ : The name of the environment to list all tables for
15
15
 
16
16
  `-a, --asAdmin`
17
- Set, to retrieve the dataverse tables as admin for environments you are not a member of.
17
+ : Set, to retrieve the dataverse tables as admin for environments you are not a member of.
18
18
 
19
19
  --8<-- "docs/cmd/_global.md"
20
20
 
@@ -11,7 +11,7 @@ m365 pp environment list [options]
11
11
  ## Options
12
12
 
13
13
  `-a, --asAdmin`
14
- Run the command as admin and retrieve all environments. Lists only environments you have explicitly are assigned permissions to by default.
14
+ : Run the command as admin and retrieve all environments. Lists only environments you have explicitly are assigned permissions to by default.
15
15
 
16
16
  --8<-- "docs/cmd/_global.md"
17
17
 
@@ -0,0 +1,33 @@
1
+ # pp solution list
2
+
3
+ Lists solutions in a given environment.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 pp solution list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-e, --environment <environment>`
14
+ : The name of the environment
15
+
16
+ `-a, --asAdmin`
17
+ : Run the command as admin for environments you do not have explicitly assigned permissions to.
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Examples
22
+
23
+ List all solutions in a specific environment
24
+
25
+ ```sh
26
+ m365 pp solution list --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
27
+ ```
28
+
29
+ List all solutions in a specific environment as Admin
30
+
31
+ ```sh
32
+ m365 pp solution list --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --asAdmin
33
+ ```
@@ -13,6 +13,9 @@ m365 spfx doctor [options]
13
13
  `-e, --env [env]`
14
14
  : Version of SharePoint for which to check compatibility: `sp2016|sp2019|spo`
15
15
 
16
+ `-v, --spfxVersion [spfxVersion]`
17
+ : Version of the SharePoint Framework Yeoman generator to check compatibility for without `v`, eg. `1.11.0`
18
+
16
19
  `-h, --help`
17
20
  : output usage information
18
21
 
@@ -48,7 +51,7 @@ Next to verifying the readiness of your environment to use a particular version
48
51
 
49
52
  ## Examples
50
53
 
51
- Verify if your environment meets the requirements to work with the SharePoint Framework
54
+ Verify if your environment meets the requirements to work with SharePoint Framework based on the globally installed version of the SharePoint Framework Yeoman generator or the current project
52
55
 
53
56
  ```sh
54
57
  m365 spfx doctor --output text
@@ -59,3 +62,9 @@ Verify if your environment meets the requirements to work with the SharePoint Fr
59
62
  ```sh
60
63
  m365 spfx doctor --env sp2019 --output text
61
64
  ```
65
+
66
+ Verify if your environment meets the requirements to work with SharePoint Framework v1.11.0
67
+
68
+ ```sh
69
+ m365 spfx doctor --spfxVersion 1.11.0 --output text
70
+ ```
@@ -0,0 +1,69 @@
1
+ # spo eventreceiver remove
2
+
3
+ Removes event receivers for the specified web, site, or list.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo eventreceiver remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The URL of the web.
15
+
16
+ `--listTitle [listTitle]`
17
+ : The title of the list, _if the event receiver should be removed from a list_. Specify either `listTitle`, `listId` or `listUrl`.
18
+
19
+ `--listId [listId]`
20
+ : The id of the list, _if the event receiver should be retrieved from a list_. Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : The url of the list, _if the event receiver should be retrieved from a list_. Specify either `listTitle`, `listId` or `listUrl`.
24
+
25
+ `-n, --name [name]`
26
+ The name. Specify either `name` or `id` but not both.
27
+
28
+ `-i, --id [id]`
29
+ The id. Specify either `name` or `id` but not both.
30
+
31
+ `-s, --scope [scope]`
32
+ : The scope. Can be either "site" or "web". Defaults to "web". Only applicable when not specifying any of the list properties.
33
+
34
+ `--confirm`
35
+ : Don't prompt for confirming removing the event receiver
36
+
37
+ --8<-- "docs/cmd/_global.md"
38
+
39
+ ## Examples
40
+
41
+ Remove event receiver in a specific web by name.
42
+
43
+ ```sh
44
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name 'PnP Test Receiver'
45
+ ```
46
+
47
+ Remove event receiver in a specific site by id.
48
+
49
+ ```sh
50
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --scope site --id c5a6444a-9c7f-4a0d-9e29-fc6fe30e34ec
51
+ ```
52
+
53
+ Remove event receiver in a specific list retrieved by title by name.
54
+
55
+ ```sh
56
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events --name 'PnP Test Receiver'
57
+ ```
58
+
59
+ Remove event receiver in a specific list retrieved by list id by id.
60
+
61
+ ```sh
62
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '202b8199-b9de-43fd-9737-7f213f51c991' --id c5a6444a-9c7f-4a0d-9e29-fc6fe30e34ec
63
+ ```
64
+
65
+ Remove event receiver in a specific list retrieved by list url by name.
66
+
67
+ ```sh
68
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/sites/contoso-sales/lists/Events' --name 'PnP Test Receiver'
69
+ ```
@@ -0,0 +1,54 @@
1
+ # spo file roleinheritance break
2
+
3
+ Breaks inheritance of a file. Keeping existing permissions is the default behavior.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo file roleinheritance break [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the file is located
15
+
16
+ `--fileUrl [fileUrl]`
17
+ : The server-relative URL of the file. Specify either `fileUrl` or `fileId` but not both
18
+
19
+ `i, --fileId [fileId]`
20
+ : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both
21
+
22
+ `-c, --clearExistingPermissions`
23
+ : Clear all existing permissions from the file
24
+
25
+ `--confirm`
26
+ : Don't prompt for confirmation
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Break the inheritance of a file with a specific id (UniqueId).
33
+
34
+ ```sh
35
+ m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
36
+ ```
37
+
38
+ Break the inheritance of a file with a specific id (UniqueId) and clear all existing permissions.
39
+
40
+ ```sh
41
+ m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6" --clearExistingPermissions
42
+ ```
43
+
44
+ Break the inheritance of a file with a specific server-relative URL.
45
+
46
+ ```sh
47
+ m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx"
48
+ ```
49
+
50
+ Break the inheritance of a file with a specific server-relative URL and clear all existing permissions.
51
+
52
+ ```sh
53
+ m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx" --clearExistingPermissions
54
+ ```
@@ -13,12 +13,21 @@ m365 spo group list [options]
13
13
  `-u, --webUrl <webUrl>`
14
14
  : Url of the web to list the group within
15
15
 
16
+ `--associatedGroupsOnly`
17
+ : Get only the associated visitor, member and owner groups of the site.
18
+
16
19
  --8<-- "docs/cmd/_global.md"
17
20
 
18
21
  ## Examples
19
22
 
20
- Lists all the groups within specific web _https://contoso.sharepoint.com/sites/contoso_
23
+ Lists all the groups within a specific web
21
24
 
22
25
  ```sh
23
26
  m365 spo group list --webUrl "https://contoso.sharepoint.com/sites/contoso"
24
27
  ```
28
+
29
+ Lists the associated groups within a specific web
30
+
31
+ ```sh
32
+ m365 spo group list --webUrl "https://contoso.sharepoint.com/sites/contoso" --associatedGroupsOnly
33
+ ```
@@ -23,10 +23,10 @@ m365 teams channel add [options]
23
23
  : The description of the channel to add
24
24
 
25
25
  `--type [type]`
26
- : Type of channel to create: `standard,private`. Default `standard`.
26
+ : Type of channel to create: `standard`, `private`, `shared`. Default `standard`.
27
27
 
28
28
  `--owner [owner]`
29
- : User with this ID or UPN will be added as owner of the private channel. This option is required when type is `private`.
29
+ : User with this ID or UPN will be added as owner of the channel. This option is required when type is `private` or `shared`.
30
30
 
31
31
  --8<-- "docs/cmd/_global.md"
32
32
 
@@ -54,8 +54,8 @@ Add private channel to the specified Microsoft Teams team with owner UPN
54
54
  m365 teams channel add --teamName "Team Name" --name climicrosoft365 --type private --owner john.doe@contoso.com
55
55
  ```
56
56
 
57
- Add private channel to the specified Microsoft Teams team with owner ID
57
+ Add shared channel to the specified Microsoft Teams team with owner ID
58
58
 
59
59
  ```sh
60
- m365 teams channel add --teamId 6703ac8a-c49b-4fd4-8223-28f0ac3a6402 --name climicrosoft365 --type private --owner cc693a7d-4833-4911-a89a-f0fe6e49bf69
60
+ m365 teams channel add --teamId 6703ac8a-c49b-4fd4-8223-28f0ac3a6402 --name climicrosoft365 --type shared --owner cc693a7d-4833-4911-a89a-f0fe6e49bf69
61
61
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.9.0-beta.06d9445",
3
+ "version": "5.9.0-beta.174dde9",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -116,6 +116,7 @@
116
116
  "Calabro, David <davej.calabro@gmail.com>",
117
117
  "Choudhary, Karnail Singh <pradhankarnail@gmail.com>",
118
118
  "Connell, Andrew <me@andrewconnell.com>",
119
+ "Conor O'Callaghan <brioscaibriste@gmail.com>",
119
120
  "Deshpande, Vardhaman <vardhaman.rd@gmail.com>",
120
121
  "Dyjas, Robert <15113729+robdy@users.noreply.github.com>",
121
122
  "Faleel, Mohamed Ashiq <ashiqf@gmail.com>",
@@ -1,60 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FN006006_CFG_PS_features = void 0;
4
- const uuid_1 = require("uuid");
5
- const JsonRule_1 = require("../../JsonRule");
6
- class FN006006_CFG_PS_features extends JsonRule_1.JsonRule {
7
- constructor() {
8
- super();
9
- }
10
- get id() {
11
- return 'FN006006';
12
- }
13
- get title() {
14
- return 'package-solution.json features';
15
- }
16
- get description() {
17
- return `In package-solution.json add features section`;
18
- }
19
- get resolution() {
20
- return '';
21
- }
22
- get resolutionType() {
23
- return 'json';
24
- }
25
- get severity() {
26
- return 'Required';
27
- }
28
- get file() {
29
- return './config/package-solution.json';
30
- }
31
- visit(project, findings) {
32
- var _a, _b;
33
- if (!project.packageSolutionJson ||
34
- !project.packageSolutionJson.solution) {
35
- return;
36
- }
37
- if (!project.packageSolutionJson.solution.features) {
38
- const resolution = {
39
- solution: {
40
- features: [
41
- {
42
- title: `${(_a = project.packageJson) === null || _a === void 0 ? void 0 : _a.name} Feature`,
43
- description: `The feature that activates elements of the ${(_b = project.packageJson) === null || _b === void 0 ? void 0 : _b.name} solution.`,
44
- id: (0, uuid_1.v4)(),
45
- version: project.packageSolutionJson.solution.version
46
- }
47
- ]
48
- }
49
- };
50
- const node = this.getAstNodeFromFile(project.packageSolutionJson, 'solution');
51
- this.addFindingWithOccurrences([{
52
- file: this.file,
53
- resolution: JSON.stringify(resolution, null, 2),
54
- position: this.getPositionFromNode(node)
55
- }], findings);
56
- }
57
- }
58
- }
59
- exports.FN006006_CFG_PS_features = FN006006_CFG_PS_features;
60
- //# sourceMappingURL=FN006006_CFG_PS_features.js.map