@pnp/cli-microsoft365 6.0.0-beta.1254da3 → 6.0.0-beta.1cd4e45
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/cli/Cli.js +7 -10
- package/dist/m365/aad/commands/app/app-get.js +3 -2
- package/dist/m365/aad/commands/app/app-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-role-add.js +3 -2
- package/dist/m365/aad/commands/app/app-role-list.js +3 -2
- package/dist/m365/aad/commands/app/app-role-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-set.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +5 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +5 -4
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +2 -1
- package/dist/m365/aad/commands/sp/sp-add.js +3 -2
- package/dist/m365/aad/commands/sp/sp-get.js +3 -2
- package/dist/m365/aad/commands/user/user-get.js +5 -4
- package/dist/m365/aad/commands/user/user-hibp.js +2 -1
- package/dist/m365/aad/commands/user/user-list.js +2 -1
- package/dist/m365/aad/commands/user/user-set.js +2 -1
- package/dist/m365/aad/commands/user/user-signin-list.js +5 -4
- package/dist/m365/base/DateAndPeriodBasedReport.js +3 -2
- package/dist/m365/base/PeriodBasedReport.js +2 -1
- package/dist/m365/booking/commands/business/business-get.js +2 -1
- package/dist/m365/cli/commands/config/config-set.js +1 -0
- package/dist/m365/file/commands/file-list.js +2 -1
- package/dist/m365/flow/commands/environment/environment-get.js +2 -1
- package/dist/m365/flow/commands/flow-disable.js +2 -1
- package/dist/m365/flow/commands/flow-enable.js +2 -1
- package/dist/m365/flow/commands/flow-export.js +5 -4
- package/dist/m365/flow/commands/flow-get.js +2 -1
- package/dist/m365/flow/commands/flow-list.js +2 -1
- package/dist/m365/flow/commands/flow-remove.js +2 -1
- package/dist/m365/flow/commands/run/run-cancel.js +2 -1
- package/dist/m365/flow/commands/run/run-get.js +2 -1
- package/dist/m365/flow/commands/run/run-list.js +2 -1
- package/dist/m365/flow/commands/run/run-resubmit.js +3 -2
- package/dist/m365/outlook/commands/mail/mail-send.js +2 -1
- package/dist/m365/outlook/commands/message/message-list.js +2 -1
- package/dist/m365/outlook/commands/message/message-move.js +2 -1
- package/dist/m365/pa/commands/app/app-get.js +2 -1
- package/dist/m365/pa/commands/app/app-list.js +2 -1
- package/dist/m365/pa/commands/app/app-remove.js +2 -1
- package/dist/m365/pa/commands/connector/connector-export.js +2 -1
- package/dist/m365/pa/commands/connector/connector-list.js +2 -1
- package/dist/m365/pa/commands/environment/environment-get.js +2 -1
- package/dist/m365/planner/commands/task/task-add.js +1 -1
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +3 -2
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -1
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -1
- package/dist/m365/planner/commands/task/task-get.js +2 -1
- package/dist/m365/planner/commands/task/task-list.js +4 -3
- package/dist/m365/planner/commands/task/task-reference-add.js +2 -2
- package/dist/m365/planner/commands/task/task-reference-list.js +2 -1
- package/dist/m365/planner/commands/task/task-reference-remove.js +1 -1
- package/dist/m365/planner/commands/task/task-set.js +2 -2
- package/dist/m365/pp/commands/gateway/gateway-get.js +2 -1
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +3 -2
- package/dist/m365/pp/commands/solution/solution-list.js +5 -11
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +3 -2
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -2
- package/dist/m365/spo/commands/app/app-get.js +2 -1
- package/dist/m365/spo/commands/app/app-install.js +2 -1
- package/dist/m365/spo/commands/app/app-remove.js +2 -1
- package/dist/m365/spo/commands/app/app-retract.js +2 -1
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +2 -1
- package/dist/m365/spo/commands/app/app-uninstall.js +2 -1
- package/dist/m365/spo/commands/app/app-upgrade.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-get.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-set.js +2 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +4 -3
- package/dist/m365/spo/commands/file/file-add.js +14 -13
- package/dist/m365/spo/commands/file/file-checkin.js +4 -3
- package/dist/m365/spo/commands/file/file-checkout.js +3 -2
- package/dist/m365/spo/commands/file/file-copy.js +2 -1
- package/dist/m365/spo/commands/file/file-get.js +3 -2
- package/dist/m365/spo/commands/file/file-move.js +2 -1
- package/dist/m365/spo/commands/file/file-remove.js +3 -2
- package/dist/m365/spo/commands/file/file-rename.js +3 -2
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +114 -0
- package/dist/m365/spo/commands/file/file-version-get.js +104 -0
- package/dist/m365/spo/commands/file/file-version-list.js +1 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +119 -0
- package/dist/m365/spo/commands/file/file-version-restore.js +119 -0
- package/dist/m365/spo/commands/folder/folder-get.js +3 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +2 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +2 -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-get.js +3 -2
- package/dist/m365/spo/commands/group/group-user-add.js +2 -1
- package/dist/m365/spo/commands/group/group-user-list.js +3 -2
- package/dist/m365/spo/commands/group/group-user-remove.js +3 -2
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-get.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-add.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-set.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-get.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-list.js +3 -3
- package/dist/m365/spo/commands/page/Page.js +3 -2
- package/dist/m365/spo/commands/page/page-add.js +2 -1
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +4 -3
- package/dist/m365/spo/commands/page/page-control-get.js +2 -1
- package/dist/m365/spo/commands/page/page-control-list.js +2 -1
- package/dist/m365/spo/commands/page/page-control-set.js +3 -2
- package/dist/m365/spo/commands/page/page-get.js +2 -1
- package/dist/m365/spo/commands/page/page-header-set.js +6 -5
- package/dist/m365/spo/commands/page/page-section-add.js +4 -3
- package/dist/m365/spo/commands/page/page-set.js +2 -1
- package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -2
- package/dist/m365/spo/commands/site/site-hubsite-connect.js +2 -1
- package/dist/m365/spo/commands/site/site-rename.js +2 -1
- package/dist/m365/spo/commands/site/site-set.js +1 -1
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +2 -1
- package/dist/m365/spo/commands/spo-search.js +3 -2
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -1
- package/dist/m365/spo/commands/user/user-get.js +4 -3
- package/dist/m365/spo/commands/user/user-remove.js +2 -1
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -1
- package/dist/m365/spo/commands/web/web-add.js +2 -1
- package/dist/m365/spo/commands.js +4 -0
- package/dist/m365/teams/commands/app/app-install.js +3 -2
- package/dist/m365/teams/commands/app/app-list.js +2 -1
- package/dist/m365/teams/commands/app/app-publish.js +14 -15
- package/dist/m365/teams/commands/app/app-update.js +2 -1
- package/dist/m365/teams/commands/channel/channel-get.js +4 -3
- package/dist/m365/teams/commands/channel/channel-member-add.js +4 -3
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -1
- package/dist/m365/teams/commands/channel/channel-remove.js +3 -2
- package/dist/m365/teams/commands/channel/channel-set.js +3 -2
- package/dist/m365/teams/commands/chat/chat-get.js +2 -1
- package/dist/m365/teams/commands/chat/chatUtil.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -1
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -1
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +2 -1
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -2
- package/dist/m365/teams/commands/report/report-pstncalls.js +3 -2
- package/dist/m365/teams/commands/tab/tab-add.js +2 -1
- package/dist/m365/teams/commands/tab/tab-get.js +4 -3
- package/dist/m365/teams/commands/tab/tab-list.js +2 -1
- package/dist/m365/teams/commands/tab/tab-remove.js +2 -1
- package/dist/m365/teams/commands/team/team-archive.js +2 -1
- package/dist/m365/teams/commands/team/team-clone.js +2 -1
- package/dist/m365/teams/commands/team/team-get.js +2 -1
- package/dist/m365/teams/commands/team/team-remove.js +2 -1
- package/dist/m365/teams/commands/team/team-set.js +2 -1
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -1
- package/dist/m365/teams/commands/user/user-app-list.js +3 -2
- package/dist/m365/tenant/commands/security/security-alerts-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +2 -1
- package/dist/m365/todo/commands/task/task-set.js +2 -1
- package/dist/m365/yammer/commands/user/user-get.js +3 -2
- package/dist/m365/yammer/commands/yammer-search.js +2 -1
- package/dist/utils/aadGroup.js +2 -1
- package/dist/utils/powerPlatform.js +3 -2
- package/dist/utils/spo.js +3 -2
- package/docs/docs/cmd/spo/file/file-version-clear.md +55 -0
- package/docs/docs/cmd/spo/file/file-version-get.md +76 -0
- package/docs/docs/cmd/spo/file/file-version-remove.md +58 -0
- package/docs/docs/cmd/spo/file/file-version-restore.md +58 -0
- package/docs/docs/cmd/teams/app/app-publish.md +14 -4
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _PeriodBasedReport_instances, _PeriodBasedReport_initOptions, _PeriodBasedReport_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../request");
|
|
19
|
+
const formatting_1 = require("../../utils/formatting");
|
|
19
20
|
const GraphCommand_1 = require("./GraphCommand");
|
|
20
21
|
class PeriodBasedReport extends GraphCommand_1.default {
|
|
21
22
|
constructor() {
|
|
@@ -26,7 +27,7 @@ class PeriodBasedReport extends GraphCommand_1.default {
|
|
|
26
27
|
}
|
|
27
28
|
commandAction(logger, args) {
|
|
28
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
const endpoint = `${this.resource}/v1.0/reports/${this.usageEndpoint}(period='${
|
|
30
|
+
const endpoint = `${this.resource}/v1.0/reports/${this.usageEndpoint}(period='${formatting_1.formatting.encodeQueryParameter(args.options.period)}')`;
|
|
30
31
|
yield this.executeReport(endpoint, logger, args.options.output);
|
|
31
32
|
});
|
|
32
33
|
}
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _BookingBusinessGetCommand_instances, _BookingBusinessGetCommand_initTelemetry, _BookingBusinessGetCommand_initOptions, _BookingBusinessGetCommand_initOptionSets;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class BookingBusinessGetCommand extends GraphCommand_1.default {
|
|
@@ -40,7 +41,7 @@ class BookingBusinessGetCommand extends GraphCommand_1.default {
|
|
|
40
41
|
try {
|
|
41
42
|
const businessId = yield this.getBusinessId(args.options);
|
|
42
43
|
const requestOptions = {
|
|
43
|
-
url: `${this.resource}/v1.0/solutions/bookingBusinesses/${
|
|
44
|
+
url: `${this.resource}/v1.0/solutions/bookingBusinesses/${formatting_1.formatting.encodeQueryParameter(businessId)}`,
|
|
44
45
|
headers: {
|
|
45
46
|
accept: 'application/json;odata.metadata=none'
|
|
46
47
|
},
|
|
@@ -43,6 +43,7 @@ class CliConfigSetCommand extends AnonymousCommand_1.default {
|
|
|
43
43
|
case settingsNames_1.settingsNames.csvQuoted:
|
|
44
44
|
case settingsNames_1.settingsNames.csvQuotedEmpty:
|
|
45
45
|
case settingsNames_1.settingsNames.printErrorsAsPlainText:
|
|
46
|
+
case settingsNames_1.settingsNames.prompt:
|
|
46
47
|
case settingsNames_1.settingsNames.showHelpOnFailure:
|
|
47
48
|
value = args.options.value === 'true';
|
|
48
49
|
break;
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _FileListCommand_instances, _FileListCommand_initTelemetry, _FileListCommand_initOptions, _FileListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../request");
|
|
19
|
+
const formatting_1 = require("../../../utils/formatting");
|
|
19
20
|
const odata_1 = require("../../../utils/odata");
|
|
20
21
|
const validation_1 = require("../../../utils/validation");
|
|
21
22
|
const GraphCommand_1 = require("../../base/GraphCommand");
|
|
@@ -74,7 +75,7 @@ class FileListCommand extends GraphCommand_1.default {
|
|
|
74
75
|
}
|
|
75
76
|
const url = new URL(webUrl);
|
|
76
77
|
const requestOptions = {
|
|
77
|
-
url: `${this.resource}/v1.0/sites/${
|
|
78
|
+
url: `${this.resource}/v1.0/sites/${formatting_1.formatting.encodeQueryParameter(url.host)}:${url.pathname}?$select=id`,
|
|
78
79
|
headers: {
|
|
79
80
|
accept: 'application/json;odata.metadata=none'
|
|
80
81
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _FlowEnvironmentGetCommand_instances, _FlowEnvironmentGetCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const AzmgmtCommand_1 = require("../../../base/AzmgmtCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class FlowEnvironmentGetCommand extends AzmgmtCommand_1.default {
|
|
@@ -39,7 +40,7 @@ class FlowEnvironmentGetCommand extends AzmgmtCommand_1.default {
|
|
|
39
40
|
logger.logToStderr(`Retrieving information about Microsoft Flow environment ${args.options.name}...`);
|
|
40
41
|
}
|
|
41
42
|
const requestOptions = {
|
|
42
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${
|
|
43
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${formatting_1.formatting.encodeQueryParameter(args.options.name)}?api-version=2016-11-01`,
|
|
43
44
|
headers: {
|
|
44
45
|
accept: 'application/json'
|
|
45
46
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _FlowDisableCommand_instances, _FlowDisableCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../request");
|
|
19
|
+
const formatting_1 = require("../../../utils/formatting");
|
|
19
20
|
const AzmgmtCommand_1 = require("../../base/AzmgmtCommand");
|
|
20
21
|
const commands_1 = require("../commands");
|
|
21
22
|
class FlowDisableCommand extends AzmgmtCommand_1.default {
|
|
@@ -36,7 +37,7 @@ class FlowDisableCommand extends AzmgmtCommand_1.default {
|
|
|
36
37
|
logger.logToStderr(`Disables Microsoft Flow ${args.options.name}...`);
|
|
37
38
|
}
|
|
38
39
|
const requestOptions = {
|
|
39
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/${args.options.asAdmin ? 'scopes/admin/' : ''}environments/${
|
|
40
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/${args.options.asAdmin ? 'scopes/admin/' : ''}environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.name)}/stop?api-version=2016-11-01`,
|
|
40
41
|
headers: {
|
|
41
42
|
accept: 'application/json'
|
|
42
43
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _FlowEnableCommand_instances, _FlowEnableCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../request");
|
|
19
|
+
const formatting_1 = require("../../../utils/formatting");
|
|
19
20
|
const AzmgmtCommand_1 = require("../../base/AzmgmtCommand");
|
|
20
21
|
const commands_1 = require("../commands");
|
|
21
22
|
class FlowEnableCommand extends AzmgmtCommand_1.default {
|
|
@@ -36,7 +37,7 @@ class FlowEnableCommand extends AzmgmtCommand_1.default {
|
|
|
36
37
|
logger.logToStderr(`Enables Microsoft Flow ${args.options.name}...`);
|
|
37
38
|
}
|
|
38
39
|
const requestOptions = {
|
|
39
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/${args.options.asAdmin ? 'scopes/admin/' : ''}environments/${
|
|
40
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/${args.options.asAdmin ? 'scopes/admin/' : ''}environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.name)}/start?api-version=2016-11-01`,
|
|
40
41
|
headers: {
|
|
41
42
|
accept: 'application/json'
|
|
42
43
|
},
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const fs = require("fs");
|
|
19
19
|
const path = require("path");
|
|
20
20
|
const request_1 = require("../../../request");
|
|
21
|
+
const formatting_1 = require("../../../utils/formatting");
|
|
21
22
|
const validation_1 = require("../../../utils/validation");
|
|
22
23
|
const AzmgmtCommand_1 = require("../../base/AzmgmtCommand");
|
|
23
24
|
const commands_1 = require("../commands");
|
|
@@ -51,7 +52,7 @@ class FlowExportCommand extends AzmgmtCommand_1.default {
|
|
|
51
52
|
}
|
|
52
53
|
else {
|
|
53
54
|
const requestOptions = {
|
|
54
|
-
url: `https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/${
|
|
55
|
+
url: `https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/listPackageResources?api-version=2016-11-01`,
|
|
55
56
|
headers: {
|
|
56
57
|
accept: 'application/json'
|
|
57
58
|
},
|
|
@@ -72,8 +73,8 @@ class FlowExportCommand extends AzmgmtCommand_1.default {
|
|
|
72
73
|
}
|
|
73
74
|
let requestOptions = {
|
|
74
75
|
url: formatArgument === 'json' ?
|
|
75
|
-
`${this.resource}providers/Microsoft.ProcessSimple/environments/${
|
|
76
|
-
: `https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/${
|
|
76
|
+
`${this.resource}providers/Microsoft.ProcessSimple/environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.id)}?api-version=2016-11-01`
|
|
77
|
+
: `https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/exportPackage?api-version=2016-11-01`,
|
|
77
78
|
headers: {
|
|
78
79
|
accept: 'application/json'
|
|
79
80
|
},
|
|
@@ -116,7 +117,7 @@ class FlowExportCommand extends AzmgmtCommand_1.default {
|
|
|
116
117
|
}
|
|
117
118
|
requestOptions = {
|
|
118
119
|
url: formatArgument === 'json' ?
|
|
119
|
-
`${this.resource}providers/Microsoft.ProcessSimple/environments/${
|
|
120
|
+
`${this.resource}providers/Microsoft.ProcessSimple/environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.id)}/exportToARMTemplate?api-version=2016-11-01`
|
|
120
121
|
: downloadFileUrl,
|
|
121
122
|
// Set responseType to arraybuffer, otherwise binary data will be encoded
|
|
122
123
|
// to utf8 and binary data is corrupt
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _FlowGetCommand_instances, _FlowGetCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../request");
|
|
19
|
+
const formatting_1 = require("../../../utils/formatting");
|
|
19
20
|
const AzmgmtCommand_1 = require("../../base/AzmgmtCommand");
|
|
20
21
|
const commands_1 = require("../commands");
|
|
21
22
|
class FlowGetCommand extends AzmgmtCommand_1.default {
|
|
@@ -39,7 +40,7 @@ class FlowGetCommand extends AzmgmtCommand_1.default {
|
|
|
39
40
|
logger.logToStderr(`Retrieving information about Microsoft Flow ${args.options.name}...`);
|
|
40
41
|
}
|
|
41
42
|
const requestOptions = {
|
|
42
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/${args.options.asAdmin ? 'scopes/admin/' : ''}environments/${
|
|
43
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/${args.options.asAdmin ? 'scopes/admin/' : ''}environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.name)}?api-version=2016-11-01`,
|
|
43
44
|
headers: {
|
|
44
45
|
accept: 'application/json'
|
|
45
46
|
},
|
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _FlowListCommand_instances, _FlowListCommand_initTelemetry, _FlowListCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const formatting_1 = require("../../../utils/formatting");
|
|
18
19
|
const AzmgmtItemsListCommand_1 = require("../../base/AzmgmtItemsListCommand");
|
|
19
20
|
const commands_1 = require("../commands");
|
|
20
21
|
class FlowListCommand extends AzmgmtItemsListCommand_1.AzmgmtItemsListCommand {
|
|
@@ -35,7 +36,7 @@ class FlowListCommand extends AzmgmtItemsListCommand_1.AzmgmtItemsListCommand {
|
|
|
35
36
|
}
|
|
36
37
|
commandAction(logger, args) {
|
|
37
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const url = `${this.resource}providers/Microsoft.ProcessSimple${args.options.asAdmin ? '/scopes/admin' : ''}/environments/${
|
|
39
|
+
const url = `${this.resource}providers/Microsoft.ProcessSimple${args.options.asAdmin ? '/scopes/admin' : ''}/environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows?api-version=2016-11-01`;
|
|
39
40
|
try {
|
|
40
41
|
yield this.getAllItems(url, logger, true);
|
|
41
42
|
if (this.items.length > 0) {
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const chalk = require("chalk");
|
|
19
19
|
const Cli_1 = require("../../../cli/Cli");
|
|
20
20
|
const request_1 = require("../../../request");
|
|
21
|
+
const formatting_1 = require("../../../utils/formatting");
|
|
21
22
|
const validation_1 = require("../../../utils/validation");
|
|
22
23
|
const AzmgmtCommand_1 = require("../../base/AzmgmtCommand");
|
|
23
24
|
const commands_1 = require("../commands");
|
|
@@ -42,7 +43,7 @@ class FlowRemoveCommand extends AzmgmtCommand_1.default {
|
|
|
42
43
|
}
|
|
43
44
|
const removeFlow = () => __awaiter(this, void 0, void 0, function* () {
|
|
44
45
|
const requestOptions = {
|
|
45
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/${args.options.asAdmin ? 'scopes/admin/' : ''}environments/${
|
|
46
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/${args.options.asAdmin ? 'scopes/admin/' : ''}environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.name)}?api-version=2016-11-01`,
|
|
46
47
|
resolveWithFullResponse: true,
|
|
47
48
|
headers: {
|
|
48
49
|
accept: 'application/json'
|
|
@@ -17,6 +17,7 @@ var _FlowRunCancelCommand_instances, _FlowRunCancelCommand_initOptions, _FlowRun
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const validation_1 = require("../../../../utils/validation");
|
|
21
22
|
const AzmgmtCommand_1 = require("../../../base/AzmgmtCommand");
|
|
22
23
|
const commands_1 = require("../../commands");
|
|
@@ -40,7 +41,7 @@ class FlowRunCancelCommand extends AzmgmtCommand_1.default {
|
|
|
40
41
|
}
|
|
41
42
|
const cancelFlow = () => __awaiter(this, void 0, void 0, function* () {
|
|
42
43
|
const requestOptions = {
|
|
43
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${
|
|
44
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.flowName)}/runs/${formatting_1.formatting.encodeQueryParameter(args.options.name)}/cancel?api-version=2016-11-01`,
|
|
44
45
|
headers: {
|
|
45
46
|
accept: 'application/json'
|
|
46
47
|
},
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _FlowRunGetCommand_instances, _FlowRunGetCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const AzmgmtCommand_1 = require("../../../base/AzmgmtCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class FlowRunGetCommand extends AzmgmtCommand_1.default {
|
|
@@ -39,7 +40,7 @@ class FlowRunGetCommand extends AzmgmtCommand_1.default {
|
|
|
39
40
|
logger.logToStderr(`Retrieving information about run ${args.options.name} of Microsoft Flow ${args.options.flowName}...`);
|
|
40
41
|
}
|
|
41
42
|
const requestOptions = {
|
|
42
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${
|
|
43
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.flowName)}/runs/${formatting_1.formatting.encodeQueryParameter(args.options.name)}?api-version=2016-11-01`,
|
|
43
44
|
headers: {
|
|
44
45
|
accept: 'application/json'
|
|
45
46
|
},
|
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _FlowRunListCommand_instances, _FlowRunListCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
18
19
|
const AzmgmtItemsListCommand_1 = require("../../../base/AzmgmtItemsListCommand");
|
|
19
20
|
const commands_1 = require("../../commands");
|
|
20
21
|
class FlowRunListCommand extends AzmgmtItemsListCommand_1.AzmgmtItemsListCommand {
|
|
@@ -37,7 +38,7 @@ class FlowRunListCommand extends AzmgmtItemsListCommand_1.AzmgmtItemsListCommand
|
|
|
37
38
|
if (this.verbose) {
|
|
38
39
|
logger.logToStderr(`Retrieving list of runs for Microsoft Flow ${args.options.flowName}...`);
|
|
39
40
|
}
|
|
40
|
-
const url = `${this.resource}providers/Microsoft.ProcessSimple/environments/${
|
|
41
|
+
const url = `${this.resource}providers/Microsoft.ProcessSimple/environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.flowName)}/runs?api-version=2016-11-01`;
|
|
41
42
|
try {
|
|
42
43
|
yield this.getAllItems(url, logger, true);
|
|
43
44
|
if (this.items.length > 0) {
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const chalk = require("chalk");
|
|
19
19
|
const Cli_1 = require("../../../../cli/Cli");
|
|
20
20
|
const request_1 = require("../../../../request");
|
|
21
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
21
22
|
const validation_1 = require("../../../../utils/validation");
|
|
22
23
|
const AzmgmtCommand_1 = require("../../../base/AzmgmtCommand");
|
|
23
24
|
const commands_1 = require("../../commands");
|
|
@@ -47,7 +48,7 @@ class FlowRunResubmitCommand extends AzmgmtCommand_1.default {
|
|
|
47
48
|
logger.logToStderr(chalk.yellow(`Retrieved trigger: ${triggerName}`));
|
|
48
49
|
}
|
|
49
50
|
const requestOptions = {
|
|
50
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${
|
|
51
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.flowName)}/triggers/${formatting_1.formatting.encodeQueryParameter(triggerName)}/histories/${formatting_1.formatting.encodeQueryParameter(args.options.name)}/resubmit?api-version=2016-11-01`,
|
|
51
52
|
headers: {
|
|
52
53
|
accept: 'application/json'
|
|
53
54
|
},
|
|
@@ -77,7 +78,7 @@ class FlowRunResubmitCommand extends AzmgmtCommand_1.default {
|
|
|
77
78
|
}
|
|
78
79
|
getTriggerName(environment, flow) {
|
|
79
80
|
const requestOptions = {
|
|
80
|
-
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${
|
|
81
|
+
url: `${this.resource}providers/Microsoft.ProcessSimple/environments/${formatting_1.formatting.encodeQueryParameter(environment)}/flows/${formatting_1.formatting.encodeQueryParameter(flow)}/triggers?api-version=2016-11-01`,
|
|
81
82
|
headers: {
|
|
82
83
|
accept: 'application/json'
|
|
83
84
|
},
|
|
@@ -22,6 +22,7 @@ const request_1 = require("../../../../request");
|
|
|
22
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
23
23
|
const commands_1 = require("../../commands");
|
|
24
24
|
const validation_1 = require("../../../../utils/validation");
|
|
25
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
25
26
|
class OutlookMailSendCommand extends GraphCommand_1.default {
|
|
26
27
|
constructor() {
|
|
27
28
|
super();
|
|
@@ -44,7 +45,7 @@ class OutlookMailSendCommand extends GraphCommand_1.default {
|
|
|
44
45
|
throw `Specify a upn or user id in the 'sender' option when using app only authentication.`;
|
|
45
46
|
}
|
|
46
47
|
const requestOptions = {
|
|
47
|
-
url: `${this.resource}/v1.0/${args.options.sender ? 'users/' +
|
|
48
|
+
url: `${this.resource}/v1.0/${args.options.sender ? 'users/' + formatting_1.formatting.encodeQueryParameter(args.options.sender) : 'me'}/sendMail`,
|
|
48
49
|
headers: {
|
|
49
50
|
accept: 'application/json;odata.metadata=none',
|
|
50
51
|
'content-type': 'application/json'
|
|
@@ -17,6 +17,7 @@ var _OutlookMessageListCommand_instances, _OutlookMessageListCommand_initTelemet
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const os = require("os");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const odata_1 = require("../../../../utils/odata");
|
|
21
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
23
|
const commands_1 = require("../../commands");
|
|
@@ -63,7 +64,7 @@ class OutlookMessageListCommand extends GraphCommand_1.default {
|
|
|
63
64
|
}
|
|
64
65
|
return new Promise((resolve, reject) => {
|
|
65
66
|
const requestOptions = {
|
|
66
|
-
url: `${this.resource}/v1.0/me/mailFolders?$filter=displayName eq '${
|
|
67
|
+
url: `${this.resource}/v1.0/me/mailFolders?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(args.options.folderName)}'&$select=id`,
|
|
67
68
|
headers: {
|
|
68
69
|
accept: 'application/json;odata.metadata=none'
|
|
69
70
|
},
|
|
@@ -17,6 +17,7 @@ var _OutlookMessageMoveCommand_instances, _OutlookMessageMoveCommand_initTelemet
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const os = require("os");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
22
23
|
const Outlook_1 = require("../../Outlook");
|
|
@@ -68,7 +69,7 @@ class OutlookMessageMoveCommand extends GraphCommand_1.default {
|
|
|
68
69
|
}
|
|
69
70
|
return new Promise((resolve, reject) => {
|
|
70
71
|
const requestOptions = {
|
|
71
|
-
url: `${this.resource}/v1.0/me/mailFolders?$filter=displayName eq '${
|
|
72
|
+
url: `${this.resource}/v1.0/me/mailFolders?$filter=displayName eq '${formatting_1.formatting.encodeQueryParameter(folderName)}'&$select=id`,
|
|
72
73
|
headers: {
|
|
73
74
|
accept: 'application/json;odata.metadata=none'
|
|
74
75
|
},
|
|
@@ -17,6 +17,7 @@ var _PaAppGetCommand_instances, _PaAppGetCommand_initTelemetry, _PaAppGetCommand
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const validation_1 = require("../../../../utils/validation");
|
|
21
22
|
const PowerAppsCommand_1 = require("../../../base/PowerAppsCommand");
|
|
22
23
|
const commands_1 = require("../../commands");
|
|
@@ -44,7 +45,7 @@ class PaAppGetCommand extends PowerAppsCommand_1.default {
|
|
|
44
45
|
try {
|
|
45
46
|
if (args.options.name) {
|
|
46
47
|
const requestOptions = {
|
|
47
|
-
url: `${this.resource}/providers/Microsoft.PowerApps/apps/${
|
|
48
|
+
url: `${this.resource}/providers/Microsoft.PowerApps/apps/${formatting_1.formatting.encodeQueryParameter(args.options.name)}?api-version=2016-11-01`,
|
|
48
49
|
headers: {
|
|
49
50
|
accept: 'application/json'
|
|
50
51
|
},
|
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _PaAppListCommand_instances, _PaAppListCommand_initTelemetry, _PaAppListCommand_initOptions, _PaAppListCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
18
19
|
const odata_1 = require("../../../../utils/odata");
|
|
19
20
|
const PowerAppsCommand_1 = require("../../../base/PowerAppsCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
@@ -37,7 +38,7 @@ class PaAppListCommand extends PowerAppsCommand_1.default {
|
|
|
37
38
|
}
|
|
38
39
|
commandAction(logger, args) {
|
|
39
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const url = `${this.resource}/providers/Microsoft.PowerApps${args.options.asAdmin ? '/scopes/admin' : ''}${args.options.environment ? '/environments/' +
|
|
41
|
+
const url = `${this.resource}/providers/Microsoft.PowerApps${args.options.asAdmin ? '/scopes/admin' : ''}${args.options.environment ? '/environments/' + formatting_1.formatting.encodeQueryParameter(args.options.environment) : ''}/apps?api-version=2017-08-01`;
|
|
41
42
|
try {
|
|
42
43
|
const apps = yield odata_1.odata.getAllItems(url);
|
|
43
44
|
if (apps.length > 0) {
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const Command_1 = require("../../../../Command");
|
|
20
20
|
const request_1 = require("../../../../request");
|
|
21
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
21
22
|
const validation_1 = require("../../../../utils/validation");
|
|
22
23
|
const PowerAppsCommand_1 = require("../../../base/PowerAppsCommand");
|
|
23
24
|
const commands_1 = require("../../commands");
|
|
@@ -42,7 +43,7 @@ class PaAppRemoveCommand extends PowerAppsCommand_1.default {
|
|
|
42
43
|
}
|
|
43
44
|
const removePaApp = () => __awaiter(this, void 0, void 0, function* () {
|
|
44
45
|
const requestOptions = {
|
|
45
|
-
url: `${this.resource}/providers/Microsoft.PowerApps/apps/${
|
|
46
|
+
url: `${this.resource}/providers/Microsoft.PowerApps/apps/${formatting_1.formatting.encodeQueryParameter(args.options.name)}?api-version=2017-08-01`,
|
|
46
47
|
resolveWithFullResponse: true,
|
|
47
48
|
headers: {
|
|
48
49
|
accept: 'application/json'
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const fs = require("fs");
|
|
19
19
|
const path = require("path");
|
|
20
20
|
const request_1 = require("../../../../request");
|
|
21
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
21
22
|
const PowerAppsCommand_1 = require("../../../base/PowerAppsCommand");
|
|
22
23
|
const commands_1 = require("../../../flow/commands");
|
|
23
24
|
const commands_2 = require("../../commands");
|
|
@@ -42,7 +43,7 @@ class PaConnectorExportCommand extends PowerAppsCommand_1.default {
|
|
|
42
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
44
|
const outputFolder = path.resolve(args.options.outputFolder || '.', args.options.connector);
|
|
44
45
|
const requestOptions = {
|
|
45
|
-
url: `${this.resource}/providers/Microsoft.PowerApps/apis/${
|
|
46
|
+
url: `${this.resource}/providers/Microsoft.PowerApps/apis/${formatting_1.formatting.encodeQueryParameter(args.options.connector)}?api-version=2016-11-01&$filter=environment%20eq%20%27${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}%27%20and%20IsCustomApi%20eq%20%27True%27`,
|
|
46
47
|
headers: {
|
|
47
48
|
accept: 'application/json'
|
|
48
49
|
},
|
|
@@ -15,6 +15,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
};
|
|
16
16
|
var _PaConnectorListCommand_instances, _PaConnectorListCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
18
19
|
const odata_1 = require("../../../../utils/odata");
|
|
19
20
|
const PowerAppsCommand_1 = require("../../../base/PowerAppsCommand");
|
|
20
21
|
const commands_1 = require("../../../flow/commands");
|
|
@@ -39,7 +40,7 @@ class PaConnectorListCommand extends PowerAppsCommand_1.default {
|
|
|
39
40
|
}
|
|
40
41
|
commandAction(logger, args) {
|
|
41
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
const url = `${this.resource}/providers/Microsoft.PowerApps/apis?api-version=2016-11-01&$filter=environment%20eq%20%27${
|
|
43
|
+
const url = `${this.resource}/providers/Microsoft.PowerApps/apis?api-version=2016-11-01&$filter=environment%20eq%20%27${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}%27%20and%20IsCustomApi%20eq%20%27True%27`;
|
|
43
44
|
try {
|
|
44
45
|
const connectors = yield odata_1.odata.getAllItems(url);
|
|
45
46
|
if (connectors.length > 0) {
|
|
@@ -16,6 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
var _PaEnvironmentGetCommand_instances, _PaEnvironmentGetCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
19
20
|
const PowerAppsCommand_1 = require("../../../base/PowerAppsCommand");
|
|
20
21
|
const commands_1 = require("../../commands");
|
|
21
22
|
class PaEnvironmentGetCommand extends PowerAppsCommand_1.default {
|
|
@@ -39,7 +40,7 @@ class PaEnvironmentGetCommand extends PowerAppsCommand_1.default {
|
|
|
39
40
|
logger.logToStderr(`Retrieving information about Microsoft Power Apps environment ${args.options.name}...`);
|
|
40
41
|
}
|
|
41
42
|
const requestOptions = {
|
|
42
|
-
url: `${this.resource}/providers/Microsoft.PowerApps/environments/${
|
|
43
|
+
url: `${this.resource}/providers/Microsoft.PowerApps/environments/${formatting_1.formatting.encodeQueryParameter(args.options.name)}?api-version=2016-11-01`,
|
|
43
44
|
headers: {
|
|
44
45
|
accept: 'application/json'
|
|
45
46
|
},
|
|
@@ -84,7 +84,7 @@ class PlannerTaskAddCommand extends GraphCommand_1.default {
|
|
|
84
84
|
}
|
|
85
85
|
getTaskDetailsEtag(taskId) {
|
|
86
86
|
const requestOptions = {
|
|
87
|
-
url: `${this.resource}/v1.0/planner/tasks/${
|
|
87
|
+
url: `${this.resource}/v1.0/planner/tasks/${formatting_1.formatting.encodeQueryParameter(taskId)}/details`,
|
|
88
88
|
headers: {
|
|
89
89
|
accept: 'application/json'
|
|
90
90
|
},
|
|
@@ -19,6 +19,7 @@ const uuid_1 = require("uuid");
|
|
|
19
19
|
const Auth_1 = require("../../../../Auth");
|
|
20
20
|
const request_1 = require("../../../../request");
|
|
21
21
|
const accessToken_1 = require("../../../../utils/accessToken");
|
|
22
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
22
23
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
23
24
|
const commands_1 = require("../../commands");
|
|
24
25
|
class PlannerTaskChecklistItemAddCommand extends GraphCommand_1.default {
|
|
@@ -56,7 +57,7 @@ class PlannerTaskChecklistItemAddCommand extends GraphCommand_1.default {
|
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
59
|
const requestOptions = {
|
|
59
|
-
url: `${this.resource}/v1.0/planner/tasks/${
|
|
60
|
+
url: `${this.resource}/v1.0/planner/tasks/${formatting_1.formatting.encodeQueryParameter(args.options.taskId)}/details`,
|
|
60
61
|
headers: {
|
|
61
62
|
accept: 'application/json;odata.metadata=none',
|
|
62
63
|
prefer: 'return=representation',
|
|
@@ -82,7 +83,7 @@ class PlannerTaskChecklistItemAddCommand extends GraphCommand_1.default {
|
|
|
82
83
|
}
|
|
83
84
|
getTaskDetailsEtag(taskId) {
|
|
84
85
|
const requestOptions = {
|
|
85
|
-
url: `${this.resource}/v1.0/planner/tasks/${
|
|
86
|
+
url: `${this.resource}/v1.0/planner/tasks/${formatting_1.formatting.encodeQueryParameter(taskId)}/details`,
|
|
86
87
|
headers: {
|
|
87
88
|
accept: 'application/json;odata.metadata=minimal'
|
|
88
89
|
},
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const Auth_1 = require("../../../../Auth");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
20
|
const accessToken_1 = require("../../../../utils/accessToken");
|
|
21
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
21
22
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
22
23
|
const commands_1 = require("../../commands");
|
|
23
24
|
class PlannerTaskChecklistItemListCommand extends GraphCommand_1.default {
|
|
@@ -42,7 +43,7 @@ class PlannerTaskChecklistItemListCommand extends GraphCommand_1.default {
|
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
44
45
|
const requestOptions = {
|
|
45
|
-
url: `${this.resource}/v1.0/planner/tasks/${
|
|
46
|
+
url: `${this.resource}/v1.0/planner/tasks/${formatting_1.formatting.encodeQueryParameter(args.options.taskId)}/details?$select=checklist`,
|
|
46
47
|
headers: {
|
|
47
48
|
accept: "application/json;odata.metadata=none"
|
|
48
49
|
},
|
|
@@ -17,6 +17,7 @@ var _PlannerTaskChecklistItemRemoveCommand_instances, _PlannerTaskChecklistItemR
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
20
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
21
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
22
|
const commands_1 = require("../../commands");
|
|
22
23
|
class PlannerTaskChecklistItemRemoveCommand extends GraphCommand_1.default {
|
|
@@ -80,7 +81,7 @@ class PlannerTaskChecklistItemRemoveCommand extends GraphCommand_1.default {
|
|
|
80
81
|
}
|
|
81
82
|
getTaskDetails(taskId) {
|
|
82
83
|
const requestOptions = {
|
|
83
|
-
url: `${this.resource}/v1.0/planner/tasks/${
|
|
84
|
+
url: `${this.resource}/v1.0/planner/tasks/${formatting_1.formatting.encodeQueryParameter(taskId)}/details?$select=checklist`,
|
|
84
85
|
headers: {
|
|
85
86
|
accept: 'application/json;odata.metadata=minimal'
|
|
86
87
|
},
|
|
@@ -23,6 +23,7 @@ const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
|
23
23
|
const planner_1 = require("../../../../utils/planner");
|
|
24
24
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
25
25
|
const commands_1 = require("../../commands");
|
|
26
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
26
27
|
class PlannerTaskGetCommand extends GraphCommand_1.default {
|
|
27
28
|
constructor() {
|
|
28
29
|
super();
|
|
@@ -57,7 +58,7 @@ class PlannerTaskGetCommand extends GraphCommand_1.default {
|
|
|
57
58
|
}
|
|
58
59
|
getTask(taskId) {
|
|
59
60
|
const requestOptions = {
|
|
60
|
-
url: `${this.resource}/v1.0/planner/tasks/${
|
|
61
|
+
url: `${this.resource}/v1.0/planner/tasks/${formatting_1.formatting.encodeQueryParameter(taskId)}`,
|
|
61
62
|
headers: {
|
|
62
63
|
accept: 'application/json;odata.metadata=none'
|
|
63
64
|
},
|
|
@@ -24,6 +24,7 @@ const aadGroup_1 = require("../../../../utils/aadGroup");
|
|
|
24
24
|
const planner_1 = require("../../../../utils/planner");
|
|
25
25
|
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
26
26
|
const commands_1 = require("../../commands");
|
|
27
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
27
28
|
class PlannerTaskListCommand extends GraphCommand_1.default {
|
|
28
29
|
constructor() {
|
|
29
30
|
super();
|
|
@@ -88,7 +89,7 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
|
|
|
88
89
|
}
|
|
89
90
|
getBucketId(args) {
|
|
90
91
|
if (args.options.bucketId) {
|
|
91
|
-
return Promise.resolve(
|
|
92
|
+
return Promise.resolve(formatting_1.formatting.encodeQueryParameter(args.options.bucketId));
|
|
92
93
|
}
|
|
93
94
|
return this
|
|
94
95
|
.getPlanId(args)
|
|
@@ -112,7 +113,7 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
|
|
|
112
113
|
}
|
|
113
114
|
getPlanId(args) {
|
|
114
115
|
if (args.options.planId) {
|
|
115
|
-
return Promise.resolve(
|
|
116
|
+
return Promise.resolve(formatting_1.formatting.encodeQueryParameter(args.options.planId));
|
|
116
117
|
}
|
|
117
118
|
return this
|
|
118
119
|
.getGroupId(args)
|
|
@@ -121,7 +122,7 @@ class PlannerTaskListCommand extends GraphCommand_1.default {
|
|
|
121
122
|
}
|
|
122
123
|
getGroupId(args) {
|
|
123
124
|
if (args.options.ownerGroupId) {
|
|
124
|
-
return Promise.resolve(
|
|
125
|
+
return Promise.resolve(formatting_1.formatting.encodeQueryParameter(args.options.ownerGroupId));
|
|
125
126
|
}
|
|
126
127
|
return aadGroup_1.aadGroup
|
|
127
128
|
.getGroupByDisplayName(args.options.ownerGroupName)
|
|
@@ -38,7 +38,7 @@ class PlannerTaskReferenceAddCommand extends GraphCommand_1.default {
|
|
|
38
38
|
try {
|
|
39
39
|
const etag = yield this.getTaskDetailsEtag(args.options.taskId);
|
|
40
40
|
const requestOptionsTaskDetails = {
|
|
41
|
-
url: `${this.resource}/v1.0/planner/tasks/${
|
|
41
|
+
url: `${this.resource}/v1.0/planner/tasks/${formatting_1.formatting.encodeQueryParameter(args.options.taskId)}/details`,
|
|
42
42
|
headers: {
|
|
43
43
|
'accept': 'application/json;odata.metadata=none',
|
|
44
44
|
'If-Match': etag,
|
|
@@ -61,7 +61,7 @@ class PlannerTaskReferenceAddCommand extends GraphCommand_1.default {
|
|
|
61
61
|
}
|
|
62
62
|
getTaskDetailsEtag(taskId) {
|
|
63
63
|
const requestOptions = {
|
|
64
|
-
url: `${this.resource}/v1.0/planner/tasks/${
|
|
64
|
+
url: `${this.resource}/v1.0/planner/tasks/${formatting_1.formatting.encodeQueryParameter(taskId)}/details`,
|
|
65
65
|
headers: {
|
|
66
66
|
accept: 'application/json'
|
|
67
67
|
},
|