From c01fe94f0e642c4bccf711750af4ef7ced9ecb63 Mon Sep 17 00:00:00 2001 From: Crash Collison <3751389+tehcrashxor@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:01:10 +0000 Subject: [PATCH] Update cli-wrapper --- dist/actions/actions-install/index.js | 2 +- dist/actions/add-solution-component/index.js | 128 +++++++----------- dist/actions/assign-group/index.js | 128 +++++++----------- dist/actions/assign-user/index.js | 128 +++++++----------- dist/actions/backup-environment/index.js | 128 +++++++----------- dist/actions/branch-solution/index.js | 2 +- dist/actions/catalog-status/index.js | 128 +++++++----------- dist/actions/check-solution/index.js | 128 +++++++----------- dist/actions/clone-solution/index.js | 128 +++++++----------- dist/actions/copy-environment/index.js | 128 +++++++----------- dist/actions/create-environment/index.js | 128 +++++++----------- dist/actions/delete-environment/index.js | 128 +++++++----------- dist/actions/delete-solution/index.js | 128 +++++++----------- dist/actions/deploy-package/index.js | 128 +++++++----------- dist/actions/download-paportal/index.js | 128 +++++++----------- dist/actions/export-data/index.js | 128 +++++++----------- dist/actions/export-solution/index.js | 128 +++++++----------- dist/actions/import-data/index.js | 128 +++++++----------- dist/actions/import-solution/index.js | 128 +++++++----------- dist/actions/install-catalog/index.js | 128 +++++++----------- dist/actions/pack-solution/index.js | 128 +++++++----------- dist/actions/publish-solution/index.js | 128 +++++++----------- dist/actions/reset-environment/index.js | 128 +++++++----------- dist/actions/restore-environment/index.js | 128 +++++++----------- .../set-online-solution-version/index.js | 128 +++++++----------- dist/actions/submit-catalog/index.js | 128 +++++++----------- dist/actions/unpack-solution/index.js | 128 +++++++----------- dist/actions/update-solution-version/index.js | 128 +++++++----------- dist/actions/upgrade-solution/index.js | 128 +++++++----------- dist/actions/upload-paportal/index.js | 128 +++++++----------- dist/actions/who-am-i/index.js | 128 +++++++----------- package-lock.json | 18 +-- package.json | 2 +- 33 files changed, 1346 insertions(+), 2390 deletions(-) diff --git a/dist/actions/actions-install/index.js b/dist/actions/actions-install/index.js index dcf4663a..94a98f88 100644 --- a/dist/actions/actions-install/index.js +++ b/dist/actions/actions-install/index.js @@ -3324,7 +3324,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/add-solution-component/index.js b/dist/actions/add-solution-component/index.js index 97080d2a..dd6847db 100644 --- a/dist/actions/add-solution-component/index.js +++ b/dist/actions/add-solution-component/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23860,7 +23824,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/assign-group/index.js b/dist/actions/assign-group/index.js index c2f0c24a..1aa3d918 100644 --- a/dist/actions/assign-group/index.js +++ b/dist/actions/assign-group/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23860,7 +23824,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/assign-user/index.js b/dist/actions/assign-user/index.js index e057861a..8e0fcdd7 100644 --- a/dist/actions/assign-user/index.js +++ b/dist/actions/assign-user/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23860,7 +23824,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/backup-environment/index.js b/dist/actions/backup-environment/index.js index 4f46390f..1deaa80a 100644 --- a/dist/actions/backup-environment/index.js +++ b/dist/actions/backup-environment/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23860,7 +23824,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/branch-solution/index.js b/dist/actions/branch-solution/index.js index ed79e060..8ca6644d 100644 --- a/dist/actions/branch-solution/index.js +++ b/dist/actions/branch-solution/index.js @@ -2320,7 +2320,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/catalog-status/index.js b/dist/actions/catalog-status/index.js index b68924bf..1a7d3181 100644 --- a/dist/actions/catalog-status/index.js +++ b/dist/actions/catalog-status/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/check-solution/index.js b/dist/actions/check-solution/index.js index ca8013d8..e3974c62 100644 --- a/dist/actions/check-solution/index.js +++ b/dist/actions/check-solution/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/clone-solution/index.js b/dist/actions/clone-solution/index.js index 070a6161..216e7fb4 100644 --- a/dist/actions/clone-solution/index.js +++ b/dist/actions/clone-solution/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/copy-environment/index.js b/dist/actions/copy-environment/index.js index 878ef445..5314e0c0 100644 --- a/dist/actions/copy-environment/index.js +++ b/dist/actions/copy-environment/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23860,7 +23824,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/create-environment/index.js b/dist/actions/create-environment/index.js index 38ec4eb5..3c22acc7 100644 --- a/dist/actions/create-environment/index.js +++ b/dist/actions/create-environment/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23860,7 +23824,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/delete-environment/index.js b/dist/actions/delete-environment/index.js index b745189b..c99e2d28 100644 --- a/dist/actions/delete-environment/index.js +++ b/dist/actions/delete-environment/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23860,7 +23824,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/delete-solution/index.js b/dist/actions/delete-solution/index.js index bb68afb4..a311a920 100644 --- a/dist/actions/delete-solution/index.js +++ b/dist/actions/delete-solution/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/deploy-package/index.js b/dist/actions/deploy-package/index.js index 42c40ac3..4f751ea8 100644 --- a/dist/actions/deploy-package/index.js +++ b/dist/actions/deploy-package/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/download-paportal/index.js b/dist/actions/download-paportal/index.js index c6b3428b..9332d6cd 100644 --- a/dist/actions/download-paportal/index.js +++ b/dist/actions/download-paportal/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/export-data/index.js b/dist/actions/export-data/index.js index 2a7a4139..fc68bb95 100644 --- a/dist/actions/export-data/index.js +++ b/dist/actions/export-data/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/export-solution/index.js b/dist/actions/export-solution/index.js index f3033264..fc51265d 100644 --- a/dist/actions/export-solution/index.js +++ b/dist/actions/export-solution/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/import-data/index.js b/dist/actions/import-data/index.js index 8e6a11e9..1a8689e7 100644 --- a/dist/actions/import-data/index.js +++ b/dist/actions/import-data/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/import-solution/index.js b/dist/actions/import-solution/index.js index 9f394ab3..d51f2066 100644 --- a/dist/actions/import-solution/index.js +++ b/dist/actions/import-solution/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/install-catalog/index.js b/dist/actions/install-catalog/index.js index 09b08a46..a1dd2b8a 100644 --- a/dist/actions/install-catalog/index.js +++ b/dist/actions/install-catalog/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/pack-solution/index.js b/dist/actions/pack-solution/index.js index e6f9275b..078b4a13 100644 --- a/dist/actions/pack-solution/index.js +++ b/dist/actions/pack-solution/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23798,7 +23762,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/publish-solution/index.js b/dist/actions/publish-solution/index.js index f504dbe5..333b0860 100644 --- a/dist/actions/publish-solution/index.js +++ b/dist/actions/publish-solution/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/reset-environment/index.js b/dist/actions/reset-environment/index.js index d7e59822..e3727c7e 100644 --- a/dist/actions/reset-environment/index.js +++ b/dist/actions/reset-environment/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23860,7 +23824,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/restore-environment/index.js b/dist/actions/restore-environment/index.js index 220185e2..46a2d1af 100644 --- a/dist/actions/restore-environment/index.js +++ b/dist/actions/restore-environment/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23860,7 +23824,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/set-online-solution-version/index.js b/dist/actions/set-online-solution-version/index.js index f03b0381..b548e1fc 100644 --- a/dist/actions/set-online-solution-version/index.js +++ b/dist/actions/set-online-solution-version/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/submit-catalog/index.js b/dist/actions/submit-catalog/index.js index 8924306c..a3e2d5ef 100644 --- a/dist/actions/submit-catalog/index.js +++ b/dist/actions/submit-catalog/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/unpack-solution/index.js b/dist/actions/unpack-solution/index.js index 82f688bf..7308bb2e 100644 --- a/dist/actions/unpack-solution/index.js +++ b/dist/actions/unpack-solution/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23798,7 +23762,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/update-solution-version/index.js b/dist/actions/update-solution-version/index.js index 623bbcc4..657313df 100644 --- a/dist/actions/update-solution-version/index.js +++ b/dist/actions/update-solution-version/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23798,7 +23762,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/upgrade-solution/index.js b/dist/actions/upgrade-solution/index.js index a4ea2177..63ca5289 100644 --- a/dist/actions/upgrade-solution/index.js +++ b/dist/actions/upgrade-solution/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/upload-paportal/index.js b/dist/actions/upload-paportal/index.js index 4325a641..cad41f15 100644 --- a/dist/actions/upload-paportal/index.js +++ b/dist/actions/upload-paportal/index.js @@ -2179,7 +2179,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -2230,7 +2232,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -2243,7 +2244,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -2252,22 +2252,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -2358,7 +2357,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -2419,7 +2419,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -2435,13 +2434,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -2477,7 +2476,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2553,7 +2552,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -2589,7 +2587,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2620,7 +2618,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -2656,7 +2653,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2707,7 +2704,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -2743,7 +2739,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2772,7 +2768,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -2808,7 +2803,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2837,7 +2832,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -2873,7 +2867,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -2903,7 +2897,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -11772,7 +11765,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -11873,7 +11866,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -11967,7 +11959,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -11995,7 +11987,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -12031,7 +12022,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib2(); @@ -12082,7 +12073,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -12118,7 +12108,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12156,7 +12147,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -12167,7 +12157,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -12203,7 +12192,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12249,7 +12238,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -12285,7 +12273,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12312,7 +12300,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -12321,7 +12308,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -12344,7 +12331,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -12380,7 +12366,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12401,7 +12387,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -12437,7 +12422,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -12467,7 +12452,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -12503,7 +12487,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12546,7 +12530,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -12582,7 +12565,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12624,7 +12607,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -12660,7 +12642,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12688,7 +12670,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -12724,7 +12705,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12754,7 +12735,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -12790,7 +12770,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12820,7 +12800,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -12856,7 +12835,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -12881,7 +12860,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -12917,7 +12895,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -12945,7 +12923,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -12981,7 +12958,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13015,7 +12992,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -13051,7 +13027,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13082,7 +13058,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -13118,7 +13093,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13150,7 +13125,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -13186,7 +13160,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13221,7 +13195,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -13257,7 +13230,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -13291,7 +13264,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -13327,7 +13299,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13360,7 +13332,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -13396,7 +13367,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13423,7 +13394,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -13459,7 +13429,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13491,7 +13461,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -13527,7 +13496,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13555,7 +13524,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -13591,7 +13559,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13625,7 +13593,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -13661,7 +13628,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13693,7 +13660,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -13729,7 +13695,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13759,7 +13725,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -13795,7 +13760,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -13829,7 +13794,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -23873,7 +23837,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/dist/actions/who-am-i/index.js b/dist/actions/who-am-i/index.js index c55b85b8..de09c73a 100644 --- a/dist/actions/who-am-i/index.js +++ b/dist/actions/who-am-i/index.js @@ -38,7 +38,9 @@ var require_InputValidator = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/host/InputValidator.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.normalizeLanguage = exports2.normalizeRegion = exports2.InputValidator = void 0; + exports2.InputValidator = void 0; + exports2.normalizeRegion = normalizeRegion; + exports2.normalizeLanguage = normalizeLanguage; var InputValidator = class { constructor(host) { this._host = host; @@ -89,7 +91,6 @@ var require_InputValidator = __commonJS({ const cliRegionName = regionMap[taskRegionName.toLowerCase()]; return cliRegionName || taskRegionName; } - exports2.normalizeRegion = normalizeRegion; var languageMap = { // pac CLI accepts case-insensitive region names, only transpose different names: // pac CLI accepts languages by either the BAP names, e.g. 'English (United States)' or by langCode, here: 1033 @@ -102,7 +103,6 @@ var require_InputValidator = __commonJS({ const cliLanguageName = languageMap[taskLanguageName.toLowerCase()]; return cliLanguageName || taskLanguageName; } - exports2.normalizeLanguage = normalizeLanguage; } }); @@ -111,22 +111,21 @@ var require_authenticate = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/auth/authenticate.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearAuthentication = exports2.authenticateEnvironment = exports2.authenticateAdmin = void 0; + exports2.authenticateAdmin = authenticateAdmin; + exports2.authenticateEnvironment = authenticateEnvironment; + exports2.clearAuthentication = clearAuthentication; function authenticateAdmin(pac, credentials, logger) { logger.log(`authN to admin API: authType=${isUsernamePassword(credentials) ? "UserPass" : "SPN"}; cloudInstance: ${credentials.cloudInstance || ""}`); return pac("auth", "create", ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateAdmin = authenticateAdmin; function authenticateEnvironment(pac, credentials, environmentUrl, logger) { logger.log(`authN to env. authType:${isUsernamePassword(credentials) ? "UserPass" : "SPN"} authScheme:${isUsernamePassword(credentials) ? "" : `${credentials.scheme}`}; cloudInstance: ${credentials.cloudInstance || ""}; envUrl: ${environmentUrl}`); return pac("auth", "create", ...addEnvironment(environmentUrl), ...addCredentials(credentials), ...addCloudInstance(credentials)); } - exports2.authenticateEnvironment = authenticateEnvironment; function clearAuthentication(pac) { delete process.env.PAC_CLI_SPN_SECRET; return pac("auth", "clear"); } - exports2.clearAuthentication = clearAuthentication; function addEnvironment(env) { return ["--environment", env]; } @@ -217,7 +216,8 @@ var require_CommandRunner = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RunnerError = exports2.createCommandRunner = void 0; + exports2.RunnerError = void 0; + exports2.createCommandRunner = createCommandRunner; var child_process_1 = require("child_process"); var process_1 = require("process"); var readline = require("readline"); @@ -278,7 +278,6 @@ var require_CommandRunner = __commonJS({ logger.debug(`command: ${commandPath}, first arg of ${args.length}: ${args.length ? args[0] : ""}`); } } - exports2.createCommandRunner = createCommandRunner; var RunnerError = class extends Error { constructor(exitCode, message) { super(message); @@ -294,13 +293,13 @@ var require_createPacRunner = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/pac/createPacRunner.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = createPacRunner; var os_1 = require("os"); var path_1 = require("path"); var CommandRunner_1 = require_CommandRunner(); function createPacRunner({ workingDir, runnersDir, pacPath, logger, agent }) { return (0, CommandRunner_1.createCommandRunner)(workingDir, pacPath !== null && pacPath !== void 0 ? pacPath : (0, os_1.platform)() === "win32" ? (0, path_1.resolve)(runnersDir, "pac", "tools", "pac.exe") : (0, path_1.resolve)(runnersDir, "pac_linux", "tools", "pac"), logger, agent, void 0); } - exports2.default = createPacRunner; } }); @@ -336,7 +335,7 @@ var require_exportSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.exportSolution = void 0; + exports2.exportSolution = exportSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -412,7 +411,6 @@ var require_exportSolution = __commonJS({ } }); } - exports2.exportSolution = exportSolution; } }); @@ -448,7 +446,7 @@ var require_whoAmI = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.whoAmI = void 0; + exports2.whoAmI = whoAmI; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -479,7 +477,6 @@ var require_whoAmI = __commonJS({ } }); } - exports2.whoAmI = whoAmI; } }); @@ -515,7 +512,7 @@ var require_importSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.importSolution = void 0; + exports2.importSolution = importSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -566,7 +563,6 @@ var require_importSolution = __commonJS({ } }); } - exports2.importSolution = importSolution; } }); @@ -602,7 +598,7 @@ var require_upgradeSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.upgradeSolution = void 0; + exports2.upgradeSolution = upgradeSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -631,7 +627,6 @@ var require_upgradeSolution = __commonJS({ } }); } - exports2.upgradeSolution = upgradeSolution; } }); @@ -667,7 +662,7 @@ var require_deleteEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteEnvironment = void 0; + exports2.deleteEnvironment = deleteEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -696,7 +691,6 @@ var require_deleteEnvironment = __commonJS({ } }); } - exports2.deleteEnvironment = deleteEnvironment; } }); @@ -732,7 +726,7 @@ var require_backupEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.backupEnvironment = void 0; + exports2.backupEnvironment = backupEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -762,7 +756,6 @@ var require_backupEnvironment = __commonJS({ } }); } - exports2.backupEnvironment = backupEnvironment; } }); @@ -9631,7 +9624,7 @@ var require_checkSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.checkSolution = void 0; + exports2.checkSolution = checkSolution; var glob = require_commonjs5(); var os = require("os"); var path = require("path"); @@ -9732,7 +9725,6 @@ var require_checkSolution = __commonJS({ } }); } - exports2.checkSolution = checkSolution; function isolateStatus(pacResults) { for (let i = pacResults.length - 1; i >= 0; i--) { const hit = pacResults[i].match(/^\s*Status\s*:\s*(\S+)/i); @@ -9826,7 +9818,7 @@ var require_publishSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.publishSolution = void 0; + exports2.publishSolution = publishSolution; var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); var InputValidator_1 = require_InputValidator(); @@ -9854,7 +9846,6 @@ var require_publishSolution = __commonJS({ } }); } - exports2.publishSolution = publishSolution; } }); @@ -9890,7 +9881,7 @@ var require_deployPackage = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deployPackage = void 0; + exports2.deployPackage = deployPackage; var path = require("path"); var os = require("os"); var fs = require_lib(); @@ -9941,7 +9932,6 @@ var require_deployPackage = __commonJS({ } }); } - exports2.deployPackage = deployPackage; } }); @@ -9977,7 +9967,8 @@ var require_createEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEnvironmentDetails = exports2.createEnvironment = void 0; + exports2.createEnvironment = createEnvironment; + exports2.getEnvironmentDetails = getEnvironmentDetails; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10015,7 +10006,6 @@ var require_createEnvironment = __commonJS({ } }); } - exports2.createEnvironment = createEnvironment; function getEnvironmentDetails(pacResult) { var _a; const newEnvDetailColumns = (_a = pacResult.filter((l) => l.length > 0).pop()) === null || _a === void 0 ? void 0 : _a.trim().split(/\s+/); @@ -10026,7 +10016,6 @@ var require_createEnvironment = __commonJS({ environmentUrl: envUrl }; } - exports2.getEnvironmentDetails = getEnvironmentDetails; } }); @@ -10062,7 +10051,7 @@ var require_restoreEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.restoreEnvironment = void 0; + exports2.restoreEnvironment = restoreEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10108,7 +10097,6 @@ var require_restoreEnvironment = __commonJS({ } }); } - exports2.restoreEnvironment = restoreEnvironment; } }); @@ -10144,7 +10132,7 @@ var require_deleteSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteSolution = void 0; + exports2.deleteSolution = deleteSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10171,7 +10159,6 @@ var require_deleteSolution = __commonJS({ } }); } - exports2.deleteSolution = deleteSolution; } }); @@ -10180,7 +10167,7 @@ var require_solutionPackagingBase = __commonJS({ "node_modules/@microsoft/powerplatform-cli-wrapper/dist/actions/solutionPackagingBase.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setSolutionPackagingCommonArgs = void 0; + exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; var path = require("path"); function setSolutionPackagingCommonArgs(parameters, runnerParameters, validator, pacArgs) { function resolveFolder(folder) { @@ -10203,7 +10190,6 @@ var require_solutionPackagingBase = __commonJS({ validator.pushInput(pacArgs, "--processCanvasApps", parameters.processCanvasApps); validator.pushCommon(pacArgs, parameters); } - exports2.setSolutionPackagingCommonArgs = setSolutionPackagingCommonArgs; } }); @@ -10239,7 +10225,7 @@ var require_packSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.packSolution = void 0; + exports2.packSolution = packSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10260,7 +10246,6 @@ var require_packSolution = __commonJS({ } }); } - exports2.packSolution = packSolution; } }); @@ -10296,7 +10281,7 @@ var require_unpackSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unpackSolution = void 0; + exports2.unpackSolution = unpackSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); var solutionPackagingBase_1 = require_solutionPackagingBase(); @@ -10326,7 +10311,6 @@ var require_unpackSolution = __commonJS({ } }); } - exports2.unpackSolution = unpackSolution; } }); @@ -10362,7 +10346,7 @@ var require_resetEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resetEnvironment = void 0; + exports2.resetEnvironment = resetEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10405,7 +10389,6 @@ var require_resetEnvironment = __commonJS({ } }); } - exports2.resetEnvironment = resetEnvironment; } }); @@ -10441,7 +10424,7 @@ var require_copyEnvironment = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.copyEnvironment = void 0; + exports2.copyEnvironment = copyEnvironment; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10483,7 +10466,6 @@ var require_copyEnvironment = __commonJS({ } }); } - exports2.copyEnvironment = copyEnvironment; } }); @@ -10519,7 +10501,7 @@ var require_uploadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.uploadPaportal = void 0; + exports2.uploadPaportal = uploadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10547,7 +10529,6 @@ var require_uploadPaportal = __commonJS({ } }); } - exports2.uploadPaportal = uploadPaportal; } }); @@ -10583,7 +10564,7 @@ var require_downloadPaportal = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.downloadPaportal = void 0; + exports2.downloadPaportal = downloadPaportal; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10613,7 +10594,6 @@ var require_downloadPaportal = __commonJS({ } }); } - exports2.downloadPaportal = downloadPaportal; } }); @@ -10649,7 +10629,7 @@ var require_cloneSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneSolution = void 0; + exports2.cloneSolution = cloneSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10679,7 +10659,6 @@ var require_cloneSolution = __commonJS({ } }); } - exports2.cloneSolution = cloneSolution; } }); @@ -10715,7 +10694,7 @@ var require_updateVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateVersionSolution = void 0; + exports2.updateVersionSolution = updateVersionSolution; var InputValidator_1 = require_InputValidator(); var createPacRunner_1 = require_createPacRunner(); function updateVersionSolution(parameters, runnerParameters, host) { @@ -10740,7 +10719,6 @@ var require_updateVersionSolution = __commonJS({ } }); } - exports2.updateVersionSolution = updateVersionSolution; } }); @@ -10776,7 +10754,7 @@ var require_onlineVersionSolution = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.onlineVersionSolution = void 0; + exports2.onlineVersionSolution = onlineVersionSolution; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10804,7 +10782,6 @@ var require_onlineVersionSolution = __commonJS({ } }); } - exports2.onlineVersionSolution = onlineVersionSolution; } }); @@ -10840,7 +10817,7 @@ var require_installApplication = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installApplication = void 0; + exports2.installApplication = installApplication; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10874,7 +10851,6 @@ var require_installApplication = __commonJS({ } }); } - exports2.installApplication = installApplication; } }); @@ -10910,7 +10886,7 @@ var require_assignUser = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignUser = void 0; + exports2.assignUser = assignUser; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -10941,7 +10917,6 @@ var require_assignUser = __commonJS({ } }); } - exports2.assignUser = assignUser; } }); @@ -10977,7 +10952,7 @@ var require_addSolutionComponent = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.addSolutionComponent = void 0; + exports2.addSolutionComponent = addSolutionComponent; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11009,7 +10984,6 @@ var require_addSolutionComponent = __commonJS({ } }); } - exports2.addSolutionComponent = addSolutionComponent; } }); @@ -11045,7 +11019,7 @@ var require_dataExport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataExport = void 0; + exports2.dataExport = dataExport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11080,7 +11054,6 @@ var require_dataExport = __commonJS({ } }); } - exports2.dataExport = dataExport; } }); @@ -11116,7 +11089,7 @@ var require_dataImport = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dataImport = void 0; + exports2.dataImport = dataImport; var os = require("os"); var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); @@ -11150,7 +11123,6 @@ var require_dataImport = __commonJS({ } }); } - exports2.dataImport = dataImport; } }); @@ -11186,7 +11158,7 @@ var require_assignGroup = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.assignGroup = void 0; + exports2.assignGroup = assignGroup; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11219,7 +11191,6 @@ var require_assignGroup = __commonJS({ } }); } - exports2.assignGroup = assignGroup; } }); @@ -11255,7 +11226,7 @@ var require_virtualAgentsStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.virtualAgentsStatus = void 0; + exports2.virtualAgentsStatus = virtualAgentsStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11282,7 +11253,6 @@ var require_virtualAgentsStatus = __commonJS({ } }); } - exports2.virtualAgentsStatus = virtualAgentsStatus; } }); @@ -11318,7 +11288,7 @@ var require_installCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.installCatalog = void 0; + exports2.installCatalog = installCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11350,7 +11320,6 @@ var require_installCatalog = __commonJS({ } }); } - exports2.installCatalog = installCatalog; } }); @@ -11386,7 +11355,7 @@ var require_catalogStatus = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.catalogStatus = void 0; + exports2.catalogStatus = catalogStatus; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11414,7 +11383,6 @@ var require_catalogStatus = __commonJS({ } }); } - exports2.catalogStatus = catalogStatus; } }); @@ -11450,7 +11418,7 @@ var require_submitCatalog = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.submitCatalog = void 0; + exports2.submitCatalog = submitCatalog; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11484,7 +11452,6 @@ var require_submitCatalog = __commonJS({ } }); } - exports2.submitCatalog = submitCatalog; } }); @@ -11520,7 +11487,7 @@ var require_pipelineDeploy = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.pipelineDeploy = void 0; + exports2.pipelineDeploy = pipelineDeploy; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11552,7 +11519,6 @@ var require_pipelineDeploy = __commonJS({ } }); } - exports2.pipelineDeploy = pipelineDeploy; } }); @@ -11588,7 +11554,7 @@ var require_updateOrgSettings = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.updateOrgSettings = void 0; + exports2.updateOrgSettings = updateOrgSettings; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11618,7 +11584,6 @@ var require_updateOrgSettings = __commonJS({ } }); } - exports2.updateOrgSettings = updateOrgSettings; } }); @@ -11654,7 +11619,7 @@ var require_setGovernanceConfig = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.setGovernanceConfig = void 0; + exports2.setGovernanceConfig = setGovernanceConfig; var InputValidator_1 = require_InputValidator(); var authenticate_1 = require_authenticate(); var createPacRunner_1 = require_createPacRunner(); @@ -11688,7 +11653,6 @@ var require_setGovernanceConfig = __commonJS({ } }); } - exports2.setGovernanceConfig = setGovernanceConfig; } }); @@ -14092,7 +14056,7 @@ var require_package = __commonJS({ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", diff --git a/package-lock.json b/package-lock.json index 5682ff4a..0a550e6e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "@microsoft/powerplatform-actions", - "version": "1.5.0", + "version": "1.7.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@microsoft/powerplatform-actions", - "version": "1.5.0", + "version": "1.7.0", "license": "MIT", "dependencies": { "@actions/artifact": "^1.1.1", "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1", @@ -842,9 +842,9 @@ } }, "node_modules/@microsoft/powerplatform-cli-wrapper": { - "version": "0.1.124", - "resolved": "https://npm.pkg.github.com/download/@microsoft/powerplatform-cli-wrapper/0.1.124/a19c35e4303f209c0a9c9f6ee80960abcc90ddaa", - "integrity": "sha512-g5LUGHEx+UKCI62ZbPsknoyy60AOk7p3kvr/YFdNyPJcnZ5nvQwaZxGQX87bSFYkrE0UmDyY0nKrMPV/3qEzmw==", + "version": "0.1.129", + "resolved": "https://npm.pkg.github.com/download/@microsoft/powerplatform-cli-wrapper/0.1.129/efeacf9c1c7853f27006f1d8477212da1ac28c9a", + "integrity": "sha512-f/XOY3DtmaWDNHt36IdLHgzna3fJPX+WF9xwPHtWhx4cO1RRuPhCdcPqbg5+zN/qmtZG7BCdRHNClEe9hJFgJg==", "license": "MIT", "dependencies": { "fs-extra": "^11.1.1", @@ -8422,9 +8422,9 @@ } }, "@microsoft/powerplatform-cli-wrapper": { - "version": "0.1.124", - "resolved": "https://npm.pkg.github.com/download/@microsoft/powerplatform-cli-wrapper/0.1.124/a19c35e4303f209c0a9c9f6ee80960abcc90ddaa", - "integrity": "sha512-g5LUGHEx+UKCI62ZbPsknoyy60AOk7p3kvr/YFdNyPJcnZ5nvQwaZxGQX87bSFYkrE0UmDyY0nKrMPV/3qEzmw==", + "version": "0.1.129", + "resolved": "https://npm.pkg.github.com/download/@microsoft/powerplatform-cli-wrapper/0.1.129/efeacf9c1c7853f27006f1d8477212da1ac28c9a", + "integrity": "sha512-f/XOY3DtmaWDNHt36IdLHgzna3fJPX+WF9xwPHtWhx4cO1RRuPhCdcPqbg5+zN/qmtZG7BCdRHNClEe9hJFgJg==", "requires": { "fs-extra": "^11.1.1", "glob": "^10.4.1" diff --git a/package.json b/package.json index f9d207b6..f7c84d82 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.3", - "@microsoft/powerplatform-cli-wrapper": "^0.1.124", + "@microsoft/powerplatform-cli-wrapper": "^0.1.129", "date-fns": "^3.6.0", "fs-extra": "^11.2.0", "js-yaml": "^4.1",