@pnp/cli-microsoft365 10.11.0 → 11.0.0-beta.3143306

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 (159) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +54 -0
  2. package/.eslintrc.cjs +2 -0
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/Command.js +4 -0
  6. package/dist/config.js +1 -0
  7. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +1 -1
  8. package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +13 -27
  9. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +18 -43
  10. package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +10 -21
  11. package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +25 -49
  12. package/dist/m365/entra/commands/app/app-add.js +14 -2
  13. package/dist/m365/entra/commands/group/group-member-add.js +6 -27
  14. package/dist/m365/entra/commands/group/group-member-set.js +5 -26
  15. package/dist/m365/entra/commands/m365group/m365group-get.js +1 -7
  16. package/dist/m365/entra/commands/m365group/m365group-list.js +1 -7
  17. package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +1 -7
  18. package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +1 -7
  19. package/dist/m365/entra/commands/pim/pim-role-request-list.js +1 -7
  20. package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +146 -0
  21. package/dist/m365/entra/commands.js +1 -0
  22. package/dist/m365/flow/commands/environment/environment-get.js +19 -29
  23. package/dist/m365/flow/commands/flow-list.js +7 -14
  24. package/dist/m365/flow/commands/run/run-get.js +1 -7
  25. package/dist/m365/graph/commands/openextension/openextension-add.js +2 -2
  26. package/dist/m365/graph/commands/openextension/openextension-set.js +2 -6
  27. package/dist/m365/graph/commands/subscription/subscription-add.js +3 -10
  28. package/dist/m365/outlook/commands/mail/mail-searchfolder-add.js +85 -0
  29. package/dist/m365/outlook/commands.js +1 -0
  30. package/dist/m365/pa/commands/environment/environment-get.js +18 -23
  31. package/dist/m365/pp/commands/copilot/copilot-get.js +0 -4
  32. package/dist/m365/pp/commands/copilot/copilot-list.js +0 -4
  33. package/dist/m365/pp/commands/copilot/copilot-remove.js +0 -4
  34. package/dist/m365/pp/commands/environment/environment-get.js +19 -26
  35. package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -8
  36. package/dist/m365/pp/commands.js +0 -7
  37. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +1 -7
  38. package/dist/m365/spe/commands/container/container-add.js +1 -3
  39. package/dist/m365/spe/commands/container/container-list.js +1 -3
  40. package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +1 -3
  41. package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +1 -3
  42. package/dist/m365/spe/commands/container/container-remove.js +1 -3
  43. package/dist/m365/spe/commands/containertype/containertype-add.js +67 -90
  44. package/dist/m365/spe/commands/containertype/containertype-get.js +53 -81
  45. package/dist/m365/spe/commands/containertype/containertype-list.js +8 -19
  46. package/dist/m365/spe/commands/containertype/containertype-remove.js +27 -5
  47. package/dist/m365/spfx/commands/project/project-upgrade.js +23 -66
  48. package/dist/m365/spo/commands/customaction/customaction-list.js +3 -10
  49. package/dist/m365/spo/commands/file/file-move.js +2 -8
  50. package/dist/m365/spo/commands/file/file-version-keep.js +78 -0
  51. package/dist/m365/spo/commands/homesite/homesite-add.js +26 -2
  52. package/dist/m365/spo/commands/homesite/homesite-get.js +28 -14
  53. package/dist/m365/spo/commands/homesite/homesite-list.js +1 -12
  54. package/dist/m365/spo/commands/homesite/homesite-remove.js +6 -34
  55. package/dist/m365/spo/commands/homesite/homesite-set.js +88 -44
  56. package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -13
  57. package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -8
  58. package/dist/m365/spo/commands/list/list-view-add.js +1 -1
  59. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +17 -25
  60. package/dist/m365/spo/commands/{tenant/tenant-site-archive.js → site/site-archive.js} +14 -14
  61. package/dist/m365/spo/commands/{tenant/tenant-site-list.js → site/site-list.js} +16 -27
  62. package/dist/m365/spo/commands/{tenant/tenant-site-membership-list.js → site/site-membership-list.js} +15 -15
  63. package/dist/m365/spo/commands/{tenant/tenant-site-rename.js → site/site-rename.js} +14 -14
  64. package/dist/m365/spo/commands/{tenant/tenant-site-unarchive.js → site/site-unarchive.js} +14 -14
  65. package/dist/m365/spo/commands/term/term-list.js +1 -7
  66. package/dist/m365/spo/commands.js +5 -7
  67. package/dist/m365/teams/commands/chat/chat-member-add.js +3 -9
  68. package/dist/m365/teams/commands/report/report-directroutingcalls.js +5 -12
  69. package/dist/m365/teams/commands/report/report-pstncalls.js +5 -12
  70. package/dist/m365/viva/commands/engage/engage-network-list.js +1 -7
  71. package/dist/m365/viva/commands.js +0 -3
  72. package/dist/utils/entraAdministrativeUnit.js +1 -1
  73. package/dist/utils/entraApp.js +15 -0
  74. package/dist/utils/spe.js +5 -39
  75. package/docs/docs/cmd/entra/app/app-add.mdx +7 -1
  76. package/docs/docs/cmd/entra/group/group-member-add.mdx +7 -26
  77. package/docs/docs/cmd/entra/group/group-member-set.mdx +5 -23
  78. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -3
  79. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -3
  80. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +0 -3
  81. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +0 -3
  82. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +0 -3
  83. package/docs/docs/cmd/entra/roleassignment/roleassignment-add.mdx +163 -0
  84. package/docs/docs/cmd/flow/environment/environment-get.mdx +6 -5
  85. package/docs/docs/cmd/flow/flow-list.mdx +0 -3
  86. package/docs/docs/cmd/flow/run/run-get.mdx +0 -3
  87. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -3
  88. package/docs/docs/cmd/outlook/mail/mail-searchfolder-add.mdx +147 -0
  89. package/docs/docs/cmd/pa/environment/environment-get.mdx +5 -2
  90. package/docs/docs/cmd/pp/copilot/copilot-get.mdx +0 -6
  91. package/docs/docs/cmd/pp/copilot/copilot-list.mdx +0 -6
  92. package/docs/docs/cmd/pp/copilot/copilot-remove.mdx +0 -6
  93. package/docs/docs/cmd/pp/environment/environment-get.mdx +5 -2
  94. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -3
  95. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -3
  96. package/docs/docs/cmd/spe/container/container-activate.mdx +21 -0
  97. package/docs/docs/cmd/spe/container/container-add.mdx +29 -0
  98. package/docs/docs/cmd/spe/container/container-get.mdx +20 -1
  99. package/docs/docs/cmd/spe/container/container-list.mdx +29 -0
  100. package/docs/docs/cmd/spe/container/container-permission-list.mdx +19 -0
  101. package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +29 -0
  102. package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +31 -0
  103. package/docs/docs/cmd/spe/container/container-remove.mdx +31 -0
  104. package/docs/docs/cmd/spe/containertype/containertype-add.mdx +111 -55
  105. package/docs/docs/cmd/spe/containertype/containertype-get.mdx +69 -38
  106. package/docs/docs/cmd/spe/containertype/containertype-list.mdx +59 -31
  107. package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +31 -4
  108. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +18 -5
  109. package/docs/docs/cmd/spo/file/file-move.mdx +0 -3
  110. package/docs/docs/cmd/spo/file/file-version-keep.mdx +68 -0
  111. package/docs/docs/cmd/spo/homesite/homesite-add.mdx +13 -4
  112. package/docs/docs/cmd/spo/homesite/homesite-get.mdx +44 -23
  113. package/docs/docs/cmd/spo/homesite/homesite-list.mdx +0 -6
  114. package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +10 -35
  115. package/docs/docs/cmd/spo/homesite/homesite-set.mdx +84 -44
  116. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -3
  117. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -3
  118. package/docs/docs/cmd/spo/list/list-view-add.mdx +11 -11
  119. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +18 -18
  120. package/docs/docs/cmd/spo/{tenant/tenant-site-archive.mdx → site/site-archive.mdx} +4 -4
  121. package/docs/docs/cmd/spo/{tenant/tenant-site-list.mdx → site/site-list.mdx} +7 -16
  122. package/docs/docs/cmd/spo/{tenant/tenant-site-membership-list.mdx → site/site-membership-list.mdx} +5 -5
  123. package/docs/docs/cmd/spo/{tenant/tenant-site-rename.mdx → site/site-rename.mdx} +7 -7
  124. package/docs/docs/cmd/spo/{tenant/tenant-site-unarchive.mdx → site/site-unarchive.mdx} +4 -4
  125. package/docs/docs/cmd/spo/term/term-list.mdx +0 -3
  126. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +2 -5
  127. package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +25 -44
  128. package/docs/docs/cmd/teams/report/report-pstncalls.mdx +25 -48
  129. package/docs/docs/cmd/viva/engage/engage-community-list.mdx +19 -0
  130. package/docs/docs/cmd/viva/engage/engage-community-user-add.mdx +19 -0
  131. package/docs/docs/cmd/viva/engage/engage-community-user-remove.mdx +19 -0
  132. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +0 -3
  133. package/npm-shrinkwrap.json +53 -53
  134. package/package.json +13 -13
  135. package/dist/m365/pp/commands/card/card-clone.js +0 -101
  136. package/dist/m365/pp/commands/card/card-get.js +0 -89
  137. package/dist/m365/pp/commands/card/card-list.js +0 -55
  138. package/dist/m365/pp/commands/card/card-remove.js +0 -105
  139. package/dist/m365/skype/commands/report/report-activitycounts.js +0 -15
  140. package/dist/m365/skype/commands/report/report-activityusercounts.js +0 -15
  141. package/dist/m365/skype/commands/report/report-activityuserdetail.js +0 -15
  142. package/dist/m365/skype/commands.js +0 -7
  143. package/dist/m365/spo/commands/mail/mail-send.js +0 -108
  144. package/dist/m365/spo/commands/tenant/SPOTenantSitePropertiesEnumerable.js +0 -2
  145. package/dist/m365/spo/commands/tenant/TenantSiteProperties.js +0 -2
  146. package/dist/m365/viva/commands/engage/engage-group-list.js +0 -93
  147. package/dist/m365/viva/commands/engage/engage-group-user-add.js +0 -73
  148. package/dist/m365/viva/commands/engage/engage-group-user-remove.js +0 -88
  149. package/docs/docs/cmd/pp/card/card-clone.mdx +0 -103
  150. package/docs/docs/cmd/pp/card/card-get.mdx +0 -212
  151. package/docs/docs/cmd/pp/card/card-list.mdx +0 -163
  152. package/docs/docs/cmd/pp/card/card-remove.mdx +0 -86
  153. package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -96
  154. package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -96
  155. package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -134
  156. package/docs/docs/cmd/spo/mail/mail-send.mdx +0 -69
  157. package/docs/docs/cmd/viva/engage/engage-group-list.mdx +0 -174
  158. package/docs/docs/cmd/viva/engage/engage-group-user-add.mdx +0 -60
  159. package/docs/docs/cmd/viva/engage/engage-group-user-remove.mdx +0 -58
