@pnp/cli-microsoft365 6.0.0-beta.e031afa → 6.0.0-beta.e1e0a1b

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 (28) hide show
  1. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -12
  2. package/dist/m365/planner/commands/bucket/bucket-get.js +4 -12
  3. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -12
  4. package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -12
  5. package/dist/m365/planner/commands/bucket/bucket-set.js +4 -12
  6. package/dist/m365/planner/commands/task/task-add.js +4 -10
  7. package/dist/m365/planner/commands/task/task-get.js +4 -10
  8. package/dist/m365/planner/commands/task/task-list.js +4 -12
  9. package/dist/m365/planner/commands/task/task-set.js +4 -10
  10. package/dist/m365/spo/commands/site/site-list.js +6 -17
  11. package/dist/m365/spo/commands.js +0 -3
  12. package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
  13. package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
  14. package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
  15. package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
  16. package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
  17. package/docs/docs/cmd/planner/task/task-add.md +0 -3
  18. package/docs/docs/cmd/planner/task/task-get.md +0 -3
  19. package/docs/docs/cmd/planner/task/task-list.md +0 -3
  20. package/docs/docs/cmd/planner/task/task-set.md +0 -3
  21. package/docs/docs/cmd/spo/site/site-list.md +6 -6
  22. package/package.json +1 -1
  23. package/dist/m365/spo/commands/site/site-classic-add.js +0 -333
  24. package/dist/m365/spo/commands/site/site-classic-list.js +0 -99
  25. package/dist/m365/spo/commands/site/site-classic-set.js +0 -359
  26. package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
  27. package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
  28. package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
