@pnp/cli-microsoft365 7.0.0-beta.68fea7b → 7.0.0-beta.7e7b4f8
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/dist/m365/spo/commands/file/file-list.js +3 -14
- package/dist/m365/spo/commands/list/list-retentionlabel-ensure.js +0 -4
- package/dist/m365/spo/commands/list/list-retentionlabel-get.js +0 -4
- package/dist/m365/spo/commands.js +0 -2
- package/docs/docs/cmd/spo/file/file-list.mdx +6 -10
- package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.mdx +0 -6
- package/docs/docs/cmd/spo/list/list-retentionlabel-get.mdx +0 -6
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
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");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _SpoFileListCommand_instances, _SpoFileListCommand_initTelemetry, _SpoFileListCommand_initOptions, _SpoFileListCommand_initValidators
|
|
16
|
+
var _SpoFileListCommand_instances, _SpoFileListCommand_initTelemetry, _SpoFileListCommand_initOptions, _SpoFileListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const formatting_1 = require("../../../../utils/formatting");
|
|
@@ -34,18 +34,13 @@ class SpoFileListCommand extends SpoCommand_1.default {
|
|
|
34
34
|
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initTelemetry).call(this);
|
|
35
35
|
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initOptions).call(this);
|
|
36
36
|
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initValidators).call(this);
|
|
37
|
-
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initOptionSets).call(this);
|
|
38
37
|
}
|
|
39
38
|
commandAction(logger, args) {
|
|
40
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
40
|
if (this.verbose) {
|
|
42
|
-
logger.logToStderr(`Retrieving all files in folder '${args.options.
|
|
41
|
+
logger.logToStderr(`Retrieving all files in folder '${args.options.folderUrl}' at site '${args.options.webUrl}'${args.options.recursive ? ' (recursive)' : ''}...`);
|
|
43
42
|
}
|
|
44
43
|
try {
|
|
45
|
-
if (args.options.folder) {
|
|
46
|
-
args.options.folderUrl = args.options.folder;
|
|
47
|
-
this.warn(logger, `Option 'folder' is deprecated. Please use 'folderUrl' instead`);
|
|
48
|
-
}
|
|
49
44
|
const fieldProperties = this.formatSelectProperties(args.options.fields, args.options.output);
|
|
50
45
|
const allFiles = [];
|
|
51
46
|
const allFolders = args.options.recursive
|
|
@@ -157,8 +152,6 @@ class SpoFileListCommand extends SpoCommand_1.default {
|
|
|
157
152
|
_SpoFileListCommand_instances = new WeakSet(), _SpoFileListCommand_initTelemetry = function _SpoFileListCommand_initTelemetry() {
|
|
158
153
|
this.telemetry.push((args) => {
|
|
159
154
|
Object.assign(this.telemetryProperties, {
|
|
160
|
-
folder: typeof args.options.folder !== 'undefined',
|
|
161
|
-
folderUrl: typeof args.options.folderUrl !== 'undefined',
|
|
162
155
|
recursive: args.options.recursive,
|
|
163
156
|
fields: typeof args.options.fields !== 'undefined',
|
|
164
157
|
filter: typeof args.options.filter !== 'undefined'
|
|
@@ -168,9 +161,7 @@ _SpoFileListCommand_instances = new WeakSet(), _SpoFileListCommand_initTelemetry
|
|
|
168
161
|
this.options.unshift({
|
|
169
162
|
option: '-u, --webUrl <webUrl>'
|
|
170
163
|
}, {
|
|
171
|
-
option: '--
|
|
172
|
-
}, {
|
|
173
|
-
option: '--folderUrl [folderUrl]'
|
|
164
|
+
option: '-f, --folderUrl <folderUrl>'
|
|
174
165
|
}, {
|
|
175
166
|
option: '--fields [fields]'
|
|
176
167
|
}, {
|
|
@@ -180,8 +171,6 @@ _SpoFileListCommand_instances = new WeakSet(), _SpoFileListCommand_initTelemetry
|
|
|
180
171
|
});
|
|
181
172
|
}, _SpoFileListCommand_initValidators = function _SpoFileListCommand_initValidators() {
|
|
182
173
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () { return validation_1.validation.isValidSharePointUrl(args.options.webUrl); }));
|
|
183
|
-
}, _SpoFileListCommand_initOptionSets = function _SpoFileListCommand_initOptionSets() {
|
|
184
|
-
this.optionSets.push({ options: ['folder', 'folderUrl'] });
|
|
185
174
|
};
|
|
186
175
|
SpoFileListCommand.pageSize = 5000;
|
|
187
176
|
module.exports = new SpoFileListCommand();
|
|
@@ -25,9 +25,6 @@ class SpoListRetentionLabelEnsureCommand extends SpoCommand_1.default {
|
|
|
25
25
|
get name() {
|
|
26
26
|
return commands_1.default.LIST_RETENTIONLABEL_ENSURE;
|
|
27
27
|
}
|
|
28
|
-
alias() {
|
|
29
|
-
return [commands_1.default.LIST_LABEL_SET];
|
|
30
|
-
}
|
|
31
28
|
get description() {
|
|
32
29
|
return 'Sets a default retention label on the specified list or library.';
|
|
33
30
|
}
|
|
@@ -41,7 +38,6 @@ class SpoListRetentionLabelEnsureCommand extends SpoCommand_1.default {
|
|
|
41
38
|
}
|
|
42
39
|
commandAction(logger, args) {
|
|
43
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
this.showDeprecationWarning(logger, commands_1.default.LIST_LABEL_SET, commands_1.default.LIST_RETENTIONLABEL_ENSURE);
|
|
45
41
|
if (args.options.label) {
|
|
46
42
|
args.options.name = args.options.label;
|
|
47
43
|
this.warn(logger, `Option 'label' is deprecated. Please use 'name' instead`);
|
|
@@ -25,9 +25,6 @@ class SpoListRetentionLabelGetCommand extends SpoCommand_1.default {
|
|
|
25
25
|
get name() {
|
|
26
26
|
return commands_1.default.LIST_RETENTIONLABEL_GET;
|
|
27
27
|
}
|
|
28
|
-
alias() {
|
|
29
|
-
return [commands_1.default.LIST_LABEL_GET];
|
|
30
|
-
}
|
|
31
28
|
get description() {
|
|
32
29
|
return 'Gets the default retention label set on the specified list or library.';
|
|
33
30
|
}
|
|
@@ -41,7 +38,6 @@ class SpoListRetentionLabelGetCommand extends SpoCommand_1.default {
|
|
|
41
38
|
}
|
|
42
39
|
commandAction(logger, args) {
|
|
43
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
this.showDeprecationWarning(logger, commands_1.default.LIST_LABEL_GET, commands_1.default.LIST_RETENTIONLABEL_GET);
|
|
45
41
|
try {
|
|
46
42
|
if (this.verbose) {
|
|
47
43
|
logger.logToStderr(`Getting label set on the list ${args.options.listId || args.options.listTitle || args.options.listUrl} in site at ${args.options.webUrl}...`);
|
|
@@ -132,8 +132,6 @@ exports.default = {
|
|
|
132
132
|
LIST_CONTENTTYPE_REMOVE: `${prefix} list contenttype remove`,
|
|
133
133
|
LIST_CONTENTTYPE_DEFAULT_SET: `${prefix} list contenttype default set`,
|
|
134
134
|
LIST_GET: `${prefix} list get`,
|
|
135
|
-
LIST_LABEL_GET: `${prefix} list label get`,
|
|
136
|
-
LIST_LABEL_SET: `${prefix} list label set`,
|
|
137
135
|
LIST_LIST: `${prefix} list list`,
|
|
138
136
|
LIST_REMOVE: `${prefix} list remove`,
|
|
139
137
|
LIST_RETENTIONLABEL_ENSURE: `${prefix} list retentionlabel ensure`,
|
|
@@ -16,22 +16,19 @@ m365 spo file list [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-u, --webUrl <webUrl>`
|
|
19
|
-
: The URL of the site where the folder from which to retrieve files is located
|
|
19
|
+
: The URL of the site where the folder from which to retrieve files is located.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
: The server- or site-relative URL of the parent folder from which to retrieve files
|
|
23
|
-
|
|
24
|
-
`--folder <folder>`
|
|
25
|
-
: (deprecated. Use `folderUrl` instead) The server- or site-relative URL of the folder from which to retrieve files
|
|
21
|
+
`-f, --folderUrl <folderUrl>`
|
|
22
|
+
: The server- or site-relative URL of the parent folder from which to retrieve files.
|
|
26
23
|
|
|
27
24
|
`--fields [fields]`
|
|
28
25
|
: Comma-separated list of fields to retrieve. Will retrieve all fields if not specified.
|
|
29
26
|
|
|
30
27
|
`--filter [filter]`
|
|
31
|
-
: OData filter to use to query the list of items with
|
|
28
|
+
: OData filter to use to query the list of items with.
|
|
32
29
|
|
|
33
30
|
`-r, --recursive`
|
|
34
|
-
: Set to retrieve files from subfolders
|
|
31
|
+
: Set to retrieve files from subfolders.
|
|
35
32
|
```
|
|
36
33
|
|
|
37
34
|
<Global />
|
|
@@ -134,5 +131,4 @@ m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --fol
|
|
|
134
131
|
```
|
|
135
132
|
|
|
136
133
|
</TabItem>
|
|
137
|
-
</Tabs>
|
|
138
|
-
|
|
134
|
+
</Tabs>
|
package/package.json
CHANGED