@pnp/cli-microsoft365 6.5.0 → 6.6.0-beta.2339ae2

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/Dockerfile CHANGED
@@ -43,6 +43,7 @@ RUN bash -c 'echo "export PATH=$PATH:/home/cli-microsoft365/.npm-global/bin:/hom
43
43
  && bash -c 'echo "export CLIMICROSOFT365_ENV=\"docker\"" >> ~/.bash_profile' \
44
44
  && bash -c 'npm i -g @pnp/cli-microsoft365@${CLI_VERSION} --production --quiet --no-progress' \
45
45
  && bash -c 'echo "source /etc/profile.d/bash_completion.sh" >> ~/.bash_profile' \
46
+ && bash -c 'echo ". .bashrc" >> ~/.bash_profile' \
46
47
  && bash -c 'npm cache clean --force' \
47
48
  && bash -c 'm365 cli completion sh setup' \
48
49
  && pwsh -c 'm365 cli completion pwsh setup --profile $profile'
@@ -0,0 +1,261 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
+ };
16
+ var _PpTenantSettingsSetCommand_instances, _PpTenantSettingsSetCommand_initTelemetry, _PpTenantSettingsSetCommand_initOptions, _PpTenantSettingsSetCommand_initTypes, _PpTenantSettingsSetCommand_initValidators;
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const request_1 = require("../../../../request");
19
+ const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
20
+ const commands_1 = require("../../commands");
21
+ class PpTenantSettingsSetCommand extends PowerPlatformCommand_1.default {
22
+ get name() {
23
+ return commands_1.default.TENANT_SETTINGS_SET;
24
+ }
25
+ get description() {
26
+ return 'Sets the global Power Platform configuration of the tenant';
27
+ }
28
+ constructor() {
29
+ super();
30
+ _PpTenantSettingsSetCommand_instances.add(this);
31
+ __classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initTelemetry).call(this);
32
+ __classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initOptions).call(this);
33
+ __classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initTypes).call(this);
34
+ __classPrivateFieldGet(this, _PpTenantSettingsSetCommand_instances, "m", _PpTenantSettingsSetCommand_initValidators).call(this);
35
+ }
36
+ commandAction(logger, args) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const data = {
39
+ walkMeOptOut: args.options.walkMeOptOut,
40
+ disableNPSCommentsReachout: args.options.disableNPSCommentsReachout,
41
+ disableNewsletterSendout: args.options.disableNewsletterSendout,
42
+ disableEnvironmentCreationByNonAdminUsers: args.options.disableEnvironmentCreationByNonAdminUsers,
43
+ disablePortalsCreationByNonAdminUsers: args.options.disablePortalsCreationByNonAdminUsers,
44
+ disableSurveyFeedback: args.options.disableSurveyFeedback,
45
+ disableTrialEnvironmentCreationByNonAdminUsers: args.options.disableTrialEnvironmentCreationByNonAdminUsers,
46
+ disableCapacityAllocationByEnvironmentAdmins: args.options.disableCapacityAllocationByEnvironmentAdmins,
47
+ disableSupportTicketsVisibleByAllUsers: args.options.disableSupportTicketsVisibleByAllUsers,
48
+ powerPlatform: {
49
+ search: {
50
+ disableDocsSearch: args.options.disableDocsSearch,
51
+ disableCommunitySearch: args.options.disableCommunitySearch,
52
+ disableBingVideoSearch: args.options.disableBingVideoSearch
53
+ },
54
+ teamsIntegration: {
55
+ shareWithColleaguesUserLimit: args.options.shareWithColleaguesUserLimit
56
+ },
57
+ powerApps: {
58
+ disableShareWithEveryone: args.options.disableShareWithEveryone,
59
+ enableGuestsToMake: args.options.enableGuestsToMake,
60
+ disableMembersIndicator: args.options.disableMembersIndicator,
61
+ disableMakerMatch: args.options.disableMakerMatch
62
+ },
63
+ environments: {
64
+ disablePreferredDataLocationForTeamsEnvironment: args.options.disablePreferredDataLocationForTeamsEnvironment
65
+ },
66
+ governance: {
67
+ disableAdminDigest: args.options.disableAdminDigest,
68
+ disableDeveloperEnvironmentCreationByNonAdminUsers: args.options.disableDeveloperEnvironmentCreationByNonAdminUsers
69
+ },
70
+ licensing: {
71
+ disableBillingPolicyCreationByNonAdminUsers: args.options.disableBillingPolicyCreationByNonAdminUsers,
72
+ storageCapacityConsumptionWarningThreshold: args.options.storageCapacityConsumptionWarningThreshold
73
+ },
74
+ champions: {
75
+ disableChampionsInvitationReachout: args.options.disableChampionsInvitationReachout,
76
+ disableSkillsMatchInvitationReachout: args.options.disableSkillsMatchInvitationReachout
77
+ },
78
+ intelligence: {
79
+ disableCopilot: args.options.disableCopilot,
80
+ enableOpenAiBotPublishing: args.options.enableOpenAiBotPublishing
81
+ },
82
+ modelExperimentation: {
83
+ enableModelDataSharing: args.options.enableModelDataSharing
84
+ }
85
+ }
86
+ };
87
+ const requestOptions = {
88
+ url: `${this.resource}/providers/Microsoft.BusinessAppPlatform/scopes/admin/updateTenantSettings?api-version=2020-10-01`,
89
+ headers: {
90
+ accept: 'application/json'
91
+ },
92
+ responseType: 'json',
93
+ data: data
94
+ };
95
+ try {
96
+ const res = yield request_1.default.post(requestOptions);
97
+ logger.log(res);
98
+ }
99
+ catch (err) {
100
+ this.handleRejectedODataJsonPromise(err);
101
+ }
102
+ });
103
+ }
104
+ }
105
+ _PpTenantSettingsSetCommand_instances = new WeakSet(), _PpTenantSettingsSetCommand_initTelemetry = function _PpTenantSettingsSetCommand_initTelemetry() {
106
+ this.telemetry.push((args) => {
107
+ Object.assign(this.telemetryProperties, {
108
+ walkMeOptOut: typeof args.options.walkMeOptOut !== 'undefined',
109
+ disableNPSCommentsReachout: typeof args.options.disableNPSCommentsReachout !== 'undefined',
110
+ disableNewsletterSendout: typeof args.options.disableNewsletterSendout !== 'undefined',
111
+ disableEnvironmentCreationByNonAdminUsers: typeof args.options.disableEnvironmentCreationByNonAdminUsers !== 'undefined',
112
+ disablePortalsCreationByNonAdminUsers: typeof args.options.disablePortalsCreationByNonAdminUsers !== 'undefined',
113
+ disableSurveyFeedback: typeof args.options.disableSurveyFeedback !== 'undefined',
114
+ disableTrialEnvironmentCreationByNonAdminUsers: typeof args.options.disableTrialEnvironmentCreationByNonAdminUsers !== 'undefined',
115
+ disableCapacityAllocationByEnvironmentAdmins: typeof args.options.disableCapacityAllocationByEnvironmentAdmins !== 'undefined',
116
+ disableSupportTicketsVisibleByAllUsers: typeof args.options.disableSupportTicketsVisibleByAllUsers !== 'undefined',
117
+ disableDocsSearch: typeof args.options.disableDocsSearch !== 'undefined',
118
+ disableCommunitySearch: typeof args.options.disableCommunitySearch !== 'undefined',
119
+ disableBingVideoSearch: typeof args.options.disableBingVideoSearch !== 'undefined',
120
+ shareWithColleaguesUserLimit: typeof args.options.shareWithColleaguesUserLimit !== 'undefined',
121
+ disableShareWithEveryone: typeof args.options.disableShareWithEveryone !== 'undefined',
122
+ enableGuestsToMake: typeof args.options.enableGuestsToMake !== 'undefined',
123
+ disableMembersIndicator: typeof args.options.disableMembersIndicator !== 'undefined',
124
+ disableMakerMatch: typeof args.options.disableMakerMatch !== 'undefined',
125
+ disablePreferredDataLocationForTeamsEnvironment: typeof args.options.disablePreferredDataLocationForTeamsEnvironment !== 'undefined',
126
+ disableAdminDigest: typeof args.options.disableAdminDigest !== 'undefined',
127
+ disableDeveloperEnvironmentCreationByNonAdminUsers: typeof args.options.disableDeveloperEnvironmentCreationByNonAdminUsers !== 'undefined',
128
+ disableBillingPolicyCreationByNonAdminUsers: typeof args.options.disableBillingPolicyCreationByNonAdminUsers !== 'undefined',
129
+ storageCapacityConsumptionWarningThreshold: typeof args.options.storageCapacityConsumptionWarningThreshold !== 'undefined',
130
+ disableChampionsInvitationReachout: typeof args.options.disableChampionsInvitationReachout !== 'undefined',
131
+ disableSkillsMatchInvitationReachout: typeof args.options.disableSkillsMatchInvitationReachout !== 'undefined',
132
+ disableCopilot: typeof args.options.disableCopilot !== 'undefined',
133
+ enableOpenAiBotPublishing: typeof args.options.enableOpenAiBotPublishing !== 'undefined',
134
+ enableModelDataSharing: typeof args.options.enableModelDataSharing !== 'undefined'
135
+ });
136
+ });
137
+ }, _PpTenantSettingsSetCommand_initOptions = function _PpTenantSettingsSetCommand_initOptions() {
138
+ this.options.unshift({
139
+ option: '--walkMeOptOut [walkMeOptOut]',
140
+ autocomplete: ['true', 'false']
141
+ }, {
142
+ option: '--disableNPSCommentsReachout [disableNPSCommentsReachout]',
143
+ autocomplete: ['true', 'false']
144
+ }, {
145
+ option: '--disableNewsletterSendout [disableNewsletterSendout]',
146
+ autocomplete: ['true', 'false']
147
+ }, {
148
+ option: '--disableEnvironmentCreationByNonAdminUsers [disableEnvironmentCreationByNonAdminUsers]',
149
+ autocomplete: ['true', 'false']
150
+ }, {
151
+ option: '--disablePortalsCreationByNonAdminUsers [disablePortalsCreationByNonAdminUsers]',
152
+ autocomplete: ['true', 'false']
153
+ }, {
154
+ option: '--disableSurveyFeedback [disableSurveyFeedback]',
155
+ autocomplete: ['true', 'false']
156
+ }, {
157
+ option: '--disableTrialEnvironmentCreationByNonAdminUsers [disableTrialEnvironmentCreationByNonAdminUsers]',
158
+ autocomplete: ['true', 'false']
159
+ }, {
160
+ option: '--disableCapacityAllocationByEnvironmentAdmins [disableCapacityAllocationByEnvironmentAdmins]',
161
+ autocomplete: ['true', 'false']
162
+ }, {
163
+ option: '--disableSupportTicketsVisibleByAllUsers [disableSupportTicketsVisibleByAllUsers]',
164
+ autocomplete: ['true', 'false']
165
+ }, {
166
+ option: '--disableDocsSearch [disableDocsSearch]',
167
+ autocomplete: ['true', 'false']
168
+ }, {
169
+ option: '--disableCommunitySearch [disableCommunitySearch]',
170
+ autocomplete: ['true', 'false']
171
+ }, {
172
+ option: '--disableBingVideoSearch [disableBingVideoSearch]',
173
+ autocomplete: ['true', 'false']
174
+ }, {
175
+ option: '--shareWithColleaguesUserLimit [shareWithColleaguesUserLimit]'
176
+ }, {
177
+ option: '--disableShareWithEveryone [disableShareWithEveryone]',
178
+ autocomplete: ['true', 'false']
179
+ }, {
180
+ option: '--enableGuestsToMake [enableGuestsToMake]',
181
+ autocomplete: ['true', 'false']
182
+ }, {
183
+ option: '--disableMembersIndicator [disableMembersIndicator]',
184
+ autocomplete: ['true', 'false']
185
+ }, {
186
+ option: '--disableMakerMatch [disableMakerMatch]',
187
+ autocomplete: ['true', 'false']
188
+ }, {
189
+ option: '--disablePreferredDataLocationForTeamsEnvironment [disablePreferredDataLocationForTeamsEnvironment]',
190
+ autocomplete: ['true', 'false']
191
+ }, {
192
+ option: '--disableAdminDigest [disableAdminDigest]',
193
+ autocomplete: ['true', 'false']
194
+ }, {
195
+ option: '--disableDeveloperEnvironmentCreationByNonAdminUsers [disableDeveloperEnvironmentCreationByNonAdminUsers]',
196
+ autocomplete: ['true', 'false']
197
+ }, {
198
+ option: '--disableBillingPolicyCreationByNonAdminUsers [disableBillingPolicyCreationByNonAdminUsers]',
199
+ autocomplete: ['true', 'false']
200
+ }, {
201
+ option: '--storageCapacityConsumptionWarningThreshold [storageCapacityConsumptionWarningThreshold]'
202
+ }, {
203
+ option: '--disableChampionsInvitationReachout [disableChampionsInvitationReachout]',
204
+ autocomplete: ['true', 'false']
205
+ }, {
206
+ option: '--disableSkillsMatchInvitationReachout [disableSkillsMatchInvitationReachout]',
207
+ autocomplete: ['true', 'false']
208
+ }, {
209
+ option: '--disableCopilot [disableCopilot]',
210
+ autocomplete: ['true', 'false']
211
+ }, {
212
+ option: '--enableOpenAiBotPublishing [enableOpenAiBotPublishing]',
213
+ autocomplete: ['true', 'false']
214
+ }, {
215
+ option: '--enableModelDataSharing [enableModelDataSharing]',
216
+ autocomplete: ['true', 'false']
217
+ });
218
+ }, _PpTenantSettingsSetCommand_initTypes = function _PpTenantSettingsSetCommand_initTypes() {
219
+ this.types.boolean.push('walkMeOptOut', 'disableNPSCommentsReachout', 'disableNewsletterSendout', 'disableEnvironmentCreationByNonAdminUsers', 'disablePortalsCreationByNonAdminUsers', 'disableSurveyFeedback', 'disableTrialEnvironmentCreationByNonAdminUsers', 'disableCapacityAllocationByEnvironmentAdmins', 'disableSupportTicketsVisibleByAllUsers', 'disableDocsSearch', 'disableCommunitySearch', 'disableBingVideoSearch', 'disableShareWithEveryone', 'enableGuestsToMake', 'disableMembersIndicator', 'disableMakerMatch', 'disablePreferredDataLocationForTeamsEnvironment', 'disableAdminDigest', 'disableDeveloperEnvironmentCreationByNonAdminUsers', 'disableBillingPolicyCreationByNonAdminUsers', 'disableChampionsInvitationReachout', 'disableSkillsMatchInvitationReachout', 'disableCopilot', 'enableOpenAiBotPublishing', 'enableModelDataSharing');
220
+ }, _PpTenantSettingsSetCommand_initValidators = function _PpTenantSettingsSetCommand_initValidators() {
221
+ this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
222
+ if (args.options.shareWithColleaguesUserLimit !== undefined && (!Number.isInteger(args.options.shareWithColleaguesUserLimit) || args.options.shareWithColleaguesUserLimit < 0)) {
223
+ return `'${args.options.shareWithColleaguesUserLimit}' is not a valid number.`;
224
+ }
225
+ if (args.options.storageCapacityConsumptionWarningThreshold !== undefined && (!Number.isInteger(args.options.storageCapacityConsumptionWarningThreshold) || args.options.storageCapacityConsumptionWarningThreshold < 0)) {
226
+ return `'${args.options.storageCapacityConsumptionWarningThreshold}' is not a valid number.`;
227
+ }
228
+ if (typeof args.options.walkMeOptOut === 'undefined' &&
229
+ typeof args.options.disableNPSCommentsReachout === 'undefined' &&
230
+ typeof args.options.disableNewsletterSendout === 'undefined' &&
231
+ typeof args.options.disableEnvironmentCreationByNonAdminUsers === 'undefined' &&
232
+ typeof args.options.disablePortalsCreationByNonAdminUsers === 'undefined' &&
233
+ typeof args.options.disableSurveyFeedback === 'undefined' &&
234
+ typeof args.options.disableTrialEnvironmentCreationByNonAdminUsers === 'undefined' &&
235
+ typeof args.options.disableCapacityAllocationByEnvironmentAdmins === 'undefined' &&
236
+ typeof args.options.disableSupportTicketsVisibleByAllUsers === 'undefined' &&
237
+ typeof args.options.disableDocsSearch === 'undefined' &&
238
+ typeof args.options.disableCommunitySearch === 'undefined' &&
239
+ typeof args.options.disableBingVideoSearch === 'undefined' &&
240
+ typeof args.options.shareWithColleaguesUserLimit === 'undefined' &&
241
+ typeof args.options.disableShareWithEveryone === 'undefined' &&
242
+ typeof args.options.enableGuestsToMake === 'undefined' &&
243
+ typeof args.options.disableMembersIndicator === 'undefined' &&
244
+ typeof args.options.disableMakerMatch === 'undefined' &&
245
+ typeof args.options.disablePreferredDataLocationForTeamsEnvironment === 'undefined' &&
246
+ typeof args.options.disableAdminDigest === 'undefined' &&
247
+ typeof args.options.disableDeveloperEnvironmentCreationByNonAdminUsers === 'undefined' &&
248
+ typeof args.options.disableBillingPolicyCreationByNonAdminUsers === 'undefined' &&
249
+ typeof args.options.storageCapacityConsumptionWarningThreshold === 'undefined' &&
250
+ typeof args.options.disableChampionsInvitationReachout === 'undefined' &&
251
+ typeof args.options.disableSkillsMatchInvitationReachout === 'undefined' &&
252
+ typeof args.options.disableCopilot === 'undefined' &&
253
+ typeof args.options.enableOpenAiBotPublishing === 'undefined' &&
254
+ typeof args.options.enableModelDataSharing === 'undefined') {
255
+ return 'Specify at least one option.';
256
+ }
257
+ return true;
258
+ }));
259
+ };
260
+ module.exports = new PpTenantSettingsSetCommand();
261
+ //# sourceMappingURL=tenant-settings-set.js.map
@@ -31,6 +31,7 @@ exports.default = {
31
31
  SOLUTION_PUBLISHER_GET: `${prefix} solution publisher get`,
32
32
  SOLUTION_PUBLISHER_LIST: `${prefix} solution publisher list`,
33
33
  SOLUTION_PUBLISHER_REMOVE: `${prefix} solution publisher remove`,
34
- TENANT_SETTINGS_LIST: `${prefix} tenant settings list`
34
+ TENANT_SETTINGS_LIST: `${prefix} tenant settings list`,
35
+ TENANT_SETTINGS_SET: `${prefix} tenant settings set`
35
36
  };
