@uipath/solution-sdk 1.205.0-preview.276 → 1.206.0-preview.279
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/deployment-search.js +49 -19
- package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/first-party-service-ahcc6xc6.js +8 -0
- package/dist/{index-y4vgqz1w.js → index-0b3srjv7.js} +98 -8
- package/dist/{index-78paj2kz.js → index-0drvtcm4.js} +12 -11
- package/dist/{index-hkexw5er.js → index-bpn15jyk.js} +35 -20
- package/dist/{index-gdtpsdn7.js → index-mm1x18d6.js} +223 -28
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/{index-dze7jd39.js → index-t1e17c6h.js} +582 -577
- package/dist/{index-enc2hqq5.js → index-tdffhvfs.js} +931 -502
- package/dist/index-txd1grjc.js +541 -0
- package/dist/{index-cs3g624n.js → index-xnrbg4x3.js} +6 -7
- package/dist/index-z2qk2qn6.js +24 -0
- package/dist/index.js +1310 -669
- package/dist/{jmespath-231m3hyn.js → jmespath-x4na7sj8.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/package-search.js +18 -19
- package/dist/project-context.js +75 -0
- package/dist/resources/index.js +265 -237
- package/dist/scripts/generate-sdk.js +2 -2
- package/dist/solution-auth.js +6 -7
- package/dist/src/deployment-search.d.ts +30 -0
- package/dist/src/project-context.d.ts +9 -0
- package/dist/src/resources/providers/artefact-pair-binding-provider.d.ts +8 -2
- package/dist/src/resources/services/sync-resources-from-bindings.d.ts +14 -1
- package/package.json +6 -2
- package/dist/first-party-service-sd8yaf73.js +0 -27
- package/dist/index-1de529jm.js +0 -39
- package/dist/index-53w8skv5.js +0 -262
- package/dist/index-dqa169gp.js +0 -25
- package/dist/index-zmneg45c.js +0 -1184
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import"./index-1de529jm.js";
|
|
2
|
-
|
|
3
1
|
// ../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
4
2
|
function getDefaultExportFromCjs(x) {
|
|
5
3
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -3150,4 +3148,4 @@ export {
|
|
|
3150
3148
|
types
|
|
3151
3149
|
};
|
|
3152
3150
|
|
|
3153
|
-
//# debugId=
|
|
3151
|
+
//# debugId=41DC6971B94BC54964756E2164756E21
|
package/dist/package-search.js
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
+
import"./index-0b3srjv7.js";
|
|
1
2
|
import {
|
|
2
|
-
|
|
3
|
+
catchError,
|
|
4
|
+
logger
|
|
5
|
+
} from "./index-tdffhvfs.js";
|
|
6
|
+
import {
|
|
7
|
+
Configuration2,
|
|
3
8
|
PipelinesApi,
|
|
4
|
-
isApplicationSession,
|
|
5
9
|
isMissingPipelinesRoute,
|
|
10
|
+
isApplicationSession,
|
|
6
11
|
parseSearchPage
|
|
7
|
-
} from "./index-
|
|
8
|
-
import {
|
|
9
|
-
Configuration,
|
|
10
|
-
PackageInfoFromJSON,
|
|
11
|
-
SearchApi
|
|
12
|
-
} from "./index-dze7jd39.js";
|
|
12
|
+
} from "./index-0drvtcm4.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-1de529jm.js";
|
|
14
|
+
Configuration3,
|
|
15
|
+
PackageInfoFromJSON2,
|
|
16
|
+
SearchApi2
|
|
17
|
+
} from "./index-t1e17c6h.js";
|
|
18
|
+
import"./index-bpn15jyk.js";
|
|
20
19
|
|
|
21
20
|
// src/legacy-package-search.ts
|
|
22
21
|
var LEGACY_PACKAGE_SEARCH_ROUTE = "POST /api/search/packages";
|
|
23
22
|
async function searchPackagesLegacy(auth, query, scope) {
|
|
24
|
-
const api = new
|
|
23
|
+
const api = new SearchApi2(new Configuration3({
|
|
25
24
|
basePath: auth.basePath,
|
|
26
25
|
accessToken: auth.accessToken
|
|
27
26
|
}));
|
|
@@ -49,7 +48,7 @@ class PackageSearchNeedsUserSessionError extends Error {
|
|
|
49
48
|
var PACKAGE_ROWS = {
|
|
50
49
|
singular: "package",
|
|
51
50
|
plural: "packages",
|
|
52
|
-
fromJSON:
|
|
51
|
+
fromJSON: PackageInfoFromJSON2,
|
|
53
52
|
isRow: (row) => isNonEmptyString(row, "key") && isNonEmptyString(row, "name")
|
|
54
53
|
};
|
|
55
54
|
function isNonEmptyString(row, field) {
|
|
@@ -59,10 +58,10 @@ function isNonEmptyString(row, field) {
|
|
|
59
58
|
var serversWithoutPipelinesSearch = new Set;
|
|
60
59
|
async function searchPackagesPage(auth, query, scope) {
|
|
61
60
|
if (!serversWithoutPipelinesSearch.has(auth.basePath)) {
|
|
62
|
-
const [error,
|
|
61
|
+
const [error, body] = await catchError(searchViaPipelines(auth, query, scope));
|
|
63
62
|
if (!error) {
|
|
64
63
|
return {
|
|
65
|
-
...parseSearchPage(
|
|
64
|
+
...parseSearchPage(body, PIPELINES_SEARCH_ROUTE, PACKAGE_ROWS),
|
|
66
65
|
source: "pipelines"
|
|
67
66
|
};
|
|
68
67
|
}
|
|
@@ -102,4 +101,4 @@ export {
|
|
|
102
101
|
searchPackagesPage
|
|
103
102
|
};
|
|
104
103
|
|
|
105
|
-
//# debugId=
|
|
104
|
+
//# debugId=56B788EC9EA7248E64756E2164756E21
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./index-0b3srjv7.js";
|
|
4
|
+
import {
|
|
5
|
+
ProjectDimensions,
|
|
6
|
+
solutionIdentityProperties,
|
|
7
|
+
projectKey,
|
|
8
|
+
logger
|
|
9
|
+
} from "./index-tdffhvfs.js";
|
|
10
|
+
import {
|
|
11
|
+
toPortableRelativePath2,
|
|
12
|
+
findSolutionFileUpward2
|
|
13
|
+
} from "./index-txd1grjc.js";
|
|
14
|
+
|
|
15
|
+
// src/project-context.ts
|
|
16
|
+
function record(value) {
|
|
17
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : undefined;
|
|
18
|
+
}
|
|
19
|
+
async function readProjectSolutionContext(projectDirectory, fs = getFileSystem()) {
|
|
20
|
+
try {
|
|
21
|
+
const selected = fs.path.resolve(projectDirectory);
|
|
22
|
+
const selectedStat = await fs.stat(selected);
|
|
23
|
+
if (!selectedStat?.isDirectory() && !selectedStat?.isFile())
|
|
24
|
+
return;
|
|
25
|
+
const selectedDirectory = selectedStat.isDirectory() ? selected : fs.path.dirname(selected);
|
|
26
|
+
const directory = await fs.realpath(selectedDirectory);
|
|
27
|
+
const file = await findSolutionFileUpward2(fs, selectedDirectory);
|
|
28
|
+
const stat = await fs.stat(file);
|
|
29
|
+
if (!stat?.isFile() || stat.size > 1024 * 1024)
|
|
30
|
+
return;
|
|
31
|
+
const manifest = record(JSON.parse(await fs.readFile(file, "utf-8") ?? ""));
|
|
32
|
+
if (typeof manifest?.SolutionId !== "string" || !manifest.SolutionId.trim() || !Array.isArray(manifest.Projects))
|
|
33
|
+
return;
|
|
34
|
+
if (!projectKey(manifest.SolutionId))
|
|
35
|
+
return;
|
|
36
|
+
const members = [];
|
|
37
|
+
for (const value of manifest.Projects) {
|
|
38
|
+
const member = record(value);
|
|
39
|
+
if (typeof member?.ProjectRelativePath !== "string" || !member.ProjectRelativePath.trim())
|
|
40
|
+
continue;
|
|
41
|
+
const relative = toPortableRelativePath2(member.ProjectRelativePath);
|
|
42
|
+
if (fs.path.isAbsolute(relative) || /^[a-z]:/i.test(relative))
|
|
43
|
+
continue;
|
|
44
|
+
const candidate = fs.path.resolve(fs.path.dirname(file), fs.path.dirname(relative));
|
|
45
|
+
if (!(await fs.stat(candidate))?.isDirectory())
|
|
46
|
+
continue;
|
|
47
|
+
if (await fs.realpath(candidate) !== directory)
|
|
48
|
+
continue;
|
|
49
|
+
if (selectedStat.isFile() && await fs.realpath(selected) !== await fs.realpath(fs.path.resolve(fs.path.dirname(file), relative)))
|
|
50
|
+
continue;
|
|
51
|
+
if (typeof member.Id !== "string" || !member.Id.trim())
|
|
52
|
+
return;
|
|
53
|
+
if (!projectKey(member.Id))
|
|
54
|
+
return;
|
|
55
|
+
members.push(member.Id);
|
|
56
|
+
}
|
|
57
|
+
if (members.length !== 1)
|
|
58
|
+
return;
|
|
59
|
+
return {
|
|
60
|
+
...solutionIdentityProperties({
|
|
61
|
+
id: manifest.SolutionId,
|
|
62
|
+
status: "resolved"
|
|
63
|
+
}),
|
|
64
|
+
[ProjectDimensions.SolutionProjectKey]: projectKey(members[0])
|
|
65
|
+
};
|
|
66
|
+
} catch (error) {
|
|
67
|
+
logger.debug(`[project-context] solution context skipped: ${error instanceof Error ? error.message : String(error)}`);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
readProjectSolutionContext
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
//# debugId=18B82CE72AF6735E64756E2164756E21
|