@pnp/cli-microsoft365 7.0.0-beta.4ebf3ad → 7.0.0-beta.515b009
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 +1 -3
- package/dist/Auth.js +2 -1
- package/dist/Command.js +1 -1
- package/dist/GlobalOptions.js +1 -7
- package/dist/cli/Cli.js +19 -2
- package/dist/m365/aad/commands/app/app-add.js +8 -8
- package/dist/m365/aad/commands/app/app-role-add.js +5 -5
- package/dist/m365/aad/commands/app/app-set.js +5 -5
- package/dist/m365/aad/commands/{o365group/o365group-add.js → m365group/m365group-add.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-conversation-list.js → m365group/m365group-conversation-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-conversation-post-list.js → m365group/m365group-conversation-post-list.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-get.js → m365group/m365group-get.js} +13 -10
- package/dist/m365/aad/commands/{o365group/o365group-list.js → m365group/m365group-list.js} +13 -28
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-clear.js → m365group/m365group-recyclebinitem-clear.js} +15 -15
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-list.js → m365group/m365group-recyclebinitem-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-remove.js → m365group/m365group-recyclebinitem-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-restore.js → m365group/m365group-recyclebinitem-restore.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-remove.js → m365group/m365group-remove.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-renew.js → m365group/m365group-renew.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-report-activitycounts.js → m365group/m365group-report-activitycounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitydetail.js → m365group/m365group-report-activitydetail.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activityfilecounts.js → m365group/m365group-report-activityfilecounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitygroupcounts.js → m365group/m365group-report-activitygroupcounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitystorage.js → m365group/m365group-report-activitystorage.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-set.js → m365group/m365group-set.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-teamify.js → m365group/m365group-teamify.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-add.js → m365group/m365group-user-add.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-list.js → m365group/m365group-user-list.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-user-remove.js → m365group/m365group-user-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-set.js → m365group/m365group-user-set.js} +15 -15
- package/dist/m365/aad/commands/policy/policy-list.js +5 -5
- package/dist/m365/aad/commands.js +22 -22
- package/dist/m365/cli/commands/cli-issue.js +5 -5
- package/dist/m365/cli/commands/config/config-get.js +5 -5
- package/dist/m365/cli/commands/config/config-list.js +16 -0
- package/dist/m365/cli/commands/config/config-reset.js +5 -5
- package/dist/m365/cli/commands/config/config-set.js +5 -5
- package/dist/m365/cli/commands.js +1 -0
- package/dist/m365/commands/login.js +5 -5
- package/dist/m365/commands/request.js +1 -1
- package/dist/m365/flow/commands/owner/owner-ensure.js +5 -5
- package/dist/m365/pa/commands/app/app-owner-set.js +5 -5
- package/dist/m365/pa/commands/app/app-permission-ensure.js +162 -0
- package/dist/m365/pa/commands/app/app-permission-list.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-remove.js +153 -0
- package/dist/m365/pa/commands.js +3 -4
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
- package/dist/m365/planner/commands/plan/plan-get.js +1 -2
- package/dist/m365/planner/commands/plan/plan-list.js +4 -5
- package/dist/m365/planner/commands/plan/plan-set.js +2 -2
- package/dist/m365/planner/commands/task/task-add.js +17 -11
- package/dist/m365/planner/commands/task/task-get.js +35 -25
- package/dist/m365/planner/commands/task/task-list.js +26 -19
- package/dist/m365/planner/commands/task/task-remove.js +39 -34
- package/dist/m365/planner/commands/task/task-set.js +35 -23
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +14 -14
- package/dist/m365/spfx/commands/package/package-generate.js +15 -15
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +55 -0
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.18.0-beta.1.js → doctor-1.18.0-beta.5.js} +1 -1
- package/dist/m365/spfx/commands/project/project-doctor.js +9 -9
- package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +2 -2
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +157 -0
- package/dist/m365/spfx/commands/project/project-github-workflow-model.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.18.0-beta.1.js → upgrade-1.18.0-beta.5.js} +26 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +14 -14
- package/dist/m365/spfx/commands/spfx-doctor.js +76 -106
- package/dist/m365/spfx/commands.js +1 -0
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +27 -26
- package/dist/m365/spo/commands/app/app-add.js +9 -9
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +5 -5
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-list.js +5 -5
- package/dist/m365/spo/commands/commandset/commandset-add.js +11 -11
- package/dist/m365/spo/commands/commandset/commandset-get.js +8 -8
- package/dist/m365/spo/commands/commandset/commandset-list.js +5 -5
- package/dist/m365/spo/commands/commandset/commandset-remove.js +5 -5
- package/dist/m365/spo/commands/commandset/commandset-set.js +11 -11
- package/dist/m365/spo/commands/file/file-add.js +13 -13
- package/dist/m365/spo/commands/file/file-checkin.js +1 -1
- package/dist/m365/spo/commands/file/file-checkout.js +1 -1
- package/dist/m365/spo/commands/file/file-copy.js +36 -4
- package/dist/m365/spo/commands/file/file-list.js +4 -4
- package/dist/m365/spo/commands/file/file-move.js +74 -98
- package/dist/m365/spo/commands/file/file-remove.js +6 -6
- package/dist/m365/spo/commands/file/file-rename.js +2 -2
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/file/file-sharinglink-add.js +8 -8
- package/dist/m365/spo/commands/file/file-sharinglink-list.js +5 -5
- package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
- package/dist/m365/spo/commands/file/file-version-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +1 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
- package/dist/m365/spo/commands/folder/folder-add.js +2 -4
- package/dist/m365/spo/commands/folder/folder-copy.js +89 -45
- package/dist/m365/spo/commands/folder/folder-get.js +1 -1
- package/dist/m365/spo/commands/folder/folder-list.js +2 -2
- package/dist/m365/spo/commands/folder/folder-move.js +89 -47
- package/dist/m365/spo/commands/folder/folder-remove.js +7 -4
- package/dist/m365/spo/commands/folder/folder-rename.js +13 -17
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/group/group-list.js +0 -1
- package/dist/m365/spo/commands/list/list-add.js +4 -4
- package/dist/m365/spo/commands/list/list-set.js +4 -4
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +2 -2
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +34 -5
- package/dist/m365/spo/commands/page/clientsidepages.js +1 -81
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +63 -59
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +28 -31
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +30 -32
- package/dist/m365/spo/commands/site/FlowsPolicy.js +7 -0
- package/dist/m365/spo/commands/site/site-add.js +114 -161
- package/dist/m365/spo/commands/site/site-apppermission-add.js +15 -18
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +34 -38
- package/dist/m365/spo/commands/site/site-apppermission-set.js +11 -14
- package/dist/m365/spo/commands/site/site-ensure.js +14 -67
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +22 -22
- package/dist/m365/spo/commands/site/site-list.js +27 -43
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +6 -6
- package/dist/m365/spo/commands/site/site-remove.js +166 -210
- package/dist/m365/spo/commands/site/site-set.js +178 -199
- package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +8 -8
- package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +8 -8
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +4 -4
- package/dist/m365/spo/commands/theme/theme-list.js +1 -9
- package/dist/m365/spo/commands/theme/theme-remove.js +24 -24
- package/dist/m365/spo/commands/theme/theme-set.js +0 -1
- package/dist/m365/spo/commands/user/user-remove.js +27 -27
- package/dist/m365/spo/commands/web/web-reindex.js +35 -42
- package/dist/m365/spo/commands/web/web-remove.js +21 -21
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +16 -31
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +33 -44
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +18 -18
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +19 -19
- package/dist/m365/spo/commands/web/web-set.js +5 -5
- package/dist/m365/teams/commands/app/app-list.js +5 -5
- package/dist/m365/teams/commands/chat/chat-member-add.js +5 -5
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +4 -4
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +4 -4
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +4 -4
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +5 -5
- package/dist/m365/teams/commands/team/team-set.js +3 -3
- package/dist/m365/todo/commands/task/task-add.js +6 -6
- package/dist/m365/yammer/commands/message/message-like-set.js +27 -28
- package/dist/m365/yammer/commands/message/message-list.js +67 -86
- package/dist/m365/yammer/commands/message/message-remove.js +18 -18
- package/dist/m365/yammer/commands/yammer-search.js +58 -74
- package/dist/utils/aadGroup.js +18 -0
- package/dist/utils/fsUtil.js +5 -0
- package/dist/utils/planner.js +4 -3
- package/dist/utils/spo.js +595 -54
- package/dist/utils/validation.js +0 -3
- package/docs/docs/cmd/aad/{o365group/o365group-add.mdx → m365group/m365group-add.mdx} +13 -13
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-list.mdx → m365group/m365group-conversation-list.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-post-list.mdx → m365group/m365group-conversation-post-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-get.mdx → m365group/m365group-get.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-list.mdx → m365group/m365group-list.mdx} +12 -29
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-clear.mdx → m365group/m365group-recyclebinitem-clear.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-list.mdx → m365group/m365group-recyclebinitem-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-remove.mdx → m365group/m365group-recyclebinitem-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-restore.mdx → m365group/m365group-recyclebinitem-restore.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-remove.mdx → m365group/m365group-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-renew.mdx → m365group/m365group-renew.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitycounts.mdx → m365group/m365group-report-activitycounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitydetail.mdx → m365group/m365group-report-activitydetail.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-report-activityfilecounts.mdx → m365group/m365group-report-activityfilecounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitygroupcounts.mdx → m365group/m365group-report-activitygroupcounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitystorage.mdx → m365group/m365group-report-activitystorage.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-set.mdx → m365group/m365group-set.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-teamify.mdx → m365group/m365group-teamify.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-add.mdx → m365group/m365group-user-add.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-list.mdx → m365group/m365group-user-list.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-user-remove.mdx → m365group/m365group-user-remove.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-set.mdx → m365group/m365group-user-set.mdx} +5 -5
- package/docs/docs/cmd/aad/user/user-set.mdx +1 -1
- package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
- package/docs/docs/cmd/flow/flow-enable.mdx +2 -2
- package/docs/docs/cmd/login.mdx +6 -0
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-add.mdx +22 -7
- package/docs/docs/cmd/planner/task/task-get.mdx +13 -4
- package/docs/docs/cmd/planner/task/task-list.mdx +22 -7
- package/docs/docs/cmd/planner/task/task-remove.mdx +25 -8
- package/docs/docs/cmd/planner/task/task-set.mdx +22 -7
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +3 -3
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +94 -0
- package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -9
- package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-copy.mdx +20 -16
- package/docs/docs/cmd/spo/file/file-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-list.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-move.mdx +36 -18
- package/docs/docs/cmd/spo/file/file-remove.mdx +8 -8
- package/docs/docs/cmd/spo/file/file-rename.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +3 -3
- 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 +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.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-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-add.mdx +76 -1
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +39 -12
- package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-move.mdx +40 -13
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +5 -1
- 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-roleassignment-add.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +14 -1
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-list.mdx +3 -78
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
- package/npm-shrinkwrap.json +290 -1413
- package/package.json +17 -18
- package/dist/m365/pa/cds-project-mutator.js +0 -91
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/generated/ManifestTypes.d.ts +0 -11
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/dataset-template/template_index.ts +0 -51
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/generated/ManifestTypes.d.ts +0 -12
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/field-template/template_index.ts +0 -48
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/index.ts +0 -0
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_ControlManifest.Input.xml +0 -31
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-dataset-template/template_index.tsx +0 -58
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_ControlManifest.Input.xml +0 -37
- package/dist/m365/pa/commands/pcf/pcf-init/assets/control/virtual-field-template/template_index.tsx +0 -55
- package/dist/m365/pa/commands/pcf/pcf-init/assets/package.json +0 -19
- package/dist/m365/pa/commands/pcf/pcf-init/assets/pcfconfig.json +0 -3
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_.gitignore +0 -14
- package/dist/m365/pa/commands/pcf/pcf-init/assets/template_pcfprojecttype.pcfproj +0 -45
- package/dist/m365/pa/commands/pcf/pcf-init/pcf-init-variables.js +0 -2
- package/dist/m365/pa/commands/pcf/pcf-init.js +0 -120
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Customizations.xml +0 -18
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/Relationships.xml +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/Other/template_Solution.xml +0 -94
- package/dist/m365/pa/commands/solution/solution-init/assets/template_.gitignore +0 -2
- package/dist/m365/pa/commands/solution/solution-init/assets/template_solutionprojecttype.cdsproj +0 -44
- package/dist/m365/pa/commands/solution/solution-init/solution-init-variables.js +0 -2
- package/dist/m365/pa/commands/solution/solution-init.js +0 -126
- package/dist/m365/pa/commands/solution/solution-reference-add.js +0 -88
- package/dist/m365/pa/template-instantiator.js +0 -57
- package/docs/docs/cmd/pa/pcf/pcf-init.mdx +0 -56
- package/docs/docs/cmd/pa/solution/solution-init.mdx +0 -46
- package/docs/docs/cmd/pa/solution/solution-reference-add.mdx +0 -42
- /package/dist/m365/aad/commands/{o365group → m365group}/GroupExtended.js +0 -0
|
@@ -141,9 +141,15 @@ class PlannerTaskAddCommand extends GraphCommand {
|
|
|
141
141
|
if (args.options.planId) {
|
|
142
142
|
return args.options.planId;
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
if (args.options.rosterId) {
|
|
145
|
+
const plan = await planner.getPlanByRosterId(args.options.rosterId);
|
|
146
|
+
return plan.id;
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
const groupId = await this.getGroupId(args);
|
|
150
|
+
const plan = await planner.getPlanByTitle(args.options.planTitle, groupId);
|
|
151
|
+
return plan.id;
|
|
152
|
+
}
|
|
147
153
|
}
|
|
148
154
|
async getGroupId(args) {
|
|
149
155
|
if (args.options.ownerGroupId) {
|
|
@@ -187,6 +193,7 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
187
193
|
Object.assign(this.telemetryProperties, {
|
|
188
194
|
planId: typeof args.options.planId !== 'undefined',
|
|
189
195
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
196
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
190
197
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
191
198
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
192
199
|
bucketId: typeof args.options.bucketId !== 'undefined',
|
|
@@ -205,7 +212,7 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
205
212
|
});
|
|
206
213
|
});
|
|
207
214
|
}, _PlannerTaskAddCommand_initOptions = function _PlannerTaskAddCommand_initOptions() {
|
|
208
|
-
this.options.unshift({ option: '-t, --title <title>' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, {
|
|
215
|
+
this.options.unshift({ option: '-t, --title <title>' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, {
|
|
209
216
|
option: '--appliedCategories [appliedCategories]',
|
|
210
217
|
autocomplete: this.allowedAppliedCategories
|
|
211
218
|
}, {
|
|
@@ -214,12 +221,6 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
214
221
|
}, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority.priorityValues });
|
|
215
222
|
}, _PlannerTaskAddCommand_initValidators = function _PlannerTaskAddCommand_initValidators() {
|
|
216
223
|
this.validators.push(async (args) => {
|
|
217
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
218
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
219
|
-
}
|
|
220
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
221
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
222
|
-
}
|
|
223
224
|
if (args.options.ownerGroupId && !validation.isValidGuid(args.options.ownerGroupId)) {
|
|
224
225
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
225
226
|
}
|
|
@@ -260,7 +261,12 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
260
261
|
return true;
|
|
261
262
|
});
|
|
262
263
|
}, _PlannerTaskAddCommand_initOptionSets = function _PlannerTaskAddCommand_initOptionSets() {
|
|
263
|
-
this.optionSets.push({ options: ['planId', 'planTitle'] }, { options: ['bucketId', 'bucketName'] }
|
|
264
|
+
this.optionSets.push({ options: ['planId', 'planTitle', 'rosterId'] }, { options: ['bucketId', 'bucketName'] }, {
|
|
265
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
266
|
+
runsWhen: (args) => {
|
|
267
|
+
return args.options.planTitle !== undefined;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
264
270
|
};
|
|
265
271
|
export default new PlannerTaskAddCommand();
|
|
266
272
|
//# sourceMappingURL=task-add.js.map
|
|
@@ -109,9 +109,15 @@ class PlannerTaskGetCommand extends GraphCommand {
|
|
|
109
109
|
if (options.planId) {
|
|
110
110
|
return options.planId;
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
if (options.rosterId) {
|
|
113
|
+
const plan = await planner.getPlanByRosterId(options.rosterId);
|
|
114
|
+
return plan.id;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
const groupId = await this.getGroupId(options);
|
|
118
|
+
const plan = await planner.getPlanByTitle(options.planTitle, groupId);
|
|
119
|
+
return plan.id;
|
|
120
|
+
}
|
|
115
121
|
}
|
|
116
122
|
async getGroupId(options) {
|
|
117
123
|
if (options.ownerGroupId) {
|
|
@@ -129,46 +135,50 @@ _PlannerTaskGetCommand_instances = new WeakSet(), _PlannerTaskGetCommand_initTel
|
|
|
129
135
|
bucketId: typeof args.options.bucketId !== 'undefined',
|
|
130
136
|
bucketName: typeof args.options.bucketName !== 'undefined',
|
|
131
137
|
planId: typeof args.options.planId !== 'undefined',
|
|
138
|
+
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
139
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
132
140
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
133
141
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
134
142
|
});
|
|
135
143
|
});
|
|
136
144
|
}, _PlannerTaskGetCommand_initOptions = function _PlannerTaskGetCommand_initOptions() {
|
|
137
|
-
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' });
|
|
145
|
+
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' });
|
|
138
146
|
}, _PlannerTaskGetCommand_initValidators = function _PlannerTaskGetCommand_initValidators() {
|
|
139
147
|
this.validators.push(async (args) => {
|
|
140
148
|
if (args.options.id) {
|
|
141
149
|
if (args.options.bucketId || args.options.bucketName ||
|
|
142
|
-
args.options.planId || args.options.
|
|
150
|
+
args.options.planId || args.options.planTitle || args.options.rosterId ||
|
|
143
151
|
args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
144
|
-
return 'Don\'t specify bucketId, bucketName, planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
152
|
+
return 'Don\'t specify bucketId, bucketName, planId, planTitle, rosterId, ownerGroupId or ownerGroupName when using id';
|
|
145
153
|
}
|
|
146
154
|
}
|
|
147
|
-
if (args.options.title && !args.options.bucketId && !args.options.bucketName) {
|
|
148
|
-
return 'Specify either bucketId or bucketName when using title';
|
|
149
|
-
}
|
|
150
|
-
if (args.options.title && args.options.bucketId && args.options.bucketName) {
|
|
151
|
-
return 'Specify either bucketId or bucketName when using title but not both';
|
|
152
|
-
}
|
|
153
|
-
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
154
|
-
return 'Specify either planId or planTitle when using bucketName';
|
|
155
|
-
}
|
|
156
|
-
if (args.options.bucketName && args.options.planId && args.options.planTitle) {
|
|
157
|
-
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
158
|
-
}
|
|
159
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
160
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
161
|
-
}
|
|
162
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
163
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
164
|
-
}
|
|
165
155
|
if (args.options.ownerGroupId && !validation.isValidGuid(args.options.ownerGroupId)) {
|
|
166
156
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
167
157
|
}
|
|
168
158
|
return true;
|
|
169
159
|
});
|
|
170
160
|
}, _PlannerTaskGetCommand_initOptionSets = function _PlannerTaskGetCommand_initOptionSets() {
|
|
171
|
-
this.optionSets.push({ options: ['id', 'title'] }
|
|
161
|
+
this.optionSets.push({ options: ['id', 'title'] }, {
|
|
162
|
+
options: ['planId', 'planTitle', 'rosterId'],
|
|
163
|
+
runsWhen: (args) => {
|
|
164
|
+
return args.options.id === undefined;
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
167
|
+
options: ['bucketId', 'bucketName'],
|
|
168
|
+
runsWhen: (args) => {
|
|
169
|
+
return args.options.title !== undefined;
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
options: ['planId', 'planTitle'],
|
|
173
|
+
runsWhen: (args) => {
|
|
174
|
+
return args.options.bucketName !== undefined && args.options.rosterId === undefined;
|
|
175
|
+
}
|
|
176
|
+
}, {
|
|
177
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
178
|
+
runsWhen: (args) => {
|
|
179
|
+
return args.options.planTitle !== undefined;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
172
182
|
};
|
|
173
183
|
export default new PlannerTaskGetCommand();
|
|
174
184
|
//# sourceMappingURL=task-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 _PlannerTaskListCommand_instances, _PlannerTaskListCommand_initTelemetry, _PlannerTaskListCommand_initOptions, _PlannerTaskListCommand_initValidators;
|
|
6
|
+
var _PlannerTaskListCommand_instances, _PlannerTaskListCommand_initTelemetry, _PlannerTaskListCommand_initOptions, _PlannerTaskListCommand_initValidators, _PlannerTaskListCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -28,6 +28,7 @@ class PlannerTaskListCommand extends GraphCommand {
|
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initTelemetry).call(this);
|
|
29
29
|
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initOptions).call(this);
|
|
30
30
|
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initValidators).call(this);
|
|
31
|
+
__classPrivateFieldGet(this, _PlannerTaskListCommand_instances, "m", _PlannerTaskListCommand_initOptionSets).call(this);
|
|
31
32
|
}
|
|
32
33
|
async commandAction(logger, args) {
|
|
33
34
|
const bucketName = args.options.bucketName;
|
|
@@ -91,9 +92,15 @@ class PlannerTaskListCommand extends GraphCommand {
|
|
|
91
92
|
if (args.options.planId) {
|
|
92
93
|
return formatting.encodeQueryParameter(args.options.planId);
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
if (args.options.rosterId) {
|
|
96
|
+
const plan = await planner.getPlanByRosterId(args.options.rosterId);
|
|
97
|
+
return plan.id;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const groupId = await this.getGroupId(args);
|
|
101
|
+
const plan = await planner.getPlanByTitle(args.options.planTitle, groupId);
|
|
102
|
+
return plan.id;
|
|
103
|
+
}
|
|
97
104
|
}
|
|
98
105
|
async getGroupId(args) {
|
|
99
106
|
if (args.options.ownerGroupId) {
|
|
@@ -121,6 +128,7 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
121
128
|
bucketName: typeof args.options.bucketName !== 'undefined',
|
|
122
129
|
planId: typeof args.options.planId !== 'undefined',
|
|
123
130
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
131
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
124
132
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
125
133
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
126
134
|
});
|
|
@@ -134,6 +142,8 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
134
142
|
option: '--planId [planId]'
|
|
135
143
|
}, {
|
|
136
144
|
option: '--planTitle [planTitle]'
|
|
145
|
+
}, {
|
|
146
|
+
option: '--rosterId [rosterId]'
|
|
137
147
|
}, {
|
|
138
148
|
option: '--ownerGroupId [ownerGroupId]'
|
|
139
149
|
}, {
|
|
@@ -141,26 +151,23 @@ _PlannerTaskListCommand_instances = new WeakSet(), _PlannerTaskListCommand_initT
|
|
|
141
151
|
});
|
|
142
152
|
}, _PlannerTaskListCommand_initValidators = function _PlannerTaskListCommand_initValidators() {
|
|
143
153
|
this.validators.push(async (args) => {
|
|
144
|
-
if (args.options.bucketId && args.options.bucketName) {
|
|
145
|
-
return 'To retrieve tasks from a bucket, specify bucketId or bucketName, but not both';
|
|
146
|
-
}
|
|
147
|
-
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
148
|
-
return 'Specify either planId or planTitle when using bucketName';
|
|
149
|
-
}
|
|
150
|
-
if (args.options.planId && args.options.planTitle) {
|
|
151
|
-
return 'Specify either planId or planTitle but not both';
|
|
152
|
-
}
|
|
153
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
154
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
155
|
-
}
|
|
156
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
157
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
158
|
-
}
|
|
159
154
|
if (args.options.ownerGroupId && !validation.isValidGuid(args.options.ownerGroupId)) {
|
|
160
155
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
161
156
|
}
|
|
162
157
|
return true;
|
|
163
158
|
});
|
|
159
|
+
}, _PlannerTaskListCommand_initOptionSets = function _PlannerTaskListCommand_initOptionSets() {
|
|
160
|
+
this.optionSets.push({ options: ['bucketId', 'bucketName'] }, {
|
|
161
|
+
options: ['planId', 'planTitle'],
|
|
162
|
+
runsWhen: (args) => {
|
|
163
|
+
return args.options.bucketName !== undefined && args.options.rosterId === undefined;
|
|
164
|
+
}
|
|
165
|
+
}, {
|
|
166
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
167
|
+
runsWhen: (args) => {
|
|
168
|
+
return args.options.planTitle !== undefined;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
164
171
|
};
|
|
165
172
|
export default new PlannerTaskListCommand();
|
|
166
173
|
//# sourceMappingURL=task-list.js.map
|
|
@@ -109,13 +109,19 @@ class PlannerTaskRemoveCommand extends GraphCommand {
|
|
|
109
109
|
return filteredBuckets[0].id;
|
|
110
110
|
}
|
|
111
111
|
async getPlanId(options) {
|
|
112
|
-
const { planId, planTitle } = options;
|
|
112
|
+
const { planId, planTitle, rosterId } = options;
|
|
113
113
|
if (planId) {
|
|
114
114
|
return planId;
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
if (options.rosterId) {
|
|
117
|
+
const plan = await planner.getPlanByRosterId(rosterId);
|
|
118
|
+
return plan.id;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
const groupId = await this.getGroupId(options);
|
|
122
|
+
const plan = await planner.getPlanByTitle(planTitle, groupId);
|
|
123
|
+
return plan.id;
|
|
124
|
+
}
|
|
119
125
|
}
|
|
120
126
|
async getGroupId(options) {
|
|
121
127
|
const { ownerGroupId, ownerGroupName } = options;
|
|
@@ -135,51 +141,50 @@ _PlannerTaskRemoveCommand_instances = new WeakSet(), _PlannerTaskRemoveCommand_i
|
|
|
135
141
|
bucketName: typeof args.options.bucketName !== 'undefined',
|
|
136
142
|
planId: typeof args.options.planId !== 'undefined',
|
|
137
143
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
144
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
138
145
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
139
146
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
140
147
|
force: !!args.options.force
|
|
141
148
|
});
|
|
142
149
|
});
|
|
143
150
|
}, _PlannerTaskRemoveCommand_initOptions = function _PlannerTaskRemoveCommand_initOptions() {
|
|
144
|
-
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '-f, --force' });
|
|
151
|
+
this.options.unshift({ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '-f, --force' });
|
|
145
152
|
}, _PlannerTaskRemoveCommand_initValidators = function _PlannerTaskRemoveCommand_initValidators() {
|
|
146
153
|
this.validators.push(async (args) => {
|
|
147
154
|
if (args.options.id) {
|
|
148
|
-
if (args.options.bucketId || args.options.bucketName ||
|
|
149
|
-
|
|
155
|
+
if (args.options.bucketId || args.options.bucketName ||
|
|
156
|
+
args.options.planId || args.options.planTitle || args.options.rosterId ||
|
|
157
|
+
args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
158
|
+
return 'Don\'t specify bucketId,bucketName, planId, planTitle, rosterId, ownerGroupId, or ownerGroupName when using id';
|
|
150
159
|
}
|
|
151
160
|
}
|
|
152
|
-
if (args.options.
|
|
153
|
-
|
|
154
|
-
return 'Specify either bucketId or bucketName when using title';
|
|
155
|
-
}
|
|
156
|
-
if (args.options.bucketId && args.options.bucketName) {
|
|
157
|
-
return 'Specify either bucketId or bucketName when using title but not both';
|
|
158
|
-
}
|
|
159
|
-
if (args.options.bucketName) {
|
|
160
|
-
if (!args.options.planId && !args.options.planTitle) {
|
|
161
|
-
return 'Specify either planId or planTitle when using bucketName';
|
|
162
|
-
}
|
|
163
|
-
if (args.options.planId && args.options.planTitle) {
|
|
164
|
-
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
if (args.options.planTitle) {
|
|
168
|
-
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
169
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
170
|
-
}
|
|
171
|
-
if (args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
172
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
if (args.options.ownerGroupId && !validation.isValidGuid(args.options.ownerGroupId)) {
|
|
176
|
-
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
177
|
-
}
|
|
161
|
+
if (args.options.ownerGroupId && !validation.isValidGuid(args.options.ownerGroupId)) {
|
|
162
|
+
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
178
163
|
}
|
|
179
164
|
return true;
|
|
180
165
|
});
|
|
181
166
|
}, _PlannerTaskRemoveCommand_initOptionSets = function _PlannerTaskRemoveCommand_initOptionSets() {
|
|
182
|
-
this.optionSets.push({ options: ['id', 'title'] }
|
|
167
|
+
this.optionSets.push({ options: ['id', 'title'] }, {
|
|
168
|
+
options: ['planId', 'planTitle', 'rosterId'],
|
|
169
|
+
runsWhen: (args) => {
|
|
170
|
+
return args.options.id === undefined;
|
|
171
|
+
}
|
|
172
|
+
}, {
|
|
173
|
+
options: ['bucketId', 'bucketName'],
|
|
174
|
+
runsWhen: (args) => {
|
|
175
|
+
return args.options.title !== undefined;
|
|
176
|
+
}
|
|
177
|
+
}, {
|
|
178
|
+
options: ['planId', 'planTitle'],
|
|
179
|
+
runsWhen: (args) => {
|
|
180
|
+
return args.options.bucketName !== undefined && args.options.rosterId === undefined;
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
184
|
+
runsWhen: (args) => {
|
|
185
|
+
return args.options.planTitle !== undefined;
|
|
186
|
+
}
|
|
187
|
+
});
|
|
183
188
|
};
|
|
184
189
|
export default new PlannerTaskRemoveCommand();
|
|
185
190
|
//# sourceMappingURL=task-remove.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 _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _PlannerTaskSetCommand_initOptions, _PlannerTaskSetCommand_initValidators;
|
|
6
|
+
var _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _PlannerTaskSetCommand_initOptions, _PlannerTaskSetCommand_initValidators, _PlannerTaskSetCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
@@ -26,6 +26,7 @@ class PlannerTaskSetCommand extends GraphCommand {
|
|
|
26
26
|
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initTelemetry).call(this);
|
|
27
27
|
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initOptions).call(this);
|
|
28
28
|
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initValidators).call(this);
|
|
29
|
+
__classPrivateFieldGet(this, _PlannerTaskSetCommand_instances, "m", _PlannerTaskSetCommand_initOptionSets).call(this);
|
|
29
30
|
}
|
|
30
31
|
async commandAction(logger, args) {
|
|
31
32
|
try {
|
|
@@ -170,9 +171,15 @@ class PlannerTaskSetCommand extends GraphCommand {
|
|
|
170
171
|
if (options.planId) {
|
|
171
172
|
return options.planId;
|
|
172
173
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
if (options.rosterId) {
|
|
175
|
+
const plan = await planner.getPlanByRosterId(options.rosterId);
|
|
176
|
+
return plan.id;
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
const groupId = await this.getGroupId(options);
|
|
180
|
+
const plan = await planner.getPlanByTitle(options.planTitle, groupId);
|
|
181
|
+
return plan.id;
|
|
182
|
+
}
|
|
176
183
|
}
|
|
177
184
|
async getGroupId(options) {
|
|
178
185
|
if (options.ownerGroupId) {
|
|
@@ -222,6 +229,7 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
222
229
|
title: typeof args.options.title !== 'undefined',
|
|
223
230
|
planId: typeof args.options.planId !== 'undefined',
|
|
224
231
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
232
|
+
rosterId: typeof args.options.rosterId !== 'undefined',
|
|
225
233
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
226
234
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
227
235
|
bucketId: typeof args.options.bucketId !== 'undefined',
|
|
@@ -239,24 +247,9 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
239
247
|
});
|
|
240
248
|
});
|
|
241
249
|
}, _PlannerTaskSetCommand_initOptions = function _PlannerTaskSetCommand_initOptions() {
|
|
242
|
-
this.options.unshift({ option: '-i, --id <id>' }, { option: '-t, --title [title]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, { option: '--appliedCategories [appliedCategories]' }, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority.priorityValues });
|
|
250
|
+
this.options.unshift({ option: '-i, --id <id>' }, { option: '-t, --title [title]' }, { option: '--planId [planId]' }, { option: '--planTitle [planTitle]' }, { option: '--rosterId [rosterId]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--startDateTime [startDateTime]' }, { option: '--dueDateTime [dueDateTime]' }, { option: '--percentComplete [percentComplete]' }, { option: '--assignedToUserIds [assignedToUserIds]' }, { option: '--assignedToUserNames [assignedToUserNames]' }, { option: '--assigneePriority [assigneePriority]' }, { option: '--description [description]' }, { option: '--appliedCategories [appliedCategories]' }, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority.priorityValues });
|
|
243
251
|
}, _PlannerTaskSetCommand_initValidators = function _PlannerTaskSetCommand_initValidators() {
|
|
244
252
|
this.validators.push(async (args) => {
|
|
245
|
-
if (args.options.bucketId && args.options.bucketName) {
|
|
246
|
-
return 'Specify either bucketId or bucketName but not both';
|
|
247
|
-
}
|
|
248
|
-
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
249
|
-
return 'Specify either planId or planTitle when using bucketName';
|
|
250
|
-
}
|
|
251
|
-
if (args.options.bucketName && args.options.planId && args.options.planTitle) {
|
|
252
|
-
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
253
|
-
}
|
|
254
|
-
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
255
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
256
|
-
}
|
|
257
|
-
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
258
|
-
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
259
|
-
}
|
|
260
253
|
if (args.options.ownerGroupId && !validation.isValidGuid(args.options.ownerGroupId)) {
|
|
261
254
|
return `${args.options.ownerGroupId} is not a valid GUID`;
|
|
262
255
|
}
|
|
@@ -275,9 +268,6 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
275
268
|
if (args.options.assignedToUserIds && !validation.isValidGuidArray(args.options.assignedToUserIds.split(','))) {
|
|
276
269
|
return 'assignedToUserIds contains invalid GUID';
|
|
277
270
|
}
|
|
278
|
-
if (args.options.assignedToUserIds && args.options.assignedToUserNames) {
|
|
279
|
-
return 'Specify either assignedToUserIds or assignedToUserNames but not both';
|
|
280
|
-
}
|
|
281
271
|
if (args.options.appliedCategories && args.options.appliedCategories.split(',').filter(category => this.allowedAppliedCategories.indexOf(category.toLocaleLowerCase()) < 0).length !== 0) {
|
|
282
272
|
return 'The appliedCategories contains invalid value. Specify either category1, category2, category3, category4, category5 and/or category6 as properties';
|
|
283
273
|
}
|
|
@@ -293,6 +283,28 @@ _PlannerTaskSetCommand_instances = new WeakSet(), _PlannerTaskSetCommand_initTel
|
|
|
293
283
|
}
|
|
294
284
|
return true;
|
|
295
285
|
});
|
|
286
|
+
}, _PlannerTaskSetCommand_initOptionSets = function _PlannerTaskSetCommand_initOptionSets() {
|
|
287
|
+
this.optionSets.push({
|
|
288
|
+
options: ['bucketId', 'bucketName'],
|
|
289
|
+
runsWhen: (args) => {
|
|
290
|
+
return args.options.bucketId || args.options.bucketName;
|
|
291
|
+
}
|
|
292
|
+
}, {
|
|
293
|
+
options: ['planId', 'planTitle', 'rosterId'],
|
|
294
|
+
runsWhen: (args) => {
|
|
295
|
+
return args.options.bucketName !== undefined;
|
|
296
|
+
}
|
|
297
|
+
}, {
|
|
298
|
+
options: ['ownerGroupId', 'ownerGroupName'],
|
|
299
|
+
runsWhen: (args) => {
|
|
300
|
+
return args.options.planTitle !== undefined;
|
|
301
|
+
}
|
|
302
|
+
}, {
|
|
303
|
+
options: ['assignedToUserIds', 'assignedToUserNames'],
|
|
304
|
+
runsWhen: (args) => {
|
|
305
|
+
return args.options.assignedToUserIds || args.options.assignedToUserNames;
|
|
306
|
+
}
|
|
307
|
+
});
|
|
296
308
|
};
|
|
297
309
|
export default new PlannerTaskSetCommand();
|
|
298
310
|
//# sourceMappingURL=task-set.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 _PurviewRetentionLabelAddCommand_instances, _PurviewRetentionLabelAddCommand_initTelemetry, _PurviewRetentionLabelAddCommand_initOptions, _PurviewRetentionLabelAddCommand_initValidators, _PurviewRetentionLabelAddCommand_initOptionSets;
|
|
6
|
+
var _PurviewRetentionLabelAddCommand_instances, _a, _PurviewRetentionLabelAddCommand_initTelemetry, _PurviewRetentionLabelAddCommand_initOptions, _PurviewRetentionLabelAddCommand_initValidators, _PurviewRetentionLabelAddCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -90,7 +90,7 @@ class PurviewRetentionLabelAddCommand extends GraphCommand {
|
|
|
90
90
|
return filteredEventTypes[0].id;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
_PurviewRetentionLabelAddCommand_instances = new WeakSet(), _PurviewRetentionLabelAddCommand_initTelemetry = function _PurviewRetentionLabelAddCommand_initTelemetry() {
|
|
93
|
+
_a = PurviewRetentionLabelAddCommand, _PurviewRetentionLabelAddCommand_instances = new WeakSet(), _PurviewRetentionLabelAddCommand_initTelemetry = function _PurviewRetentionLabelAddCommand_initTelemetry() {
|
|
94
94
|
this.telemetry.push((args) => {
|
|
95
95
|
Object.assign(this.telemetryProperties, {
|
|
96
96
|
retentionTrigger: typeof args.options.retentionTrigger !== 'undefined',
|
|
@@ -107,18 +107,18 @@ _PurviewRetentionLabelAddCommand_instances = new WeakSet(), _PurviewRetentionLab
|
|
|
107
107
|
option: '-n, --displayName <displayName>'
|
|
108
108
|
}, {
|
|
109
109
|
option: '--behaviorDuringRetentionPeriod <behaviorDuringRetentionPeriod>',
|
|
110
|
-
autocomplete:
|
|
110
|
+
autocomplete: _a.behaviorDuringRetentionPeriods
|
|
111
111
|
}, {
|
|
112
112
|
option: '--actionAfterRetentionPeriod <actionAfterRetentionPeriod>',
|
|
113
|
-
autocomplete:
|
|
113
|
+
autocomplete: _a.actionAfterRetentionPeriods
|
|
114
114
|
}, {
|
|
115
115
|
option: '--retentionDuration <retentionDuration>'
|
|
116
116
|
}, {
|
|
117
117
|
option: '-t, --retentionTrigger [retentionTrigger]',
|
|
118
|
-
autocomplete:
|
|
118
|
+
autocomplete: _a.retentionTriggers
|
|
119
119
|
}, {
|
|
120
120
|
option: '--defaultRecordBehavior [defaultRecordBehavior]',
|
|
121
|
-
autocomplete:
|
|
121
|
+
autocomplete: _a.defaultRecordBehavior
|
|
122
122
|
}, {
|
|
123
123
|
option: '--descriptionForUsers [descriptionForUsers]'
|
|
124
124
|
}, {
|
|
@@ -135,19 +135,19 @@ _PurviewRetentionLabelAddCommand_instances = new WeakSet(), _PurviewRetentionLab
|
|
|
135
135
|
if (isNaN(args.options.retentionDuration)) {
|
|
136
136
|
return `Specified retentionDuration ${args.options.retentionDuration} is not a number`;
|
|
137
137
|
}
|
|
138
|
-
if (
|
|
139
|
-
return `${args.options.behaviorDuringRetentionPeriod} is not a valid behavior of a document with the label. Allowed values are ${
|
|
138
|
+
if (_a.behaviorDuringRetentionPeriods.indexOf(args.options.behaviorDuringRetentionPeriod) === -1) {
|
|
139
|
+
return `${args.options.behaviorDuringRetentionPeriod} is not a valid behavior of a document with the label. Allowed values are ${_a.behaviorDuringRetentionPeriods.join(', ')}`;
|
|
140
140
|
}
|
|
141
|
-
if (
|
|
142
|
-
return `${args.options.actionAfterRetentionPeriod} is not a valid action to take on a document with the label. Allowed values are ${
|
|
141
|
+
if (_a.actionAfterRetentionPeriods.indexOf(args.options.actionAfterRetentionPeriod) === -1) {
|
|
142
|
+
return `${args.options.actionAfterRetentionPeriod} is not a valid action to take on a document with the label. Allowed values are ${_a.actionAfterRetentionPeriods.join(', ')}`;
|
|
143
143
|
}
|
|
144
144
|
if (args.options.retentionTrigger &&
|
|
145
|
-
|
|
146
|
-
return `${args.options.retentionTrigger} is not a valid action retention duration calculation. Allowed values are ${
|
|
145
|
+
_a.retentionTriggers.indexOf(args.options.retentionTrigger) === -1) {
|
|
146
|
+
return `${args.options.retentionTrigger} is not a valid action retention duration calculation. Allowed values are ${_a.retentionTriggers.join(', ')}`;
|
|
147
147
|
}
|
|
148
148
|
if (args.options.defaultRecordBehavior &&
|
|
149
|
-
|
|
150
|
-
return `${args.options.defaultRecordBehavior} is not a valid state of a record label. Allowed values are ${
|
|
149
|
+
_a.defaultRecordBehavior.indexOf(args.options.defaultRecordBehavior) === -1) {
|
|
150
|
+
return `${args.options.defaultRecordBehavior} is not a valid state of a record label. Allowed values are ${_a.defaultRecordBehavior.join(', ')}`;
|
|
151
151
|
}
|
|
152
152
|
return true;
|
|
153
153
|
});
|
|
@@ -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 _SpfxPackageGenerateCommand_instances, _SpfxPackageGenerateCommand_initTelemetry, _SpfxPackageGenerateCommand_initOptions, _SpfxPackageGenerateCommand_initValidators;
|
|
6
|
+
var _SpfxPackageGenerateCommand_instances, _a, _SpfxPackageGenerateCommand_initTelemetry, _SpfxPackageGenerateCommand_initOptions, _SpfxPackageGenerateCommand_initValidators;
|
|
7
7
|
import AdmZip from 'adm-zip';
|
|
8
8
|
import fs from 'fs';
|
|
9
9
|
import os from 'os';
|
|
@@ -37,7 +37,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
|
|
|
37
37
|
supportedHosts.push('TeamsPersonalApp');
|
|
38
38
|
}
|
|
39
39
|
const tokens = {
|
|
40
|
-
clientSideAssetsFeatureId:
|
|
40
|
+
clientSideAssetsFeatureId: _a.generateNewId(),
|
|
41
41
|
developerName: args.options.developerName || 'Contoso',
|
|
42
42
|
developerWebsiteUrl: args.options.developerWebsiteUrl || 'https://contoso.com/my-app',
|
|
43
43
|
developerPrivacyUrl: args.options.developerPrivacyUrl || 'https://contoso.com/privacy',
|
|
@@ -46,18 +46,18 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
|
|
|
46
46
|
exposePageContextGlobally: args.options.exposePageContextGlobally ? '!0' : '!1',
|
|
47
47
|
exposeTeamsContextGlobally: args.options.exposeTeamsContextGlobally ? '!0' : '!1',
|
|
48
48
|
html: args.options.html.replace(/"/g, '\\"').replace(/\r\n/g, ' ').replace(/\n/g, ' '),
|
|
49
|
-
packageName:
|
|
50
|
-
productId:
|
|
49
|
+
packageName: _a.getSafePackageName(args.options.webPartTitle),
|
|
50
|
+
productId: _a.generateNewId(),
|
|
51
51
|
skipFeatureDeployment: (args.options.allowTenantWideDeployment === true).toString(),
|
|
52
52
|
supportedHosts: JSON.stringify(supportedHosts).replace(/"/g, '"'),
|
|
53
|
-
webPartId:
|
|
53
|
+
webPartId: _a.generateNewId(),
|
|
54
54
|
webPartFeatureName: `${args.options.webPartTitle} Feature`,
|
|
55
55
|
webPartFeatureDescription: `A feature which activates the Client-Side WebPart named ${args.options.webPartTitle}`,
|
|
56
|
-
webPartAlias:
|
|
56
|
+
webPartAlias: _a.getWebPartAlias(args.options.webPartTitle),
|
|
57
57
|
webPartName: args.options.webPartTitle,
|
|
58
|
-
webPartSafeName:
|
|
58
|
+
webPartSafeName: _a.getSafeWebPartName(args.options.webPartTitle),
|
|
59
59
|
webPartDescription: args.options.webPartDescription,
|
|
60
|
-
webPartModule:
|
|
60
|
+
webPartModule: _a.getSafePackageName(args.options.webPartTitle)
|
|
61
61
|
};
|
|
62
62
|
let tmpDir = undefined;
|
|
63
63
|
let error;
|
|
@@ -73,7 +73,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
|
|
|
73
73
|
await logger.log('Copying files...');
|
|
74
74
|
}
|
|
75
75
|
const src = path.join(__dirname, 'package-generate', 'assets');
|
|
76
|
-
fsUtil.copyRecursiveSync(src, tmpDir, s =>
|
|
76
|
+
fsUtil.copyRecursiveSync(src, tmpDir, s => _a.replaceTokens(s, tokens));
|
|
77
77
|
const files = fsUtil.readdirR(tmpDir);
|
|
78
78
|
if (this.verbose) {
|
|
79
79
|
await logger.log('Processing files...');
|
|
@@ -82,7 +82,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
|
|
|
82
82
|
if (this.debug) {
|
|
83
83
|
await logger.log(`Processing ${filePath}...`);
|
|
84
84
|
}
|
|
85
|
-
if (!
|
|
85
|
+
if (!_a.isBinaryFile(filePath)) {
|
|
86
86
|
if (this.verbose) {
|
|
87
87
|
await logger.log('Replacing tokens...');
|
|
88
88
|
}
|
|
@@ -91,7 +91,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
|
|
|
91
91
|
await logger.log('Before:');
|
|
92
92
|
await logger.log(fileContents);
|
|
93
93
|
}
|
|
94
|
-
fileContents =
|
|
94
|
+
fileContents = _a.replaceTokens(fileContents, tokens);
|
|
95
95
|
if (this.debug) {
|
|
96
96
|
await logger.log('After:');
|
|
97
97
|
await logger.log(fileContents);
|
|
@@ -170,7 +170,7 @@ class SpfxPackageGenerateCommand extends AnonymousCommand {
|
|
|
170
170
|
return 'AutoWP' + webPartName.replace(/[^a-zA-Z0-9]/g, '').substr(0, 40);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
_SpfxPackageGenerateCommand_instances = new WeakSet(), _SpfxPackageGenerateCommand_initTelemetry = function _SpfxPackageGenerateCommand_initTelemetry() {
|
|
173
|
+
_a = SpfxPackageGenerateCommand, _SpfxPackageGenerateCommand_instances = new WeakSet(), _SpfxPackageGenerateCommand_initTelemetry = function _SpfxPackageGenerateCommand_initTelemetry() {
|
|
174
174
|
this.telemetry.push((args) => {
|
|
175
175
|
Object.assign(this.telemetryProperties, {
|
|
176
176
|
allowTenantWideDeployment: args.options.allowTenantWideDeployment === true,
|
|
@@ -187,13 +187,13 @@ _SpfxPackageGenerateCommand_instances = new WeakSet(), _SpfxPackageGenerateComma
|
|
|
187
187
|
}, _SpfxPackageGenerateCommand_initOptions = function _SpfxPackageGenerateCommand_initOptions() {
|
|
188
188
|
this.options.unshift({ option: '-t, --webPartTitle <webPartTitle>' }, { option: '-d, --webPartDescription <webPartDescription>' }, { option: '-n, --name <name>' }, { option: '--html <html>' }, {
|
|
189
189
|
option: '--enableForTeams [enableForTeams]',
|
|
190
|
-
autocomplete:
|
|
190
|
+
autocomplete: _a.enableForTeamsOptions
|
|
191
191
|
}, { option: '--exposePageContextGlobally' }, { option: '--exposeTeamsContextGlobally' }, { option: '--allowTenantWideDeployment' }, { option: '--developerName [developerName]' }, { option: '--developerPrivacyUrl [developerPrivacyUrl]' }, { option: '--developerTermsOfUseUrl [developerTermsOfUseUrl]' }, { option: '--developerWebsiteUrl [developerWebsiteUrl]' }, { option: '--developerMpnId [developerMpnId]' });
|
|
192
192
|
}, _SpfxPackageGenerateCommand_initValidators = function _SpfxPackageGenerateCommand_initValidators() {
|
|
193
193
|
this.validators.push(async (args) => {
|
|
194
194
|
if (args.options.enableForTeams &&
|
|
195
|
-
|
|
196
|
-
return `${args.options.enableForTeams} is not a valid value for enableForTeams. Allowed values are: ${
|
|
195
|
+
_a.enableForTeamsOptions.indexOf(args.options.enableForTeams) < 0) {
|
|
196
|
+
return `${args.options.enableForTeams} is not a valid value for enableForTeams. Allowed values are: ${_a.enableForTeamsOptions.join(', ')}`;
|
|
197
197
|
}
|
|
198
198
|
return true;
|
|
199
199
|
});
|