36
37
  //# sourceMappingURL=commands.js.map
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001008_DEP_react_1 = require("./rules/FN001008_DEP_react");
4
+ const FN001009_DEP_react_dom_1 = require("./rules/FN001009_DEP_react_dom");
5
+ const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
6
+ const FN002004_DEVDEP_gulp_1 = require("./rules/FN002004_DEVDEP_gulp");
7
+ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
8
+ const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
9
+ const FN002015_DEVDEP_types_react_1 = require("./rules/FN002015_DEVDEP_types_react");
10
+ const FN002016_DEVDEP_types_react_dom_1 = require("./rules/FN002016_DEVDEP_types_react_dom");
11
+ const FN002019_DEVDEP_microsoft_rush_stack_compiler_1 = require("./rules/FN002019_DEVDEP_microsoft_rush_stack_compiler");
12
+ module.exports = [
13
+ new FN001008_DEP_react_1.FN001008_DEP_react('17'),
14
+ new FN001009_DEP_react_dom_1.FN001009_DEP_react_dom('17'),
15
+ new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('^7.199.1'),
16
+ new FN002004_DEVDEP_gulp_1.FN002004_DEVDEP_gulp('4.0.2'),
17
+ new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('^6.12.5'),
18
+ new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('~1.15.2'),
19
+ new FN002015_DEVDEP_types_react_1.FN002015_DEVDEP_types_react('17'),
20
+ new FN002016_DEVDEP_types_react_dom_1.FN002016_DEVDEP_types_react_dom('17'),
21
+ new FN002019_DEVDEP_microsoft_rush_stack_compiler_1.FN002019_DEVDEP_microsoft_rush_stack_compiler(['4.5'])
22
+ ];
23
+ //# sourceMappingURL=doctor-1.17.1.js.map
@@ -73,7 +73,8 @@ class SpfxProjectDoctorCommand extends base_project_command_1.BaseProjectCommand
73
73
  '1.15.2',
