@pnp/cli-microsoft365 12.0.0-beta.8dff3ac → 12.0.0-beta.93e11fb
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/.devproxy/generate-openapi-spec.json +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +19 -2
- package/dist/cli/cli.js +3 -0
- package/dist/googleAnalytics.js +96 -0
- package/dist/m365/cli/commands/cli-consent.js +9 -2
- package/dist/m365/entra/commands/m365group/m365group-add.js +52 -97
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +20 -33
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +20 -39
- package/dist/m365/entra/commands/m365group/m365group-get.js +20 -41
- package/dist/m365/entra/commands/m365group/m365group-list.js +11 -31
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +8 -22
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +9 -25
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +21 -43
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +21 -41
- package/dist/m365/entra/commands/m365group/m365group-remove.js +25 -46
- package/dist/m365/entra/commands/m365group/m365group-renew.js +19 -32
- package/dist/m365/entra/commands/m365group/m365group-set.js +86 -141
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +20 -43
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +44 -77
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +28 -55
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +37 -74
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +45 -77
- package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +14 -16
- package/dist/m365/spe/commands/container/container-permission-remove.js +94 -0
- package/dist/m365/spe/commands.js +1 -0
- package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +15 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.0.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012021_TSC_excludeDirectories.js +43 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027002_OVERRIDES_qs.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027003_OVERRIDES_uuid.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.0.js +77 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
- package/dist/m365/spo/commands/app/app-add.js +35 -56
- package/dist/m365/spo/commands/app/app-deploy.js +41 -59
- package/dist/m365/spo/commands/app/app-get.js +40 -56
- package/dist/m365/spo/commands/app/app-install.js +20 -41
- package/dist/m365/spo/commands/app/app-instance-list.js +12 -24
- package/dist/m365/spo/commands/app/app-list.js +26 -44
- package/dist/m365/spo/commands/app/app-remove.js +32 -52
- package/dist/m365/spo/commands/app/app-retract.js +32 -51
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +35 -54
- package/dist/m365/spo/commands/app/app-uninstall.js +21 -44
- package/dist/m365/spo/commands/app/app-upgrade.js +20 -41
- package/dist/m365/spo/commands/commandset/commandset-add.js +17 -59
- package/dist/m365/spo/commands/commandset/commandset-get.js +24 -62
- package/dist/m365/spo/commands/commandset/commandset-list.js +11 -34
- package/dist/m365/spo/commands/commandset/commandset-remove.js +21 -54
- package/dist/m365/spo/commands/commandset/commandset-set.js +30 -83
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +5 -14
- package/dist/m365/spo/commands/feature/feature-disable.js +20 -50
- package/dist/m365/spo/commands/feature/feature-enable.js +22 -50
- package/dist/m365/spo/commands/feature/feature-list.js +11 -36
- package/dist/m365/spo/commands/field/field-add.js +33 -62
- package/dist/m365/spo/commands/field/field-get.js +30 -57
- package/dist/m365/spo/commands/field/field-list.js +21 -46
- package/dist/m365/spo/commands/field/field-remove.js +32 -63
- package/dist/m365/spo/commands/field/field-set.js +34 -66
- package/dist/m365/spo/commands/file/file-get.js +4 -3
- package/dist/m365/spo/commands/folder/folder-unarchive.js +90 -0
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +38 -63
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +11 -27
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +25 -47
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +25 -37
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +12 -24
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +10 -18
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +14 -32
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +12 -29
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +19 -46
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +11 -27
- package/dist/m365/spo/commands/listitem/listitem-add.js +27 -55
- package/dist/m365/spo/commands/listitem/listitem-attachment-add.js +30 -58
- package/dist/m365/spo/commands/listitem/listitem-attachment-get.js +27 -52
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +26 -50
- package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +28 -55
- package/dist/m365/spo/commands/listitem/listitem-attachment-set.js +30 -57
- package/dist/m365/spo/commands/listitem/listitem-batch-add.js +36 -58
- package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +68 -92
- package/dist/m365/spo/commands/listitem/listitem-batch-set.js +37 -57
- package/dist/m365/spo/commands/listitem/listitem-get.js +45 -79
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +31 -55
- package/dist/m365/spo/commands/listitem/listitem-list.js +47 -81
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +37 -60
- package/dist/m365/spo/commands/listitem/listitem-record-lock.js +30 -52
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +31 -52
- package/dist/m365/spo/commands/listitem/listitem-record-unlock.js +30 -52
- package/dist/m365/spo/commands/listitem/listitem-remove.js +33 -61
- package/dist/m365/spo/commands/listitem/listitem-retentionlabel-ensure.js +46 -67
- package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +33 -56
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +55 -98
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +48 -74
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +33 -56
- package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +31 -53
- package/dist/m365/spo/commands/listitem/listitem-set.js +33 -58
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +74 -120
- package/dist/m365/spo/commands/navigation/navigation-node-get.js +4 -13
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +6 -4
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +53 -114
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +1 -1
- package/dist/m365/spo/commands/page/page-column-list.js +7 -8
- package/dist/m365/spo/commands/page/page-section-list.js +15 -17
- package/dist/m365/spo/commands/page/page-unpublish.js +53 -0
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +22 -37
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +9 -26
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +5 -0
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +9 -33
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +29 -56
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +8 -1
- package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +8 -1
- package/dist/m365/spo/commands/term/term-group-list.js +7 -8
- package/dist/m365/spo/commands/term/term-set-list.js +6 -9
- package/dist/m365/spo/commands/web/web-rule-get.js +47 -0
- package/dist/m365/spo/commands.js +4 -1
- package/dist/m365/spp/commands/contentcenter/contentcenter-list.js +5 -0
- package/dist/m365/spp/commands/model/model-get.js +25 -45
- package/dist/m365/spp/commands/model/model-list.js +12 -23
- package/dist/m365/spp/commands/model/model-remove.js +25 -45
- package/dist/m365/teams/commands/channel/channel-add.js +46 -57
- package/dist/m365/teams/commands/channel/channel-get.js +41 -48
- package/dist/m365/teams/commands/channel/channel-list.js +28 -42
- package/dist/m365/teams/commands/channel/channel-member-add.js +53 -54
- package/dist/m365/teams/commands/channel/channel-member-list.js +47 -55
- package/dist/m365/teams/commands/channel/channel-member-remove.js +62 -62
- package/dist/m365/teams/commands/channel/channel-member-set.js +61 -65
- package/dist/m365/teams/commands/channel/channel-remove.js +47 -49
- package/dist/m365/teams/commands/channel/channel-set.js +47 -54
- package/dist/m365/teams/commands/chat/chat-get.js +30 -45
- package/dist/m365/teams/commands/chat/chat-list.js +22 -42
- package/dist/m365/teams/commands/chat/chat-member-add.js +43 -64
- package/dist/m365/teams/commands/chat/chat-member-list.js +10 -23
- package/dist/m365/teams/commands/chat/chat-member-remove.js +28 -50
- package/dist/m365/teams/commands/chat/chat-message-send.js +32 -55
- package/dist/m365/teams/commands/meeting/meeting-add.js +57 -68
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-get.js +33 -58
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +14 -38
- package/dist/m365/teams/commands/meeting/meeting-get.js +14 -38
- package/dist/m365/teams/commands/meeting/meeting-list.js +34 -59
- package/dist/m365/teams/commands/meeting/meeting-transcript-get.js +34 -58
- package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +29 -50
- package/dist/m365/teams/commands/message/message-get.js +19 -30
- package/dist/m365/teams/commands/message/message-list.js +26 -43
- package/dist/m365/teams/commands/message/message-remove.js +43 -58
- package/dist/m365/teams/commands/message/message-reply-list.js +19 -30
- package/dist/m365/teams/commands/message/message-restore.js +40 -50
- package/dist/m365/teams/commands/message/message-send.js +19 -30
- package/dist/m365/teams/commands/report/report-deviceusagedistributionusercounts.js +10 -0
- package/dist/m365/teams/commands/report/report-deviceusageusercounts.js +10 -0
- package/dist/m365/teams/commands/report/report-deviceusageuserdetail.js +22 -0
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +19 -39
- package/dist/m365/teams/commands/report/report-pstncalls.js +19 -39
- package/dist/m365/teams/commands/report/report-useractivitycounts.js +10 -0
- package/dist/m365/teams/commands/report/report-useractivityusercounts.js +10 -0
- package/dist/m365/teams/commands/report/report-useractivityuserdetail.js +22 -0
- package/dist/m365/teams/commands/tab/tab-add.js +23 -49
- package/dist/m365/teams/commands/tab/tab-get.js +55 -56
- package/dist/m365/teams/commands/tab/tab-list.js +17 -28
- package/dist/m365/teams/commands/tab/tab-remove.js +23 -42
- package/dist/m365/teams/commands/team/team-add.js +76 -114
- package/dist/m365/teams/commands/team/team-app-list.js +23 -36
- package/dist/m365/teams/commands/team/team-archive.js +24 -39
- package/dist/m365/teams/commands/team/team-clone.js +28 -62
- package/dist/m365/teams/commands/team/team-get.js +23 -36
- package/dist/m365/teams/commands/team/team-list.js +43 -57
- package/dist/m365/teams/commands/team/team-remove.js +24 -37
- package/dist/m365/teams/commands/team/team-set.js +23 -52
- package/dist/m365/teams/commands/team/team-unarchive.js +23 -28
- package/dist/m365/teams/commands/user/user-app-add.js +40 -49
- package/dist/m365/teams/commands/user/user-app-list.js +26 -39
- package/dist/m365/teams/commands/user/user-app-remove.js +37 -49
- package/dist/m365/teams/commands/user/user-app-upgrade.js +36 -52
- package/dist/m365/teams/commands/user/user-list.js +17 -39
- package/dist/m365/tenant/commands/report/report-activeusercounts.js +2 -1
- package/dist/m365/tenant/commands/report/report-activeuserdetail.js +2 -1
- package/dist/m365/tenant/commands/report/report-office365activationcounts.js +9 -0
- package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +9 -0
- package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +9 -0
- package/dist/m365/tenant/commands/report/report-servicesusercounts.js +2 -1
- package/dist/m365/tenant/commands/report/report-settings-get.js +5 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +9 -20
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +8 -20
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +8 -15
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +8 -15
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +12 -26
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +8 -22
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -28
- package/dist/telemetry.js +7 -11
- package/dist/utils/formatting.js +16 -0
- package/dist/utils/pid.js +7 -16
- package/dist/utils/spo.js +40 -3
- package/dist/utils/urlUtil.js +2 -2
- package/dist/utils/zod.js +4 -4
- package/docs/docs/cmd/login.mdx +15 -2
- package/docs/docs/cmd/spe/container/container-permission-remove.mdx +78 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +17 -30
- package/docs/docs/cmd/spo/file/file-archive.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-copy.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-get.mdx +6 -6
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +24 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +24 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-unarchive.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-keep.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-archive.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +22 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +23 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +22 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +24 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-set.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-unarchive.mdx +76 -0
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -6
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +45 -30
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +64 -42
- package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +37 -27
- package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +10 -8
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +0 -21
- package/docs/docs/cmd/spo/page/page-unpublish.mdx +63 -0
- package/docs/docs/cmd/spo/web/web-rule-get.mdx +108 -0
- package/docs/docs/cmd/spp/model/model-get.mdx +1 -1
- package/docs/docs/cmd/spp/model/model-remove.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-add.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-list.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-remove.mdx +21 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-get.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-list.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +19 -0
- package/docs/docs/cmd/viva/engage/engage-message-add.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-get.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-list.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +19 -0
- package/npm-shrinkwrap.json +702 -3230
- package/package.json +21 -38
- package/dist/appInsights.js +0 -43
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _EntraM365GroupUserRemoveCommand_instances, _EntraM365GroupUserRemoveCommand_initTelemetry, _EntraM365GroupUserRemoveCommand_initOptions, _EntraM365GroupUserRemoveCommand_initValidators, _EntraM365GroupUserRemoveCommand_initOptionSets, _EntraM365GroupUserRemoveCommand_initTypes;
|
|
1
|
+
import { z } from 'zod';
|
|
7
2
|
import { cli } from '../../../../cli/cli.js';
|
|
3
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
8
4
|
import request from '../../../../request.js';
|
|
9
5
|
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
10
6
|
import { entraUser } from '../../../../utils/entraUser.js';
|
|
@@ -12,6 +8,22 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
12
8
|
import { validation } from '../../../../utils/validation.js';
|
|
13
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
14
10
|
import commands from '../../commands.js';
|
|
11
|
+
export const options = z.strictObject({
|
|
12
|
+
...globalOptionsZod.shape,
|
|
13
|
+
teamId: z.uuid().optional(),
|
|
14
|
+
teamName: z.string().optional(),
|
|
15
|
+
groupId: z.uuid().optional().alias('i'),
|
|
16
|
+
groupName: z.string().optional(),
|
|
17
|
+
ids: z.string()
|
|
18
|
+
.refine(ids => validation.isValidGuidArray(ids) === true, {
|
|
19
|
+
error: e => `The following GUIDs are invalid for the option 'ids': ${validation.isValidGuidArray(e.input)}.`
|
|
20
|
+
}).optional(),
|
|
21
|
+
userNames: z.string()
|
|
22
|
+
.refine(names => validation.isValidUserPrincipalNameArray(names) === true, {
|
|
23
|
+
error: e => `The following user principal names are invalid for the option 'userNames': ${validation.isValidUserPrincipalNameArray(e.input)}.`
|
|
24
|
+
}).optional(),
|
|
25
|
+
force: z.boolean().optional().alias('f')
|
|
26
|
+
});
|
|
15
27
|
class EntraM365GroupUserRemoveCommand extends GraphCommand {
|
|
16
28
|
get name() {
|
|
17
29
|
return commands.M365GROUP_USER_REMOVE;
|
|
@@ -19,14 +31,25 @@ class EntraM365GroupUserRemoveCommand extends GraphCommand {
|
|
|
19
31
|
get description() {
|
|
20
32
|
return 'Removes the specified user from specified Microsoft 365 Group or Microsoft Teams team';
|
|
21
33
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
get schema() {
|
|
35
|
+
return options;
|
|
36
|
+
}
|
|
37
|
+
getRefinedSchema(schema) {
|
|
38
|
+
return schema
|
|
39
|
+
.refine(opts => [opts.groupId, opts.teamId, opts.groupName, opts.teamName].filter(o => o !== undefined).length === 1, {
|
|
40
|
+
error: 'Use one of the following options: groupId, teamId, groupName or teamName.',
|
|
41
|
+
params: {
|
|
42
|
+
customCode: 'optionSet',
|
|
43
|
+
options: ['groupId', 'teamId', 'groupName', 'teamName']
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
.refine(opts => [opts.ids, opts.userNames].filter(o => o !== undefined).length === 1, {
|
|
47
|
+
error: 'Use one of the following options: ids or userNames.',
|
|
48
|
+
params: {
|
|
49
|
+
customCode: 'optionSet',
|
|
50
|
+
options: ['ids', 'userNames']
|
|
51
|
+
}
|
|
52
|
+
});
|
|
30
53
|
}
|
|
31
54
|
async commandAction(logger, args) {
|
|
32
55
|
const removeUser = async () => {
|
|
@@ -94,65 +117,5 @@ class EntraM365GroupUserRemoveCommand extends GraphCommand {
|
|
|
94
117
|
}
|
|
95
118
|
}
|
|
96
119
|
}
|
|
97
|
-
_EntraM365GroupUserRemoveCommand_instances = new WeakSet(), _EntraM365GroupUserRemoveCommand_initTelemetry = function _EntraM365GroupUserRemoveCommand_initTelemetry() {
|
|
98
|
-
this.telemetry.push((args) => {
|
|
99
|
-
Object.assign(this.telemetryProperties, {
|
|
100
|
-
force: !!args.options.force,
|
|
101
|
-
teamId: typeof args.options.teamId !== 'undefined',
|
|
102
|
-
groupId: typeof args.options.groupId !== 'undefined',
|
|
103
|
-
teamName: typeof args.options.teamName !== 'undefined',
|
|
104
|
-
groupName: typeof args.options.groupName !== 'undefined',
|
|
105
|
-
ids: typeof args.options.ids !== 'undefined',
|
|
106
|
-
userNames: typeof args.options.userNames !== 'undefined'
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
}, _EntraM365GroupUserRemoveCommand_initOptions = function _EntraM365GroupUserRemoveCommand_initOptions() {
|
|
110
|
-
this.options.unshift({
|
|
111
|
-
option: '-i, --groupId [groupId]'
|
|
112
|
-
}, {
|
|
113
|
-
option: '--groupName [groupName]'
|
|
114
|
-
}, {
|
|
115
|
-
option: '--teamId [teamId]'
|
|
116
|
-
}, {
|
|
117
|
-
option: '--teamName [teamName]'
|
|
118
|
-
}, {
|
|
119
|
-
option: '--ids [ids]'
|
|
120
|
-
}, {
|
|
121
|
-
option: '--userNames [userNames]'
|
|
122
|
-
}, {
|
|
123
|
-
option: '-f, --force'
|
|
124
|
-
});
|
|
125
|
-
}, _EntraM365GroupUserRemoveCommand_initValidators = function _EntraM365GroupUserRemoveCommand_initValidators() {
|
|
126
|
-
this.validators.push(async (args) => {
|
|
127
|
-
if (args.options.teamId && !validation.isValidGuid(args.options.teamId)) {
|
|
128
|
-
return `${args.options.teamId} is not a valid GUID for option 'teamId'.`;
|
|
129
|
-
}
|
|
130
|
-
if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
|
|
131
|
-
return `${args.options.groupId} is not a valid GUID for option 'groupId'.`;
|
|
132
|
-
}
|
|
133
|
-
if (args.options.ids) {
|
|
134
|
-
const isValidGUIDArrayResult = validation.isValidGuidArray(args.options.ids);
|
|
135
|
-
if (isValidGUIDArrayResult !== true) {
|
|
136
|
-
return `The following GUIDs are invalid for the option 'ids': ${isValidGUIDArrayResult}.`;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
if (args.options.userNames) {
|
|
140
|
-
const isValidUPNArrayResult = validation.isValidUserPrincipalNameArray(args.options.userNames);
|
|
141
|
-
if (isValidUPNArrayResult !== true) {
|
|
142
|
-
return `The following user principal names are invalid for the option 'userNames': ${isValidUPNArrayResult}.`;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return true;
|
|
146
|
-
});
|
|
147
|
-
}, _EntraM365GroupUserRemoveCommand_initOptionSets = function _EntraM365GroupUserRemoveCommand_initOptionSets() {
|
|
148
|
-
this.optionSets.push({
|
|
149
|
-
options: ['groupId', 'teamId', 'groupName', 'teamName']
|
|
150
|
-
}, {
|
|
151
|
-
options: ['ids', 'userNames']
|
|
152
|
-
});
|
|
153
|
-
}, _EntraM365GroupUserRemoveCommand_initTypes = function _EntraM365GroupUserRemoveCommand_initTypes() {
|
|
154
|
-
this.types.string.push('groupId', 'groupName', 'teamId', 'teamName', 'ids', 'userNames');
|
|
155
|
-
this.types.boolean.push('force');
|
|
156
|
-
};
|
|
157
120
|
export default new EntraM365GroupUserRemoveCommand();
|
|
158
121
|
//# sourceMappingURL=m365group-user-remove.js.map
|
|
@@ -1,16 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _EntraM365GroupUserSetCommand_instances, _EntraM365GroupUserSetCommand_initTelemetry, _EntraM365GroupUserSetCommand_initOptions, _EntraM365GroupUserSetCommand_initValidators, _EntraM365GroupUserSetCommand_initOptionSets, _EntraM365GroupUserSetCommand_initTypes;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
7
3
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
4
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
5
|
+
import { entraUser } from '../../../../utils/entraUser.js';
|
|
9
6
|
import { formatting } from '../../../../utils/formatting.js';
|
|
7
|
+
import { validation } from '../../../../utils/validation.js';
|
|
10
8
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
9
|
import commands from '../../commands.js';
|
|
12
|
-
import {
|
|
13
|
-
|
|
10
|
+
import { zod } from '../../../../utils/zod.js';
|
|
11
|
+
const RoleEnum = {
|
|
12
|
+
owner: 'owner',
|
|
13
|
+
member: 'member'
|
|
14
|
+
};
|
|
15
|
+
export const options = z.strictObject({
|
|
16
|
+
...globalOptionsZod.shape,
|
|
17
|
+
ids: z.string()
|
|
18
|
+
.refine(ids => validation.isValidGuidArray(ids) === true, {
|
|
19
|
+
error: e => `The following GUIDs are invalid for the option 'ids': ${validation.isValidGuidArray(e.input)}.`
|
|
20
|
+
}).optional(),
|
|
21
|
+
userNames: z.string()
|
|
22
|
+
.refine(names => validation.isValidUserPrincipalNameArray(names) === true, {
|
|
23
|
+
error: e => `The following user principal names are invalid for the option 'userNames': ${validation.isValidUserPrincipalNameArray(e.input)}.`
|
|
24
|
+
}).optional(),
|
|
25
|
+
groupId: z.uuid().optional().alias('i'),
|
|
26
|
+
groupName: z.string().optional(),
|
|
27
|
+
teamId: z.uuid().optional(),
|
|
28
|
+
teamName: z.string().optional(),
|
|
29
|
+
role: zod.coercedEnum(RoleEnum).alias('r')
|
|
30
|
+
});
|
|
14
31
|
class EntraM365GroupUserSetCommand extends GraphCommand {
|
|
15
32
|
get name() {
|
|
16
33
|
return commands.M365GROUP_USER_SET;
|
|
@@ -18,15 +35,25 @@ class EntraM365GroupUserSetCommand extends GraphCommand {
|
|
|
18
35
|
get description() {
|
|
19
36
|
return 'Updates role of the specified user in the specified Microsoft 365 Group or Microsoft Teams team';
|
|
20
37
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
get schema() {
|
|
39
|
+
return options;
|
|
40
|
+
}
|
|
41
|
+
getRefinedSchema(schema) {
|
|
42
|
+
return schema
|
|
43
|
+
.refine(opts => [opts.groupId, opts.groupName, opts.teamId, opts.teamName].filter(o => o !== undefined).length === 1, {
|
|
44
|
+
error: 'Use one of the following options: groupId, groupName, teamId or teamName.',
|
|
45
|
+
params: {
|
|
46
|
+
customCode: 'optionSet',
|
|
47
|
+
options: ['groupId', 'groupName', 'teamId', 'teamName']
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
.refine(opts => [opts.ids, opts.userNames].filter(o => o !== undefined).length === 1, {
|
|
51
|
+
error: 'Use one of the following options: ids or userNames.',
|
|
52
|
+
params: {
|
|
53
|
+
customCode: 'optionSet',
|
|
54
|
+
options: ['ids', 'userNames']
|
|
55
|
+
}
|
|
56
|
+
});
|
|
30
57
|
}
|
|
31
58
|
async commandAction(logger, args) {
|
|
32
59
|
try {
|
|
@@ -159,64 +186,5 @@ class EntraM365GroupUserSetCommand extends GraphCommand {
|
|
|
159
186
|
return requestOptions;
|
|
160
187
|
}
|
|
161
188
|
}
|
|
162
|
-
_EntraM365GroupUserSetCommand_instances = new WeakSet(), _EntraM365GroupUserSetCommand_initTelemetry = function _EntraM365GroupUserSetCommand_initTelemetry() {
|
|
163
|
-
this.telemetry.push((args) => {
|
|
164
|
-
Object.assign(this.telemetryProperties, {
|
|
165
|
-
teamId: typeof args.options.teamId !== 'undefined',
|
|
166
|
-
teamName: typeof args.options.teamName !== 'undefined',
|
|
167
|
-
groupId: typeof args.options.groupId !== 'undefined',
|
|
168
|
-
groupName: typeof args.options.groupName !== 'undefined',
|
|
169
|
-
ids: typeof args.options.ids !== 'undefined',
|
|
170
|
-
userNames: typeof args.options.userNames !== 'undefined'
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
}, _EntraM365GroupUserSetCommand_initOptions = function _EntraM365GroupUserSetCommand_initOptions() {
|
|
174
|
-
this.options.unshift({
|
|
175
|
-
option: '--ids [ids]'
|
|
176
|
-
}, {
|
|
177
|
-
option: '--userNames [userNames]'
|
|
178
|
-
}, {
|
|
179
|
-
option: '-i, --groupId [groupId]'
|
|
180
|
-
}, {
|
|
181
|
-
option: '--groupName [groupName]'
|
|
182
|
-
}, {
|
|
183
|
-
option: '--teamId [teamId]'
|
|
184
|
-
}, {
|
|
185
|
-
option: '--teamName [teamName]'
|
|
186
|
-
}, {
|
|
187
|
-
option: '-r, --role <role>',
|
|
188
|
-
autocomplete: this.allowedRoles
|
|
189
|
-
});
|
|
190
|
-
}, _EntraM365GroupUserSetCommand_initValidators = function _EntraM365GroupUserSetCommand_initValidators() {
|
|
191
|
-
this.validators.push(async (args) => {
|
|
192
|
-
if (args.options.teamId && !validation.isValidGuid(args.options.teamId)) {
|
|
193
|
-
return `'${args.options.teamId}' is not a valid GUID for option 'teamId'.`;
|
|
194
|
-
}
|
|
195
|
-
if (args.options.groupId && !validation.isValidGuid(args.options.groupId)) {
|
|
196
|
-
return `'${args.options.groupId}' is not a valid GUID for option 'groupId'.`;
|
|
197
|
-
}
|
|
198
|
-
if (args.options.ids) {
|
|
199
|
-
const isValidGUIDArrayResult = validation.isValidGuidArray(args.options.ids);
|
|
200
|
-
if (isValidGUIDArrayResult !== true) {
|
|
201
|
-
return `The following GUIDs are invalid for the option 'ids': ${isValidGUIDArrayResult}.`;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
if (args.options.userNames) {
|
|
205
|
-
const isValidUPNArrayResult = validation.isValidUserPrincipalNameArray(args.options.userNames);
|
|
206
|
-
if (isValidUPNArrayResult !== true) {
|
|
207
|
-
return `The following user principal names are invalid for the option 'userNames': ${isValidUPNArrayResult}.`;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
if (args.options.role && !this.allowedRoles.some(role => role.toLowerCase() === args.options.role.toLowerCase())) {
|
|
211
|
-
return `'${args.options.role}' is not a valid role. Allowed values are: ${this.allowedRoles.join(',')}`;
|
|
212
|
-
}
|
|
213
|
-
return true;
|
|
214
|
-
});
|
|
215
|
-
}, _EntraM365GroupUserSetCommand_initOptionSets = function _EntraM365GroupUserSetCommand_initOptionSets() {
|
|
216
|
-
this.optionSets.push({ options: ['groupId', 'groupName', 'teamId', 'teamName'] });
|
|
217
|
-
this.optionSets.push({ options: ['ids', 'userNames'] });
|
|
218
|
-
}, _EntraM365GroupUserSetCommand_initTypes = function _EntraM365GroupUserSetCommand_initTypes() {
|
|
219
|
-
this.types.string.push('ids', 'userNames', 'groupId', 'groupName', 'teamId', 'teamName', 'role');
|
|
220
|
-
};
|
|
221
189
|
export default new EntraM365GroupUserSetCommand();
|
|
222
190
|
//# sourceMappingURL=m365group-user-set.js.map
|
|
@@ -53,22 +53,20 @@ class GraphSchemaExtensionListCommand extends GraphCommand {
|
|
|
53
53
|
};
|
|
54
54
|
try {
|
|
55
55
|
const res = await request.get(requestOptions);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
await logger.log(result);
|
|
71
|
-
}
|
|
56
|
+
const size = args.options.pageSize ? parseInt(args.options.pageSize) : res.value.length;
|
|
57
|
+
const result = res.value.slice(-size);
|
|
58
|
+
if (args.options.output !== 'json' && result.length > 1) {
|
|
59
|
+
await logger.log(result.map((x) => ({
|
|
60
|
+
id: x.id,
|
|
61
|
+
description: x.description,
|
|
62
|
+
targetTypes: x.targetTypes,
|
|
63
|
+
status: x.status,
|
|
64
|
+
owner: x.owner,
|
|
65
|
+
properties: JSON.stringify(x.properties)
|
|
66
|
+
})));
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
await logger.log(result);
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
72
|
catch (err) {
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { globalOptionsZod } from '../../../../Command.js';
|
|
3
|
+
import commands from '../../commands.js';
|
|
4
|
+
import GraphCommand from '../../../base/GraphCommand.js';
|
|
5
|
+
import { spe } from '../../../../utils/spe.js';
|
|
6
|
+
import request from '../../../../request.js';
|
|
7
|
+
import { formatting } from '../../../../utils/formatting.js';
|
|
8
|
+
import { cli } from '../../../../cli/cli.js';
|
|
9
|
+
export const options = z.strictObject({
|
|
10
|
+
...globalOptionsZod.shape,
|
|
11
|
+
id: z.string().alias('i'),
|
|
12
|
+
containerId: z.string().optional(),
|
|
13
|
+
containerName: z.string().alias('n').optional(),
|
|
14
|
+
containerTypeId: z.uuid().optional(),
|
|
15
|
+
containerTypeName: z.string().optional(),
|
|
16
|
+
force: z.boolean().alias('f').optional()
|
|
17
|
+
});
|
|
18
|
+
class SpeContainerPermissionRemoveCommand extends GraphCommand {
|
|
19
|
+
get name() {
|
|
20
|
+
return commands.CONTAINER_PERMISSION_REMOVE;
|
|
21
|
+
}
|
|
22
|
+
get description() {
|
|
23
|
+
return 'Removes SharePoint Embedded Container permission';
|
|
24
|
+
}
|
|
25
|
+
get schema() {
|
|
26
|
+
return options;
|
|
27
|
+
}
|
|
28
|
+
getRefinedSchema(schema) {
|
|
29
|
+
return schema
|
|
30
|
+
.refine((options) => [options.containerId, options.containerName].filter(o => o !== undefined).length === 1, {
|
|
31
|
+
error: 'Use one of the following options: containerId or containerName.',
|
|
32
|
+
params: {
|
|
33
|
+
customCode: 'optionSet',
|
|
34
|
+
options: ['containerId', 'containerName']
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
.refine((options) => !options.containerName || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 1, {
|
|
38
|
+
error: 'Use one of the following options when specifying the container name: containerTypeId or containerTypeName.',
|
|
39
|
+
params: {
|
|
40
|
+
customCode: 'optionSet',
|
|
41
|
+
options: ['containerTypeId', 'containerTypeName']
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
.refine((options) => options.containerName || [options.containerTypeId, options.containerTypeName].filter(o => o !== undefined).length === 0, {
|
|
45
|
+
error: 'Options containerTypeId and containerTypeName are only required when removing permissions from a container by name.'
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
async commandAction(logger, args) {
|
|
49
|
+
if (!args.options.force) {
|
|
50
|
+
const result = await cli.promptForConfirmation({ message: `Are you sure you want to remove permission '${args.options.id}' from container '${args.options.containerId || args.options.containerName}'?` });
|
|
51
|
+
if (!result) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
const containerId = await this.getContainerId(args.options, logger);
|
|
57
|
+
if (this.verbose) {
|
|
58
|
+
await logger.logToStderr(`Removing permissions from container with ID '${containerId}'...`);
|
|
59
|
+
}
|
|
60
|
+
const requestOptions = {
|
|
61
|
+
url: `${this.resource}/v1.0/storage/fileStorage/containers/${formatting.encodeQueryParameter(containerId)}/permissions/${formatting.encodeQueryParameter(args.options.id)}`,
|
|
62
|
+
headers: {
|
|
63
|
+
accept: 'application/json;odata.metadata=none'
|
|
64
|
+
},
|
|
65
|
+
responseType: 'json'
|
|
66
|
+
};
|
|
67
|
+
await request.delete(requestOptions);
|
|
68
|
+
}
|
|
69
|
+
catch (err) {
|
|
70
|
+
this.handleRejectedODataJsonPromise(err);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
async getContainerId(options, logger) {
|
|
74
|
+
if (options.containerId) {
|
|
75
|
+
return options.containerId;
|
|
76
|
+
}
|
|
77
|
+
const containerTypeId = await this.getContainerTypeId(options, logger);
|
|
78
|
+
if (this.verbose) {
|
|
79
|
+
await logger.logToStderr(`Getting container ID for container with name '${options.containerName}'...`);
|
|
80
|
+
}
|
|
81
|
+
return spe.getContainerIdByName(containerTypeId, options.containerName);
|
|
82
|
+
}
|
|
83
|
+
async getContainerTypeId(options, logger) {
|
|
84
|
+
if (options.containerTypeId) {
|
|
85
|
+
return options.containerTypeId;
|
|
86
|
+
}
|
|
87
|
+
if (this.verbose) {
|
|
88
|
+
await logger.logToStderr(`Getting container type with name '${options.containerTypeName}'...`);
|
|
89
|
+
}
|
|
90
|
+
return spe.getContainerTypeIdByName(options.containerTypeName);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export default new SpeContainerPermissionRemoveCommand();
|
|
94
|
+
//# sourceMappingURL=container-permission-remove.js.map
|
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
CONTAINER_REMOVE: `${prefix} container remove`,
|
|
8
8
|
CONTAINER_SET: `${prefix} container set`,
|
|
9
9
|
CONTAINER_PERMISSION_LIST: `${prefix} container permission list`,
|
|
10
|
+
CONTAINER_PERMISSION_REMOVE: `${prefix} container permission remove`,
|
|
10
11
|
CONTAINER_RECYCLEBINITEM_LIST: `${prefix} container recyclebinitem list`,
|
|
11
12
|
CONTAINER_RECYCLEBINITEM_REMOVE: `${prefix} container recyclebinitem remove`,
|
|
12
13
|
CONTAINER_RECYCLEBINITEM_RESTORE: `${prefix} container recyclebinitem restore`,
|
|
@@ -653,6 +653,21 @@ export const versions = {
|
|
|
653
653
|
range: '^4 || ^5 || ^6 || ^7',
|
|
654
654
|
fix: 'npm i -g yo@7'
|
|
655
655
|
}
|
|
656
|
+
},
|
|
657
|
+
'1.24.0': {
|
|
658
|
+
heft: {
|
|
659
|
+
range: '^1',
|
|
660
|
+
fix: 'npm i -g @rushstack/heft@1'
|
|
661
|
+
},
|
|
662
|
+
node: {
|
|
663
|
+
range: '>=22.14.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0 <27.0.0',
|
|
664
|
+
fix: 'Install Node.js >=22.14.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0 <27.0.0'
|
|
665
|
+
},
|
|
666
|
+
sp: SharePointVersion.SPO,
|
|
667
|
+
yo: {
|
|
668
|
+
range: '^4 || ^5 || ^6 || ^7',
|
|
669
|
+
fix: 'npm i -g yo@7'
|
|
670
|
+
}
|
|
656
671
|
}
|
|
657
672
|
};
|
|
658
673
|
//# sourceMappingURL=SpfxCompatibilityMatrix.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FN001008_DEP_react } from './rules/FN001008_DEP_react.js';
|
|
2
|
+
import { FN001009_DEP_react_dom } from './rules/FN001009_DEP_react_dom.js';
|
|
3
|
+
import { FN001035_DEP_fluentui_react } from './rules/FN001035_DEP_fluentui_react.js';
|
|
4
|
+
import { FN002013_DEVDEP_types_webpack_env } from './rules/FN002013_DEVDEP_types_webpack_env.js';
|
|
5
|
+
import { FN002015_DEVDEP_types_react } from './rules/FN002015_DEVDEP_types_react.js';
|
|
6
|
+
import { FN002016_DEVDEP_types_react_dom } from './rules/FN002016_DEVDEP_types_react_dom.js';
|
|
7
|
+
import { FN002022_DEVDEP_typescript } from './rules/FN002022_DEVDEP_typescript.js';
|
|
8
|
+
import { FN021001_PKG_spfx_deps_versions_match_project_version } from './rules/FN021001_PKG_spfx_deps_versions_match_project_version.js';
|
|
9
|
+
export default [
|
|
10
|
+
new FN001008_DEP_react({ supportedRange: '18' }),
|
|
11
|
+
new FN001009_DEP_react_dom({ supportedRange: '18' }),
|
|
12
|
+
new FN001035_DEP_fluentui_react({ supportedRange: '^8.106.4' }),
|
|
13
|
+
new FN002013_DEVDEP_types_webpack_env({ supportedRange: '~1.15.2' }),
|
|
14
|
+
new FN002015_DEVDEP_types_react({ supportedRange: '18' }),
|
|
15
|
+
new FN002016_DEVDEP_types_react_dom({ supportedRange: '18' }),
|
|
16
|
+
new FN002022_DEVDEP_typescript({ supportedRange: '~5.8.0' }),
|
|
17
|
+
new FN021001_PKG_spfx_deps_versions_match_project_version({ includeDevDeps: true })
|
|
18
|
+
];
|
|
19
|
+
//# sourceMappingURL=doctor-1.24.0.js.map
|
|
@@ -78,7 +78,8 @@ class SpfxProjectDoctorCommand extends BaseProjectCommand {
|
|
|
78
78
|
'1.22.1',
|
|
79
79
|
'1.22.2',
|
|
80
80
|
'1.23.0',
|
|
81
|
-
'1.23.2'
|
|
81
|
+
'1.23.2',
|
|
82
|
+
'1.24.0'
|
|
82
83
|
];
|
|
83
84
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initTelemetry).call(this);
|
|
84
85
|
__classPrivateFieldGet(this, _SpfxProjectDoctorCommand_instances, "m", _SpfxProjectDoctorCommand_initOptions).call(this);
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012021_TSC_excludeDirectories.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { JsonRule } from '../../JsonRule.js';
|
|
2
|
+
export class FN012021_TSC_excludeDirectories extends JsonRule {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super();
|
|
5
|
+
this.directories = options.directories;
|
|
6
|
+
}
|
|
7
|
+
get id() {
|
|
8
|
+
return 'FN012021';
|
|
9
|
+
}
|
|
10
|
+
get title() {
|
|
11
|
+
return 'tsconfig.json watchOptions.excludeDirectories property';
|
|
12
|
+
}
|
|
13
|
+
get description() {
|
|
14
|
+
return `Update tsconfig.json watchOptions.excludeDirectories property`;
|
|
15
|
+
}
|
|
16
|
+
get resolution() {
|
|
17
|
+
return `{
|
|
18
|
+
"watchOptions": {
|
|
19
|
+
"excludeDirectories": ${JSON.stringify(this.directories)}
|
|
20
|
+
}
|
|
21
|
+
}`;
|
|
22
|
+
}
|
|
23
|
+
get resolutionType() {
|
|
24
|
+
return 'json';
|
|
25
|
+
}
|
|
26
|
+
get severity() {
|
|
27
|
+
return 'Required';
|
|
28
|
+
}
|
|
29
|
+
get file() {
|
|
30
|
+
return './tsconfig.json';
|
|
31
|
+
}
|
|
32
|
+
visit(project, findings) {
|
|
33
|
+
if (!project.tsConfigJson) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (!project.tsConfigJson.watchOptions?.excludeDirectories ||
|
|
37
|
+
JSON.stringify(project.tsConfigJson.watchOptions.excludeDirectories) !== JSON.stringify(this.directories)) {
|
|
38
|
+
const node = this.getAstNodeFromFile(project.tsConfigJson, 'watchOptions.excludeDirectories');
|
|
39
|
+
this.addFindingWithPosition(findings, node);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=FN012021_TSC_excludeDirectories.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DependencyRule } from "./DependencyRule.js";
|
|
2
|
+
export class FN027002_OVERRIDES_qs extends DependencyRule {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super({ packageName: 'qs', packageVersion: options.version, isOverride: true });
|
|
5
|
+
}
|
|
6
|
+
get id() {
|
|
7
|
+
return 'FN027002';
|
|
8
|
+
}
|
|
9
|
+
visit(project, findings) {
|
|
10
|
+
// If an override entry for the package already exists in package.json,
|
|
11
|
+
// emit an extra finding to remove the existing override first. This avoids
|
|
12
|
+
// having to use a separate remove-override rule (e.g. FN027002) in the upgrade scripts.
|
|
13
|
+
if (project.packageJson?.overrides?.[this.packageName] &&
|
|
14
|
+
project.packageJson.overrides[this.packageName] !== this.packageVersion) {
|
|
15
|
+
const node = this.getAstNodeFromFile(project.packageJson, `overrides.${this.packageName}`);
|
|
16
|
+
findings.push({
|
|
17
|
+
id: `${this.id}_REMOVE`,
|
|
18
|
+
title: this.packageName,
|
|
19
|
+
description: `Remove existing SharePoint Framework override dependency package ${this.packageName}`,
|
|
20
|
+
occurrences: [{
|
|
21
|
+
file: this.file,
|
|
22
|
+
resolution: `removeOverride overrides.${this.packageName}`,
|
|
23
|
+
position: this.getPositionFromNode(node)
|
|
24
|
+
}],
|
|
25
|
+
resolutionType: 'cmd',
|
|
26
|
+
severity: 'Required',
|
|
27
|
+
supersedes: []
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
super.visit(project, findings);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=FN027002_OVERRIDES_qs.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DependencyRule } from "./DependencyRule.js";
|
|
2
|
+
export class FN027003_OVERRIDES_uuid extends DependencyRule {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super({ packageName: 'uuid', packageVersion: options.version, isOverride: true });
|
|
5
|
+
}
|
|
6
|
+
get id() {
|
|
7
|
+
return 'FN027003';
|
|
8
|
+
}
|
|
9
|
+
visit(project, findings) {
|
|
10
|
+
// If an override entry for the package already exists in package.json,
|
|
11
|
+
// emit an extra finding to remove the existing override first. This avoids
|
|
12
|
+
// having to use a separate remove-override rule (e.g. FN027003) in the upgrade scripts.
|
|
13
|
+
if (project.packageJson?.overrides?.[this.packageName] &&
|
|
14
|
+
project.packageJson.overrides[this.packageName] !== this.packageVersion) {
|
|
15
|
+
const node = this.getAstNodeFromFile(project.packageJson, `overrides.${this.packageName}`);
|
|
16
|
+
findings.push({
|
|
17
|
+
id: `${this.id}_REMOVE`,
|
|
18
|
+
title: this.packageName,
|
|
19
|
+
description: `Remove existing SharePoint Framework override dependency package ${this.packageName}`,
|
|
20
|
+
occurrences: [{
|
|
21
|
+
file: this.file,
|
|
22
|
+
resolution: `removeOverride overrides.${this.packageName}`,
|
|
23
|
+
position: this.getPositionFromNode(node)
|
|
24
|
+
}],
|
|
25
|
+
resolutionType: 'cmd',
|
|
26
|
+
severity: 'Required',
|
|
27
|
+
supersedes: []
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
super.visit(project, findings);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=FN027003_OVERRIDES_uuid.js.map
|