@pnp/cli-microsoft365 6.1.0 → 6.2.0-beta.01dcbcb

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 (26) hide show
  1. package/.eslintrc.js +6 -0
  2. package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-list.js +68 -0
  3. package/dist/m365/pp/commands.js +1 -0
  4. package/dist/m365/purview/commands/retentionlabel/retentionlabel-get.js +70 -0
  5. package/dist/m365/purview/commands.js +1 -0
  6. package/dist/m365/spo/commands/file/GraphFileDetails.js +3 -0
  7. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +12 -12
  8. package/dist/m365/spo/commands/file/file-sharinglink-list.js +120 -0
  9. package/dist/m365/spo/commands/listitem/listitem-record-lock.js +129 -0
  10. package/dist/m365/spo/commands/listitem/listitem-record-unlock.js +129 -0
  11. package/dist/m365/spo/commands.js +3 -0
  12. package/dist/request.js +2 -2
  13. package/docs/docs/cmd/planner/bucket/bucket-add.md +17 -0
  14. package/docs/docs/cmd/planner/bucket/bucket-get.md +17 -0
  15. package/docs/docs/cmd/planner/bucket/bucket-list.md +17 -0
  16. package/docs/docs/cmd/planner/plan/plan-add.md +40 -0
  17. package/docs/docs/cmd/planner/plan/plan-get.md +21 -0
  18. package/docs/docs/cmd/planner/plan/plan-list.md +19 -0
  19. package/docs/docs/cmd/planner/plan/plan-set.md +20 -0
  20. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.md +95 -0
  21. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.md +95 -0
  22. package/docs/docs/cmd/spo/file/file-sharinglink-list.md +97 -0
  23. package/docs/docs/cmd/spo/listitem/listitem-record-lock.md +52 -0
  24. package/docs/docs/cmd/spo/listitem/listitem-record-unlock.md +52 -0
  25. package/npm-shrinkwrap.json +2 -2
  26. package/package.json +3 -2
