@pnp/cli-microsoft365 11.12.0-beta.8589b73 → 12.0.0-beta.e4f7675
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/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/listitem/listitem-get.js +15 -7
- package/dist/m365/spo/commands/page/page-header-set.js +123 -64
- package/dist/m365/spo/commands/site/site-list.js +60 -49
- 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/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/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-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 +21 -0
- package/docs/docs/cmd/spo/file/file-rename.mdx +19 -0
- 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 +21 -0
- 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-get.mdx +13 -7
- package/docs/docs/cmd/spo/page/page-header-set.mdx +9 -9
- package/docs/docs/cmd/spo/site/site-list.mdx +22 -1
- 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/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 +1103 -1157
- package/package.json +17 -17
|
@@ -30,8 +30,8 @@ export const workflow = {
|
|
|
30
30
|
run: "npm ci"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
name: "
|
|
34
|
-
run: "
|
|
33
|
+
name: "Build & Package",
|
|
34
|
+
run: "npm run build"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
name: "CLI for Microsoft 365 Login",
|
|
@@ -140,20 +140,12 @@ export const pipeline = {
|
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
|
-
task: "
|
|
144
|
-
displayName: "
|
|
145
|
-
inputs: {
|
|
146
|
-
gulpFile: "./gulpfile.js",
|
|
147
|
-
targets: "bundle",
|
|
148
|
-
arguments: "--ship"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
task: "Gulp@0",
|
|
153
|
-
displayName: "Gulp package",
|
|
143
|
+
task: "Npm@1",
|
|
144
|
+
displayName: "Build and package",
|
|
154
145
|
inputs: {
|
|
155
|
-
|
|
156
|
-
|
|
146
|
+
command: "custom",
|
|
147
|
+
verbose: false,
|
|
148
|
+
customCommand: "run build"
|
|
157
149
|
}
|
|
158
150
|
},
|
|
159
151
|
{
|
|
@@ -41,8 +41,9 @@ class SpfxProjectAzureDevOpsPipelineAddCommand extends BaseProjectCommand {
|
|
|
41
41
|
const project = { path: this.projectRootPath };
|
|
42
42
|
this.readAndParseJsonFile(path.join(this.projectRootPath, 'config', 'package-solution.json'), project, 'packageSolutionJson');
|
|
43
43
|
const sppkgPath = project.packageSolutionJson?.paths?.zippedPackage;
|
|
44
|
-
|
|
45
|
-
this.
|
|
44
|
+
const pipelineToSave = structuredClone(pipeline);
|
|
45
|
+
this.updatePipeline(sppkgPath, pipelineToSave, args.options);
|
|
46
|
+
this.savePipeline(pipelineToSave);
|
|
46
47
|
}
|
|
47
48
|
catch (error) {
|
|
48
49
|
this.handleError(error);
|
|
@@ -108,6 +109,33 @@ class SpfxProjectAzureDevOpsPipelineAddCommand extends BaseProjectCommand {
|
|
|
108
109
|
if (options.skipFeatureDeployment) {
|
|
109
110
|
script.script = script.script.replace(`m365 spo app deploy `, `m365 spo app deploy --skipFeatureDeployment `);
|
|
110
111
|
}
|
|
112
|
+
if (versionRequirements.heft === undefined) {
|
|
113
|
+
let steps = this.getPipelineSteps(pipeline);
|
|
114
|
+
const npmBuildScript = steps.find(step => step.task && step.displayName === 'Build and package');
|
|
115
|
+
if (npmBuildScript) {
|
|
116
|
+
pipeline.stages[0].jobs[0].steps = steps.filter(step => step !== npmBuildScript);
|
|
117
|
+
}
|
|
118
|
+
const gulpBundleStep = {
|
|
119
|
+
task: 'Gulp@0',
|
|
120
|
+
displayName: 'Gulp bundle',
|
|
121
|
+
inputs: {
|
|
122
|
+
gulpFile: './gulpfile.js',
|
|
123
|
+
targets: 'bundle',
|
|
124
|
+
arguments: '--ship'
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const gulpPackageStep = {
|
|
128
|
+
task: 'Gulp@0',
|
|
129
|
+
displayName: 'Gulp package',
|
|
130
|
+
inputs: {
|
|
131
|
+
targets: 'package-solution',
|
|
132
|
+
arguments: '--ship'
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
steps = this.getPipelineSteps(pipeline);
|
|
136
|
+
const installCLIStepIndex = steps.findIndex(step => step.task === 'Npm@1' && step.displayName === 'Install CLI for Microsoft 365');
|
|
137
|
+
pipeline.stages[0].jobs[0].steps.splice(installCLIStepIndex, 0, gulpBundleStep, gulpPackageStep);
|
|
138
|
+
}
|
|
111
139
|
}
|
|
112
140
|
}
|
|
113
141
|
assignPipelineVariables(pipeline, variableName, newVariableValue) {
|
|
@@ -43,8 +43,9 @@ class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
|
|
|
43
43
|
if (this.debug) {
|
|
44
44
|
await logger.logToStderr(`Adding GitHub workflow in the current SPFx project`);
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
this.
|
|
46
|
+
const workflowToSave = structuredClone(workflow);
|
|
47
|
+
this.updateWorkflow(solutionName, sppkgPath, workflowToSave, args.options);
|
|
48
|
+
this.saveWorkflow(workflowToSave);
|
|
48
49
|
}
|
|
49
50
|
catch (error) {
|
|
50
51
|
this.handleError(error);
|
|
@@ -96,10 +97,19 @@ class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
|
|
|
96
97
|
const deployAction = this.getDeployAction(workflow);
|
|
97
98
|
deployAction.with.APP_FILE_PATH = deployAction.with.APP_FILE_PATH.replace('{{ sppkgPath }}', sppkgPath);
|
|
98
99
|
}
|
|
100
|
+
if (versionRequirements.heft === undefined) {
|
|
101
|
+
const buildAndPackageStep = this.getBuildAndPackageStep(workflow);
|
|
102
|
+
buildAndPackageStep.run = `gulp bundle --ship\ngulp package-solution --ship\n`;
|
|
103
|
+
buildAndPackageStep.name = 'Bundle & Package';
|
|
104
|
+
}
|
|
99
105
|
}
|
|
100
106
|
assignNodeVersion(workflow, nodeVersion) {
|
|
101
107
|
workflow.jobs['build-and-deploy'].env.NodeVersion = nodeVersion;
|
|
102
108
|
}
|
|
109
|
+
getBuildAndPackageStep(workflow) {
|
|
110
|
+
const steps = this.getWorkFlowSteps(workflow);
|
|
111
|
+
return steps.find(step => step.run && step.name === 'Build & Package');
|
|
112
|
+
}
|
|
103
113
|
getLoginAction(workflow) {
|
|
104
114
|
const steps = this.getWorkFlowSteps(workflow);
|
|
105
115
|
return steps.find(step => step.uses && step.uses.indexOf('action-cli-login') >= 0);
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _SpoCdnGetCommand_instances, _SpoCdnGetCommand_initTelemetry, _SpoCdnGetCommand_initOptions, _SpoCdnGetCommand_initValidators, _SpoCdnGetCommand_initTypes;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import config from '../../../../config.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { spo } from '../../../../utils/spo.js';
|
|
10
6
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
11
7
|
import commands from '../../commands.js';
|
|
8
|
+
export const options = z.strictObject({
|
|
9
|
+
...globalOptionsZod.shape,
|
|
10
|
+
type: z.enum(['Public', 'Private']).optional().alias('t')
|
|
11
|
+
});
|
|
12
12
|
class SpoCdnGetCommand extends SpoCommand {
|
|
13
13
|
get name() {
|
|
14
14
|
return commands.CDN_GET;
|
|
@@ -16,14 +16,8 @@ class SpoCdnGetCommand extends SpoCommand {
|
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Views current status of the specified Microsoft 365 CDN';
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_SpoCdnGetCommand_instances.add(this);
|
|
22
|
-
this.validTypes = ['Public', 'Private'];
|
|
23
|
-
__classPrivateFieldGet(this, _SpoCdnGetCommand_instances, "m", _SpoCdnGetCommand_initTelemetry).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoCdnGetCommand_instances, "m", _SpoCdnGetCommand_initOptions).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _SpoCdnGetCommand_instances, "m", _SpoCdnGetCommand_initValidators).call(this);
|
|
26
|
-
__classPrivateFieldGet(this, _SpoCdnGetCommand_instances, "m", _SpoCdnGetCommand_initTypes).call(this);
|
|
19
|
+
get schema() {
|
|
20
|
+
return options;
|
|
27
21
|
}
|
|
28
22
|
async commandAction(logger, args) {
|
|
29
23
|
const cdnTypeString = args.options.type || 'Public';
|
|
@@ -59,26 +53,5 @@ class SpoCdnGetCommand extends SpoCommand {
|
|
|
59
53
|
}
|
|
60
54
|
}
|
|
61
55
|
}
|
|
62
|
-
_SpoCdnGetCommand_instances = new WeakSet(), _SpoCdnGetCommand_initTelemetry = function _SpoCdnGetCommand_initTelemetry() {
|
|
63
|
-
this.telemetry.push((args) => {
|
|
64
|
-
Object.assign(this.telemetryProperties, {
|
|
65
|
-
cdnType: args.options.type || 'Public'
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
}, _SpoCdnGetCommand_initOptions = function _SpoCdnGetCommand_initOptions() {
|
|
69
|
-
this.options.unshift({
|
|
70
|
-
option: '-t, --type [type]',
|
|
71
|
-
autocomplete: this.validTypes
|
|
72
|
-
});
|
|
73
|
-
}, _SpoCdnGetCommand_initValidators = function _SpoCdnGetCommand_initValidators() {
|
|
74
|
-
this.validators.push(async (args) => {
|
|
75
|
-
if (args.options.type && !this.validTypes.includes(args.options.type)) {
|
|
76
|
-
return `'${args.options.type}' is not a valid CDN type. Allowed values are: ${this.validTypes.join(', ')}.`;
|
|
77
|
-
}
|
|
78
|
-
return true;
|
|
79
|
-
});
|
|
80
|
-
}, _SpoCdnGetCommand_initTypes = function _SpoCdnGetCommand_initTypes() {
|
|
81
|
-
this.types.string.push('type');
|
|
82
|
-
};
|
|
83
56
|
export default new SpoCdnGetCommand();
|
|
84
57
|
//# sourceMappingURL=cdn-get.js.map
|
|
@@ -1,15 +1,16 @@
|
|
|
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 _SpoCdnOriginAddCommand_instances, _SpoCdnOriginAddCommand_initTelemetry, _SpoCdnOriginAddCommand_initOptions, _SpoCdnOriginAddCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import config from '../../../../config.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
6
|
import { spo } from '../../../../utils/spo.js';
|
|
11
7
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
12
8
|
import commands from '../../commands.js';
|
|
9
|
+
export const options = z.strictObject({
|
|
10
|
+
...globalOptionsZod.shape,
|
|
11
|
+
type: z.enum(['Public', 'Private']).optional().alias('t'),
|
|
12
|
+
origin: z.string().alias('r')
|
|
13
|
+
});
|
|
13
14
|
class SpoCdnOriginAddCommand extends SpoCommand {
|
|
14
15
|
get name() {
|
|
15
16
|
return commands.CDN_ORIGIN_ADD;
|
|
@@ -17,12 +18,8 @@ class SpoCdnOriginAddCommand extends SpoCommand {
|
|
|
17
18
|
get description() {
|
|
18
19
|
return 'Adds CDN origin to the current SharePoint Online tenant';
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
_SpoCdnOriginAddCommand_instances.add(this);
|
|
23
|
-
__classPrivateFieldGet(this, _SpoCdnOriginAddCommand_instances, "m", _SpoCdnOriginAddCommand_initTelemetry).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoCdnOriginAddCommand_instances, "m", _SpoCdnOriginAddCommand_initOptions).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _SpoCdnOriginAddCommand_instances, "m", _SpoCdnOriginAddCommand_initValidators).call(this);
|
|
21
|
+
get schema() {
|
|
22
|
+
return options;
|
|
26
23
|
}
|
|
27
24
|
async commandAction(logger, args) {
|
|
28
25
|
const cdnTypeString = args.options.type || 'Public';
|
|
@@ -53,29 +50,5 @@ class SpoCdnOriginAddCommand extends SpoCommand {
|
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
|
-
_SpoCdnOriginAddCommand_instances = new WeakSet(), _SpoCdnOriginAddCommand_initTelemetry = function _SpoCdnOriginAddCommand_initTelemetry() {
|
|
57
|
-
this.telemetry.push((args) => {
|
|
58
|
-
Object.assign(this.telemetryProperties, {
|
|
59
|
-
cdnType: args.options.type || 'Public'
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}, _SpoCdnOriginAddCommand_initOptions = function _SpoCdnOriginAddCommand_initOptions() {
|
|
63
|
-
this.options.unshift({
|
|
64
|
-
option: '-t, --type [type]',
|
|
65
|
-
autocomplete: ['Public', 'Private']
|
|
66
|
-
}, {
|
|
67
|
-
option: '-r, --origin <origin>'
|
|
68
|
-
});
|
|
69
|
-
}, _SpoCdnOriginAddCommand_initValidators = function _SpoCdnOriginAddCommand_initValidators() {
|
|
70
|
-
this.validators.push(async (args) => {
|
|
71
|
-
if (args.options.type) {
|
|
72
|
-
if (args.options.type !== 'Public' &&
|
|
73
|
-
args.options.type !== 'Private') {
|
|
74
|
-
return `${args.options.type} is not a valid CDN type. Allowed values are Public|Private`;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return true;
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
53
|
export default new SpoCdnOriginAddCommand();
|
|
81
54
|
//# sourceMappingURL=cdn-origin-add.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _SpoCdnOriginListCommand_instances, _SpoCdnOriginListCommand_initTelemetry, _SpoCdnOriginListCommand_initOptions, _SpoCdnOriginListCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import config from '../../../../config.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { spo } from '../../../../utils/spo.js';
|
|
10
6
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
11
7
|
import commands from '../../commands.js';
|
|
8
|
+
export const options = z.strictObject({
|
|
9
|
+
...globalOptionsZod.shape,
|
|
10
|
+
type: z.enum(['Public', 'Private']).optional().alias('t')
|
|
11
|
+
});
|
|
12
12
|
class SpoCdnOriginListCommand extends SpoCommand {
|
|
13
13
|
get name() {
|
|
14
14
|
return commands.CDN_ORIGIN_LIST;
|
|
@@ -16,12 +16,8 @@ class SpoCdnOriginListCommand extends SpoCommand {
|
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Lists CDN origins settings for the current SharePoint Online tenant';
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_SpoCdnOriginListCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _SpoCdnOriginListCommand_instances, "m", _SpoCdnOriginListCommand_initTelemetry).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _SpoCdnOriginListCommand_instances, "m", _SpoCdnOriginListCommand_initOptions).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoCdnOriginListCommand_instances, "m", _SpoCdnOriginListCommand_initValidators).call(this);
|
|
19
|
+
get schema() {
|
|
20
|
+
return options;
|
|
25
21
|
}
|
|
26
22
|
async commandAction(logger, args) {
|
|
27
23
|
const cdnTypeString = args.options.type || 'Public';
|
|
@@ -56,27 +52,5 @@ class SpoCdnOriginListCommand extends SpoCommand {
|
|
|
56
52
|
}
|
|
57
53
|
}
|
|
58
54
|
}
|
|
59
|
-
_SpoCdnOriginListCommand_instances = new WeakSet(), _SpoCdnOriginListCommand_initTelemetry = function _SpoCdnOriginListCommand_initTelemetry() {
|
|
60
|
-
this.telemetry.push((args) => {
|
|
61
|
-
Object.assign(this.telemetryProperties, {
|
|
62
|
-
cdnType: args.options.type || 'Public'
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}, _SpoCdnOriginListCommand_initOptions = function _SpoCdnOriginListCommand_initOptions() {
|
|
66
|
-
this.options.unshift({
|
|
67
|
-
option: '-t, --type [type]',
|
|
68
|
-
autocomplete: ['Public', 'Private']
|
|
69
|
-
});
|
|
70
|
-
}, _SpoCdnOriginListCommand_initValidators = function _SpoCdnOriginListCommand_initValidators() {
|
|
71
|
-
this.validators.push(async (args) => {
|
|
72
|
-
if (args.options.type) {
|
|
73
|
-
if (args.options.type !== 'Public' &&
|
|
74
|
-
args.options.type !== 'Private') {
|
|
75
|
-
return `${args.options.type} is not a valid CDN type. Allowed values are Public|Private`;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return true;
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
55
|
export default new SpoCdnOriginListCommand();
|
|
82
56
|
//# sourceMappingURL=cdn-origin-list.js.map
|
|
@@ -1,9 +1,5 @@
|
|
|
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 _SpoCdnOriginRemoveCommand_instances, _SpoCdnOriginRemoveCommand_initTelemetry, _SpoCdnOriginRemoveCommand_initOptions, _SpoCdnOriginRemoveCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import { cli } from '../../../../cli/cli.js';
|
|
8
4
|
import config from '../../../../config.js';
|
|
9
5
|
import request from '../../../../request.js';
|
|
@@ -11,6 +7,12 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
11
7
|
import { spo } from '../../../../utils/spo.js';
|
|
12
8
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
13
9
|
import commands from '../../commands.js';
|
|
10
|
+
export const options = z.strictObject({
|
|
11
|
+
...globalOptionsZod.shape,
|
|
12
|
+
type: z.enum(['Public', 'Private']).optional().alias('t'),
|
|
13
|
+
origin: z.string().alias('r'),
|
|
14
|
+
force: z.boolean().optional().alias('f')
|
|
15
|
+
});
|
|
14
16
|
class SpoCdnOriginRemoveCommand extends SpoCommand {
|
|
15
17
|
get name() {
|
|
16
18
|
return commands.CDN_ORIGIN_REMOVE;
|
|
@@ -18,12 +20,8 @@ class SpoCdnOriginRemoveCommand extends SpoCommand {
|
|
|
18
20
|
get description() {
|
|
19
21
|
return 'Removes CDN origin for the current SharePoint Online tenant';
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
_SpoCdnOriginRemoveCommand_instances.add(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoCdnOriginRemoveCommand_instances, "m", _SpoCdnOriginRemoveCommand_initTelemetry).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _SpoCdnOriginRemoveCommand_instances, "m", _SpoCdnOriginRemoveCommand_initOptions).call(this);
|
|
26
|
-
__classPrivateFieldGet(this, _SpoCdnOriginRemoveCommand_instances, "m", _SpoCdnOriginRemoveCommand_initValidators).call(this);
|
|
23
|
+
get schema() {
|
|
24
|
+
return options;
|
|
27
25
|
}
|
|
28
26
|
async commandAction(logger, args) {
|
|
29
27
|
const cdnTypeString = args.options.type || 'Public';
|
|
@@ -68,32 +66,5 @@ class SpoCdnOriginRemoveCommand extends SpoCommand {
|
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
|
-
_SpoCdnOriginRemoveCommand_instances = new WeakSet(), _SpoCdnOriginRemoveCommand_initTelemetry = function _SpoCdnOriginRemoveCommand_initTelemetry() {
|
|
72
|
-
this.telemetry.push((args) => {
|
|
73
|
-
Object.assign(this.telemetryProperties, {
|
|
74
|
-
cdnType: args.options.type || 'Public',
|
|
75
|
-
force: (!(!args.options.force)).toString()
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
}, _SpoCdnOriginRemoveCommand_initOptions = function _SpoCdnOriginRemoveCommand_initOptions() {
|
|
79
|
-
this.options.unshift({
|
|
80
|
-
option: '-t, --type [type]',
|
|
81
|
-
autocomplete: ['Public', 'Private']
|
|
82
|
-
}, {
|
|
83
|
-
option: '-r, --origin <origin>'
|
|
84
|
-
}, {
|
|
85
|
-
option: '-f, --force'
|
|
86
|
-
});
|
|
87
|
-
}, _SpoCdnOriginRemoveCommand_initValidators = function _SpoCdnOriginRemoveCommand_initValidators() {
|
|
88
|
-
this.validators.push(async (args) => {
|
|
89
|
-
if (args.options.type) {
|
|
90
|
-
if (args.options.type !== 'Public' &&
|
|
91
|
-
args.options.type !== 'Private') {
|
|
92
|
-
return `${args.options.type} is not a valid CDN type. Allowed values are Public|Private`;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return true;
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
69
|
export default new SpoCdnOriginRemoveCommand();
|
|
99
70
|
//# sourceMappingURL=cdn-origin-remove.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _SpoCdnPolicyListCommand_instances, _SpoCdnPolicyListCommand_initTelemetry, _SpoCdnPolicyListCommand_initOptions, _SpoCdnPolicyListCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import config from '../../../../config.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { spo } from '../../../../utils/spo.js';
|
|
10
6
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
11
7
|
import commands from '../../commands.js';
|
|
8
|
+
export const options = z.strictObject({
|
|
9
|
+
...globalOptionsZod.shape,
|
|
10
|
+
cdnType: z.enum(['Public', 'Private']).optional().alias('t')
|
|
11
|
+
});
|
|
12
12
|
class SpoCdnPolicyListCommand extends SpoCommand {
|
|
13
13
|
get name() {
|
|
14
14
|
return commands.CDN_POLICY_LIST;
|
|
@@ -16,12 +16,8 @@ class SpoCdnPolicyListCommand extends SpoCommand {
|
|
|
16
16
|
get description() {
|
|
17
17
|
return 'Lists CDN policies settings for the current SharePoint Online tenant';
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_SpoCdnPolicyListCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _SpoCdnPolicyListCommand_instances, "m", _SpoCdnPolicyListCommand_initTelemetry).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _SpoCdnPolicyListCommand_instances, "m", _SpoCdnPolicyListCommand_initOptions).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoCdnPolicyListCommand_instances, "m", _SpoCdnPolicyListCommand_initValidators).call(this);
|
|
19
|
+
get schema() {
|
|
20
|
+
return options;
|
|
25
21
|
}
|
|
26
22
|
async commandAction(logger, args) {
|
|
27
23
|
const cdnTypeString = args.options.cdnType || 'Public';
|
|
@@ -65,27 +61,5 @@ class SpoCdnPolicyListCommand extends SpoCommand {
|
|
|
65
61
|
}
|
|
66
62
|
}
|
|
67
63
|
}
|
|
68
|
-
_SpoCdnPolicyListCommand_instances = new WeakSet(), _SpoCdnPolicyListCommand_initTelemetry = function _SpoCdnPolicyListCommand_initTelemetry() {
|
|
69
|
-
this.telemetry.push((args) => {
|
|
70
|
-
Object.assign(this.telemetryProperties, {
|
|
71
|
-
cdnType: args.options.cdnType || 'Public'
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
}, _SpoCdnPolicyListCommand_initOptions = function _SpoCdnPolicyListCommand_initOptions() {
|
|
75
|
-
this.options.unshift({
|
|
76
|
-
option: '-t, --cdnType [cdnType]',
|
|
77
|
-
autocomplete: ['Public', 'Private']
|
|
78
|
-
});
|
|
79
|
-
}, _SpoCdnPolicyListCommand_initValidators = function _SpoCdnPolicyListCommand_initValidators() {
|
|
80
|
-
this.validators.push(async (args) => {
|
|
81
|
-
if (args.options.cdnType) {
|
|
82
|
-
if (args.options.cdnType !== 'Public' &&
|
|
83
|
-
args.options.cdnType !== 'Private') {
|
|
84
|
-
return `${args.options.cdnType} is not a valid CDN type. Allowed values are Public|Private`;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return true;
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
64
|
export default new SpoCdnPolicyListCommand();
|
|
91
65
|
//# sourceMappingURL=cdn-policy-list.js.map
|
|
@@ -1,15 +1,17 @@
|
|
|
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 _SpoCdnPolicySetCommand_instances, _SpoCdnPolicySetCommand_initTelemetry, _SpoCdnPolicySetCommand_initOptions, _SpoCdnPolicySetCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import config from '../../../../config.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
6
|
import { spo } from '../../../../utils/spo.js';
|
|
11
7
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
12
8
|
import commands from '../../commands.js';
|
|
9
|
+
export const options = z.strictObject({
|
|
10
|
+
...globalOptionsZod.shape,
|
|
11
|
+
cdnType: z.enum(['Public', 'Private']).optional().alias('t'),
|
|
12
|
+
policy: z.enum(['IncludeFileExtensions', 'ExcludeRestrictedSiteClassifications']).alias('p'),
|
|
13
|
+
value: z.string().alias('v')
|
|
14
|
+
});
|
|
13
15
|
class SpoCdnPolicySetCommand extends SpoCommand {
|
|
14
16
|
get name() {
|
|
15
17
|
return commands.CDN_POLICY_SET;
|
|
@@ -17,12 +19,8 @@ class SpoCdnPolicySetCommand extends SpoCommand {
|
|
|
17
19
|
get description() {
|
|
18
20
|
return 'Sets CDN policy value for the current SharePoint Online tenant';
|
|
19
21
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
_SpoCdnPolicySetCommand_instances.add(this);
|
|
23
|
-
__classPrivateFieldGet(this, _SpoCdnPolicySetCommand_instances, "m", _SpoCdnPolicySetCommand_initTelemetry).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoCdnPolicySetCommand_instances, "m", _SpoCdnPolicySetCommand_initOptions).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _SpoCdnPolicySetCommand_instances, "m", _SpoCdnPolicySetCommand_initValidators).call(this);
|
|
22
|
+
get schema() {
|
|
23
|
+
return options;
|
|
26
24
|
}
|
|
27
25
|
async commandAction(logger, args) {
|
|
28
26
|
const cdnTypeString = args.options.cdnType || 'Public';
|
|
@@ -62,38 +60,5 @@ class SpoCdnPolicySetCommand extends SpoCommand {
|
|
|
62
60
|
}
|
|
63
61
|
}
|
|
64
62
|
}
|
|
65
|
-
_SpoCdnPolicySetCommand_instances = new WeakSet(), _SpoCdnPolicySetCommand_initTelemetry = function _SpoCdnPolicySetCommand_initTelemetry() {
|
|
66
|
-
this.telemetry.push((args) => {
|
|
67
|
-
Object.assign(this.telemetryProperties, {
|
|
68
|
-
cdnType: args.options.cdnType || 'Public',
|
|
69
|
-
policy: args.options.policy
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
}, _SpoCdnPolicySetCommand_initOptions = function _SpoCdnPolicySetCommand_initOptions() {
|
|
73
|
-
this.options.unshift({
|
|
74
|
-
option: '-t, --cdnType [cdnType]',
|
|
75
|
-
autocomplete: ['Public', 'Private']
|
|
76
|
-
}, {
|
|
77
|
-
option: '-p, --policy <policy>',
|
|
78
|
-
autocomplete: ['IncludeFileExtensions', 'ExcludeRestrictedSiteClassifications']
|
|
79
|
-
}, {
|
|
80
|
-
option: '-v, --value <value>'
|
|
81
|
-
});
|
|
82
|
-
}, _SpoCdnPolicySetCommand_initValidators = function _SpoCdnPolicySetCommand_initValidators() {
|
|
83
|
-
this.validators.push(async (args) => {
|
|
84
|
-
if (args.options.cdnType) {
|
|
85
|
-
if (args.options.cdnType !== 'Public' &&
|
|
86
|
-
args.options.cdnType !== 'Private') {
|
|
87
|
-
return `${args.options.cdnType} is not a valid CDN type. Allowed values are Public|Private`;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
if (!args.options.policy ||
|
|
91
|
-
(args.options.policy !== 'IncludeFileExtensions' &&
|
|
92
|
-
args.options.policy !== 'ExcludeRestrictedSiteClassifications')) {
|
|
93
|
-
return `${args.options.policy} is not a valid CDN policy. Allowed values are IncludeFileExtensions|ExcludeRestrictedSiteClassifications`;
|
|
94
|
-
}
|
|
95
|
-
return true;
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
63
|
export default new SpoCdnPolicySetCommand();
|
|
99
64
|
//# sourceMappingURL=cdn-policy-set.js.map
|
|
@@ -1,14 +1,16 @@
|
|
|
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 _SpoCdnSetCommand_instances, _SpoCdnSetCommand_initTelemetry, _SpoCdnSetCommand_initOptions, _SpoCdnSetCommand_initTypes, _SpoCdnSetCommand_initValidators;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import config from '../../../../config.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { spo } from '../../../../utils/spo.js';
|
|
10
6
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
11
7
|
import commands from '../../commands.js';
|
|
8
|
+
export const options = z.strictObject({
|
|
9
|
+
...globalOptionsZod.shape,
|
|
10
|
+
type: z.enum(['Public', 'Private', 'Both']).optional().alias('t'),
|
|
11
|
+
enabled: z.boolean().alias('e'),
|
|
12
|
+
noDefaultOrigins: z.boolean().optional()
|
|
13
|
+
});
|
|
12
14
|
class SpoCdnSetCommand extends SpoCommand {
|
|
13
15
|
get name() {
|
|
14
16
|
return commands.CDN_SET;
|
|
@@ -16,14 +18,8 @@ class SpoCdnSetCommand extends SpoCommand {
|
|
|
16
18
|
get description() {
|
|
17
19
|
return 'Enables or disables the specified Microsoft 365 CDN';
|
|
18
20
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_SpoCdnSetCommand_instances.add(this);
|
|
22
|
-
this.validTypes = ['Public', 'Private', 'Both'];
|
|
23
|
-
__classPrivateFieldGet(this, _SpoCdnSetCommand_instances, "m", _SpoCdnSetCommand_initTelemetry).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _SpoCdnSetCommand_instances, "m", _SpoCdnSetCommand_initOptions).call(this);
|
|
25
|
-
__classPrivateFieldGet(this, _SpoCdnSetCommand_instances, "m", _SpoCdnSetCommand_initTypes).call(this);
|
|
26
|
-
__classPrivateFieldGet(this, _SpoCdnSetCommand_instances, "m", _SpoCdnSetCommand_initValidators).call(this);
|
|
21
|
+
get schema() {
|
|
22
|
+
return options;
|
|
27
23
|
}
|
|
28
24
|
async commandAction(logger, args) {
|
|
29
25
|
const cdnTypeString = args.options.type || 'Public';
|
|
@@ -99,37 +95,5 @@ class SpoCdnSetCommand extends SpoCommand {
|
|
|
99
95
|
}
|
|
100
96
|
}
|
|
101
97
|
}
|
|
102
|
-
_SpoCdnSetCommand_instances = new WeakSet(), _SpoCdnSetCommand_initTelemetry = function _SpoCdnSetCommand_initTelemetry() {
|
|
103
|
-
this.telemetry.push((args) => {
|
|
104
|
-
Object.assign(this.telemetryProperties, {
|
|
105
|
-
cdnType: args.options.type || 'Public',
|
|
106
|
-
enabled: args.options.enabled,
|
|
107
|
-
noDefaultOrigins: !!args.options.noDefaultOrigins
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
}, _SpoCdnSetCommand_initOptions = function _SpoCdnSetCommand_initOptions() {
|
|
111
|
-
this.options.unshift({
|
|
112
|
-
option: '-e, --enabled <enabled>',
|
|
113
|
-
autocomplete: ['true', 'false']
|
|
114
|
-
}, {
|
|
115
|
-
option: '-t, --type [type]',
|
|
116
|
-
autocomplete: this.validTypes
|
|
117
|
-
}, {
|
|
118
|
-
option: '--noDefaultOrigins'
|
|
119
|
-
});
|
|
120
|
-
}, _SpoCdnSetCommand_initTypes = function _SpoCdnSetCommand_initTypes() {
|
|
121
|
-
this.types.boolean.push('enabled', 'noDefaultOrigins');
|
|
122
|
-
this.types.string.push('type');
|
|
123
|
-
}, _SpoCdnSetCommand_initValidators = function _SpoCdnSetCommand_initValidators() {
|
|
124
|
-
this.validators.push(async (args) => {
|
|
125
|
-
if (args.options.type) {
|
|
126
|
-
if (args.options.type !== 'Public' && args.options.type !== 'Both' &&
|
|
127
|
-
args.options.type !== 'Private') {
|
|
128
|
-
return `${args.options.type} is not a valid CDN type. Allowed values are ${this.validTypes.join(', ')}.`;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return true;
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
98
|
export default new SpoCdnSetCommand();
|
|
135
99
|
//# sourceMappingURL=cdn-set.js.map
|