74
74
  '1.16.0',
75
75
  '1.16.1',
76
- '1.17.0'
76
+ '1.17.0',
77
+ '1.17.1'
77
78
  ];
78
79
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
79
80
  __classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001001_DEP_microsoft_sp_core_library_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library");
4
+ const FN001002_DEP_microsoft_sp_lodash_subset_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset");
5
+ const FN001003_DEP_microsoft_sp_office_ui_fabric_core_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core");
6
+ const FN001004_DEP_microsoft_sp_webpart_base_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base");
7
+ const FN001011_DEP_microsoft_sp_dialog_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog");
8
+ const FN001012_DEP_microsoft_sp_application_base_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base");
9
+ const FN001013_DEP_microsoft_decorators_1 = require("./rules/FN001013_DEP_microsoft_decorators");
10
+ const FN001014_DEP_microsoft_sp_listview_extensibility_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility");
11
+ const FN001021_DEP_microsoft_sp_property_pane_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane");
12
+ const FN001023_DEP_microsoft_sp_component_base_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base");
13
+ const FN001024_DEP_microsoft_sp_diagnostics_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics");
14
+ const FN001025_DEP_microsoft_sp_dynamic_data_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data");
15
+ const FN001026_DEP_microsoft_sp_extension_base_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base");
16
+ const FN001027_DEP_microsoft_sp_http_1 = require("./rules/FN001027_DEP_microsoft_sp_http");
17
+ const FN001028_DEP_microsoft_sp_list_subscription_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription");
18
+ const FN001029_DEP_microsoft_sp_loader_1 = require("./rules/FN001029_DEP_microsoft_sp_loader");
19
+ const FN001030_DEP_microsoft_sp_module_interfaces_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces");
20
+ const FN001031_DEP_microsoft_sp_odata_types_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types");
21
+ const FN001032_DEP_microsoft_sp_page_context_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context");
22
+ const FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1 = require("./rules/FN001034_DEP_microsoft_sp_adaptive_card_extension_base");
23
+ const FN002001_DEVDEP_microsoft_sp_build_web_1 = require("./rules/FN002001_DEVDEP_microsoft_sp_build_web");
24
+ const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
25
+ const FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1 = require("./rules/FN002022_DEVDEP_microsoft_eslint_plugin_spfx");
26
+ const FN002023_DEVDEP_microsoft_eslint_config_spfx_1 = require("./rules/FN002023_DEVDEP_microsoft_eslint_config_spfx");
27
+ const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
28
+ module.exports = [
29
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.17.1'),
30
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.17.1'),
31
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.17.1'),
32
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.17.1'),
33
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.17.1'),
34
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.17.1'),
35
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.17.1'),
36
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.17.1'),
37
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.17.1'),
38
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.17.1'),
39
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.17.1'),
40
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.17.1'),
41
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.17.1'),
42
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.17.1'),
43
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.17.1'),
44
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.17.1'),
45
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.17.1'),
46
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.17.1'),
47
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.17.1'),
48
+ new FN001034_DEP_microsoft_sp_adaptive_card_extension_base_1.FN001034_DEP_microsoft_sp_adaptive_card_extension_base('1.17.1'),
49
+ new FN002022_DEVDEP_microsoft_eslint_plugin_spfx_1.FN002022_DEVDEP_microsoft_eslint_plugin_spfx('1.17.1'),
50
+ new FN002023_DEVDEP_microsoft_eslint_config_spfx_1.FN002023_DEVDEP_microsoft_eslint_config_spfx('1.17.1'),
51
+ new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.17.1'),
52
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.17.1'),
53
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.17.1')
54
+ ];
55
+ //# sourceMappingURL=upgrade-1.17.1.js.map
@@ -75,7 +75,8 @@ class SpfxProjectUpgradeCommand extends base_project_command_1.BaseProjectComman
75
75
  '1.15.2',