@@ -1,73 +0,0 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- 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");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _VivaEngageGroupUserAddCommand_instances, _VivaEngageGroupUserAddCommand_initTelemetry, _VivaEngageGroupUserAddCommand_initOptions, _VivaEngageGroupUserAddCommand_initValidators;
7
- import request from '../../../../request.js';
8
- import VivaEngageCommand from '../../../base/VivaEngageCommand.js';
9
- import commands from '../../commands.js';
10
- class VivaEngageGroupUserAddCommand extends VivaEngageCommand {
11
- get name() {
12
- return commands.ENGAGE_GROUP_USER_ADD;
13
- }
14
- get description() {
15
- return 'Adds a user to a Viva Engage Group';
16
- }
17
- constructor() {
18
- super();
19
- _VivaEngageGroupUserAddCommand_instances.add(this);
20
- __classPrivateFieldGet(this, _VivaEngageGroupUserAddCommand_instances, "m", _VivaEngageGroupUserAddCommand_initTelemetry).call(this);
21
- __classPrivateFieldGet(this, _VivaEngageGroupUserAddCommand_instances, "m", _VivaEngageGroupUserAddCommand_initOptions).call(this);
22
- __classPrivateFieldGet(this, _VivaEngageGroupUserAddCommand_instances, "m", _VivaEngageGroupUserAddCommand_initValidators).call(this);
23
- }
24
- async commandAction(logger, args) {
25
- const requestOptions = {
26
- url: `${this.resource}/v1/group_memberships.json`,
27
- headers: {
28
- accept: 'application/json;odata.metadata=none',
29
- 'content-type': 'application/json;odata=nometadata'
30
- },
31
- responseType: 'json',
32
- data: {
33
- group_id: args.options.groupId,
34
- user_id: args.options.id,
35
- email: args.options.email
36
- }
37
- };
38
- try {
39
- await request.post(requestOptions);
40
- }
41
- catch (err) {
42
- this.handleRejectedODataJsonPromise(err);
43
- }
44
- }
45
- }
46
- _VivaEngageGroupUserAddCommand_instances = new WeakSet(), _VivaEngageGroupUserAddCommand_initTelemetry = function _VivaEngageGroupUserAddCommand_initTelemetry() {
47
- this.telemetry.push((args) => {
48
- Object.assign(this.telemetryProperties, {
49
- id: typeof args.options.id !== 'undefined',
50
- email: typeof args.options.email !== 'undefined'
51
- });
52
- });
53
- }, _VivaEngageGroupUserAddCommand_initOptions = function _VivaEngageGroupUserAddCommand_initOptions() {
54
- this.options.unshift({
55
- option: '--groupId <groupId>'
56
- }, {
57
- option: '--id [id]'
58
- }, {
59
- option: '--email [email]'
60
- });
61
- }, _VivaEngageGroupUserAddCommand_initValidators = function _VivaEngageGroupUserAddCommand_initValidators() {
62
- this.validators.push(async (args) => {
63
- if (typeof args.options.groupId !== 'number') {
64
- return `${args.options.groupId} is not a number`;
65
- }
66
- if (args.options.id && typeof args.options.id !== 'number') {
67
- return `${args.options.id} is not a number`;
68
- }
69
- return true;
70
- });
71
- };
72
- export default new VivaEngageGroupUserAddCommand();
73
- //# sourceMappingURL=engage-group-user-add.js.map
@@ -1,88 +0,0 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- 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");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _VivaEngageGroupUserRemoveCommand_instances, _VivaEngageGroupUserRemoveCommand_initTelemetry, _VivaEngageGroupUserRemoveCommand_initOptions, _VivaEngageGroupUserRemoveCommand_initValidators;
7
- import { cli } from '../../../../cli/cli.js';
8
- import request from '../../../../request.js';
9
- import VivaEngageCommand from "../../../base/VivaEngageCommand.js";
10
- import commands from '../../commands.js';
11
- class VivaEngageGroupUserRemoveCommand extends VivaEngageCommand {
12
- get name() {
13
- return commands.ENGAGE_GROUP_USER_REMOVE;
14
- }
15
- get description() {
16
- return 'Removes a user from a Viva Engage group';
17
- }
18
- constructor() {
19
- super();
20
- _VivaEngageGroupUserRemoveCommand_instances.add(this);
21
- __classPrivateFieldGet(this, _VivaEngageGroupUserRemoveCommand_instances, "m", _VivaEngageGroupUserRemoveCommand_initTelemetry).call(this);
22
- __classPrivateFieldGet(this, _VivaEngageGroupUserRemoveCommand_instances, "m", _VivaEngageGroupUserRemoveCommand_initOptions).call(this);
23
- __classPrivateFieldGet(this, _VivaEngageGroupUserRemoveCommand_instances, "m", _VivaEngageGroupUserRemoveCommand_initValidators).call(this);
24
- }
25
- async commandAction(logger, args) {
26
- if (args.options.force) {
27
- await this.executeRemoveAction(args.options);
28
- }
29
- else {
30
- let messagePrompt = `Are you sure you want to leave group ${args.options.groupId}?`;
31
- if (args.options.id) {
32
- messagePrompt = `Are you sure you want to remove the user ${args.options.id} from the group ${args.options.groupId}?`;
33
- }
34
- const result = await cli.promptForConfirmation({ message: messagePrompt });
35
- if (result) {
36
- await this.executeRemoveAction(args.options);
37
- }
38
- }
39
- }
40
- async executeRemoveAction(options) {
41
- const requestOptions = {
42
- url: `${this.resource}/v1/group_memberships.json`,
43
- headers: {
44
- accept: 'application/json;odata.metadata=none',
45
- 'content-type': 'application/json;odata=nometadata'
46
- },
47
- responseType: 'json',
48
- data: {
49
- group_id: options.groupId,
50
- user_id: options.id
51
- }
52
- };
53
- try {
54
- await request.delete(requestOptions);
55
- }
56
- catch (err) {
57
- this.handleRejectedODataJsonPromise(err);
58
- }
59
- }
60
- }
61
- _VivaEngageGroupUserRemoveCommand_instances = new WeakSet(), _VivaEngageGroupUserRemoveCommand_initTelemetry = function _VivaEngageGroupUserRemoveCommand_initTelemetry() {
62
- this.telemetry.push((args) => {
63
- Object.assign(this.telemetryProperties, {
64
- userId: args.options.id !== undefined,
65
- force: (!(!args.options.force)).toString()
66
- });
67
- });
68
- }, _VivaEngageGroupUserRemoveCommand_initOptions = function _VivaEngageGroupUserRemoveCommand_initOptions() {
69
- this.options.unshift({
70
- option: '--groupId <groupId>'
71
- }, {
72
- option: '--id [id]'
73
- }, {
74
- option: '-f, --force'
75
- });
76
- }, _VivaEngageGroupUserRemoveCommand_initValidators = function _VivaEngageGroupUserRemoveCommand_initValidators() {
77
- this.validators.push(async (args) => {
78
- if (args.options.groupId && typeof args.options.groupId !== 'number') {
79
- return `${args.options.groupId} is not a number`;
80
- }
81
- if (args.options.id && typeof args.options.id !== 'number') {
82
- return `${args.options.id} is not a number`;
83
- }
84
- return true;
85
- });
86
- };
87
- export default new VivaEngageGroupUserRemoveCommand();
88
- //# sourceMappingURL=engage-group-user-remove.js.map
@@ -1,103 +0,0 @@
1
- import Global from '/docs/cmd/_global.mdx';
2
- import Tabs from '@theme/Tabs';
3
- import TabItem from '@theme/TabItem';
4
-
5
- # pp card clone
6
-
7
- Clones a specific Microsoft Power Platform card in the specified Power Platform environment
8
-
9
- ## Usage
10
-
11
- ```sh
12
- m365 pp card clone [options]
13
- ```
14
-
15
- ## Options
16
-
17
- ```md definition-list
18
- `-e, --environmentName <environmentName>`
19
- : The name of the environment.
20
-
21
- `--newName <newName>`
22
- : The name of the new card.
23
-
24
- `-i, --id [id]`
25
- : The id of the card. Specify either `id` or `name` but not both.
26
-
27
- `-n, --name [name]`
28
- : The name of the card. Specify either `id` or `name` but not both.
29
-
30
- `--asAdmin`
31
- : Run the command as admin for environments you do not have explicitly assigned permissions to.
32
- ```
33
-
34
- <Global />
35
-
36
- ## Examples
37
-
38
- Clones a specific card in a specific environment based on name.
39
-
40
- ```sh
41
- m365 pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card" --newName "CLI 365 new Card"
42
- ```
43
-
44
- Clones a specific card in a specific environment based on name as admin.
45
-
46
- ```sh
47
- m365 pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card" --newName "CLI 365 new Card" --asAdmin
48
- ```
49
-
50
- Clones a specific card in a specific environment based on id.
51
-
52
- ```sh
53
- m365 pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --newName "CLI 365 new Card"
54
- ```
55
-
56
- Clones a specific card in a specific environment based on id as admin.
57
-
58
- ```sh
59
- m365 pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --newName "CLI 365 new Card" --asAdmin
60
- ```
61
-
62
- ## Response
63
-
64
- <Tabs>
65
- <TabItem value="JSON">
66
-
67
- ```json
68
- {
69
- "CardIdClone": "80cff342-ddf1-4633-aec1-6d3d131b29e0"
70
- }
71
- ```
72
-
73
- </TabItem>
74
- <TabItem value="Text">
75
-
76
- ```text
77
- CardIdClone: 80cff342-ddf1-4633-aec1-6d3d131b29e0
78
- ```
79
-
80
- </TabItem>
81
- <TabItem value="CSV">
82
-
83
- ```csv
84
- CardIdClone
85
- 80cff342-ddf1-4633-aec1-6d3d131b29e0
86
- ```
87
-
88
- </TabItem>
89
- <TabItem value="Markdown">
90
-
91
- ```md
92
- # pp card clone --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --newName "CLI 365 new Card"
93
-
94
- Date: 9/1/2023
95
-
96
- Property | Value
97
- ---------|-------
98
- CardIdClone | 90460614-6ede-4231-8467-ce99a6359f45
99
- ```
100
-
101
- </TabItem>
102
- </Tabs>
103
-
@@ -1,212 +0,0 @@
1
- import Global from '/docs/cmd/_global.mdx';
2
- import Tabs from '@theme/Tabs';
3
- import TabItem from '@theme/TabItem';
4
-
5
- # pp card get
6
-
7
- Gets a specific Microsoft Power Platform card in the specified Power Platform environment
8
-
9
- ## Usage
10
-
11
- ```sh
12
- m365 pp card get [options]
13
- ```
14
-
15
- ## Options
16
-
17
- ```md definition-list
18
- `-e, --environmentName <environmentName>`
19
- : The name of the environment.
20
-
21
- `-i, --id [id]`
22
- : The id of the card. Specify either `id` or `name` but not both.
23
-
24
- `-n, --name [name]`
25
- : The name of the card. Specify either `id` or `name` but not both.
26
-
27
- `--asAdmin`
28
- : Run the command as admin for environments you do not have explicitly assigned permissions to.
29
- ```
30
-
31
- <Global />
32
-
33
- ## Examples
34
-
35
- Get a specific card in a specific environment based on name.
36
-
37
- ```sh
38
- m365 pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card"
39
- ```
40
-
41
- Get a specific card in a specific environment based on name as admin.
42
-
43
- ```sh
44
- m365 pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "CLI 365 Card" --asAdmin
45
- ```
46
-
47
- Get a specific card in a specific environment based on id.
48
-
49
- ```sh
50
- m365 pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa"
51
- ```
52
-
53
- Get a specific card in a specific environment based on id as admin.
54
-
55
- ```sh
56
- m365 pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "408e3f42-4c9e-4c93-8aaf-3cbdea9179aa" --asAdmin
57
- ```
58
-
59
- ## Response
60
-
61
- <Tabs>
62
- <TabItem value="JSON">
63
-
64
- ```json
65
- {
66
- "solutionid":"fd140aae-4df4-11dd-bd17-0019b9312238",
67
- "modifiedon":"2022-10-25T14:44:48Z",
68
- "_owninguser_value":"4f175d04-b952-ed11-bba2-000d3adf774e",
69
- "overriddencreatedon":null,
70
- "ismanaged":false,
71
- "schemaversion":null,
72
- "importsequencenumber":null,
73
- "tags":null,
74
- "componentidunique":"24205370-bc43-4c5e-b095-16da18f0b1a3",
75
- "_modifiedonbehalfby_value":null,
76
- "componentstate":0,
77
- "statecode":0,
78
- "name":"Tasks List",
79
- "versionnumber":4451230,
80
- "utcconversiontimezonecode":null,
81
- "cardid":"0eab9392-7354-ed11-bba2-000d3adf774e",
82
- "publishdate":null,
83
- "_createdonbehalfby_value":null,
84
- "_modifiedby_value":"4f175d04-b952-ed11-bba2-000d3adf774e",
85
- "createdon":"2022-10-25T14:44:48Z",
86
- "overwritetime":"1900-01-01T00:00:00Z",
87
- "_owningbusinessunit_value":"b419f090-fe22-ec11-b6e5-000d3ab596a1",
88
- "hiddentags":null,
89
- "description":" ",
90
- "appdefinition":"{\"screens\":{\"main\":{\"template\":{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"TextBlock\",\"size\":\"Medium\",\"weight\":\"bolder\",\"text\":\"Your card title goes here\"},{\"type\":\"TextBlock\",\"text\":\"Add and remove element to customize your new card.\",\"wrap\":true}],\"actions\":[],\"$schema\":\"http://adaptivecards.io/schemas/1.4.0/adaptive-card.json\",\"version\":\"1.4\"},\"verbs\":{\"submit\":\"echo\"}}},\"sampleData\":{\"main\":{}},\"connections\":{},\"variables\":{},\"flows\":{}}",
91
- "statuscode":1,
92
- "remixsourceid":null,
93
- "sizes":null,
94
- "coowners":null,
95
- "_owningteam_value":null,
96
- "_createdby_value":"4f175d04-b952-ed11-bba2-000d3adf774e",
97
- "_ownerid_value":"4f175d04-b952-ed11-bba2-000d3adf774e",
98
- "publishsourceid":null,
99
- "timezoneruleversionnumber":null,
100
- "iscustomizable":{
101
- "Value":true,
102
- "CanBeChanged":true,
103
- "ManagedPropertyLogicalName":"iscustomizableanddeletable"
104
- },
105
- "owninguser":{
106
- "azureactivedirectoryobjectid":"78637d62-e872-4dc9-b7c1-bd161e631682",
107
- "fullname":"# John Doe",
108
- "systemuserid":"4f175d04-b952-ed11-bba2-000d3adf774e",
109
- "ownerid":"4f175d04-b952-ed11-bba2-000d3adf774e"
110
- }
111
- }
112
- ```
113
-
114
- </TabItem>
115
- <TabItem value="Text">
116
-
117
- ```text
118
- appdefinition : {"screens":{"main":{"template":{"$schema":"http://adaptivecards.io/schemas/1.4.0/adaptive-card.json","actions":[],"body":[{"size":"Medium","text":"Your card title goes here","type":"TextBlock","weight":"bolder"},{"text":"Add and remove element to customize your new card.","type":"TextBlock","wrap":true}],"type":"AdaptiveCard","version":"1.4"},"verbs":{"submit":"echo"}}},"connections":{},"flows":{},"sampleData":{"main":{}},"variables":{}}
119
- cardid : 0eab9392-7354-ed11-bba2-000d3adf774e
120
- coowners : null
121
- componentidunique : 24205370-bc43-4c5e-b095-16da18f0b1a3
122
- componentstate : 0
123
- createdon : 2022-10-25T14:44:48Z
124
- description :
125
- hiddentags : null
126
- importsequencenumber : null
127
- ismanaged : false
128
- iscustomizable : {"Value":true,"CanBeChanged":true,"ManagedPropertyLogicalName":"iscustomizableanddeletable"}
129
- modifiedon : 2022-10-25T14:44:48Z
130
- name : Tasks List
131
- overriddencreatedon : null
132
- overwritetime : 1900-01-01T00:00:00Z
133
- owninguser : {"azureactivedirectoryobjectid":"78637d62-e872-4dc9-b7c1-bd161e631682","fullname":"# John Doe","ownerid":"4f175d04-b952-ed11-bba2-000d3adf774e","systemuserid":"4f175d04-b952-ed11-bba2-000d3adf774e"}
134
- publishdate : null
135
- publishsourceid : null
136
- remixsourceid : null
137
- schemaversion : null
138
- sizes : null
139
- solutionid : fd140aae-4df4-11dd-bd17-0019b9312238
140
- statecode : 0
141
- statuscode : 1
142
- tags : null
143
- timezoneruleversionnumber: null
144
- utcconversiontimezonecode: null
145
- versionnumber : 4451230
146
- _ownerid_value : 4f175d04-b952-ed11-bba2-000d3adf774e
147
- _owningbusinessunit_value: b419f090-fe22-ec11-b6e5-000d3ab596a1
148
- _owningteam_value : null
149
- _owninguser_value : 4f175d04-b952-ed11-bba2-000d3adf774e
150
- _createdby_value : 4f175d04-b952-ed11-bba2-000d3adf774e
151
- _createdonbehalfby_value : null
152
- _modifiedby_value : 4f175d04-b952-ed11-bba2-000d3adf774e
153
- _modifiedonbehalfby_value: null
154
- ```
155
-
156
- </TabItem>
157
- <TabItem value="CSV">
158
-
159
- ```csv
160
- name,cardid,publishdate,createdon,modifiedon
161
- Tasks List,0eab9392-7354-ed11-bba2-000d3adf774e,2022-10-30T16:00:00Z,2022-10-25T14:44:48Z,2022-10-25T14:44:48Z
162
- ```
163
-
164
- </TabItem>
165
- <TabItem value="Markdown">
166
-
167
- ```md
168
- # pp card get --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "0eab9392-7354-ed11-bba2-000d3adf774e"
169
-
170
- Date: 9/1/2023
171
-
172
- ## Tasks List
173
-
174
- Property | Value
175
- ---------|-------
176
- solutionid | fd140aae-4df4-11dd-bd17-0019b9312238
177
- modifiedon | 2022-10-25T14:44:48Z
178
- \_owninguser\_value | 4f175d04-b952-ed11-bba2-000d3adf774e
179
- overriddencreatedon | null
180
- ismanaged | false
181
- schemaversion | null
182
- tags | null
183
- importsequencenumber | null
184
- componentidunique | 24205370-bc43-4c5e-b095-16da18f0b1a3
185
- \_modifiedonbehalfby\_value | null
186
- componentstate | 0
187
- statecode | 0
188
- name | Tasks List
189
- versionnumber | 4451230
190
- utcconversiontimezonecode | null
191
- cardid | 0eab9392-7354-ed11-bba2-000d3adf774e
192
- publishdate | null
193
- \_createdonbehalfby\_value | null
194
- \_modifiedby\_value | 4f175d04-b952-ed11-bba2-000d3adf774e
195
- createdon | 2022-10-25T14:44:48Z
196
- overwritetime | 1900-01-01T00:00:00Z
197
- \_owningbusinessunit\_value | b419f090-fe22-ec11-b6e5-000d3ab596a1
198
- hiddentags | null
199
- description |
200
- statuscode | 1
201
- remixsourceid | null
202
- sizes | null
203
- \_createdby\_value | 4f175d04-b952-ed11-bba2-000d3adf774e
204
- \_owningteam\_value | null
205
- coowners | null
206
- \_ownerid\_value | 4f175d04-b952-ed11-bba2-000d3adf774e
207
- publishsourceid | null
208
- timezoneruleversionnumber | null
209
- ```
210
-
211
- </TabItem>
212
- </Tabs>
@@ -1,163 +0,0 @@
1
- import Global from '/docs/cmd/_global.mdx';
2
- import Tabs from '@theme/Tabs';
3
- import TabItem from '@theme/TabItem';
4
-
5
- # pp card list
6
-
7
- Lists Microsoft Power Platform cards in the specified Power Platform environment.
8
-
9
- ## Usage
10
-
11
- ```sh
12
- m365 pp card list [options]
13
- ```
14
-
15
- ## Options
16
-
17
- ```md definition-list
18
- `-e, --environmentName <environmentName>`
19
- : The name of the environment.
20
-
21
- `--asAdmin`
22
- : Run the command as admin for environments you do not have explicitly assigned permissions to.
23
- ```
24
-
25
- <Global />
26
-
27
- ## Examples
28
-
29
- List cards in a specific environment.
30
-
31
- ```sh
32
- m365 pp card list --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
33
- ```
34
-
35
- List cards in a specific environment as admin.
36
-
37
- ```sh
38
- m365 pp card list --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --asAdmin
39
- ```
40
-
41
- ## Response
42
-
43
- <Tabs>
44
- <TabItem value="JSON">
45
-
46
- ```json
47
- [
48
- {
49
- "solutionid":"fd140aae-4df4-11dd-bd17-0019b9312238",
50
- "modifiedon":"2022-10-25T14:44:48Z",
51
- "_owninguser_value":"4f175d04-b952-ed11-bba2-000d3adf774e",
52
- "overriddencreatedon":null,
53
- "ismanaged":false,
54
- "schemaversion":null,
55
- "importsequencenumber":null,
56
- "tags":null,
57
- "componentidunique":"24205370-bc43-4c5e-b095-16da18f0b1a3",
58
- "_modifiedonbehalfby_value":null,
59
- "componentstate":0,
60
- "statecode":0,
61
- "name":"Tasks List",
62
- "versionnumber":4451230,
63
- "utcconversiontimezonecode":null,
64
- "cardid":"0eab9392-7354-ed11-bba2-000d3adf774e",
65
- "publishdate":null,
66
- "_createdonbehalfby_value":null,
67
- "_modifiedby_value":"4f175d04-b952-ed11-bba2-000d3adf774e",
68
- "createdon":"2022-10-25T14:44:48Z",
69
- "overwritetime":"1900-01-01T00:00:00Z",
70
- "_owningbusinessunit_value":"b419f090-fe22-ec11-b6e5-000d3ab596a1",
71
- "hiddentags":null,
72
- "description":" ",
73
- "appdefinition":"{\"screens\":{\"main\":{\"template\":{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"TextBlock\",\"size\":\"Medium\",\"weight\":\"bolder\",\"text\":\"Your card title goes here\"},{\"type\":\"TextBlock\",\"text\":\"Add and remove element to customize your new card.\",\"wrap\":true}],\"actions\":[],\"$schema\":\"http://adaptivecards.io/schemas/1.4.0/adaptive-card.json\",\"version\":\"1.4\"},\"verbs\":{\"submit\":\"echo\"}}},\"sampleData\":{\"main\":{}},\"connections\":{},\"variables\":{},\"flows\":{}}",
74
- "statuscode":1,
75
- "remixsourceid":null,
76
- "sizes":null,
77
- "coowners":null,
78
- "_owningteam_value":null,
79
- "_createdby_value":"4f175d04-b952-ed11-bba2-000d3adf774e",
80
- "_ownerid_value":"4f175d04-b952-ed11-bba2-000d3adf774e",
81
- "publishsourceid":null,
82
- "timezoneruleversionnumber":null,
83
- "iscustomizable":{
84
- "Value":true,
85
- "CanBeChanged":true,
86
- "ManagedPropertyLogicalName":"iscustomizableanddeletable"
87
- },
88
- "owninguser":{
89
- "azureactivedirectoryobjectid":"78637d62-e872-4dc9-b7c1-bd161e631682",
90
- "fullname":"# John Doe",
91
- "systemuserid":"4f175d04-b952-ed11-bba2-000d3adf774e",
92
- "ownerid":"4f175d04-b952-ed11-bba2-000d3adf774e"
93
- }
94
- }
95
- ]
96
- ```
97
-
98
- </TabItem>
99
- <TabItem value="Text">
100
-
101
- ```text
102
- name cardid publishdate createdon modifiedon
103
- ---------- ------------------------------------ ----------- -------------------- --------------------
104
- Tasks List 0eab9392-7354-ed11-bba2-000d3adf774e 2022-10-30T16:00:00Z 2022-10-25T14:44:48Z 2022-10-25T14:44:48Z
105
- ```
106
-
107
- </TabItem>
108
- <TabItem value="CSV">
109
-
110
- ```csv
111
- name,cardid,publishdate,createdon,modifiedon
112
- Tasks List,0eab9392-7354-ed11-bba2-000d3adf774e,2022-10-30T16:00:00Z,2022-10-25T14:44:48Z,2022-10-25T14:44:48Z
113
- ```
114
-
115
- </TabItem>
116
- <TabItem value="Markdown">
117
-
118
- ```md
119
- # pp card list --environmentName "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
120
-
121
- Date: 9/1/2023
122
-
123
- ## Tasks List
124
-
125
- Property | Value
126
- ---------|-------
127
- solutionid | fd140aae-4df4-11dd-bd17-0019b9312238
128
- modifiedon | 2022-10-25T14:44:48Z
129
- \_owninguser\_value | 4f175d04-b952-ed11-bba2-000d3adf774e
130
- overriddencreatedon | null
131
- ismanaged | false
132
- schemaversion | null
133
- tags | null
134
- importsequencenumber | null
135
- componentidunique | 24205370-bc43-4c5e-b095-16da18f0b1a3
136
- \_modifiedonbehalfby\_value | null
137
- componentstate | 0
138
- statecode | 0
139
- name | Tasks List
140
- versionnumber | 4451230
141
- utcconversiontimezonecode | null
142
- cardid | 0eab9392-7354-ed11-bba2-000d3adf774e
143
- publishdate | null
144
- \_createdonbehalfby\_value | null
145
- \_modifiedby\_value | 4f175d04-b952-ed11-bba2-000d3adf774e
146
- createdon | 2022-10-25T14:44:48Z
147
- overwritetime | 1900-01-01T00:00:00Z
148
- \_owningbusinessunit\_value | b419f090-fe22-ec11-b6e5-000d3ab596a1
149
- hiddentags | null
150
- description |
151
- statuscode | 1
152
- remixsourceid | null
153
- sizes | null
154
- \_createdby\_value | 4f175d04-b952-ed11-bba2-000d3adf774e
155
- \_owningteam\_value | null
156
- coowners | null
157
- \_ownerid\_value | 4f175d04-b952-ed11-bba2-000d3adf774e
158
- publishsourceid | null
159
- timezoneruleversionnumber | null
160
- ```
161
-
162
- </TabItem>
163
- </Tabs>