@pnp/cli-microsoft365 11.12.0-beta.8589b73 → 12.0.0-beta.8dff3ac
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/Auth.js +2 -6
- package/dist/auth/FileTokenStorage.js +0 -3
- package/dist/auth/msalCachePlugin.js +201 -12
- package/dist/m365/commands/logout.js +2 -4
- package/dist/m365/entra/commands/m365group/m365group-remove.js +4 -3
- package/dist/m365/spe/commands/container/container-remove.js +6 -7
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +7 -15
- package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +30 -2
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +12 -2
- package/dist/m365/spo/commands/cdn/cdn-get.js +8 -35
- package/dist/m365/spo/commands/cdn/cdn-origin-add.js +9 -36
- package/dist/m365/spo/commands/cdn/cdn-origin-list.js +8 -34
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +10 -39
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +8 -34
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +10 -45
- package/dist/m365/spo/commands/cdn/cdn-set.js +10 -46
- package/dist/m365/spo/commands/contenttype/contenttype-sync.js +12 -24
- package/dist/m365/spo/commands/file/file-add.js +2 -6
- package/dist/m365/spo/commands/file/file-archive.js +1 -1
- package/dist/m365/spo/commands/file/file-remove.js +5 -5
- package/dist/m365/spo/commands/file/file-unarchive.js +1 -1
- package/dist/m365/spo/commands/folder/folder-archive.js +1 -1
- package/dist/m365/spo/commands/folder/folder-remove.js +5 -5
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +5 -0
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +8 -26
- package/dist/m365/spo/commands/homesite/homesite-list.js +5 -0
- package/dist/m365/spo/commands/list/list-remove.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +5 -4
- package/dist/m365/spo/commands/listitem/listitem-get.js +15 -7
- package/dist/m365/spo/commands/listitem/listitem-remove.js +8 -5
- package/dist/m365/spo/commands/page/page-header-set.js +123 -64
- package/dist/m365/spo/commands/page/page-remove.js +7 -7
- package/dist/m365/spo/commands/site/site-list.js +60 -49
- package/dist/m365/spo/commands/site/site-remove.js +7 -7
- package/dist/m365/spo/commands/spo-get.js +5 -0
- package/dist/m365/spo/commands/spo-set.js +10 -21
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +23 -17
- package/dist/m365/spo/commands/storageentity/storageentity-list.js +39 -36
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +26 -33
- package/dist/m365/spo/commands/storageentity/storageentity-set.js +26 -36
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
- package/dist/m365/spo/commands/user/user-ensure.js +24 -60
- package/dist/m365/spo/commands/user/user-get.js +25 -65
- package/dist/m365/spo/commands/user/user-list.js +10 -18
- package/dist/m365/spo/commands/user/user-remove.js +26 -68
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +10 -23
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +10 -19
- package/dist/m365/spo/commands/web/web-add.js +20 -55
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +10 -18
- package/dist/m365/spo/commands/web/web-get.js +12 -30
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +10 -18
- package/dist/m365/spo/commands/web/web-list.js +10 -18
- package/dist/m365/spo/commands/web/web-reindex.js +10 -18
- package/dist/m365/spo/commands/web/web-remove.js +11 -27
- package/dist/m365/spo/commands/web/web-retentionlabel-list.js +10 -18
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +40 -64
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +31 -58
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +12 -36
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +11 -29
- package/dist/m365/spo/commands/web/web-rule-list.js +6 -4
- package/dist/m365/spo/commands/web/web-rule-remove.js +0 -3
- package/dist/m365/spo/commands/web/web-set.js +26 -96
- package/dist/m365/spo/commands.js +0 -2
- package/dist/m365/teams/commands/channel/channel-list.js +2 -6
- package/dist/m365/teams/commands/channel/channel-member-add.js +2 -6
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -6
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -6
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -6
- package/dist/m365/teams/commands/channel/channel-remove.js +2 -8
- package/dist/m365/teams/commands/channel/channel-set.js +2 -8
- package/dist/m365/teams/commands/tab/tab-get.js +2 -6
- package/dist/m365/teams/commands/team/team-archive.js +2 -6
- package/dist/m365/teams/commands/team/team-remove.js +2 -6
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -6
- package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +4 -4
- package/docs/docs/cmd/spe/container/container-remove.mdx +5 -5
- package/docs/docs/cmd/spo/contenttype/contenttype-sync.mdx +4 -4
- package/docs/docs/cmd/spo/file/file-add.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-archive.mdx +8 -0
- package/docs/docs/cmd/spo/file/file-checkin.mdx +21 -0
- package/docs/docs/cmd/spo/file/file-checkout.mdx +21 -0
- package/docs/docs/cmd/spo/file/file-copy.mdx +19 -0
- package/docs/docs/cmd/spo/file/file-get.mdx +19 -0
- package/docs/docs/cmd/spo/file/file-list.mdx +19 -0
- package/docs/docs/cmd/spo/file/file-move.mdx +19 -0
- package/docs/docs/cmd/spo/file/file-remove.mdx +25 -4
- package/docs/docs/cmd/spo/file/file-rename.mdx +19 -0
- package/docs/docs/cmd/spo/file/file-unarchive.mdx +8 -0
- package/docs/docs/cmd/spo/folder/folder-archive.mdx +6 -0
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +4 -4
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-add.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-contenttype-default-set.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-defaultvalue-clear.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-defaultvalue-list.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-defaultvalue-remove.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-defaultvalue-set.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-get.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-list.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-remove.mdx +25 -4
- package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-retentionlabel-get.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-retentionlabel-remove.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +23 -0
- package/docs/docs/cmd/spo/list/list-set.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-sitescript-get.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-view-add.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-view-field-add.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-view-field-remove.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-view-field-set.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-view-get.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-view-list.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-view-remove.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-view-set.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-webhook-add.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-webhook-get.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-webhook-list.mdx +19 -0
- package/docs/docs/cmd/spo/list/list-webhook-remove.mdx +21 -0
- package/docs/docs/cmd/spo/list/list-webhook-set.mdx +21 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-add.mdx +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-get.mdx +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-remove.mdx +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-batch-remove.mdx +8 -2
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +13 -7
- package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +8 -2
- package/docs/docs/cmd/spo/page/page-header-set.mdx +9 -9
- package/docs/docs/cmd/spo/page/page-remove.mdx +4 -4
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +52 -21
- package/docs/docs/cmd/spo/site/site-list.mdx +22 -1
- package/docs/docs/cmd/spo/site/site-remove.mdx +3 -3
- package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +11 -2
- package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +9 -3
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +6 -6
- package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +10 -4
- package/docs/docs/cmd/spo/web/web-rule-list.mdx +8 -12
- package/docs/docs/cmd/spo/web/web-rule-remove.mdx +0 -6
- package/docs/docs/cmd/teams/app/app-install.mdx +21 -0
- package/docs/docs/cmd/teams/app/app-list.mdx +19 -0
- package/docs/docs/cmd/teams/app/app-publish.mdx +17 -0
- package/docs/docs/cmd/teams/app/app-remove.mdx +19 -0
- package/docs/docs/cmd/teams/app/app-uninstall.mdx +21 -0
- package/docs/docs/cmd/teams/app/app-update.mdx +19 -0
- package/docs/docs/cmd/tenant/id/id-get.mdx +15 -0
- package/docs/docs/cmd/tenant/info/info-get.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-pronouns-get.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-pronouns-set.mdx +19 -0
- package/docs/docs/cmd/tenant/report/report-settings-get.mdx +19 -0
- package/docs/docs/cmd/tenant/report/report-settings-set.mdx +21 -0
- package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +19 -0
- package/npm-shrinkwrap.json +1541 -1163
- package/package.json +22 -17
|
@@ -1,13 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 _SpoWebSetCommand_instances, _a, _SpoWebSetCommand_initTelemetry, _SpoWebSetCommand_initOptions, _SpoWebSetCommand_initTypes, _SpoWebSetCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import request from '../../../../request.js';
|
|
8
4
|
import { validation } from '../../../../utils/validation.js';
|
|
9
5
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
10
6
|
import commands from '../../commands.js';
|
|
7
|
+
export const options = z.looseObject({
|
|
8
|
+
...globalOptionsZod.shape,
|
|
9
|
+
description: z.string().optional().alias('d'),
|
|
10
|
+
headerEmphasis: z.enum(['0', '1', '2', '3'], {
|
|
11
|
+
error: e => `${e.input} is not a valid value for headerEmphasis. Allowed values are 0|1|2|3`
|
|
12
|
+
}).optional(),
|
|
13
|
+
headerLayout: z.enum(['standard', 'compact']).optional(),
|
|
14
|
+
megaMenuEnabled: z.boolean().optional(),
|
|
15
|
+
quickLaunchEnabled: z.boolean().optional(),
|
|
16
|
+
siteLogoUrl: z.string().optional(),
|
|
17
|
+
title: z.string().optional().alias('t'),
|
|
18
|
+
url: z.string().refine(url => validation.isValidSharePointUrl(url) === true, {
|
|
19
|
+
error: e => `${e.input} is not a valid SharePoint Online site URL.`
|
|
20
|
+
}).alias('u'),
|
|
21
|
+
footerEnabled: z.boolean().optional(),
|
|
22
|
+
navAudienceTargetingEnabled: z.boolean().optional(),
|
|
23
|
+
searchScope: z.preprocess(value => String(value).toLowerCase(), z.enum(['defaultscope', 'tenant', 'hub', 'site'])).optional(),
|
|
24
|
+
welcomePage: z.string().optional()
|
|
25
|
+
});
|
|
11
26
|
class SpoWebSetCommand extends SpoCommand {
|
|
12
27
|
get name() {
|
|
13
28
|
return commands.WEB_SET;
|
|
@@ -15,17 +30,12 @@ class SpoWebSetCommand extends SpoCommand {
|
|
|
15
30
|
get description() {
|
|
16
31
|
return 'Updates subsite properties';
|
|
17
32
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
_SpoWebSetCommand_instances.add(this);
|
|
21
|
-
__classPrivateFieldGet(this, _SpoWebSetCommand_instances, "m", _SpoWebSetCommand_initTelemetry).call(this);
|
|
22
|
-
__classPrivateFieldGet(this, _SpoWebSetCommand_instances, "m", _SpoWebSetCommand_initOptions).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _SpoWebSetCommand_instances, "m", _SpoWebSetCommand_initTypes).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoWebSetCommand_instances, "m", _SpoWebSetCommand_initValidators).call(this);
|
|
33
|
+
get schema() {
|
|
34
|
+
return options;
|
|
25
35
|
}
|
|
26
36
|
async commandAction(logger, args) {
|
|
27
37
|
const payload = {};
|
|
28
|
-
this.
|
|
38
|
+
this.addUnknownOptionsToPayloadZod(payload, args.options);
|
|
29
39
|
if (args.options.title) {
|
|
30
40
|
payload.Title = args.options.title;
|
|
31
41
|
}
|
|
@@ -39,7 +49,7 @@ class SpoWebSetCommand extends SpoCommand {
|
|
|
39
49
|
payload.QuickLaunchEnabled = args.options.quickLaunchEnabled;
|
|
40
50
|
}
|
|
41
51
|
if (typeof args.options.headerEmphasis !== 'undefined') {
|
|
42
|
-
payload.HeaderEmphasis = args.options.headerEmphasis;
|
|
52
|
+
payload.HeaderEmphasis = Number(args.options.headerEmphasis);
|
|
43
53
|
}
|
|
44
54
|
if (typeof args.options.headerLayout !== 'undefined') {
|
|
45
55
|
payload.HeaderLayout = args.options.headerLayout === 'standard' ? 1 : 2;
|
|
@@ -55,7 +65,7 @@ class SpoWebSetCommand extends SpoCommand {
|
|
|
55
65
|
}
|
|
56
66
|
if (typeof args.options.searchScope !== 'undefined') {
|
|
57
67
|
const searchScope = args.options.searchScope.toLowerCase();
|
|
58
|
-
payload.SearchScope =
|
|
68
|
+
payload.SearchScope = SpoWebSetCommand.searchScopeOptions.indexOf(searchScope);
|
|
59
69
|
}
|
|
60
70
|
try {
|
|
61
71
|
const requestOptions = {
|
|
@@ -97,86 +107,6 @@ class SpoWebSetCommand extends SpoCommand {
|
|
|
97
107
|
return true;
|
|
98
108
|
}
|
|
99
109
|
}
|
|
100
|
-
_a = SpoWebSetCommand, _SpoWebSetCommand_instances = new WeakSet(), _SpoWebSetCommand_initTelemetry = function _SpoWebSetCommand_initTelemetry() {
|
|
101
|
-
this.telemetry.push((args) => {
|
|
102
|
-
Object.assign(this.telemetryProperties, {
|
|
103
|
-
description: typeof args.options.description !== 'undefined',
|
|
104
|
-
headerEmphasis: typeof args.options.headerEmphasis !== 'undefined',
|
|
105
|
-
headerLayout: typeof args.options.headerLayout !== 'undefined',
|
|
106
|
-
megaMenuEnabled: typeof args.options.megaMenuEnabled !== 'undefined',
|
|
107
|
-
siteLogoUrl: typeof args.options.siteLogoUrl !== 'undefined',
|
|
108
|
-
title: typeof args.options.title !== 'undefined',
|
|
109
|
-
quickLaunchEnabled: typeof args.options.quickLaunchEnabled !== 'undefined',
|
|
110
|
-
footerEnabled: typeof args.options.footerEnabled !== 'undefined',
|
|
111
|
-
navAudienceTargetingEnabled: typeof args.options.navAudienceTargetingEnabled !== 'undefined',
|
|
112
|
-
searchScope: typeof args.options.searchScope !== 'undefined',
|
|
113
|
-
welcomePage: typeof args.options.welcomePage !== 'undefined'
|
|
114
|
-
});
|
|
115
|
-
this.trackUnknownOptions(this.telemetryProperties, args.options);
|
|
116
|
-
});
|
|
117
|
-
}, _SpoWebSetCommand_initOptions = function _SpoWebSetCommand_initOptions() {
|
|
118
|
-
this.options.unshift({
|
|
119
|
-
option: '-u, --url <url>'
|
|
120
|
-
}, {
|
|
121
|
-
option: '-t, --title [title]'
|
|
122
|
-
}, {
|
|
123
|
-
option: '-d, --description [description]'
|
|
124
|
-
}, {
|
|
125
|
-
option: '--siteLogoUrl [siteLogoUrl]'
|
|
126
|
-
}, {
|
|
127
|
-
option: '--quickLaunchEnabled [quickLaunchEnabled]',
|
|
128
|
-
autocomplete: ['true', 'false']
|
|
129
|
-
}, {
|
|
130
|
-
option: '--headerLayout [headerLayout]',
|
|
131
|
-
autocomplete: ['standard', 'compact']
|
|
132
|
-
}, {
|
|
133
|
-
option: '--headerEmphasis [headerEmphasis]',
|
|
134
|
-
autocomplete: ['0', '1', '2', '3']
|
|
135
|
-
}, {
|
|
136
|
-
option: '--megaMenuEnabled [megaMenuEnabled]',
|
|
137
|
-
autocomplete: ['true', 'false']
|
|
138
|
-
}, {
|
|
139
|
-
option: '--footerEnabled [footerEnabled]',
|
|
140
|
-
autocomplete: ['true', 'false']
|
|
141
|
-
}, {
|
|
142
|
-
option: '--navAudienceTargetingEnabled [navAudienceTargetingEnabled]',
|
|
143
|
-
autocomplete: ['true', 'false']
|
|
144
|
-
}, {
|
|
145
|
-
option: '--searchScope [searchScope]',
|
|
146
|
-
autocomplete: _a.searchScopeOptions
|
|
147
|
-
}, {
|
|
148
|
-
option: '--welcomePage [welcomePage]'
|
|
149
|
-
});
|
|
150
|
-
}, _SpoWebSetCommand_initTypes = function _SpoWebSetCommand_initTypes() {
|
|
151
|
-
this.types.boolean.push('megaMenuEnabled', 'footerEnabled', 'quickLaunchEnabled', 'navAudienceTargetingEnabled');
|
|
152
|
-
}, _SpoWebSetCommand_initValidators = function _SpoWebSetCommand_initValidators() {
|
|
153
|
-
this.validators.push(async (args) => {
|
|
154
|
-
const isValidSharePointUrl = validation.isValidSharePointUrl(args.options.url);
|
|
155
|
-
if (isValidSharePointUrl !== true) {
|
|
156
|
-
return isValidSharePointUrl;
|
|
157
|
-
}
|
|
158
|
-
if (typeof args.options.headerEmphasis !== 'undefined') {
|
|
159
|
-
if (isNaN(args.options.headerEmphasis)) {
|
|
160
|
-
return `${args.options.headerEmphasis} is not a number`;
|
|
161
|
-
}
|
|
162
|
-
if ([0, 1, 2, 3].indexOf(args.options.headerEmphasis) < 0) {
|
|
163
|
-
return `${args.options.headerEmphasis} is not a valid value for headerEmphasis. Allowed values are 0|1|2|3`;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if (typeof args.options.headerLayout !== 'undefined') {
|
|
167
|
-
if (['standard', 'compact'].indexOf(args.options.headerLayout) < 0) {
|
|
168
|
-
return `${args.options.headerLayout} is not a valid value for headerLayout. Allowed values are standard|compact`;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
if (typeof args.options.searchScope !== 'undefined') {
|
|
172
|
-
const searchScope = args.options.searchScope.toString().toLowerCase();
|
|
173
|
-
if (_a.searchScopeOptions.indexOf(searchScope) < 0) {
|
|
174
|
-
return `${args.options.searchScope} is not a valid value for searchScope. Allowed values are DefaultScope|Tenant|Hub|Site`;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return true;
|
|
178
|
-
});
|
|
179
|
-
};
|
|
180
110
|
SpoWebSetCommand.searchScopeOptions = ['defaultscope', 'tenant', 'hub', 'site'];
|
|
181
111
|
export default new SpoWebSetCommand();
|
|
182
112
|
//# sourceMappingURL=web-set.js.map
|
|
@@ -366,8 +366,6 @@ export default {
|
|
|
366
366
|
USERPROFILE_GET: `${prefix} userprofile get`,
|
|
367
367
|
USERPROFILE_SET: `${prefix} userprofile set`,
|
|
368
368
|
WEB_ADD: `${prefix} web add`,
|
|
369
|
-
WEB_ALERT_LIST: `${prefix} web alert list`,
|
|
370
|
-
WEB_ALERT_REMOVE: `${prefix} web alert remove`,
|
|
371
369
|
WEB_CLIENTSIDEWEBPART_LIST: `${prefix} web clientsidewebpart list`,
|
|
372
370
|
WEB_GET: `${prefix} web get`,
|
|
373
371
|
WEB_INSTALLEDLANGUAGE_LIST: `${prefix} web installedlanguage list`,
|
|
@@ -4,8 +4,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _TeamsChannelListCommand_instances, _TeamsChannelListCommand_initTelemetry, _TeamsChannelListCommand_initOptions, _TeamsChannelListCommand_initValidators, _TeamsChannelListCommand_initOptionSets;
|
|
7
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
8
7
|
import { odata } from '../../../../utils/odata.js';
|
|
8
|
+
import { teams } from '../../../../utils/teams.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
@@ -31,11 +31,7 @@ class TeamsChannelListCommand extends GraphCommand {
|
|
|
31
31
|
if (args.options.teamId) {
|
|
32
32
|
return args.options.teamId;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
36
|
-
throw 'The specified team does not exist in the Microsoft Teams';
|
|
37
|
-
}
|
|
38
|
-
return group.id;
|
|
34
|
+
return teams.getTeamIdByDisplayName(args.options.teamName);
|
|
39
35
|
}
|
|
40
36
|
async commandAction(logger, args) {
|
|
41
37
|
try {
|
|
@@ -5,8 +5,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _TeamsChannelMemberAddCommand_instances, _TeamsChannelMemberAddCommand_initTelemetry, _TeamsChannelMemberAddCommand_initOptions, _TeamsChannelMemberAddCommand_initValidators, _TeamsChannelMemberAddCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
|
+
import { teams } from '../../../../utils/teams.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
@@ -63,11 +63,7 @@ class TeamsChannelMemberAddCommand extends GraphCommand {
|
|
|
63
63
|
if (args.options.teamId) {
|
|
64
64
|
return args.options.teamId;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
68
|
-
throw 'The specified team does not exist in the Microsoft Teams';
|
|
69
|
-
}
|
|
70
|
-
return group.id;
|
|
66
|
+
return teams.getTeamIdByDisplayName(args.options.teamName);
|
|
71
67
|
}
|
|
72
68
|
async getChannelId(teamId, args) {
|
|
73
69
|
if (args.options.channelId) {
|
|
@@ -5,9 +5,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _TeamsChannelMemberListCommand_instances, _TeamsChannelMemberListCommand_initTelemetry, _TeamsChannelMemberListCommand_initOptions, _TeamsChannelMemberListCommand_initValidators, _TeamsChannelMemberListCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
9
|
import { odata } from '../../../../utils/odata.js';
|
|
10
|
+
import { teams } from '../../../../utils/teams.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
@@ -55,11 +55,7 @@ class TeamsChannelMemberListCommand extends GraphCommand {
|
|
|
55
55
|
if (args.options.teamId) {
|
|
56
56
|
return args.options.teamId;
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
60
|
-
throw 'The specified team does not exist in the Microsoft Teams';
|
|
61
|
-
}
|
|
62
|
-
return group.id;
|
|
58
|
+
return teams.getTeamIdByDisplayName(args.options.teamName);
|
|
63
59
|
}
|
|
64
60
|
async getChannelId(args) {
|
|
65
61
|
if (args.options.channelId) {
|
|
@@ -6,8 +6,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _TeamsChannelMemberRemoveCommand_instances, _TeamsChannelMemberRemoveCommand_initTelemetry, _TeamsChannelMemberRemoveCommand_initOptions, _TeamsChannelMemberRemoveCommand_initValidators, _TeamsChannelMemberRemoveCommand_initOptionSets;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
10
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
|
+
import { teams } from '../../../../utils/teams.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
@@ -72,11 +72,7 @@ class TeamsChannelMemberRemoveCommand extends GraphCommand {
|
|
|
72
72
|
if (args.options.teamId) {
|
|
73
73
|
return args.options.teamId;
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
77
|
-
throw 'The specified team does not exist in the Microsoft Teams';
|
|
78
|
-
}
|
|
79
|
-
return group.id;
|
|
75
|
+
return teams.getTeamIdByDisplayName(args.options.teamName);
|
|
80
76
|
}
|
|
81
77
|
async getChannelId(args) {
|
|
82
78
|
if (args.options.channelId) {
|
|
@@ -5,8 +5,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _TeamsChannelMemberSetCommand_instances, _TeamsChannelMemberSetCommand_initTelemetry, _TeamsChannelMemberSetCommand_initOptions, _TeamsChannelMemberSetCommand_initValidators, _TeamsChannelMemberSetCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
|
+
import { teams } from '../../../../utils/teams.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
@@ -56,11 +56,7 @@ class TeamsChannelMemberSetCommand extends GraphCommand {
|
|
|
56
56
|
if (args.options.teamId) {
|
|
57
57
|
return args.options.teamId;
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
61
|
-
throw `The specified team does not exist in the Microsoft Teams`;
|
|
62
|
-
}
|
|
63
|
-
return group.id;
|
|
59
|
+
return teams.getTeamIdByDisplayName(args.options.teamName);
|
|
64
60
|
}
|
|
65
61
|
async getChannelId(args) {
|
|
66
62
|
if (args.options.channelId) {
|
|
@@ -6,8 +6,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _TeamsChannelRemoveCommand_instances, _TeamsChannelRemoveCommand_initTelemetry, _TeamsChannelRemoveCommand_initOptions, _TeamsChannelRemoveCommand_initValidators, _TeamsChannelRemoveCommand_initOptionSets;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
10
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
|
+
import { teams } from '../../../../utils/teams.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
@@ -63,13 +63,7 @@ class TeamsChannelRemoveCommand extends GraphCommand {
|
|
|
63
63
|
if (args.options.teamId) {
|
|
64
64
|
return args.options.teamId;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
68
|
-
throw 'The specified team does not exist';
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return group.id;
|
|
72
|
-
}
|
|
66
|
+
return teams.getTeamIdByDisplayName(args.options.teamName);
|
|
73
67
|
}
|
|
74
68
|
async getChannelId(args) {
|
|
75
69
|
if (args.options.id) {
|
|
@@ -5,8 +5,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _TeamsChannelSetCommand_instances, _TeamsChannelSetCommand_initTelemetry, _TeamsChannelSetCommand_initOptions, _TeamsChannelSetCommand_initValidators, _TeamsChannelSetCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
|
+
import { teams } from '../../../../utils/teams.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
@@ -58,13 +58,7 @@ class TeamsChannelSetCommand extends GraphCommand {
|
|
|
58
58
|
if (args.options.teamId) {
|
|
59
59
|
return args.options.teamId;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
63
|
-
throw 'The specified team does not exist';
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return group.id;
|
|
67
|
-
}
|
|
61
|
+
return teams.getTeamIdByDisplayName(args.options.teamName);
|
|
68
62
|
}
|
|
69
63
|
async getChannelId(teamId, args) {
|
|
70
64
|
if (args.options.id) {
|
|
@@ -5,8 +5,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _TeamsTabGetCommand_instances, _TeamsTabGetCommand_initTelemetry, _TeamsTabGetCommand_initOptions, _TeamsTabGetCommand_initValidators, _TeamsTabGetCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
|
+
import { teams } from '../../../../utils/teams.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
@@ -31,11 +31,7 @@ class TeamsTabGetCommand extends GraphCommand {
|
|
|
31
31
|
if (args.options.teamId) {
|
|
32
32
|
return args.options.teamId;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
36
|
-
throw 'The specified team does not exist in the Microsoft Teams';
|
|
37
|
-
}
|
|
38
|
-
return group.id;
|
|
34
|
+
return teams.getTeamIdByDisplayName(args.options.teamName);
|
|
39
35
|
}
|
|
40
36
|
async getChannelId(args) {
|
|
41
37
|
if (args.options.channelId) {
|
|
@@ -5,8 +5,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _TeamsTeamArchiveCommand_instances, _TeamsTeamArchiveCommand_initTelemetry, _TeamsTeamArchiveCommand_initOptions, _TeamsTeamArchiveCommand_initValidators, _TeamsTeamArchiveCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
|
+
import { teams } from '../../../../utils/teams.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
@@ -29,11 +29,7 @@ class TeamsTeamArchiveCommand extends GraphCommand {
|
|
|
29
29
|
if (args.options.id) {
|
|
30
30
|
return args.options.id;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
34
|
-
throw 'The specified team does not exist in the Microsoft Teams';
|
|
35
|
-
}
|
|
36
|
-
return group.id;
|
|
32
|
+
return teams.getTeamIdByDisplayName(args.options.name);
|
|
37
33
|
}
|
|
38
34
|
async commandAction(logger, args) {
|
|
39
35
|
const siteReadOnlyForMembers = args.options.shouldSetSpoSiteReadOnlyForMembers === true;
|
|
@@ -6,8 +6,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _TeamsTeamRemoveCommand_instances, _TeamsTeamRemoveCommand_initTelemetry, _TeamsTeamRemoveCommand_initOptions, _TeamsTeamRemoveCommand_initValidators, _TeamsTeamRemoveCommand_initOptionSets;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
10
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
|
+
import { teams } from '../../../../utils/teams.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
@@ -30,11 +30,7 @@ class TeamsTeamRemoveCommand extends GraphCommand {
|
|
|
30
30
|
if (args.options.id) {
|
|
31
31
|
return args.options.id;
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
35
|
-
throw `The specified team does not exist in the Microsoft Teams`;
|
|
36
|
-
}
|
|
37
|
-
return group.id;
|
|
33
|
+
return teams.getTeamIdByDisplayName(args.options.name);
|
|
38
34
|
}
|
|
39
35
|
async commandAction(logger, args) {
|
|
40
36
|
const removeTeam = async () => {
|
|
@@ -5,8 +5,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _TeamsTeamUnarchiveCommand_instances, _TeamsTeamUnarchiveCommand_initOptions, _TeamsTeamUnarchiveCommand_initValidators, _TeamsTeamUnarchiveCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
|
+
import { teams } from '../../../../utils/teams.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
@@ -28,11 +28,7 @@ class TeamsTeamUnarchiveCommand extends GraphCommand {
|
|
|
28
28
|
if (args.options.id) {
|
|
29
29
|
return args.options.id;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
33
|
-
throw 'The specified team does not exist in the Microsoft Teams';
|
|
34
|
-
}
|
|
35
|
-
return group.id;
|
|
31
|
+
return teams.getTeamIdByDisplayName(args.options.name);
|
|
36
32
|
}
|
|
37
33
|
async commandAction(logger, args) {
|
|
38
34
|
const endpoint = `${this.resource}/v1.0`;
|
|
@@ -24,8 +24,8 @@ m365 entra m365group remove [options]
|
|
|
24
24
|
`-f, --force`
|
|
25
25
|
: Don't prompt for confirming removing the group
|
|
26
26
|
|
|
27
|
-
`--
|
|
28
|
-
:
|
|
27
|
+
`--permanent`
|
|
28
|
+
: Permanently remove the group without leaving it in the recycle bin.
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
@@ -53,7 +53,7 @@ m365 entra m365group remove [options]
|
|
|
53
53
|
|
|
54
54
|
If the specified _id_ doesn't refer to an existing group, you will get a `Resource does not exist` error. Additionally, if you do not have access to the group or the associated group-connected site, you will get an `Access denied` error.
|
|
55
55
|
|
|
56
|
-
When you use `--
|
|
56
|
+
When you use the `--permanent` flag to remove a Microsoft 365 group permanently, the process involves deleting the associated group-connected site and the group, and then checking if the group has been moved to the deleted groups list. In some cases, it may take a few seconds for the group to appear in the deleted groups list.
|
|
57
57
|
|
|
58
58
|
To ensure a smooth deletion process, the command employs a retry mechanism with the following parameters:
|
|
59
59
|
|
|
@@ -80,7 +80,7 @@ m365 entra m365group remove --displayName Finance --force
|
|
|
80
80
|
Remove group with id _28beab62-7540-4db1-a23f-29a6018a3848_ without prompting for confirmation and without moving it to the Recycle Bin
|
|
81
81
|
|
|
82
82
|
```sh
|
|
83
|
-
m365 entra m365group remove --id 28beab62-7540-4db1-a23f-29a6018a3848 --force --
|
|
83
|
+
m365 entra m365group remove --id 28beab62-7540-4db1-a23f-29a6018a3848 --force --permanent
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
## Response
|
|
@@ -27,8 +27,8 @@ m365 spe container remove [options]
|
|
|
27
27
|
`--containerTypeName [containerTypeName]`
|
|
28
28
|
: The name of the container type. Specify either `containerTypeId` or `containerTypeName` when using `name` but not both.
|
|
29
29
|
|
|
30
|
-
`--
|
|
31
|
-
:
|
|
30
|
+
`--permanent`
|
|
31
|
+
: Permanently delete the container instance instead of moving it to the recycle bin.
|
|
32
32
|
|
|
33
33
|
`-f, --force`
|
|
34
34
|
: Do not prompt for confirmation.
|
|
@@ -67,16 +67,16 @@ The command is based on an API that is currently in preview and is subject to ch
|
|
|
67
67
|
|
|
68
68
|
## Examples
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
Move a container specified by ID to the recycle bin.
|
|
71
71
|
|
|
72
72
|
```sh
|
|
73
73
|
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
Permanently remove a container by ID.
|
|
77
77
|
|
|
78
78
|
```sh
|
|
79
|
-
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --
|
|
79
|
+
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --permanent
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
Remove a container by name specifying the container type id.
|
|
@@ -82,7 +82,7 @@ This command will only return a response if the content type is added to the sit
|
|
|
82
82
|
|
|
83
83
|
```json
|
|
84
84
|
{
|
|
85
|
-
"@odata.context": "https://
|
|
85
|
+
"@odata.context": "https://contoso.sharepoint.com/_api/v2.0/$metadata#contentType",
|
|
86
86
|
"@odata.type": "#microsoft.graph.contentType",
|
|
87
87
|
"@odata.etag": "\"2\"",
|
|
88
88
|
"id": "0x0101003D510887202C894AB7CD88CCE011519D",
|
|
@@ -110,7 +110,7 @@ This command will only return a response if the content type is added to the sit
|
|
|
110
110
|
<TabItem value="Text">
|
|
111
111
|
|
|
112
112
|
```text
|
|
113
|
-
@odata.context: https://
|
|
113
|
+
@odata.context: https://contoso.sharepoint.com/_api/v2.0/$metadata#contentType
|
|
114
114
|
@odata.etag : "2"
|
|
115
115
|
@odata.type : #microsoft.graph.contentType
|
|
116
116
|
base : {"id":"0x0101","description":"Create a new document.","group":"Document Content Types","hidden":false,"name":"Document","readOnly":false,"sealed":false}
|
|
@@ -130,7 +130,7 @@ This command will only return a response if the content type is added to the sit
|
|
|
130
130
|
|
|
131
131
|
```csv
|
|
132
132
|
@odata.context,@odata.type,@odata.etag,id,isBuiltIn,description,group,hidden,name,parentId,readOnly,sealed
|
|
133
|
-
https://
|
|
133
|
+
https://contoso.sharepoint.com/_api/v2.0/$metadata#contentType,#microsoft.graph.contentType,"""2""",0x010100F4ACBE99F2DBDE42B0487A561A40F9EE,,,Custom Content Types,,Dummy,0x0101,1,
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
</TabItem>
|
|
@@ -145,7 +145,7 @@ This command will only return a response if the content type is added to the sit
|
|
|
145
145
|
|
|
146
146
|
Property | Value
|
|
147
147
|
---------|-------
|
|
148
|
-
@odata.context | https://
|
|
148
|
+
@odata.context | https://contoso.sharepoint.com/_api/v2.0/$metadata#contentType
|
|
149
149
|
@odata.type | #microsoft.graph.contentType
|
|
150
150
|
@odata.etag | "2"
|
|
151
151
|
id | 0x010100F4ACBE99F2DBDE42B0487A561A40F9EE
|
|
@@ -30,8 +30,8 @@ m365 spo file add [options]
|
|
|
30
30
|
`--checkOut [checkOut]`
|
|
31
31
|
: If versioning is enabled, this will check out the file first if it exists, upload the file, then check it in again.
|
|
32
32
|
|
|
33
|
-
`--overwrite
|
|
34
|
-
: Overwrite the file if it already exists in the target folder.
|
|
33
|
+
`--overwrite`
|
|
34
|
+
: Overwrite the file if it already exists in the target folder.
|
|
35
35
|
|
|
36
36
|
`--fileName [fileName]`
|
|
37
37
|
: The name of the file in SharePoint after upload. If not specified, the name of the uploaded file will be used.
|
|
@@ -30,6 +30,14 @@ m365 spo file archive [options]
|
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
32
32
|
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
:::warning
|
|
36
|
+
|
|
37
|
+
You will be able to reactivate an archived file instantly for the first 7 days. After that, it will take up to 24 hours to reactivate.
|
|
38
|
+
|
|
39
|
+
:::
|
|
40
|
+
|
|
33
41
|
## Permissions
|
|
34
42
|
|
|
35
43
|
<Tabs>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spo file checkin
|
|
4
6
|
|
|
@@ -31,6 +33,25 @@ m365 spo file checkin [options]
|
|
|
31
33
|
|
|
32
34
|
<Global />
|
|
33
35
|
|
|
36
|
+
## Permissions
|
|
37
|
+
|
|
38
|
+
<Tabs>
|
|
39
|
+
<TabItem value="Delegated">
|
|
40
|
+
|
|
41
|
+
| Resource | Permissions |
|
|
42
|
+
|------------|----------------|
|
|
43
|
+
| SharePoint | AllSites.Write |
|
|
44
|
+
|
|
45
|
+
</TabItem>
|
|
46
|
+
<TabItem value="Application">
|
|
47
|
+
|
|
48
|
+
| Resource | Permissions |
|
|
49
|
+
|------------|---------------------|
|
|
50
|
+
| SharePoint | Sites.ReadWrite.All |
|
|
51
|
+
|
|
52
|
+
</TabItem>
|
|
53
|
+
</Tabs>
|
|
54
|
+
|
|
34
55
|
## Examples
|
|
35
56
|
|
|
36
57
|
Checks in file with the specified UniqueId located in the specified site.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spo file checkout
|
|
4
6
|
|
|
@@ -25,6 +27,25 @@ m365 spo file checkout [options]
|
|
|
25
27
|
|
|
26
28
|
<Global />
|
|
27
29
|
|
|
30
|
+
## Permissions
|
|
31
|
+
|
|
32
|
+
<Tabs>
|
|
33
|
+
<TabItem value="Delegated">
|
|
34
|
+
|
|
35
|
+
| Resource | Permissions |
|
|
36
|
+
|------------|----------------|
|
|
37
|
+
| SharePoint | AllSites.Write |
|
|
38
|
+
|
|
39
|
+
</TabItem>
|
|
40
|
+
<TabItem value="Application">
|
|
41
|
+
|
|
42
|
+
| Resource | Permissions |
|
|
43
|
+
|------------|---------------------|
|
|
44
|
+
| SharePoint | Sites.ReadWrite.All |
|
|
45
|
+
|
|
46
|
+
</TabItem>
|
|
47
|
+
</Tabs>
|
|
48
|
+
|
|
28
49
|
## Examples
|
|
29
50
|
|
|
30
51
|
Checks out file with the specified UniqueId located in the specified site.
|