76
76
  '1.16.0',
77
77
  '1.16.1',
78
- '1.17.0'
78
+ '1.17.0',
79
+ '1.17.1'
79
80
  ];
80
81
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initTelemetry).call(this);
81
82
  __classPrivateFieldGet(this, _SpfxProjectUpgradeCommand_instances, "m", _SpfxProjectUpgradeCommand_initOptions).call(this);
@@ -482,6 +482,21 @@ class SpfxDoctorCommand extends base_project_command_1.BaseProjectCommand {
482
482
  range: '^4',
483
483
  fix: 'npm i -g yo@4'
484
484
  }
485
+ },
486
+ '1.17.1': {
487
+ gulpCli: {
488
+ range: '^1 || ^2',
489
+ fix: 'npm i -g gulp-cli@2'
490
+ },
491
+ node: {
492
+ range: '>=16.13.0 <17.0.0',
493
+ fix: 'Install Node.js >=16.13.0 <17.0.0'
494
+ },
495
+ sp: SharePointVersion.SPO,
496
+ yo: {
497
+ range: '^4',
498
+ fix: 'npm i -g yo@4'
499
+ }
485
500
  }
486
501
  };
487
502
  __classPrivateFieldGet(this, _SpfxDoctorCommand_instances, "m", _SpfxDoctorCommand_initTelemetry).call(this);
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ListItemFieldValueResult.js.map
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _SpoListItemAddCommand_instances, _SpoListItemAddCommand_initTelemetry, _SpoListItemAddCommand_initOptions, _SpoListItemAddCommand_initValidators, _SpoListItemAddCommand_initTypes, _SpoListItemAddCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ const os = require("os");
18
19
  const request_1 = require("../../../../request");
