@pnp/cli-microsoft365 10.11.0 → 11.0.0-beta.4be9237
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/m365/pp/commands.js +0 -4
- package/dist/m365/spo/commands/customaction/customaction-list.js +3 -10
- package/dist/m365/spo/commands/homesite/homesite-set.js +88 -44
- package/dist/m365/spo/commands.js +0 -1
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +5 -12
- package/dist/m365/teams/commands/report/report-pstncalls.js +5 -12
- package/dist/m365/viva/commands.js +0 -3
- package/docs/docs/cmd/spo/homesite/homesite-set.mdx +85 -45
- package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +25 -44
- package/docs/docs/cmd/teams/report/report-pstncalls.mdx +25 -48
- package/docs/docs/cmd/viva/engage/engage-community-list.mdx +19 -0
- package/docs/docs/cmd/viva/engage/engage-community-user-add.mdx +19 -0
- package/docs/docs/cmd/viva/engage/engage-community-user-remove.mdx +19 -0
- package/npm-shrinkwrap.json +53 -53
- package/package.json +13 -13
- package/dist/m365/pp/commands/card/card-clone.js +0 -101
- package/dist/m365/pp/commands/card/card-get.js +0 -89
- package/dist/m365/pp/commands/card/card-list.js +0 -55
- package/dist/m365/pp/commands/card/card-remove.js +0 -105
- package/dist/m365/skype/commands/report/report-activitycounts.js +0 -15
- package/dist/m365/skype/commands/report/report-activityusercounts.js +0 -15
- package/dist/m365/skype/commands/report/report-activityuserdetail.js +0 -15
- package/dist/m365/skype/commands.js +0 -7
- package/dist/m365/spo/commands/mail/mail-send.js +0 -108
- package/dist/m365/viva/commands/engage/engage-group-list.js +0 -93
- package/dist/m365/viva/commands/engage/engage-group-user-add.js +0 -73
- package/dist/m365/viva/commands/engage/engage-group-user-remove.js +0 -88
- package/docs/docs/cmd/pp/card/card-clone.mdx +0 -103
- package/docs/docs/cmd/pp/card/card-get.mdx +0 -212
- package/docs/docs/cmd/pp/card/card-list.mdx +0 -163
- package/docs/docs/cmd/pp/card/card-remove.mdx +0 -86
- package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -96
- package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -96
- package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -134
- package/docs/docs/cmd/spo/mail/mail-send.mdx +0 -69
- package/docs/docs/cmd/viva/engage/engage-group-list.mdx +0 -174
- package/docs/docs/cmd/viva/engage/engage-group-user-add.mdx +0 -60
- package/docs/docs/cmd/viva/engage/engage-group-user-remove.mdx +0 -58
|
@@ -56,52 +56,37 @@ Get details about PSTN calls made between 2020-10-31 and 2020-12-31 and exports
|
|
|
56
56
|
m365 teams report pstncalls --fromDateTime 2020-10-31 --toDateTime 2020-12-31 --output json > "pstncalls.json"
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
## More information
|
|
60
|
-
|
|
61
|
-
- List PSTN calls: [https://learn.microsoft.com/graph/api/callrecords-callrecord-getpstncalls?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/callrecords-callrecord-getpstncalls?view=graph-rest-1.0)
|
|
62
|
-
|
|
63
59
|
## Response
|
|
64
60
|
|
|
65
61
|
<Tabs>
|
|
66
62
|
<TabItem value="JSON">
|
|
67
63
|
|
|
68
64
|
``` json
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
</TabItem>
|
|
100
|
-
<TabItem value="Text">
|
|
101
|
-
|
|
102
|
-
``` text
|
|
103
|
-
id,calleeNumber,callerNumber,startDateTime
|
|
104
|
-
9c4984c7-6c3c-427d-a30c-bd0b2eacee90,+1234567890,+0123456789,2019-11-01T00:00:08.2589935Z
|
|
65
|
+
[
|
|
66
|
+
{
|
|
67
|
+
"id": "9c4984c7-6c3c-427d-a30c-bd0b2eacee90",
|
|
68
|
+
"callId": "1835317186_112562680@61.221.3.176",
|
|
69
|
+
"userId": "db03c14b-06eb-4189-939b-7cbf3a20ba27",
|
|
70
|
+
"userPrincipalName": "richard.malk@contoso.com",
|
|
71
|
+
"userDisplayName": "Richard Malk",
|
|
72
|
+
"startDateTime": "2019-11-01T00:00:08.2589935Z",
|
|
73
|
+
"endDateTime": "2019-11-01T00:03:47.2589935Z",
|
|
74
|
+
"duration": 219,
|
|
75
|
+
"charge": 0.00,
|
|
76
|
+
"callType": "user_in",
|
|
77
|
+
"currency": "USD",
|
|
78
|
+
"calleeNumber": "+1234567890",
|
|
79
|
+
"usageCountryCode": "US",
|
|
80
|
+
"tenantCountryCode": "US",
|
|
81
|
+
"connectionCharge": 0.00,
|
|
82
|
+
"callerNumber": "+0123456789",
|
|
83
|
+
"destinationContext": null,
|
|
84
|
+
"destinationName": "United States",
|
|
85
|
+
"conferenceId": null,
|
|
86
|
+
"licenseCapability": "MCOPSTNU",
|
|
87
|
+
"inventoryType": "Subscriber"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
105
90
|
```
|
|
106
91
|
|
|
107
92
|
</TabItem>
|
|
@@ -112,14 +97,6 @@ m365 teams report pstncalls --fromDateTime 2020-10-31 --toDateTime 2020-12-31 --
|
|
|
112
97
|
9c4984c7-6c3c-427d-a30c-bd0b2eacee90,+1234567890,+0123456789,2019-11-01T00:00:08.2589935Z
|
|
113
98
|
```
|
|
114
99
|
|
|
115
|
-
</TabItem>
|
|
116
|
-
<TabItem value="Markdown">
|
|
117
|
-
|
|
118
|
-
```md
|
|
119
|
-
id,calleeNumber,callerNumber,startDateTime
|
|
120
|
-
9c4984c7-6c3c-427d-a30c-bd0b2eacee90,+1234567890,+0123456789,2019-11-01T00:00:08.2589935Z
|
|
121
|
-
```
|
|
122
|
-
|
|
123
100
|
</TabItem>
|
|
124
101
|
</Tabs>
|
|
125
102
|
|
|
@@ -16,6 +16,25 @@ m365 viva engage community list [options]
|
|
|
16
16
|
|
|
17
17
|
<Global />
|
|
18
18
|
|
|
19
|
+
## Permissions
|
|
20
|
+
|
|
21
|
+
<Tabs>
|
|
22
|
+
<TabItem value="Delegated">
|
|
23
|
+
|
|
24
|
+
| Resource | Permissions |
|
|
25
|
+
|-----------------|--------------------|
|
|
26
|
+
| Microsoft Graph | Community.Read.All |
|
|
27
|
+
|
|
28
|
+
</TabItem>
|
|
29
|
+
<TabItem value="Application">
|
|
30
|
+
|
|
31
|
+
| Resource | Permissions |
|
|
32
|
+
|-----------------|--------------------|
|
|
33
|
+
| Microsoft Graph | Community.Read.All |
|
|
34
|
+
|
|
35
|
+
</TabItem>
|
|
36
|
+
</Tabs>
|
|
37
|
+
|
|
19
38
|
## Examples
|
|
20
39
|
|
|
21
40
|
Lists all Viva Engage communities
|
|
@@ -36,6 +36,25 @@ m365 viva engage community user add [options]
|
|
|
36
36
|
|
|
37
37
|
<Global />
|
|
38
38
|
|
|
39
|
+
## Permissions
|
|
40
|
+
|
|
41
|
+
<Tabs>
|
|
42
|
+
<TabItem value="Delegated">
|
|
43
|
+
|
|
44
|
+
| Resource | Permissions |
|
|
45
|
+
|-----------------|---------------------------|
|
|
46
|
+
| Microsoft Graph | GroupMember.ReadWrite.All |
|
|
47
|
+
|
|
48
|
+
</TabItem>
|
|
49
|
+
<TabItem value="Application">
|
|
50
|
+
|
|
51
|
+
| Resource | Permissions |
|
|
52
|
+
|-----------------|---------------------------|
|
|
53
|
+
| Microsoft Graph | GroupMember.ReadWrite.All |
|
|
54
|
+
|
|
55
|
+
</TabItem>
|
|
56
|
+
</Tabs>
|
|
57
|
+
|
|
39
58
|
## Examples
|
|
40
59
|
|
|
41
60
|
Add a single user specified by ID as a member to a community specified by display name.
|
|
@@ -36,6 +36,25 @@ m365 viva engage community user remove [options]
|
|
|
36
36
|
|
|
37
37
|
<Global />
|
|
38
38
|
|
|
39
|
+
## Permissions
|
|
40
|
+
|
|
41
|
+
<Tabs>
|
|
42
|
+
<TabItem value="Delegated">
|
|
43
|
+
|
|
44
|
+
| Resource | Permissions |
|
|
45
|
+
|-----------------|---------------------------|
|
|
46
|
+
| Microsoft Graph | GroupMember.ReadWrite.All |
|
|
47
|
+
|
|
48
|
+
</TabItem>
|
|
49
|
+
<TabItem value="Application">
|
|
50
|
+
|
|
51
|
+
| Resource | Permissions |
|
|
52
|
+
|-----------------|---------------------------|
|
|
53
|
+
| Microsoft Graph | GroupMember.ReadWrite.All |
|
|
54
|
+
|
|
55
|
+
</TabItem>
|
|
56
|
+
</Tabs>
|
|
57
|
+
|
|
39
58
|
## Examples
|
|
40
59
|
|
|
41
60
|
Remove a user specified by ID as a member from a community specified by display name.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@pnp/cli-microsoft365",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "11.0.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@azure/msal-common": "^15.
|
|
13
|
-
"@azure/msal-node": "^3.7.
|
|
14
|
-
"@inquirer/confirm": "^5.1.
|
|
15
|
-
"@inquirer/input": "^4.2.
|
|
16
|
-
"@inquirer/select": "^4.3.
|
|
12
|
+
"@azure/msal-common": "^15.12.0",
|
|
13
|
+
"@azure/msal-node": "^3.7.3",
|
|
14
|
+
"@inquirer/confirm": "^5.1.16",
|
|
15
|
+
"@inquirer/input": "^4.2.2",
|
|
16
|
+
"@inquirer/select": "^4.3.2",
|
|
17
17
|
"@xmldom/xmldom": "^0.9.8",
|
|
18
|
-
"adaptive-expressions": "^4.23.
|
|
18
|
+
"adaptive-expressions": "^4.23.3",
|
|
19
19
|
"adaptivecards": "^3.0.5",
|
|
20
20
|
"adaptivecards-templating": "^2.3.1",
|
|
21
21
|
"adm-zip": "^0.5.16",
|
|
22
22
|
"applicationinsights": "^3.9.0",
|
|
23
23
|
"axios": "^1.11.0",
|
|
24
|
-
"chalk": "^5.
|
|
24
|
+
"chalk": "^5.6.0",
|
|
25
25
|
"clipboardy": "^4.0.0",
|
|
26
26
|
"configstore": "^7.0.0",
|
|
27
27
|
"csv-parse": "^5.6.0",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"@types/json-schema": "^7.0.15",
|
|
56
56
|
"@types/json-to-ast": "^2.1.4",
|
|
57
57
|
"@types/mocha": "^10.0.10",
|
|
58
|
-
"@types/node": "^22.
|
|
59
|
-
"@types/node-forge": "^1.3.
|
|
58
|
+
"@types/node": "^22.18.1",
|
|
59
|
+
"@types/node-forge": "^1.3.14",
|
|
60
60
|
"@types/omelette": "^0.4.5",
|
|
61
|
-
"@types/semver": "^7.7.
|
|
61
|
+
"@types/semver": "^7.7.1",
|
|
62
62
|
"@types/sinon": "^17.0.4",
|
|
63
63
|
"@types/update-notifier": "^6.0.8",
|
|
64
64
|
"@types/uuid": "^10.0.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"eslint": "^8.57.1",
|
|
70
70
|
"eslint-plugin-cli-microsoft365": "file:eslint-rules",
|
|
71
71
|
"eslint-plugin-mocha": "^10.5.0",
|
|
72
|
-
"mocha": "^11.7.
|
|
72
|
+
"mocha": "^11.7.2",
|
|
73
73
|
"rimraf": "^6.0.1",
|
|
74
74
|
"sinon": "^21.0.0",
|
|
75
75
|
"source-map-support": "^0.5.21"
|
|
@@ -386,21 +386,21 @@
|
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
388
|
"node_modules/@azure/msal-common": {
|
|
389
|
-
"version": "15.
|
|
390
|
-
"resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.
|
|
391
|
-
"integrity": "sha512
|
|
389
|
+
"version": "15.12.0",
|
|
390
|
+
"resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.12.0.tgz",
|
|
391
|
+
"integrity": "sha512-4ucXbjVw8KJ5QBgnGJUeA07c8iznwlk5ioHIhI4ASXcXgcf2yRFhWzYOyWg/cI49LC9ekpFJeQtO3zjDTbl6TQ==",
|
|
392
392
|
"license": "MIT",
|
|
393
393
|
"engines": {
|
|
394
394
|
"node": ">=0.8.0"
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
"node_modules/@azure/msal-node": {
|
|
398
|
-
"version": "3.7.
|
|
399
|
-
"resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.7.
|
|
400
|
-
"integrity": "sha512-
|
|
398
|
+
"version": "3.7.3",
|
|
399
|
+
"resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.7.3.tgz",
|
|
400
|
+
"integrity": "sha512-MoJxkKM/YpChfq4g2o36tElyzNUMG8mfD6u8NbuaPAsqfGpaw249khAcJYNoIOigUzRw45OjXCOrexE6ImdUxg==",
|
|
401
401
|
"license": "MIT",
|
|
402
402
|
"dependencies": {
|
|
403
|
-
"@azure/msal-common": "15.
|
|
403
|
+
"@azure/msal-common": "15.12.0",
|
|
404
404
|
"jsonwebtoken": "^9.0.0",
|
|
405
405
|
"uuid": "^8.3.0"
|
|
406
406
|
},
|
|
@@ -663,12 +663,12 @@
|
|
|
663
663
|
"license": "BSD-3-Clause"
|
|
664
664
|
},
|
|
665
665
|
"node_modules/@inquirer/confirm": {
|
|
666
|
-
"version": "5.1.
|
|
667
|
-
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.
|
|
668
|
-
"integrity": "sha512-
|
|
666
|
+
"version": "5.1.16",
|
|
667
|
+
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.16.tgz",
|
|
668
|
+
"integrity": "sha512-j1a5VstaK5KQy8Mu8cHmuQvN1Zc62TbLhjJxwHvKPPKEoowSF6h/0UdOpA9DNdWZ+9Inq73+puRq1df6OJ8Sag==",
|
|
669
669
|
"license": "MIT",
|
|
670
670
|
"dependencies": {
|
|
671
|
-
"@inquirer/core": "^10.
|
|
671
|
+
"@inquirer/core": "^10.2.0",
|
|
672
672
|
"@inquirer/type": "^3.0.8"
|
|
673
673
|
},
|
|
674
674
|
"engines": {
|
|
@@ -684,9 +684,9 @@
|
|
|
684
684
|
}
|
|
685
685
|
},
|
|
686
686
|
"node_modules/@inquirer/core": {
|
|
687
|
-
"version": "10.
|
|
688
|
-
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.
|
|
689
|
-
"integrity": "sha512-
|
|
687
|
+
"version": "10.2.0",
|
|
688
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.2.0.tgz",
|
|
689
|
+
"integrity": "sha512-NyDSjPqhSvpZEMZrLCYUquWNl+XC/moEcVFqS55IEYIYsY0a1cUCevSqk7ctOlnm/RaSBU5psFryNlxcmGrjaA==",
|
|
690
690
|
"license": "MIT",
|
|
691
691
|
"dependencies": {
|
|
692
692
|
"@inquirer/figures": "^1.0.13",
|
|
@@ -720,12 +720,12 @@
|
|
|
720
720
|
}
|
|
721
721
|
},
|
|
722
722
|
"node_modules/@inquirer/input": {
|
|
723
|
-
"version": "4.2.
|
|
724
|
-
"resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.2.
|
|
725
|
-
"integrity": "sha512-
|
|
723
|
+
"version": "4.2.2",
|
|
724
|
+
"resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.2.2.tgz",
|
|
725
|
+
"integrity": "sha512-hqOvBZj/MhQCpHUuD3MVq18SSoDNHy7wEnQ8mtvs71K8OPZVXJinOzcvQna33dNYLYE4LkA9BlhAhK6MJcsVbw==",
|
|
726
726
|
"license": "MIT",
|
|
727
727
|
"dependencies": {
|
|
728
|
-
"@inquirer/core": "^10.
|
|
728
|
+
"@inquirer/core": "^10.2.0",
|
|
729
729
|
"@inquirer/type": "^3.0.8"
|
|
730
730
|
},
|
|
731
731
|
"engines": {
|
|
@@ -741,12 +741,12 @@
|
|
|
741
741
|
}
|
|
742
742
|
},
|
|
743
743
|
"node_modules/@inquirer/select": {
|
|
744
|
-
"version": "4.3.
|
|
745
|
-
"resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.3.
|
|
746
|
-
"integrity": "sha512-
|
|
744
|
+
"version": "4.3.2",
|
|
745
|
+
"resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.3.2.tgz",
|
|
746
|
+
"integrity": "sha512-nwous24r31M+WyDEHV+qckXkepvihxhnyIaod2MG7eCE6G0Zm/HUF6jgN8GXgf4U7AU6SLseKdanY195cwvU6w==",
|
|
747
747
|
"license": "MIT",
|
|
748
748
|
"dependencies": {
|
|
749
|
-
"@inquirer/core": "^10.
|
|
749
|
+
"@inquirer/core": "^10.2.0",
|
|
750
750
|
"@inquirer/figures": "^1.0.13",
|
|
751
751
|
"@inquirer/type": "^3.0.8",
|
|
752
752
|
"ansi-escapes": "^4.3.2",
|
|
@@ -3233,18 +3233,18 @@
|
|
|
3233
3233
|
}
|
|
3234
3234
|
},
|
|
3235
3235
|
"node_modules/@types/node": {
|
|
3236
|
-
"version": "22.
|
|
3237
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.
|
|
3238
|
-
"integrity": "sha512-
|
|
3236
|
+
"version": "22.18.1",
|
|
3237
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.1.tgz",
|
|
3238
|
+
"integrity": "sha512-rzSDyhn4cYznVG+PCzGe1lwuMYJrcBS1fc3JqSa2PvtABwWo+dZ1ij5OVok3tqfpEBCBoaR4d7upFJk73HRJDw==",
|
|
3239
3239
|
"license": "MIT",
|
|
3240
3240
|
"dependencies": {
|
|
3241
3241
|
"undici-types": "~6.21.0"
|
|
3242
3242
|
}
|
|
3243
3243
|
},
|
|
3244
3244
|
"node_modules/@types/node-forge": {
|
|
3245
|
-
"version": "1.3.
|
|
3246
|
-
"resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.
|
|
3247
|
-
"integrity": "sha512-
|
|
3245
|
+
"version": "1.3.14",
|
|
3246
|
+
"resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.14.tgz",
|
|
3247
|
+
"integrity": "sha512-mhVF2BnD4BO+jtOp7z1CdzaK4mbuK0LLQYAvdOLqHTavxFNq4zA1EmYkpnFjP8HOUzedfQkRnp0E2ulSAYSzAw==",
|
|
3248
3248
|
"dev": true,
|
|
3249
3249
|
"license": "MIT",
|
|
3250
3250
|
"dependencies": {
|
|
@@ -3279,9 +3279,9 @@
|
|
|
3279
3279
|
}
|
|
3280
3280
|
},
|
|
3281
3281
|
"node_modules/@types/semver": {
|
|
3282
|
-
"version": "7.7.
|
|
3283
|
-
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.7.
|
|
3284
|
-
"integrity": "sha512-
|
|
3282
|
+
"version": "7.7.1",
|
|
3283
|
+
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.7.1.tgz",
|
|
3284
|
+
"integrity": "sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==",
|
|
3285
3285
|
"dev": true,
|
|
3286
3286
|
"license": "MIT"
|
|
3287
3287
|
},
|
|
@@ -3600,9 +3600,9 @@
|
|
|
3600
3600
|
}
|
|
3601
3601
|
},
|
|
3602
3602
|
"node_modules/adaptive-expressions": {
|
|
3603
|
-
"version": "4.23.
|
|
3604
|
-
"resolved": "https://registry.npmjs.org/adaptive-expressions/-/adaptive-expressions-4.23.
|
|
3605
|
-
"integrity": "sha512-
|
|
3603
|
+
"version": "4.23.3",
|
|
3604
|
+
"resolved": "https://registry.npmjs.org/adaptive-expressions/-/adaptive-expressions-4.23.3.tgz",
|
|
3605
|
+
"integrity": "sha512-7i1Ka6SR0gVcyHgoaZDiZi3BW3m9jN+lqfiMF6IY7SjugfeauXoZRl5sIDwJkYZNnffrfUuK7Pc3I3JiKfPBMw==",
|
|
3606
3606
|
"license": "MIT",
|
|
3607
3607
|
"dependencies": {
|
|
3608
3608
|
"@microsoft/recognizers-text-data-types-timex-expression": "~1.3.1",
|
|
@@ -4115,9 +4115,9 @@
|
|
|
4115
4115
|
}
|
|
4116
4116
|
},
|
|
4117
4117
|
"node_modules/chalk": {
|
|
4118
|
-
"version": "5.
|
|
4119
|
-
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.
|
|
4120
|
-
"integrity": "sha512-
|
|
4118
|
+
"version": "5.6.0",
|
|
4119
|
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.0.tgz",
|
|
4120
|
+
"integrity": "sha512-46QrSQFyVSEyYAgQ22hQ+zDa60YHA4fBstHmtSApj1Y5vKtG27fWowW03jCk5KcbXEWPZUIR894aARCA/G1kfQ==",
|
|
4121
4121
|
"license": "MIT",
|
|
4122
4122
|
"engines": {
|
|
4123
4123
|
"node": "^12.17.0 || ^14.13 || >=16.0.0"
|
|
@@ -6368,9 +6368,9 @@
|
|
|
6368
6368
|
}
|
|
6369
6369
|
},
|
|
6370
6370
|
"node_modules/mocha": {
|
|
6371
|
-
"version": "11.7.
|
|
6372
|
-
"resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.
|
|
6373
|
-
"integrity": "sha512-
|
|
6371
|
+
"version": "11.7.2",
|
|
6372
|
+
"resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.2.tgz",
|
|
6373
|
+
"integrity": "sha512-lkqVJPmqqG/w5jmmFtiRvtA2jkDyNVUcefFJKb2uyX4dekk8Okgqop3cgbFiaIvj8uCRJVTP5x9dfxGyXm2jvQ==",
|
|
6374
6374
|
"dev": true,
|
|
6375
6375
|
"license": "MIT",
|
|
6376
6376
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-beta.4be9237",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -257,19 +257,19 @@
|
|
|
257
257
|
"Zachariassen Laksafoss, Trygvi <trygvi.laksafoss@gmail.com>"
|
|
258
258
|
],
|
|
259
259
|
"dependencies": {
|
|
260
|
-
"@azure/msal-common": "^15.
|
|
261
|
-
"@azure/msal-node": "^3.7.
|
|
262
|
-
"@inquirer/confirm": "^5.1.
|
|
263
|
-
"@inquirer/input": "^4.2.
|
|
264
|
-
"@inquirer/select": "^4.3.
|
|
260
|
+
"@azure/msal-common": "^15.12.0",
|
|
261
|
+
"@azure/msal-node": "^3.7.3",
|
|
262
|
+
"@inquirer/confirm": "^5.1.16",
|
|
263
|
+
"@inquirer/input": "^4.2.2",
|
|
264
|
+
"@inquirer/select": "^4.3.2",
|
|
265
265
|
"@xmldom/xmldom": "^0.9.8",
|
|
266
|
-
"adaptive-expressions": "^4.23.
|
|
266
|
+
"adaptive-expressions": "^4.23.3",
|
|
267
267
|
"adaptivecards": "^3.0.5",
|
|
268
268
|
"adaptivecards-templating": "^2.3.1",
|
|
269
269
|
"adm-zip": "^0.5.16",
|
|
270
270
|
"applicationinsights": "^3.9.0",
|
|
271
271
|
"axios": "^1.11.0",
|
|
272
|
-
"chalk": "^5.
|
|
272
|
+
"chalk": "^5.6.0",
|
|
273
273
|
"clipboardy": "^4.0.0",
|
|
274
274
|
"configstore": "^7.0.0",
|
|
275
275
|
"csv-parse": "^5.6.0",
|
|
@@ -297,10 +297,10 @@
|
|
|
297
297
|
"@types/json-schema": "^7.0.15",
|
|
298
298
|
"@types/json-to-ast": "^2.1.4",
|
|
299
299
|
"@types/mocha": "^10.0.10",
|
|
300
|
-
"@types/node": "^22.
|
|
301
|
-
"@types/node-forge": "^1.3.
|
|
300
|
+
"@types/node": "^22.18.1",
|
|
301
|
+
"@types/node-forge": "^1.3.14",
|
|
302
302
|
"@types/omelette": "^0.4.5",
|
|
303
|
-
"@types/semver": "^7.7.
|
|
303
|
+
"@types/semver": "^7.7.1",
|
|
304
304
|
"@types/sinon": "^17.0.4",
|
|
305
305
|
"@types/update-notifier": "^6.0.8",
|
|
306
306
|
"@types/uuid": "^10.0.0",
|
|
@@ -311,9 +311,9 @@
|
|
|
311
311
|
"eslint": "^8.57.1",
|
|
312
312
|
"eslint-plugin-cli-microsoft365": "file:eslint-rules",
|
|
313
313
|
"eslint-plugin-mocha": "^10.5.0",
|
|
314
|
-
"mocha": "^11.7.
|
|
314
|
+
"mocha": "^11.7.2",
|
|
315
315
|
"rimraf": "^6.0.1",
|
|
316
316
|
"sinon": "^21.0.0",
|
|
317
317
|
"source-map-support": "^0.5.21"
|
|
318
318
|
}
|
|
319
|
-
}
|
|
319
|
+
}
|
|
@@ -1,101 +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 _PpCardCloneCommand_instances, _PpCardCloneCommand_initTelemetry, _PpCardCloneCommand_initOptions, _PpCardCloneCommand_initOptionSets, _PpCardCloneCommand_initValidators;
|
|
7
|
-
import request from '../../../../request.js';
|
|
8
|
-
import { powerPlatform } from '../../../../utils/powerPlatform.js';
|
|
9
|
-
import { validation } from '../../../../utils/validation.js';
|
|
10
|
-
import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
|
|
11
|
-
import commands from '../../commands.js';
|
|
12
|
-
class PpCardCloneCommand extends PowerPlatformCommand {
|
|
13
|
-
get name() {
|
|
14
|
-
return commands.CARD_CLONE;
|
|
15
|
-
}
|
|
16
|
-
get description() {
|
|
17
|
-
return 'Clones a specific Microsoft Power Platform card in the specified Power Platform environment.';
|
|
18
|
-
}
|
|
19
|
-
constructor() {
|
|
20
|
-
super();
|
|
21
|
-
_PpCardCloneCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _PpCardCloneCommand_instances, "m", _PpCardCloneCommand_initTelemetry).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _PpCardCloneCommand_instances, "m", _PpCardCloneCommand_initOptions).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _PpCardCloneCommand_instances, "m", _PpCardCloneCommand_initValidators).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _PpCardCloneCommand_instances, "m", _PpCardCloneCommand_initOptionSets).call(this);
|
|
26
|
-
}
|
|
27
|
-
async commandAction(logger, args) {
|
|
28
|
-
if (this.verbose) {
|
|
29
|
-
await logger.logToStderr(`Cloning a card from '${args.options.id || args.options.name}'...`);
|
|
30
|
-
}
|
|
31
|
-
const res = await this.cloneCard(args, logger);
|
|
32
|
-
await logger.log(res);
|
|
33
|
-
}
|
|
34
|
-
async getCardId(args, dynamicsApiUrl, logger) {
|
|
35
|
-
if (args.options.id) {
|
|
36
|
-
return args.options.id;
|
|
37
|
-
}
|
|
38
|
-
if (this.verbose) {
|
|
39
|
-
await logger.logToStderr(`Retrieving the card Id for card '${args.options.name}'`);
|
|
40
|
-
}
|
|
41
|
-
const card = await powerPlatform.getCardByName(dynamicsApiUrl, args.options.name);
|
|
42
|
-
return card.cardid;
|
|
43
|
-
}
|
|
44
|
-
async cloneCard(args, logger) {
|
|
45
|
-
try {
|
|
46
|
-
const dynamicsApiUrl = await powerPlatform.getDynamicsInstanceApiUrl(args.options.environmentName, args.options.asAdmin);
|
|
47
|
-
const cardId = await this.getCardId(args, dynamicsApiUrl, logger);
|
|
48
|
-
if (this.verbose) {
|
|
49
|
-
await logger.logToStderr(`Cloning the card with id '${cardId}'`);
|
|
50
|
-
}
|
|
51
|
-
const requestOptions = {
|
|
52
|
-
url: `${dynamicsApiUrl}/api/data/v9.1/CardCreateClone`,
|
|
53
|
-
headers: {
|
|
54
|
-
accept: 'application/json;odata.metadata=none'
|
|
55
|
-
},
|
|
56
|
-
responseType: 'json',
|
|
57
|
-
data: {
|
|
58
|
-
CardId: cardId,
|
|
59
|
-
CardName: args.options.newName
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
const response = await request.post(requestOptions);
|
|
63
|
-
return response;
|
|
64
|
-
}
|
|
65
|
-
catch (err) {
|
|
66
|
-
this.handleRejectedODataJsonPromise(err);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
_PpCardCloneCommand_instances = new WeakSet(), _PpCardCloneCommand_initTelemetry = function _PpCardCloneCommand_initTelemetry() {
|
|
71
|
-
this.telemetry.push((args) => {
|
|
72
|
-
Object.assign(this.telemetryProperties, {
|
|
73
|
-
id: typeof args.options.id !== 'undefined',
|
|
74
|
-
name: typeof args.options.name !== 'undefined',
|
|
75
|
-
asAdmin: !!args.options.asAdmin
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
}, _PpCardCloneCommand_initOptions = function _PpCardCloneCommand_initOptions() {
|
|
79
|
-
this.options.unshift({
|
|
80
|
-
option: '-e, --environmentName <environmentName>'
|
|
81
|
-
}, {
|
|
82
|
-
option: '--newName <newName>'
|
|
83
|
-
}, {
|
|
84
|
-
option: '-i, --id [id]'
|
|
85
|
-
}, {
|
|
86
|
-
option: '-n, --name [name]'
|
|
87
|
-
}, {
|
|
88
|
-
option: '--asAdmin'
|
|
89
|
-
});
|
|
90
|
-
}, _PpCardCloneCommand_initOptionSets = function _PpCardCloneCommand_initOptionSets() {
|
|
91
|
-
this.optionSets.push({ options: ['id', 'name'] });
|
|
92
|
-
}, _PpCardCloneCommand_initValidators = function _PpCardCloneCommand_initValidators() {
|
|
93
|
-
this.validators.push(async (args) => {
|
|
94
|
-
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
95
|
-
return `${args.options.id} is not a valid GUID`;
|
|
96
|
-
}
|
|
97
|
-
return true;
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
export default new PpCardCloneCommand();
|
|
101
|
-
//# sourceMappingURL=card-clone.js.map
|
|
@@ -1,89 +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 _PpCardGetCommand_instances, _PpCardGetCommand_initTelemetry, _PpCardGetCommand_initOptions, _PpCardGetCommand_initOptionSets, _PpCardGetCommand_initValidators;
|
|
7
|
-
import request from '../../../../request.js';
|
|
8
|
-
import { powerPlatform } from '../../../../utils/powerPlatform.js';
|
|
9
|
-
import { validation } from '../../../../utils/validation.js';
|
|
10
|
-
import PowerPlatformCommand from '../../../base/PowerPlatformCommand.js';
|
|
11
|
-
import commands from '../../commands.js';
|
|
12
|
-
class PpCardGetCommand extends PowerPlatformCommand {
|
|
13
|
-
get name() {
|
|
14
|
-
return commands.CARD_GET;
|
|
15
|
-
}
|
|
16
|
-
get description() {
|
|
17
|
-
return 'Get specific Microsoft Power Platform card in the specified Power Platform environment.';
|
|
18
|
-
}
|
|
19
|
-
constructor() {
|
|
20
|
-
super();
|
|
21
|
-
_PpCardGetCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _PpCardGetCommand_instances, "m", _PpCardGetCommand_initTelemetry).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _PpCardGetCommand_instances, "m", _PpCardGetCommand_initOptions).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _PpCardGetCommand_instances, "m", _PpCardGetCommand_initValidators).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _PpCardGetCommand_instances, "m", _PpCardGetCommand_initOptionSets).call(this);
|
|
26
|
-
}
|
|
27
|
-
async commandAction(logger, args) {
|
|
28
|
-
if (this.verbose) {
|
|
29
|
-
await logger.logToStderr(`Retrieving a card '${args.options.id || args.options.name}'...`);
|
|
30
|
-
}
|
|
31
|
-
try {
|
|
32
|
-
const dynamicsApiUrl = await powerPlatform.getDynamicsInstanceApiUrl(args.options.environmentName, args.options.asAdmin);
|
|
33
|
-
const res = await this.getCard(dynamicsApiUrl, args.options, logger);
|
|
34
|
-
await logger.log(res);
|
|
35
|
-
}
|
|
36
|
-
catch (err) {
|
|
37
|
-
this.handleRejectedODataJsonPromise(err);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
async getCard(dynamicsApiUrl, options, logger) {
|
|
41
|
-
if (options.name) {
|
|
42
|
-
if (this.verbose) {
|
|
43
|
-
await logger.logToStderr(`Retrieving the card with name '${options.name}'`);
|
|
44
|
-
}
|
|
45
|
-
return await powerPlatform.getCardByName(dynamicsApiUrl, options.name);
|
|
46
|
-
}
|
|
47
|
-
if (this.verbose) {
|
|
48
|
-
await logger.logToStderr(`Retrieving the card with id '${options.id}'`);
|
|
49
|
-
}
|
|
50
|
-
const requestOptions = {
|
|
51
|
-
url: `${dynamicsApiUrl}/api/data/v9.1/cards(${options.id})`,
|
|
52
|
-
headers: {
|
|
53
|
-
accept: 'application/json;odata.metadata=none'
|
|
54
|
-
},
|
|
55
|
-
responseType: 'json'
|
|
56
|
-
};
|
|
57
|
-
return await request.get(requestOptions);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
_PpCardGetCommand_instances = new WeakSet(), _PpCardGetCommand_initTelemetry = function _PpCardGetCommand_initTelemetry() {
|
|
61
|
-
this.telemetry.push((args) => {
|
|
62
|
-
Object.assign(this.telemetryProperties, {
|
|
63
|
-
id: typeof args.options.id !== 'undefined',
|
|
64
|
-
name: typeof args.options.name !== 'undefined',
|
|
65
|
-
asAdmin: !!args.options.asAdmin
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
}, _PpCardGetCommand_initOptions = function _PpCardGetCommand_initOptions() {
|
|
69
|
-
this.options.unshift({
|
|
70
|
-
option: '-e, --environmentName <environmentName>'
|
|
71
|
-
}, {
|
|
72
|
-
option: '-i, --id [id]'
|
|
73
|
-
}, {
|
|
74
|
-
option: '-n, --name [name]'
|
|
75
|
-
}, {
|
|
76
|
-
option: '--asAdmin'
|
|
77
|
-
});
|
|
78
|
-
}, _PpCardGetCommand_initOptionSets = function _PpCardGetCommand_initOptionSets() {
|
|
79
|
-
this.optionSets.push({ options: ['id', 'name'] });
|
|
80
|
-
}, _PpCardGetCommand_initValidators = function _PpCardGetCommand_initValidators() {
|
|
81
|
-
this.validators.push(async (args) => {
|
|
82
|
-
if (args.options.id && !validation.isValidGuid(args.options.id)) {
|
|
83
|
-
return `${args.options.id} is not a valid GUID`;
|
|
84
|
-
}
|
|
85
|
-
return true;
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
export default new PpCardGetCommand();
|
|
89
|
-
//# sourceMappingURL=card-get.js.map
|