@uipath/rules-tool 1.205.0-preview.277 → 1.206.0-preview.279
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-L7MABUC6-q2sr3grz.js +10 -0
- package/dist/DmnModelTypes-ATR7FVKZ-h8srwcxk.js +8 -0
- package/dist/KieDmnMarshaller-LGE63WDG-nfkpv8f4.js +8 -0
- package/dist/THIRD-PARTY-NOTICES.md +4 -4
- package/dist/business-rules-z2zw35qd.js +25 -0
- package/dist/{constants-cnn0jfw6.js → constants-1sdwfz26.js} +7 -15
- package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/first-party-service-hegqxm82.js +8 -0
- package/dist/hitPolicyResult-CGCR73CW-jz89f1aa.js +12 -0
- package/dist/index-4a4x1ygg.js +24 -0
- package/dist/{index-52h8rpew.js → index-egzwtc07.js} +2 -4
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-xaxgkfez.js +23 -0
- package/dist/{tool-tjcg2xje.js → index-y5yffb2s.js} +3525 -236
- package/dist/index-z4kt2kt6.js +8 -0
- package/dist/{index-bhjt1h5c.js → index-zeszs1ra.js} +23 -66
- package/dist/index.js +8 -9
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/rule-catalog-5qnmp0xp.js +71 -0
- package/dist/rules-command-error-30c8a3n9.js +13 -0
- package/dist/{rules-debug-service-830zfzcy.js → rules-debug-service-xc1cmwwh.js} +37 -38
- package/dist/{rules-init-service-qphmbh3k.js → rules-init-service-frjbgfcs.js} +12 -16
- package/dist/{rules-refresh-service-jn6my893.js → rules-refresh-service-18hrs394.js} +13 -14
- package/dist/{rules-validate-service-hfw8m3dm.js → rules-validate-service-s787ehrr.js} +10 -13
- package/dist/{tool-fk8rznma.js → tool-89e90qrm.js} +173 -223
- package/dist/{tool-fbxe48wd.js → tool-8cnhz30a.js} +13991 -15184
- package/dist/{tool-ey5djkhz.js → tool-8sjyv0xg.js} +659 -14
- package/dist/{tool-h7gn1rar.js → tool-93hqhaj3.js} +402 -417
- package/dist/{tool-c2xarvad.js → tool-cf9810hm.js} +32 -34
- package/dist/{tool-wf2qkrye.js → tool-cs8nyk0r.js} +990 -514
- package/dist/{tool-txp5th7j.js → tool-e23cj2jx.js} +127 -42
- package/dist/{tool-1de529jm.js → tool-epsr41wx.js} +12 -3
- package/dist/{tool-gkbr01gc.js → tool-fkppxa9f.js} +14 -17
- package/dist/{tool-86f1xpxn.js → tool-m59a481n.js} +18 -20
- package/dist/tool-mst6a4dr.js +73 -0
- package/dist/{tool-t4k013ex.js → tool-njnhj05q.js} +8 -8
- package/dist/tool-p7hqn93n.js +455 -0
- package/dist/{tool-z1ay3csx.js → tool-sbtf80ft.js} +66 -24
- package/dist/{tool-yq5jph4h.js → tool-vqm4apm6.js} +207 -216
- package/dist/tool.js +7 -8
- package/package.json +2 -2
- package/dist/DmnFactory-L7MABUC6-98k17dkr.js +0 -46
- package/dist/DmnModelTypes-ATR7FVKZ-jp35cecy.js +0 -18
- package/dist/KieDmnMarshaller-LGE63WDG-3vemswef.js +0 -20
- package/dist/business-rules-pm96sefm.js +0 -26
- package/dist/first-party-service-sd8yaf73.js +0 -27
- package/dist/hitPolicyResult-CGCR73CW-9bmc4nsr.js +0 -36
- package/dist/index-cpm94vee.js +0 -132
- package/dist/index-dqa169gp.js +0 -25
- package/dist/index-x9msn1dj.js +0 -85
- package/dist/index-ybrgtfsg.js +0 -3326
- package/dist/rule-catalog-10fhgevc.js +0 -74
- package/dist/rules-command-error-k6kxwfn7.js +0 -14
- package/dist/tool-1pccj6q3.js +0 -1116
- package/dist/tool-53w8skv5.js +0 -262
- package/dist/tool-7haj67tr.js +0 -19
- package/dist/tool-fbmxx07c.js +0 -73
- package/dist/tool-gdtpsdn7.js +0 -342
- package/dist/tool-jd313s2x.js +0 -10
- package/dist/tool-qgqscsjc.js +0 -46
- /package/dist/{tool-cfrcyxgm.js → tool-2nmqvfmt.js} +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createResourceBuilderServices,
|
|
3
|
-
exportResourceDefinitionAsync,
|
|
4
|
-
findCatalogEntityAsync,
|
|
5
|
-
getRemoteResourceClients,
|
|
6
|
-
getSolutionAuthContext,
|
|
7
|
-
readSpecEntryPoints,
|
|
8
|
-
toResourceReference
|
|
9
|
-
} from "./tool-fbxe48wd.js";
|
|
10
|
-
import"./tool-gdtpsdn7.js";
|
|
11
|
-
import"./tool-53w8skv5.js";
|
|
12
|
-
import"./tool-1pccj6q3.js";
|
|
13
|
-
import {
|
|
14
|
-
createRulesApi,
|
|
15
|
-
findRuleByName
|
|
16
|
-
} from "./tool-fbmxx07c.js";
|
|
17
|
-
import"./tool-txp5th7j.js";
|
|
18
|
-
import {
|
|
19
|
-
RulesCommandError
|
|
20
|
-
} from "./tool-t4k013ex.js";
|
|
21
|
-
import"./tool-wf2qkrye.js";
|
|
22
|
-
import"./tool-1de529jm.js";
|
|
23
|
-
|
|
24
|
-
// src/services/rule-catalog.ts
|
|
25
|
-
var BUSINESS_RULE_ENTITY_TYPE = "BusinessRule";
|
|
26
|
-
async function describeRuleAsync(name, folder) {
|
|
27
|
-
await getSolutionAuthContext({});
|
|
28
|
-
const { catalog, importer } = getRemoteResourceClients(await createResourceBuilderServices());
|
|
29
|
-
const entity = await findCatalogEntityAsync(catalog, { name, entityTypes: [BUSINESS_RULE_ENTITY_TYPE] }, (e) => e.entityName?.toLowerCase() === name.toLowerCase() && e.folderKey?.toLowerCase() === folder.key.toLowerCase());
|
|
30
|
-
if (!entity?.entityKey) {
|
|
31
|
-
await findRuleByName(await createRulesApi(undefined, folder), name, folder);
|
|
32
|
-
throw new RulesCommandError(`Business rule '${name}' is not in the resource catalog for folder '${folder.path}' yet.`, "not_found", "The rule exists in Orchestrator but the resource catalog does not list it yet, which is normal right after a deploy. Run the command again shortly.", "RetryAfter60Seconds");
|
|
33
|
-
}
|
|
34
|
-
const definition = await exportResourceDefinitionAsync(importer, toResourceReference(entity));
|
|
35
|
-
return readEntryPoints(definition?.spec, name);
|
|
36
|
-
}
|
|
37
|
-
async function listRulesAcrossFoldersAsync(limit, offset) {
|
|
38
|
-
await getSolutionAuthContext({});
|
|
39
|
-
const { catalog } = getRemoteResourceClients(await createResourceBuilderServices());
|
|
40
|
-
const rows = [];
|
|
41
|
-
let pageCursor;
|
|
42
|
-
do {
|
|
43
|
-
const page = await catalog.searchFolderEntities({
|
|
44
|
-
entityTypes: [BUSINESS_RULE_ENTITY_TYPE],
|
|
45
|
-
pageSize: 100,
|
|
46
|
-
pageCursor
|
|
47
|
-
});
|
|
48
|
-
rows.push(...(page.items ?? []).filter((e) => e.entityKey && e.entityName));
|
|
49
|
-
pageCursor = page.nextPage ?? undefined;
|
|
50
|
-
} while (pageCursor && rows.length <= offset + limit);
|
|
51
|
-
return {
|
|
52
|
-
rows: rows.slice(offset, offset + limit).map((entity) => ({
|
|
53
|
-
Key: entity.entityKey ?? "",
|
|
54
|
-
Name: entity.entityName ?? "",
|
|
55
|
-
FolderPath: entity.fullyQualifiedName ?? "",
|
|
56
|
-
FolderKey: entity.folderKey ?? "",
|
|
57
|
-
Description: entity.entityDescription ?? ""
|
|
58
|
-
})),
|
|
59
|
-
hasMore: rows.length > offset + limit
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function readEntryPoints(spec, name) {
|
|
63
|
-
const entryPoints = readSpecEntryPoints(spec);
|
|
64
|
-
if (!entryPoints) {
|
|
65
|
-
throw new RulesCommandError(`Business rule '${name}' has no argument contract on its resource.`, "configuration_error", "Redeploy the rule from its solution with 'uip solution publish' and 'uip solution deploy run' so its package carries entry-points.json. If it still has no contract, contact your tenant administrator.");
|
|
66
|
-
}
|
|
67
|
-
return entryPoints;
|
|
68
|
-
}
|
|
69
|
-
export {
|
|
70
|
-
describeRuleAsync,
|
|
71
|
-
listRulesAcrossFoldersAsync
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
//# debugId=C8497903216657FE64756E2164756E21
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
RulesCommandError,
|
|
3
|
-
isJsonObject,
|
|
4
|
-
reportRulesFailure
|
|
5
|
-
} from "./tool-t4k013ex.js";
|
|
6
|
-
import"./tool-wf2qkrye.js";
|
|
7
|
-
import"./tool-1de529jm.js";
|
|
8
|
-
export {
|
|
9
|
-
RulesCommandError,
|
|
10
|
-
isJsonObject,
|
|
11
|
-
reportRulesFailure
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
//# debugId=B037763673F7A89264756E2164756E21
|