@uipath/solution-tool 1.197.0 → 1.198.0-preview.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/deploy.js +70 -20
- package/dist/init.js +6 -1
- package/dist/pack.js +451 -90
- package/dist/packager-tool.js +4676 -0
- package/dist/publish.js +36 -7
- package/dist/resource.js +24 -5
- package/dist/services/deploy-list-service.d.ts +9 -0
- package/dist/services/packages-list-service.d.ts +9 -0
- package/dist/services/publish-service.d.ts +1 -1
- package/dist/tool.js +9499 -11394
- package/package.json +2 -2
package/dist/deploy.js
CHANGED
|
@@ -28228,8 +28228,15 @@ var TLS_ERROR_CODES = new Set([
|
|
|
28228
28228
|
var TLS_INSTRUCTIONS = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
|
|
28229
28229
|
var NETWORK_INSTRUCTIONS = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
|
|
28230
28230
|
function describeConnectivityError(error) {
|
|
28231
|
-
|
|
28232
|
-
|
|
28231
|
+
const queue = [error];
|
|
28232
|
+
const seen = new Set;
|
|
28233
|
+
for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
|
|
28234
|
+
const current = queue.shift();
|
|
28235
|
+
if (current === null || typeof current !== "object")
|
|
28236
|
+
continue;
|
|
28237
|
+
if (seen.has(current))
|
|
28238
|
+
continue;
|
|
28239
|
+
seen.add(current);
|
|
28233
28240
|
const cur = current;
|
|
28234
28241
|
const code = typeof cur.code === "string" ? cur.code : undefined;
|
|
28235
28242
|
const message = typeof cur.message === "string" ? cur.message : undefined;
|
|
@@ -28249,7 +28256,10 @@ function describeConnectivityError(error) {
|
|
|
28249
28256
|
instructions: NETWORK_INSTRUCTIONS
|
|
28250
28257
|
};
|
|
28251
28258
|
}
|
|
28252
|
-
|
|
28259
|
+
if (cur.cause !== undefined)
|
|
28260
|
+
queue.push(cur.cause);
|
|
28261
|
+
if (Array.isArray(cur.errors))
|
|
28262
|
+
queue.push(...cur.errors);
|
|
28253
28263
|
}
|
|
28254
28264
|
return;
|
|
28255
28265
|
}
|
|
@@ -33480,6 +33490,7 @@ function getLogFilePath() {
|
|
|
33480
33490
|
// ../common/src/output-format-context.ts
|
|
33481
33491
|
var formatSlot = singleton("OutputFormat");
|
|
33482
33492
|
var formatExplicitSlot = singleton("OutputFormatExplicit");
|
|
33493
|
+
var helpRequestedSlot = singleton("HelpRequested");
|
|
33483
33494
|
var filterSlot = singleton("OutputFilter");
|
|
33484
33495
|
function getOutputFormat() {
|
|
33485
33496
|
return formatSlot.get("json");
|
|
@@ -34547,6 +34558,9 @@ var OutputFormatter;
|
|
|
34547
34558
|
if (opts?.warning) {
|
|
34548
34559
|
data.Warning = opts.warning;
|
|
34549
34560
|
}
|
|
34561
|
+
if (opts?.pagination) {
|
|
34562
|
+
data.Pagination = opts.pagination;
|
|
34563
|
+
}
|
|
34550
34564
|
success(data);
|
|
34551
34565
|
}
|
|
34552
34566
|
OutputFormatter.emitList = emitList;
|
|
@@ -34995,6 +35009,7 @@ var DEFAULT_PAGE_SIZE = 50;
|
|
|
34995
35009
|
var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
|
|
34996
35010
|
// ../common/src/interactivity-context.ts
|
|
34997
35011
|
var modeSlot = singleton("InteractivityMode");
|
|
35012
|
+
var interactiveFlagSlot = singleton("InteractiveFlag");
|
|
34998
35013
|
// ../common/src/polling/format-utils.ts
|
|
34999
35014
|
function msToDuration(ms) {
|
|
35000
35015
|
if (!Number.isFinite(ms) || ms < 0) {
|
|
@@ -35823,7 +35838,7 @@ class TextApiResponse {
|
|
|
35823
35838
|
var package_default = {
|
|
35824
35839
|
name: "@uipath/pipelines-sdk",
|
|
35825
35840
|
license: "MIT",
|
|
35826
|
-
version: "1.
|
|
35841
|
+
version: "1.198.0",
|
|
35827
35842
|
description: "Generated TypeScript client for UiPath Pipelines API (CI/CD deployment lifecycle)",
|
|
35828
35843
|
repository: {
|
|
35829
35844
|
type: "git",
|
|
@@ -37238,7 +37253,7 @@ class JSONApiResponse2 {
|
|
|
37238
37253
|
var package_default2 = {
|
|
37239
37254
|
name: "@uipath/solution-sdk",
|
|
37240
37255
|
license: "MIT",
|
|
37241
|
-
version: "1.
|
|
37256
|
+
version: "1.198.0-preview.80",
|
|
37242
37257
|
repository: {
|
|
37243
37258
|
type: "git",
|
|
37244
37259
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -38047,15 +38062,27 @@ async function findDeploymentByName(auth, deploymentName) {
|
|
|
38047
38062
|
basePath: auth.basePath,
|
|
38048
38063
|
accessToken: auth.accessToken
|
|
38049
38064
|
}));
|
|
38050
|
-
const
|
|
38051
|
-
|
|
38052
|
-
|
|
38053
|
-
|
|
38054
|
-
|
|
38055
|
-
|
|
38065
|
+
const take = 50;
|
|
38066
|
+
for (let skip = 0;; ) {
|
|
38067
|
+
const result = await api.searchSearchDeployments22({
|
|
38068
|
+
deploymentsSearchRequest2: {
|
|
38069
|
+
searchTerm: deploymentName,
|
|
38070
|
+
take,
|
|
38071
|
+
skip,
|
|
38072
|
+
operationStatuses: [],
|
|
38073
|
+
activationStatuses: []
|
|
38074
|
+
}
|
|
38075
|
+
});
|
|
38076
|
+
const values = result.values ?? [];
|
|
38077
|
+
const match = values.find((deployment) => deployment.name === deploymentName);
|
|
38078
|
+
if (match) {
|
|
38079
|
+
return match;
|
|
38056
38080
|
}
|
|
38057
|
-
|
|
38058
|
-
|
|
38081
|
+
if (values.length < take) {
|
|
38082
|
+
return;
|
|
38083
|
+
}
|
|
38084
|
+
skip += values.length;
|
|
38085
|
+
}
|
|
38059
38086
|
}
|
|
38060
38087
|
async function findDeploymentForError(auth, deploymentName) {
|
|
38061
38088
|
const [lookupError, deployment] = await catchError(findDeploymentByName(auth, deploymentName));
|
|
@@ -39416,6 +39443,10 @@ var getAuthContext = async (options = {}) => {
|
|
|
39416
39443
|
tenantName
|
|
39417
39444
|
};
|
|
39418
39445
|
};
|
|
39446
|
+
|
|
39447
|
+
// ../auth/src/index.ts
|
|
39448
|
+
init_constants();
|
|
39449
|
+
|
|
39419
39450
|
// ../auth/src/interactive.ts
|
|
39420
39451
|
init_src();
|
|
39421
39452
|
|
|
@@ -39762,7 +39793,7 @@ class TextApiResponse3 {
|
|
|
39762
39793
|
var package_default3 = {
|
|
39763
39794
|
name: "@uipath/orchestrator-sdk",
|
|
39764
39795
|
license: "MIT",
|
|
39765
|
-
version: "1.
|
|
39796
|
+
version: "1.198.0",
|
|
39766
39797
|
repository: {
|
|
39767
39798
|
type: "git",
|
|
39768
39799
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -42324,6 +42355,7 @@ var fail2 = (reason, message, instructions, exitCode = 1) => ({
|
|
|
42324
42355
|
});
|
|
42325
42356
|
async function listDeploymentsAsync(options = {}) {
|
|
42326
42357
|
const limit = options.limit ?? DEFAULT_PAGE_SIZE;
|
|
42358
|
+
const offset = options.offset ?? 0;
|
|
42327
42359
|
const [authError, auth] = await catchError(getSolutionAuthContext({
|
|
42328
42360
|
tenant: options.tenant,
|
|
42329
42361
|
loginValidity: options.loginValidity,
|
|
@@ -42349,6 +42381,7 @@ async function listDeploymentsAsync(options = {}) {
|
|
|
42349
42381
|
const [listError, result] = await catchError(api.searchSearchDeployments22({
|
|
42350
42382
|
deploymentsSearchRequest2: {
|
|
42351
42383
|
take: limit,
|
|
42384
|
+
skip: offset,
|
|
42352
42385
|
orderByColumn: options.sortBy ?? "startTime",
|
|
42353
42386
|
orderByDirection: options.sortOrder ?? "Descending",
|
|
42354
42387
|
operationStatuses: [],
|
|
@@ -42359,7 +42392,7 @@ async function listDeploymentsAsync(options = {}) {
|
|
|
42359
42392
|
const { message, details } = await extractErrorDetails(listError);
|
|
42360
42393
|
return fail2("list_request_failed", message, `Failed to list deployments. Details: ${details}`);
|
|
42361
42394
|
}
|
|
42362
|
-
let values = result.values;
|
|
42395
|
+
let values = result.values ?? [];
|
|
42363
42396
|
if (folderPathFilter) {
|
|
42364
42397
|
values = values.filter((d) => d.folderPath === folderPathFilter || d.folderPath?.startsWith(`${folderPathFilter}/`));
|
|
42365
42398
|
}
|
|
@@ -42375,7 +42408,7 @@ async function listDeploymentsAsync(options = {}) {
|
|
|
42375
42408
|
installedRootFolderKey: d.installedRootFolderKey,
|
|
42376
42409
|
deploymentCreationTime: d.deploymentCreationTime
|
|
42377
42410
|
}));
|
|
42378
|
-
return { ok: true, deployments, limit };
|
|
42411
|
+
return { ok: true, deployments, limit, offset, total: result.count };
|
|
42379
42412
|
}
|
|
42380
42413
|
// src/services/deploy-run-service.ts
|
|
42381
42414
|
init_src();
|
|
@@ -42441,8 +42474,17 @@ async function deployToPersonalWorkspace(auth, params, options) {
|
|
|
42441
42474
|
const pwScope = ({ init }) => ({
|
|
42442
42475
|
headers: { ...init.headers, "X-UIPATH-FolderKey": pw.key }
|
|
42443
42476
|
});
|
|
42444
|
-
const
|
|
42445
|
-
|
|
42477
|
+
const take = 50;
|
|
42478
|
+
let pkg;
|
|
42479
|
+
for (let skip = 0;; ) {
|
|
42480
|
+
const packages = await searchApi.searchSearchPackages({ searchFilter: { searchTerm: params.packageName, take, skip } }, pwScope);
|
|
42481
|
+
const values = packages.values ?? [];
|
|
42482
|
+
pkg = values.find((p) => p.name === params.packageName);
|
|
42483
|
+
if (pkg || values.length < take) {
|
|
42484
|
+
break;
|
|
42485
|
+
}
|
|
42486
|
+
skip += values.length;
|
|
42487
|
+
}
|
|
42446
42488
|
if (!pkg) {
|
|
42447
42489
|
throw new Error(`Package '${params.packageName}' was not found in the Personal Workspace feed. Publish it first with: uip solution publish <package> --personal-workspace.`);
|
|
42448
42490
|
}
|
|
@@ -42766,6 +42808,7 @@ var fail5 = (reason, message, instructions, exitCode = 1) => ({
|
|
|
42766
42808
|
});
|
|
42767
42809
|
async function listPackagesAsync(options = {}) {
|
|
42768
42810
|
const limit = options.limit ?? DEFAULT_PAGE_SIZE;
|
|
42811
|
+
const offset = options.offset ?? 0;
|
|
42769
42812
|
const [authError, auth] = await catchError(getSolutionAuthContext({
|
|
42770
42813
|
tenant: options.tenant,
|
|
42771
42814
|
loginValidity: options.loginValidity,
|
|
@@ -42783,6 +42826,7 @@ async function listPackagesAsync(options = {}) {
|
|
|
42783
42826
|
orderByColumn: options.sortBy ?? "publishDate",
|
|
42784
42827
|
orderByDirection: options.sortOrder ?? "Descending",
|
|
42785
42828
|
take: limit,
|
|
42829
|
+
skip: offset,
|
|
42786
42830
|
searchTerm: options.name
|
|
42787
42831
|
}
|
|
42788
42832
|
}));
|
|
@@ -42791,7 +42835,13 @@ async function listPackagesAsync(options = {}) {
|
|
|
42791
42835
|
return fail5("list_request_failed", message, `Failed to list packages. Details: ${details}`);
|
|
42792
42836
|
}
|
|
42793
42837
|
const packages = result.values ?? [];
|
|
42794
|
-
return {
|
|
42838
|
+
return {
|
|
42839
|
+
ok: true,
|
|
42840
|
+
packages,
|
|
42841
|
+
limit,
|
|
42842
|
+
offset,
|
|
42843
|
+
total: result.count
|
|
42844
|
+
};
|
|
42795
42845
|
}
|
|
42796
42846
|
export {
|
|
42797
42847
|
uninstallDeploymentAsync,
|
|
@@ -42801,4 +42851,4 @@ export {
|
|
|
42801
42851
|
activateDeploymentAsync
|
|
42802
42852
|
};
|
|
42803
42853
|
|
|
42804
|
-
//# debugId=
|
|
42854
|
+
//# debugId=D79D1B5BB7DAD30864756E2164756E21
|
package/dist/init.js
CHANGED
|
@@ -8008,6 +8008,7 @@ function getLogFilePath() {
|
|
|
8008
8008
|
// ../common/src/output-format-context.ts
|
|
8009
8009
|
var formatSlot = singleton("OutputFormat");
|
|
8010
8010
|
var formatExplicitSlot = singleton("OutputFormatExplicit");
|
|
8011
|
+
var helpRequestedSlot = singleton("HelpRequested");
|
|
8011
8012
|
var filterSlot = singleton("OutputFilter");
|
|
8012
8013
|
function getOutputFormat() {
|
|
8013
8014
|
return formatSlot.get("json");
|
|
@@ -9075,6 +9076,9 @@ var OutputFormatter;
|
|
|
9075
9076
|
if (opts?.warning) {
|
|
9076
9077
|
data.Warning = opts.warning;
|
|
9077
9078
|
}
|
|
9079
|
+
if (opts?.pagination) {
|
|
9080
|
+
data.Pagination = opts.pagination;
|
|
9081
|
+
}
|
|
9078
9082
|
success(data);
|
|
9079
9083
|
}
|
|
9080
9084
|
OutputFormatter.emitList = emitList;
|
|
@@ -9514,6 +9518,7 @@ var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
|
|
|
9514
9518
|
var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
|
|
9515
9519
|
// ../common/src/interactivity-context.ts
|
|
9516
9520
|
var modeSlot = singleton("InteractivityMode");
|
|
9521
|
+
var interactiveFlagSlot = singleton("InteractiveFlag");
|
|
9517
9522
|
// ../common/src/polling/types.ts
|
|
9518
9523
|
var PollOutcome = {
|
|
9519
9524
|
Completed: "completed",
|
|
@@ -9638,4 +9643,4 @@ export {
|
|
|
9638
9643
|
SolutionInitError
|
|
9639
9644
|
};
|
|
9640
9645
|
|
|
9641
|
-
//# debugId=
|
|
9646
|
+
//# debugId=8EF0C0E5E69998A364756E2164756E21
|