@uipath/vertical-solutions-tool 1.204.0 → 1.205.0-preview.258
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/README.md +80 -0
- package/dist/THIRD-PARTY-NOTICES.md +1617 -369
- package/dist/createSdk-2f9x47em.js +12 -0
- package/dist/deploy-jobs-3k87fkwz.js +23 -0
- package/dist/deploy-service-qaykt7er.js +1779 -0
- package/dist/deployment-search-arbm2z06.js +2649 -0
- package/dist/embedded-file-reader-r66242ey.js +114 -0
- package/dist/first-party-service-srxaftkn.js +27 -0
- package/dist/index-7a3eqtxv.js +3174 -0
- package/dist/index-8s9dxpj4.js +18812 -0
- package/dist/index-fyc0k5dd.js +51405 -0
- package/dist/index-h43sj8at.js +23075 -0
- package/dist/index-kmp9fmhb.js +25 -0
- package/dist/index-ngs0a2he.js +15 -0
- package/dist/index.js +14 -3
- package/dist/index.umd.min-fqefd9kn.js +7814 -0
- package/dist/job-commands-azgbrbdb.js +23 -0
- package/dist/job-output-t43hzj1f.js +36 -0
- package/dist/prompts-dtgt183n.js +260 -0
- package/dist/resume-service-mqfnnzb5.js +344 -0
- package/dist/seed-service-2d1f7zaz.js +2014 -0
- package/dist/seed-templates-sqqqratr.js +14 -0
- package/dist/service-errors-jzbq3z7p.js +22 -0
- package/dist/solution-auth-zq6gyxsv.js +11 -0
- package/dist/solution-deployments-m44fyb88.js +33 -0
- package/dist/templates-85yrztpk.js +15 -0
- package/dist/tool-342sz3hm.js +439 -0
- package/dist/tool-38ad77wd.js +1472 -0
- package/dist/tool-4z1dy1rn.js +260 -0
- package/dist/tool-53w8skv5.js +262 -0
- package/dist/tool-67587985.js +554 -0
- package/dist/tool-87e2ps7f.js +13 -0
- package/dist/tool-cag2z2d6.js +30 -0
- package/dist/tool-e4qgwf9h.js +2281 -0
- package/dist/tool-gdtpsdn7.js +342 -0
- package/dist/tool-gvmshnq9.js +555 -0
- package/dist/tool-h4f967yd.js +73 -0
- package/dist/tool-hdxtgckw.js +249 -0
- package/dist/tool-jjxbj28g.js +17067 -0
- package/dist/tool-keqjsxdx.js +28 -0
- package/dist/tool-maw0g02p.js +24 -0
- package/dist/tool-mn1wkbhw.js +113 -0
- package/dist/tool-n35nrs32.js +4949 -0
- package/dist/tool-p589v2r5.js +114 -0
- package/dist/tool-pz9qm3dv.js +6723 -0
- package/dist/tool-r1ewa0tf.js +5645 -0
- package/dist/tool-r2epw08s.js +164 -0
- package/dist/tool-rr9fensp.js +12 -0
- package/dist/tool-s04z9t80.js +19 -0
- package/dist/tool-s9qbxa2g.js +638 -0
- package/dist/tool-tjhwq0ez.js +261 -0
- package/dist/tool-v15vxc4x.js +183 -0
- package/dist/tool-vf2mgth0.js +14286 -0
- package/dist/tool-vp7rjr2q.js +22083 -0
- package/dist/tool-xd2ejt3h.js +103 -0
- package/dist/tool-yx29vb63.js +672 -0
- package/dist/tool.js +12 -2
- package/dist/watch-job-wh6m7xzq.js +31 -0
- package/package.json +3 -3
- package/dist/tool-xymb3dsq.js +0 -45085
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VssConfigError,
|
|
3
|
+
createVssConfig,
|
|
4
|
+
validateServiceUrl
|
|
5
|
+
} from "./tool-xd2ejt3h.js";
|
|
6
|
+
import {
|
|
7
|
+
failure,
|
|
8
|
+
invalidOption
|
|
9
|
+
} from "./tool-h4f967yd.js";
|
|
10
|
+
import {
|
|
11
|
+
OutputFormatter,
|
|
12
|
+
RESULTS,
|
|
13
|
+
catchError,
|
|
14
|
+
processContext
|
|
15
|
+
} from "./tool-pz9qm3dv.js";
|
|
16
|
+
|
|
17
|
+
// src/services/blank-options.ts
|
|
18
|
+
var IDENTIFYING_FLAGS = {
|
|
19
|
+
packageName: "--package-name",
|
|
20
|
+
packageVersion: "--package-version",
|
|
21
|
+
vertical: "--vertical",
|
|
22
|
+
stage: "--stage",
|
|
23
|
+
folderKey: "--folder-key",
|
|
24
|
+
folderPath: "--folder-path",
|
|
25
|
+
deploymentName: "--deployment-name",
|
|
26
|
+
configFile: "--config-file",
|
|
27
|
+
resourceConfig: "--resource-config",
|
|
28
|
+
serviceUrl: "--service-url",
|
|
29
|
+
tenant: "--tenant",
|
|
30
|
+
dir: "--dir"
|
|
31
|
+
};
|
|
32
|
+
function rejectBlankOptions(options) {
|
|
33
|
+
const identifying = options;
|
|
34
|
+
const supplied = identifying;
|
|
35
|
+
for (const [key, flag] of Object.entries(IDENTIFYING_FLAGS)) {
|
|
36
|
+
const value = supplied[key];
|
|
37
|
+
if (typeof value === "string" && value.trim() === "") {
|
|
38
|
+
return failure("missing-option", `${flag} was given an empty value.`, `Pass a value to ${flag}, or leave it out — an empty one is not ` + "the same as not passing it, and would take the default.", {
|
|
39
|
+
result: RESULTS.ValidationError,
|
|
40
|
+
errorCode: "invalid_argument"
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// src/services/job-commands.ts
|
|
48
|
+
async function resolveConfigOrFail(options) {
|
|
49
|
+
const blank = rejectBlankOptions(options);
|
|
50
|
+
if (blank) {
|
|
51
|
+
emitFailure(blank);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const serviceUrl = readServiceUrl(options.serviceUrl, options.tenant);
|
|
55
|
+
if (!serviceUrl.ok) {
|
|
56
|
+
emitFailure(serviceUrl);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const [authError, config] = await catchError(createVssConfig({
|
|
60
|
+
tenant: options.tenant,
|
|
61
|
+
loginValidity: options.loginValidity,
|
|
62
|
+
serviceUrl: serviceUrl.value
|
|
63
|
+
}));
|
|
64
|
+
if (authError || !config) {
|
|
65
|
+
emitFailure(credentialsFailure(authError));
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
return config;
|
|
69
|
+
}
|
|
70
|
+
function readServiceUrl(raw, tenant) {
|
|
71
|
+
if (raw === undefined)
|
|
72
|
+
return { ok: true, value: undefined };
|
|
73
|
+
if (tenant !== undefined) {
|
|
74
|
+
return invalidOption("--tenant cannot be combined with --service-url: the service is sent the login's " + "tenant id, which --tenant does not change.", "Drop --tenant and switch tenant with 'uip login tenant set <tenant>', or drop " + "--service-url to go through the platform gateway.");
|
|
75
|
+
}
|
|
76
|
+
const [error, validated] = catchError(() => validateServiceUrl(raw));
|
|
77
|
+
if (error || !validated) {
|
|
78
|
+
return invalidOption(error?.message ?? `Invalid --service-url "${raw}".`, "Use 'local' or a localhost/127.0.0.1 URL for local service development, or an " + "https URL on a uipath.com host.");
|
|
79
|
+
}
|
|
80
|
+
return { ok: true, value: validated };
|
|
81
|
+
}
|
|
82
|
+
function credentialsFailure(error) {
|
|
83
|
+
if (error instanceof VssConfigError) {
|
|
84
|
+
return invalidOption(error.message, error.instructions);
|
|
85
|
+
}
|
|
86
|
+
return failure("service-error", error instanceof Error ? error.message : "Could not resolve UiPath credentials.", "Run 'uip login' first. In CI, set UIPATH_CLI_ENABLE_ENV_AUTH=true with UIPATH_CLI_AUTH_TOKEN.", {
|
|
87
|
+
result: RESULTS.AuthenticationError,
|
|
88
|
+
errorCode: "authentication_required"
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function exitIfCallerAborted(error) {
|
|
92
|
+
if (error !== undefined && processContext.pollSignal?.aborted === true) {
|
|
93
|
+
processContext.exit(130);
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
function emitFailure(failed, data) {
|
|
99
|
+
OutputFormatter.error({
|
|
100
|
+
Result: failed.result,
|
|
101
|
+
Code: failed.reason,
|
|
102
|
+
Message: failed.correlationId ? `${failed.message}
|
|
103
|
+
Correlation id: ${failed.correlationId}` : failed.message,
|
|
104
|
+
Instructions: failed.instructions,
|
|
105
|
+
...failed.errorCode ? { ErrorCode: failed.errorCode } : {},
|
|
106
|
+
...failed.retry ? { Retry: failed.retry } : {},
|
|
107
|
+
...data ? { Data: data } : {}
|
|
108
|
+
});
|
|
109
|
+
processContext.exit(failed.exitCode);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export { rejectBlankOptions, resolveConfigOrFail, readServiceUrl, credentialsFailure, exitIfCallerAborted, emitFailure };
|
|
113
|
+
|
|
114
|
+
//# debugId=4E6692189712D60A64756E2164756E21
|