@uipath/rules-tool 1.206.0-preview.301 → 1.207.0-preview.305
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 +6 -6
- package/dist/{business-rules-zfzwr08c.js → business-rules-4b4d9pw6.js} +4 -4
- package/dist/{constants-1sdwfz26.js → constants-yt6m7vkn.js} +12 -12
- package/dist/{first-party-service-ej32b6j2.js → first-party-service-r63v6skt.js} +1 -1
- package/dist/hitPolicyResult-2NPUZW2E-rddfkhb2.js +14 -0
- package/dist/{index-y5yffb2s.js → index-189nh3zq.js} +642 -513
- package/dist/{index-88sps467.js → index-g955264n.js} +7 -5
- package/dist/index-jm0j1yn2.js +212 -0
- package/dist/{index-s9wmt93c.js → index-thn9n1n9.js} +1 -1
- package/dist/index-xvy3d6qz.js +8 -0
- package/dist/index.js +2 -2
- package/dist/{rule-catalog-780050xk.js → rule-catalog-0zntgf3s.js} +34 -10
- package/dist/rules-command-error-5jq3z0ny.js +15 -0
- package/dist/{rules-debug-service-97ye6e73.js → rules-debug-service-cfaqvnep.js} +16 -9
- package/dist/{rules-init-service-21zyjtff.js → rules-init-service-vhd0gzmd.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-s5v427j0.js} +1 -1
- package/dist/{tool-6m0p5jax.js → tool-0r1ykkjf.js} +12 -5
- package/dist/{tool-yfaf9b8c.js → tool-19fj7ema.js} +36 -9
- 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-dt23fa28.js → tool-a1wk2tqc.js} +28 -26
- 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-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.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,17 +3,17 @@ import {
|
|
|
3
3
|
catchError,
|
|
4
4
|
logger,
|
|
5
5
|
isGuid
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-5sgkktdb.js";
|
|
7
7
|
import {
|
|
8
8
|
getLoginStatusAsync,
|
|
9
9
|
getAuthContext,
|
|
10
10
|
UsersApi,
|
|
11
11
|
createApiClient
|
|
12
|
-
} from "./tool-
|
|
12
|
+
} from "./tool-fsmgxvqa.js";
|
|
13
13
|
import {
|
|
14
14
|
normalizeProjectType,
|
|
15
15
|
toPortableRelativePath
|
|
16
|
-
} from "./tool-
|
|
16
|
+
} from "./tool-kmzhfjw8.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM,
|
|
19
19
|
__commonJS
|
|
@@ -4593,6 +4593,8 @@ I18nManager.registerTranslations("zh-cn", zh_CN);
|
|
|
4593
4593
|
I18nManager.registerTranslations("zh-tw", zh_TW);
|
|
4594
4594
|
I18nManager.registerTranslations("zu", zu);
|
|
4595
4595
|
I18nManager.setLocale("en");
|
|
4596
|
+
// ../packager/packager-core/src/services/project-identity.ts
|
|
4597
|
+
var MAX_IDENTITY_FILE_BYTES = 1024 * 1024;
|
|
4596
4598
|
// ../packager/packager-core/src/services/tools-factory-repository.ts
|
|
4597
4599
|
class ToolsFactoryRepository {
|
|
4598
4600
|
projectFactoryMap = new Map;
|
|
@@ -6198,7 +6200,7 @@ class MultiFileSolutionDefinitionProvider {
|
|
|
6198
6200
|
const metadataReader = this.metadataReaderAccessor?.();
|
|
6199
6201
|
if (!metadataReader)
|
|
6200
6202
|
return void this.logger.warn("Solution %s has resources sharing a key, and no metadata reader is available to resolve them; they are left in place and this read will not agree with one that can resolve them", solution.key);
|
|
6201
|
-
const { SolutionDefinitionHelper } = await import("./solution-definition-helper-
|
|
6203
|
+
const { SolutionDefinitionHelper } = await import("./solution-definition-helper-s5v427j0.js");
|
|
6202
6204
|
await new SolutionDefinitionHelper(metadataReader, this.logger).replaceDuplicateKeysAsync(solution, cancellationToken);
|
|
6203
6205
|
}
|
|
6204
6206
|
getSolutionKey(context) {
|
|
@@ -6522,7 +6524,7 @@ var service_tokens_ServiceLifetime = /* @__PURE__ */ function(ServiceLifetime) {
|
|
|
6522
6524
|
async function createDefaultEmbeddedFileReaderAsync() {
|
|
6523
6525
|
const [{ EmbeddedFileReader }, { JsonSerializerFactory }] = await Promise.all([
|
|
6524
6526
|
import("./embedded-file-reader-pxpwcq3n.js"),
|
|
6525
|
-
import("./index-
|
|
6527
|
+
import("./index-thn9n1n9.js")
|
|
6526
6528
|
]);
|
|
6527
6529
|
return new EmbeddedFileReader(new JsonSerializerFactory);
|
|
6528
6530
|
}
|
|
@@ -14301,7 +14303,7 @@ class FirstPartyServiceClientProxy {
|
|
|
14301
14303
|
const tenantKey = await this.accessProvider.getTenantKeyAsync(cancellationToken);
|
|
14302
14304
|
if (!accountKey)
|
|
14303
14305
|
throw new BadRequestException(ErrorCodes.AuthenticationFailed, "Unable to obtain account key");
|
|
14304
|
-
const client = new (await import("./first-party-service-
|
|
14306
|
+
const client = new (await import("./first-party-service-r63v6skt.js")).FirstPartyServiceApi({
|
|
14305
14307
|
baseUrl: fullBaseUrl,
|
|
14306
14308
|
customFetch: fetchWithTimeout(LONG_RUNNING_TIMEOUT_MS),
|
|
14307
14309
|
baseApiParams: {
|
|
@@ -19905,6 +19907,8 @@ async function createProjectInSolutionBuilder(solutionDir, projectId, projectNam
|
|
|
19905
19907
|
await catchError(solutionBuilder.disposeAsync());
|
|
19906
19908
|
return createError ?? null;
|
|
19907
19909
|
}
|
|
19910
|
+
// ../solution-sdk/src/resources/services/local-resource-matcher.ts
|
|
19911
|
+
var ORPHAN_CHECKED_KINDS = new Set(["process", "app"]);
|
|
19908
19912
|
// ../solution-sdk/src/resources/services/project-artifacts-service.ts
|
|
19909
19913
|
async function addProjectArtifactsToSolutionAsync2(options) {
|
|
19910
19914
|
const error = await createProjectInSolutionBuilder(options.solutionDir, options.projectId, options.projectName, normalizeProjectType(options.projectType), options.projectSubType);
|
|
@@ -19955,9 +19959,30 @@ function toCatalogReference(reference) {
|
|
|
19955
19959
|
};
|
|
19956
19960
|
}
|
|
19957
19961
|
async function exportResourceDefinitionAsync2(importer, reference) {
|
|
19958
|
-
const payload = await importer.exportResourceAsync(reference);
|
|
19962
|
+
const [error, payload] = await catchError(importer.exportResourceAsync(reference));
|
|
19963
|
+
if (error) {
|
|
19964
|
+
throw withExportStatus(error);
|
|
19965
|
+
}
|
|
19959
19966
|
return payload.resourceDefinitions.find((d) => d.key === reference.key);
|
|
19960
19967
|
}
|
|
19968
|
+
|
|
19969
|
+
class ResourceExportError2 extends Error {
|
|
19970
|
+
status;
|
|
19971
|
+
constructor(message, status, cause) {
|
|
19972
|
+
super(message, { cause });
|
|
19973
|
+
this.status = status;
|
|
19974
|
+
this.name = "ResourceExportError";
|
|
19975
|
+
}
|
|
19976
|
+
}
|
|
19977
|
+
function withExportStatus(error) {
|
|
19978
|
+
if (!(error instanceof Error) || !("exceptionData" in error)) {
|
|
19979
|
+
return error;
|
|
19980
|
+
}
|
|
19981
|
+
const data = error.exceptionData;
|
|
19982
|
+
const text = typeof data === "object" && data !== null ? data.errorMessage : undefined;
|
|
19983
|
+
const match = typeof text === "string" ? /^HTTP (\d{3})\b/.exec(text) : null;
|
|
19984
|
+
return match ? new ResourceExportError2(error.message, Number(match[1]), error) : error;
|
|
19985
|
+
}
|
|
19961
19986
|
function readSpecProperty(spec, name) {
|
|
19962
19987
|
if (!spec) {
|
|
19963
19988
|
return;
|
|
@@ -20005,6 +20030,8 @@ async function getSolutionAuthContext(options) {
|
|
|
20005
20030
|
return {
|
|
20006
20031
|
accessToken: ctx.accessToken,
|
|
20007
20032
|
basePath,
|
|
20033
|
+
baseUrl: ctx.baseUrl,
|
|
20034
|
+
organizationName: ctx.organizationName,
|
|
20008
20035
|
organizationId,
|
|
20009
20036
|
tenantName,
|
|
20010
20037
|
identity: ctx.identity
|
|
@@ -20017,6 +20044,6 @@ var TYPE_IS_IDENTITY_REPLACE_OPTIONS = new Set([
|
|
|
20017
20044
|
"SameNameAndType"
|
|
20018
20045
|
]);
|
|
20019
20046
|
var BINDINGS_JSON_FALLBACK_TYPES = new Set(["agent", "function"]);
|
|
20020
|
-
export { getSolutionAuthContext, JsonSerializerNames2, JsonSerializer2, CAMEL_CASE_ENUM_PROPERTIES2, SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES2, RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES2, PASCAL_CASE_ENUM_PROPERTIES2, JsonSerializerFactory2, JsonSerializerProxy2, StreamSerializer2, SolutionDefinitionHelper2, FirstPartyServiceApi2, createResourceBuilderServices2, addProjectArtifactsToSolutionAsync2, getRemoteResourceClients2, findCatalogEntityAsync2, toResourceReference2, exportResourceDefinitionAsync2, readSpecEntryPoints2 };
|
|
20047
|
+
export { getSolutionAuthContext, JsonSerializerNames2, JsonSerializer2, CAMEL_CASE_ENUM_PROPERTIES2, SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES2, RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES2, PASCAL_CASE_ENUM_PROPERTIES2, JsonSerializerFactory2, JsonSerializerProxy2, StreamSerializer2, SolutionDefinitionHelper2, FirstPartyServiceApi2, createResourceBuilderServices2, addProjectArtifactsToSolutionAsync2, getRemoteResourceClients2, findCatalogEntityAsync2, toResourceReference2, exportResourceDefinitionAsync2, ResourceExportError2, readSpecEntryPoints2 };
|
|
20021
20048
|
|
|
20022
|
-
//# debugId=
|
|
20049
|
+
//# debugId=6946BFB476AE5DDF64756E2164756E21
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
createApiClient,
|
|
4
4
|
resolveFolder,
|
|
5
5
|
quoteODataStringLiteral
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-fsmgxvqa.js";
|
|
7
7
|
import {
|
|
8
8
|
RulesCommandError2
|
|
9
|
-
} from "./tool-
|
|
9
|
+
} from "./tool-c0peefw8.js";
|
|
10
10
|
|
|
11
11
|
// src/services/business-rules.ts
|
|
12
12
|
function assertOneFolderOption2(options) {
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import {
|
|
2
|
+
g,
|
|
3
|
+
N3
|
|
4
|
+
} from "./tool-e83bfqmj.js";
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/uuid/dist-node/rng.js
|
|
7
|
+
var rnds8 = new Uint8Array(16);
|
|
8
|
+
function rng() {
|
|
9
|
+
return crypto.getRandomValues(rnds8);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// ../../node_modules/uuid/dist-node/stringify.js
|
|
13
|
+
var byteToHex = [];
|
|
14
|
+
for (let i = 0;i < 256; ++i) {
|
|
15
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
16
|
+
}
|
|
17
|
+
function unsafeStringify(arr, offset = 0) {
|
|
18
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// ../../node_modules/uuid/dist-node/v4.js
|
|
22
|
+
function v4(options, buf, offset) {
|
|
23
|
+
if (!buf && !options && crypto.randomUUID) {
|
|
24
|
+
return crypto.randomUUID();
|
|
25
|
+
}
|
|
26
|
+
return _v4(options, buf, offset);
|
|
27
|
+
}
|
|
28
|
+
function _v4(options, buf, offset) {
|
|
29
|
+
options = options || {};
|
|
30
|
+
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
31
|
+
if (rnds.length < 16) {
|
|
32
|
+
throw new Error("Random bytes length must be >= 16");
|
|
33
|
+
}
|
|
34
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
35
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
36
|
+
if (buf) {
|
|
37
|
+
offset = offset || 0;
|
|
38
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
39
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
40
|
+
}
|
|
41
|
+
for (let i = 0;i < 16; ++i) {
|
|
42
|
+
buf[offset + i] = rnds[i];
|
|
43
|
+
}
|
|
44
|
+
return buf;
|
|
45
|
+
}
|
|
46
|
+
return unsafeStringify(rnds);
|
|
47
|
+
}
|
|
48
|
+
var v4_default = v4;
|
|
49
|
+
// ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-NLVDKBNC.js
|
|
50
|
+
var n = (r) => `${r}_${v4_default()}`;
|
|
51
|
+
|
|
52
|
+
// ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-KQQG3NTD.js
|
|
53
|
+
var d = "https://www.omg.org/spec/DMN/20230324/MODEL/";
|
|
54
|
+
function p(n) {
|
|
55
|
+
return n.__$$element === "decision";
|
|
56
|
+
}
|
|
57
|
+
function f(n) {
|
|
58
|
+
return n.__$$element === "inputData";
|
|
59
|
+
}
|
|
60
|
+
function E2(n) {
|
|
61
|
+
return (n.drgElement ?? []).filter(f);
|
|
62
|
+
}
|
|
63
|
+
function y(n) {
|
|
64
|
+
return (n.drgElement ?? []).filter(p);
|
|
65
|
+
}
|
|
66
|
+
function N2(n) {
|
|
67
|
+
return n["@_id"] ?? "";
|
|
68
|
+
}
|
|
69
|
+
function M2(n2, t) {
|
|
70
|
+
return n2["@_id"] || (n2["@_id"] = n(t)), n2["@_id"];
|
|
71
|
+
}
|
|
72
|
+
function I(n) {
|
|
73
|
+
if (n)
|
|
74
|
+
return n.startsWith("#") ? n.slice(1) : n.includes("#") || n.includes(":") || n.includes("/") ? undefined : n;
|
|
75
|
+
}
|
|
76
|
+
function _2(n, t, s) {
|
|
77
|
+
if (!n)
|
|
78
|
+
return;
|
|
79
|
+
if (!n.includes(":"))
|
|
80
|
+
return n.includes("#") || n.includes("/") ? undefined : n;
|
|
81
|
+
let [m, e, ...i] = n.split(":");
|
|
82
|
+
if (!m || !e || i.length > 0)
|
|
83
|
+
return;
|
|
84
|
+
let r = g(m, N3(s));
|
|
85
|
+
return r === d || r === t["@_namespace"] ? e : undefined;
|
|
86
|
+
}
|
|
87
|
+
function g2(n, t, s) {
|
|
88
|
+
let m = s.indexOf(":");
|
|
89
|
+
if (m >= 0)
|
|
90
|
+
return `${s.slice(0, m)}:${n}`;
|
|
91
|
+
let e = t["@_namespace"];
|
|
92
|
+
if (!e || t["@_xmlns"] === e)
|
|
93
|
+
return n;
|
|
94
|
+
let i = Object.entries(t).find(([D, c]) => D.startsWith("@_xmlns:") && c === e)?.[0];
|
|
95
|
+
if (i)
|
|
96
|
+
return `${i.slice(8)}:${n}`;
|
|
97
|
+
let r = "tns", o = 2;
|
|
98
|
+
for (;t[`@_xmlns:${r}`]; )
|
|
99
|
+
r = `tns${o++}`;
|
|
100
|
+
return t[`@_xmlns:${r}`] = e, `${r}:${n}`;
|
|
101
|
+
}
|
|
102
|
+
function O2(n, t, s) {
|
|
103
|
+
let m = n["dmndi:DMNDI"];
|
|
104
|
+
if (m)
|
|
105
|
+
for (let e of m["dmndi:DMNDiagram"] ?? [])
|
|
106
|
+
e["dmndi:DMNDiagramElement"] = e["dmndi:DMNDiagramElement"]?.flatMap((i) => {
|
|
107
|
+
let r = i["@_dmnElementRef"], o = _2(r, n, [i, e, m, n]);
|
|
108
|
+
if (!o)
|
|
109
|
+
return [i];
|
|
110
|
+
let D = s?.get(o);
|
|
111
|
+
return D ? [{ ...i, "@_dmnElementRef": g2(D, n, r ?? "") }] : t.has(o) ? [] : [i];
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export { v4_default, n, E2, y, N2, M2, I, _2, O2 };
|
|
116
|
+
|
|
117
|
+
//# debugId=143450A7B305E59364756E2164756E21
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem,
|
|
3
3
|
catchError
|
|
4
|
-
} from "./tool-
|
|
4
|
+
} from "./tool-5sgkktdb.js";
|
|
5
5
|
import {
|
|
6
6
|
RulesCommandError2,
|
|
7
7
|
isJsonObject2
|
|
8
|
-
} from "./tool-
|
|
8
|
+
} from "./tool-c0peefw8.js";
|
|
9
9
|
|
|
10
10
|
// ../packager/packager-tool-businessrules/src/entry-point-id.ts
|
|
11
11
|
var EntryPointIdSalt = "uipath:business-rules:entry-point";
|
|
@@ -58,7 +58,7 @@ async function readRuleProjectAsync(projectPath) {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
async function buildRuleEntryPointsAsync(dmnFiles, publishedEntryPoints, ruleName) {
|
|
61
|
-
const { buildBusinessRulePackagingFiles } = await import("./index-
|
|
61
|
+
const { buildBusinessRulePackagingFiles } = await import("./index-jm0j1yn2.js");
|
|
62
62
|
const packaging = await buildBusinessRulePackagingFiles(dmnFiles, publishedEntryPoints, true);
|
|
63
63
|
if (publishedEntryPoints != null || ruleName === undefined) {
|
|
64
64
|
return packaging;
|