@pnp/cli-microsoft365 7.4.0-beta.fce7b64 → 7.4.0
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/.eslintrc.cjs +7 -0
- package/README.md +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +2 -1
- package/dist/appInsights.js +2 -0
- package/dist/cli/cli.js +1 -0
- package/dist/m365/app/commands/app-get.js +1 -1
- package/dist/m365/app/commands/permission/permission-list.js +1 -1
- package/dist/m365/{aad/commands.js → entra/aadCommands.js} +2 -1
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-get.js +18 -14
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-remove.js +18 -14
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +102 -0
- package/dist/m365/{aad → entra}/commands/app/app-add.js +25 -21
- package/dist/m365/{aad → entra}/commands/app/app-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/app/app-permission-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/app/app-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-role-add.js +18 -14
- package/dist/m365/{aad → entra}/commands/app/app-role-list.js +15 -11
- package/dist/m365/{aad → entra}/commands/app/app-role-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-set.js +18 -14
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-add.js +17 -13
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/group/group-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/group/group-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/group/group-remove.js +19 -15
- package/dist/m365/{aad → entra}/commands/group/group-user-list.js +17 -13
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-get.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-remove.js +14 -10
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-set.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/license/license-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/m365group/m365group-add.js +19 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-post-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-get.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-clear.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-restore.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/m365group/m365group-renew.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitycounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitydetail.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activityfilecounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitygroupcounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitystorage.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-set.js +19 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-teamify.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-add.js +14 -13
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +154 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-remove.js +14 -13
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-set.js +14 -13
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-remove.js +10 -6
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-set.js +10 -6
- package/dist/m365/{aad → entra}/commands/policy/policy-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-disable.js +12 -8
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-enable.js +12 -8
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-get.js +6 -2
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-set.js +14 -10
- package/dist/m365/{aad → entra}/commands/sp/sp-add.js +17 -13
- package/dist/m365/{aad → entra}/commands/sp/sp-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/sp/sp-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-add.js +18 -14
- package/dist/m365/{aad → entra}/commands/user/user-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-guest-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-hibp.js +14 -10
- package/dist/m365/{aad → entra}/commands/user/user-license-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-license-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-license-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-password-validate.js +10 -6
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-clear.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-remove.js +14 -10
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-restore.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-set.js +18 -14
- package/dist/m365/{aad → entra}/commands/user/user-signin-list.js +15 -11
- package/dist/m365/entra/commands.js +86 -0
- package/dist/m365/external/commands/connection/connection-urltoitemresolver-add.js +69 -0
- package/dist/m365/external/commands.js +1 -0
- package/dist/m365/flow/commands/run/run-get.js +52 -13
- package/dist/m365/pa/commands/app/app-get.js +26 -11
- package/dist/m365/pa/commands/app/app-remove.js +19 -2
- package/dist/m365/spo/commands/file/file-add.js +12 -8
- package/dist/m365/spo/commands/file/file-checkin.js +4 -1
- package/dist/m365/spo/commands/file/file-checkout-undo.js +5 -1
- package/dist/m365/spo/commands/file/file-checkout.js +4 -1
- package/dist/m365/spo/commands/file/file-copy.js +5 -1
- package/dist/m365/spo/commands/file/file-get.js +5 -1
- package/dist/m365/spo/commands/file/file-list.js +5 -1
- package/dist/m365/spo/commands/file/file-move.js +5 -1
- package/dist/m365/spo/commands/file/file-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-rename.js +5 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +4 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +4 -1
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +5 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +5 -1
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +6 -3
- package/dist/m365/spo/commands/file/file-sharinglink-add.js +4 -1
- package/dist/m365/spo/commands/file/file-sharinglink-clear.js +5 -1
- package/dist/m365/spo/commands/file/file-sharinglink-get.js +4 -1
- package/dist/m365/spo/commands/file/file-sharinglink-list.js +4 -1
- package/dist/m365/spo/commands/file/file-sharinglink-remove.js +5 -1
- package/dist/m365/spo/commands/file/file-sharinglink-set.js +4 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +6 -2
- package/dist/m365/spo/commands/file/file-version-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +4 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +2 -1
- package/dist/m365/spo/commands/file/file-version-restore.js +2 -1
- package/dist/m365/spo/commands/folder/folder-add.js +4 -1
- package/dist/m365/spo/commands/folder/folder-copy.js +5 -1
- package/dist/m365/spo/commands/folder/folder-get.js +4 -1
- package/dist/m365/spo/commands/folder/folder-list.js +6 -2
- package/dist/m365/spo/commands/folder/folder-move.js +5 -1
- package/dist/m365/spo/commands/folder/folder-remove.js +5 -1
- package/dist/m365/spo/commands/folder/folder-rename.js +4 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +4 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +5 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +4 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +6 -2
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +5 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +5 -1
- package/dist/m365/spo/commands/group/group-member-add.js +21 -4
- package/dist/m365/spo/commands/group/group-member-remove.js +28 -11
- package/dist/m365/spo/commands/group/group-set.js +1 -1
- package/dist/m365/spo/commands/site/site-set.js +1 -1
- package/dist/m365/spo/commands/user/user-ensure.js +16 -6
- package/dist/m365/teams/commands/app/app-install.js +1 -1
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
- package/dist/m365/teams/commands/user/user-app-add.js +35 -3
- package/dist/request.js +16 -0
- package/dist/utils/md.js +2 -2
- package/dist/utils/roleAssignment.js +42 -0
- package/dist/utils/roleDefinition.js +24 -0
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-add.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-add.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-list.mdx +16 -10
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-remove.mdx +9 -3
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +116 -0
- package/docs/docs/cmd/{aad → entra}/app/app-add.mdx +44 -38
- package/docs/docs/cmd/{aad → entra}/app/app-get.mdx +23 -17
- package/docs/docs/cmd/{aad → entra}/app/app-list.mdx +11 -5
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +68 -0
- package/docs/docs/cmd/entra/app/app-remove.mdx +65 -0
- package/docs/docs/cmd/entra/app/app-role-add.mdx +74 -0
- package/docs/docs/cmd/{aad → entra}/app/app-role-list.mdx +20 -14
- package/docs/docs/cmd/entra/app/app-role-remove.mdx +84 -0
- package/docs/docs/cmd/entra/app/app-set.mdx +103 -0
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-add.mdx +14 -8
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-remove.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/group/group-get.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/group/group-list.mdx +13 -7
- package/docs/docs/cmd/entra/group/group-remove.mdx +50 -0
- package/docs/docs/cmd/{aad → entra}/group/group-user-list.mdx +17 -11
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-add.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-set.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-get.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/license/license-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-add.mdx +17 -11
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-post-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-get.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-list.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-clear.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-remove.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-restore.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-remove.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-renew.mdx +8 -2
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitycounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitydetail.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activityfilecounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitygroupcounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitystorage.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-set.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-teamify.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-add.mdx +9 -3
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +131 -0
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-remove.mdx +9 -5
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-set.mdx +10 -6
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-add.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-list.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-remove.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-set.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/policy/policy-list.mdx +14 -8
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-disable.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-enable.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-set.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/sp/sp-add.mdx +25 -19
- package/docs/docs/cmd/{aad → entra}/sp/sp-get.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/sp/sp-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-add.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/user/user-get.mdx +16 -10
- package/docs/docs/cmd/{aad → entra}/user/user-guest-add.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/user/user-hibp.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-license-add.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-license-list.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/user/user-license-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/user/user-password-validate.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-clear.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-restore.mdx +8 -2
- package/docs/docs/cmd/{aad → entra}/user/user-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-set.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/user/user-signin-list.mdx +19 -13
- package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +47 -0
- package/docs/docs/cmd/flow/run/run-get.mdx +167 -4
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-get.mdx +15 -0
- package/docs/docs/cmd/pa/app/app-remove.mdx +14 -0
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
- package/docs/docs/cmd/spo/group/group-member-add.mdx +19 -7
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +12 -6
- package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-set.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
- package/docs/docs/cmd/spo/user/user-ensure.mdx +8 -5
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/docs/docs/cmd/teams/user/user-app-add.mdx +8 -5
- package/npm-shrinkwrap.json +184 -430
- package/package.json +10 -10
- package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
- package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
- package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
- package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
- package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
- package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
- package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
- package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
- /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
- /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
- /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const prefix = 'entra';
|
|
2
|
+
export default {
|
|
3
|
+
ADMINISTRATIVEUNIT_ADD: `${prefix} administrativeunit add`,
|
|
4
|
+
ADMINISTRATIVEUNIT_GET: `${prefix} administrativeunit get`,
|
|
5
|
+
ADMINISTRATIVEUNIT_LIST: `${prefix} administrativeunit list`,
|
|
6
|
+
ADMINISTRATIVEUNIT_REMOVE: `${prefix} administrativeunit remove`,
|
|
7
|
+
ADMINISTRATIVEUNIT_MEMBER_ADD: `${prefix} administrativeunit member add`,
|
|
8
|
+
ADMINISTRATIVEUNIT_MEMBER_GET: `${prefix} administrativeunit member get`,
|
|
9
|
+
ADMINISTRATIVEUNIT_MEMBER_LIST: `${prefix} administrativeunit member list`,
|
|
10
|
+
ADMINISTRATIVEUNIT_ROLEASSIGNMENT_ADD: `${prefix} administrativeunit roleassignment add`,
|
|
11
|
+
APP_ADD: `${prefix} app add`,
|
|
12
|
+
APP_GET: `${prefix} app get`,
|
|
13
|
+
APP_LIST: `${prefix} app list`,
|
|
14
|
+
APP_REMOVE: `${prefix} app remove`,
|
|
15
|
+
APP_SET: `${prefix} app set`,
|
|
16
|
+
APP_PERMISSION_ADD: `${prefix} app permission add`,
|
|
17
|
+
APP_ROLE_ADD: `${prefix} app role add`,
|
|
18
|
+
APP_ROLE_LIST: `${prefix} app role list`,
|
|
19
|
+
APP_ROLE_REMOVE: `${prefix} app role remove`,
|
|
20
|
+
APPROLEASSIGNMENT_ADD: `${prefix} approleassignment add`,
|
|
21
|
+
APPROLEASSIGNMENT_LIST: `${prefix} approleassignment list`,
|
|
22
|
+
APPROLEASSIGNMENT_REMOVE: `${prefix} approleassignment remove`,
|
|
23
|
+
GROUP_GET: `${prefix} group get`,
|
|
24
|
+
GROUP_LIST: `${prefix} group list`,
|
|
25
|
+
GROUP_REMOVE: `${prefix} group remove`,
|
|
26
|
+
GROUP_USER_LIST: `${prefix} group user list`,
|
|
27
|
+
GROUPSETTING_ADD: `${prefix} groupsetting add`,
|
|
28
|
+
GROUPSETTING_GET: `${prefix} groupsetting get`,
|
|
29
|
+
GROUPSETTING_LIST: `${prefix} groupsetting list`,
|
|
30
|
+
GROUPSETTING_REMOVE: `${prefix} groupsetting remove`,
|
|
31
|
+
GROUPSETTING_SET: `${prefix} groupsetting set`,
|
|
32
|
+
GROUPSETTINGTEMPLATE_GET: `${prefix} groupsettingtemplate get`,
|
|
33
|
+
GROUPSETTINGTEMPLATE_LIST: `${prefix} groupsettingtemplate list`,
|
|
34
|
+
LICENSE_LIST: `${prefix} license list`,
|
|
35
|
+
M365GROUP_ADD: `${prefix} m365group add`,
|
|
36
|
+
M365GROUP_GET: `${prefix} m365group get`,
|
|
37
|
+
M365GROUP_LIST: `${prefix} m365group list`,
|
|
38
|
+
M365GROUP_CONVERSATION_LIST: `${prefix} m365group conversation list`,
|
|
39
|
+
M365GROUP_CONVERSATION_POST_LIST: `${prefix} m365group conversation post list`,
|
|
40
|
+
M365GROUP_RECYCLEBINITEM_CLEAR: `${prefix} m365group recyclebinitem clear`,
|
|
41
|
+
M365GROUP_RECYCLEBINITEM_LIST: `${prefix} m365group recyclebinitem list`,
|
|
42
|
+
M365GROUP_RECYCLEBINITEM_REMOVE: `${prefix} m365group recyclebinitem remove`,
|
|
43
|
+
M365GROUP_RECYCLEBINITEM_RESTORE: `${prefix} m365group recyclebinitem restore`,
|
|
44
|
+
M365GROUP_SET: `${prefix} m365group set`,
|
|
45
|
+
M365GROUP_TEAMIFY: `${prefix} m365group teamify`,
|
|
46
|
+
M365GROUP_REMOVE: `${prefix} m365group remove`,
|
|
47
|
+
M365GROUP_RENEW: `${prefix} m365group renew`,
|
|
48
|
+
M365GROUP_REPORT_ACTIVITYCOUNTS: `${prefix} m365group report activitycounts`,
|
|
49
|
+
M365GROUP_REPORT_ACTIVITYDETAIL: `${prefix} m365group report activitydetail`,
|
|
50
|
+
M365GROUP_REPORT_ACTIVITYFILECOUNTS: `${prefix} m365group report activityfilecounts`,
|
|
51
|
+
M365GROUP_REPORT_ACTIVITYGROUPCOUNTS: `${prefix} m365group report activitygroupcounts`,
|
|
52
|
+
M365GROUP_REPORT_ACTIVITYSTORAGE: `${prefix} m365group report activitystorage`,
|
|
53
|
+
M365GROUP_USER_ADD: `${prefix} m365group user add`,
|
|
54
|
+
M365GROUP_USER_LIST: `${prefix} m365group user list`,
|
|
55
|
+
M365GROUP_USER_REMOVE: `${prefix} m365group user remove`,
|
|
56
|
+
M365GROUP_USER_SET: `${prefix} m365group user set`,
|
|
57
|
+
OAUTH2GRANT_ADD: `${prefix} oauth2grant add`,
|
|
58
|
+
OAUTH2GRANT_LIST: `${prefix} oauth2grant list`,
|
|
59
|
+
OAUTH2GRANT_REMOVE: `${prefix} oauth2grant remove`,
|
|
60
|
+
OAUTH2GRANT_SET: `${prefix} oauth2grant set`,
|
|
61
|
+
POLICY_LIST: `${prefix} policy list`,
|
|
62
|
+
SITECLASSIFICATION_DISABLE: `${prefix} siteclassification disable`,
|
|
63
|
+
SITECLASSIFICATION_ENABLE: `${prefix} siteclassification enable`,
|
|
64
|
+
SITECLASSIFICATION_GET: `${prefix} siteclassification get`,
|
|
65
|
+
SITECLASSIFICATION_SET: `${prefix} siteclassification set`,
|
|
66
|
+
SP_ADD: `${prefix} sp add`,
|
|
67
|
+
SP_GET: `${prefix} sp get`,
|
|
68
|
+
SP_LIST: `${prefix} sp list`,
|
|
69
|
+
USER_ADD: `${prefix} user add`,
|
|
70
|
+
USER_GET: `${prefix} user get`,
|
|
71
|
+
USER_GUEST_ADD: `${prefix} user guest add`,
|
|
72
|
+
USER_HIBP: `${prefix} user hibp`,
|
|
73
|
+
USER_LICENSE_ADD: `${prefix} user license add`,
|
|
74
|
+
USER_LICENSE_LIST: `${prefix} user license list`,
|
|
75
|
+
USER_LICENSE_REMOVE: `${prefix} user license remove`,
|
|
76
|
+
USER_LIST: `${prefix} user list`,
|
|
77
|
+
USER_PASSWORD_VALIDATE: `${prefix} user password validate`,
|
|
78
|
+
USER_RECYCLEBINITEM_CLEAR: `${prefix} user recyclebinitem clear`,
|
|
79
|
+
USER_RECYCLEBINITEM_LIST: `${prefix} user recyclebinitem list`,
|
|
80
|
+
USER_RECYCLEBINITEM_REMOVE: `${prefix} user recyclebinitem remove`,
|
|
81
|
+
USER_REMOVE: `${prefix} user remove`,
|
|
82
|
+
USER_RECYCLEBINITEM_RESTORE: `${prefix} user recyclebinitem restore`,
|
|
83
|
+
USER_SET: `${prefix} user set`,
|
|
84
|
+
USER_SIGNIN_LIST: `${prefix} user signin list`
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
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 _ExternalConnectionUrlToItemResolverAddCommand_instances, _ExternalConnectionUrlToItemResolverAddCommand_initOptions;
|
|
7
|
+
import request from '../../../../request.js';
|
|
8
|
+
import GraphCommand from '../../../base/GraphCommand.js';
|
|
9
|
+
import commands from '../../commands.js';
|
|
10
|
+
class ExternalConnectionUrlToItemResolverAddCommand extends GraphCommand {
|
|
11
|
+
get name() {
|
|
12
|
+
return commands.CONNECTION_URLTOITEMRESOLVER_ADD;
|
|
13
|
+
}
|
|
14
|
+
get description() {
|
|
15
|
+
return 'Adds a URL to item resolver to an external connection';
|
|
16
|
+
}
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
_ExternalConnectionUrlToItemResolverAddCommand_instances.add(this);
|
|
20
|
+
__classPrivateFieldGet(this, _ExternalConnectionUrlToItemResolverAddCommand_instances, "m", _ExternalConnectionUrlToItemResolverAddCommand_initOptions).call(this);
|
|
21
|
+
}
|
|
22
|
+
async commandAction(logger, args) {
|
|
23
|
+
const baseUrls = args.options.baseUrls.split(',').map(b => b.trim());
|
|
24
|
+
const itemIdResolver = {
|
|
25
|
+
itemId: args.options.itemId,
|
|
26
|
+
priority: args.options.priority,
|
|
27
|
+
urlMatchInfo: {
|
|
28
|
+
baseUrls: baseUrls,
|
|
29
|
+
urlPattern: args.options.urlPattern
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
// not a part of the type definition, but required by the API
|
|
33
|
+
itemIdResolver['@odata.type'] = '#microsoft.graph.externalConnectors.itemIdResolver';
|
|
34
|
+
const requestOptions = {
|
|
35
|
+
url: `${this.resource}/v1.0/external/connections/${args.options.externalConnectionId}`,
|
|
36
|
+
headers: {
|
|
37
|
+
accept: 'application/json;odata.metadata=none',
|
|
38
|
+
'content-type': 'application/json'
|
|
39
|
+
},
|
|
40
|
+
responseType: 'json',
|
|
41
|
+
data: {
|
|
42
|
+
activitySettings: {
|
|
43
|
+
urlToItemResolvers: [itemIdResolver]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
try {
|
|
48
|
+
await request.patch(requestOptions);
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
this.handleRejectedODataJsonPromise(err);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
_ExternalConnectionUrlToItemResolverAddCommand_instances = new WeakSet(), _ExternalConnectionUrlToItemResolverAddCommand_initOptions = function _ExternalConnectionUrlToItemResolverAddCommand_initOptions() {
|
|
56
|
+
this.options.unshift({
|
|
57
|
+
option: '-c, --externalConnectionId <externalConnectionId>'
|
|
58
|
+
}, {
|
|
59
|
+
option: '--baseUrls <baseUrls>'
|
|
60
|
+
}, {
|
|
61
|
+
option: '--urlPattern <urlPattern>'
|
|
62
|
+
}, {
|
|
63
|
+
option: '-i, --itemId <itemId>'
|
|
64
|
+
}, {
|
|
65
|
+
option: '-p, --priority <priority>'
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
export default new ExternalConnectionUrlToItemResolverAddCommand();
|
|
69
|
+
//# sourceMappingURL=connection-urltoitemresolver-add.js.map
|
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
CONNECTION_LIST: `${prefix} connection list`,
|
|
8
8
|
CONNECTION_REMOVE: `${prefix} connection remove`,
|
|
9
9
|
CONNECTION_SCHEMA_ADD: `${prefix} connection schema add`,
|
|
10
|
+
CONNECTION_URLTOITEMRESOLVER_ADD: `${prefix} connection urltoitemresolver add`,
|
|
10
11
|
EXTERNALCONNECTION_ADD: `${searchPrefix} externalconnection add`,
|
|
11
12
|
EXTERNALCONNECTION_GET: `${searchPrefix} externalconnection get`,
|
|
12
13
|
EXTERNALCONNECTION_LIST: `${searchPrefix} externalconnection list`,
|
|
@@ -30,8 +30,12 @@ class FlowRunGetCommand extends PowerAutomateCommand {
|
|
|
30
30
|
if (this.verbose) {
|
|
31
31
|
await logger.logToStderr(`Retrieving information about run ${args.options.name} of Microsoft Flow ${args.options.flowName}...`);
|
|
32
32
|
}
|
|
33
|
+
if (args.options.includeTriggerInformation) {
|
|
34
|
+
await this.warn(logger, `Parameter 'includeTriggerInformation' is deprecated. Please use 'withTrigger instead`);
|
|
35
|
+
}
|
|
36
|
+
const actionsParameter = args.options.withActions ? '$expand=properties%2Factions&' : '';
|
|
33
37
|
const requestOptions = {
|
|
34
|
-
url: `${this.resource}/providers/Microsoft.ProcessSimple/environments/${formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting.encodeQueryParameter(args.options.flowName)}/runs/${formatting.encodeQueryParameter(args.options.name)}
|
|
38
|
+
url: `${this.resource}/providers/Microsoft.ProcessSimple/environments/${formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting.encodeQueryParameter(args.options.flowName)}/runs/${formatting.encodeQueryParameter(args.options.name)}?${actionsParameter}api-version=2016-11-01`,
|
|
35
39
|
headers: {
|
|
36
40
|
accept: 'application/json'
|
|
37
41
|
},
|
|
@@ -43,17 +47,11 @@ class FlowRunGetCommand extends PowerAutomateCommand {
|
|
|
43
47
|
res.endTime = res.properties.endTime || '';
|
|
44
48
|
res.status = res.properties.status;
|
|
45
49
|
res.triggerName = res.properties.trigger.name;
|
|
46
|
-
if (args.options.includeTriggerInformation && res.properties.trigger.outputsLink) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'x-anonymous': true
|
|
52
|
-
},
|
|
53
|
-
responseType: 'json'
|
|
54
|
-
};
|
|
55
|
-
const triggerInformationResponse = await request.get(triggerInformationOptions);
|
|
56
|
-
res.triggerInformation = triggerInformationResponse.body;
|
|
50
|
+
if ((args.options.includeTriggerInformation || args.options.withTrigger) && res.properties.trigger.outputsLink) {
|
|
51
|
+
res.triggerInformation = await this.getTriggerInformation(res);
|
|
52
|
+
}
|
|
53
|
+
if (!!args.options.withActions) {
|
|
54
|
+
res.actions = await this.getActionsInformation(res, args.options.withActions);
|
|
57
55
|
}
|
|
58
56
|
await logger.log(res);
|
|
59
57
|
}
|
|
@@ -61,6 +59,38 @@ class FlowRunGetCommand extends PowerAutomateCommand {
|
|
|
61
59
|
this.handleRejectedODataJsonPromise(err);
|
|
62
60
|
}
|
|
63
61
|
}
|
|
62
|
+
async getTriggerInformation(res) {
|
|
63
|
+
return await this.requestAdditionalInformation(res.properties.trigger.outputsLink.uri);
|
|
64
|
+
}
|
|
65
|
+
async getActionsInformation(res, withActions) {
|
|
66
|
+
const chosenActions = typeof withActions === 'string' ? withActions.split(',') : null;
|
|
67
|
+
const actionsResult = {};
|
|
68
|
+
for (const action in res.properties.actions) {
|
|
69
|
+
if (!res.properties.actions[action] || (chosenActions && chosenActions.indexOf(action) === -1)) {
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
actionsResult[action] = res.properties.actions[action];
|
|
73
|
+
if (!!res.properties.actions[action].inputsLink?.uri) {
|
|
74
|
+
actionsResult[action].input = await this.requestAdditionalInformation(res.properties.actions[action].inputsLink?.uri);
|
|
75
|
+
}
|
|
76
|
+
if (!!res.properties.actions[action].outputsLink?.uri) {
|
|
77
|
+
actionsResult[action].output = await this.requestAdditionalInformation(res.properties.actions[action].outputsLink?.uri);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return actionsResult;
|
|
81
|
+
}
|
|
82
|
+
async requestAdditionalInformation(requestUri) {
|
|
83
|
+
const additionalInformationOptions = {
|
|
84
|
+
url: requestUri,
|
|
85
|
+
headers: {
|
|
86
|
+
accept: 'application/json',
|
|
87
|
+
'x-anonymous': true
|
|
88
|
+
},
|
|
89
|
+
responseType: 'json'
|
|
90
|
+
};
|
|
91
|
+
const additionalInformationResponse = await request.get(additionalInformationOptions);
|
|
92
|
+
return additionalInformationResponse.body ? additionalInformationResponse.body : additionalInformationResponse;
|
|
93
|
+
}
|
|
64
94
|
}
|
|
65
95
|
_FlowRunGetCommand_instances = new WeakSet(), _FlowRunGetCommand_initOptions = function _FlowRunGetCommand_initOptions() {
|
|
66
96
|
this.options.unshift({
|
|
@@ -71,18 +101,27 @@ _FlowRunGetCommand_instances = new WeakSet(), _FlowRunGetCommand_initOptions = f
|
|
|
71
101
|
option: '-e, --environmentName <environmentName>'
|
|
72
102
|
}, {
|
|
73
103
|
option: '--includeTriggerInformation'
|
|
104
|
+
}, {
|
|
105
|
+
option: '--withTrigger'
|
|
106
|
+
}, {
|
|
107
|
+
option: '--withActions [withActions]'
|
|
74
108
|
});
|
|
75
109
|
}, _FlowRunGetCommand_initValidators = function _FlowRunGetCommand_initValidators() {
|
|
76
110
|
this.validators.push(async (args) => {
|
|
77
111
|
if (!validation.isValidGuid(args.options.flowName)) {
|
|
78
112
|
return `${args.options.flowName} is not a valid GUID`;
|
|
79
113
|
}
|
|
114
|
+
if (args.options.withActions && (typeof args.options.withActions !== 'string' && typeof args.options.withActions !== 'boolean')) {
|
|
115
|
+
return 'the withActions parameter must be a string or boolean';
|
|
116
|
+
}
|
|
80
117
|
return true;
|
|
81
118
|
});
|
|
82
119
|
}, _FlowRunGetCommand_initTelemetry = function _FlowRunGetCommand_initTelemetry() {
|
|
83
120
|
this.telemetry.push((args) => {
|
|
84
121
|
Object.assign(this.telemetryProperties, {
|
|
85
|
-
includeTriggerInformation: !!args.options.includeTriggerInformation
|
|
122
|
+
includeTriggerInformation: !!args.options.includeTriggerInformation,
|
|
123
|
+
withTrigger: !!args.options.withTrigger,
|
|
124
|
+
withActions: typeof args.options.withActions !== 'undefined'
|
|
86
125
|
});
|
|
87
126
|
});
|
|
88
127
|
};
|
|
@@ -32,8 +32,13 @@ class PaAppGetCommand extends PowerAppsCommand {
|
|
|
32
32
|
async commandAction(logger, args) {
|
|
33
33
|
try {
|
|
34
34
|
if (args.options.name) {
|
|
35
|
+
let endpoint = `${this.resource}/providers/Microsoft.PowerApps`;
|
|
36
|
+
if (args.options.asAdmin) {
|
|
37
|
+
endpoint += `/scopes/admin/environments/${formatting.encodeQueryParameter(args.options.environmentName)}`;
|
|
38
|
+
}
|
|
39
|
+
endpoint += `/apps/${formatting.encodeQueryParameter(args.options.name)}?api-version=2016-11-01`;
|
|
35
40
|
const requestOptions = {
|
|
36
|
-
url:
|
|
41
|
+
url: endpoint,
|
|
37
42
|
headers: {
|
|
38
43
|
accept: 'application/json'
|
|
39
44
|
},
|
|
@@ -50,8 +55,8 @@ class PaAppGetCommand extends PowerAppsCommand {
|
|
|
50
55
|
await logger.logToStderr(`Retrieving information about Microsoft Power App with displayName '${args.options.displayName}'...`);
|
|
51
56
|
}
|
|
52
57
|
const getAppsOutput = await this.getApps(args, logger);
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
if (getAppsOutput.stdout && JSON.parse(getAppsOutput.stdout).length > 0) {
|
|
59
|
+
const allApps = JSON.parse(getAppsOutput.stdout);
|
|
55
60
|
const app = allApps.find((a) => {
|
|
56
61
|
return a.properties.displayName.toLowerCase() === `${args.options.displayName}`.toLowerCase();
|
|
57
62
|
});
|
|
@@ -59,15 +64,11 @@ class PaAppGetCommand extends PowerAppsCommand {
|
|
|
59
64
|
await logger.log(this.setProperties(app));
|
|
60
65
|
}
|
|
61
66
|
else {
|
|
62
|
-
|
|
63
|
-
await logger.logToStderr(`No app found with displayName '${args.options.displayName}'`);
|
|
64
|
-
}
|
|
67
|
+
throw `No app found with displayName '${args.options.displayName}'.`;
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
else {
|
|
68
|
-
|
|
69
|
-
await logger.logToStderr('No apps found');
|
|
70
|
-
}
|
|
71
|
+
throw 'No apps found.';
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -82,7 +83,9 @@ class PaAppGetCommand extends PowerAppsCommand {
|
|
|
82
83
|
const options = {
|
|
83
84
|
output: 'json',
|
|
84
85
|
debug: this.debug,
|
|
85
|
-
verbose: this.verbose
|
|
86
|
+
verbose: this.verbose,
|
|
87
|
+
environmentName: args.options.environmentName,
|
|
88
|
+
asAdmin: args.options.asAdmin
|
|
86
89
|
};
|
|
87
90
|
return await cli.executeCommandWithOutput(paAppListCommand, { options: { ...options, _: [] } });
|
|
88
91
|
}
|
|
@@ -98,7 +101,9 @@ _PaAppGetCommand_instances = new WeakSet(), _PaAppGetCommand_initTelemetry = fun
|
|
|
98
101
|
this.telemetry.push((args) => {
|
|
99
102
|
Object.assign(this.telemetryProperties, {
|
|
100
103
|
name: typeof args.options.name !== 'undefined',
|
|
101
|
-
displayName: typeof args.options.displayName !== 'undefined'
|
|
104
|
+
displayName: typeof args.options.displayName !== 'undefined',
|
|
105
|
+
asAdmin: !!args.options.asAdmin,
|
|
106
|
+
environmentName: typeof args.options.environmentName !== 'undefined'
|
|
102
107
|
});
|
|
103
108
|
});
|
|
104
109
|
}, _PaAppGetCommand_initOptions = function _PaAppGetCommand_initOptions() {
|
|
@@ -106,12 +111,22 @@ _PaAppGetCommand_instances = new WeakSet(), _PaAppGetCommand_initTelemetry = fun
|
|
|
106
111
|
option: '-n, --name [name]'
|
|
107
112
|
}, {
|
|
108
113
|
option: '-d, --displayName [displayName]'
|
|
114
|
+
}, {
|
|
115
|
+
option: '-e, --environmentName [environmentName]'
|
|
116
|
+
}, {
|
|
117
|
+
option: '--asAdmin'
|
|
109
118
|
});
|
|
110
119
|
}, _PaAppGetCommand_initValidators = function _PaAppGetCommand_initValidators() {
|
|
111
120
|
this.validators.push(async (args) => {
|
|
112
121
|
if (args.options.name && !validation.isValidGuid(args.options.name)) {
|
|
113
122
|
return `${args.options.name} is not a valid GUID`;
|
|
114
123
|
}
|
|
124
|
+
if (args.options.asAdmin && !args.options.environmentName) {
|
|
125
|
+
return 'When specifying the asAdmin option, the environment option is required as well.';
|
|
126
|
+
}
|
|
127
|
+
if (args.options.environmentName && !args.options.asAdmin) {
|
|
128
|
+
return 'When specifying the environment option, the asAdmin option is required as well.';
|
|
129
|
+
}
|
|
115
130
|
return true;
|
|
116
131
|
});
|
|
117
132
|
}, _PaAppGetCommand_initOptionSets = function _PaAppGetCommand_initOptionSets() {
|
|
@@ -30,8 +30,13 @@ class PaAppRemoveCommand extends PowerAppsCommand {
|
|
|
30
30
|
await logger.logToStderr(`Removing Microsoft Power App ${args.options.name}...`);
|
|
31
31
|
}
|
|
32
32
|
const removePaApp = async () => {
|
|
33
|
+
let endpoint = `${this.resource}/providers/Microsoft.PowerApps`;
|
|
34
|
+
if (args.options.asAdmin) {
|
|
35
|
+
endpoint += `/scopes/admin/environments/${formatting.encodeQueryParameter(args.options.environmentName)}`;
|
|
36
|
+
}
|
|
37
|
+
endpoint += `/apps/${formatting.encodeQueryParameter(args.options.name)}?api-version=2017-08-01`;
|
|
33
38
|
const requestOptions = {
|
|
34
|
-
url:
|
|
39
|
+
url: endpoint,
|
|
35
40
|
fullResponse: true,
|
|
36
41
|
headers: {
|
|
37
42
|
accept: 'application/json'
|
|
@@ -64,7 +69,9 @@ class PaAppRemoveCommand extends PowerAppsCommand {
|
|
|
64
69
|
_PaAppRemoveCommand_instances = new WeakSet(), _PaAppRemoveCommand_initTelemetry = function _PaAppRemoveCommand_initTelemetry() {
|
|
65
70
|
this.telemetry.push((args) => {
|
|
66
71
|
Object.assign(this.telemetryProperties, {
|
|
67
|
-
force: typeof args.options.force !== 'undefined'
|
|
72
|
+
force: typeof args.options.force !== 'undefined',
|
|
73
|
+
asAdmin: !!args.options.asAdmin,
|
|
74
|
+
environmentName: typeof args.options.environmentName !== 'undefined'
|
|
68
75
|
});
|
|
69
76
|
});
|
|
70
77
|
}, _PaAppRemoveCommand_initOptions = function _PaAppRemoveCommand_initOptions() {
|
|
@@ -72,12 +79,22 @@ _PaAppRemoveCommand_instances = new WeakSet(), _PaAppRemoveCommand_initTelemetry
|
|
|
72
79
|
option: '-n, --name <name>'
|
|
73
80
|
}, {
|
|
74
81
|
option: '-f, --force'
|
|
82
|
+
}, {
|
|
83
|
+
option: '--asAdmin'
|
|
84
|
+
}, {
|
|
85
|
+
option: '-e, --environmentName [environmentName]'
|
|
75
86
|
});
|
|
76
87
|
}, _PaAppRemoveCommand_initValidators = function _PaAppRemoveCommand_initValidators() {
|
|
77
88
|
this.validators.push(async (args) => {
|
|
78
89
|
if (!validation.isValidGuid(args.options.name)) {
|
|
79
90
|
return `${args.options.name} is not a valid GUID`;
|
|
80
91
|
}
|
|
92
|
+
if (args.options.asAdmin && !args.options.environmentName) {
|
|
93
|
+
return 'When specifying the asAdmin option, the environment option is required as well.';
|
|
94
|
+
}
|
|
95
|
+
if (args.options.environmentName && !args.options.asAdmin) {
|
|
96
|
+
return 'When specifying the environment option, the asAdmin option is required as well.';
|
|
97
|
+
}
|
|
81
98
|
return true;
|
|
82
99
|
});
|
|
83
100
|
};
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
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
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _SpoFileAddCommand_instances, _SpoFileAddCommand_initTelemetry, _SpoFileAddCommand_initOptions, _SpoFileAddCommand_initValidators;
|
|
6
|
+
var _SpoFileAddCommand_instances, _SpoFileAddCommand_initTelemetry, _SpoFileAddCommand_initOptions, _SpoFileAddCommand_initValidators, _SpoFileAddCommand_initTypes;
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import path from 'path';
|
|
9
9
|
import { v4 } from 'uuid';
|
|
@@ -34,6 +34,7 @@ class SpoFileAddCommand extends SpoCommand {
|
|
|
34
34
|
__classPrivateFieldGet(this, _SpoFileAddCommand_instances, "m", _SpoFileAddCommand_initTelemetry).call(this);
|
|
35
35
|
__classPrivateFieldGet(this, _SpoFileAddCommand_instances, "m", _SpoFileAddCommand_initOptions).call(this);
|
|
36
36
|
__classPrivateFieldGet(this, _SpoFileAddCommand_instances, "m", _SpoFileAddCommand_initValidators).call(this);
|
|
37
|
+
__classPrivateFieldGet(this, _SpoFileAddCommand_instances, "m", _SpoFileAddCommand_initTypes).call(this);
|
|
37
38
|
}
|
|
38
39
|
async commandAction(logger, args) {
|
|
39
40
|
const folderPath = urlUtil.getServerRelativePath(args.options.webUrl, args.options.folder);
|
|
@@ -422,13 +423,13 @@ class SpoFileAddCommand extends SpoCommand {
|
|
|
422
423
|
_SpoFileAddCommand_instances = new WeakSet(), _SpoFileAddCommand_initTelemetry = function _SpoFileAddCommand_initTelemetry() {
|
|
423
424
|
this.telemetry.push((args) => {
|
|
424
425
|
Object.assign(this.telemetryProperties, {
|
|
425
|
-
contentType:
|
|
426
|
-
checkOut: args.options.checkOut
|
|
427
|
-
checkInComment:
|
|
428
|
-
approve: args.options.approve
|
|
429
|
-
approveComment:
|
|
430
|
-
publish: args.options.publish
|
|
431
|
-
publishComment:
|
|
426
|
+
contentType: typeof args.options.contentType !== 'undefined',
|
|
427
|
+
checkOut: !!args.options.checkOut,
|
|
428
|
+
checkInComment: typeof args.options.checkInComment !== 'undefined',
|
|
429
|
+
approve: !!args.options.approve,
|
|
430
|
+
approveComment: typeof args.options.approveComment !== 'undefined',
|
|
431
|
+
publish: !!args.options.publish,
|
|
432
|
+
publishComment: typeof args.options.publishComment !== 'undefined'
|
|
432
433
|
});
|
|
433
434
|
});
|
|
434
435
|
}, _SpoFileAddCommand_initOptions = function _SpoFileAddCommand_initOptions() {
|
|
@@ -470,6 +471,9 @@ _SpoFileAddCommand_instances = new WeakSet(), _SpoFileAddCommand_initTelemetry =
|
|
|
470
471
|
}
|
|
471
472
|
return true;
|
|
472
473
|
});
|
|
474
|
+
}, _SpoFileAddCommand_initTypes = function _SpoFileAddCommand_initTypes() {
|
|
475
|
+
this.types.string.push('webUrl', 'folder', 'path', 'contentType', 'checkInComment', 'approveComment', 'publishComment');
|
|
476
|
+
this.types.boolean.push('checkOut', 'approve', 'publish');
|
|
473
477
|
};
|
|
474
478
|
export default new SpoFileAddCommand();
|
|
475
479
|
//# sourceMappingURL=file-add.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
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
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _SpoFileCheckinCommand_instances, _SpoFileCheckinCommand_initTelemetry, _SpoFileCheckinCommand_initOptions, _SpoFileCheckinCommand_initValidators, _SpoFileCheckinCommand_initOptionSets;
|
|
6
|
+
var _SpoFileCheckinCommand_instances, _SpoFileCheckinCommand_initTelemetry, _SpoFileCheckinCommand_initOptions, _SpoFileCheckinCommand_initValidators, _SpoFileCheckinCommand_initOptionSets, _SpoFileCheckinCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
@@ -30,6 +30,7 @@ class SpoFileCheckinCommand extends SpoCommand {
|
|
|
30
30
|
__classPrivateFieldGet(this, _SpoFileCheckinCommand_instances, "m", _SpoFileCheckinCommand_initOptions).call(this);
|
|
31
31
|
__classPrivateFieldGet(this, _SpoFileCheckinCommand_instances, "m", _SpoFileCheckinCommand_initValidators).call(this);
|
|
32
32
|
__classPrivateFieldGet(this, _SpoFileCheckinCommand_instances, "m", _SpoFileCheckinCommand_initOptionSets).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _SpoFileCheckinCommand_instances, "m", _SpoFileCheckinCommand_initTypes).call(this);
|
|
33
34
|
}
|
|
34
35
|
getExcludedOptionsWithUrls() {
|
|
35
36
|
return ['url'];
|
|
@@ -119,6 +120,8 @@ _SpoFileCheckinCommand_instances = new WeakSet(), _SpoFileCheckinCommand_initTel
|
|
|
119
120
|
});
|
|
120
121
|
}, _SpoFileCheckinCommand_initOptionSets = function _SpoFileCheckinCommand_initOptionSets() {
|
|
121
122
|
this.optionSets.push({ options: ['url', 'id'] });
|
|
123
|
+
}, _SpoFileCheckinCommand_initTypes = function _SpoFileCheckinCommand_initTypes() {
|
|
124
|
+
this.types.string.push('webUrl', 'url', 'id', 'type', 'comment');
|
|
122
125
|
};
|
|
123
126
|
export default new SpoFileCheckinCommand();
|
|
124
127
|
//# sourceMappingURL=file-checkin.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
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
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _SpoFileCheckoutUndoCommand_instances, _SpoFileCheckoutUndoCommand_initTelemetry, _SpoFileCheckoutUndoCommand_initOptions, _SpoFileCheckoutUndoCommand_initValidators, _SpoFileCheckoutUndoCommand_initOptionSets;
|
|
6
|
+
var _SpoFileCheckoutUndoCommand_instances, _SpoFileCheckoutUndoCommand_initTelemetry, _SpoFileCheckoutUndoCommand_initOptions, _SpoFileCheckoutUndoCommand_initValidators, _SpoFileCheckoutUndoCommand_initOptionSets, _SpoFileCheckoutUndoCommand_initTypes;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -25,6 +25,7 @@ class SpoFileCheckoutUndoCommand extends SpoCommand {
|
|
|
25
25
|
__classPrivateFieldGet(this, _SpoFileCheckoutUndoCommand_instances, "m", _SpoFileCheckoutUndoCommand_initOptions).call(this);
|
|
26
26
|
__classPrivateFieldGet(this, _SpoFileCheckoutUndoCommand_instances, "m", _SpoFileCheckoutUndoCommand_initValidators).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoFileCheckoutUndoCommand_instances, "m", _SpoFileCheckoutUndoCommand_initOptionSets).call(this);
|
|
28
|
+
__classPrivateFieldGet(this, _SpoFileCheckoutUndoCommand_instances, "m", _SpoFileCheckoutUndoCommand_initTypes).call(this);
|
|
28
29
|
}
|
|
29
30
|
async commandAction(logger, args) {
|
|
30
31
|
const undoCheckout = async () => {
|
|
@@ -96,6 +97,9 @@ _SpoFileCheckoutUndoCommand_instances = new WeakSet(), _SpoFileCheckoutUndoComma
|
|
|
96
97
|
});
|
|
97
98
|
}, _SpoFileCheckoutUndoCommand_initOptionSets = function _SpoFileCheckoutUndoCommand_initOptionSets() {
|
|
98
99
|
this.optionSets.push({ options: ['fileId', 'fileUrl'] });
|
|
100
|
+
}, _SpoFileCheckoutUndoCommand_initTypes = function _SpoFileCheckoutUndoCommand_initTypes() {
|
|
101
|
+
this.types.string.push('webUrl', 'fileUrl', 'fileId');
|
|
102
|
+
this.types.boolean.push('force');
|
|
99
103
|
};
|
|
100
104
|
export default new SpoFileCheckoutUndoCommand();
|
|
101
105
|
//# sourceMappingURL=file-checkout-undo.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
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
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _SpoFileCheckoutCommand_instances, _SpoFileCheckoutCommand_initTelemetry, _SpoFileCheckoutCommand_initOptions, _SpoFileCheckoutCommand_initValidators, _SpoFileCheckoutCommand_initOptionSets;
|
|
6
|
+
var _SpoFileCheckoutCommand_instances, _SpoFileCheckoutCommand_initTelemetry, _SpoFileCheckoutCommand_initOptions, _SpoFileCheckoutCommand_initValidators, _SpoFileCheckoutCommand_initOptionSets, _SpoFileCheckoutCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
@@ -24,6 +24,7 @@ class SpoFileCheckoutCommand extends SpoCommand {
|
|
|
24
24
|
__classPrivateFieldGet(this, _SpoFileCheckoutCommand_instances, "m", _SpoFileCheckoutCommand_initOptions).call(this);
|
|
25
25
|
__classPrivateFieldGet(this, _SpoFileCheckoutCommand_instances, "m", _SpoFileCheckoutCommand_initValidators).call(this);
|
|
26
26
|
__classPrivateFieldGet(this, _SpoFileCheckoutCommand_instances, "m", _SpoFileCheckoutCommand_initOptionSets).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoFileCheckoutCommand_instances, "m", _SpoFileCheckoutCommand_initTypes).call(this);
|
|
27
28
|
}
|
|
28
29
|
getExcludedOptionsWithUrls() {
|
|
29
30
|
return ['url'];
|
|
@@ -82,6 +83,8 @@ _SpoFileCheckoutCommand_instances = new WeakSet(), _SpoFileCheckoutCommand_initT
|
|
|
82
83
|
});
|
|
83
84
|
}, _SpoFileCheckoutCommand_initOptionSets = function _SpoFileCheckoutCommand_initOptionSets() {
|
|
84
85
|
this.optionSets.push({ options: ['id', 'url'] });
|
|
86
|
+
}, _SpoFileCheckoutCommand_initTypes = function _SpoFileCheckoutCommand_initTypes() {
|
|
87
|
+
this.types.string.push('webUrl', 'url', 'id');
|
|
85
88
|
};
|
|
86
89
|
export default new SpoFileCheckoutCommand();
|
|
87
90
|
//# sourceMappingURL=file-checkout.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
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
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _SpoFileCopyCommand_instances, _SpoFileCopyCommand_initTelemetry, _SpoFileCopyCommand_initOptions, _SpoFileCopyCommand_initValidators, _SpoFileCopyCommand_initOptionSets;
|
|
6
|
+
var _SpoFileCopyCommand_instances, _SpoFileCopyCommand_initTelemetry, _SpoFileCopyCommand_initOptions, _SpoFileCopyCommand_initValidators, _SpoFileCopyCommand_initOptionSets, _SpoFileCopyCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -24,6 +24,7 @@ class SpoFileCopyCommand extends SpoCommand {
|
|
|
24
24
|
__classPrivateFieldGet(this, _SpoFileCopyCommand_instances, "m", _SpoFileCopyCommand_initOptions).call(this);
|
|
25
25
|
__classPrivateFieldGet(this, _SpoFileCopyCommand_instances, "m", _SpoFileCopyCommand_initValidators).call(this);
|
|
26
26
|
__classPrivateFieldGet(this, _SpoFileCopyCommand_instances, "m", _SpoFileCopyCommand_initOptionSets).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoFileCopyCommand_instances, "m", _SpoFileCopyCommand_initTypes).call(this);
|
|
27
28
|
}
|
|
28
29
|
async commandAction(logger, args) {
|
|
29
30
|
try {
|
|
@@ -134,6 +135,9 @@ _SpoFileCopyCommand_instances = new WeakSet(), _SpoFileCopyCommand_initTelemetry
|
|
|
134
135
|
});
|
|
135
136
|
}, _SpoFileCopyCommand_initOptionSets = function _SpoFileCopyCommand_initOptionSets() {
|
|
136
137
|
this.optionSets.push({ options: ['sourceUrl', 'sourceId'] });
|
|
138
|
+
}, _SpoFileCopyCommand_initTypes = function _SpoFileCopyCommand_initTypes() {
|
|
139
|
+
this.types.string.push('webUrl', 'sourceUrl', 'sourceId', 'targetUrl', 'newName', 'nameConflictBehavior');
|
|
140
|
+
this.types.boolean.push('resetAuthorAndCreated', 'bypassSharedLock');
|
|
137
141
|
};
|
|
138
142
|
export default new SpoFileCopyCommand();
|
|
139
143
|
//# sourceMappingURL=file-copy.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
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
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _SpoFileGetCommand_instances, _SpoFileGetCommand_initTelemetry, _SpoFileGetCommand_initOptions, _SpoFileGetCommand_initValidators, _SpoFileGetCommand_initOptionSets;
|
|
6
|
+
var _SpoFileGetCommand_instances, _SpoFileGetCommand_initTelemetry, _SpoFileGetCommand_initOptions, _SpoFileGetCommand_initValidators, _SpoFileGetCommand_initOptionSets, _SpoFileGetCommand_initTypes;
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import path from 'path';
|
|
9
9
|
import request from '../../../../request.js';
|
|
@@ -26,6 +26,7 @@ class SpoFileGetCommand extends SpoCommand {
|
|
|
26
26
|
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initOptions).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initValidators).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initOptionSets).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _SpoFileGetCommand_instances, "m", _SpoFileGetCommand_initTypes).call(this);
|
|
29
30
|
}
|
|
30
31
|
getExcludedOptionsWithUrls() {
|
|
31
32
|
return ['url'];
|
|
@@ -176,6 +177,9 @@ _SpoFileGetCommand_instances = new WeakSet(), _SpoFileGetCommand_initTelemetry =
|
|
|
176
177
|
});
|
|
177
178
|
}, _SpoFileGetCommand_initOptionSets = function _SpoFileGetCommand_initOptionSets() {
|
|
178
179
|
this.optionSets.push({ options: ['id', 'url'] });
|
|
180
|
+
}, _SpoFileGetCommand_initTypes = function _SpoFileGetCommand_initTypes() {
|
|
181
|
+
this.types.string.push('webUrl', 'url', 'id', 'path');
|
|
182
|
+
this.types.boolean.push('asString', 'asListItem', 'asFile', 'withPermissions');
|
|
179
183
|
};
|
|
180
184
|
export default new SpoFileGetCommand();
|
|
181
185
|
//# sourceMappingURL=file-get.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
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
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _SpoFileListCommand_instances, _SpoFileListCommand_initTelemetry, _SpoFileListCommand_initOptions, _SpoFileListCommand_initValidators;
|
|
6
|
+
var _SpoFileListCommand_instances, _SpoFileListCommand_initTelemetry, _SpoFileListCommand_initOptions, _SpoFileListCommand_initValidators, _SpoFileListCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
@@ -23,6 +23,7 @@ class SpoFileListCommand extends SpoCommand {
|
|
|
23
23
|
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initTelemetry).call(this);
|
|
24
24
|
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initOptions).call(this);
|
|
25
25
|
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initValidators).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _SpoFileListCommand_instances, "m", _SpoFileListCommand_initTypes).call(this);
|
|
26
27
|
}
|
|
27
28
|
async commandAction(logger, args) {
|
|
28
29
|
if (this.verbose) {
|
|
@@ -154,6 +155,9 @@ _SpoFileListCommand_instances = new WeakSet(), _SpoFileListCommand_initTelemetry
|
|
|
154
155
|
});
|
|
155
156
|
}, _SpoFileListCommand_initValidators = function _SpoFileListCommand_initValidators() {
|
|
156
157
|
this.validators.push(async (args) => validation.isValidSharePointUrl(args.options.webUrl));
|
|
158
|
+
}, _SpoFileListCommand_initTypes = function _SpoFileListCommand_initTypes() {
|
|
159
|
+
this.types.string.push('webUrl', 'folderUrl', 'fields', 'filter');
|
|
160
|
+
this.types.boolean.push('recursive');
|
|
157
161
|
};
|
|
158
162
|
SpoFileListCommand.pageSize = 5000;
|
|
159
163
|
export default new SpoFileListCommand();
|