@pnp/cli-microsoft365 11.3.0 → 11.4.0-beta.87732f5
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.
|
@@ -47,7 +47,7 @@ class ExternalItemAddCommand extends GraphCommand {
|
|
|
47
47
|
// we need to rewrite the @odata properties to the correct format
|
|
48
48
|
// to extract multiple values for collections into arrays
|
|
49
49
|
this.rewriteCollectionProperties(args.options);
|
|
50
|
-
this.addUnknownOptionsToPayload(requestBody, args.options);
|
|
50
|
+
this.addUnknownOptionsToPayload(requestBody.properties, args.options);
|
|
51
51
|
const requestOptions = {
|
|
52
52
|
url: `${this.resource}/v1.0/external/connections/${args.options.externalConnectionId}/items/${args.options.id}`,
|
|
53
53
|
headers: {
|
|
@@ -9,7 +9,7 @@ import request from '../../../../request.js';
|
|
|
9
9
|
const options = globalOptionsZod
|
|
10
10
|
.extend({
|
|
11
11
|
name: zod.alias('n', z.string()),
|
|
12
|
-
description: zod.alias('d', z.string()
|
|
12
|
+
description: zod.alias('d', z.string().optional()),
|
|
13
13
|
containerTypeId: z.string()
|
|
14
14
|
.refine(id => validation.isValidGuid(id), id => ({
|
|
15
15
|
message: `'${id}' is not a valid GUID.`
|
|
@@ -9,8 +9,8 @@ import request from '../../../../request.js';
|
|
|
9
9
|
import { cli } from '../../../../cli/cli.js';
|
|
10
10
|
const options = globalOptionsZod
|
|
11
11
|
.extend({
|
|
12
|
-
id: zod.alias('i', z.string()
|
|
13
|
-
name: zod.alias('n', z.string()
|
|
12
|
+
id: zod.alias('i', z.string().optional()),
|
|
13
|
+
name: zod.alias('n', z.string().optional()),
|
|
14
14
|
containerTypeId: z.string()
|
|
15
15
|
.refine(id => validation.isValidGuid(id), id => ({
|
|
16
16
|
message: `'${id}' is not a valid GUID.`
|