19
20
  const formatting_1 = require("../../../../utils/formatting");
20
21
  const spo_1 = require("../../../../utils/spo");
@@ -139,16 +140,16 @@ class SpoListItemAddCommand extends SpoCommand_1.default {
139
140
  const response = yield request_1.default.post(requestOptions);
140
141
  // Response is from /AddValidateUpdateItemUsingPath POST call, perform get on added item to get all field values
141
142
  const fieldValues = response.value;
143
+ if (fieldValues.some(f => f.HasException)) {
144
+ throw `Creating the item failed with the following errors: ${os.EOL}${fieldValues.filter(f => f.HasException).map(f => { return `- ${f.FieldName} - ${f.ErrorMessage}`; }).join(os.EOL)}`;
145
+ }
142
146
  const idField = fieldValues.filter((thisField) => {
143
147
  return (thisField.FieldName === "Id");
144
148
  });
145
149
  if (this.debug) {
146
- logger.logToStderr(`field values returned:`);
150
+ logger.logToStderr(`Field values returned:`);
147
151
  logger.logToStderr(fieldValues);
148
- logger.logToStderr(`Id returned by AddValidateUpdateItemUsingPath: ${idField}`);
149
- }
150
- if (idField.length === 0) {
151
- throw `Item didn't add successfully`;
152
+ logger.logToStderr(`Id returned by AddValidateUpdateItemUsingPath: ${idField[0].FieldValue}`);
152
153
  }
153
154
  requestOptions = {
154
155
  url: `${requestUrl}/items(${idField[0].FieldValue})`,
@@ -23,6 +23,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
23
23
  var _SpoListItemBatchAddCommand_instances, _SpoListItemBatchAddCommand_initTelemetry, _SpoListItemBatchAddCommand_initOptions, _SpoListItemBatchAddCommand_initValidators, _SpoListItemBatchAddCommand_initTypes, _SpoListItemBatchAddCommand_initOptionSets;
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  const fs = require("fs");
26
+ const os = require("os");
26
27
  const request_1 = require("../../../../request");
27
28
  const uuid_1 = require("uuid");
28
29
  const formatting_1 = require("../../../../utils/formatting");
@@ -116,7 +117,11 @@ class SpoListItemBatchAddCommand extends SpoCommand_1.default {
116
117
  },
117
118
  data: requestBody.join('')
118
119
  };
119
- yield request_1.default.post(requestOptions);
120
+ const response = yield request_1.default.post(requestOptions);
121
+ const parsedResponse = this.parseBatchResponseBody(response);
122
+ if (parsedResponse.some(r => r.HasException)) {
123
+ throw `Creating some items failed with the following errors: ${os.EOL}${parsedResponse.filter(f => f.HasException).map(f => { return `- Line ${f.csvLineNumber}: ${f.FieldName} - ${f.ErrorMessage}`; }).join(os.EOL)}`;
124
+ }
120
125
  });
121
126
  }
