@pnp/cli-microsoft365 5.7.0-beta.c116041 → 6.0.0-beta.22bbec5
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/dist/Auth.js +1 -2
- package/dist/m365/aad/commands/app/app-remove.js +0 -4
- package/dist/m365/aad/commands/app/app-role-remove.js +0 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +13 -13
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +14 -14
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +12 -12
- package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +12 -12
- package/dist/m365/aad/commands/policy/policy-list.js +6 -6
- package/dist/m365/aad/commands/sp/sp-get.js +14 -14
- package/dist/m365/aad/commands.js +0 -2
- package/dist/m365/cli/commands/config/config-set.js +0 -1
- package/dist/m365/flow/commands/flow-disable.js +2 -2
- package/dist/m365/flow/commands/flow-enable.js +2 -2
- package/dist/m365/flow/commands/flow-export.js +5 -5
- package/dist/m365/flow/commands/flow-get.js +2 -2
- package/dist/m365/flow/commands/flow-list.js +2 -2
- package/dist/m365/flow/commands/flow-remove.js +3 -3
- package/dist/m365/flow/commands/run/run-cancel.js +6 -6
- package/dist/m365/flow/commands/run/run-get.js +4 -4
- package/dist/m365/flow/commands/run/run-list.js +4 -4
- package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
- package/dist/m365/outlook/commands/message/message-move.js +2 -2
- package/dist/m365/pa/commands/connector/connector-export.js +3 -3
- package/dist/m365/pa/commands/connector/connector-list.js +2 -2
- package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
- package/dist/m365/planner/commands/bucket/bucket-add.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-get.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-list.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -11
- package/dist/m365/planner/commands/bucket/bucket-set.js +4 -11
- package/dist/m365/planner/commands/plan/plan-get.js +0 -4
- package/dist/m365/planner/commands/task/task-add.js +5 -10
- package/dist/m365/planner/commands/task/task-get.js +5 -19
- package/dist/m365/planner/commands/task/task-list.js +4 -11
- package/dist/m365/planner/commands/task/task-set.js +5 -10
- package/dist/m365/planner/commands.js +0 -2
- package/dist/m365/spfx/commands/package/package-generate.js +2 -2
- package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
- package/dist/m365/spo/commands/app/app-add.js +7 -7
- package/dist/m365/spo/commands/app/app-deploy.js +7 -7
- package/dist/m365/spo/commands/app/app-get.js +7 -7
- package/dist/m365/spo/commands/app/app-install.js +6 -6
- package/dist/m365/spo/commands/app/app-list.js +7 -7
- package/dist/m365/spo/commands/app/app-remove.js +7 -7
- package/dist/m365/spo/commands/app/app-retract.js +7 -7
- package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
- package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
- package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
- package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
- package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
- package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
- package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
- package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
- package/dist/m365/spo/commands/feature/feature-list.js +3 -3
- package/dist/m365/spo/commands/field/field-get.js +1 -7
- package/dist/m365/spo/commands/field/field-remove.js +1 -7
- package/dist/m365/spo/commands/file/file-checkin.js +8 -8
- package/dist/m365/spo/commands/file/file-checkout.js +8 -8
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +16 -16
- package/dist/m365/spo/commands/folder/folder-get.js +2 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
- package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +7 -7
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
- package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -4
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +6 -6
- package/dist/m365/spo/commands/list/list-list.js +3 -13
- package/dist/m365/spo/commands/list/list-view-field-add.js +23 -23
- package/dist/m365/spo/commands/list/list-view-field-remove.js +14 -14
- package/dist/m365/spo/commands/list/list-view-field-set.js +18 -18
- package/dist/m365/spo/commands/list/list-view-get.js +12 -12
- package/dist/m365/spo/commands/list/list-view-remove.js +14 -14
- package/dist/m365/spo/commands/list/list-view-set.js +14 -14
- package/dist/m365/spo/commands/listitem/listitem-list.js +6 -25
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -4
- package/dist/m365/spo/commands/page/page-column-get.js +2 -2
- package/dist/m365/spo/commands/page/page-column-list.js +2 -2
- package/dist/m365/spo/commands/page/page-control-get.js +4 -4
- package/dist/m365/spo/commands/page/page-control-list.js +3 -3
- package/dist/m365/spo/commands/page/page-control-set.js +3 -3
- package/dist/m365/spo/commands/page/page-section-add.js +2 -2
- package/dist/m365/spo/commands/page/page-section-get.js +2 -2
- package/dist/m365/spo/commands/page/page-section-list.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
- package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +9 -9
- package/dist/m365/spo/commands/site/site-apppermission-set.js +6 -6
- package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
- package/dist/m365/spo/commands/site/site-ensure.js +1 -1
- package/dist/m365/spo/commands/site/site-groupify.js +3 -3
- package/dist/m365/spo/commands/site/site-list.js +6 -17
- package/dist/m365/spo/commands/site/site-rename.js +9 -9
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
- package/dist/m365/spo/commands/web/web-add.js +5 -5
- package/dist/m365/spo/commands/web/web-get.js +3 -3
- package/dist/m365/spo/commands/web/web-list.js +4 -4
- package/dist/m365/spo/commands/web/web-reindex.js +8 -8
- package/dist/m365/spo/commands/web/web-remove.js +5 -5
- package/dist/m365/spo/commands/web/web-set.js +4 -4
- package/dist/m365/spo/commands.js +0 -3
- package/dist/m365/teams/commands/app/app-install.js +4 -4
- package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
- package/dist/m365/teams/commands/channel/channel-get.js +19 -19
- package/dist/m365/teams/commands/channel/channel-remove.js +15 -15
- package/dist/m365/teams/commands/channel/channel-set.js +7 -7
- package/dist/m365/teams/commands/message/message-get.js +3 -3
- package/dist/m365/teams/commands/tab/tab-get.js +13 -13
- package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
- package/dist/m365/teams/commands/team/team-archive.js +3 -13
- package/dist/m365/teams/commands/team/team-clone.js +3 -20
- package/dist/m365/teams/commands/team/team-remove.js +5 -17
- package/dist/m365/teams/commands/team/team-set.js +1 -13
- package/dist/m365/teams/commands/team/team-unarchive.js +4 -16
- package/dist/m365/teams/commands/user/user-app-add.js +4 -4
- package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
- package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
- package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
- package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
- package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
- package/dist/m365/yammer/commands/user/user-get.js +5 -5
- package/dist/settingsNames.js +0 -1
- package/docs/docs/cmd/aad/app/app-remove.md +0 -6
- package/docs/docs/cmd/aad/app/app-role-remove.md +0 -6
- package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
- package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
- package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
- package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
- package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
- package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
- package/docs/docs/cmd/flow/flow-disable.md +3 -3
- package/docs/docs/cmd/flow/flow-enable.md +1 -1
- package/docs/docs/cmd/flow/flow-export.md +5 -5
- package/docs/docs/cmd/flow/flow-get.md +3 -3
- package/docs/docs/cmd/flow/flow-list.md +3 -3
- package/docs/docs/cmd/flow/flow-remove.md +5 -5
- package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
- package/docs/docs/cmd/flow/run/run-get.md +3 -3
- package/docs/docs/cmd/flow/run/run-list.md +3 -3
- package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
- package/docs/docs/cmd/outlook/message/message-move.md +4 -4
- package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
- package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
- package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
- package/docs/docs/cmd/planner/bucket/bucket-add.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-get.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-list.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +0 -3
- package/docs/docs/cmd/planner/bucket/bucket-set.md +0 -3
- package/docs/docs/cmd/planner/plan/plan-get.md +0 -6
- package/docs/docs/cmd/planner/task/task-add.md +0 -3
- package/docs/docs/cmd/planner/task/task-get.md +0 -3
- package/docs/docs/cmd/planner/task/task-list.md +0 -3
- package/docs/docs/cmd/planner/task/task-set.md +0 -3
- package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
- package/docs/docs/cmd/spo/app/app-add.md +2 -2
- package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
- package/docs/docs/cmd/spo/app/app-get.md +2 -2
- package/docs/docs/cmd/spo/app/app-install.md +2 -2
- package/docs/docs/cmd/spo/app/app-list.md +2 -2
- package/docs/docs/cmd/spo/app/app-remove.md +2 -2
- package/docs/docs/cmd/spo/app/app-retract.md +2 -2
- package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
- package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
- package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-add.md +10 -10
- package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
- package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
- package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
- package/docs/docs/cmd/spo/customaction/customaction-set.md +7 -7
- package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
- package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
- package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
- package/docs/docs/cmd/spo/field/field-get.md +0 -3
- package/docs/docs/cmd/spo/field/field-remove.md +0 -3
- package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
- package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
- package/docs/docs/cmd/spo/folder/folder-get.md +2 -2
- package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
- package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +3 -3
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +3 -3
- package/docs/docs/cmd/spo/list/list-list.md +0 -3
- package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
- package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
- package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
- package/docs/docs/cmd/spo/list/list-view-set.md +7 -7
- package/docs/docs/cmd/spo/listitem/listitem-list.md +0 -6
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +5 -5
- package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +3 -3
- package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
- package/docs/docs/cmd/spo/page/page-control-set.md +4 -4
- package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
- package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
- package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
- package/docs/docs/cmd/spo/site/site-groupify.md +5 -5
- package/docs/docs/cmd/spo/site/site-list.md +6 -6
- package/docs/docs/cmd/spo/site/site-rename.md +6 -6
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
- package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
- package/docs/docs/cmd/spo/web/web-add.md +4 -4
- package/docs/docs/cmd/spo/web/web-get.md +3 -3
- package/docs/docs/cmd/spo/web/web-list.md +2 -2
- package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
- package/docs/docs/cmd/spo/web/web-remove.md +2 -2
- package/docs/docs/cmd/spo/web/web-set.md +9 -9
- package/docs/docs/cmd/teams/app/app-install.md +5 -5
- package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
- package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
- package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
- package/docs/docs/cmd/teams/message/message-get.md +3 -3
- package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
- package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
- package/docs/docs/cmd/teams/team/team-archive.md +0 -3
- package/docs/docs/cmd/teams/team/team-clone.md +0 -3
- package/docs/docs/cmd/teams/team/team-remove.md +0 -3
- package/docs/docs/cmd/teams/team/team-set.md +0 -3
- package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
- package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
- package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
- package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
- package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
- package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
- package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
- package/docs/docs/cmd/yammer/user/user-get.md +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/m365/spo/commands/site/site-classic-add.js +0 -342
- package/dist/m365/spo/commands/site/site-classic-list.js +0 -106
- package/dist/m365/spo/commands/site/site-classic-set.js +0 -367
- package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
- package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
- package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
|
@@ -35,11 +35,11 @@ class FlowRunCancelCommand extends AzmgmtCommand_1.default {
|
|
|
35
35
|
}
|
|
36
36
|
commandAction(logger, args, cb) {
|
|
37
37
|
if (this.verbose) {
|
|
38
|
-
logger.log(`Cancelling run ${args.options.name} of Microsoft Flow ${args.options.
|
|
38
|
+
logger.log(`Cancelling run ${args.options.name} of Microsoft Flow ${args.options.flowName}...`);
|
|
39
39
|
}
|
|
40
40
|
const cancelFlow = () => {
|
|
41
41
|
const requestOptions = {
|
|
42
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.
|
|
42
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.environmentName)}/flows/${encodeURIComponent(args.options.flowName)}/runs/${encodeURIComponent(args.options.name)}/cancel?api-version=2016-11-01`,
|
|
43
43
|
headers: {
|
|
44
44
|
accept: 'application/json'
|
|
45
45
|
},
|
|
@@ -73,16 +73,16 @@ _FlowRunCancelCommand_instances = new WeakSet(), _FlowRunCancelCommand_initOptio
|
|
|
73
73
|
this.options.unshift({
|
|
74
74
|
option: '-n, --name <name>'
|
|
75
75
|
}, {
|
|
76
|
-
option: '-f, --
|
|
76
|
+
option: '-f, --flowName <flowName>'
|
|
77
77
|
}, {
|
|
78
|
-
option: '-e, --
|
|
78
|
+
option: '-e, --environmentName <environmentName>'
|
|
79
79
|
}, {
|
|
80
80
|
option: '--confirm'
|
|
81
81
|
});
|
|
82
82
|
}, _FlowRunCancelCommand_initValidators = function _FlowRunCancelCommand_initValidators() {
|
|
83
83
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
if (!utils_1.validation.isValidGuid(args.options.
|
|
85
|
-
return `${args.options.
|
|
84
|
+
if (!utils_1.validation.isValidGuid(args.options.flowName)) {
|
|
85
|
+
return `${args.options.flowName} is not a valid GUID`;
|
|
86
86
|
}
|
|
87
87
|
return true;
|
|
88
88
|
}));
|
|
@@ -26,10 +26,10 @@ class FlowRunGetCommand extends AzmgmtCommand_1.default {
|
|
|
26
26
|
}
|
|
27
27
|
commandAction(logger, args, cb) {
|
|
28
28
|
if (this.verbose) {
|
|
29
|
-
logger.logToStderr(`Retrieving information about run ${args.options.name} of Microsoft Flow ${args.options.
|
|
29
|
+
logger.logToStderr(`Retrieving information about run ${args.options.name} of Microsoft Flow ${args.options.flowName}...`);
|
|
30
30
|
}
|
|
31
31
|
const requestOptions = {
|
|
32
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.
|
|
32
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.environmentName)}/flows/${encodeURIComponent(args.options.flowName)}/runs/${encodeURIComponent(args.options.name)}?api-version=2016-11-01`,
|
|
33
33
|
headers: {
|
|
34
34
|
accept: 'application/json'
|
|
35
35
|
},
|
|
@@ -51,9 +51,9 @@ _FlowRunGetCommand_instances = new WeakSet(), _FlowRunGetCommand_initOptions = f
|
|
|
51
51
|
this.options.unshift({
|
|
52
52
|
option: '-n, --name <name>'
|
|
53
53
|
}, {
|
|
54
|
-
option: '-f, --
|
|
54
|
+
option: '-f, --flowName <flowName>'
|
|
55
55
|
}, {
|
|
56
|
-
option: '-e, --
|
|
56
|
+
option: '-e, --environmentName <environmentName>'
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
module.exports = new FlowRunGetCommand();
|
|
@@ -25,9 +25,9 @@ class FlowRunListCommand extends AzmgmtItemsListCommand_1.AzmgmtItemsListCommand
|
|
|
25
25
|
}
|
|
26
26
|
commandAction(logger, args, cb) {
|
|
27
27
|
if (this.verbose) {
|
|
28
|
-
logger.logToStderr(`Retrieving list of runs for Microsoft Flow ${args.options.
|
|
28
|
+
logger.logToStderr(`Retrieving list of runs for Microsoft Flow ${args.options.flowName}...`);
|
|
29
29
|
}
|
|
30
|
-
const url = `${this.resource}providers/Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.
|
|
30
|
+
const url = `${this.resource}providers/Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.environmentName)}/flows/${encodeURIComponent(args.options.flowName)}/runs?api-version=2016-11-01`;
|
|
31
31
|
this
|
|
32
32
|
.getAllItems(url, logger, true)
|
|
33
33
|
.then(() => {
|
|
@@ -49,9 +49,9 @@ class FlowRunListCommand extends AzmgmtItemsListCommand_1.AzmgmtItemsListCommand
|
|
|
49
49
|
}
|
|
50
50
|
_FlowRunListCommand_instances = new WeakSet(), _FlowRunListCommand_initOptions = function _FlowRunListCommand_initOptions() {
|
|
51
51
|
this.options.unshift({
|
|
52
|
-
option: '-f, --
|
|
52
|
+
option: '-f, --flowName <flowName>'
|
|
53
53
|
}, {
|
|
54
|
-
option: '-e, --
|
|
54
|
+
option: '-e, --environmentName <environmentName>'
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
module.exports = new FlowRunListCommand();
|
|
@@ -37,17 +37,17 @@ class FlowRunResubmitCommand extends AzmgmtCommand_1.default {
|
|
|
37
37
|
}
|
|
38
38
|
commandAction(logger, args, cb) {
|
|
39
39
|
if (this.verbose) {
|
|
40
|
-
logger.logToStderr(`Resubmitting run ${args.options.name} of Microsoft Flow ${args.options.
|
|
40
|
+
logger.logToStderr(`Resubmitting run ${args.options.name} of Microsoft Flow ${args.options.flowName}...`);
|
|
41
41
|
}
|
|
42
42
|
const resubmitFlow = () => {
|
|
43
43
|
this
|
|
44
|
-
.getTriggerName(args.options.
|
|
44
|
+
.getTriggerName(args.options.environmentName, args.options.flowName)
|
|
45
45
|
.then((triggerName) => {
|
|
46
46
|
if (this.debug) {
|
|
47
47
|
logger.logToStderr(chalk.yellow(`Retrieved trigger: ${triggerName}`));
|
|
48
48
|
}
|
|
49
49
|
const requestOptions = {
|
|
50
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.
|
|
50
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${encodeURIComponent(args.options.environmentName)}/flows/${encodeURIComponent(args.options.flowName)}/triggers/${encodeURIComponent(triggerName)}/histories/${encodeURIComponent(args.options.name)}/resubmit?api-version=2016-11-01`,
|
|
51
51
|
headers: {
|
|
52
52
|
accept: 'application/json'
|
|
53
53
|
},
|
|
@@ -99,16 +99,16 @@ _FlowRunResubmitCommand_instances = new WeakSet(), _FlowRunResubmitCommand_initT
|
|
|
99
99
|
this.options.unshift({
|
|
100
100
|
option: '-n, --name <name>'
|
|
101
101
|
}, {
|
|
102
|
-
option: '-f, --
|
|
102
|
+
option: '-f, --flowName <flowName>'
|
|
103
103
|
}, {
|
|
104
|
-
option: '-e, --
|
|
104
|
+
option: '-e, --environmentName <environmentName>'
|
|
105
105
|
}, {
|
|
106
106
|
option: '--confirm'
|
|
107
107
|
});
|
|
108
108
|
}, _FlowRunResubmitCommand_initValidators = function _FlowRunResubmitCommand_initValidators() {
|
|
109
109
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
if (!utils_1.validation.isValidGuid(args.options.
|
|
111
|
-
return `${args.options.
|
|
110
|
+
if (!utils_1.validation.isValidGuid(args.options.flowName)) {
|
|
111
|
+
return `${args.options.flowName} is not a valid GUID`;
|
|
112
112
|
}
|
|
113
113
|
return true;
|
|
114
114
|
}));
|
|
@@ -45,7 +45,7 @@ class OutlookMessageMoveCommand extends GraphCommand_1.default {
|
|
|
45
45
|
})
|
|
46
46
|
.then((folderId) => {
|
|
47
47
|
targetFolder = folderId;
|
|
48
|
-
const messageUrl = `mailFolders/${sourceFolder}/messages/${args.options.
|
|
48
|
+
const messageUrl = `mailFolders/${sourceFolder}/messages/${args.options.id}`;
|
|
49
49
|
const requestOptions = {
|
|
50
50
|
url: `${this.resource}/v1.0/me/${messageUrl}/move`,
|
|
51
51
|
headers: {
|
|
@@ -102,7 +102,7 @@ _OutlookMessageMoveCommand_instances = new WeakSet(), _OutlookMessageMoveCommand
|
|
|
102
102
|
});
|
|
103
103
|
}, _OutlookMessageMoveCommand_initOptions = function _OutlookMessageMoveCommand_initOptions() {
|
|
104
104
|
this.options.unshift({
|
|
105
|
-
option: '--
|
|
105
|
+
option: '--id <id>'
|
|
106
106
|
}, {
|
|
107
107
|
option: '--sourceFolderName [sourceFolderName]',
|
|
108
108
|
autocomplete: Outlook_1.Outlook.wellKnownFolderNames
|
|
@@ -41,7 +41,7 @@ class PaConnectorExportCommand extends PowerAppsCommand_1.default {
|
|
|
41
41
|
commandAction(logger, args, cb) {
|
|
42
42
|
const outputFolder = path.resolve(args.options.outputFolder || '.', args.options.connector);
|
|
43
43
|
const requestOptions = {
|
|
44
|
-
url: `${this.resource}/providers/Microsoft.PowerApps/apis/${encodeURIComponent(args.options.connector)}?api-version=2016-11-01&$filter=environment%20eq%20%27${encodeURIComponent(args.options.
|
|
44
|
+
url: `${this.resource}/providers/Microsoft.PowerApps/apis/${encodeURIComponent(args.options.connector)}?api-version=2016-11-01&$filter=environment%20eq%20%27${encodeURIComponent(args.options.environmentName)}%27%20and%20IsCustomApi%20eq%20%27True%27`,
|
|
45
45
|
headers: {
|
|
46
46
|
accept: 'application/json'
|
|
47
47
|
},
|
|
@@ -66,7 +66,7 @@ class PaConnectorExportCommand extends PowerAppsCommand_1.default {
|
|
|
66
66
|
apiDefinition: "apiDefinition.swagger.json",
|
|
67
67
|
apiProperties: "apiProperties.json",
|
|
68
68
|
connectorId: args.options.connector,
|
|
69
|
-
environment: args.options.
|
|
69
|
+
environment: args.options.environmentName,
|
|
70
70
|
icon: "icon.png",
|
|
71
71
|
powerAppsApiVersion: "2016-11-01",
|
|
72
72
|
powerAppsUrl: "https://api.powerapps.com"
|
|
@@ -169,7 +169,7 @@ _PaConnectorExportCommand_instances = new WeakSet(), _PaConnectorExportCommand_i
|
|
|
169
169
|
});
|
|
170
170
|
}, _PaConnectorExportCommand_initOptions = function _PaConnectorExportCommand_initOptions() {
|
|
171
171
|
this.options.unshift({
|
|
172
|
-
option: '-e, --
|
|
172
|
+
option: '-e, --environmentName <environmentName>'
|
|
173
173
|
}, {
|
|
174
174
|
option: '-c, --connector <connector>'
|
|
175
175
|
}, {
|
|
@@ -29,7 +29,7 @@ class PaConnectorListCommand extends PowerAppsCommand_1.default {
|
|
|
29
29
|
return ['name', 'displayName'];
|
|
30
30
|
}
|
|
31
31
|
commandAction(logger, args, cb) {
|
|
32
|
-
const url = `${this.resource}/providers/Microsoft.PowerApps/apis?api-version=2016-11-01&$filter=environment%20eq%20%27${encodeURIComponent(args.options.
|
|
32
|
+
const url = `${this.resource}/providers/Microsoft.PowerApps/apis?api-version=2016-11-01&$filter=environment%20eq%20%27${encodeURIComponent(args.options.environmentName)}%27%20and%20IsCustomApi%20eq%20%27True%27`;
|
|
33
33
|
utils_1.odata
|
|
34
34
|
.getAllItems(url)
|
|
35
35
|
.then((connectors) => {
|
|
@@ -50,7 +50,7 @@ class PaConnectorListCommand extends PowerAppsCommand_1.default {
|
|
|
50
50
|
}
|
|
51
51
|
_PaConnectorListCommand_instances = new WeakSet(), _PaConnectorListCommand_initOptions = function _PaConnectorListCommand_initOptions() {
|
|
52
52
|
this.options.unshift({
|
|
53
|
-
option: '-e, --
|
|
53
|
+
option: '-e, --environmentName <environmentName>'
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
module.exports = new PaConnectorListCommand();
|
|
@@ -41,7 +41,7 @@ class PaSolutionReferenceAddCommand extends AnonymousCommand_1.default {
|
|
|
41
41
|
}
|
|
42
42
|
commandAction(logger, args, cb) {
|
|
43
43
|
try {
|
|
44
|
-
const referencedProjectFilePath = this.getSupportedProjectFiles(args.options.
|
|
44
|
+
const referencedProjectFilePath = this.getSupportedProjectFiles(args.options.projectPath)[0];
|
|
45
45
|
const relativeReferencedProjectFilePath = path.relative(process.cwd(), referencedProjectFilePath);
|
|
46
46
|
const cdsProjectFilePath = this.getCdsProjectFile(process.cwd())[0];
|
|
47
47
|
const cdsProjectFileContent = fs.readFileSync(cdsProjectFilePath, 'utf8');
|
|
@@ -68,7 +68,7 @@ class PaSolutionReferenceAddCommand extends AnonymousCommand_1.default {
|
|
|
68
68
|
}
|
|
69
69
|
_PaSolutionReferenceAddCommand_instances = new WeakSet(), _PaSolutionReferenceAddCommand_initOptions = function _PaSolutionReferenceAddCommand_initOptions() {
|
|
70
70
|
this.options.unshift({
|
|
71
|
-
option: '-p, --
|
|
71
|
+
option: '-p, --projectPath <projectPath>'
|
|
72
72
|
});
|
|
73
73
|
}, _PaSolutionReferenceAddCommand_initValidators = function _PaSolutionReferenceAddCommand_initValidators() {
|
|
74
74
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -79,15 +79,15 @@ _PaSolutionReferenceAddCommand_instances = new WeakSet(), _PaSolutionReferenceAd
|
|
|
79
79
|
if (existingCdsProjects.length > 1) {
|
|
80
80
|
return 'Multiple CDS solution project files with extension cdsproj were found in the current directory.';
|
|
81
81
|
}
|
|
82
|
-
if (!fs.existsSync(args.options.
|
|
83
|
-
return `Path ${args.options.
|
|
82
|
+
if (!fs.existsSync(args.options.projectPath)) {
|
|
83
|
+
return `Path ${args.options.projectPath} is not a valid path.`;
|
|
84
84
|
}
|
|
85
|
-
const existingSupportedProjects = this.getSupportedProjectFiles(args.options.
|
|
85
|
+
const existingSupportedProjects = this.getSupportedProjectFiles(args.options.projectPath);
|
|
86
86
|
if (existingSupportedProjects.length === 0) {
|
|
87
|
-
return `No supported project type found in path ${args.options.
|
|
87
|
+
return `No supported project type found in path ${args.options.projectPath}.`;
|
|
88
88
|
}
|
|
89
89
|
if (existingSupportedProjects.length !== 1) {
|
|
90
|
-
return `More than one supported project type found in path ${args.options.
|
|
90
|
+
return `More than one supported project type found in path ${args.options.projectPath}.`;
|
|
91
91
|
}
|
|
92
92
|
const cdsProjectName = path.parse(path.basename(existingCdsProjects[0])).name;
|
|
93
93
|
const pcfProjectName = path.parse(path.basename(existingSupportedProjects[0])).name;
|
|
@@ -40,10 +40,6 @@ class PlannerBucketAddCommand extends GraphCommand_1.default {
|
|
|
40
40
|
return ['id', 'name', 'planId', 'orderHint'];
|
|
41
41
|
}
|
|
42
42
|
commandAction(logger, args, cb) {
|
|
43
|
-
if (args.options.planName) {
|
|
44
|
-
args.options.planTitle = args.options.planName;
|
|
45
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
46
|
-
}
|
|
47
43
|
if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
48
44
|
this.handleError('This command does not support application permissions.', logger, cb);
|
|
49
45
|
return;
|
|
@@ -92,7 +88,6 @@ _PlannerBucketAddCommand_instances = new WeakSet(), _PlannerBucketAddCommand_ini
|
|
|
92
88
|
this.telemetry.push((args) => {
|
|
93
89
|
Object.assign(this.telemetryProperties, {
|
|
94
90
|
planId: typeof args.options.planId !== 'undefined',
|
|
95
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
96
91
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
97
92
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
98
93
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
@@ -104,8 +99,6 @@ _PlannerBucketAddCommand_instances = new WeakSet(), _PlannerBucketAddCommand_ini
|
|
|
104
99
|
option: '-n, --name <name>'
|
|
105
100
|
}, {
|
|
106
101
|
option: "--planId [planId]"
|
|
107
|
-
}, {
|
|
108
|
-
option: "--planName [planName]"
|
|
109
102
|
}, {
|
|
110
103
|
option: "--planTitle [planTitle]"
|
|
111
104
|
}, {
|
|
@@ -117,16 +110,16 @@ _PlannerBucketAddCommand_instances = new WeakSet(), _PlannerBucketAddCommand_ini
|
|
|
117
110
|
});
|
|
118
111
|
}, _PlannerBucketAddCommand_initValidators = function _PlannerBucketAddCommand_initValidators() {
|
|
119
112
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
if (!args.options.planId && !args.options.
|
|
113
|
+
if (!args.options.planId && !args.options.planTitle) {
|
|
121
114
|
return 'Specify either planId or planTitle';
|
|
122
115
|
}
|
|
123
|
-
if (args.options.planId &&
|
|
116
|
+
if (args.options.planId && args.options.planTitle) {
|
|
124
117
|
return 'Specify either planId or planTitle but not both';
|
|
125
118
|
}
|
|
126
|
-
if (
|
|
119
|
+
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
127
120
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
128
121
|
}
|
|
129
|
-
if (
|
|
122
|
+
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
130
123
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
131
124
|
}
|
|
132
125
|
if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
@@ -37,10 +37,6 @@ class PlannerBucketGetCommand extends GraphCommand_1.default {
|
|
|
37
37
|
return 'Gets the Microsoft Planner bucket in a plan';
|
|
38
38
|
}
|
|
39
39
|
commandAction(logger, args, cb) {
|
|
40
|
-
if (args.options.planName) {
|
|
41
|
-
args.options.planTitle = args.options.planName;
|
|
42
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
43
|
-
}
|
|
44
40
|
if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
45
41
|
this.handleError('This command does not support application permissions.', logger, cb);
|
|
46
42
|
return;
|
|
@@ -119,7 +115,6 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
119
115
|
id: typeof args.options.id !== 'undefined',
|
|
120
116
|
name: typeof args.options.name !== 'undefined',
|
|
121
117
|
planId: typeof args.options.planId !== 'undefined',
|
|
122
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
123
118
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
124
119
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
125
120
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
@@ -132,8 +127,6 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
132
127
|
option: '-n, --name [name]'
|
|
133
128
|
}, {
|
|
134
129
|
option: '--planId [planId]'
|
|
135
|
-
}, {
|
|
136
|
-
option: '--planName [planName]'
|
|
137
130
|
}, {
|
|
138
131
|
option: "--planTitle [planTitle]"
|
|
139
132
|
}, {
|
|
@@ -144,7 +137,7 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
144
137
|
}, _PlannerBucketGetCommand_initValidators = function _PlannerBucketGetCommand_initValidators() {
|
|
145
138
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
146
139
|
if (args.options.id) {
|
|
147
|
-
if (args.options.planId || args.options.
|
|
140
|
+
if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
148
141
|
return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
149
142
|
}
|
|
150
143
|
if (args.options.name) {
|
|
@@ -152,13 +145,13 @@ _PlannerBucketGetCommand_instances = new WeakSet(), _PlannerBucketGetCommand_ini
|
|
|
152
145
|
}
|
|
153
146
|
}
|
|
154
147
|
if (args.options.name) {
|
|
155
|
-
if (!args.options.planId && !args.options.
|
|
148
|
+
if (!args.options.planId && !args.options.planTitle) {
|
|
156
149
|
return 'Specify either planId or planTitle when using name';
|
|
157
150
|
}
|
|
158
|
-
if (args.options.planId &&
|
|
151
|
+
if (args.options.planId && args.options.planTitle) {
|
|
159
152
|
return 'Specify either planId or planTitle when using name but not both';
|
|
160
153
|
}
|
|
161
|
-
if (args.options.
|
|
154
|
+
if (args.options.planTitle) {
|
|
162
155
|
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
163
156
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
164
157
|
}
|
|
@@ -39,10 +39,6 @@ class PlannerBucketListCommand extends GraphCommand_1.default {
|
|
|
39
39
|
return ['id', 'name', 'planId', 'orderHint'];
|
|
40
40
|
}
|
|
41
41
|
commandAction(logger, args, cb) {
|
|
42
|
-
if (args.options.planName) {
|
|
43
|
-
args.options.planTitle = args.options.planName;
|
|
44
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
45
|
-
}
|
|
46
42
|
if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
47
43
|
this.handleError('This command does not support application permissions.', logger, cb);
|
|
48
44
|
return;
|
|
@@ -77,7 +73,6 @@ _PlannerBucketListCommand_instances = new WeakSet(), _PlannerBucketListCommand_i
|
|
|
77
73
|
this.telemetry.push((args) => {
|
|
78
74
|
Object.assign(this.telemetryProperties, {
|
|
79
75
|
planId: typeof args.options.planId !== 'undefined',
|
|
80
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
81
76
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
82
77
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
83
78
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
@@ -86,8 +81,6 @@ _PlannerBucketListCommand_instances = new WeakSet(), _PlannerBucketListCommand_i
|
|
|
86
81
|
}, _PlannerBucketListCommand_initOptions = function _PlannerBucketListCommand_initOptions() {
|
|
87
82
|
this.options.unshift({
|
|
88
83
|
option: '--planId [planId]'
|
|
89
|
-
}, {
|
|
90
|
-
option: '--planName [planName]'
|
|
91
84
|
}, {
|
|
92
85
|
option: "--planTitle [planTitle]"
|
|
93
86
|
}, {
|
|
@@ -97,16 +90,16 @@ _PlannerBucketListCommand_instances = new WeakSet(), _PlannerBucketListCommand_i
|
|
|
97
90
|
});
|
|
98
91
|
}, _PlannerBucketListCommand_initValidators = function _PlannerBucketListCommand_initValidators() {
|
|
99
92
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
if (!args.options.planId && !args.options.
|
|
93
|
+
if (!args.options.planId && !args.options.planTitle) {
|
|
101
94
|
return 'Specify either planId or planTitle';
|
|
102
95
|
}
|
|
103
|
-
if (args.options.planId &&
|
|
96
|
+
if (args.options.planId && args.options.planTitle) {
|
|
104
97
|
return 'Specify either planId or planTitle but not both';
|
|
105
98
|
}
|
|
106
|
-
if (
|
|
99
|
+
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
107
100
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
108
101
|
}
|
|
109
|
-
if (
|
|
102
|
+
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
110
103
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
111
104
|
}
|
|
112
105
|
if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
@@ -39,10 +39,6 @@ class PlannerBucketRemoveCommand extends GraphCommand_1.default {
|
|
|
39
39
|
return 'Removes the Microsoft Planner bucket from a plan';
|
|
40
40
|
}
|
|
41
41
|
commandAction(logger, args, cb) {
|
|
42
|
-
if (args.options.planName) {
|
|
43
|
-
args.options.planTitle = args.options.planName;
|
|
44
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
45
|
-
}
|
|
46
42
|
if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
47
43
|
this.handleError('This command does not support application permissions.', logger, cb);
|
|
48
44
|
return;
|
|
@@ -142,7 +138,6 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
142
138
|
id: typeof args.options.id !== 'undefined',
|
|
143
139
|
name: typeof args.options.name !== 'undefined',
|
|
144
140
|
planId: typeof args.options.planId !== 'undefined',
|
|
145
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
146
141
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
147
142
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
148
143
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
@@ -156,8 +151,6 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
156
151
|
option: '-n, --name [name]'
|
|
157
152
|
}, {
|
|
158
153
|
option: '--planId [planId]'
|
|
159
|
-
}, {
|
|
160
|
-
option: '--planName [planName]'
|
|
161
154
|
}, {
|
|
162
155
|
option: "--planTitle [planTitle]"
|
|
163
156
|
}, {
|
|
@@ -170,18 +163,18 @@ _PlannerBucketRemoveCommand_instances = new WeakSet(), _PlannerBucketRemoveComma
|
|
|
170
163
|
}, _PlannerBucketRemoveCommand_initValidators = function _PlannerBucketRemoveCommand_initValidators() {
|
|
171
164
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
172
165
|
if (args.options.id) {
|
|
173
|
-
if (args.options.planId || args.options.
|
|
166
|
+
if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
174
167
|
return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
175
168
|
}
|
|
176
169
|
}
|
|
177
170
|
else {
|
|
178
|
-
if (!args.options.planId && !args.options.
|
|
171
|
+
if (!args.options.planId && !args.options.planTitle) {
|
|
179
172
|
return 'Specify either planId or planTitle when using name';
|
|
180
173
|
}
|
|
181
|
-
if (args.options.planId &&
|
|
174
|
+
if (args.options.planId && args.options.planTitle) {
|
|
182
175
|
return 'Specify either planId or planTitle when using name but not both';
|
|
183
176
|
}
|
|
184
|
-
if (args.options.
|
|
177
|
+
if (args.options.planTitle) {
|
|
185
178
|
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
186
179
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
187
180
|
}
|
|
@@ -38,10 +38,6 @@ class PlannerBucketSetCommand extends GraphCommand_1.default {
|
|
|
38
38
|
return 'Updates a Microsoft Planner bucket';
|
|
39
39
|
}
|
|
40
40
|
commandAction(logger, args, cb) {
|
|
41
|
-
if (args.options.planName) {
|
|
42
|
-
args.options.planTitle = args.options.planName;
|
|
43
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
44
|
-
}
|
|
45
41
|
if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
46
42
|
this.handleError('This command does not support application permissions.', logger, cb);
|
|
47
43
|
return;
|
|
@@ -129,7 +125,6 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
129
125
|
id: typeof args.options.id !== 'undefined',
|
|
130
126
|
name: typeof args.options.name !== 'undefined',
|
|
131
127
|
planId: typeof args.options.planId !== 'undefined',
|
|
132
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
133
128
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
134
129
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
135
130
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
@@ -144,8 +139,6 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
144
139
|
option: '-n, --name [name]'
|
|
145
140
|
}, {
|
|
146
141
|
option: '--planId [planId]'
|
|
147
|
-
}, {
|
|
148
|
-
option: '--planName [planName]'
|
|
149
142
|
}, {
|
|
150
143
|
option: "--planTitle [planTitle]"
|
|
151
144
|
}, {
|
|
@@ -160,18 +153,18 @@ _PlannerBucketSetCommand_instances = new WeakSet(), _PlannerBucketSetCommand_ini
|
|
|
160
153
|
}, _PlannerBucketSetCommand_initValidators = function _PlannerBucketSetCommand_initValidators() {
|
|
161
154
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
162
155
|
if (args.options.id) {
|
|
163
|
-
if (args.options.planId || args.options.
|
|
156
|
+
if (args.options.planId || args.options.planTitle || args.options.ownerGroupId || args.options.ownerGroupName) {
|
|
164
157
|
return 'Don\'t specify planId, planTitle, ownerGroupId or ownerGroupName when using id';
|
|
165
158
|
}
|
|
166
159
|
}
|
|
167
160
|
if (args.options.name) {
|
|
168
|
-
if (!args.options.planId && !args.options.
|
|
161
|
+
if (!args.options.planId && !args.options.planTitle) {
|
|
169
162
|
return 'Specify either planId or planTitle when using name';
|
|
170
163
|
}
|
|
171
|
-
if (args.options.planId &&
|
|
164
|
+
if (args.options.planId && args.options.planTitle) {
|
|
172
165
|
return 'Specify either planId or planTitle when using name but not both';
|
|
173
166
|
}
|
|
174
|
-
if (args.options.
|
|
167
|
+
if (args.options.planTitle) {
|
|
175
168
|
if (!args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
176
169
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
177
170
|
}
|
|
@@ -33,9 +33,6 @@ class PlannerPlanGetCommand extends GraphCommand_1.default {
|
|
|
33
33
|
get name() {
|
|
34
34
|
return commands_1.default.PLAN_GET;
|
|
35
35
|
}
|
|
36
|
-
alias() {
|
|
37
|
-
return [commands_1.default.PLAN_DETAILS_GET];
|
|
38
|
-
}
|
|
39
36
|
get description() {
|
|
40
37
|
return 'Get a Microsoft Planner plan';
|
|
41
38
|
}
|
|
@@ -43,7 +40,6 @@ class PlannerPlanGetCommand extends GraphCommand_1.default {
|
|
|
43
40
|
return ['id', 'title', 'createdDateTime', 'owner', '@odata.etag'];
|
|
44
41
|
}
|
|
45
42
|
commandAction(logger, args, cb) {
|
|
46
|
-
this.showDeprecationWarning(logger, commands_1.default.PLAN_DETAILS_GET, commands_1.default.PLAN_GET);
|
|
47
43
|
if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
48
44
|
this.handleError('This command does not support application permissions.', logger, cb);
|
|
49
45
|
return;
|
|
@@ -40,10 +40,6 @@ class PlannerTaskAddCommand extends GraphCommand_1.default {
|
|
|
40
40
|
return 'Adds a new Microsoft Planner Task';
|
|
41
41
|
}
|
|
42
42
|
commandAction(logger, args, cb) {
|
|
43
|
-
if (args.options.planName) {
|
|
44
|
-
args.options.planTitle = args.options.planName;
|
|
45
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
46
|
-
}
|
|
47
43
|
if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
48
44
|
this.handleError('This command does not support application permissions.', logger, cb);
|
|
49
45
|
return;
|
|
@@ -225,7 +221,6 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
225
221
|
this.telemetry.push((args) => {
|
|
226
222
|
Object.assign(this.telemetryProperties, {
|
|
227
223
|
planId: typeof args.options.planId !== 'undefined',
|
|
228
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
229
224
|
planTitle: typeof args.options.planTitle !== 'undefined',
|
|
230
225
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
231
226
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined',
|
|
@@ -245,7 +240,7 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
245
240
|
});
|
|
246
241
|
});
|
|
247
242
|
}, _PlannerTaskAddCommand_initOptions = function _PlannerTaskAddCommand_initOptions() {
|
|
248
|
-
this.options.unshift({ option: '-t, --title <title>' }, { option: '--planId [planId]' }, { option: '--
|
|
243
|
+
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]' }, {
|
|
249
244
|
option: '--appliedCategories [appliedCategories]',
|
|
250
245
|
autocomplete: this.allowedAppliedCategories
|
|
251
246
|
}, {
|
|
@@ -254,16 +249,16 @@ _PlannerTaskAddCommand_instances = new WeakSet(), _PlannerTaskAddCommand_initTel
|
|
|
254
249
|
}, { option: '--orderHint [orderHint]' }, { option: '--priority [priority]', autocomplete: taskPriority_1.taskPriority.priorityValues });
|
|
255
250
|
}, _PlannerTaskAddCommand_initValidators = function _PlannerTaskAddCommand_initValidators() {
|
|
256
251
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
257
|
-
if (!args.options.planId && !args.options.
|
|
252
|
+
if (!args.options.planId && !args.options.planTitle) {
|
|
258
253
|
return 'Specify either planId or planTitle';
|
|
259
254
|
}
|
|
260
|
-
if (args.options.planId &&
|
|
255
|
+
if (args.options.planId && args.options.planTitle) {
|
|
261
256
|
return 'Specify either planId or planTitle but not both';
|
|
262
257
|
}
|
|
263
|
-
if (
|
|
258
|
+
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
264
259
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
265
260
|
}
|
|
266
|
-
if (
|
|
261
|
+
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
267
262
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
268
263
|
}
|
|
269
264
|
if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
|
|
@@ -34,26 +34,14 @@ class PlannerTaskGetCommand extends GraphCommand_1.default {
|
|
|
34
34
|
get name() {
|
|
35
35
|
return commands_1.default.TASK_GET;
|
|
36
36
|
}
|
|
37
|
-
alias() {
|
|
38
|
-
return [commands_1.default.TASK_DETAILS_GET];
|
|
39
|
-
}
|
|
40
37
|
get description() {
|
|
41
38
|
return 'Retrieve the specified planner task';
|
|
42
39
|
}
|
|
43
40
|
commandAction(logger, args, cb) {
|
|
44
|
-
this.showDeprecationWarning(logger, commands_1.default.TASK_DETAILS_GET, commands_1.default.TASK_GET);
|
|
45
|
-
if (args.options.planName) {
|
|
46
|
-
args.options.planTitle = args.options.planName;
|
|
47
|
-
this.warn(logger, `Option 'planName' is deprecated. Please use 'planTitle' instead`);
|
|
48
|
-
}
|
|
49
41
|
if (utils_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken)) {
|
|
50
42
|
this.handleError('This command does not support application permissions.', logger, cb);
|
|
51
43
|
return;
|
|
52
44
|
}
|
|
53
|
-
// This check has been added to support task details get alias. Needs to be removed when deprecation is removed.
|
|
54
|
-
if (args.options.taskId) {
|
|
55
|
-
args.options.id = args.options.taskId;
|
|
56
|
-
}
|
|
57
45
|
this
|
|
58
46
|
.getTaskId(args.options)
|
|
59
47
|
.then(taskId => this.getTask(taskId))
|
|
@@ -170,14 +158,12 @@ _PlannerTaskGetCommand_instances = new WeakSet(), _PlannerTaskGetCommand_initTel
|
|
|
170
158
|
bucketId: typeof args.options.bucketId !== 'undefined',
|
|
171
159
|
bucketName: typeof args.options.bucketName !== 'undefined',
|
|
172
160
|
planId: typeof args.options.planId !== 'undefined',
|
|
173
|
-
planName: typeof args.options.planName !== 'undefined',
|
|
174
161
|
ownerGroupId: typeof args.options.ownerGroupId !== 'undefined',
|
|
175
162
|
ownerGroupName: typeof args.options.ownerGroupName !== 'undefined'
|
|
176
163
|
});
|
|
177
164
|
});
|
|
178
165
|
}, _PlannerTaskGetCommand_initOptions = function _PlannerTaskGetCommand_initOptions() {
|
|
179
|
-
this.options.unshift({ option: '--
|
|
180
|
-
{ option: '-i, --id [id]' }, { option: '-t, --title [title]' }, { option: '--bucketId [bucketId]' }, { option: '--bucketName [bucketName]' }, { option: '--planId [planId]' }, { option: '--planName [planName]' }, { option: '--planTitle [planTitle]' }, { option: '--ownerGroupId [ownerGroupId]' }, { option: '--ownerGroupName [ownerGroupName]' });
|
|
166
|
+
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]' });
|
|
181
167
|
}, _PlannerTaskGetCommand_initValidators = function _PlannerTaskGetCommand_initValidators() {
|
|
182
168
|
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
183
169
|
if (args.options.title && !args.options.bucketId && !args.options.bucketName) {
|
|
@@ -186,16 +172,16 @@ _PlannerTaskGetCommand_instances = new WeakSet(), _PlannerTaskGetCommand_initTel
|
|
|
186
172
|
if (args.options.title && args.options.bucketId && args.options.bucketName) {
|
|
187
173
|
return 'Specify either bucketId or bucketName when using title but not both';
|
|
188
174
|
}
|
|
189
|
-
if (args.options.bucketName && !args.options.planId && !args.options.
|
|
175
|
+
if (args.options.bucketName && !args.options.planId && !args.options.planTitle) {
|
|
190
176
|
return 'Specify either planId or planTitle when using bucketName';
|
|
191
177
|
}
|
|
192
|
-
if (args.options.bucketName && args.options.planId &&
|
|
178
|
+
if (args.options.bucketName && args.options.planId && args.options.planTitle) {
|
|
193
179
|
return 'Specify either planId or planTitle when using bucketName but not both';
|
|
194
180
|
}
|
|
195
|
-
if (
|
|
181
|
+
if (args.options.planTitle && !args.options.ownerGroupId && !args.options.ownerGroupName) {
|
|
196
182
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle';
|
|
197
183
|
}
|
|
198
|
-
if (
|
|
184
|
+
if (args.options.planTitle && args.options.ownerGroupId && args.options.ownerGroupName) {
|
|
199
185
|
return 'Specify either ownerGroupId or ownerGroupName when using planTitle but not both';
|
|
200
186
|
}
|
|
201
187
|
if (args.options.ownerGroupId && !utils_1.validation.isValidGuid(args.options.ownerGroupId)) {
|