@@ -62,6 +62,7 @@ exports.default = {
62
62
  FILE_ROLEINHERITANCE_BREAK: `${prefix} file roleinheritance break`,
63
63
  FILE_ROLEINHERITANCE_RESET: `${prefix} file roleinheritance reset`,
64
64
  FILE_SHARINGINFO_GET: `${prefix} file sharinginfo get`,
65
+ FILE_SHARINGLINK_LIST: `${prefix} file sharinglink list`,
65
66
  FILE_VERSION_CLEAR: `${prefix} file version clear`,
66
67
  FILE_VERSION_GET: `${prefix} file version get`,
67
68
  FILE_VERSION_LIST: `${prefix} file version list`,
@@ -143,7 +144,9 @@ exports.default = {
143
144
  LISTITEM_ISRECORD: `${prefix} listitem isrecord`,
144
145
  LISTITEM_LIST: `${prefix} listitem list`,
145
146
  LISTITEM_RECORD_DECLARE: `${prefix} listitem record declare`,
147
+ LISTITEM_RECORD_LOCK: `${prefix} listitem record lock`,
146
148
  LISTITEM_RECORD_UNDECLARE: `${prefix} listitem record undeclare`,
149
+ LISTITEM_RECORD_UNLOCK: `${prefix} listitem record unlock`,
147
150
  LISTITEM_REMOVE: `${prefix} listitem remove`,
148
151
  LISTITEM_RETENTIONLABEL_REMOVE: `${prefix} listitem retentionlabel remove`,
149
152
  LISTITEM_ROLEASSIGNMENT_ADD: `${prefix} listitem roleassignment add`,
package/dist/request.js CHANGED
@@ -150,10 +150,10 @@ class Request {
150
150
  })
151
151
  .then((res) => {
152
152
  if (resolve) {
153
- resolve(options.responseType === 'stream' ? res : res.data);
153
+ resolve((options.responseType === 'stream' || options.fullResponse) ? res : res.data);
154
154
  }
155
155
  else {
156
- _resolve(options.responseType === 'stream' ? res : res.data);
156
+ _resolve((options.responseType === 'stream' || options.fullResponse) ? res : res.data);
157
157
  }
158
158
  }, (error) => {
159
159
  if (error && error.response &&
@@ -72,3 +72,20 @@ m365 planner bucket add --name "My Planner Bucket" --planTitle "My Planner Plan"
72
72
  id,name,planId,orderHint
73
73
  ttEB_Uj690STdR3GC1MIDZgANq1U,My Planner Bucket,xqQg5FS2LkCp935s-FIFm2QAFkHM,8585363889524958496
74
74
  ```
75
+
76
+ === "Markdown"
77
+
78
+ ```md
79
+ # planner bucket add --name "My Planner Bucket" --planId "xqQg5FS2LkCp935s-FIFm2QAFkHM"
80
+
81
+ Date: 27/12/2022
82
+
83
+ ## My Planner Bucket (ttEB_Uj690STdR3GC1MIDZgANq1U)
84
+
85
+ Property | Value
86
+ ---------|-------
87
+ name | My Planner Bucket
88
+ planId | xqQg5FS2LkCp935s-FIFm2QAFkHM
89
+ orderHint | 8585363889524958496
90
+ id | ttEB_Uj690STdR3GC1MIDZgANq1U
91
+ ```
@@ -84,3 +84,20 @@ m365 planner bucket get --name "Planner Bucket A" --planTitle "My Plan" --ownerG
84
84
  id,name,planId,orderHint
85
85
  ttEB_Uj690STdR3GC1MIDZgANq1U,My Planner Bucket,xqQg5FS2LkCp935s-FIFm2QAFkHM,8585363889524958496
86
86
  ```
87
+
88
+ === "Markdown"
89
+
90
+ ```md
91
+ # planner bucket get --id "ttEB_Uj690STdR3GC1MIDZgANq1U"
92
+
93
+ Date: 27/12/2022
94
+
95
+ ## My Planner Bucket (ttEB_Uj690STdR3GC1MIDZgANq1U)
96
+
97
+ Property | Value
98
+ ---------|-------
99
+ name | My Planner Bucket
100
+ planId | xqQg5FS2LkCp935s-FIFm2QAFkHM
101
+ orderHint | 8585363889524958496
102
+ id | ttEB_Uj690STdR3GC1MIDZgANq1U
103
+ ```
@@ -67,3 +67,20 @@ m365 planner bucket list --planTitle "My Plan" --ownerGroupName "My Group"
67
67
  id,name,planId,orderHint
68
68
  ttEB_Uj690STdR3GC1MIDZgANq1U,My Planner Bucket,xqQg5FS2LkCp935s-FIFm2QAFkHM,8585363889524958496
69
69
  ```
70
+
71
+ === "Markdown"
72
+
73
+ ```md
74
+ # planner bucket list --planId "xqQg5FS2LkCp935s-FIFm2QAFkHM"
75
+
76
+ Date: 27/12/2022
77
+
78
+ ## My Planner Bucket (ttEB_Uj690STdR3GC1MIDZgANq1U)
79
+
80
+ Property | Value
81
+ ---------|-------
82
+ name | My Planner Bucket
83
+ planId | xqQg5FS2LkCp935s-FIFm2QAFkHM
84
+ orderHint | 8585363889524958496
85
+ id | ttEB_Uj690STdR3GC1MIDZgANq1U
86
+ ```
@@ -97,6 +97,25 @@ m365 planner plan add --title 'My Planner Plan' --ownerGroupName 'My Planner Gro
97
97
  xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
98
98
  ```
99
99
 
100
+ === "Markdown"
101
+
102
+ ```md
103
+ # planner plan add --title "My Planner Plan" --ownerGroupId "ebf3b108-5234-4e22-b93d-656d7dae5874"
104
+
105
+ Date: 30/03/2015
106
+
107
+ ## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
108
+
109
+ Property | Value
110
+ ---------|-------
111
+ createdDateTime | 2015-03-30T18:36:49.2407981Z
112
+ owner | ebf3b108-5234-4e22-b93d-656d7dae5874
113
+ title | My Planner Plan
114
+ id | xqQg5FS2LkCp935s-FIFm2QAFkHM
115
+ createdBy | {"user":{"displayName":null,"id":"95e27074-6c4a-447a-aa24-9d718a0b86fa"},"application":{"displayName":null,"id":"ebf3b108-5234-4e22-b93d-656d7dae5874"}}
116
+ container | {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}
117
+ ```
118
+
100
119
  ### `shareWithUserIds`, `shareWithUserNames` response
101
120
 
102
121
  When we make use of the option `shareWithUserIds` or `shareWithUserNames` the response will differ.
@@ -173,3 +192,24 @@ When we make use of the option `shareWithUserIds` or `shareWithUserNames` the re
173
192
  id,title,createdDateTime,owner
174
193
  xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
175
194
  ```
195
+
196
+ === "Markdown"
197
+
198
+ ```md
199
+ # planner plan add --title "My Planner Plan" --ownerGroupId "ebf3b108-5234-4e22-b93d-656d7dae5874" --shareWithUserNames "Allan.Carroll@contoso.com,Ida.Stevens@contoso.com"
200
+
201
+ Date: 30/03/2015
202
+
203
+ ## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
204
+
205
+ Property | Value
206
+ ---------|-------
207
+ createdDateTime | 2015-03-30T18:36:49.2407981Z
208
+ owner | ebf3b108-5234-4e22-b93d-656d7dae5874
209
+ title | My Planner Plan
210
+ id | xqQg5FS2LkCp935s-FIFm2QAFkHM
211
+ createdBy | {"user":{"displayName":null,"id":"dd8b99a7-77c6-4238-a609-396d27844921"},"application":{"displayName":null,"id":"31359c7f-bd7e-475c-86db-fdb8c937548e"}}
212
+ container | {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}
213
+ sharedWith | {"ebf3b108-5234-4e22-b93d-656d7dae5874":true,"6463a5ce-2119-4198-9f2a-628761df4a62":true}
214
+ categoryDescriptions | {"category1":null,"category2":null,"category3":null,"category4":null,"category5":null,"category6":null,"category7":null,"category8":null,"category9":null,"category10":null,"category11":null,"category12":null,"category13":null,"category14":null,"category15":null,"category16":null,"category17":null,"category18":null,"category19":null,"category20":null,"category21":null,"category22":null,"category23":null,"category24":null,"category25":null}
215
+ ```
@@ -118,3 +118,24 @@ m365 planner plan get --title "MyPlan" --ownerGroupName "My Planner Group"
118
118
  id,title,createdDateTime,owner
119
119
  xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
120
120
  ```
121
+
122
+ === "Markdown"
123
+
124
+ ```md
125
+ # planner plan get --id "xqQg5FS2LkCp935s-FIFm2QAFkHM"
126
+
127
+ Date: 27/12/2022
128
+
129
+ ## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
130
+
131
+ Property | Value
132
+ ---------|-------
133
+ createdDateTime | 2015-03-30T18:36:49.2407981Z
134
+ owner | ebf3b108-5234-4e22-b93d-656d7dae5874
135
+ title | My Planner Plan
136
+ id | xqQg5FS2LkCp935s-FIFm2QAFkHM
137
+ createdBy | {"user":{"displayName":null,"id":"dd8b99a7-77c6-4238-a609-396d27844921"},"application":{"displayName":null,"id":"31359c7f-bd7e-475c-86db-fdb8c937548e"}}
138
+ container | {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}
139
+ sharedWith | {"aa089c1a-0ca8-4b36-ae2e-c5d60f054a2c":true,"ebf3b108-5234-4e22-b93d-656d7dae5874":true}
140
+ categoryDescriptions | {"category1":null,"category2":null,"category3":null,"category4":null,"category5":null,"category6":null,"category7":null,"category8":null,"category9":null,"category10":null,"category11":null,"category12":null,"category13":null,"category14":null,"category15":null,"category16":null,"category17":null,"category18":null,"category19":null,"category20":null,"category21":null,"category22":null,"category23":null,"category24":null,"category25":null}
141
+ ```
@@ -76,3 +76,22 @@ m365 planner plan list --ownerGroupName "My Planner Group"
76
76
  id,title,createdDateTime,owner
77
77
  xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
78
78
  ```
79
+
80
+ === "Markdown"
81
+
82
+ ```md
83
+ # planner plan list --ownerGroupId "ebf3b108-5234-4e22-b93d-656d7dae5874"
84
+
85
+ Date: 27/12/2022
86
+
87
+ ## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
88
+
89
+ Property | Value
90
+ ---------|-------
91
+ createdDateTime | 2021-12-12T14:00:50.4522129Z
92
+ owner | ebf3b108-5234-4e22-b93d-656d7dae5874
93
+ title | My Planner Plan
94
+ id | xqQg5FS2LkCp935s-FIFm2QAFkHM
95
+ createdBy | {"user":{"displayName":null,"id":"dd8b99a7-77c6-4238-a609-396d27844921"},"application":{"displayName":null,"id":"09abbdfd-ed23-44ee-a2d9-a627aa1c90f3"}}
96
+ container | {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}
97
+ ```
@@ -142,3 +142,23 @@ m365 planner plan set --id 'gndWOTSK60GfPQfiDDj43JgACDCb' --category21 'ToDo' --
142
142
  xqQg5FS2LkCp935s-FIFm2QAFkHM,My Planner Plan,2015-03-30T18:36:49.2407981Z,ebf3b108-5234-4e22-b93d-656d7dae5874
143
143
  ```
144
144
 
145
+ === "Markdown"
146
+
147
+ ```md
148
+ # planner plan set --id "xqQg5FS2LkCp935s-FIFm2QAFkHM" --newTitle "My Planner Plan"
149
+
150
+ Date: 27/12/2022
151
+
152
+ ## My Planner Plan (xqQg5FS2LkCp935s-FIFm2QAFkHM)
153
+
154
+ Property | Value
155
+ ---------|-------
156
+ createdDateTime | 2015-03-30T18:36:49.2407981Z
157
+ owner | ebf3b108-5234-4e22-b93d-656d7dae5874
158
+ title | My Planner Plan
159
+ id | xqQg5FS2LkCp935s-FIFm2QAFkHM
160
+ createdBy | {"user":{"displayName":null,"id":"dd8b99a7-77c6-4238-a609-396d27844921"},"application":{"displayName":null,"id":"31359c7f-bd7e-475c-86db-fdb8c937548e"}}
161
+ container | {"containerId":"ebf3b108-5234-4e22-b93d-656d7dae5874","type":"group","url":"https://graph.microsoft.com/v1.0/groups/ebf3b108-5234-4e22-b93d-656d7dae5874"}
162
+ sharedWith | {"ebf3b108-5234-4e22-b93d-656d7dae5874":true,"6463a5ce-2119-4198-9f2a-628761df4a62":true}
163
+ categoryDescriptions | {"category1":null,"category2":null,"category3":null,"category4":null,"category5":null,"category6":null,"category7":null,"category8":null,"category9":null,"category10":null,"category11":null,"category12":null,"category13":null,"category14":null,"category15":null,"category16":null,"category17":null,"category18":null,"category19":null,"category20":null,"category21":null,"category22":null,"category23":null,"category24":null,"category25":null}
164
+ ```
@@ -0,0 +1,95 @@
1
+ # pp aibuildermodel list
2
+
3
+ List available AI builder models in the specified Power Platform environment
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ pp aibuildermodel list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-e, --environment <environment>`
14
+ : The name of the environment
15
+
16
+ `--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 AI Builder models in a specific environment
24
+
25
+ ```sh
26
+ m365 pp aibuildermodel list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5"
27
+ ```
28
+
29
+ List all AI Builder models in a specific environment as admin
30
+
31
+ ```sh
32
+ m365 pp aibuildermodel list --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --asAdmin
33
+ ```
34
+
35
+ ## Response
36
+
37
+ === "JSON"
38
+
39
+ ```json
40
+ [
41
+ {
42
+ "statecode": 0,
43
+ "_msdyn_templateid_value": "10707e4e-1d56-e911-8194-000d3a6cd5a5",
44
+ "msdyn_modelcreationcontext": "{}",
45
+ "createdon": "2022-11-29T11:58:45Z",
46
+ "_ownerid_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
47
+ "modifiedon": "2022-11-29T11:58:45Z",
48
+ "msdyn_sharewithorganizationoncreate": false,
49
+ "msdyn_aimodelidunique": "b0328b67-47e2-4202-8189-e617ec9a88bd",
50
+ "solutionid": "fd140aae-4df4-11dd-bd17-0019b9312238",
51
+ "ismanaged": false,
52
+ "versionnumber": 1458121,
53
+ "msdyn_name": "Document Processing 11/29/2022, 12:58:43 PM",
54
+ "introducedversion": "1.0",
55
+ "statuscode": 0,
56
+ "_modifiedby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
57
+ "overwritetime": "1900-01-01T00:00:00Z",
58
+ "componentstate": 0,
59
+ "_createdby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
60
+ "_owningbusinessunit_value": "6da087c1-1c4d-ed11-bba1-000d3a2caf7f",
61
+ "_owninguser_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
62
+ "msdyn_aimodelid": "08ffffbe-ec1c-4e64-b64b-dd1db926c613",
63
+ "_msdyn_activerunconfigurationid_value": null,
64
+ "overriddencreatedon": null,
65
+ "_msdyn_retrainworkflowid_value": null,
66
+ "importsequencenumber": null,
67
+ "_msdyn_scheduleinferenceworkflowid_value": null,
68
+ "_modifiedonbehalfby_value": null,
69
+ "utcconversiontimezonecode": null,
70
+ "_createdonbehalfby_value": null,
71
+ "_owningteam_value": null,
72
+ "timezoneruleversionnumber": null,
73
+ "iscustomizable": {
74
+ "Value": true,
75
+ "CanBeChanged": true,
76
+ "ManagedPropertyLogicalName": "iscustomizableanddeletable"
77
+ }
78
+ }
79
+ ]
80
+ ```
81
+
82
+ === "Text"
83
+
84
+ ```text
85
+ createdon modifiedon msdyn_aimodelid msdyn_name
86
+ -------------------- -------------------- ------------------------------------ -------------------------------------------
87
+ 2022-10-25T14:44:48Z 2022-10-25T14:44:48Z 08ffffbe-ec1c-4e64-b64b-dd1db926c613 Document Processing 11/29/2022, 12:58:43 PM
88
+ ```
89
+
90
+ === "CSV"
91
+
92
+ ```csv
93
+ msdyn_name,msdyn_aimodelid,createdon,modifiedon
94
+ "Document Processing 11/29/2022, 12:58:43 PM",08ffffbe-ec1c-4e64-b64b-dd1db926c613,2022-11-29T11:58:45Z,2022-11-29T11:58:45Z
95
+ ```
@@ -0,0 +1,95 @@
1
+ # purview retentionlabel get
2
+
3
+ Get a retention label
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 purview retentionlabel get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id <id>`
14
+ : The Id of the retention label.
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Get a retention label
21
+
22
+ ```sh
23
+ m365 purview retentionlabel get --id c37d695e-d581-4ae9-82a0-9364eba4291e
24
+ ```
25
+
26
+ ## Remarks
27
+
28
+ !!! attention
29
+ This command is based on a Microsoft Graph API that is currently in preview and is subject to change once the API reached general availability.
30
+
31
+ ## Response
32
+
33
+
34
+ === "JSON"
35
+
36
+ ```json
37
+ {
38
+ "displayName": "TEST LABEL",
39
+ "descriptionForAdmins": "",
40
+ "descriptionForUsers": "",
41
+ "isInUse": false,
42
+ "retentionTrigger": "dateCreated",
43
+ "behaviorDuringRetentionPeriod": "retain",
44
+ "actionAfterRetentionPeriod": "delete",
45
+ "createdDateTime": "2022-12-12T15:14:53Z",
46
+ "lastModifiedDateTime": "2022-12-12T15:43:06Z",
47
+ "labelToBeApplied": "",
48
+ "defaultRecordBehavior": "startLocked",
49
+ "id": "5c8af2e2-b489-4fa0-9c16-180180245ac8",
50
+ "retentionDuration": {
51
+ "days": 100
52
+ },
53
+ "createdBy": {
54
+ "user": {
55
+ "id": null,
56
+ "displayName": "John Doe"
57
+ }
58
+ },
59
+ "lastModifiedBy": {
60
+ "user": {
61
+ "id": null,
62
+ "displayName": "John Doe"
63
+ }
64
+ },
65
+ "dispositionReviewStages": []
66
+ }
67
+ ```
68
+
69
+ === "Text"
70
+
71
+ ```text
72
+ actionAfterRetentionPeriod : delete
73
+ behaviorDuringRetentionPeriod: retain
74
+ createdBy : {"user":{"id":null,"displayName":"John Doe"}}
75
+ createdDateTime : 2022-12-12T15:14:53Z
76
+ defaultRecordBehavior : startLocked
77
+ descriptionForAdmins :
78
+ descriptionForUsers :
79
+ displayName : TEST LABEL
80
+ dispositionReviewStages : []
81
+ id : 5c8af2e2-b489-4fa0-9c16-180180245ac8
82
+ isInUse : false
83
+ labelToBeApplied :
84
+ lastModifiedBy : {"user":{"id":null,"displayName":"John Doe"}}
85
+ lastModifiedDateTime : 2022-12-12T15:43:06Z
86
+ retentionDuration : {"days":100}
87
+ retentionTrigger : dateCreated
88
+ ```
89
+
90
+ === "CSV"
91
+
92
+ ```csv
93
+ displayName,descriptionForAdmins,descriptionForUsers,isInUse,retentionTrigger,behaviorDuringRetentionPeriod,actionAfterRetentionPeriod,createdDateTime,lastModifiedDateTime,labelToBeApplied,defaultRecordBehavior,id,retentionDuration,createdBy,lastModifiedBy,dispositionReviewStages
94
+ TEST LABEL,,,,dateCreated,retain,delete,2022-12-12T15:14:53Z,2022-12-12T15:43:06Z,,startLocked,5c8af2e2-b489-4fa0-9c16-180180245ac8,"{""days"":100}","{""user"":{""id"":null,""displayName"":""John Doe""}}","{""user"":{""id"":null,""displayName"":""John Doe""}}",[]
95
+ ```
@@ -0,0 +1,97 @@
1
+ # spo file sharinglink list
2
+
3
+ Lists all the sharing links of a specific file
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo file sharinglink list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The URL of the site where the file is located.
15
+
16
+ `-f, --fileUrl [fileUrl]`
17
+ : The server-relative (decoded) 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
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Examples
25
+
26
+ List sharing links of a file by id
27
+
28
+ ```sh
29
+ m365 spo file sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --fileId daebb04b-a773-4baa-b1d1-3625418e3234
30
+ ```
31
+
32
+ List sharing links of a file by url
33
+
34
+ ```sh
35
+ m365 spo file sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --fileUrl "/sites/demo/shared documents/document.docx"
36
+ ```
37
+
38
+ ## Response
39
+
40
+ === "JSON"
41
+
42
+ ```json
43
+ [
44
+ {
45
+ "id": "2a021f54-90a2-4016-b3b3-5f34d2e7d932",
46
+ "roles": [
47
+ "read"
48
+ ],
49
+ "hasPassword": false,
50
+ "grantedToIdentitiesV2": [
51
+ {
52
+ "user": {
53
+ "displayName": "John Doe",
54
+ "email": "john@contoso.onmicrosoft.com",
55
+ "id": "fe36f75e-c103-410b-a18a-2bf6df06ac3a"
56
+ },
57
+ "siteUser": {
58
+ "displayName": "John Doe",
59
+ "email": "john@contoso.onmicrosoft.com",
60
+ "id": "9",
61
+ "loginName": "i:0#.f|membership|john@contoso.onmicrosoft.com"
62
+ }
63
+ }
64
+ ],
65
+ "grantedToIdentities": [
66
+ {
67
+ "user": {
68
+ "displayName": "John Doe",
69
+ "email": "john@contoso.onmicrosoft.com",
70
+ "id": "fe36f75e-c103-410b-a18a-2bf6df06ac3a"
71
+ }
72
+ }
73
+ ],
74
+ "link": {
75
+ "scope": "anonymous",
76
+ "type": "view",
77
+ "webUrl": "https://contoso.sharepoint.com/:b:/s/demo/EY50lub3559MtRKfj2hrZqoBWnHOpGIcgi4gzw9XiWYJ-A",
78
+ "preventsDownload": false
79
+ }
80
+ }
81
+ ]
82
+ ```
83
+
84
+ === "Text"
85
+
86
+ ```text
87
+ id roles link
88
+ ------------------------------------ ----- -----------------------------------------------------------------------------------------------------------
89
+ 2a021f54-90a2-4016-b3b3-5f34d2e7d932 read https://contoso.sharepoint.com/:b:/s/demo/EY50lub3559MtRKfj2hrZqoBWnHOpGIcgi4gzw9XiWYJ-A
90
+ ```
91
+
92
+ === "CSV"
93
+
94
+ ```csv
95
+ id,roles,link
96
+ 2a021f54-90a2-4016-b3b3-5f34d2e7d932,read,https://contoso.sharepoint.com/:b:/s/demo/EY50lub3559MtRKfj2hrZqoBWnHOpGIcgi4gzw9XiWYJ-A
97
+ ```
@@ -0,0 +1,52 @@
1
+ # spo listitem record lock
2
+
3
+ Locks the list item record
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem record lock [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The url of the web
15
+
16
+ `--listItemId <listItemId>`
17
+ : ID of the list item that should be locked
18
+
19
+ `--listId [listId]`
20
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`
21
+
22
+ `--listTitle [listTitle]`
23
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`
24
+
25
+ `--listUrl [listUrl]`
26
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Locks the list item record in a given site based on the list id
33
+
34
+ ```sh
35
+ m365 spo listitem record lock --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --listItemId 1
36
+ ```
37
+
38
+ Locks the list item record in a given site based on the list title
39
+
40
+ ```sh
41
+ m365 spo listitem record lock --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --listItemId 1
42
+ ```
43
+
44
+ Locks the list item record in a given site based on the server relative list url
45
+
46
+ ```sh
47
+ m365 spo listitem record lock --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/lists/TestList --listItemId 1
48
+ ```
49
+
50
+ ## Response
51
+
52
+ The command won't return a response on success.
@@ -0,0 +1,52 @@
1
+ # spo listitem record unlock
2
+
3
+ Unlocks the list item record
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem record unlock [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The url of the web
15
+
16
+ `--listItemId <listItemId>`
17
+ : ID of the list item that should be unlocked
18
+
19
+ `--listId [listId]`
20
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`
21
+
22
+ `--listTitle [listTitle]`
23
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`
24
+
25
+ `--listUrl [listUrl]`
26
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ Unlocks the list item record in a given site based on the list id
33
+
34
+ ```sh
35
+ m365 spo listitem record unlock --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --listItemId 1
36
+ ```
37
+
38
+ Unlocks the list item record in a given site based on the list title
39
+
40
+ ```sh
41
+ m365 spo listitem record unlock --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --listItemId 1
42
+ ```
43
+
44
+ Unlocks the list item record in a given site based on the server relative list url
45
+
46
+ ```sh
47
+ m365 spo listitem record unlock --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/lists/TestList --listItemId 1
48
+ ```
49
+
50
+ ## Response
51
+
52
+ The command won't return a response on success.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@pnp/cli-microsoft365",
9
- "version": "6.1.0",
9
+ "version": "6.2.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@azure/msal-node": "^1.14.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.1.0",
3
+ "version": "6.2.0-beta.01dcbcb",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -205,6 +205,7 @@
205
205
  "Thorild, Fredrik <fredrik.thorild@sogeti.com>",
206
206
  "Trinder, Garry <garry.trinder@live.com>",
207
207
  "Vaghasia, Siddharth <siddh.vaghasia@gmail.com>",
208
+ "Van de Voorde, Tim <tim.vdv1995@hotmail.com>",
208
209
  "van Dijk, Mark <mark@ichicraft.com>",
209
210
  "van Hunen, Erwin <erwin.van.hunen@outlook.com>",
210
211
  "van Iersel, Cas <cvaniersel@portiva.nl>",
@@ -271,4 +272,4 @@
271
272
  "sinon": "^14.0.2",
272
273
  "source-map-support": "^0.5.21"
273
274
  }
274
- }
275
+ }