122
127
  parseBatchRequestBody(items, batchId, requestUrl) {
@@ -142,6 +147,18 @@ class SpoListItemBatchAddCommand extends SpoCommand_1.default {
142
147
  batchBody.push(`--batch_${batchId}--\n`);
143
148
  return batchBody;
144
149
  }
150
+ parseBatchResponseBody(response) {
151
+ const batchResults = [];
152
+ response.split('\r\n')
153
+ .filter((line) => line.startsWith('{'))
154
+ .forEach((line, index) => {
155
+ const parsedResponse = JSON.parse(line);
156
+ parsedResponse.value.forEach((fieldValueResult) => {
157
+ batchResults.push(Object.assign({ csvLineNumber: (index + 2) }, fieldValueResult));
158
+ });
159
+ });
160
+ return batchResults;
161
+ }
145
162
  getSingleItemRequestBody(row) {
146
163
  const requestBody = [];
147
164
  Object.keys(row).forEach(key => {
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
15
15
  };
16
16
  var _SpoListItemSetCommand_instances, _SpoListItemSetCommand_initTelemetry, _SpoListItemSetCommand_initOptions, _SpoListItemSetCommand_initValidators, _SpoListItemSetCommand_initTypes, _SpoListItemSetCommand_initOptionSets;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ const os = require("os");
18
19
  const config_1 = require("../../../../config");
19
20
  const request_1 = require("../../../../request");
20
21
  const formatting_1 = require("../../../../utils/formatting");
@@ -185,13 +186,11 @@ class SpoListItemSetCommand extends SpoCommand_1.default {
185
186
  }
186
187
  else {
187
188
  // Response is from /ValidateUpdateListItem POST call, perform get on updated item to get all field values
188
- const returnedData = response.value;
189
- if (!returnedData[0].ItemId) {
190
- throw `Item didn't update successfully`;
191
- }
192
- else {
193
- itemId = returnedData[0].ItemId;
189
+ const fieldValues = response.value;
190
+ if (fieldValues.some(f => f.HasException)) {
191
+ throw `Updating the items has failed with the following errors: ${os.EOL}${fieldValues.filter(f => f.HasException).map(f => { return `- ${f.FieldName} - ${f.ErrorMessage}`; }).join(os.EOL)}`;
194
192
  }
193
+ itemId = fieldValues[0].ItemId;
195
194
  }
196
195
  const requestOptionsItems = {
197
196
  url: `${requestUrl}/items(${itemId})`,
@@ -42,7 +42,7 @@ const addFileCommands = {
42
42
  addFileCommand: 'cat > [FILEPATH] << EOF [FILECONTENT]EOF'
43
43
  },
44
44
  powershell: {
45
- addFileCommand: `@"[FILECONTENT]"@ | Out-File -FilePath [FILEPATH]`
45
+ addFileCommand: `@'[FILECONTENT]'@ | Out-File -FilePath [FILEPATH]`
46
46
  },
47
47
  cmd: {
48
48
  addFileCommand: `echo [FILECONTENT] > [FILEPATH]`
@@ -0,0 +1,218 @@
1
+ # pp tenant settings set
2
+
3
+ Sets the global Power Platform configuration of the tenant
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 pp tenant settings set [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--walkMeOptOut [walkMeOptOut]`
14
+ : Ability to opt out of guided experiences using WalkMe in Power Platform. Valid values: `true`, `false`.
15
+
16
+ `--disableNPSCommentsReachout [disableNPSCommentsReachout]`
17
+ : Ability to disable re-surveying users who left prior feedback via NPS prompts in Power Platform. Valid values: `true`, `false`.
18
+
19
+ `--disableNewsletterSendout [disableNewsletterSendout]`
20
+ : Ability to disable the newsletter sendout feature. Valid values: `true`, `false`.
21
+
22
+ `--disableEnvironmentCreationByNonAdminUsers [disableEnvironmentCreationByNonAdminUsers]`
23
+ : Restrict all environments to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
24
+
25
+ `--disablePortalsCreationByNonAdminUsers [disablePortalsCreationByNonAdminUsers]`
26
+ : Restrict all portals to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
27
+
28
+ `--disableSurveyFeedback [disableSurveyFeedback]`
29
+ : Ability to disable all NPS survey feedback prompts in Power Platform. Valid values: `true`, `false`.
30
+
31
+ `--disableTrialEnvironmentCreationByNonAdminUsers [disableTrialEnvironmentCreationByNonAdminUsers]`
32
+ : Restrict all trial environments to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
33
+
34
+ `--disableCapacityAllocationByEnvironmentAdmins [disableCapacityAllocationByEnvironmentAdmins]`
35
+ : Ability to disable capacity allocation by environment administrators. Valid values: `true`, `false`.
36
+
37
+ `--disableSupportTicketsVisibleByAllUsers [disableSupportTicketsVisibleByAllUsers]`
38
+ : Ability to disable support ticket creation by non-admin users in the tenant. Valid values: `true`, `false`.
39
+
40
+ `--disableDocsSearch [disableDocsSearch]`
41
+ : When this setting is true, users in the environment will see a message that Microsoft Learn and Documentation search categories have been turned off by the administrator in the search results page. Valid values: `true`, `false`.
42
+
43
+ `--disableCommunitySearch [disableCommunitySearch]`
44
+ : When this setting is true, users in the environment will see a message that Community and Blog search categories have been turned off by the administrator in the search results page. Valid values: `true`, `false`.
45
+
46
+ `--disableBingVideoSearch [disableBingVideoSearch]`
47
+ : When this setting is true, users in the environment will see a message that video search categories have been turned off by the administrator in the search results page. Valid values: `true`, `false`.
48
+
49
+ `--shareWithColleaguesUserLimit [shareWithColleaguesUserLimit]`
50
+ : Maximum value setting for the number of users in a security group used to share an app built using Power Apps on Microsoft Teams. Specify any number as a value.
51
+
52
+ `--disableShareWithEveryone [disableShareWithEveryone]`
53
+ : Ability to disable the Share With Everyone capability in all Power Apps. Valid values: `true`, `false`.
54
+
55
+ `--enableGuestsToMake [enableGuestsToMake]`
56
+ : Ability to allow guest users in your tenant to create Power Apps. Valid values: `true`, `false`.
57
+
58
+ `--disableMembersIndicator [disableMembersIndicator]`
59
+ : Ability to disable the display of a members indicator. Valid values: `true`, `false`.
60
+
61
+ `--disableMakerMatch [disableMakerMatch]`
62
+ : Ability to disable the Maker Match feature, which helps organizations find internal resources with the necessary skills to develop custom apps and solutions using Power Platform. Valid values: `true`, `false`.
63
+
64
+ `--disablePreferredDataLocationForTeamsEnvironment [disablePreferredDataLocationForTeamsEnvironment]`
65
+ : Ability to disable the selection of a preferred data location for Teams environment. Valid values: `true`, `false`.
66
+
67
+ `--disableAdminDigest [disableAdminDigest]`
68
+ : When true, the entire organization is unsubscribed from the weekly digest. Valid values: `true`, `false`.
69
+
70
+ `--disableDeveloperEnvironmentCreationByNonAdminUsers [disableDeveloperEnvironmentCreationByNonAdminUsers]`
71
+ : Restrict all developer environments to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
72
+
73
+ `--disableBillingPolicyCreationByNonAdminUsers [disableBillingPolicyCreationByNonAdminUsers]`
74
+ : Restrict billing policies to be created by Global Admins, Power Platform Admins, or Dynamics365 Service Admins. Valid values: `true`, `false`.
75
+
76
+ `--storageCapacityConsumptionWarningThreshold [storageCapacityConsumptionWarningThreshold]`
77
+ : Ability to set a threshold for storage capacity consumption warnings. Specify any number as a value.
78
+
79
+ `--disableChampionsInvitationReachout [disableChampionsInvitationReachout]`
80
+ : Ability to disable all invitations to become a Power Platform champion. Valid values: `true`, `false`.
81
+
82
+ `--disableSkillsMatchInvitationReachout [disableSkillsMatchInvitationReachout]`
83
+ : Ability to disable all skills match invitations to become part of the makers community. Valid values: `true`, `false`.
84
+
85
+ `--disableCopilot [disableCopilot]`
86
+ : Ability to turn off or disable the Copilot feature. Valid values: `true`, `false`.
87
+
88
+ `--enableOpenAiBotPublishing [enableOpenAiBotPublishing]`
89
+ : Ability to enable or disable the publishing of OpenAI bots within the organization's environment. Valid values: `true`, `false`.
90
+
91
+ `--enableModelDataSharing [enableModelDataSharing]`
92
+ : Ability to enable or disable the sharing of model data within the organization's environment. Valid values: `true`, `false`.
93
+
94
+ --8<-- "docs/cmd/_global.md"
95
+
96
+ ## Remarks
97
+
98
+ !!! attention
99
+ This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
100
+
101
+ ## Examples
102
+
103
+ Disable environment creation for non-admin users
104
+
105
+ ```sh
106
+ m365 pp tenant settings set --disableEnvironmentCreationByNonAdminUsers true --disableTrialEnvironmentCreationByNonAdminUsers true --disableDeveloperEnvironmentCreationByNonAdminUsers true
107
+ ```
108
+
109
+ Enable Power App creation for guest users
110
+
111
+ ```sh
112
+ m365 pp tenant settings set --enableGuestsToMake true
113
+ ```
114
+
115
+ Disable guided experience, survey feedback and newsletter
116
+
117
+ ```sh
118
+ m365 pp tenant settings set --walkMeOptOut true --disableNewsletterSendout true --disableSurveyFeedback true
119
+ ```
120
+
121
+ ## Response
122
+
123
+ === "JSON"
124
+
125
+ ```json
126
+ {
127
+ "walkMeOptOut": false,
128
+ "disableNPSCommentsReachout": false,
129
+ "disableNewsletterSendout": false,
130
+ "disableEnvironmentCreationByNonAdminUsers": false,
131
+ "disablePortalsCreationByNonAdminUsers": false,
132
+ "disableSurveyFeedback": false,
133
+ "disableTrialEnvironmentCreationByNonAdminUsers": false,
134
+ "disableCapacityAllocationByEnvironmentAdmins": false,
135
+ "disableSupportTicketsVisibleByAllUsers": false,
136
+ "powerPlatform": {
137
+ "search": {
138
+ "disableDocsSearch": false,
139
+ "disableCommunitySearch": false,
140
+ "disableBingVideoSearch": false
141
+ },
142
+ "teamsIntegration": {
143
+ "shareWithColleaguesUserLimit": 10000
144
+ },
145
+ "powerApps": {
146
+ "disableShareWithEveryone": false,
147
+ "enableGuestsToMake": false,
148
+ "disableMembersIndicator": false,
149
+ "disableMakerMatch": false
150
+ },
151
+ "environments": {
152
+ "disablePreferredDataLocationForTeamsEnvironment": false
153
+ },
154
+ "governance": {
155
+ "disableAdminDigest": false,
156
+ "disableDeveloperEnvironmentCreationByNonAdminUsers": false
157
+ },
158
+ "licensing": {
159
+ "disableBillingPolicyCreationByNonAdminUsers": false,
160
+ "storageCapacityConsumptionWarningThreshold": 85
161
+ },
162
+ "powerPages": {},
163
+ "champions": {
164
+ "disableChampionsInvitationReachout": false,
165
+ "disableSkillsMatchInvitationReachout": false
166
+ },
167
+ "intelligence": {
168
+ "disableCopilot": false,
169
+ "enableOpenAiBotPublishing": false
170
+ },
171
+ "modelExperimentation": {
172
+ "enableModelDataSharing": false
173
+ }
174
+ }
175
+ }
176
+ ```
177
+
178
+ === "Text"
179
+
180
+ ```text
181
+ disableCapacityAllocationByEnvironmentAdmins : false
182
+ disableEnvironmentCreationByNonAdminUsers : false
183
+ disableNPSCommentsReachout : false
184
+ disableNewsletterSendout : false
185
+ disablePortalsCreationByNonAdminUsers : false
186
+ disableSupportTicketsVisibleByAllUsers : false
187
+ disableSurveyFeedback : false
188
+ disableTrialEnvironmentCreationByNonAdminUsers: false
189
+ powerPlatform : {"search":{"disableDocsSearch":false,"disableCommunitySearch":false,"disableBingVideoSearch":false},"teamsIntegration":{"shareWithColleaguesUserLimit":10000},"powerApps":{"disableShareWithEveryone":false,"enableGuestsToMake":false,"disableMembersIndicator":false,"disableMakerMatch":false},"environments":{"disablePreferredDataLocationForTeamsEnvironment":false},"governance":{"disableAdminDigest":false,"disableDeveloperEnvironmentCreationByNonAdminUsers":false},"licensing":{"disableBillingPolicyCreationByNonAdminUsers":false,"storageCapacityConsumptionWarningThreshold":85},"powerPages":{},"champions":{"disableChampionsInvitationReachout":false,"disableSkillsMatchInvitationReachout":false},"intelligence":{"disableCopilot":false,"enableOpenAiBotPublishing":false},"modelExperimentation":{"enableModelDataSharing":false}}
190
+ walkMeOptOut : false
191
+ ```
192
+
193
+ === "CSV"
194
+
195
+ ```csv
196
+ walkMeOptOut,disableNPSCommentsReachout,disableNewsletterSendout,disableEnvironmentCreationByNonAdminUsers,disablePortalsCreationByNonAdminUsers,disableSurveyFeedback,disableTrialEnvironmentCreationByNonAdminUsers,disableCapacityAllocationByEnvironmentAdmins,disableSupportTicketsVisibleByAllUsers
197
+ ,,,,,,,,
198
+ ```
199
+
200
+ === "Markdown"
201
+
202
+ ```md
203
+ # pp tenant settings set --disableEnvironmentCreationByNonAdminUsers false --disableTrialEnvironmentCreationByNonAdminUsers false --disableDeveloperEnvironmentCreationByNonAdminUsers false
204
+
205
+ Date: 14/3/2023
206
+
207
+ Property | Value
208
+ ---------|-------
209
+ walkMeOptOut | false
210
+ disableNPSCommentsReachout | false
211
+ disableNewsletterSendout | false
212
+ disableEnvironmentCreationByNonAdminUsers | false
213
+ disablePortalsCreationByNonAdminUsers | false
214
+ disableSurveyFeedback | false
215
+ disableTrialEnvironmentCreationByNonAdminUsers | false
216
+ disableCapacityAllocationByEnvironmentAdmins | false
217
+ disableSupportTicketsVisibleByAllUsers | false
218
+ ```
@@ -29,7 +29,7 @@ m365 spfx project upgrade [options]
29
29
 
30
30
  ## Remarks
31
31
 
32
- The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.17.0).
32
+ The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.17.1).
33
33
 
34
34
  This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
35
35
 
@@ -30,6 +30,11 @@ m365 spo listitem add [options]
30
30
 
31
31
  --8<-- "docs/cmd/_global.md"
32
32
 
33
+ ## Remarks
34
+
35
+ !!! warning "When using DateTime fields"
36
+ When creating a list item with a DateTime field, use the timezone and the format that the site expects, based on its regional settings. Alternatively, a format which works on all regions is the following: `yyyy-MM-dd HH:mm:ss`. However, you should use the local timezone in all situations. UTC date/time or ISO 8601 formatted date/time is not supported.
37
+
33
38
  ## Examples
34
39
 
35
40
  Add an item with Title _Demo Item_ and content type name _Item_ to list with title _Demo List_ in site _https://contoso.sharepoint.com/sites/project-x_
@@ -77,7 +82,13 @@ m365 spo listitem add --contentType Item --listUrl /sites/project-x/Documents --
77
82
  Add an item with a specific Title and multi-choice value
78
83
 
79
84
  ```sh
80
- m365 spo listitem add --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --Title "Demo Hyperlink Field" --MultiChoiceField "Choice 1;#Choice 2;#Choice 3"
85
+ m365 spo listitem add --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --Title "Demo multi-choice Field" --MultiChoiceField "Choice 1;#Choice 2;#Choice 3"
86
+ ```
87
+
88
+ Add an item with a specific Title and DateTime value
89
+
90
+ ```sh
91
+ m365 spo listitem add --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --Title "Demo DateTime Field" --SomeDateTimeField "2023-01-16 15:30:00"
81
92
  ```
82
93
 
83
94
  ## Response
@@ -27,6 +27,18 @@ m365 spo listitem batch add [options]
27
27
 
28
28
  --8<-- "docs/cmd/_global.md"
29
29
 
30
+ ## Remarks
31
+
32
+ A sample CSV can be found below. The first line of the CSV-file should contain the internal column names that you wish to set.
33
+
34
+ ```csv
35
+ ContentType,Title,SingleChoiceField,MultiChoiceField,SingleMetadataField,MultiMetadataField,SinglePeopleField,MultiPeopleField,CustomHyperlink,NumberField,DateTimeField
36
+ Item,Title A,Choice 1,Choice 1;#Choice 2,Engineering|4a3cc5f3-a4a6-433e-a07a-746978ff1760;,Engineering|4a3cc5f3-a4a6-433e-a07a-746978ff1760;Finance|f994a4ac-cf34-448e-a22c-2b35fd9bbffa;,[{'Key':'i:0#.f|membership|markh@contoso.com'}],"[{'Key':'i:0#.f|membership|markh@contoso.com'},{'Key':'i:0#.f|membership|john.doe@contoso.com'}]","https://bing.com, URL",5,2023-01-01 10:00:00
37
+ ```
38
+
39
+ !!! warning "When using DateTime fields"
40
+ When creating list items with a DateTime field, use the timezone and the format that the site expects, based on its regional settings. Alternatively, a format which works on all regions is the following: `yyyy-MM-dd HH:mm:ss`. However, you should use the local timezone in all situations. UTC date/time or ISO 8601 formatted date/time is not supported.
41
+
30
42
  ## Examples
31
43
 
32
44
  Add a batch of items to a list retrieved by title in a specific site
@@ -47,15 +59,6 @@ Add a batch of items to a list defined by server-relative URL in a specific site
47
59
  m365 spo listitem batch add --filePath "C:\Path\To\Csv\CsvFile.csv" --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/sites/project-x/lists/Demo List"
48
60
  ```
49
61
 
50
- ## Remarks
51
-
52
- A sample CSV can be found below. The first line of the CSV-file should contain the internal column names that you wish to set.
53
-
54
- ```csv
55
- ContentType,Title,SingleChoiceField,MultiChoiceField,SingleMetadataField,MultiMetadataField,SinglePeopleField,MultiPeopleField,CustomHyperlink,NumberField
56
- Item,Title A,Choice 1,Choice 1;#Choice 2,Engineering|4a3cc5f3-a4a6-433e-a07a-746978ff1760;,Engineering|4a3cc5f3-a4a6-433e-a07a-746978ff1760;Finance|f994a4ac-cf34-448e-a22c-2b35fd9bbffa;,[{'Key':'i:0#.f|membership|markh@contoso.com'}],"[{'Key':'i:0#.f|membership|markh@contoso.com'},{'Key':'i:0#.f|membership|john.doe@contoso.com'}]","https://bing.com, URL",5
57
- ```
58
-
59
62
  ## Response
60
63
 
61
64
  The command won't return a response on success.
@@ -33,6 +33,11 @@ m365 spo listitem set [options]
33
33
 
34
34
  --8<-- "docs/cmd/_global.md"
35
35
 
36
+ ## Remarks
37
+
38
+ !!! warning "When using DateTime fields"
39
+ When updating a list item with a DateTime field, use the timezone and the format that the site expects, based on its regional settings. Alternatively, a format which works on all regions is the following: `yyyy-MM-dd HH:mm:ss`. However, you should use the local timezone in all situations. UTC date/time or ISO 8601 formatted date/time is not supported.
40
+
36
41
  ## Examples
37
42
 
38
43
  Update an item with id _147_ with title _Demo Item_ and content type name _Item_ in list with title _Demo List_ in site _https://contoso.sharepoint.com/sites/project-x_
@@ -74,7 +79,13 @@ m365 spo listitem set --listUrl '/sites/project-x/lists/Demo List' --id 147 --we
74
79
  Update an item with a specific Title and multi-choice value
75
80
 
76
81
  ```sh
77
- m365 spo listitem set --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x --Title "Demo Hyperlink Field" --MultiChoiceField "Choice 1;#Choice 2;#Choice 3"
82
+ m365 spo listitem set --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x --Title "Demo multi-choice Field" --MultiChoiceField "Choice 1;#Choice 2;#Choice 3"
83
+ ```
84
+
85
+ Update an item with a specific Title and DateTime value
86
+
87
+ ```sh
88
+ m365 spo listitem set --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x --Title "Demo DateTime Field" --SomeDateTimeField "2023-01-16 15:30:00"
78
89
  ```
79
90
 
80
91
  ## Response
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.5.0",
3
+ "version": "6.6.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@pnp/cli-microsoft365",
9
- "version": "6.5.0",
9
+ "version": "6.6.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@azure/msal-node": "^1.16.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.5.0",
3
+ "version": "6.6.0-beta.2339ae2",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -163,6 +163,7 @@
163
163
  "Nachan, Smita <smita.nachan@gmail.com>",
164
164
  "Nadir, Daniaal <daniaal1030@gmail.com>",
165
165
  "Narbutas, Valeras <valeras.narbutas@macaw.nl>",
166
+ "Nicolas <nicolascamara29@gmail.com>",
166
167
  "Nikolić, Aleksandar <alexandair@live.com>",
167
168
  "O'Callaghan, Conor <brioscaibriste@gmail.com>",
168
169
  "Otto <berot3@gmail.com>",
@@ -217,7 +218,8 @@
217
218
  "Waegebaert, Jasey <jaseyw@gmigroup.be>",
218
219
  "Wilen, Wictor <wictor@wictorwilen.se>",
219
220
  "Williams, Rabia <rabiawilliams@gmail.com>",
220
- "Wojcik, Adam <adam.wojcik.it@gmail.com>"
221
+ "Wojcik, Adam <adam.wojcik.it@gmail.com>",
222
+ "Zachariassen Laksafoss, Trygvi <trygvi.laksafoss@gmail.com>"
221
223
  ],
222
224
  "dependencies": {
223
225
  "@azure/msal-node": "^1.16.0",
@@ -275,4 +277,4 @@
275
277
  "sinon": "^15.0.3",
276
278
  "source-map-support": "^0.5.21"
277
279
  }
278
- }
280
+ }