@pnp/cli-microsoft365 12.1.0-beta.81e442d → 12.1.0-beta.cb17125
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/.mocharc.json +1 -1
- package/README.md +2 -2
- package/dist/m365/base/AppCommand.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +4 -4
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +5 -5
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +3 -3
- package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +2 -2
- package/dist/m365/entra/commands/approleassignment/approleassignment-list.js +2 -2
- package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +2 -2
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +2 -2
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +2 -2
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-remove.js +2 -2
- package/dist/m365/entra/commands/group/group-get.js +1 -1
- package/dist/m365/entra/commands/group/group-member-add.js +1 -1
- package/dist/m365/entra/commands/group/group-member-list.js +1 -1
- package/dist/m365/entra/commands/group/group-member-remove.js +1 -1
- package/dist/m365/entra/commands/group/group-member-set.js +1 -1
- package/dist/m365/entra/commands/group/group-remove.js +1 -1
- package/dist/m365/entra/commands/group/group-set.js +1 -1
- package/dist/m365/entra/commands/groupsetting/groupsetting-add.js +1 -1
- package/dist/m365/entra/commands/groupsetting/groupsetting-get.js +1 -1
- package/dist/m365/entra/commands/groupsetting/groupsetting-remove.js +1 -1
- package/dist/m365/entra/commands/groupsetting/groupsetting-set.js +1 -1
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-get.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-get.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-remove.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-renew.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-set.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +2 -2
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +2 -2
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +1 -1
- package/dist/m365/entra/commands/organization/organization-set.js +1 -1
- package/dist/m365/entra/commands/pim/pim-role-assignment-add.js +5 -5
- package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +2 -2
- package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +2 -2
- package/dist/m365/entra/commands/pim/pim-role-assignment-remove.js +5 -5
- package/dist/m365/entra/commands/pim/pim-role-request-list.js +2 -2
- package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +7 -7
- package/dist/m365/entra/commands/roledefinition/roledefinition-get.js +1 -1
- package/dist/m365/entra/commands/roledefinition/roledefinition-remove.js +1 -1
- package/dist/m365/entra/commands/roledefinition/roledefinition-set.js +1 -1
- package/dist/m365/entra/commands/user/user-add.js +1 -1
- package/dist/m365/entra/commands/user/user-get.js +1 -1
- package/dist/m365/entra/commands/user/user-groupmembership-list.js +1 -1
- package/dist/m365/entra/commands/user/user-license-add.js +1 -1
- package/dist/m365/entra/commands/user/user-license-list.js +1 -1
- package/dist/m365/entra/commands/user/user-license-remove.js +1 -1
- package/dist/m365/entra/commands/user/user-recyclebinitem-remove.js +1 -1
- package/dist/m365/entra/commands/user/user-recyclebinitem-restore.js +1 -1
- package/dist/m365/entra/commands/user/user-remove.js +1 -1
- package/dist/m365/entra/commands/user/user-session-revoke.js +1 -1
- package/dist/m365/entra/commands/user/user-set.js +2 -2
- package/dist/m365/entra/commands/user/user-signin-list.js +2 -2
- package/dist/m365/flow/commands/flow-export.js +1 -1
- package/dist/m365/flow/commands/flow-remove.js +1 -1
- package/dist/m365/flow/commands/owner/owner-ensure.js +1 -1
- package/dist/m365/flow/commands/owner/owner-list.js +1 -1
- package/dist/m365/flow/commands/owner/owner-remove.js +1 -1
- package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-restore.js +1 -1
- package/dist/m365/flow/commands/run/run-cancel.js +1 -1
- package/dist/m365/flow/commands/run/run-get.js +1 -1
- package/dist/m365/flow/commands/run/run-list.js +1 -1
- package/dist/m365/flow/commands/run/run-resubmit.js +1 -1
- package/dist/m365/graph/commands/directoryextension/directoryextension-get.js +3 -3
- package/dist/m365/graph/commands/directoryextension/directoryextension-list.js +2 -2
- package/dist/m365/graph/commands/directoryextension/directoryextension-remove.js +3 -3
- package/dist/m365/outlook/commands/mail/mail-searchfolder-add.js +1 -1
- package/dist/m365/outlook/commands/mailbox/mailbox-settings-get.js +1 -1
- package/dist/m365/pp/commands/website/website-get.js +1 -1
- package/dist/m365/pp/commands/website/website-remove.js +1 -1
- package/dist/m365/pp/commands/website/website-webrole-list.js +1 -1
- package/dist/m365/spe/commands/container/container-add.js +1 -1
- package/dist/m365/spe/commands/container/container-get.js +1 -1
- package/dist/m365/spe/commands/container/container-permission-add.js +1 -1
- package/dist/m365/spe/commands/container/container-permission-list.js +1 -1
- package/dist/m365/spe/commands/container/container-permission-remove.js +1 -1
- package/dist/m365/spe/commands/container/container-permission-set.js +1 -1
- package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +1 -1
- package/dist/m365/spe/commands/container/container-recyclebinitem-remove.js +1 -1
- package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +1 -1
- package/dist/m365/spe/commands/container/container-remove.js +1 -1
- package/dist/m365/spe/commands/containertype/containertype-add.js +1 -1
- package/dist/m365/spe/commands/containertype/containertype-get.js +1 -1
- package/dist/m365/spe/commands/containertype/containertype-remove.js +1 -1
- package/dist/m365/spfx/commands/package/package-generate.js +1 -1
- package/dist/m365/spo/commands/folder/folder-archive.js +1 -1
- package/dist/m365/spo/commands/folder/folder-unarchive.js +1 -1
- package/dist/m365/spo/commands/list/list-defaultvalue-clear.js +1 -1
- package/dist/m365/spo/commands/list/list-defaultvalue-get.js +1 -1
- package/dist/m365/spo/commands/list/list-defaultvalue-list.js +1 -1
- package/dist/m365/spo/commands/list/list-defaultvalue-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-defaultvalue-set.js +1 -1
- package/dist/m365/spo/commands/list/list-sensitivitylabel-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-view-add.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-batch-add.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-batch-set.js +1 -1
- package/dist/m365/spo/commands/site/site-hubsite-connect.js +1 -1
- package/dist/m365/spo/commands/tenant/tenant-site-get.js +1 -1
- package/dist/m365/spo/commands/user/user-get.js +1 -1
- package/dist/m365/spo/commands/web/web-rule-get.js +1 -1
- package/dist/m365/spo/commands/web/web-rule-list.js +2 -2
- package/dist/m365/spo/commands/web/web-rule-remove.js +1 -1
- package/dist/m365/spp/commands/autofillcolumn/autofillcolumn-set.js +2 -2
- package/dist/m365/spp/commands/model/model-apply.js +2 -2
- package/dist/m365/teams/commands/callrecord/callrecord-get.js +1 -1
- package/dist/m365/teams/commands/callrecord/callrecord-list.js +1 -1
- package/dist/m365/viva/commands/engage/engage-community-user-add.js +1 -1
- package/dist/utils/formatting.js +5 -4
- package/dist/utils/zod.js +2 -1
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +21 -0
- package/docs/docs/cmd/spo/listitem/listitem-batch-remove.mdx +21 -0
- package/docs/docs/cmd/spo/listitem/listitem-batch-set.mdx +21 -0
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-isrecord.mdx +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-list.mdx +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +21 -0
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +21 -0
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +21 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +23 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +23 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.mdx +21 -0
- package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.mdx +21 -0
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +19 -0
- package/docs/docs/cmd/spo/user/user-get.mdx +5 -0
- package/npm-shrinkwrap.json +537 -874
- package/package.json +31 -30
package/.mocharc.json
CHANGED
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
|
|
113
113
|
## Install
|
|
114
114
|
|
|
115
|
-
To use the CLI for Microsoft 365 you need [`Node.js`](https://nodejs.org). The CLI
|
|
115
|
+
To use the CLI for Microsoft 365 you need [`Node.js`](https://nodejs.org). The CLI is tested with Node.js versions 22 and 26.
|
|
116
116
|
|
|
117
117
|
```
|
|
118
118
|
npm install -g @pnp/cli-microsoft365
|
|
@@ -198,7 +198,7 @@ m365 spo site get --url https://contoso.sharepoint.com --output text
|
|
|
198
198
|
|
|
199
199
|
## Build
|
|
200
200
|
|
|
201
|
-
To build and run this CLI locally, you will need [`node`](https://nodejs.org)
|
|
201
|
+
To build and run this CLI locally, you will need [`node`](https://nodejs.org) `26.x` installed. Node.js 26 is the version used for development and package builds.
|
|
202
202
|
|
|
203
203
|
```sh
|
|
204
204
|
# Clone this repository
|
|
@@ -5,7 +5,7 @@ import Command, { CommandError, globalOptionsZod } from '../../Command.js';
|
|
|
5
5
|
import { formatting } from '../../utils/formatting.js';
|
|
6
6
|
export const appCommandOptions = z.object({
|
|
7
7
|
...globalOptionsZod.shape,
|
|
8
|
-
appId: z.
|
|
8
|
+
appId: z.guid().optional()
|
|
9
9
|
});
|
|
10
10
|
export default class AppCommand extends Command {
|
|
11
11
|
get resource() {
|
|
@@ -6,7 +6,7 @@ import { entraAdministrativeUnit } from "../../../../utils/entraAdministrativeUn
|
|
|
6
6
|
import { globalOptionsZod } from "../../../../Command.js";
|
|
7
7
|
export const options = z.strictObject({
|
|
8
8
|
...globalOptionsZod.shape,
|
|
9
|
-
id: z.
|
|
9
|
+
id: z.guid().optional().alias('i'),
|
|
10
10
|
displayName: z.string().optional().alias('n'),
|
|
11
11
|
properties: z.string().optional().alias('p')
|
|
12
12
|
});
|
|
@@ -9,13 +9,13 @@ import request from "../../../../request.js";
|
|
|
9
9
|
import { entraDevice } from "../../../../utils/entraDevice.js";
|
|
10
10
|
export const options = z.strictObject({
|
|
11
11
|
...globalOptionsZod.shape,
|
|
12
|
-
administrativeUnitId: z.
|
|
12
|
+
administrativeUnitId: z.guid().optional().alias('i'),
|
|
13
13
|
administrativeUnitName: z.string().optional().alias('n'),
|
|
14
|
-
userId: z.
|
|
14
|
+
userId: z.guid().optional(),
|
|
15
15
|
userName: z.string().optional(),
|
|
16
|
-
groupId: z.
|
|
16
|
+
groupId: z.guid().optional(),
|
|
17
17
|
groupName: z.string().optional(),
|
|
18
|
-
deviceId: z.
|
|
18
|
+
deviceId: z.guid().optional(),
|
|
19
19
|
deviceName: z.string().optional()
|
|
20
20
|
});
|
|
21
21
|
class EntraAdministrativeUnitMemberAddCommand extends GraphCommand {
|
|
@@ -6,8 +6,8 @@ import { entraAdministrativeUnit } from '../../../../utils/entraAdministrativeUn
|
|
|
6
6
|
import request from '../../../../request.js';
|
|
7
7
|
export const options = z.strictObject({
|
|
8
8
|
...globalOptionsZod.shape,
|
|
9
|
-
id: z.
|
|
10
|
-
administrativeUnitId: z.
|
|
9
|
+
id: z.guid().alias('i'),
|
|
10
|
+
administrativeUnitId: z.guid().optional().alias('u'),
|
|
11
11
|
administrativeUnitName: z.string().optional().alias('n'),
|
|
12
12
|
properties: z.string().optional().alias('p')
|
|
13
13
|
});
|
|
@@ -13,7 +13,7 @@ var MemberType;
|
|
|
13
13
|
})(MemberType || (MemberType = {}));
|
|
14
14
|
export const options = z.strictObject({
|
|
15
15
|
...globalOptionsZod.shape,
|
|
16
|
-
administrativeUnitId: z.
|
|
16
|
+
administrativeUnitId: z.guid().optional().alias('i'),
|
|
17
17
|
administrativeUnitName: z.string().optional().alias('n'),
|
|
18
18
|
type: zod.coercedEnum(MemberType).optional().alias('t'),
|
|
19
19
|
properties: z.string().optional().alias('p'),
|
|
@@ -10,14 +10,14 @@ import request from '../../../../request.js';
|
|
|
10
10
|
import { cli } from '../../../../cli/cli.js';
|
|
11
11
|
export const options = z.strictObject({
|
|
12
12
|
...globalOptionsZod.shape,
|
|
13
|
-
id: z.
|
|
14
|
-
userId: z.
|
|
13
|
+
id: z.guid().optional().alias('i'),
|
|
14
|
+
userId: z.guid().optional(),
|
|
15
15
|
userName: z.string().optional(),
|
|
16
|
-
groupId: z.
|
|
16
|
+
groupId: z.guid().optional(),
|
|
17
17
|
groupName: z.string().optional(),
|
|
18
|
-
deviceId: z.
|
|
18
|
+
deviceId: z.guid().optional(),
|
|
19
19
|
deviceName: z.string().optional(),
|
|
20
|
-
administrativeUnitId: z.
|
|
20
|
+
administrativeUnitId: z.guid().optional(),
|
|
21
21
|
administrativeUnitName: z.string().optional(),
|
|
22
22
|
force: z.boolean().optional().alias('f')
|
|
23
23
|
});
|
|
@@ -7,7 +7,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
export const options = z.strictObject({
|
|
9
9
|
...globalOptionsZod.shape,
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.guid().optional().alias('i'),
|
|
11
11
|
displayName: z.string().optional().alias('n'),
|
|
12
12
|
force: z.boolean().optional().alias('f')
|
|
13
13
|
});
|
package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js
CHANGED
|
@@ -8,11 +8,11 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
8
8
|
import commands from '../../commands.js';
|
|
9
9
|
export const options = z.strictObject({
|
|
10
10
|
...globalOptionsZod.shape,
|
|
11
|
-
administrativeUnitId: z.
|
|
11
|
+
administrativeUnitId: z.guid().optional().alias('i'),
|
|
12
12
|
administrativeUnitName: z.string().optional().alias('n'),
|
|
13
|
-
roleDefinitionId: z.
|
|
13
|
+
roleDefinitionId: z.guid().optional(),
|
|
14
14
|
roleDefinitionName: z.string().optional(),
|
|
15
|
-
userId: z.
|
|
15
|
+
userId: z.guid().optional(),
|
|
16
16
|
userName: z.string().optional()
|
|
17
17
|
});
|
|
18
18
|
class EntraAdministrativeUnitRoleAssignmentAddCommand extends GraphCommand {
|
|
@@ -9,8 +9,8 @@ import commands from '../../commands.js';
|
|
|
9
9
|
import { cli } from '../../../../cli/cli.js';
|
|
10
10
|
export const options = z.strictObject({
|
|
11
11
|
...globalOptionsZod.shape,
|
|
12
|
-
appId: z.
|
|
13
|
-
appObjectId: z.
|
|
12
|
+
appId: z.guid().optional(),
|
|
13
|
+
appObjectId: z.guid().optional(),
|
|
14
14
|
appDisplayName: z.string().optional(),
|
|
15
15
|
resource: z.string().alias('r'),
|
|
16
16
|
scopes: z.string().transform((value) => value.split(',').map(String)).alias('s')
|
|
@@ -6,9 +6,9 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
6
6
|
import commands from '../../commands.js';
|
|
7
7
|
export const options = z.strictObject({
|
|
8
8
|
...globalOptionsZod.shape,
|
|
9
|
-
appId: z.
|
|
9
|
+
appId: z.guid().optional().alias('i'),
|
|
10
10
|
appDisplayName: z.string().optional().alias('n'),
|
|
11
|
-
appObjectId: z.
|
|
11
|
+
appObjectId: z.guid().optional()
|
|
12
12
|
});
|
|
13
13
|
class EntraAppRoleAssignmentListCommand extends GraphCommand {
|
|
14
14
|
get name() {
|
|
@@ -9,8 +9,8 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
9
9
|
import commands from '../../commands.js';
|
|
10
10
|
export const options = z.strictObject({
|
|
11
11
|
...globalOptionsZod.shape,
|
|
12
|
-
appId: z.
|
|
13
|
-
appObjectId: z.
|
|
12
|
+
appId: z.guid().optional(),
|
|
13
|
+
appObjectId: z.guid().optional(),
|
|
14
14
|
appDisplayName: z.string().optional(),
|
|
15
15
|
resource: z.string().alias('r'),
|
|
16
16
|
scopes: z.string().transform((value) => value.split(',').map(String)).alias('s'),
|
|
@@ -7,9 +7,9 @@ import commands from '../../commands.js';
|
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
export const options = z.strictObject({
|
|
9
9
|
...globalOptionsZod.shape,
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.guid().optional().alias('i'),
|
|
11
11
|
displayName: z.string().optional().alias('n'),
|
|
12
|
-
objectId: z.
|
|
12
|
+
objectId: z.guid().optional()
|
|
13
13
|
});
|
|
14
14
|
class EntraEnterpriseAppAddCommand extends GraphCommand {
|
|
15
15
|
get name() {
|
|
@@ -7,9 +7,9 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
export const options = z.strictObject({
|
|
9
9
|
...globalOptionsZod.shape,
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.guid().optional().alias('i'),
|
|
11
11
|
displayName: z.string().optional().alias('n'),
|
|
12
|
-
objectId: z.
|
|
12
|
+
objectId: z.guid().optional()
|
|
13
13
|
});
|
|
14
14
|
class EntraEnterpriseAppGetCommand extends GraphCommand {
|
|
15
15
|
get name() {
|
|
@@ -8,9 +8,9 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
8
8
|
import commands from '../../commands.js';
|
|
9
9
|
export const options = z.strictObject({
|
|
10
10
|
...globalOptionsZod.shape,
|
|
11
|
-
id: z.
|
|
11
|
+
id: z.guid().optional().alias('i'),
|
|
12
12
|
displayName: z.string().optional().alias('n'),
|
|
13
|
-
objectId: z.
|
|
13
|
+
objectId: z.guid().optional(),
|
|
14
14
|
force: z.boolean().optional().alias('f')
|
|
15
15
|
});
|
|
16
16
|
class EntraEnterpriseAppRemoveCommand extends GraphCommand {
|
|
@@ -5,7 +5,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
5
5
|
import commands from '../../commands.js';
|
|
6
6
|
export const options = z.strictObject({
|
|
7
7
|
...globalOptionsZod.shape,
|
|
8
|
-
id: z.
|
|
8
|
+
id: z.guid().optional().alias('i'),
|
|
9
9
|
displayName: z.string().optional().alias('n'),
|
|
10
10
|
properties: z.string().optional().alias('p')
|
|
11
11
|
});
|
|
@@ -13,7 +13,7 @@ const RoleEnum = {
|
|
|
13
13
|
};
|
|
14
14
|
export const options = z.strictObject({
|
|
15
15
|
...globalOptionsZod.shape,
|
|
16
|
-
groupId: z.
|
|
16
|
+
groupId: z.guid().optional().alias('i'),
|
|
17
17
|
groupName: z.string().optional().alias('n'),
|
|
18
18
|
userIds: z.string()
|
|
19
19
|
.refine(ids => validation.isValidGuidArray(ids) === true, {
|
|
@@ -11,7 +11,7 @@ const RoleEnum = {
|
|
|
11
11
|
};
|
|
12
12
|
export const options = z.strictObject({
|
|
13
13
|
...globalOptionsZod.shape,
|
|
14
|
-
groupId: z.
|
|
14
|
+
groupId: z.guid().optional().alias('i'),
|
|
15
15
|
groupName: z.string().optional().alias('n'),
|
|
16
16
|
role: zod.coercedEnum(RoleEnum).optional().alias('r'),
|
|
17
17
|
properties: z.string().optional().alias('p'),
|
|
@@ -14,7 +14,7 @@ const RoleEnum = {
|
|
|
14
14
|
};
|
|
15
15
|
export const options = z.strictObject({
|
|
16
16
|
...globalOptionsZod.shape,
|
|
17
|
-
groupId: z.
|
|
17
|
+
groupId: z.guid().optional().alias('i'),
|
|
18
18
|
groupName: z.string().optional().alias('n'),
|
|
19
19
|
userIds: z.string()
|
|
20
20
|
.refine(ids => validation.isValidGuidArray(ids) === true, {
|
|
@@ -13,7 +13,7 @@ const RoleEnum = {
|
|
|
13
13
|
};
|
|
14
14
|
export const options = z.strictObject({
|
|
15
15
|
...globalOptionsZod.shape,
|
|
16
|
-
groupId: z.
|
|
16
|
+
groupId: z.guid().optional().alias('i'),
|
|
17
17
|
groupName: z.string().optional().alias('n'),
|
|
18
18
|
userIds: z.string()
|
|
19
19
|
.refine(ids => validation.isValidGuidArray(ids) === true, {
|
|
@@ -7,7 +7,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
export const options = z.strictObject({
|
|
9
9
|
...globalOptionsZod.shape,
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.guid().optional().alias('i'),
|
|
11
11
|
displayName: z.string().optional().alias('n'),
|
|
12
12
|
force: z.boolean().optional().alias('f')
|
|
13
13
|
});
|
|
@@ -15,7 +15,7 @@ const VisibilityEnum = {
|
|
|
15
15
|
};
|
|
16
16
|
export const options = z.looseObject({
|
|
17
17
|
...globalOptionsZod.shape,
|
|
18
|
-
id: z.
|
|
18
|
+
id: z.guid().optional().alias('i'),
|
|
19
19
|
displayName: z.string().optional().alias('n'),
|
|
20
20
|
newDisplayName: z.string().max(256, `The maximum amount of characters for 'newDisplayName' is 256.`).optional(),
|
|
21
21
|
description: z.string().optional(),
|
|
@@ -5,7 +5,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
5
5
|
import commands from '../../commands.js';
|
|
6
6
|
export const options = z.looseObject({
|
|
7
7
|
...globalOptionsZod.shape,
|
|
8
|
-
templateId: z.
|
|
8
|
+
templateId: z.guid().alias('i')
|
|
9
9
|
});
|
|
10
10
|
class EntraGroupSettingAddCommand extends GraphCommand {
|
|
11
11
|
get name() {
|
|
@@ -5,7 +5,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
5
5
|
import commands from '../../commands.js';
|
|
6
6
|
export const options = z.strictObject({
|
|
7
7
|
...globalOptionsZod.shape,
|
|
8
|
-
id: z.
|
|
8
|
+
id: z.guid().alias('i')
|
|
9
9
|
});
|
|
10
10
|
class EntraGroupSettingGetCommand extends GraphCommand {
|
|
11
11
|
get name() {
|
|
@@ -6,7 +6,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
6
6
|
import commands from '../../commands.js';
|
|
7
7
|
export const options = z.strictObject({
|
|
8
8
|
...globalOptionsZod.shape,
|
|
9
|
-
id: z.
|
|
9
|
+
id: z.guid().alias('i'),
|
|
10
10
|
force: z.boolean().optional().alias('f')
|
|
11
11
|
});
|
|
12
12
|
class EntraGroupSettingRemoveCommand extends GraphCommand {
|
|
@@ -5,7 +5,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
5
5
|
import commands from '../../commands.js';
|
|
6
6
|
export const options = z.looseObject({
|
|
7
7
|
...globalOptionsZod.shape,
|
|
8
|
-
id: z.
|
|
8
|
+
id: z.guid().alias('i')
|
|
9
9
|
});
|
|
10
10
|
class EntraGroupSettingSetCommand extends GraphCommand {
|
|
11
11
|
get name() {
|
|
@@ -5,7 +5,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
5
5
|
import commands from '../../commands.js';
|
|
6
6
|
export const options = z.strictObject({
|
|
7
7
|
...globalOptionsZod.shape,
|
|
8
|
-
id: z.
|
|
8
|
+
id: z.guid().optional().alias('i'),
|
|
9
9
|
displayName: z.string().optional().alias('n')
|
|
10
10
|
});
|
|
11
11
|
class EntraGroupSettingTemplateGetCommand extends GraphCommand {
|
|
@@ -6,7 +6,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
6
6
|
import commands from '../../commands.js';
|
|
7
7
|
export const options = z.strictObject({
|
|
8
8
|
...globalOptionsZod.shape,
|
|
9
|
-
groupId: z.
|
|
9
|
+
groupId: z.guid().optional().alias('i'),
|
|
10
10
|
groupName: z.string().optional().alias('n')
|
|
11
11
|
});
|
|
12
12
|
class EntraM365GroupConversationListCommand extends GraphCommand {
|
|
@@ -7,7 +7,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
export const options = z.strictObject({
|
|
9
9
|
...globalOptionsZod.shape,
|
|
10
|
-
groupId: z.
|
|
10
|
+
groupId: z.guid().optional().alias('i'),
|
|
11
11
|
groupName: z.string().optional().alias('d'),
|
|
12
12
|
threadId: z.string().alias('t')
|
|
13
13
|
});
|
|
@@ -6,7 +6,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
6
6
|
import commands from '../../commands.js';
|
|
7
7
|
export const options = z.strictObject({
|
|
8
8
|
...globalOptionsZod.shape,
|
|
9
|
-
id: z.
|
|
9
|
+
id: z.guid().optional().alias('i'),
|
|
10
10
|
displayName: z.string().optional().alias('n'),
|
|
11
11
|
withSiteUrl: z.boolean().optional()
|
|
12
12
|
});
|
|
@@ -7,7 +7,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
export const options = z.strictObject({
|
|
9
9
|
...globalOptionsZod.shape,
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.guid().optional().alias('i'),
|
|
11
11
|
displayName: z.string().optional().alias('d'),
|
|
12
12
|
mailNickname: z.string().optional().alias('m'),
|
|
13
13
|
force: z.boolean().optional().alias('f')
|
|
@@ -7,7 +7,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
export const options = z.strictObject({
|
|
9
9
|
...globalOptionsZod.shape,
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.guid().optional().alias('i'),
|
|
11
11
|
displayName: z.string().optional().alias('d'),
|
|
12
12
|
mailNickname: z.string().optional().alias('m')
|
|
13
13
|
});
|
|
@@ -11,7 +11,7 @@ import { spo } from '../../../../utils/spo.js';
|
|
|
11
11
|
import { setTimeout } from 'timers/promises';
|
|
12
12
|
export const options = z.strictObject({
|
|
13
13
|
...globalOptionsZod.shape,
|
|
14
|
-
id: z.
|
|
14
|
+
id: z.guid().optional().alias('i'),
|
|
15
15
|
displayName: z.string().optional().alias('n'),
|
|
16
16
|
force: z.boolean().optional().alias('f'),
|
|
17
17
|
permanent: z.boolean().optional()
|
|
@@ -6,7 +6,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
6
6
|
import commands from '../../commands.js';
|
|
7
7
|
export const options = z.strictObject({
|
|
8
8
|
...globalOptionsZod.shape,
|
|
9
|
-
id: z.
|
|
9
|
+
id: z.guid().optional().alias('i'),
|
|
10
10
|
displayName: z.string().optional().alias('n')
|
|
11
11
|
});
|
|
12
12
|
class EntraM365GroupRenewCommand extends GraphCommand {
|
|
@@ -15,7 +15,7 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
15
15
|
import { odata } from '../../../../utils/odata.js';
|
|
16
16
|
export const options = z.strictObject({
|
|
17
17
|
...globalOptionsZod.shape,
|
|
18
|
-
id: z.
|
|
18
|
+
id: z.guid().optional().alias('i'),
|
|
19
19
|
displayName: z.string().optional().alias('n'),
|
|
20
20
|
newDisplayName: z.string().optional(),
|
|
21
21
|
description: z.string().optional().alias('d'),
|
|
@@ -7,7 +7,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
7
7
|
import commands from '../../commands.js';
|
|
8
8
|
export const options = z.strictObject({
|
|
9
9
|
...globalOptionsZod.shape,
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.guid().optional().alias('i'),
|
|
11
11
|
displayName: z.string().optional().alias('n'),
|
|
12
12
|
mailNickname: z.string().optional()
|
|
13
13
|
});
|
|
@@ -22,9 +22,9 @@ export const options = z.strictObject({
|
|
|
22
22
|
.refine(names => validation.isValidUserPrincipalNameArray(names) === true, {
|
|
23
23
|
error: e => `The following user principal names are invalid for the option 'userNames': ${validation.isValidUserPrincipalNameArray(e.input)}.`
|
|
24
24
|
}).optional(),
|
|
25
|
-
groupId: z.
|
|
25
|
+
groupId: z.guid().optional().alias('i'),
|
|
26
26
|
groupName: z.string().optional(),
|
|
27
|
-
teamId: z.
|
|
27
|
+
teamId: z.guid().optional(),
|
|
28
28
|
teamName: z.string().optional(),
|
|
29
29
|
role: zod.coercedEnum(RoleEnum).optional().alias('r')
|
|
30
30
|
});
|
|
@@ -12,7 +12,7 @@ const RoleEnum = {
|
|
|
12
12
|
export const options = z.strictObject({
|
|
13
13
|
...globalOptionsZod.shape,
|
|
14
14
|
filter: z.string().optional().alias('f'),
|
|
15
|
-
groupId: z.
|
|
15
|
+
groupId: z.guid().optional().alias('i'),
|
|
16
16
|
groupDisplayName: z.string().optional().alias('n'),
|
|
17
17
|
properties: z.string().optional().alias('p'),
|
|
18
18
|
role: zod.coercedEnum(RoleEnum).optional().alias('r')
|
|
@@ -10,9 +10,9 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
11
|
export const options = z.strictObject({
|
|
12
12
|
...globalOptionsZod.shape,
|
|
13
|
-
teamId: z.
|
|
13
|
+
teamId: z.guid().optional(),
|
|
14
14
|
teamName: z.string().optional(),
|
|
15
|
-
groupId: z.
|
|
15
|
+
groupId: z.guid().optional().alias('i'),
|
|
16
16
|
groupName: z.string().optional(),
|
|
17
17
|
ids: z.string()
|
|
18
18
|
.refine(ids => validation.isValidGuidArray(ids) === true, {
|
|
@@ -22,9 +22,9 @@ export const options = z.strictObject({
|
|
|
22
22
|
.refine(names => validation.isValidUserPrincipalNameArray(names) === true, {
|
|
23
23
|
error: e => `The following user principal names are invalid for the option 'userNames': ${validation.isValidUserPrincipalNameArray(e.input)}.`
|
|
24
24
|
}).optional(),
|
|
25
|
-
groupId: z.
|
|
25
|
+
groupId: z.guid().optional().alias('i'),
|
|
26
26
|
groupName: z.string().optional(),
|
|
27
|
-
teamId: z.
|
|
27
|
+
teamId: z.guid().optional(),
|
|
28
28
|
teamName: z.string().optional(),
|
|
29
29
|
role: zod.coercedEnum(RoleEnum).alias('r')
|
|
30
30
|
});
|
|
@@ -5,8 +5,8 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
5
5
|
import commands from '../../commands.js';
|
|
6
6
|
export const options = globalOptionsZod
|
|
7
7
|
.extend({
|
|
8
|
-
clientId: z.
|
|
9
|
-
resourceId: z.
|
|
8
|
+
clientId: z.guid().alias('i'),
|
|
9
|
+
resourceId: z.guid().alias('r'),
|
|
10
10
|
scope: z.string().alias('s')
|
|
11
11
|
}).strict();
|
|
12
12
|
class EntraOAuth2GrantAddCommand extends GraphCommand {
|
|
@@ -6,7 +6,7 @@ import GraphCommand from '../../../base/GraphCommand.js';
|
|
|
6
6
|
import commands from '../../commands.js';
|
|
7
7
|
export const options = globalOptionsZod
|
|
8
8
|
.extend({
|
|
9
|
-
spObjectId: z.
|
|
9
|
+
spObjectId: z.guid().alias('i')
|
|
10
10
|
}).strict();
|
|
11
11
|
class EntraOAuth2GrantListCommand extends GraphCommand {
|
|
12
12
|
get name() {
|
|
@@ -7,7 +7,7 @@ import request from '../../../../request.js';
|
|
|
7
7
|
import { odata } from '../../../../utils/odata.js';
|
|
8
8
|
export const options = z.strictObject({
|
|
9
9
|
...globalOptionsZod.shape,
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.guid().optional().alias('i'),
|
|
11
11
|
displayName: z.string().optional().alias('d'),
|
|
12
12
|
marketingNotificationEmails: z.string().refine(emails => validation.isValidUserPrincipalNameArray(emails) === true, {
|
|
13
13
|
error: e => `The following marketing notification emails are invalid: ${e.input}.`
|
|
@@ -12,13 +12,13 @@ import auth from '../../../../Auth.js';
|
|
|
12
12
|
export const options = z.strictObject({
|
|
13
13
|
...globalOptionsZod.shape,
|
|
14
14
|
roleDefinitionName: z.string().optional().alias('n'),
|
|
15
|
-
roleDefinitionId: z.
|
|
16
|
-
userId: z.
|
|
15
|
+
roleDefinitionId: z.guid().optional().alias('i'),
|
|
16
|
+
userId: z.guid().optional(),
|
|
17
17
|
userName: z.string().optional(),
|
|
18
|
-
groupId: z.
|
|
18
|
+
groupId: z.guid().optional(),
|
|
19
19
|
groupName: z.string().optional(),
|
|
20
|
-
administrativeUnitId: z.
|
|
21
|
-
applicationId: z.
|
|
20
|
+
administrativeUnitId: z.guid().optional(),
|
|
21
|
+
applicationId: z.guid().optional(),
|
|
22
22
|
justification: z.string().optional().alias('j'),
|
|
23
23
|
startDateTime: z.string().refine(date => validation.isValidISODateTime(date), {
|
|
24
24
|
error: e => `'${e.input}' is not a valid ISO 8601 date time string.`
|
|
@@ -8,11 +8,11 @@ import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
export const options = z.strictObject({
|
|
10
10
|
...globalOptionsZod.shape,
|
|
11
|
-
userId: z.
|
|
11
|
+
userId: z.guid().optional(),
|
|
12
12
|
userName: z.string().refine(upn => validation.isValidUserPrincipalName(upn), {
|
|
13
13
|
error: e => `'${e.input}' is not a valid user principal name for option 'userName'.`
|
|
14
14
|
}).optional(),
|
|
15
|
-
groupId: z.
|
|
15
|
+
groupId: z.guid().optional(),
|
|
16
16
|
groupName: z.string().optional(),
|
|
17
17
|
withPrincipalDetails: z.boolean().default(false)
|
|
18
18
|
});
|
|
@@ -8,11 +8,11 @@ import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
export const options = z.strictObject({
|
|
10
10
|
...globalOptionsZod.shape,
|
|
11
|
-
userId: z.
|
|
11
|
+
userId: z.guid().optional(),
|
|
12
12
|
userName: z.string().refine(upn => validation.isValidUserPrincipalName(upn), {
|
|
13
13
|
error: e => `'${e.input}' is not a valid user principal name for option 'userName'.`
|
|
14
14
|
}).optional(),
|
|
15
|
-
groupId: z.
|
|
15
|
+
groupId: z.guid().optional(),
|
|
16
16
|
groupName: z.string().optional(),
|
|
17
17
|
startDateTime: z.string().refine(date => validation.isValidISODateTime(date), {
|
|
18
18
|
error: e => `'${e.input}' is not a valid ISO 8601 date time string.`
|
|
@@ -12,15 +12,15 @@ import auth from '../../../../Auth.js';
|
|
|
12
12
|
export const options = z.strictObject({
|
|
13
13
|
...globalOptionsZod.shape,
|
|
14
14
|
roleDefinitionName: z.string().optional().alias('n'),
|
|
15
|
-
roleDefinitionId: z.
|
|
16
|
-
userId: z.
|
|
15
|
+
roleDefinitionId: z.guid().optional().alias('i'),
|
|
16
|
+
userId: z.guid().optional(),
|
|
17
17
|
userName: z.string().refine(upn => validation.isValidUserPrincipalName(upn), {
|
|
18
18
|
error: e => `'${e.input}' is not a valid user principal name for option 'userName'.`
|
|
19
19
|
}).optional(),
|
|
20
|
-
groupId: z.
|
|
20
|
+
groupId: z.guid().optional(),
|
|
21
21
|
groupName: z.string().optional(),
|
|
22
|
-
administrativeUnitId: z.
|
|
23
|
-
applicationId: z.
|
|
22
|
+
administrativeUnitId: z.guid().optional(),
|
|
23
|
+
applicationId: z.guid().optional(),
|
|
24
24
|
justification: z.string().optional().alias('j'),
|
|
25
25
|
ticketNumber: z.string().optional(),
|
|
26
26
|
ticketSystem: z.string().optional()
|
|
@@ -9,11 +9,11 @@ import { odata } from '../../../../utils/odata.js';
|
|
|
9
9
|
const allowedStatuses = ['Canceled', 'Denied', 'Failed', 'Granted', 'PendingAdminDecision', 'PendingApproval', 'PendingProvisioning', 'PendingScheduleCreation', 'Provisioned', 'Revoked', 'ScheduleCreated'];
|
|
10
10
|
export const options = z.strictObject({
|
|
11
11
|
...globalOptionsZod.shape,
|
|
12
|
-
userId: z.
|
|
12
|
+
userId: z.guid().optional(),
|
|
13
13
|
userName: z.string().refine(upn => validation.isValidUserPrincipalName(upn), {
|
|
14
14
|
error: e => `'${e.input}' is not a valid user principal name for option 'userName'.`
|
|
15
15
|
}).optional(),
|
|
16
|
-
groupId: z.
|
|
16
|
+
groupId: z.guid().optional(),
|
|
17
17
|
groupName: z.string().optional(),
|
|
18
18
|
createdDateTime: z.string().refine(date => validation.isValidISODateTime(date), {
|
|
19
19
|
error: e => `'${e.input}' is not a valid ISO 8601 date time string for option 'createdDateTime'.`
|