@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,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAuthContext
|
|
3
|
+
} from "./tool-38ad77wd.js";
|
|
4
|
+
|
|
5
|
+
// ../solution-sdk/src/solution-auth.ts
|
|
6
|
+
async function getSolutionAuthContext(options) {
|
|
7
|
+
const ctx = await getAuthContext({
|
|
8
|
+
tenant: options.tenant,
|
|
9
|
+
ensureTokenValidityMinutes: options.loginValidity ?? 10,
|
|
10
|
+
envFilePath: options.envFilePath,
|
|
11
|
+
requireOrganizationId: true,
|
|
12
|
+
requireTenantName: true
|
|
13
|
+
});
|
|
14
|
+
const organizationId = ctx.organizationId;
|
|
15
|
+
const tenantName = ctx.tenantName;
|
|
16
|
+
const basePath = `${ctx.baseUrl}/${organizationId}/${tenantName}/automationsolutions_`;
|
|
17
|
+
return {
|
|
18
|
+
accessToken: ctx.accessToken,
|
|
19
|
+
basePath,
|
|
20
|
+
organizationId,
|
|
21
|
+
tenantName,
|
|
22
|
+
identity: ctx.identity
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { getSolutionAuthContext };
|
|
27
|
+
|
|
28
|
+
//# debugId=F76D3832B86881B164756E2164756E21
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
encodeSegment,
|
|
3
|
+
scopeQuery,
|
|
4
|
+
vssRequestBinary
|
|
5
|
+
} from "./tool-4z1dy1rn.js";
|
|
6
|
+
|
|
7
|
+
// src/api/seed-templates.ts
|
|
8
|
+
var MAX_SEED_TEMPLATE_DOWNLOAD_BYTES = 66 * 1024 * 1024;
|
|
9
|
+
async function downloadSeedTemplates(config, packageName, version, signal) {
|
|
10
|
+
const response = await vssRequestBinary(config, `packages/${encodeSegment("packageName", packageName)}` + `/versions/${encodeSegment("version", version)}/seed-templates`, {
|
|
11
|
+
query: scopeQuery(config),
|
|
12
|
+
maxBytes: MAX_SEED_TEMPLATE_DOWNLOAD_BYTES,
|
|
13
|
+
signal
|
|
14
|
+
});
|
|
15
|
+
const header = response.headers.get("x-seeding-entities") ?? "";
|
|
16
|
+
return {
|
|
17
|
+
zip: response.bytes,
|
|
18
|
+
entities: header.split(",").map((entity) => entity.trim()).filter((entity) => entity.length > 0)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { downloadSeedTemplates };
|
|
23
|
+
|
|
24
|
+
//# debugId=AC8A1D538A76119D64756E2164756E21
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import {
|
|
2
|
+
encodeSegment,
|
|
3
|
+
isSafeSegment,
|
|
4
|
+
scopeQuery,
|
|
5
|
+
vssRequestParsed
|
|
6
|
+
} from "./tool-4z1dy1rn.js";
|
|
7
|
+
import {
|
|
8
|
+
optionalText
|
|
9
|
+
} from "./tool-87e2ps7f.js";
|
|
10
|
+
import {
|
|
11
|
+
JOB_STATUSES
|
|
12
|
+
} from "./tool-s04z9t80.js";
|
|
13
|
+
import {
|
|
14
|
+
exports_external
|
|
15
|
+
} from "./tool-vf2mgth0.js";
|
|
16
|
+
|
|
17
|
+
// src/api/deploy-jobs.ts
|
|
18
|
+
var NOT_A_JOB = "without a job id and status; the CLI cannot tell which job it is or where it got to.";
|
|
19
|
+
var STEPS_NOT_A_LIST = "with a steps field that is not a list; the CLI cannot read what the job did.";
|
|
20
|
+
var optionalFlag = exports_external.boolean().optional().catch(undefined);
|
|
21
|
+
var DeployJobStepFieldsSchema = exports_external.looseObject({
|
|
22
|
+
key: exports_external.string(),
|
|
23
|
+
status: exports_external.string().catch("unknown"),
|
|
24
|
+
detail: optionalText,
|
|
25
|
+
startedAt: optionalText,
|
|
26
|
+
endedAt: optionalText
|
|
27
|
+
});
|
|
28
|
+
var DeployJobStepSchema = exports_external.unknown().transform((value, ctx) => {
|
|
29
|
+
const step = DeployJobStepFieldsSchema.safeParse(value);
|
|
30
|
+
if (step.success)
|
|
31
|
+
return step.data;
|
|
32
|
+
ctx.addIssue({
|
|
33
|
+
code: "custom",
|
|
34
|
+
message: `with a step the CLI cannot read (${JSON.stringify(value)}); ` + "every step has a key naming what it did."
|
|
35
|
+
});
|
|
36
|
+
return exports_external.NEVER;
|
|
37
|
+
});
|
|
38
|
+
var DeployJobSchema = exports_external.looseObject({
|
|
39
|
+
id: exports_external.string({ error: NOT_A_JOB }).min(1, { error: NOT_A_JOB }).superRefine((id, ctx) => {
|
|
40
|
+
if (id === "" || isSafeSegment("id", id))
|
|
41
|
+
return;
|
|
42
|
+
ctx.addIssue({
|
|
43
|
+
code: "custom",
|
|
44
|
+
message: `with a job id the CLI will not use (${JSON.stringify(id)}): ` + "a job id is letters, numbers, dots, underscores and hyphens."
|
|
45
|
+
});
|
|
46
|
+
}),
|
|
47
|
+
status: exports_external.enum(JOB_STATUSES, { error: NOT_A_JOB }),
|
|
48
|
+
steps: exports_external.array(DeployJobStepSchema, { error: STEPS_NOT_A_LIST }).default([]),
|
|
49
|
+
packageName: optionalText,
|
|
50
|
+
packageVersion: optionalText,
|
|
51
|
+
action: optionalText,
|
|
52
|
+
folderKey: optionalText,
|
|
53
|
+
folderName: optionalText,
|
|
54
|
+
installedFolderKey: optionalText,
|
|
55
|
+
deploymentName: optionalText,
|
|
56
|
+
hasResourceConfigurations: optionalFlag,
|
|
57
|
+
includeTenantResources: optionalFlag,
|
|
58
|
+
cancelRequested: optionalFlag,
|
|
59
|
+
actionRequired: exports_external.looseObject({ kind: optionalText, url: optionalText }).optional().catch(undefined),
|
|
60
|
+
error: exports_external.looseObject({ step: optionalText, message: optionalText }).optional().catch(undefined),
|
|
61
|
+
createdBy: optionalText,
|
|
62
|
+
createdAt: optionalText,
|
|
63
|
+
updatedAt: optionalText
|
|
64
|
+
}, { error: NOT_A_JOB });
|
|
65
|
+
async function getDeployJob(config, jobId, signal) {
|
|
66
|
+
const path = `deploy-jobs/${encodeSegment("id", jobId)}`;
|
|
67
|
+
return vssRequestParsed(config, path, DeployJobSchema, {
|
|
68
|
+
query: scopeQuery(config),
|
|
69
|
+
signal
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
async function submitDeployJob(config, request, signal) {
|
|
73
|
+
return vssRequestParsed(config, "deploy-jobs", DeployJobSchema, {
|
|
74
|
+
method: "POST",
|
|
75
|
+
body: request,
|
|
76
|
+
signal
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
var DeployJobLogLineSchema = exports_external.looseObject({
|
|
80
|
+
seq: exports_external.union([exports_external.number(), exports_external.string()]).optional().catch(undefined),
|
|
81
|
+
ts: optionalText,
|
|
82
|
+
level: optionalText,
|
|
83
|
+
message: exports_external.string()
|
|
84
|
+
});
|
|
85
|
+
var DeployJobLogsSchema = exports_external.looseObject({
|
|
86
|
+
items: exports_external.array(DeployJobLogLineSchema).nullish()
|
|
87
|
+
});
|
|
88
|
+
async function getDeployJobLogs(config, jobId, afterSeq, signal) {
|
|
89
|
+
const result = await vssRequestParsed(config, `deploy-jobs/${encodeSegment("id", jobId)}/logs`, DeployJobLogsSchema, { query: { ...scopeQuery(config), afterSeq }, signal });
|
|
90
|
+
return result.items ?? [];
|
|
91
|
+
}
|
|
92
|
+
async function resumeDeployJob(config, jobId, deploymentName, signal) {
|
|
93
|
+
const path = `deploy-jobs/${encodeSegment("id", jobId)}/resume`;
|
|
94
|
+
return vssRequestParsed(config, path, DeployJobSchema, {
|
|
95
|
+
method: "POST",
|
|
96
|
+
query: scopeQuery(config),
|
|
97
|
+
body: deploymentName ? { deploymentName } : {},
|
|
98
|
+
signal
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
async function cancelDeployJob(config, jobId, signal) {
|
|
102
|
+
const path = `deploy-jobs/${encodeSegment("id", jobId)}/cancel`;
|
|
103
|
+
return vssRequestParsed(config, path, DeployJobSchema, {
|
|
104
|
+
method: "POST",
|
|
105
|
+
query: scopeQuery(config),
|
|
106
|
+
body: {},
|
|
107
|
+
signal
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { getDeployJob, submitDeployJob, getDeployJobLogs, resumeDeployJob, cancelDeployJob };
|
|
112
|
+
|
|
113
|
+
//# debugId=88A8CD4769D4428364756E2164756E21
|