@uipath/rules-tool 1.206.0-preview.306 → 1.207.0-preview.307
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/DmnFactory-2Z66XPBB-dcse77vg.js +10 -0
- package/dist/DmnModelTypes-QISEK3CY-vth5tgqd.js +8 -0
- package/dist/KieDmnMarshaller-KLYKOHUQ-jae862c0.js +8 -0
- package/dist/THIRD-PARTY-NOTICES.md +8 -8
- package/dist/{business-rules-zfzwr08c.js → business-rules-4b4d9pw6.js} +4 -4
- package/dist/{constants-1sdwfz26.js → constants-yt6m7vkn.js} +12 -12
- package/dist/{embedded-file-reader-pxpwcq3n.js → embedded-file-reader-k94wt612.js} +16 -16
- package/dist/{first-party-service-ej32b6j2.js → first-party-service-7qzcrnd0.js} +1 -1
- package/dist/hitPolicyResult-2NPUZW2E-rddfkhb2.js +14 -0
- package/dist/{index-y5yffb2s.js → index-189nh3zq.js} +642 -513
- package/dist/{index-s9wmt93c.js → index-d3xnveex.js} +1 -1
- package/dist/index-jm0j1yn2.js +212 -0
- package/dist/{index-88sps467.js → index-pxmthnvf.js} +7 -5
- package/dist/index-xvy3d6qz.js +8 -0
- package/dist/index.js +2 -2
- package/dist/{rule-catalog-780050xk.js → rule-catalog-fsxqr6cq.js} +34 -10
- package/dist/rules-command-error-5jq3z0ny.js +15 -0
- package/dist/{rules-debug-service-egk69m8m.js → rules-debug-service-mf2w6w2h.js} +16 -9
- package/dist/{rules-init-service-c2ef42yt.js → rules-init-service-91s2epmb.js} +7 -7
- package/dist/{rules-refresh-service-x3gfnfqt.js → rules-refresh-service-r7fpbbfv.js} +3 -3
- package/dist/{rules-validate-service-e47hgykv.js → rules-validate-service-jrw7c1q9.js} +8 -10
- package/dist/{solution-definition-helper-trxp0zbj.js → solution-definition-helper-g2pt2ssz.js} +1 -1
- package/dist/{tool-sjp6fvze.js → tool-2cxm18e8.js} +2 -2
- package/dist/tool-2grmcreg.js +117 -0
- package/dist/{tool-b475et36.js → tool-46g75ed0.js} +3 -3
- package/dist/{tool-syavphgt.js → tool-5sgkktdb.js} +287 -139
- package/dist/{tool-yfaf9b8c.js → tool-827rm6jp.js} +2986 -729
- package/dist/{tool-jzdt6z77.js → tool-c0peefw8.js} +7 -6
- package/dist/tool-e83bfqmj.js +192 -0
- package/dist/{tool-3755q59j.js → tool-fsmgxvqa.js} +189 -15
- package/dist/tool-fv5xtqv5.js +736 -0
- package/dist/{tool-n1y01eqv.js → tool-j6wcpmmk.js} +13 -6
- package/dist/{tool-vqm4apm6.js → tool-jykscmfk.js} +206 -203
- package/dist/{tool-0tbve332.js → tool-kmzhfjw8.js} +64 -10
- package/dist/tool-q02dmnzm.js +74 -0
- package/dist/{tool-93hqhaj3.js → tool-q3jw2emw.js} +100 -96
- package/dist/{tool-xw4zy3sj.js → tool-tybyvxq5.js} +28 -26
- package/dist/tool.js +2 -2
- package/package.json +2 -2
- package/dist/DmnFactory-L7MABUC6-q2sr3grz.js +0 -10
- package/dist/DmnModelTypes-ATR7FVKZ-h8srwcxk.js +0 -8
- package/dist/KieDmnMarshaller-LGE63WDG-nfkpv8f4.js +0 -8
- package/dist/hitPolicyResult-CGCR73CW-jz89f1aa.js +0 -12
- package/dist/index-egzwtc07.js +0 -19
- package/dist/index-z4kt2kt6.js +0 -8
- package/dist/index-zeszs1ra.js +0 -184
- package/dist/rules-command-error-2x1vm0wt.js +0 -13
- package/dist/tool-2nmqvfmt.js +0 -26
- package/dist/tool-89e90qrm.js +0 -777
- package/dist/tool-m59a481n.js +0 -49
- package/dist/tool-sbtf80ft.js +0 -218
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
classifiedFailure,
|
|
4
4
|
OutputFormatter,
|
|
5
5
|
processContext
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-5sgkktdb.js";
|
|
7
7
|
|
|
8
8
|
// src/services/rules-command-error.ts
|
|
9
9
|
class RulesCommandError2 extends Error {
|
|
@@ -22,10 +22,11 @@ class RulesCommandError2 extends Error {
|
|
|
22
22
|
function isJsonObject2(value) {
|
|
23
23
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
var DEPLOYED_RULES_FORBIDDEN_MESSAGE2 = "Forbidden (403). Reading business rules needs the BusinessRules.View permission (an external application also needs the OR.BusinessRules or OR.BusinessRules.Read scope), on an environment with Business Rules turned on.";
|
|
26
|
+
async function reportRulesFailure2(message, error, options) {
|
|
26
27
|
if (error instanceof RulesCommandError2) {
|
|
27
28
|
OutputFormatter.error({
|
|
28
|
-
Result: error.errorCode === "configuration_error" ? RESULTS.ConfigError : RESULTS.Failure,
|
|
29
|
+
Result: error.errorCode === "configuration_error" ? RESULTS.ConfigError : error.errorCode === "permission_denied" ? RESULTS.AuthenticationError : RESULTS.Failure,
|
|
29
30
|
ErrorCode: error.errorCode,
|
|
30
31
|
Message: error.message,
|
|
31
32
|
Instructions: error.instructions,
|
|
@@ -33,11 +34,11 @@ async function reportRulesFailure2(message, error) {
|
|
|
33
34
|
...error.context ? { Context: error.context } : {}
|
|
34
35
|
});
|
|
35
36
|
} else {
|
|
36
|
-
OutputFormatter.error(await classifiedFailure(message, error));
|
|
37
|
+
OutputFormatter.error(await classifiedFailure(message, error, options));
|
|
37
38
|
}
|
|
38
39
|
processContext.exit(1);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
export { RulesCommandError2, isJsonObject2, reportRulesFailure2 };
|
|
42
|
+
export { RulesCommandError2, isJsonObject2, DEPLOYED_RULES_FORBIDDEN_MESSAGE2, reportRulesFailure2 };
|
|
42
43
|
|
|
43
|
-
//# debugId=
|
|
44
|
+
//# debugId=9EC408117B88DB8364756E2164756E21
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
// ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-ORXVXKSJ.js
|
|
2
|
+
var t = { First: "FIRST", Unique: "UNIQUE", Priority: "PRIORITY", Any: "ANY", Collect: "COLLECT", RuleOrder: "RULE ORDER", OutputOrder: "OUTPUT ORDER" };
|
|
3
|
+
var a = Object.values(t);
|
|
4
|
+
var i = { Sum: "SUM", Min: "MIN", Max: "MAX", Count: "COUNT" };
|
|
5
|
+
var s = Object.values(i);
|
|
6
|
+
var e = { String: "string", Number: "number", Boolean: "boolean", Any: "Any", Date: "date", Time: "time", DateAndTime: "date and time", DaysAndTimeDuration: "days and time duration", YearsAndMonthsDuration: "years and months duration" };
|
|
7
|
+
var r = Object.values(e);
|
|
8
|
+
var o = new Set([e.DaysAndTimeDuration, e.YearsAndMonthsDuration]);
|
|
9
|
+
var d = new Set([e.Date, e.Time, e.DateAndTime, ...o]);
|
|
10
|
+
var p = new Map([["dayTimeDuration", e.DaysAndTimeDuration], ["yearMonthDuration", e.YearsAndMonthsDuration]]);
|
|
11
|
+
|
|
12
|
+
// ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-YYMG77I5.js
|
|
13
|
+
var b3 = (e) => e.includes(":") ? e.split(":").pop() ?? e : e;
|
|
14
|
+
var O = new Set(["number", "integer", "long", "double", "decimal"]);
|
|
15
|
+
var M = (e) => O.has(b3(e));
|
|
16
|
+
var x = (e) => M(e) ? "number" : b3(e);
|
|
17
|
+
var z2 = (e) => !!e && x(e) === "Any";
|
|
18
|
+
var Q = (e) => {
|
|
19
|
+
let n = e.chain[e.chain.length - 1];
|
|
20
|
+
return !e.components && !e.recursive && !!n && !n.allowedValues && !e.baseTypeRef && !e.foreign;
|
|
21
|
+
};
|
|
22
|
+
var E = (e) => !!e?.baseTypeRef && e.baseTypeRef !== "Any" && r.includes(e.baseTypeRef) && !e.isCollection && !e.components && !e.foreign && !e.recursive;
|
|
23
|
+
var I = ["string", "number", "boolean"];
|
|
24
|
+
var q = (e) => E(e) && I.includes(e?.baseTypeRef ?? "") ? e?.baseTypeRef : undefined;
|
|
25
|
+
var A = (e) => e.chain.filter((n) => n.isCollection).length > 1;
|
|
26
|
+
var H2 = (e) => {
|
|
27
|
+
if (!(!e?.isCollection || e.components || e.foreign || e.recursive))
|
|
28
|
+
return !A(e) && I.includes(e.baseTypeRef ?? "") ? e.baseTypeRef : undefined;
|
|
29
|
+
};
|
|
30
|
+
var J = (e, n) => {
|
|
31
|
+
let t = e;
|
|
32
|
+
for (let [s, o] of n.entries()) {
|
|
33
|
+
if (!t)
|
|
34
|
+
return {};
|
|
35
|
+
if (t.isCollection)
|
|
36
|
+
return { crosses: "list", crossedAfter: s };
|
|
37
|
+
if (E(t))
|
|
38
|
+
return { crosses: "single", crossedAfter: s };
|
|
39
|
+
t = t.components?.find((a) => a.name === o)?.type;
|
|
40
|
+
}
|
|
41
|
+
return t ? { type: t } : {};
|
|
42
|
+
};
|
|
43
|
+
var u = (e) => {
|
|
44
|
+
let n = Object.entries(e ?? {}).flatMap(([t, s]) => t.startsWith("@_xmlns:") && typeof s == "string" ? [[t.slice(8), s]] : []);
|
|
45
|
+
return n.length ? Object.fromEntries(n) : undefined;
|
|
46
|
+
};
|
|
47
|
+
var D = (e, n, t = [], s) => {
|
|
48
|
+
if (Array.isArray(e)) {
|
|
49
|
+
for (let i of e)
|
|
50
|
+
D(i, n, t, s);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (!e || typeof e != "object" || s?.(e))
|
|
54
|
+
return;
|
|
55
|
+
let o = u(e), a = o ? [o, ...t] : t;
|
|
56
|
+
for (let [i, r2] of Object.entries(e))
|
|
57
|
+
if ((i === "@_typeRef" || i === "@_outputTypeRef") && typeof r2 == "string")
|
|
58
|
+
n(r2, a, (p2) => {
|
|
59
|
+
e[i] = p2;
|
|
60
|
+
});
|
|
61
|
+
else if (i === "typeRef" && typeof r2?.__$$text == "string") {
|
|
62
|
+
let p2 = r2, c = u(r2);
|
|
63
|
+
n(p2.__$$text, c ? [c, ...a] : a, (m) => {
|
|
64
|
+
p2.__$$text = m;
|
|
65
|
+
});
|
|
66
|
+
} else
|
|
67
|
+
i !== "dmndi:DMNDI" && D(r2, n, a, s);
|
|
68
|
+
};
|
|
69
|
+
var k = (e, n, t) => {
|
|
70
|
+
let s = { namespace: e["@_namespace"] }, o = new Set;
|
|
71
|
+
return D(n, (i, r2) => {
|
|
72
|
+
let { name: p2, space: c } = l(i, r2, s);
|
|
73
|
+
c === "local" && o.add(p2);
|
|
74
|
+
}, N3([e]), t), o.size ? [...o].sort((i, r2) => i.localeCompare(r2)) : undefined;
|
|
75
|
+
};
|
|
76
|
+
var L = (e) => {
|
|
77
|
+
let n = new Map, t = (o, a) => {
|
|
78
|
+
let i = P(o), r2 = i === undefined ? undefined : g(i, s) ?? g(i, a);
|
|
79
|
+
i !== undefined && r2 !== undefined && !n.has(i) && n.set(i, r2);
|
|
80
|
+
}, s = N3([e]);
|
|
81
|
+
return D([e.itemDefinition, e.drgElement], t, s), n.size ? Object.fromEntries(n) : undefined;
|
|
82
|
+
};
|
|
83
|
+
var X = (e) => {
|
|
84
|
+
let n = { namespace: e["@_namespace"] }, t = new Set((e.itemDefinition ?? []).map((o) => o["@_name"])), s = (o, a, i) => {
|
|
85
|
+
let { name: r2, space: p2 } = l(o, a, n), c = p.get(r2), m = p2 === "foreign" && R.exec(o)?.[1] === "feel" && g("feel", a) === undefined;
|
|
86
|
+
c && (p2 === "feel" || m || p2 === "local" && !t.has(r2) && !t.has(c)) && i(`${o.slice(0, -r2.length)}${c}`);
|
|
87
|
+
};
|
|
88
|
+
D([e.itemDefinition, e.drgElement], s, N3([e]));
|
|
89
|
+
};
|
|
90
|
+
var j2 = (e) => {
|
|
91
|
+
let n = new Set, t = (o) => {
|
|
92
|
+
let a = o;
|
|
93
|
+
for (let i = 2;n.has(a); i++)
|
|
94
|
+
a = `${o}#${i}`;
|
|
95
|
+
return n.add(a), a;
|
|
96
|
+
}, s = (o, a) => {
|
|
97
|
+
let i = o["@_id"] || t(a), r2 = o.itemComponent?.map((d) => s(d, `${i}/${d["@_name"]}`)), p2 = u(o), c = u(o.typeRef), m = o.functionItem, f = [m?.["@_outputTypeRef"], ...(m?.parameters ?? []).map((d) => d["@_typeRef"])].filter((d) => !!d);
|
|
98
|
+
return { id: i, name: o["@_name"] ?? "", isCollection: o["@_isCollection"] === true, typeRef: o.typeRef?.__$$text, allowedValues: o.allowedValues?.text?.__$$text, ...r2?.length ? { components: r2 } : {}, ...p2 ? { namespaces: p2 } : {}, ...c ? { typeRefNamespaces: c } : {}, ...f.length ? { functionTypeRefs: f } : {} };
|
|
99
|
+
};
|
|
100
|
+
return e.itemDefinition?.map((o) => s(o, `itemDefinition/${o["@_name"]}`));
|
|
101
|
+
};
|
|
102
|
+
var Z2 = (e) => ({ itemDefinitions: j2(e), namespace: e["@_namespace"], namespaces: L(e) });
|
|
103
|
+
var F = (e) => ("inputExpression" in e) ? e.inputExpression?.text?.__$$text?.trim() : undefined;
|
|
104
|
+
var ee = (e, n) => {
|
|
105
|
+
let t = e.drgElement ?? [], s = new Set(t.flatMap((a) => {
|
|
106
|
+
if (a.__$$element !== "inputData")
|
|
107
|
+
return [];
|
|
108
|
+
let i = (a.variable?.["@_name"]?.trim() || a["@_name"]?.trim()) ?? "";
|
|
109
|
+
return i ? [i] : [];
|
|
110
|
+
})), o = (a) => s.has(F(a) ?? "");
|
|
111
|
+
return k(e, t.filter((a) => a !== n && a.__$$element !== "inputData"), o);
|
|
112
|
+
};
|
|
113
|
+
var R = /^([\p{L}_][\p{L}\p{N}_.-]*):(.+)$/u;
|
|
114
|
+
var P = (e) => R.exec(e)?.[1];
|
|
115
|
+
var V = /^https?:\/\/www\.omg\.org\/spec\/(?:FEEL\/\d{8}|DMN\/\d{8}\/FEEL)\/?$/;
|
|
116
|
+
var g = (e, n) => n.find((t) => Object.prototype.hasOwnProperty.call(t, e))?.[e];
|
|
117
|
+
var N3 = (e) => e.flatMap((n) => {
|
|
118
|
+
let t = u(n);
|
|
119
|
+
return t ? [t] : [];
|
|
120
|
+
});
|
|
121
|
+
var W = new Map;
|
|
122
|
+
var C = new WeakMap;
|
|
123
|
+
var h = (e) => {
|
|
124
|
+
if (!e)
|
|
125
|
+
return W;
|
|
126
|
+
let n = C.get(e);
|
|
127
|
+
if (!n) {
|
|
128
|
+
let t = new Map;
|
|
129
|
+
for (let s of e)
|
|
130
|
+
t.has(s.name) || t.set(s.name, s);
|
|
131
|
+
n = t, C.set(e, n);
|
|
132
|
+
}
|
|
133
|
+
return n;
|
|
134
|
+
};
|
|
135
|
+
var l = (e, n, t) => {
|
|
136
|
+
let s = R.exec(e);
|
|
137
|
+
if (!s)
|
|
138
|
+
return { name: e, space: "local" };
|
|
139
|
+
let o = g(s[1], n);
|
|
140
|
+
return o === undefined ? { name: s[2], space: "foreign" } : o === t.namespace ? { name: s[2], space: "local" } : { name: s[2], space: V.test(o) ? "feel" : "foreign" };
|
|
141
|
+
};
|
|
142
|
+
var y = (e) => e.namespaces ? [e.namespaces] : [];
|
|
143
|
+
var T = (e, n) => {
|
|
144
|
+
let t = e.namespaces ? [e.namespaces, ...n] : n;
|
|
145
|
+
return { scope: t, typeRefScope: e.typeRefNamespaces ? [e.typeRefNamespaces, ...t] : t };
|
|
146
|
+
};
|
|
147
|
+
var ne2 = (e, n) => {
|
|
148
|
+
if (n.typeRef === undefined)
|
|
149
|
+
return;
|
|
150
|
+
let { name: t, space: s } = l(n.typeRef, T(n, y(e)).typeRefScope, e);
|
|
151
|
+
return s === "local" ? h(e.itemDefinitions).get(t) : undefined;
|
|
152
|
+
};
|
|
153
|
+
var $ = (e, n, t, s = [], o = t) => {
|
|
154
|
+
let a = h(e.itemDefinitions);
|
|
155
|
+
for (;; ) {
|
|
156
|
+
let i = s.some((f) => f.isCollection);
|
|
157
|
+
if (n === undefined || s[s.length - 1]?.components?.length)
|
|
158
|
+
return { chain: s, scope: o, isCollection: i };
|
|
159
|
+
let { name: r2, space: p2 } = l(n, t, e);
|
|
160
|
+
if (p2 === "foreign")
|
|
161
|
+
return { chain: s, scope: o, isCollection: i, foreign: true };
|
|
162
|
+
let c = p2 === "local" ? a.get(r2) : undefined, m = c ? s.indexOf(c) : -1;
|
|
163
|
+
if (m >= 0 && s.slice(m).some((f) => f.isCollection))
|
|
164
|
+
return { chain: s, scope: o, isCollection: i, recursive: true };
|
|
165
|
+
if (!c || m >= 0)
|
|
166
|
+
return { chain: s, scope: o, isCollection: i, baseTypeRef: x(r2) };
|
|
167
|
+
s.push(c), { scope: o, typeRefScope: t } = T(c, y(e)), n = c.typeRef;
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
var U = (e, n, t) => {
|
|
171
|
+
let { scope: s, typeRefScope: o } = T(e, n);
|
|
172
|
+
return $(t, e.typeRef, o, [e], s);
|
|
173
|
+
};
|
|
174
|
+
var v = ({ scope: e, ...n }, t, s) => {
|
|
175
|
+
let o = n.chain[n.chain.length - 1];
|
|
176
|
+
if (!o?.components?.length)
|
|
177
|
+
return n;
|
|
178
|
+
if (s.has(o))
|
|
179
|
+
return { ...n, recursive: true };
|
|
180
|
+
let a = new Set(s).add(o), i = o.components.map((r2) => ({ id: r2.id, name: r2.name, type: v(U(r2, e, t), t, a) }));
|
|
181
|
+
return { ...n, components: i };
|
|
182
|
+
};
|
|
183
|
+
var w = (e, n, t) => $(e, n, [...t, ...y(e)]);
|
|
184
|
+
var se = (e, n, t = []) => v(w(e, n, t), e, new Set);
|
|
185
|
+
var oe = (e, n, t = []) => {
|
|
186
|
+
let { scope: s, ...o } = w(e, n, t);
|
|
187
|
+
return o;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export { t, a, i, s, e, r, o, d, b3, x, z2, Q, q, H2, J, u, X, j2, Z2, F, ee, g, N3, ne2, se, oe };
|
|
191
|
+
|
|
192
|
+
//# debugId=77C4A85339B2E1EC64756E2164756E21
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getSdkUserAgentToken,
|
|
7
7
|
addSdkUserAgentHeader,
|
|
8
8
|
installSdkUserAgentHeader
|
|
9
|
-
} from "./tool-
|
|
9
|
+
} from "./tool-5sgkktdb.js";
|
|
10
10
|
import {
|
|
11
11
|
__require
|
|
12
12
|
} from "./tool-epsr41wx.js";
|
|
@@ -42,6 +42,8 @@ function settlePromiseLike(thenable) {
|
|
|
42
42
|
// ../auth/src/constants.ts
|
|
43
43
|
var UIPATH_HOME_DIR = ".uipath";
|
|
44
44
|
var AUTH_FILENAME = ".auth";
|
|
45
|
+
var AUTH_FILE_MODE = 384;
|
|
46
|
+
var AUTH_DIR_MODE = 448;
|
|
45
47
|
var DEFAULT_BASE_URL = "https://cloud.uipath.com";
|
|
46
48
|
var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
|
|
47
49
|
|
|
@@ -865,6 +867,38 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
865
867
|
}
|
|
866
868
|
return parseEnvContent(content);
|
|
867
869
|
};
|
|
870
|
+
var findAuthHomeDir = (fs, dir) => {
|
|
871
|
+
let current = dir;
|
|
872
|
+
for (;; ) {
|
|
873
|
+
if (fs.path.basename(current) === UIPATH_HOME_DIR)
|
|
874
|
+
return current;
|
|
875
|
+
const parent = fs.path.dirname(current);
|
|
876
|
+
if (parent === current)
|
|
877
|
+
return;
|
|
878
|
+
current = parent;
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
var TEMP_FILE_ATTEMPTS = 5;
|
|
882
|
+
var isFileExists = (error) => error instanceof Error && error.code === "EEXIST";
|
|
883
|
+
var writeTempFile = async (fs, targetPath, content) => {
|
|
884
|
+
for (let attempt = 1;; attempt++) {
|
|
885
|
+
const tempPath = `${targetPath}.${crypto.randomUUID()}.tmp`;
|
|
886
|
+
try {
|
|
887
|
+
await fs.writeFile(tempPath, content, {
|
|
888
|
+
mode: AUTH_FILE_MODE,
|
|
889
|
+
exclusive: true
|
|
890
|
+
});
|
|
891
|
+
return tempPath;
|
|
892
|
+
} catch (error) {
|
|
893
|
+
if (!isFileExists(error)) {
|
|
894
|
+
await fs.rm(tempPath).catch(() => {});
|
|
895
|
+
throw error;
|
|
896
|
+
}
|
|
897
|
+
if (attempt === TEMP_FILE_ATTEMPTS)
|
|
898
|
+
throw error;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
};
|
|
868
902
|
var saveEnvFileAsync = async ({
|
|
869
903
|
envPath,
|
|
870
904
|
data,
|
|
@@ -892,10 +926,18 @@ var saveEnvFileAsync = async ({
|
|
|
892
926
|
`)}
|
|
893
927
|
`;
|
|
894
928
|
const dir = fs.path.dirname(absolutePath);
|
|
895
|
-
await fs.mkdir(dir);
|
|
896
|
-
const
|
|
897
|
-
|
|
898
|
-
|
|
929
|
+
await fs.mkdir(dir, { mode: AUTH_DIR_MODE });
|
|
930
|
+
const authHomeDir = findAuthHomeDir(fs, dir);
|
|
931
|
+
if (authHomeDir !== undefined) {
|
|
932
|
+
await fs.chmod?.(authHomeDir, AUTH_DIR_MODE);
|
|
933
|
+
}
|
|
934
|
+
const tempPath = await writeTempFile(fs, absolutePath, content);
|
|
935
|
+
try {
|
|
936
|
+
await fs.rename(tempPath, absolutePath);
|
|
937
|
+
} catch (error) {
|
|
938
|
+
await fs.rm(tempPath).catch(() => {});
|
|
939
|
+
throw error;
|
|
940
|
+
}
|
|
899
941
|
};
|
|
900
942
|
|
|
901
943
|
// ../auth/src/loginStatus.ts
|
|
@@ -2332,6 +2374,37 @@ function MachineFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2332
2374
|
updateInfo: json["UpdateInfo"] == null ? undefined : UpdateInfoDtoFromJSON(json["UpdateInfo"])
|
|
2333
2375
|
};
|
|
2334
2376
|
}
|
|
2377
|
+
// ../orchestrator-sdk/generated/src/models/MachineRuntimeDto.ts
|
|
2378
|
+
var MachineRuntimeDtoTypeEnum = {
|
|
2379
|
+
NonProduction: "NonProduction",
|
|
2380
|
+
Attended: "Attended",
|
|
2381
|
+
Unattended: "Unattended",
|
|
2382
|
+
Development: "Development",
|
|
2383
|
+
Studio: "Studio",
|
|
2384
|
+
RpaDeveloper: "RpaDeveloper",
|
|
2385
|
+
StudioX: "StudioX",
|
|
2386
|
+
CitizenDeveloper: "CitizenDeveloper",
|
|
2387
|
+
Headless: "Headless",
|
|
2388
|
+
StudioPro: "StudioPro",
|
|
2389
|
+
RpaDeveloperPro: "RpaDeveloperPro",
|
|
2390
|
+
TestAutomation: "TestAutomation",
|
|
2391
|
+
AutomationCloud: "AutomationCloud",
|
|
2392
|
+
Serverless: "Serverless",
|
|
2393
|
+
AutomationKit: "AutomationKit",
|
|
2394
|
+
ServerlessTestAutomation: "ServerlessTestAutomation",
|
|
2395
|
+
AutomationCloudTestAutomation: "AutomationCloudTestAutomation",
|
|
2396
|
+
AttendedStudioWeb: "AttendedStudioWeb",
|
|
2397
|
+
Hosting: "Hosting",
|
|
2398
|
+
AssistantWeb: "AssistantWeb",
|
|
2399
|
+
ProcessOrchestration: "ProcessOrchestration",
|
|
2400
|
+
AgentService: "AgentService",
|
|
2401
|
+
AppTest: "AppTest",
|
|
2402
|
+
PerformanceTest: "PerformanceTest",
|
|
2403
|
+
BusinessRule: "BusinessRule",
|
|
2404
|
+
CaseManagement: "CaseManagement",
|
|
2405
|
+
Flow: "Flow",
|
|
2406
|
+
Local: "Local"
|
|
2407
|
+
};
|
|
2335
2408
|
// ../orchestrator-sdk/generated/src/models/UserDto.ts
|
|
2336
2409
|
function UserDtoFromJSON(json) {
|
|
2337
2410
|
return UserDtoFromJSONTyped(json, false);
|
|
@@ -2573,6 +2646,7 @@ function UserEntityDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2573
2646
|
return {
|
|
2574
2647
|
fullName: json["FullName"] == null ? undefined : json["FullName"],
|
|
2575
2648
|
authenticationSource: json["AuthenticationSource"] == null ? undefined : json["AuthenticationSource"],
|
|
2649
|
+
emailAddress: json["EmailAddress"] == null ? undefined : json["EmailAddress"],
|
|
2576
2650
|
key: json["Key"] == null ? undefined : json["Key"],
|
|
2577
2651
|
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
2578
2652
|
isInherited: json["IsInherited"] == null ? undefined : json["IsInherited"],
|
|
@@ -2868,6 +2942,50 @@ class PersonalWorkspacesApi extends BaseAPI {
|
|
|
2868
2942
|
const response = await this.personalWorkspacesGetPersonalWorkspaceRaw(requestParameters, initOverrides);
|
|
2869
2943
|
return await response.value();
|
|
2870
2944
|
}
|
|
2945
|
+
async personalWorkspacesStartExploringByIdRaw(requestParameters, initOverrides) {
|
|
2946
|
+
if (requestParameters["key"] == null) {
|
|
2947
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling personalWorkspacesStartExploringById().');
|
|
2948
|
+
}
|
|
2949
|
+
const queryParameters = {};
|
|
2950
|
+
const headerParameters = {};
|
|
2951
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2952
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2953
|
+
}
|
|
2954
|
+
let urlPath = `/odata/PersonalWorkspaces({key})/UiPath.Server.Configuration.OData.StartExploring`;
|
|
2955
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2956
|
+
const response = await this.request({
|
|
2957
|
+
path: urlPath,
|
|
2958
|
+
method: "POST",
|
|
2959
|
+
headers: headerParameters,
|
|
2960
|
+
query: queryParameters
|
|
2961
|
+
}, initOverrides);
|
|
2962
|
+
return new VoidApiResponse(response);
|
|
2963
|
+
}
|
|
2964
|
+
async personalWorkspacesStartExploringById(requestParameters, initOverrides) {
|
|
2965
|
+
await this.personalWorkspacesStartExploringByIdRaw(requestParameters, initOverrides);
|
|
2966
|
+
}
|
|
2967
|
+
async personalWorkspacesStopExploringByIdRaw(requestParameters, initOverrides) {
|
|
2968
|
+
if (requestParameters["key"] == null) {
|
|
2969
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling personalWorkspacesStopExploringById().');
|
|
2970
|
+
}
|
|
2971
|
+
const queryParameters = {};
|
|
2972
|
+
const headerParameters = {};
|
|
2973
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2974
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2975
|
+
}
|
|
2976
|
+
let urlPath = `/odata/PersonalWorkspaces({key})/UiPath.Server.Configuration.OData.StopExploring`;
|
|
2977
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2978
|
+
const response = await this.request({
|
|
2979
|
+
path: urlPath,
|
|
2980
|
+
method: "POST",
|
|
2981
|
+
headers: headerParameters,
|
|
2982
|
+
query: queryParameters
|
|
2983
|
+
}, initOverrides);
|
|
2984
|
+
return new VoidApiResponse(response);
|
|
2985
|
+
}
|
|
2986
|
+
async personalWorkspacesStopExploringById(requestParameters, initOverrides) {
|
|
2987
|
+
await this.personalWorkspacesStopExploringByIdRaw(requestParameters, initOverrides);
|
|
2988
|
+
}
|
|
2871
2989
|
}
|
|
2872
2990
|
|
|
2873
2991
|
// ../common/src/session-kind.ts
|
|
@@ -2904,7 +3022,7 @@ var package_default = {
|
|
|
2904
3022
|
name: "@uipath/orchestrator-sdk",
|
|
2905
3023
|
author: "UiPath",
|
|
2906
3024
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
2907
|
-
version: "1.
|
|
3025
|
+
version: "1.207.0",
|
|
2908
3026
|
repository: {
|
|
2909
3027
|
type: "git",
|
|
2910
3028
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -3144,6 +3262,9 @@ class FoldersApi extends BaseAPI {
|
|
|
3144
3262
|
if (requestParameters["searchText"] != null) {
|
|
3145
3263
|
queryParameters["searchText"] = requestParameters["searchText"];
|
|
3146
3264
|
}
|
|
3265
|
+
if (requestParameters["includeTenantRoles"] != null) {
|
|
3266
|
+
queryParameters["includeTenantRoles"] = requestParameters["includeTenantRoles"];
|
|
3267
|
+
}
|
|
3147
3268
|
if (requestParameters["$select"] != null) {
|
|
3148
3269
|
queryParameters["$select"] = requestParameters["$select"];
|
|
3149
3270
|
}
|
|
@@ -3502,27 +3623,40 @@ class FoldersApi extends BaseAPI {
|
|
|
3502
3623
|
}
|
|
3503
3624
|
|
|
3504
3625
|
// ../orchestrator-sdk/src/folder-resolver.ts
|
|
3626
|
+
function folderNotFound(input) {
|
|
3627
|
+
return Object.assign(new Error(`Folder not found: '${input}'.`), {
|
|
3628
|
+
errorCode: "not_found",
|
|
3629
|
+
retry: "RetryWillNotFix"
|
|
3630
|
+
});
|
|
3631
|
+
}
|
|
3505
3632
|
var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
3506
3633
|
async function resolveFolder(input, options) {
|
|
3507
3634
|
if (!input?.folderPath && !input?.folderKey) {
|
|
3508
3635
|
return;
|
|
3509
3636
|
}
|
|
3510
3637
|
const config = await createOrchestratorConfig(options);
|
|
3511
|
-
const
|
|
3638
|
+
const signal = options?.signal;
|
|
3639
|
+
const foldersApi = abortable(new FoldersApi(config), signal);
|
|
3512
3640
|
if (input.folderKey) {
|
|
3513
3641
|
if (!UUID_REGEX.test(input.folderKey)) {
|
|
3514
3642
|
throw new Error(`Invalid folder key: '${input.folderKey}'. Expected a UUID (e.g. '12345678-1234-1234-1234-123456789abc').`);
|
|
3515
3643
|
}
|
|
3516
3644
|
return resolveByKey(foldersApi, input.folderKey);
|
|
3517
3645
|
}
|
|
3518
|
-
return resolveByPath(config, foldersApi, input.folderPath);
|
|
3646
|
+
return resolveByPath(config, foldersApi, input.folderPath, signal);
|
|
3647
|
+
}
|
|
3648
|
+
function abortable(api, signal) {
|
|
3649
|
+
return signal ? api.withPreMiddleware(async ({ url, init }) => ({
|
|
3650
|
+
url,
|
|
3651
|
+
init: { ...init, signal }
|
|
3652
|
+
})) : api;
|
|
3519
3653
|
}
|
|
3520
3654
|
async function resolveByKey(foldersApi, folderKey) {
|
|
3521
3655
|
const folder = await foldersApi.foldersGetByKeyByIdentifier({
|
|
3522
3656
|
identifier: folderKey
|
|
3523
3657
|
});
|
|
3524
3658
|
if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
|
|
3525
|
-
throw
|
|
3659
|
+
throw folderNotFound(folderKey);
|
|
3526
3660
|
}
|
|
3527
3661
|
return {
|
|
3528
3662
|
id: folder.id,
|
|
@@ -3532,14 +3666,14 @@ async function resolveByKey(foldersApi, folderKey) {
|
|
|
3532
3666
|
feedType: folder.feedType
|
|
3533
3667
|
};
|
|
3534
3668
|
}
|
|
3535
|
-
async function resolveByPath(config, foldersApi, folderPath) {
|
|
3669
|
+
async function resolveByPath(config, foldersApi, folderPath, signal) {
|
|
3536
3670
|
const response = await foldersApi.foldersGet({
|
|
3537
3671
|
$filter: `FullyQualifiedName eq '${folderPath.replace(/'/g, "''")}'`,
|
|
3538
3672
|
$top: 1
|
|
3539
3673
|
});
|
|
3540
|
-
const folder = response.value?.[0] ?? await resolveInPersonalWorkspace(config, foldersApi, folderPath);
|
|
3674
|
+
const folder = response.value?.[0] ?? await resolveInPersonalWorkspace(config, foldersApi, folderPath, signal);
|
|
3541
3675
|
if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
|
|
3542
|
-
throw
|
|
3676
|
+
throw folderNotFound(folderPath);
|
|
3543
3677
|
}
|
|
3544
3678
|
return {
|
|
3545
3679
|
id: folder.id,
|
|
@@ -3551,8 +3685,8 @@ async function resolveByPath(config, foldersApi, folderPath) {
|
|
|
3551
3685
|
}
|
|
3552
3686
|
var CURRENT_USER_FOLDER_PAGE_SIZE = 1000;
|
|
3553
3687
|
var CURRENT_USER_FOLDER_PAGE_LIMIT = 50;
|
|
3554
|
-
async function resolveInPersonalWorkspace(config, foldersApi, folderPath) {
|
|
3555
|
-
const workspace = await lookupOrMiss("GetPersonalWorkspace", folderPath, () => new PersonalWorkspacesApi(config).personalWorkspacesGetPersonalWorkspace());
|
|
3688
|
+
async function resolveInPersonalWorkspace(config, foldersApi, folderPath, signal) {
|
|
3689
|
+
const workspace = await lookupOrMiss("GetPersonalWorkspace", folderPath, () => abortable(new PersonalWorkspacesApi(config), signal).personalWorkspacesGetPersonalWorkspace());
|
|
3556
3690
|
if (!workspace?.key || !workspace.name) {
|
|
3557
3691
|
return;
|
|
3558
3692
|
}
|
|
@@ -3618,6 +3752,23 @@ function quoteODataStringLiteral(value) {
|
|
|
3618
3752
|
}
|
|
3619
3753
|
return `'${value.replace(/'/g, "''")}'`;
|
|
3620
3754
|
}
|
|
3755
|
+
// ../orchestrator-sdk/generated/src/apis/MachinesApi.ts
|
|
3756
|
+
var MachinesGetRuntimesForFolderByFolderidProcessTypeEnum = {
|
|
3757
|
+
Undefined: "Undefined",
|
|
3758
|
+
Process: "Process",
|
|
3759
|
+
ProcessOrchestration: "ProcessOrchestration",
|
|
3760
|
+
WebApp: "WebApp",
|
|
3761
|
+
Agent: "Agent",
|
|
3762
|
+
TestAutomationProcess: "TestAutomationProcess",
|
|
3763
|
+
Api: "Api",
|
|
3764
|
+
McpServer: "MCPServer",
|
|
3765
|
+
BusinessRules: "BusinessRules",
|
|
3766
|
+
CaseManagement: "CaseManagement",
|
|
3767
|
+
Flow: "Flow",
|
|
3768
|
+
Function: "Function",
|
|
3769
|
+
System: "System",
|
|
3770
|
+
FlowAutomate: "FlowAutomate"
|
|
3771
|
+
};
|
|
3621
3772
|
// ../orchestrator-sdk/generated/src/apis/UsersApi.ts
|
|
3622
3773
|
class UsersApi extends BaseAPI {
|
|
3623
3774
|
async usersAssignRolesByIdRaw(requestParameters, initOverrides) {
|
|
@@ -3835,6 +3986,29 @@ class UsersApi extends BaseAPI {
|
|
|
3835
3986
|
await this.usersPutByIdRaw(requestParameters, initOverrides);
|
|
3836
3987
|
}
|
|
3837
3988
|
}
|
|
3989
|
+
// ../orchestrator-sdk/src/folder-runtimes.ts
|
|
3990
|
+
var FOLDER_RUNTIMES = {
|
|
3991
|
+
[MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.Process]: [
|
|
3992
|
+
MachineRuntimeDtoTypeEnum.Serverless,
|
|
3993
|
+
MachineRuntimeDtoTypeEnum.AutomationCloud,
|
|
3994
|
+
MachineRuntimeDtoTypeEnum.AutomationCloudTestAutomation,
|
|
3995
|
+
MachineRuntimeDtoTypeEnum.AppTest,
|
|
3996
|
+
MachineRuntimeDtoTypeEnum.PerformanceTest,
|
|
3997
|
+
MachineRuntimeDtoTypeEnum.Unattended,
|
|
3998
|
+
MachineRuntimeDtoTypeEnum.NonProduction,
|
|
3999
|
+
MachineRuntimeDtoTypeEnum.TestAutomation
|
|
4000
|
+
],
|
|
4001
|
+
[MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.TestAutomationProcess]: [
|
|
4002
|
+
MachineRuntimeDtoTypeEnum.Serverless,
|
|
4003
|
+
MachineRuntimeDtoTypeEnum.ServerlessTestAutomation,
|
|
4004
|
+
MachineRuntimeDtoTypeEnum.AutomationCloudTestAutomation,
|
|
4005
|
+
MachineRuntimeDtoTypeEnum.AutomationCloud,
|
|
4006
|
+
MachineRuntimeDtoTypeEnum.AppTest,
|
|
4007
|
+
MachineRuntimeDtoTypeEnum.TestAutomation,
|
|
4008
|
+
MachineRuntimeDtoTypeEnum.Unattended
|
|
4009
|
+
],
|
|
4010
|
+
[MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.McpServer]: [MachineRuntimeDtoTypeEnum.Serverless]
|
|
4011
|
+
};
|
|
3838
4012
|
// ../orchestrator-sdk/src/knowledge-bundles.ts
|
|
3839
4013
|
var KB_INLINE_LIMITS = {
|
|
3840
4014
|
maxObjectBytes: 16 * 1024 * 1024,
|
|
@@ -3843,4 +4017,4 @@ var KB_INLINE_LIMITS = {
|
|
|
3843
4017
|
};
|
|
3844
4018
|
export { getLoginStatusAsync, getAuthContext, BusinessRulesApi, PersonalWorkspacesApi, UsersApi, createApiClient, resolveFolder, quoteODataStringLiteral };
|
|
3845
4019
|
|
|
3846
|
-
//# debugId=
|
|
4020
|
+
//# debugId=057E89A52D2C174B64756E2164756E21
|