@uipath/solution-tool 1.205.0-preview.281 → 1.206.0-preview.282
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/{archive-extract-x35t9ktj.js → archive-extract-136rn3ja.js} +13 -15
- package/dist/{cleanup-command-service-je9d70vv.js → cleanup-command-service-kadmvyk4.js} +34 -31
- package/dist/deploy-delete-service-xa25k94p.js +23 -0
- package/dist/deploy-run-service-rsedb9hr.js +23 -0
- package/dist/{deploy-status-service-919yn8wn.js → deploy-status-service-nmm8k9fa.js} +72 -62
- package/dist/deploy.js +35 -37
- package/dist/deployment-search-wtbye8v6.js +54 -0
- package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/feed-resolver-28pfxmky.js +27 -0
- package/dist/feed-scope-failure-d4avsc7j.js +20 -0
- package/dist/feed-session-4skrr620.js +23 -0
- package/dist/first-party-service-n3vva2m4.js +8 -0
- package/dist/governance-options-bevmhh1z.js +19 -0
- package/dist/index-aspmac9f.js +24 -0
- package/dist/index-md8d2ttf.js +60 -0
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-qq4kre7a.js +93 -0
- package/dist/index-t262f2xv.js +16 -0
- package/dist/index.js +33 -34
- package/dist/init.js +18 -21
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{list-5fke71jn.js → list-pnggwekk.js} +23 -23
- package/dist/models/pack-command-types.d.ts +3 -1
- package/dist/node-z9c03k2q.js +25 -0
- package/dist/pack-command-service-2txx876d.js +29 -0
- package/dist/{pack-project-ha0pxw3h.js → pack-project-ngwtfgge.js} +33 -40
- package/dist/pack.js +26 -30
- package/dist/package-id-350pep6r.js +11 -0
- package/dist/{packager-tool-5qzgdb66.js → packager-tool-0k205evy.js} +13 -15
- package/dist/{packager-tool-wm0jaz7p.js → packager-tool-0vz19vhv.js} +305 -657
- package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
- package/dist/{packager-tool-h1tq7bqf.js → packager-tool-41a5axkd.js} +65 -35
- package/dist/packager-tool-8097ps72.js +2307 -0
- package/dist/{packager-tool-1ybnxbp9.js → packager-tool-85f75be3.js} +18 -18
- package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
- package/dist/{packager-tool-pbmqk39a.js → packager-tool-a7s0gbxs.js} +33 -28
- package/dist/{packager-tool-47wzvqw0.js → packager-tool-aws5w512.js} +6 -6
- package/dist/packager-tool-c64hqa8n.js +106 -0
- package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
- package/dist/{packager-tool-d78ww4hb.js → packager-tool-cp66jc40.js} +51 -48
- package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
- package/dist/{packager-tool-cvf46scg.js → packager-tool-daphtc6e.js} +122 -89
- package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
- package/dist/packager-tool-f84z7nds.js +130 -0
- package/dist/{packager-tool-45a8fkw0.js → packager-tool-fgk0fkm5.js} +37 -39
- package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
- package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
- package/dist/{packager-tool-4pa108k7.js → packager-tool-g8ghm6wk.js} +11 -11
- package/dist/{packager-tool-2t72aez8.js → packager-tool-gpcr8zxf.js} +15 -15
- package/dist/packager-tool-gqb9ytg9.js +290 -0
- package/dist/packager-tool-hrkvdw31.js +280 -0
- package/dist/{packager-tool-056k8w2f.js → packager-tool-hs1kjv0c.js} +75 -9
- package/dist/{packager-tool-2vmz56qh.js → packager-tool-jatbb6c5.js} +184 -33
- package/dist/{packager-tool-f23a485e.js → packager-tool-jfp5mvqm.js} +176 -196
- package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
- package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
- package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
- package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
- package/dist/packager-tool-rb06drad.js +1178 -0
- package/dist/packager-tool-resolver-td3bhccd.js +20 -0
- package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
- package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
- package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
- package/dist/{packager-tool-gyqfs04e.js → packager-tool-vq5fwggb.js} +273 -255
- package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
- package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
- package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
- package/dist/{packager-tool-97rcgwvv.js → packager-tool-x461tgwy.js} +331 -55
- package/dist/{packager-tool-dnrk1gg6.js → packager-tool-y6efv1f8.js} +356 -298
- package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
- package/dist/packager-tool-z45eej6s.js +74 -0
- package/dist/packager-tool.js +6 -7
- package/dist/prepare-solution-resources-pwnyvtza.js +26 -0
- package/dist/{project-command-utils-t6pmpvq3.js → project-command-utils-zcmbecfy.js} +23 -26
- package/dist/project-contributions-kh9yftvg.js +27 -0
- package/dist/publish.js +17 -17
- package/dist/resource-mutations-mfn5k1hb.js +27 -0
- package/dist/{resource-version-lookup-0e3e2j58.js → resource-version-lookup-6ejh1hwd.js} +20 -23
- package/dist/resource.js +13 -16
- package/dist/{restore-command-service-pzpet021.js → restore-command-service-r7t52t25.js} +37 -34
- package/dist/{run-service-hk8w2h31.js → run-service-xrhg0z2a.js} +144 -66
- package/dist/services/deploy-activate-service.d.ts +2 -1
- package/dist/services/deployment-search-client.d.ts +2 -1
- package/dist/services/deployment-search.d.ts +39 -0
- package/dist/services/feed-resolver.d.ts +13 -1
- package/dist/services/feed-selection.d.ts +8 -5
- package/dist/services/feed-session.d.ts +34 -0
- package/dist/services/install-run.d.ts +92 -0
- package/dist/services/prepare-solution-resources.d.ts +11 -2
- package/dist/services/project-contributions.d.ts +2 -0
- package/dist/services/project-identity-telemetry.d.ts +3 -0
- package/dist/services/publish-service.d.ts +20 -3
- package/dist/services/solution-identity.d.ts +18 -0
- package/dist/ship-telemetry-bkf3800w.js +16 -0
- package/dist/solution-auth-jxcgd2m0.js +10 -0
- package/dist/solution-identity-92h2fbpa.js +19 -0
- package/dist/templates/AGENTS.md +27 -29
- package/dist/tool.js +32 -33
- package/package.json +2 -2
- package/dist/deploy-delete-service-0tm600d1.js +0 -25
- package/dist/deploy-run-service-hne5w17k.js +0 -25
- package/dist/deployment-search-32zvxn35.js +0 -55
- package/dist/feed-resolver-pdeb4wkq.js +0 -28
- package/dist/feed-scope-failure-4baame72.js +0 -19
- package/dist/feed-session-7xqphdrg.js +0 -17
- package/dist/first-party-service-sd8yaf73.js +0 -27
- package/dist/governance-options-bqgv5fte.js +0 -32
- package/dist/index-dqa169gp.js +0 -25
- package/dist/index-prm27bvm.js +0 -138
- package/dist/index-wdndcwab.js +0 -667
- package/dist/node-v7xhqwe2.js +0 -86
- package/dist/pack-command-service-b1v9c8cw.js +0 -35
- package/dist/package-id-rpzgy31w.js +0 -13
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-5edvzz80.js +0 -543
- package/dist/packager-tool-99jaqabz.js +0 -171
- package/dist/packager-tool-9hsmn8th.js +0 -418
- package/dist/packager-tool-azre7mm1.js +0 -182
- package/dist/packager-tool-fn13r8e1.js +0 -188
- package/dist/packager-tool-gdtpsdn7.js +0 -342
- package/dist/packager-tool-qw47eyw7.js +0 -43
- package/dist/packager-tool-resolver-994z3jkj.js +0 -23
- package/dist/packager-tool-tedbebpq.js +0 -5367
- package/dist/packager-tool-x1ah4eez.js +0 -68
- package/dist/prepare-solution-resources-m1djfj62.js +0 -29
- package/dist/project-contributions-79ndycrx.js +0 -32
- package/dist/resource-mutations-c3krjqze.js +0 -36
- package/dist/ship-telemetry-myes7ak5.js +0 -21
- package/dist/solution-auth-aead70sw.js +0 -11
- /package/dist/{packager-tool-act5r386.js → packager-tool-2pxe2r4j.js} +0 -0
- /package/dist/{packager-tool-kkfb5kgn.js → packager-tool-vrqbbh01.js} +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./packager-tool-tx834spe.js";
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./packager-tool-vgrswa8p.js";
|
|
5
4
|
import {
|
|
6
5
|
catchError
|
|
7
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-m07vyk89.js";
|
|
8
7
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
logger,
|
|
9
|
+
isGuid
|
|
10
|
+
} from "./packager-tool-9vrwpgt3.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./packager-tool-
|
|
15
|
-
import"./packager-tool-1de529jm.js";
|
|
12
|
+
strFromU82,
|
|
13
|
+
unzipSync2
|
|
14
|
+
} from "./packager-tool-rj2d1g0w.js";
|
|
16
15
|
|
|
17
16
|
// ../common/src/zip.ts
|
|
18
17
|
function resolveZipEntryPath(fs, root, entryName) {
|
|
@@ -59,7 +58,7 @@ async function extractZipDataToDir(fs, zipData, destinationDir) {
|
|
|
59
58
|
await fs.mkdir(destinationDir);
|
|
60
59
|
const lexicalRoot = fs.path.resolve(destinationDir);
|
|
61
60
|
const realRoot = await fs.realpath(lexicalRoot);
|
|
62
|
-
const entries =
|
|
61
|
+
const entries = unzipSync2(zipData);
|
|
63
62
|
for (const [entryName, content] of Object.entries(entries)) {
|
|
64
63
|
const target = resolveZipEntryPath(fs, lexicalRoot, entryName);
|
|
65
64
|
if (entryName.endsWith("/")) {
|
|
@@ -89,7 +88,7 @@ function readSolutionIdField(bytes) {
|
|
|
89
88
|
if (!bytes) {
|
|
90
89
|
return;
|
|
91
90
|
}
|
|
92
|
-
const [parseError, parsed] = catchError(() => JSON.parse(
|
|
91
|
+
const [parseError, parsed] = catchError(() => JSON.parse(strFromU82(bytes)));
|
|
93
92
|
if (parseError || !parsed) {
|
|
94
93
|
return;
|
|
95
94
|
}
|
|
@@ -97,7 +96,7 @@ function readSolutionIdField(bytes) {
|
|
|
97
96
|
return typeof id === "string" && isGuid(id) ? id : undefined;
|
|
98
97
|
}
|
|
99
98
|
function readBundledSolutionId(archive) {
|
|
100
|
-
const [unzipError, entries] = catchError(() =>
|
|
99
|
+
const [unzipError, entries] = catchError(() => unzipSync2(archive, {
|
|
101
100
|
filter: (file) => file.name === SOLUTION_STORAGE_ENTRY || isRootUipxEntry(file.name)
|
|
102
101
|
}));
|
|
103
102
|
if (unzipError || !entries) {
|
|
@@ -113,8 +112,7 @@ function readBundledSolutionId(archive) {
|
|
|
113
112
|
}
|
|
114
113
|
export {
|
|
115
114
|
extractArchive,
|
|
116
|
-
extractZipDataToDir,
|
|
117
115
|
readBundledSolutionId
|
|
118
116
|
};
|
|
119
117
|
|
|
120
|
-
//# debugId=
|
|
118
|
+
//# debugId=C8E98E1DA69E00FC64756E2164756E21
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
checkSolutionPathAsync,
|
|
5
|
-
createSolutionPackager,
|
|
6
|
-
readSolutionFileAsUint8Array,
|
|
7
|
-
resolveSdkLogLevel
|
|
8
|
-
} from "./packager-tool-056k8w2f.js";
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./packager-tool-vgrswa8p.js";
|
|
9
4
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
catchError,
|
|
6
|
+
carriedInstructions
|
|
7
|
+
} from "./packager-tool-m07vyk89.js";
|
|
13
8
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import"./packager-tool-
|
|
19
|
-
import"./packager-tool-5ddtwzva.js";
|
|
9
|
+
RESULTS,
|
|
10
|
+
logger,
|
|
11
|
+
OutputFormatter
|
|
12
|
+
} from "./packager-tool-9vrwpgt3.js";
|
|
13
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
20
14
|
import {
|
|
21
15
|
ToolResult
|
|
22
|
-
} from "./packager-tool-
|
|
23
|
-
import"./packager-tool-43ahv5mn.js";
|
|
16
|
+
} from "./packager-tool-a7s0gbxs.js";
|
|
24
17
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
SolutionPackOptions
|
|
19
|
+
} from "./packager-tool-jatbb6c5.js";
|
|
20
|
+
import"./packager-tool-0vz19vhv.js";
|
|
21
|
+
import"./packager-tool-ca5ngmqv.js";
|
|
22
|
+
import"./packager-tool-qzcd5c9s.js";
|
|
29
23
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} from "./packager-tool-6ybywxxn.js";
|
|
24
|
+
ensurePackagerTools2
|
|
25
|
+
} from "./packager-tool-wm8nj6e9.js";
|
|
33
26
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./packager-tool-
|
|
36
|
-
import"./packager-tool-
|
|
37
|
-
import
|
|
27
|
+
captureExtractedSolution2
|
|
28
|
+
} from "./packager-tool-f84z7nds.js";
|
|
29
|
+
import"./packager-tool-t39pjz7n.js";
|
|
30
|
+
import {
|
|
31
|
+
createProjectActivityObserver,
|
|
32
|
+
createSolutionPackager,
|
|
33
|
+
readSolutionFileAsUint8Array,
|
|
34
|
+
resolveSdkLogLevel,
|
|
35
|
+
applyAuthConnection,
|
|
36
|
+
SOLUTION_PATH_INSTRUCTIONS,
|
|
37
|
+
checkSolutionPathAsync
|
|
38
|
+
} from "./packager-tool-hs1kjv0c.js";
|
|
38
39
|
|
|
39
40
|
// src/services/cleanup-command-service.ts
|
|
40
41
|
class CleanupCommandService {
|
|
@@ -111,10 +112,11 @@ Removing unused items...
|
|
|
111
112
|
if (isUisFile) {
|
|
112
113
|
const uint8Array = await readSolutionFileAsUint8Array(this.fs, absoluteSolutionPath);
|
|
113
114
|
inputPath = await packager.setupAsync(uint8Array);
|
|
115
|
+
await captureExtractedSolution2(options.telemetryCapture, inputPath);
|
|
114
116
|
} else {
|
|
115
117
|
inputPath = await packager.setupAsync(absoluteSolutionPath);
|
|
116
118
|
}
|
|
117
|
-
await
|
|
119
|
+
await ensurePackagerTools2(inputPath, this.fs);
|
|
118
120
|
const cleanupOptions = await this.createCleanupOptions(inputPath, options);
|
|
119
121
|
return packager.cleanupSolutionAsync(cleanupOptions);
|
|
120
122
|
});
|
|
@@ -129,6 +131,7 @@ Removing unused items...
|
|
|
129
131
|
}
|
|
130
132
|
async createCleanupOptions(inputPath, options) {
|
|
131
133
|
const cleanupOptions = new SolutionPackOptions;
|
|
134
|
+
cleanupOptions.projectActivity = createProjectActivityObserver("uip solution cleanup");
|
|
132
135
|
cleanupOptions.inputPath = inputPath;
|
|
133
136
|
cleanupOptions.cleanupOptions = {
|
|
134
137
|
dryRun: options.dryRun ?? false,
|
|
@@ -146,4 +149,4 @@ export {
|
|
|
146
149
|
CleanupCommandService
|
|
147
150
|
};
|
|
148
151
|
|
|
149
|
-
//# debugId=
|
|
152
|
+
//# debugId=6EB3727D4B34FE6164756E2164756E21
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
deleteDeploymentAsync2
|
|
3
|
+
} from "./packager-tool-fgk0fkm5.js";
|
|
4
|
+
import"./packager-tool-z45eej6s.js";
|
|
5
|
+
import"./packager-tool-85f75be3.js";
|
|
6
|
+
import"./packager-tool-hrkvdw31.js";
|
|
7
|
+
import"./packager-tool-gqb9ytg9.js";
|
|
8
|
+
import"./packager-tool-8097ps72.js";
|
|
9
|
+
import"./packager-tool-x461tgwy.js";
|
|
10
|
+
import"./packager-tool-rb06drad.js";
|
|
11
|
+
import"./packager-tool-fp46ebde.js";
|
|
12
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
13
|
+
import"./packager-tool-c64hqa8n.js";
|
|
14
|
+
import"./packager-tool-t39pjz7n.js";
|
|
15
|
+
import"./packager-tool-9vrwpgt3.js";
|
|
16
|
+
import"./packager-tool-m07vyk89.js";
|
|
17
|
+
import"./packager-tool-vgrswa8p.js";
|
|
18
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
19
|
+
export {
|
|
20
|
+
deleteDeploymentAsync2 as deleteDeploymentAsync
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//# debugId=E95ADBB10A1A7C8D64756E2164756E21
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
deployRunAsync2
|
|
3
|
+
} from "./packager-tool-vq5fwggb.js";
|
|
4
|
+
import"./packager-tool-daphtc6e.js";
|
|
5
|
+
import"./packager-tool-gpcr8zxf.js";
|
|
6
|
+
import"./packager-tool-hrkvdw31.js";
|
|
7
|
+
import"./packager-tool-gqb9ytg9.js";
|
|
8
|
+
import"./packager-tool-8097ps72.js";
|
|
9
|
+
import"./packager-tool-x461tgwy.js";
|
|
10
|
+
import"./packager-tool-rb06drad.js";
|
|
11
|
+
import"./packager-tool-fp46ebde.js";
|
|
12
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
13
|
+
import"./packager-tool-c64hqa8n.js";
|
|
14
|
+
import"./packager-tool-t39pjz7n.js";
|
|
15
|
+
import"./packager-tool-9vrwpgt3.js";
|
|
16
|
+
import"./packager-tool-m07vyk89.js";
|
|
17
|
+
import"./packager-tool-vgrswa8p.js";
|
|
18
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
19
|
+
export {
|
|
20
|
+
deployRunAsync2 as deployRunAsync
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//# debugId=80708213322FBDAD64756E2164756E21
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
+
import"./packager-tool-vgrswa8p.js";
|
|
1
2
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./packager-tool-1ybnxbp9.js";
|
|
3
|
+
catchError,
|
|
4
|
+
httpStatusOf2
|
|
5
|
+
} from "./packager-tool-m07vyk89.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readActivationBlockersAsync,
|
|
10
|
-
readPendingResourcesAsync
|
|
11
|
-
} from "./packager-tool-2t72aez8.js";
|
|
7
|
+
quoteForShell
|
|
8
|
+
} from "./packager-tool-9vrwpgt3.js";
|
|
12
9
|
import {
|
|
10
|
+
Configuration2,
|
|
11
|
+
PipelinesApi,
|
|
13
12
|
DeploymentSearchNeedsUserSessionError,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
isAuthRefusal,
|
|
14
|
+
classifyFeedSession2,
|
|
15
|
+
FeedReadRefusedError2,
|
|
16
|
+
feedReadRefusalAsync2
|
|
17
|
+
} from "./packager-tool-x461tgwy.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
Configuration3,
|
|
20
|
+
DeploymentsApi2
|
|
21
|
+
} from "./packager-tool-rb06drad.js";
|
|
22
|
+
import"./packager-tool-8097ps72.js";
|
|
23
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
24
|
+
import"./packager-tool-t39pjz7n.js";
|
|
23
25
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
findDeploymentByName2,
|
|
27
|
+
DeploymentSearchCapError2,
|
|
28
|
+
findCurrentDeploymentAsync2
|
|
29
|
+
} from "./packager-tool-hrkvdw31.js";
|
|
30
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
31
|
+
import"./packager-tool-fp46ebde.js";
|
|
27
32
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
folderKeyInitOverride2,
|
|
34
|
+
feedScopeInitOverride2,
|
|
35
|
+
feedSelectorFlag2
|
|
36
|
+
} from "./packager-tool-gqb9ytg9.js";
|
|
31
37
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
import"./packager-tool-5edvzz80.js";
|
|
38
|
-
import"./packager-tool-43ahv5mn.js";
|
|
39
|
-
import {
|
|
40
|
-
httpStatusOf,
|
|
41
|
-
quoteForShell
|
|
42
|
-
} from "./packager-tool-tx834spe.js";
|
|
38
|
+
readPendingResourcesAsync,
|
|
39
|
+
readActivationBlockersAsync,
|
|
40
|
+
needsPendingResources,
|
|
41
|
+
deploymentNextSteps
|
|
42
|
+
} from "./packager-tool-gpcr8zxf.js";
|
|
43
43
|
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
import"./packager-tool-
|
|
44
|
+
findDeploymentAcrossFeeds,
|
|
45
|
+
INCOMPLETE_SWEEP_ADVICE,
|
|
46
|
+
reportIncompleteSweepAsync
|
|
47
|
+
} from "./packager-tool-85f75be3.js";
|
|
48
|
+
import"./packager-tool-c64hqa8n.js";
|
|
49
49
|
|
|
50
50
|
// src/services/deploy-status-service.ts
|
|
51
51
|
class IncompleteFeedSweepError extends Error {
|
|
@@ -68,11 +68,11 @@ function looksLikeDeploymentKey(reference) {
|
|
|
68
68
|
return GUID.test(reference);
|
|
69
69
|
}
|
|
70
70
|
async function describeDeploymentByKeyAsync(auth, deploymentKey, scope, feedSelector = "", addressedBy = "key") {
|
|
71
|
-
const deploymentsApi = new
|
|
71
|
+
const deploymentsApi = new DeploymentsApi2(new Configuration3({
|
|
72
72
|
basePath: auth.basePath,
|
|
73
73
|
accessToken: auth.accessToken
|
|
74
74
|
}));
|
|
75
|
-
const pipelinesApi = new PipelinesApi(new
|
|
75
|
+
const pipelinesApi = new PipelinesApi(new Configuration2({
|
|
76
76
|
basePath: auth.basePath,
|
|
77
77
|
accessToken: auth.accessToken
|
|
78
78
|
}));
|
|
@@ -84,19 +84,19 @@ async function describeDeploymentByKeyAsync(auth, deploymentKey, scope, feedSele
|
|
|
84
84
|
if (!lookupError && info) {
|
|
85
85
|
return describeFromLookupAsync(auth, apis, deploymentKey, info, addressedBy);
|
|
86
86
|
}
|
|
87
|
-
if (lookupError &&
|
|
87
|
+
if (lookupError && httpStatusOf2(lookupError) !== 404) {
|
|
88
88
|
throw lookupError;
|
|
89
89
|
}
|
|
90
|
-
if (
|
|
90
|
+
if (classifyFeedSession2(auth) !== "user") {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
return describeViaSolutionsAsync(auth, apis, deploymentKey, scope, feedSelector, addressedBy);
|
|
94
94
|
}
|
|
95
95
|
async function describeFromLookupAsync(auth, apis, requestedKey, info, addressedBy) {
|
|
96
|
-
const feedScope = info.locationKey ?
|
|
96
|
+
const feedScope = info.locationKey ? folderKeyInitOverride2(info.locationKey) : undefined;
|
|
97
97
|
const selector = info.locationKey ? ` --feed ${info.locationKey}` : "";
|
|
98
98
|
const superseded = addressedBy === "key" && info.deploymentKey !== requestedKey;
|
|
99
|
-
const [rowError, headRow] = await catchError(
|
|
99
|
+
const [rowError, headRow] = await catchError(findCurrentDeploymentAsync2(auth, {
|
|
100
100
|
key: info.deploymentKey,
|
|
101
101
|
installDeploymentKey: info.installDeploymentKey,
|
|
102
102
|
packageName: info.packageName
|
|
@@ -120,7 +120,7 @@ async function describeFromLookupAsync(auth, apis, requestedKey, info, addressed
|
|
|
120
120
|
const pendingResources = blockers && blockers.length > 0 ? blockers : needsPendingResources(current) ? await readPendingResourcesAsync(apis, current, feedScope) : undefined;
|
|
121
121
|
const steps = deploymentNextSteps(current, pendingResources, selector) ?? [];
|
|
122
122
|
if (!row && info.status === "SuccessfulInstall" && !blockers) {
|
|
123
|
-
steps.unshift(
|
|
123
|
+
steps.unshift(unreadActivationStep(current, headRow, rowError));
|
|
124
124
|
}
|
|
125
125
|
if (superseded) {
|
|
126
126
|
steps.unshift(supersededLine(requestedKey, current, selector));
|
|
@@ -137,7 +137,7 @@ async function describeFromLookupAsync(auth, apis, requestedKey, info, addressed
|
|
|
137
137
|
async function describeViaSolutionsAsync(auth, apis, deploymentKey, scope, feedSelector, addressedBy) {
|
|
138
138
|
const [getError, requested] = await catchError(apis.deployments.deploymentsGetByKey({ deploymentKey }, scope));
|
|
139
139
|
if (getError) {
|
|
140
|
-
if (
|
|
140
|
+
if (httpStatusOf2(getError) === 404) {
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
143
|
throw getError;
|
|
@@ -145,7 +145,7 @@ async function describeViaSolutionsAsync(auth, apis, deploymentKey, scope, feedS
|
|
|
145
145
|
if (!requested) {
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
|
-
const [headError, head] = await catchError(
|
|
148
|
+
const [headError, head] = await catchError(findCurrentDeploymentAsync2(auth, requested, scope));
|
|
149
149
|
const moved = headError || !head ? null : head.key !== requested.key;
|
|
150
150
|
const superseded = addressedBy === "name" && moved !== null ? false : moved;
|
|
151
151
|
const current = toCurrentRecord(head ?? requested, {
|
|
@@ -169,6 +169,18 @@ async function describeViaSolutionsAsync(auth, apis, deploymentKey, scope, feedS
|
|
|
169
169
|
...steps.length > 0 ? { nextSteps: steps } : {}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
+
function unreadActivationStep(current, headRow, rowError) {
|
|
173
|
+
const unread = `Deployment '${current.name}' is installed but not active (DeploymentStatus: SuccessfulInstall). What is left before it runs could not be read:`;
|
|
174
|
+
const orchestrator = "open the deployment in Orchestrator (Tenant > Solutions > Deployments)";
|
|
175
|
+
if (headRow) {
|
|
176
|
+
return `${unread} the Solutions search does not list record '${current.key}' yet (its newest row is '${headRow.key}'). Run 'uip solution deploy status ${quoteForShell(current.name)}' again in a moment, or ${orchestrator}.`;
|
|
177
|
+
}
|
|
178
|
+
if (rowError instanceof DeploymentSearchCapError2) {
|
|
179
|
+
return `${unread} the package's deployment history is too long for the Solutions search to read in full (${rowError.message}). Open the deployment in Orchestrator (Tenant > Solutions > Deployments), which is not limited by this cap.`;
|
|
180
|
+
}
|
|
181
|
+
const reason = rowError ? ` (${rowError.message})` : "";
|
|
182
|
+
return `${unread} the Solutions search needs a user session${reason}. Run 'uip solution deploy status ${quoteForShell(current.name)}' after 'uip login', or ${orchestrator}.`;
|
|
183
|
+
}
|
|
172
184
|
function toCurrentRecord(record, extra) {
|
|
173
185
|
return {
|
|
174
186
|
key: record.key,
|
|
@@ -191,32 +203,32 @@ function supersededLine(requestedKey, current, feedSelector) {
|
|
|
191
203
|
}
|
|
192
204
|
async function describeDeploymentAsync(auth, reference, options) {
|
|
193
205
|
const { selectedFeed } = options;
|
|
194
|
-
const scope = selectedFeed ?
|
|
195
|
-
const feedSelector =
|
|
206
|
+
const scope = selectedFeed ? feedScopeInitOverride2(selectedFeed) : undefined;
|
|
207
|
+
const feedSelector = feedSelectorFlag2(selectedFeed);
|
|
196
208
|
if (looksLikeDeploymentKey(reference)) {
|
|
197
209
|
const byKey = await describeDeploymentByKeyAsync(auth, reference, scope, feedSelector);
|
|
198
210
|
if (byKey) {
|
|
199
211
|
return byKey;
|
|
200
212
|
}
|
|
201
|
-
const session =
|
|
213
|
+
const session = classifyFeedSession2(auth);
|
|
202
214
|
if (session === "unknown") {
|
|
203
215
|
return;
|
|
204
216
|
}
|
|
205
217
|
if (session === "application") {
|
|
206
218
|
if (selectedFeed && selectedFeed.kind !== "tenant") {
|
|
207
|
-
const refusal =
|
|
219
|
+
const refusal = await feedReadRefusalAsync2(auth, selectedFeed.folderKey, `Reading a deployment by name in the feed '${selectedFeed.name ?? selectedFeed.folderKey}'`);
|
|
208
220
|
if (refusal) {
|
|
209
|
-
throw new
|
|
221
|
+
throw new FeedReadRefusedError2(refusal);
|
|
210
222
|
}
|
|
211
223
|
}
|
|
212
|
-
const [searchError,
|
|
224
|
+
const [searchError, found] = await catchError(locateDeploymentByNameAsync(auth, reference, options));
|
|
213
225
|
if (unreadableByApplication(searchError)) {
|
|
214
226
|
return;
|
|
215
227
|
}
|
|
216
228
|
if (searchError) {
|
|
217
229
|
throw searchError;
|
|
218
230
|
}
|
|
219
|
-
return
|
|
231
|
+
return found ? describeLocatedDeploymentAsync(auth, found) : undefined;
|
|
220
232
|
}
|
|
221
233
|
}
|
|
222
234
|
const found = await locateDeploymentByNameAsync(auth, reference, options);
|
|
@@ -232,12 +244,12 @@ function unreadableByApplication(error) {
|
|
|
232
244
|
async function locateDeploymentByNameAsync(auth, reference, options) {
|
|
233
245
|
const { selectedFeed } = options;
|
|
234
246
|
if (selectedFeed) {
|
|
235
|
-
const scope =
|
|
236
|
-
const row = await
|
|
247
|
+
const scope = feedScopeInitOverride2(selectedFeed);
|
|
248
|
+
const row = await findDeploymentByName2(auth, reference, scope);
|
|
237
249
|
return row ? {
|
|
238
250
|
key: row.key,
|
|
239
251
|
scope,
|
|
240
|
-
feedSelector:
|
|
252
|
+
feedSelector: feedSelectorFlag2(selectedFeed)
|
|
241
253
|
} : undefined;
|
|
242
254
|
}
|
|
243
255
|
const { location, complete, skipped } = await findDeploymentAcrossFeeds(auth, reference, options.locate);
|
|
@@ -248,17 +260,15 @@ async function locateDeploymentByNameAsync(auth, reference, options) {
|
|
|
248
260
|
return location ? {
|
|
249
261
|
key: location.deployment.key,
|
|
250
262
|
scope: location.scope,
|
|
251
|
-
feedSelector:
|
|
263
|
+
feedSelector: feedSelectorFlag2(location.feed)
|
|
252
264
|
} : undefined;
|
|
253
265
|
}
|
|
254
266
|
function describeLocatedDeploymentAsync(auth, found) {
|
|
255
267
|
return describeDeploymentByKeyAsync(auth, found.key, found.scope, found.feedSelector, "name");
|
|
256
268
|
}
|
|
257
269
|
export {
|
|
258
|
-
IncompleteFeedSweepError,
|
|
259
270
|
describeDeploymentAsync,
|
|
260
|
-
describeDeploymentByKeyAsync,
|
|
261
271
|
looksLikeDeploymentKey
|
|
262
272
|
};
|
|
263
273
|
|
|
264
|
-
//# debugId=
|
|
274
|
+
//# debugId=CE22DB6EC2D5424664756E2164756E21
|
package/dist/deploy.js
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
|
+
import"./packager-tool-vgrswa8p.js";
|
|
2
|
+
import"./packager-tool-m07vyk89.js";
|
|
3
|
+
import"./packager-tool-9vrwpgt3.js";
|
|
4
|
+
import"./packager-tool-t39pjz7n.js";
|
|
5
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
6
|
+
import"./packager-tool-x461tgwy.js";
|
|
7
|
+
import"./packager-tool-rb06drad.js";
|
|
8
|
+
import"./packager-tool-8097ps72.js";
|
|
9
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
10
|
+
import"./packager-tool-hrkvdw31.js";
|
|
11
|
+
import"./packager-tool-daphtc6e.js";
|
|
12
|
+
import"./packager-tool-fp46ebde.js";
|
|
13
|
+
import"./packager-tool-gqb9ytg9.js";
|
|
1
14
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
15
|
+
deleteDeploymentAsync2
|
|
16
|
+
} from "./packager-tool-fgk0fkm5.js";
|
|
4
17
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./packager-tool-
|
|
18
|
+
deployRunAsync2
|
|
19
|
+
} from "./packager-tool-vq5fwggb.js";
|
|
7
20
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./packager-tool-
|
|
14
|
-
import"./packager-tool-
|
|
15
|
-
import"./packager-tool-
|
|
16
|
-
import"./packager-tool-
|
|
17
|
-
import"./packager-tool-
|
|
18
|
-
import"./packager-tool-act5r386.js";
|
|
19
|
-
import"./packager-tool-9hsmn8th.js";
|
|
20
|
-
import"./packager-tool-azre7mm1.js";
|
|
21
|
-
import"./packager-tool-97rcgwvv.js";
|
|
22
|
-
import"./packager-tool-tedbebpq.js";
|
|
23
|
-
import"./packager-tool-qw47eyw7.js";
|
|
24
|
-
import"./packager-tool-61pwb567.js";
|
|
25
|
-
import"./packager-tool-8ptbmmmp.js";
|
|
26
|
-
import"./packager-tool-5edvzz80.js";
|
|
27
|
-
import"./packager-tool-43ahv5mn.js";
|
|
28
|
-
import"./packager-tool-tx834spe.js";
|
|
29
|
-
import"./packager-tool-6ybywxxn.js";
|
|
30
|
-
import"./packager-tool-v1f5e8t9.js";
|
|
31
|
-
import"./packager-tool-dfrk01gn.js";
|
|
32
|
-
import"./packager-tool-1de529jm.js";
|
|
21
|
+
activateDeploymentAsync2,
|
|
22
|
+
listDeploymentsAsync2,
|
|
23
|
+
uninstallDeploymentAsync2,
|
|
24
|
+
upgradeDeploymentAsync2,
|
|
25
|
+
listPackagesAsync2
|
|
26
|
+
} from "./packager-tool-jfp5mvqm.js";
|
|
27
|
+
import"./packager-tool-gpcr8zxf.js";
|
|
28
|
+
import"./packager-tool-z45eej6s.js";
|
|
29
|
+
import"./packager-tool-85f75be3.js";
|
|
30
|
+
import"./packager-tool-c64hqa8n.js";
|
|
33
31
|
export {
|
|
34
|
-
activateDeploymentAsync,
|
|
35
|
-
deleteDeploymentAsync,
|
|
36
|
-
deployRunAsync,
|
|
37
|
-
listDeploymentsAsync,
|
|
38
|
-
listPackagesAsync,
|
|
39
|
-
uninstallDeploymentAsync,
|
|
40
|
-
upgradeDeploymentAsync
|
|
32
|
+
activateDeploymentAsync2 as activateDeploymentAsync,
|
|
33
|
+
deleteDeploymentAsync2 as deleteDeploymentAsync,
|
|
34
|
+
deployRunAsync2 as deployRunAsync,
|
|
35
|
+
listDeploymentsAsync2 as listDeploymentsAsync,
|
|
36
|
+
listPackagesAsync2 as listPackagesAsync,
|
|
37
|
+
uninstallDeploymentAsync2 as uninstallDeploymentAsync,
|
|
38
|
+
upgradeDeploymentAsync2 as upgradeDeploymentAsync
|
|
41
39
|
};
|
|
42
40
|
|
|
43
|
-
//# debugId=
|
|
41
|
+
//# debugId=6FE8566BD193706464756E2164756E21
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readDeploymentByKeyAsync2,
|
|
3
|
+
findDeploymentByName2,
|
|
4
|
+
findLiveDeploymentByName2,
|
|
5
|
+
isCompletedUninstall2,
|
|
6
|
+
findDeploymentsByPackageName2,
|
|
7
|
+
DeploymentSearchCapError2,
|
|
8
|
+
findCurrentDeploymentAsync2,
|
|
9
|
+
blocksRedeploy2,
|
|
10
|
+
MAX_LISTED_DEPLOYMENTS2,
|
|
11
|
+
formatExistingDeployments2,
|
|
12
|
+
findDeploymentsByName2,
|
|
13
|
+
findDeploymentBestEffort2,
|
|
14
|
+
newestDeploymentRow2,
|
|
15
|
+
isPipelineDeploymentNotFoundError2,
|
|
16
|
+
interpretFailedDeployPoll2,
|
|
17
|
+
mapOperationStatusToPipelineStatus2,
|
|
18
|
+
deploymentToTerminalPipelineResult2,
|
|
19
|
+
resolveInstalledFolder2
|
|
20
|
+
} from "./packager-tool-hrkvdw31.js";
|
|
21
|
+
import"./packager-tool-8097ps72.js";
|
|
22
|
+
import"./packager-tool-x461tgwy.js";
|
|
23
|
+
import"./packager-tool-rb06drad.js";
|
|
24
|
+
import"./packager-tool-c64hqa8n.js";
|
|
25
|
+
import"./packager-tool-t39pjz7n.js";
|
|
26
|
+
import"./packager-tool-9vrwpgt3.js";
|
|
27
|
+
import {
|
|
28
|
+
httpStatusOf2
|
|
29
|
+
} from "./packager-tool-m07vyk89.js";
|
|
30
|
+
import"./packager-tool-vgrswa8p.js";
|
|
31
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
32
|
+
export {
|
|
33
|
+
DeploymentSearchCapError2 as DeploymentSearchCapError,
|
|
34
|
+
MAX_LISTED_DEPLOYMENTS2 as MAX_LISTED_DEPLOYMENTS,
|
|
35
|
+
blocksRedeploy2 as blocksRedeploy,
|
|
36
|
+
deploymentToTerminalPipelineResult2 as deploymentToTerminalPipelineResult,
|
|
37
|
+
findCurrentDeploymentAsync2 as findCurrentDeploymentAsync,
|
|
38
|
+
findDeploymentBestEffort2 as findDeploymentBestEffort,
|
|
39
|
+
findDeploymentByName2 as findDeploymentByName,
|
|
40
|
+
findDeploymentsByName2 as findDeploymentsByName,
|
|
41
|
+
findDeploymentsByPackageName2 as findDeploymentsByPackageName,
|
|
42
|
+
findLiveDeploymentByName2 as findLiveDeploymentByName,
|
|
43
|
+
formatExistingDeployments2 as formatExistingDeployments,
|
|
44
|
+
httpStatusOf2 as httpStatusOf,
|
|
45
|
+
interpretFailedDeployPoll2 as interpretFailedDeployPoll,
|
|
46
|
+
isCompletedUninstall2 as isCompletedUninstall,
|
|
47
|
+
isPipelineDeploymentNotFoundError2 as isPipelineDeploymentNotFoundError,
|
|
48
|
+
mapOperationStatusToPipelineStatus2 as mapOperationStatusToPipelineStatus,
|
|
49
|
+
newestDeploymentRow2 as newestDeploymentRow,
|
|
50
|
+
readDeploymentByKeyAsync2 as readDeploymentByKeyAsync,
|
|
51
|
+
resolveInstalledFolder2 as resolveInstalledFolder
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
//# debugId=F88C220D75A0F90E64756E2164756E21
|