@@ -17,7 +17,6 @@ class PlannerBucketAddCommand extends GraphCommand_1.default {
17
17
  getTelemetryProperties(args) {
18
18
  const telemetryProps = super.getTelemetryProperties(args);
19
19
  telemetryProps.planId = typeof args.options.planId !== 'undefined';
20
- telemetryProps.planName = typeof args.options.planName !== 'undefined';
21
20
  telemetryProps.planTitle = typeof args.options.planTitle !== 'undefined';
22
21
  telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
23
22
  telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
@@ -28,10 +27,6 @@ class PlannerBucketAddCommand extends GraphCommand_1.default {
28
27
  return ['id', 'name', 'planId', 'orderHint'];
29
28
  }
30
29
  commandAction(logger, args, cb) {
31
- if (args.options.planName) {
32
- args.options.planTitle = args.options.planName;
33
- this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
34
- }
35
30
  if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
36
31
  this.handleError('This command does not support application permissions.', logger, cb);
37
32
  return;
@@ -83,9 +78,6 @@ class PlannerBucketAddCommand extends GraphCommand_1.default {
83
78
  {
84
79
  option: "--planId [planId]"
85
80
  },
86
- {
87
- option: "--planName [planName]"
88
- },
89
81
  {
90
82
  option: "--planTitle [planTitle]"
91
83
  },
@@ -103,16 +95,16 @@ class PlannerBucketAddCommand extends GraphCommand_1.default {
103
95
  return options.concat(parentOptions);
104
96
  }
105
97
  validate(args) {
106
- if (!args.options.planId && !args.options.planName && !args.options.planTitle) {
98
+ if (!args.options.planId && !args.options.planTitle) {
107
99
  return 'Specify either planId or planTitle';
108
100
  }
109
- if (args.options.planId && (args.options.planName || args.options.planTitle)) {
101
+ if (args.options.planId && args.options.planTitle) {
110
102
  return 'Specify either planId or planTitle but not both';
111
103
  }
112
- if ((args.options.planName || args.options.planTitle) && !args.options.ownerGroupId && !args.options.ownerGroupName) {
104
+ if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
113
105
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
114
106
  }
115
- if ((args.options.planName || args.options.planTitle) && args.options.ownerGroupId && args.options.ownerGroupName) {
107
+ if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
116
108
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
117
109
  }
118
110
  if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
@@ -28,17 +28,12 @@ class PlannerBucketGetCommand extends GraphCommand_1.default {
28
28
  telemetryProps.id = typeof args.options.id !== 'undefined';
29
29
  telemetryProps.name = typeof args.options.name !== 'undefined';
30
30
  telemetryProps.planId = typeof args.options.planId !== 'undefined';
31
- telemetryProps.planName = typeof args.options.planName !== 'undefined';
32
31
  telemetryProps.planTitle = typeof args.options.planTitle !== 'undefined';
33
32
  telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
34
33
  telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
35
34
  return telemetryProps;
36
35
  }
37
36
  commandAction(logger, args, cb) {
38
- if (args.options.planName) {
39
- args.options.planTitle = args.options.planName;
40
- this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
41
- }
42
37
  if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
43
38
  this.handleError('This command does not support application permissions.', logger, cb);
44
39
  return;
@@ -121,9 +116,6 @@ class PlannerBucketGetCommand extends GraphCommand_1.default {
121
116
  {
122
117
  option: '--planId [planId]'
123
118
  },
124
- {
125
- option: '--planName [planName]'
126
- },
127
119
  {
128
120
  option: "--planTitle [planTitle]"
129
121
  },
@@ -139,7 +131,7 @@ class PlannerBucketGetCommand extends GraphCommand_1.default {
139
131
  }
140
132
  validate(args) {
141
133
  if (args.options.id) {
142
- if (args.options.planId || args.options.planName || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
134
+ if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
143
135
  return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
144
136
  }
145
137
  if (args.options.name) {
@@ -147,13 +139,13 @@ class PlannerBucketGetCommand extends GraphCommand_1.default {
147
139
  }
148
140
  }
149
141
  if (args.options.name) {
150
- if (!args.options.planId && !args.options.planName && !args.options.planTitle) {
142
+ if (!args.options.planId && !args.options.planTitle) {
151
143
  return 'Specify either planId or planTitle when using name';
152
144
  }
153
- if (args.options.planId && (args.options.planName || args.options.planTitle)) {
145
+ if (args.options.planId && args.options.planTitle) {
154
146
  return 'Specify either planId or planTitle when using name but not both';
155
147
  }
156
- if (args.options.planName || args.options.planTitle) {
148
+ if (args.options.planTitle) {
157
149
  if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
158
150
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
159
151
  }
@@ -16,7 +16,6 @@ class PlannerBucketListCommand extends GraphCommand_1.default {
16
16
  getTelemetryProperties(args) {
17
17
  const telemetryProps = super.getTelemetryProperties(args);
18
18
  telemetryProps.planId = typeof args.options.planId !== 'undefined';
19
- telemetryProps.planName = typeof args.options.planName !== 'undefined';
20
19
  telemetryProps.planTitle = typeof args.options.planTitle !== 'undefined';
21
20
  telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
22
21
  telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
@@ -26,10 +25,6 @@ class PlannerBucketListCommand extends GraphCommand_1.default {
26
25
  return ['id', 'name', 'planId', 'orderHint'];
27
26
  }
28
27
  commandAction(logger, args, cb) {
29
- if (args.options.planName) {
30
- args.options.planTitle = args.options.planName;
31
- this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
32
- }
33
28
  if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
34
29
  this.handleError('This command does not support application permissions.', logger, cb);
35
30
  return;
@@ -64,9 +59,6 @@ class PlannerBucketListCommand extends GraphCommand_1.default {
64
59
  {
65
60
  option: '--planId [planId]'
66
61
  },
67
- {
68
- option: '--planName [planName]'
69
- },
70
62
  {
71
63
  option: "--planTitle [planTitle]"
72
64
  },
@@ -81,16 +73,16 @@ class PlannerBucketListCommand extends GraphCommand_1.default {
81
73
  return options.concat(parentOptions);
82
74
  }
83
75
  validate(args) {
84
- if (!args.options.planId && !args.options.planName && !args.options.planTitle) {
76
+ if (!args.options.planId && !args.options.planTitle) {
85
77
  return 'Specify either planId or planTitle';
86
78
  }
87
- if (args.options.planId && (args.options.planName || args.options.planTitle)) {
79
+ if (args.options.planId && args.options.planTitle) {
88
80
  return 'Specify either planId or planTitle but not both';
89
81
  }
90
- if ((args.options.planName || args.options.planTitle) && !args.options.ownerGroupId && !args.options.ownerGroupName) {
82
+ if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
91
83
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
92
84
  }
93
- if ((args.options.planName || args.options.planTitle) && args.options.ownerGroupId && args.options.ownerGroupName) {
85
+ if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
94
86
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
95
87
  }
96
88
  if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
@@ -20,7 +20,6 @@ class PlannerBucketRemoveCommand extends GraphCommand_1.default {
20
20
  telemetryProps.id = typeof args.options.id !== 'undefined';
21
21
  telemetryProps.name = typeof args.options.name !== 'undefined';
22
22
  telemetryProps.planId = typeof args.options.planId !== 'undefined';
23
- telemetryProps.planName = typeof args.options.planName !== 'undefined';
24
23
  telemetryProps.planTitle = typeof args.options.planTitle !== 'undefined';
25
24
  telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
26
25
  telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
@@ -28,10 +27,6 @@ class PlannerBucketRemoveCommand extends GraphCommand_1.default {
28
27
  return telemetryProps;
29
28
  }
30
29
  commandAction(logger, args, cb) {
31
- if (args.options.planName) {
32
- args.options.planTitle = args.options.planName;
33
- this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
34
- }
35
30
  if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
36
31
  this.handleError('This command does not support application permissions.', logger, cb);
37
32
  return;
@@ -135,9 +130,6 @@ class PlannerBucketRemoveCommand extends GraphCommand_1.default {
135
130
  {
136
131
  option: '--planId [planId]'
137
132
  },
138
- {
139
- option: '--planName [planName]'
140
- },
141
133
  {
142
134
  option: "--planTitle [planTitle]"
143
135
  },
@@ -161,18 +153,18 @@ class PlannerBucketRemoveCommand extends GraphCommand_1.default {
161
153
  }
162
154
  validate(args) {
163
155
  if (args.options.id) {
164
- if (args.options.planId || args.options.planName || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
156
+ if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
165
157
  return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
166
158
  }
167
159
  }
168
160
  else {
169
- if (!args.options.planId && !args.options.planName && !args.options.planTitle) {
161
+ if (!args.options.planId && !args.options.planTitle) {
170
162
  return 'Specify either planId or planTitle when using name';
171
163
  }
172
- if (args.options.planId && (args.options.planName || args.options.planTitle)) {
164
+ if (args.options.planId && args.options.planTitle) {
173
165
  return 'Specify either planId or planTitle when using name but not both';
174
166
  }
175
- if (args.options.planName || args.options.planTitle) {
167
+ if (args.options.planTitle) {
176
168
  if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
177
169
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
178
170
  }
@@ -19,7 +19,6 @@ class PlannerBucketSetCommand extends GraphCommand_1.default {
19
19
  telemetryProps.id = typeof args.options.id !== 'undefined';
20
20
  telemetryProps.name = typeof args.options.name !== 'undefined';
21
21
  telemetryProps.planId = typeof args.options.planId !== 'undefined';
22
- telemetryProps.planName = typeof args.options.planName !== 'undefined';
23
22
  telemetryProps.planTitle = typeof args.options.planTitle !== 'undefined';
24
23
  telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
25
24
  telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
@@ -28,10 +27,6 @@ class PlannerBucketSetCommand extends GraphCommand_1.default {
28
27
  return telemetryProps;
29
28
  }
30
29
  commandAction(logger, args, cb) {
31
- if (args.options.planName) {
32
- args.options.planTitle = args.options.planName;
33
- this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
34
- }
35
30
  if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
36
31
  this.handleError('This command does not support application permissions.', logger, cb);
37
32
  return;
@@ -123,9 +118,6 @@ class PlannerBucketSetCommand extends GraphCommand_1.default {
123
118
  {
124
119
  option: '--planId [planId]'
125
120
  },
126
- {
127
- option: '--planName [planName]'
128
- },
129
121
  {
130
122
  option: "--planTitle [planTitle]"
131
123
  },
@@ -152,18 +144,18 @@ class PlannerBucketSetCommand extends GraphCommand_1.default {
152
144
  }
153
145
  validate(args) {
154
146
  if (args.options.id) {
155
- if (args.options.planId || args.options.planName || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
147
+ if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
156
148
  return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
157
149
  }
158
150
  }
159
151
  if (args.options.name) {
160
- if (!args.options.planId && !args.options.planName && !args.options.planTitle) {
152
+ if (!args.options.planId && !args.options.planTitle) {
161
153
  return 'Specify either planId or planTitle when using name';
162
154
  }
163
- if (args.options.planId && (args.options.planName || args.options.planTitle)) {
155
+ if (args.options.planId && args.options.planTitle) {
164
156
  return 'Specify either planId or planTitle when using name but not both';
165
157
  }
166
- if (args.options.planName || args.options.planTitle) {
158
+ if (args.options.planTitle) {
167
159
  if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
168
160
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
169
161
  }
@@ -23,7 +23,6 @@ class PlannerTaskAddCommand extends GraphCommand_1.default {
23
23
  getTelemetryProperties(args) {
24
24
  const telemetryProps = super.getTelemetryProperties(args);
25
25
  telemetryProps.planId = typeof args.options.planId !== 'undefined';
26
- telemetryProps.planName = typeof args.options.planName !== 'undefined';
27
26
  telemetryProps.planTitle = typeof args.options.planTitle !== 'undefined';
28
27
  telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
29
28
  telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
@@ -43,10 +42,6 @@ class PlannerTaskAddCommand extends GraphCommand_1.default {
43
42
  return telemetryProps;
44
43
  }
45
44
  commandAction(logger, args, cb) {
46
- if (args.options.planName) {
47
- args.options.planTitle = args.options.planName;
48
- this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
49
- }
50
45
  if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
51
46
  this.handleError('This command does not support application permissions.', logger, cb);
52
47
  return;
@@ -227,7 +222,6 @@ class PlannerTaskAddCommand extends GraphCommand_1.default {
227
222
  const options = [
228
223
  { option: '-t, --title <title>' },
229
224
  { option: '--planId [planId]' },
230
- { option: '--planName [planName]' },
231
225
  { option: '--planTitle [planTitle]' },
232
226
  { option: '--ownerGroupId [ownerGroupId]' },
233
227
  { option: '--ownerGroupName [ownerGroupName]' },
@@ -255,16 +249,16 @@ class PlannerTaskAddCommand extends GraphCommand_1.default {
255
249
  return options.concat(parentOptions);
256
250
  }
257
251
  validate(args) {
258
- if (!args.options.planId && !args.options.planName && !args.options.planTitle) {
252
+ if (!args.options.planId && !args.options.planTitle) {
259
253
  return 'Specify either planId or planTitle';
260
254
  }
261
- if (args.options.planId && (args.options.planName || args.options.planTitle)) {
255
+ if (args.options.planId && args.options.planTitle) {
262
256
  return 'Specify either planId or planTitle but not both';
263
257
  }
264
- if ((args.options.planName || args.options.planTitle) && !args.options.ownerGroupId && !args.options.ownerGroupName) {
258
+ if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
265
259
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
266
260
  }
267
- if ((args.options.planName || args.options.planTitle) && args.options.ownerGroupId && args.options.ownerGroupName) {
261
+ if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
268
262
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
269
263
  }
270
264
  if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
@@ -21,16 +21,11 @@ class PlannerTaskGetCommand extends GraphCommand_1.default {
21
21
  telemetryProps.bucketId = typeof args.options.bucketId !== 'undefined';
22
22
  telemetryProps.bucketName = typeof args.options.bucketName !== 'undefined';
23
23
  telemetryProps.planId = typeof args.options.planId !== 'undefined';
24
- telemetryProps.planName = typeof args.options.planName !== 'undefined';
25
24
  telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
26
25
  telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
27
26
  return telemetryProps;
28
27
  }
29
28
  commandAction(logger, args, cb) {
30
- if (args.options.planName) {
31
- args.options.planTitle = args.options.planName;
32
- this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
33
- }
34
29
  if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
35
30
  this.handleError('This command does not support application permissions.', logger, cb);
36
31
  return;
@@ -154,7 +149,6 @@ class PlannerTaskGetCommand extends GraphCommand_1.default {
154
149
  { option: '--bucketId [bucketId]' },
155
150
  { option: '--bucketName [bucketName]' },
156
151
  { option: '--planId [planId]' },
157
- { option: '--planName [planName]' },
158
152
  { option: '--planTitle [planTitle]' },
159
153
  { option: '--ownerGroupId [ownerGroupId]' },
160
154
  { option: '--ownerGroupName [ownerGroupName]' }
@@ -169,16 +163,16 @@ class PlannerTaskGetCommand extends GraphCommand_1.default {
169
163
  if (args.options.title && args.options.bucketId && args.options.bucketName) {
170
164
  return 'Specify either bucketId or bucketName when using title but not both';
171
165
  }
172
- if (args.options.bucketName && !args.options.planId && !args.options.planName && !args.options.planTitle) {
166
+ if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
173
167
  return 'Specify either planId or planTitle when using bucketName';
174
168
  }
175
- if (args.options.bucketName && args.options.planId && (args.options.planName || args.options.planTitle)) {
169
+ if (args.options.bucketName && args.options.planId && args.options.planTitle) {
176
170
  return 'Specify either planId or planTitle when using bucketName but not both';
177
171
  }
178
- if ((args.options.planName || args.options.planTitle) && !args.options.ownerGroupId && !args.options.ownerGroupName) {
172
+ if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
179
173
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
180
174
  }
181
- if ((args.options.planName || args.options.planTitle) && args.options.ownerGroupId && args.options.ownerGroupName) {
175
+ if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
182
176
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
183
177
  }
184
178
  if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
@@ -19,7 +19,6 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
19
19
  telemetryProps.bucketId = typeof args.options.bucketId !== 'undefined';
20
20
  telemetryProps.bucketName = typeof args.options.bucketName !== 'undefined';
21
21
  telemetryProps.planId = typeof args.options.planId !== 'undefined';
22
- telemetryProps.planName = typeof args.options.planName !== 'undefined';
23
22
  telemetryProps.planTitle = typeof args.options.planTitle !== 'undefined';
24
23
  telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
25
24
  telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
@@ -29,10 +28,6 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
29
28
  return ['id', 'title', 'startDateTime', 'dueDateTime', 'completedDateTime'];
30
29
  }
31
30
  commandAction(logger, args, cb) {
32
- if (args.options.planName) {
33
- args.options.planTitle = args.options.planName;
34
- this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
35
- }
36
31
  if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
37
32
  this.handleError('This command does not support application permissions.', logger, cb);
38
33
  return;
@@ -150,9 +145,6 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
150
145
  {
151
146
  option: '--planId [planId]'
152
147
  },
153
- {
154
- option: '--planName [planName]'
155
- },
156
148
  {
157
149
  option: '--planTitle [planTitle]'
158
150
  },
@@ -170,16 +162,16 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
170
162
  if (args.options.bucketId && args.options.bucketName) {
171
163
  return 'To retrieve tasks from a bucket, specify bucketId or bucketName, but not both';
172
164
  }
173
- if (args.options.bucketName && !args.options.planId && !args.options.planName && !args.options.planTitle) {
165
+ if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
174
166
  return 'Specify either planId or planTitle when using bucketName';
175
167
  }
176
- if (args.options.planId && (args.options.planName || args.options.planTitle)) {
168
+ if (args.options.planId && args.options.planTitle) {
177
169
  return 'Specify either planId or planTitle but not both';
178
170
  }
179
- if ((args.options.planName || args.options.planTitle) && !args.options.ownerGroupId && !args.options.ownerGroupName) {
171
+ if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
180
172
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
181
173
  }
182
- if ((args.options.planName || args.options.planTitle) && args.options.ownerGroupId && args.options.ownerGroupName) {
174
+ if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
183
175
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
184
176
  }
185
177
  if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
@@ -23,7 +23,6 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
23
23
  const telemetryProps = super.getTelemetryProperties(args);
24
24
  telemetryProps.title = typeof args.options.title !== 'undefined';
25
25
  telemetryProps.planId = typeof args.options.planId !== 'undefined';
26
- telemetryProps.planName = typeof args.options.planName !== 'undefined';
27
26
  telemetryProps.planTitle = typeof args.options.planTitle !== 'undefined';
28
27
  telemetryProps.ownerGroupId = typeof args.options.ownerGroupId !== 'undefined';
29
28
  telemetryProps.ownerGroupName = typeof args.options.ownerGroupName !== 'undefined';
@@ -42,10 +41,6 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
42
41
  return telemetryProps;
43
42
  }
44
43
  commandAction(logger, args, cb) {
45
- if (args.options.planName) {
46
- args.options.planTitle = args.options.planName;
47
- this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
48
- }
49
44
  if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
50
45
  this.handleError('This command does not support application permissions.', logger, cb);
51
46
  return;
@@ -269,7 +264,6 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
269
264
  { option: '-i, --id <id>' },
270
265
  { option: '-t, --title [title]' },
271
266
  { option: '--planId [planId]' },
272
- { option: '--planName [planName]' },
273
267
  { option: '--planTitle [planTitle]' },
274
268
  { option: '--ownerGroupId [ownerGroupId]' },
275
269
  { option: '--ownerGroupName [ownerGroupName]' },
@@ -293,16 +287,16 @@ class PlannerTaskSetCommand extends GraphCommand_1.default {
293
287
  if (args.options.bucketId && args.options.bucketName) {
294
288
  return 'Specify either bucketId or bucketName but not both';
295
289
  }
296
- if (args.options.bucketName && !args.options.planId && !args.options.planName && !args.options.planTitle) {
290
+ if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
297
291
  return 'Specify either planId or planTitle when using bucketName';
298
292
  }
299
- if (args.options.bucketName && args.options.planId && (args.options.planName || args.options.planTitle)) {
293
+ if (args.options.bucketName && args.options.planId && args.options.planTitle) {
300
294
  return 'Specify either planId or planTitle when using bucketName but not both';
301
295
  }
302
- if ((args.options.planName || args.options.planTitle) && !args.options.ownerGroupId && !args.options.ownerGroupName) {
296
+ if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
303
297
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
304
298
  }
305
- if ((args.options.planName || args.options.planTitle) && args.options.ownerGroupId && args.options.ownerGroupName) {
299
+ if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
306
300
  return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
307
301
  }
308
302
  if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
@@ -18,7 +18,7 @@ class SpoSiteListCommand extends SpoCommand_1.default {
18
18
  telemetryProps.filter = (!(!args.options.filter)).toString();
19
19
  telemetryProps.includeOneDriveSites = typeof args.options.includeOneDriveSites !== 'undefined';
20
20
  telemetryProps.deleted = typeof args.options.deleted !== 'undefined';
21
- telemetryProps.siteType = args.options.type || 'TeamSite';
21
+ telemetryProps.siteType = args.options.type;
22
22
  return telemetryProps;
23
23
  }
24
24
  defaultProperties() {
@@ -84,11 +84,6 @@ class SpoSiteListCommand extends SpoCommand_1.default {
84
84
  }, err => reject(err));
85
85
  });
86
86
  }
87
- /*
88
- The type property currently defaults to Teamsite.
89
- It makes more sense to default to All. Certainly after adding the 'includeOneDriveSites' option.
90
- Changing this will be a breaking change. We'll remove the default the next major version.
91
- */
92
87
  getWebTemplateId(options) {
93
88
  if (options.webTemplate) {
94
89
  return options.webTemplate;
@@ -96,11 +91,7 @@ class SpoSiteListCommand extends SpoCommand_1.default {
96
91
  if (options.includeOneDriveSites) {
97
92
  return '';
98
93
  }
99
- let siteType = options.type;
100
- if (!siteType) {
101
- siteType = 'TeamSite';
102
- }
103
- switch (siteType) {
94
+ switch (options.type) {
104
95
  case "TeamSite":
105
96
  return 'GROUP#0';
106
97
  case "CommunicationSite":
@@ -113,9 +104,7 @@ class SpoSiteListCommand extends SpoCommand_1.default {
113
104
  const options = [
114
105
  {
115
106
  option: '-t, --type [type]',
116
- // To not introduce a breaking change, 'All' has been added.
117
- // You should use all when using '--includeOneDriveSites'
118
- autocomplete: ['TeamSite', 'CommunicationSite', 'All']
107
+ autocomplete: ['TeamSite', 'CommunicationSite']
119
108
  },
120
109
  {
121
110
  option: '--webTemplate [webTemplate]'
@@ -137,14 +126,14 @@ class SpoSiteListCommand extends SpoCommand_1.default {
137
126
  if (args.options.type && args.options.webTemplate) {
138
127
  return 'Specify either type or webTemplate, but not both';
139
128
  }
140
- const typeValues = ['TeamSite', 'CommunicationSite', 'All'];
129
+ const typeValues = ['TeamSite', 'CommunicationSite'];
141
130
  if (args.options.type &&
142
131
  typeValues.indexOf(args.options.type) < 0) {
143
132
  return `${args.options.type} is not a valid value for the type option. Allowed values are ${typeValues.join('|')}`;
144
133
  }
145
134
  if (args.options.includeOneDriveSites
146
- && (!args.options.type || args.options.type !== 'All')) {
147
- return 'When using includeOneDriveSites, specify All as value for type';
135
+ && (args.options.type || args.options.webTemplate)) {
136
+ return 'When using includeOneDriveSites, don\'t specify the type or webTemplate options';
148
137
  }
149
138
  return true;
150
139
  }
@@ -189,9 +189,6 @@ exports.default = {
189
189
  SITE_APPPERMISSION_LIST: `${prefix} site apppermission list`,
190
190
  SITE_APPPERMISSION_REMOVE: `${prefix} site apppermission remove`,
191
191
  SITE_APPPERMISSION_SET: `${prefix} site apppermission set`,
192
- SITE_CLASSIC_ADD: `${prefix} site classic add`,
193
- SITE_CLASSIC_LIST: `${prefix} site classic list`,
194
- SITE_CLASSIC_SET: `${prefix} site classic set`,
195
192
  SITE_COMMSITE_ENABLE: `${prefix} site commsite enable`,
196
193
  SITE_ENSURE: `${prefix} site ensure`,
197
194
  SITE_GET: `${prefix} site get`,
@@ -19,9 +19,6 @@ m365 planner bucket add [options]
19
19
  `--planTitle [planTitle]`
20
20
  : Title of the plan to which the bucket belongs. Specify either `planId` or `planTitle` but not both.
21
21
 
22
- `--planName [planName]`
23
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
24
-
25
22
  `--ownerGroupId [ownerGroupId]`
26
23
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
27
24
 
@@ -22,9 +22,6 @@ m365 planner bucket get [options]
22
22
  `--planTitle [planTitle]`
23
23
  : Title of the plan to which the bucket belongs. Specify either `planId` or `planTitle` when using `name`.
24
24
 
25
- `--planName [planName]`
26
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
27
-
28
25
  `--ownerGroupId [ownerGroupId]`
29
26
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
30
27
 
@@ -16,9 +16,6 @@ m365 planner bucket list [options]
16
16
  `--planTitle [planTitle]`
17
17
  : Title of the plan to list the buckets of. Specify either `planId` or `planTitle` but not both.
18
18
 
19
- `--planName [planName]`
20
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
21
-
22
19
  `--ownerGroupId [ownerGroupId]`
23
20
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
24
21
 
@@ -22,9 +22,6 @@ m365 planner bucket remove [options]
22
22
  `--planTitle [planTitle]`
23
23
  : Title of the plan to which the bucket to remove belongs. Specify either `planId` or `planTitle` when using `name`.
24
24
 
25
- `--planName [planName]`
26
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
27
-
28
25
  `--ownerGroupId [ownerGroupId]`
29
26
  : ID of the group to which the plan belongs. Specify either `ownerGroupId` or `ownerGroupName` when using `planTitle`.
30
27
 
@@ -22,9 +22,6 @@ m365 planner bucket set [options]
22
22
  `--planTitle [planTitle]`
23
23
  : Title of the plan to update the bucket of. Specify either `planId` or `planTitle` when using `name`. Always use in combination with either `ownerGroupId` or `ownerGroupName`.
24
24
 
25
- `--planName [planName]`
26
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
27
-
28
25
  `--ownerGroupId [ownerGroupId]`
29
26
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
30
27
 
@@ -19,9 +19,6 @@ m365 planner task add [options]
19
19
  `--planTitle [planTitle]`
20
20
  : Title of the plan to which the task belongs. Specify either `planId` or `planTitle` but not both.
21
21
 
22
- `--planName [planName]`
23
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
24
-
25
22
  `--ownerGroupId [ownerGroupId]`
26
23
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
27
24
 
@@ -37,9 +37,6 @@ m365 planner task details get [options]
37
37
  `--planTitle [planTitle]`
38
38
  : Title of the plan to which the task belongs. Specify `planId` or `planTitle` when using `bucketName`.
39
39
 
40
- `--planName [planName]`
41
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
42
-
43
40
  `--ownerGroupId [ownerGroupId]`
44
41
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
45
42
 
@@ -22,9 +22,6 @@ m365 planner task list [options]
22
22
  `--planTitle [planTitle]`
23
23
  : Title of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planTitle` but not both. Always use in combination with either `ownerGroupId` or `ownerGroupName`. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
24
24
 
25
- `--planName [planName]`
26
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
27
-
28
25
  `--ownerGroupId [ownerGroupId]`
29
26
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
30
27
 
@@ -28,9 +28,6 @@ m365 planner task set [options]
28
28
  `--planTitle [planTitle]`
29
29
  : Title of the plan to which the bucket belongs to. Specify either `planId` or `planTitle` when using `bucketName`.
30
30
 
31
- `--planName [planName]`
32
- : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
33
-
34
31
  `--ownerGroupId [ownerGroupId]`
35
32
  : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
36
33