@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
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
parseLimit,
|
|
11
11
|
parseOffset,
|
|
12
12
|
parseBoundedInt
|
|
13
|
-
} from "./tool-
|
|
13
|
+
} from "./tool-5sgkktdb.js";
|
|
14
14
|
// package.json
|
|
15
15
|
var package_default = {
|
|
16
16
|
name: "@uipath/rules-tool",
|
|
17
17
|
author: "UiPath",
|
|
18
18
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
19
|
-
version: "1.
|
|
19
|
+
version: "1.207.0-preview.307",
|
|
20
20
|
description: "Create and manage UiPath Business Rules (DMN) projects.",
|
|
21
21
|
private: false,
|
|
22
22
|
repository: {
|
|
@@ -54,7 +54,7 @@ var package_default = {
|
|
|
54
54
|
"@types/node": "^25.5.2",
|
|
55
55
|
"@uipath/auth": "workspace:*",
|
|
56
56
|
"@uipath/common": "workspace:*",
|
|
57
|
-
"@uipath/dmn-editor-utils": "0.
|
|
57
|
+
"@uipath/dmn-editor-utils": "0.1246.8",
|
|
58
58
|
"@uipath/filesystem": "workspace:*",
|
|
59
59
|
"@uipath/orchestrator-sdk": "workspace:*",
|
|
60
60
|
"@uipath/packager-tool-businessrules": "workspace:*",
|
|
@@ -92,8 +92,8 @@ var RULES_DEBUG_EXAMPLES = [
|
|
|
92
92
|
];
|
|
93
93
|
var registerDebugCommand = (program) => {
|
|
94
94
|
program.command("debug").description("Upload the rules project's solution to Studio Web and evaluate it once through the rules engine. Returns the decision outputs and errors, and the trace id that shows which rules fired.").argument("<project-path>", "Path to the business rules project directory (must contain project.uiproj)").option("-i, --inputs <json>", "Input values as a JSON object or @file.json").option("--folder-path <path>", "Folder to evaluate in and record the run's trace under (default: your personal workspace)").option("--folder-key <key>", "Key (GUID) of the folder to evaluate in and record the run's trace under").option("--timeout <seconds>", "Maximum seconds to wait for the rules engine to evaluate (default: 120)", (value) => parseBoundedInt(value, "--timeout", { min: 1, max: 3600 })).option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", (value) => Number.parseInt(value, 10), 10).examples(RULES_DEBUG_EXAMPLES).trackedAction(processContext, async (projectPath, options) => {
|
|
95
|
-
const { reportRulesFailure } = await import("./rules-command-error-
|
|
96
|
-
const { debugRuleProjectAsync } = await import("./rules-debug-service-
|
|
95
|
+
const { reportRulesFailure } = await import("./rules-command-error-5jq3z0ny.js");
|
|
96
|
+
const { debugRuleProjectAsync } = await import("./rules-debug-service-mf2w6w2h.js");
|
|
97
97
|
const [error, result] = await catchError(debugRuleProjectAsync(projectPath, options));
|
|
98
98
|
if (error) {
|
|
99
99
|
await reportRulesFailure("Failed to debug business rules project", error);
|
|
@@ -189,15 +189,15 @@ var RULES_DESCRIBE_EXAMPLES = [
|
|
|
189
189
|
var registerDescribeCommand = (program) => {
|
|
190
190
|
const command = program.command("describe").description("(Preview) Get the entry points of a deployed business rule's active version, with their input and output argument schemas. Use them to map arguments when binding the rule. Same row shape as 'uip or packages entry-points'.").argument("<rule-name>", "Business rule name");
|
|
191
191
|
addUnsupportedTenantOption(addFolderOptions(command)).examples(RULES_DESCRIBE_EXAMPLES).trackedAction(processContext, async (name, options) => {
|
|
192
|
-
const rules = await import("./business-rules-
|
|
193
|
-
const { reportRulesFailure, RulesCommandError } = await import("./rules-command-error-
|
|
192
|
+
const rules = await import("./business-rules-4b4d9pw6.js");
|
|
193
|
+
const { reportRulesFailure, RulesCommandError } = await import("./rules-command-error-5jq3z0ny.js");
|
|
194
194
|
if (options.tenant !== undefined) {
|
|
195
195
|
await reportRulesFailure("Failed to describe business rule", new RulesCommandError("'uip rules describe' does not support --tenant: it reads the rule from the resource catalog of the tenant you are logged in to.", "invalid_argument", "Run 'uip login tenant set <tenant-name>' to switch tenants, then run the command again."));
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
const [error, entryPoints] = await catchError((async () => {
|
|
199
199
|
const folder = await rules.resolveRequiredFolder(options);
|
|
200
|
-
const { describeRuleAsync } = await import("./rule-catalog-
|
|
200
|
+
const { describeRuleAsync } = await import("./rule-catalog-fsxqr6cq.js");
|
|
201
201
|
return describeRuleAsync(name, folder);
|
|
202
202
|
})());
|
|
203
203
|
if (error) {
|
|
@@ -236,8 +236,8 @@ var RULES_GET_EXAMPLES = [
|
|
|
236
236
|
var registerGetCommand = (program) => {
|
|
237
237
|
const command = program.command("get").description("(Preview) Get a deployed business rule by name. Use 'rules versions' for its version history and 'rules describe' for its argument contract.").argument("<rule-name>", "Business rule name");
|
|
238
238
|
addTenantOption(addFolderOptions(command)).examples(RULES_GET_EXAMPLES).trackedAction(processContext, async (name, options) => {
|
|
239
|
-
const rules = await import("./business-rules-
|
|
240
|
-
const { reportRulesFailure } = await import("./rules-command-error-
|
|
239
|
+
const rules = await import("./business-rules-4b4d9pw6.js");
|
|
240
|
+
const { DEPLOYED_RULES_FORBIDDEN_MESSAGE, reportRulesFailure } = await import("./rules-command-error-5jq3z0ny.js");
|
|
241
241
|
const [error, found] = await catchError((async () => {
|
|
242
242
|
const folder = await rules.resolveRequiredFolder(options);
|
|
243
243
|
const api = await rules.createRulesApi(options.tenant, folder);
|
|
@@ -245,7 +245,7 @@ var registerGetCommand = (program) => {
|
|
|
245
245
|
return { rule, folder };
|
|
246
246
|
})());
|
|
247
247
|
if (error) {
|
|
248
|
-
await reportRulesFailure("Failed to get business rule", error);
|
|
248
|
+
await reportRulesFailure("Failed to get business rule", error, { forbiddenMessage: DEPLOYED_RULES_FORBIDDEN_MESSAGE });
|
|
249
249
|
return;
|
|
250
250
|
}
|
|
251
251
|
OutputFormatter.success({
|
|
@@ -290,7 +290,7 @@ Packing or uploading the solution will sync solution resources automatically.`
|
|
|
290
290
|
];
|
|
291
291
|
var registerInitCommand = (program) => {
|
|
292
292
|
program.command("init").description("Create a new business rules project seeded with one decision table. If run outside an existing solution, a parent '<name>Solution' is scaffolded automatically and the rules project is created inside it. If run inside an existing solution, the project is added to that solution.").argument("<name>", "Business rules project name").option("--force", "Force initialization even if target directory exists and is not empty").option("--skip-solution-registration", "Do not auto-register this project in the surrounding solution").examples(RULES_INIT_EXAMPLES).trackedAction(processContext, async (name, options) => {
|
|
293
|
-
const { rulesInitAsync } = await import("./rules-init-service-
|
|
293
|
+
const { rulesInitAsync } = await import("./rules-init-service-91s2epmb.js");
|
|
294
294
|
const [error, result] = await catchError(rulesInitAsync(name, {
|
|
295
295
|
force: options.force,
|
|
296
296
|
skipRegistration: options.skipSolutionRegistration === true
|
|
@@ -366,10 +366,12 @@ var RULES_LIST_EXAMPLES = [
|
|
|
366
366
|
var registerListCommand = (program) => {
|
|
367
367
|
const command = program.command("list").description("(Preview) List business rules deployed to Orchestrator in a folder, or across all accessible folders with --all-folders. Returns key, name, folder, description and, for one folder, current version. --all-folders returns one row per folder a rule is shared to.");
|
|
368
368
|
addTenantOption(addFolderOptions(command)).option("--all-folders", "List business rules across all accessible folders").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).examples(RULES_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
369
|
-
const { reportRulesFailure } = await import("./rules-command-error-
|
|
369
|
+
const { DEPLOYED_RULES_FORBIDDEN_MESSAGE, reportRulesFailure } = await import("./rules-command-error-5jq3z0ny.js");
|
|
370
370
|
const [error, result] = await catchError(listRules(options));
|
|
371
371
|
if (error) {
|
|
372
|
-
await reportRulesFailure("Failed to list business rules", error
|
|
372
|
+
await reportRulesFailure("Failed to list business rules", error, options.allFolders ? undefined : {
|
|
373
|
+
forbiddenMessage: DEPLOYED_RULES_FORBIDDEN_MESSAGE
|
|
374
|
+
});
|
|
373
375
|
return;
|
|
374
376
|
}
|
|
375
377
|
OutputFormatter.success({
|
|
@@ -386,8 +388,8 @@ var registerListCommand = (program) => {
|
|
|
386
388
|
});
|
|
387
389
|
};
|
|
388
390
|
async function listRules(options) {
|
|
389
|
-
const rules = await import("./business-rules-
|
|
390
|
-
const { RulesCommandError } = await import("./rules-command-error-
|
|
391
|
+
const rules = await import("./business-rules-4b4d9pw6.js");
|
|
392
|
+
const { RulesCommandError } = await import("./rules-command-error-5jq3z0ny.js");
|
|
391
393
|
const hasFolderSelector = options.folderPath !== undefined || options.folderKey !== undefined;
|
|
392
394
|
if (options.allFolders && hasFolderSelector) {
|
|
393
395
|
throw new RulesCommandError("Option --all-folders cannot be used with --folder-path or --folder-key.", "invalid_argument", "Use --all-folders by itself, or provide a single folder selector with --folder-path or --folder-key.");
|
|
@@ -410,11 +412,11 @@ async function listRules(options) {
|
|
|
410
412
|
};
|
|
411
413
|
}
|
|
412
414
|
async function listRulesAcrossFolders(options) {
|
|
413
|
-
const { RulesCommandError } = await import("./rules-command-error-
|
|
415
|
+
const { RulesCommandError } = await import("./rules-command-error-5jq3z0ny.js");
|
|
414
416
|
if (options.tenant !== undefined) {
|
|
415
417
|
throw new RulesCommandError("'uip rules list --all-folders' does not support --tenant: it lists rules from the resource catalog of the tenant you are logged in to.", "invalid_argument", "Drop --all-folders and pass --folder-path <path> or --folder-key <key> to list one folder in that tenant, or run 'uip login tenant set <tenant-name>' to switch tenants.");
|
|
416
418
|
}
|
|
417
|
-
const { listRulesAcrossFoldersAsync } = await import("./rule-catalog-
|
|
419
|
+
const { listRulesAcrossFoldersAsync } = await import("./rule-catalog-fsxqr6cq.js");
|
|
418
420
|
const result = await listRulesAcrossFoldersAsync(options.limit, options.offset);
|
|
419
421
|
if (!result) {
|
|
420
422
|
throw new RulesCommandError("Listing business rules across folders needs the Node CLI: the browser build cannot read the resource catalog.", "configuration_error", "Drop --all-folders and pass --folder-path <path> or --folder-key <key> to list one folder.");
|
|
@@ -441,8 +443,8 @@ var RULES_REFRESH_EXAMPLES = [
|
|
|
441
443
|
];
|
|
442
444
|
var registerRefreshCommand = (program) => {
|
|
443
445
|
program.command("refresh").description("Regenerate entry-points.json and bindings_v2.json from the rules project's .dmn, keeping each published entry point's uniqueId. Run it after editing a .dmn outside Studio Web, before 'uip solution pack'.").argument("<project-path>", "Path to the business rules project directory (must contain project.uiproj)").examples(RULES_REFRESH_EXAMPLES).trackedAction(processContext, async (projectPath) => {
|
|
444
|
-
const { reportRulesFailure } = await import("./rules-command-error-
|
|
445
|
-
const { refreshRuleProjectAsync } = await import("./rules-refresh-service-
|
|
446
|
+
const { reportRulesFailure } = await import("./rules-command-error-5jq3z0ny.js");
|
|
447
|
+
const { refreshRuleProjectAsync } = await import("./rules-refresh-service-r7fpbbfv.js");
|
|
446
448
|
const [error, result] = await catchError(refreshRuleProjectAsync(projectPath));
|
|
447
449
|
if (error) {
|
|
448
450
|
await reportRulesFailure("Failed to refresh business rules package files", error);
|
|
@@ -480,8 +482,8 @@ var RULES_VALIDATE_EXAMPLES = [
|
|
|
480
482
|
];
|
|
481
483
|
var registerValidateCommand = (program) => {
|
|
482
484
|
program.command("validate").description("Check a rules project for what Studio Web blocks publish and debug on, the designer's diagnostics for each .dmn, and for an entry-points.json out of step with the .dmn. Errors exit 1; warnings are reported only.").argument("<project-path>", "Path to the business rules project directory (must contain project.uiproj)").examples(RULES_VALIDATE_EXAMPLES).trackedAction(processContext, async (projectPath) => {
|
|
483
|
-
const { reportRulesFailure } = await import("./rules-command-error-
|
|
484
|
-
const { validateRuleProjectAsync } = await import("./rules-validate-service-
|
|
485
|
+
const { reportRulesFailure } = await import("./rules-command-error-5jq3z0ny.js");
|
|
486
|
+
const { validateRuleProjectAsync } = await import("./rules-validate-service-jrw7c1q9.js");
|
|
485
487
|
const [error, result] = await catchError(validateRuleProjectAsync(projectPath));
|
|
486
488
|
if (error) {
|
|
487
489
|
await reportRulesFailure("Failed to validate business rules project", error);
|
|
@@ -556,8 +558,8 @@ var RULES_VERSIONS_EXAMPLES = [
|
|
|
556
558
|
var registerVersionsCommand = (program) => {
|
|
557
559
|
const command = program.command("versions").description("(Preview) List the versions of a deployed business rule. The active version is the one consumers evaluate.").argument("<rule-name>", "Business rule name");
|
|
558
560
|
addTenantOption(addFolderOptions(command)).option("-l, --limit <number>", "Number of versions to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of versions to skip", parseOffset, 0).examples(RULES_VERSIONS_EXAMPLES).trackedAction(processContext, async (name, options) => {
|
|
559
|
-
const rules = await import("./business-rules-
|
|
560
|
-
const { reportRulesFailure } = await import("./rules-command-error-
|
|
561
|
+
const rules = await import("./business-rules-4b4d9pw6.js");
|
|
562
|
+
const { DEPLOYED_RULES_FORBIDDEN_MESSAGE, reportRulesFailure } = await import("./rules-command-error-5jq3z0ny.js");
|
|
561
563
|
const [error, page] = await catchError((async () => {
|
|
562
564
|
const folder = await rules.resolveRequiredFolder(options);
|
|
563
565
|
const api = await rules.createRulesApi(options.tenant, folder);
|
|
@@ -572,7 +574,7 @@ var registerVersionsCommand = (program) => {
|
|
|
572
574
|
});
|
|
573
575
|
})());
|
|
574
576
|
if (error) {
|
|
575
|
-
await reportRulesFailure("Failed to list business rule versions", error);
|
|
577
|
+
await reportRulesFailure("Failed to list business rule versions", error, { forbiddenMessage: DEPLOYED_RULES_FORBIDDEN_MESSAGE });
|
|
576
578
|
return;
|
|
577
579
|
}
|
|
578
580
|
const items = page.value ?? [];
|
|
@@ -609,4 +611,4 @@ var registerCommands2 = async (program) => {
|
|
|
609
611
|
|
|
610
612
|
export { metadata2, registerCommands2 };
|
|
611
613
|
|
|
612
|
-
//# debugId=
|
|
614
|
+
//# debugId=1AE87BFEA416B13964756E2164756E21
|
package/dist/tool.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/rules-tool",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.207.0-preview.307",
|
|
6
6
|
"description": "Create and manage UiPath Business Rules (DMN) projects.",
|
|
7
7
|
"private": false,
|
|
8
8
|
"repository": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "a625ed8ac421089170db3cb8b95c497f3c7b0d62"
|
|
31
31
|
}
|
package/dist/index-egzwtc07.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
m
|
|
3
|
-
} from "./tool-2nmqvfmt.js";
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-OET3STM5.js
|
|
6
|
-
var e = { add_input_column: "Add input column", add_output_column: "Add output column", add_rule: "Add rule", aggregation_count: "Count", aggregation_count_hint: "Counts the distinct values among the matches.", aggregation_label: "Aggregation", aggregation_list_output_hint: "Can't aggregate a list output.", aggregation_max: "Maximum", aggregation_max_hint: "Returns the largest matched output.", aggregation_min: "Minimum", aggregation_min_hint: "Returns the smallest matched output.", aggregation_none: "All", aggregation_none_hint: "Returns the matches as a list.", aggregation_numeric_only_hint: "Needs a number output.", aggregation_sum: "Sum", aggregation_sum_hint: "Adds the matched outputs together.", annotation_placeholder: "Name this rule…", apply_changes: "Apply changes", argument_dialog_cancel: "Cancel", argument_dialog_direction_in: "In", argument_dialog_direction_label: "Direction", argument_dialog_error_invalid: "Use a letter or underscore, then letters, numbers and underscores.", argument_dialog_error_taken: "A variable with this name already exists", argument_dialog_item_type_label: "Item type", argument_dialog_name_label: "Name", argument_dialog_save: "Save", argument_dialog_title: "Add input variable", argument_dialog_type_label: "Type", band_annotation: "Annotation", band_inputs: "Input", band_outputs: "Output", bottom_panel_collapse: "Collapse panel", bottom_panel_expand: "Expand panel", bottom_panel_maximize: "Maximize panel", bottom_panel_restore: "Restore panel", cell_aria: "{{column}}, rule {{index}}", clipboard_copy_failed: "Copy failed — the browser blocked clipboard access", column_kind_input: "Input", column_kind_output: "Output", column_moved: "Column moved from position {{from}} to {{to}}", column_panel_allowed_values: "Allowed values", column_panel_allowed_values_example: "e.g. {{example}}", column_panel_allowed_values_hint: "Separate values with commas, and write each one as the example shows.", column_panel_allowed_values_inherited_note: "Taking these from the data type: {{values}}. Type here to replace them for this column.", column_panel_allowed_values_mode_expression: "FEEL expression", column_panel_allowed_values_mode_inherited: "From data type", column_panel_allowed_values_mode_list: "List of values", column_panel_allowed_values_mode_none: "No restriction", column_panel_allowed_values_mode_regex: "Regex pattern", column_panel_expression: "Input expression", column_panel_expression_clear: "Clear value", column_panel_expression_insert: "Insert", column_panel_expression_insert_aria: "Insert variable", column_panel_expression_more_aria: "Input expression options", column_panel_expression_picker_add_argument: "Add input variable", column_panel_expression_placeholder: "e.g. invoice.countryCode", column_panel_item_type: "Item type", column_panel_label: "Label", column_panel_output_name: "Output name", column_panel_output_name_path_hint: "Read at {{path}} — a single output is the decision's whole result", column_panel_title: "Column properties", column_panel_type: "Data type", column_panel_type_help_aria: "Help for data type", column_panel_type_input_info: "Changing this data type does not change the type of the input argument bound to this column", column_rule_name: "Rule name", context_menu_aria: "Table actions", decision_table_aria: "Decision table", decision_table_properties_title: "Decision table properties", default_project_name: "Business rule", delete_column: "Delete column", delete_column_confirm_action: "Delete column", delete_column_confirm_body: "{{label}} has values in one or more rules. Deleting it removes the column and every cell in it.", delete_column_confirm_cancel: "Cancel", delete_column_confirm_title: "Delete this column?", delete_column_requires_output: "A decision table must have at least one output column.", delete_rule: "Delete rule", delete_rule_aria: "Delete rule {{index}}", drag_column_title: "Drag to reorder column", drag_row_title: "Drag to reorder rule", drd_add_decision: "Add decision", drd_add_element: "Add element", drd_add_input_data: "Add input data", drd_add_knowledge_model: "Add knowledge model", drd_add_knowledge_source: "Add knowledge source", drd_add_text_annotation: "Add text annotation", drd_annotation_edit_aria: "Edit annotation", drd_back_to_diagram: "Back to diagram", drd_category_title: "Decision requirements", drd_decision_unsupported: "This decision can't be opened in the decision table editor.", drd_delete_element: "Delete", drd_element_decision: "Decision", drd_element_input_data: "Input data", drd_element_knowledge_model: "Knowledge model", drd_element_knowledge_source: "Knowledge source", drd_element_text_annotation: "Text annotation", drd_logic_confirm_action: "Replace", drd_logic_confirm_cancel: "Cancel", drd_logic_confirm_dependents: "These decisions read part of this decision's result and will stop resolving: {{decisions}}.", drd_logic_confirm_description: "The current logic will be discarded and replaced with an empty {{kind}}. This cannot be undone.", drd_logic_confirm_title: "Replace this decision's logic?", drd_logic_decision_table: "Decision table", drd_logic_literal_expression: "Literal expression", drd_logic_none: "Not set", drd_logic_unsupported: "Unsupported expression", drd_menu_copy: "Copy", drd_menu_cut: "Cut", drd_menu_hide_grid: "Hide background grid", drd_menu_paste: "Paste", drd_menu_show_grid: "Show background grid", drd_menu_tidy_up: "Tidy up nodes", drd_menu_zoom_to_fit: "Zoom to fit", drd_organize: "Organize", drd_properties_description: "Description", drd_properties_empty: "Select an element on the diagram to see its properties.", drd_properties_identifier: "Identifier", drd_properties_identifier_hint: "What expressions use to reach this element. It stays the same when you rename.", drd_properties_identifier_rename: "Rename identifier", drd_properties_kind: "Type", drd_properties_logic: "Logic", drd_properties_logic_hint: "How this decision works out its answer.", drd_properties_name: "Name", drd_properties_title: "Properties", drd_rename_identifier_body: "The identifier is what expressions use to reach this element. Renaming it updates every expression that reads it.", drd_rename_identifier_cancel: "Cancel", drd_rename_identifier_confirm: "Rename", drd_rename_identifier_error_invalid: "Use a letter or underscore, then letters, numbers and underscores.", drd_rename_identifier_error_taken: "Another element already uses this identifier.", drd_rename_identifier_impact_one: "{{count}} decision's table already reads this identifier and will be updated.", drd_rename_identifier_impact_other: "{{count}} decisions' tables already read this identifier and will be updated.", drd_rename_identifier_label: "New identifier", drd_rename_identifier_title: "Rename identifier", drd_toolbox_title: "Add to diagram", drd_zoom_in: "Zoom in", drd_zoom_out: "Zoom out", drd_zoom_to_fit: "Zoom to fit", empty_state_description: "Create a decision table to start authoring rules.", empty_state_new_project: "Create decision table", empty_state_title: "This business rule is empty", evaluate_tab: "Evaluate", execution_condition_false: "False", execution_condition_true: "True", execution_condition_value: "Evaluated against {{value}}", execution_rule_not_evaluated: "Not evaluated", execution_rule_not_reached: "Not evaluated — rule {{index}} already matched ({{hitPolicy}} hit policy)", executions_actions_menu_aria: "Debug run actions", executions_cancelled_description: "This run was stopped before it finished evaluating.", executions_cancelled_title: "Run stopped", executions_clear: "Clear debug runs", executions_clear_confirm_action: "Clear", executions_clear_confirm_cancel: "Cancel", executions_clear_confirm_description: "Every finished run leaves the list. A run still evaluating stays.", executions_clear_confirm_title: "Clear debug runs?", executions_empty_description: "Run debug from the toolbar to evaluate this rule.", executions_empty_title: "No debug runs yet", executions_header_title: "Debug runs", executions_list_aria: "Debug runs", executions_no_trace_description: "This run finished without recording a trace.", executions_no_trace_title: "No trace recorded", executions_preparing: "Preparing the rule…", executions_retry: "Retry", executions_run_label: "Run #{{sequence}}", executions_running: "Evaluating…", executions_status_cancelled: "Stopped", executions_status_failed: "Failed", executions_status_preparing: "Preparing", executions_status_running: "Evaluating", executions_status_succeeded: "Succeeded", executions_tab: "Executions", executions_trace_empty_description: "No spans are stored for this run.", executions_trace_empty_title: "Trace not available", executions_trace_loading: "Loading trace…", executions_trace_unreadable_title: "Could not read the trace", feel_type_array: "Array", feel_type_array_of: "Array of {{type}}", feel_type_boolean: "Boolean", feel_type_date: "Date", feel_type_date_hint: "Write a date as {{example}}", feel_type_date_time: "Date-time", feel_type_date_time_hint: "Write a date-time as {{example}}", feel_type_day_time_duration: "Day and time duration", feel_type_day_time_duration_meaning: "30 days, 4 hours", feel_type_duration_hint: "Write an ISO 8601 duration like {{example}} ({{meaning}})", feel_type_number: "Number", feel_type_object: "Object", feel_type_string: "String", feel_type_time: "Time", feel_type_time_hint: "Write a time as {{example}}. The time zone after @ is optional.", feel_type_year_month_duration: "Year and month duration", feel_type_year_month_duration_meaning: "2 years, 6 months", formula_bar_input_aria: "Selected cell value", formula_bar_no_selection: "No cell selected", formula_bar_placeholder: "Enter a value for this cell", hit_policy_any: "Any", hit_policy_any_hint: "Any number may match, but they must all give the same result.", hit_policy_collect: "Collect", hit_policy_collect_hint: "Returns every match — as a list, or aggregated.", hit_policy_first: "First", hit_policy_first_hint: "Stops at the first matching rule, in table order.", hit_policy_label: "Hit policy", hit_policy_output_order: "Output order", hit_policy_output_order_hint: "Returns every match, ordered by the outputs' allowed values.", hit_policy_priority: "Priority", hit_policy_priority_hint: "Matches the highest-ranked result, prioritized by the outputs' allowed values.", hit_policy_rule_order: "Rule order", hit_policy_rule_order_hint: "Returns every match, in the order the rules appear.", hit_policy_unique: "Unique", hit_policy_unique_hint: "Exactly one rule may match. Overlaps are errors.", input_cell_any_placeholder: "any", input_column_default: "Input {{index}}", insert_rule_here: "Insert row here", literal_expression_editor_label: "Decision expression", literal_expression_editor_readonly_label: "Decision expression, read only", literal_expression_placeholder: 'Write a FEEL expression, for example: if age > 60 then "high" else "low"', literal_expression_prettify: "Prettify", literal_expression_result_type: "Result type", literal_expression_result_type_none: "Not set", loading_document: "Loading the business rule…", menu_clear_column: "Clear column", menu_clear_contents: "Clear contents", menu_clear_rule: "Clear rule", menu_column_properties: "Column properties…", menu_copy: "Copy", menu_cut: "Cut", menu_duplicate_column: "Duplicate column", menu_duplicate_rule: "Duplicate rule", menu_edit_cell: "Edit", menu_insert_column_left: "Insert column left", menu_insert_column_right: "Insert column right", menu_insert_rule_above: "Insert rule above", menu_insert_rule_below: "Insert rule below", menu_move_down: "Move down", menu_move_left: "Move left", menu_move_right: "Move right", menu_move_up: "Move up", menu_paste: "Paste", menu_paste_insert_rules: "Paste and insert rules", menu_rename_annotation: "Rename annotation column", menu_rename_column: "Rename", output_column_default: "Output {{index}}", paste_clamped: "Pasted block trimmed to fit: dropped {{dropped}}", paste_clamped_and: "{{rows}} and {{columns}}", paste_clamped_columns_one: "{{count}} column", paste_clamped_columns_other: "{{count}} columns", paste_clamped_rows_one: "{{count}} row", paste_clamped_rows_other: "{{count}} rows", paste_hint: "Press Ctrl+V in the table to paste — the browser blocked reading the clipboard from the menu", promote: "Promote", promote_failed: "This rule couldn't be opened as a decision graph. It is unchanged and still saved as a decision table.", promote_menu_title: "Migrate to a more powerful rule", promote_to_drd: "Decision requirements (DRD)", promote_to_drd_hint: "Complex · full DMN graph", properties_tab: "Properties", rename_column_aria: "Column name", reset_column_width: "Double-click or press Enter to reset width", resize_column_aria: "Resize {{label}} column. Use arrow keys to adjust, Enter to reset.", resize_properties_panel_aria: "Resize properties panel", result_type: "Returns {{type}}", result_type_context_one: "Context · {{count}} field", result_type_context_other: "Context · {{count}} fields", result_type_list: "List of {{type}}", rule_moved: "Rule moved from position {{from}} to {{to}}", rule_number_aria: "Rule {{index}}", rule_properties_title: "Rule properties", rule_toolbar_debug: "Run debug", rule_toolbar_debug_busy: "Debug run in progress", rule_toolbar_debug_unavailable: "Debug is unavailable right now", rule_toolbar_evaluations_soon: "Evaluations coming soon", save_failed: "Your latest changes couldn't be saved. They will be retried on your next edit — keep this tab open.", source_view_aria_label: "DMN source", source_view_notice: "Showing DMN source — this rule can't be opened in an editor yet. Edits here are saved exactly as written.", source_view_reason_invalid_xml: "Its XML isn't well-formed.", source_view_reason_lossy_xml: "It carries XML comments or processing instructions that the decision table editor can't keep.", source_view_reason_migration_failed: "It's a DMN 1.1 file that couldn't be migrated.", source_view_reason_unsafe_xml: "It declares a DOCTYPE, which this editor can't process.", source_view_reason_unsupported_profile: "It's outside what the decision table editor can open.", source_view_reason_unsupported_version: "Its DMN version isn't supported.", source_view_save_failed: "Your latest changes couldn't be saved. Apply again to retry.", table_diagnostics_hint_one: "{{count}} issue with this decision — open properties to fix it", table_diagnostics_hint_other: "{{count}} issues with this decision — open properties to fix them", table_meta: "{{inputs}} in · {{outputs}} out · {{rules}} rules", table_rename_aria: "Business rule name", tests_add: "Add test", tests_band_expected: "Expected output", tests_band_input: "Input", tests_banner_list_items_one: "[{{count}} item]", tests_banner_list_items_other: "[{{count}} items]", tests_col_name: "Test name", tests_col_result: "Result", tests_column_field_of_single_value: `This column reads a property of "{{name}}", which holds a single value, so it takes no test value. Enter "{{name}}" itself in the test's properties.`, tests_column_list_bound: `This column reads a field of every item in a list, so it takes no test value. Enter the whole list "{{name}}" in the test's properties.`, tests_column_not_fillable: "This column's expression isn't a single variable, so it takes no test value.", tests_debug_matched: "matched Rule {{rules}}", tests_debug_no_match: "no rule matched", tests_debug_rules_changed: "matched rules are no longer in the table", tests_debug_trace_unavailable: "the rule engine didn't report which rule fired", tests_debugging: "Debugging", tests_default_name: "Test {{index}}", tests_delete: "Delete test", tests_drag_row_title: "Drag to reorder test", tests_empty_description: "Add a test to validate this rule.", tests_empty_title: "No tests yet", tests_error_missing_result: "The rule engine returned no result for this test.", tests_error_unrecognized_output_shape: "The rule engine returned an output shape we don't recognize (keys: {{keys}}).", tests_exit_debug: "Exit debug", tests_expected_received: "Expected {{expected}}, received {{received}}", tests_field_root_not_object: `"{{name}}" holds a value that isn't a JSON object, so its fields can't be filled here. Fix the value in the test's properties.`, tests_list_value_invalid: "Enter a JSON array of the item type, such as {{example}}", tests_load_failed_description: "Reopen the file to try again.", tests_load_failed_title: "Tests couldn't be loaded", tests_loading: "Loading tests…", tests_menu_duplicate: "Duplicate test", tests_menu_insert_above: "Insert test above", tests_menu_insert_below: "Insert test below", tests_name_placeholder: "Name this test", tests_no_match_description: 'No tests match "{{query}}"', tests_no_match_title: "No matching tests", tests_object_value_invalid: "Enter a JSON object, such as {{example}}", tests_passing: "{{passing}}/{{total}} passing", tests_paste_skipped_not_object_one: "{{count}} cell was left as it is: its argument holds a value that isn't a JSON object.", tests_paste_skipped_not_object_other: "{{count}} cells were left as they are: their argument holds a value that isn't a JSON object.", tests_paste_skipped_one: "{{count}} cell was left as it is — its column shows an expression, not a value.", tests_paste_skipped_other: "{{count}} cells were left as they are — their columns show expressions, not values.", tests_props_expected: "Expected output", tests_props_inputs: "Inputs", tests_props_result: "Result", tests_props_title: "Test data", tests_received: "received: {{value}}", tests_result_error: "Error", tests_result_fail: "Fail", tests_result_pass: "Pass", tests_result_running: "Running", tests_run: "Run test", tests_run_all: "Run all", tests_save_failed: "Your test changes couldn't be saved. They will be retried on your next edit — keep this tab open.", tests_search_aria: "Search tests", tests_search_placeholder: "Search tests...", tests_title: "Tests", tests_update_expected: "Update expected outputs with current outputs", validation_aggregation_result_type: "{{aggregation}} doesn't return {{typeRef}}, the type the decision declares", validation_allowed_value_unquoted: "Quote {{name}} to use it as text", validation_boolean_column_value: "{{value}} is not allowed in a boolean column — use true, false or null", validation_collect_aggregation_type: "{{aggregation}} aggregation requires a number output, not {{typeRef}}", validation_column_type_mismatch: '"{{name}}" is declared as {{declared}}, but this column is typed {{column}}', validation_column_type_mismatch_duration: '"{{name}}" is a string. Use duration({{name}}) to read it in this duration column.', validation_dangling_requirement: "This decision requires an input or decision that no longer exists", validation_decision_name_missing: "This decision has no name", validation_document_unreadable: "This file could not be read as a DMN decision table", validation_duplicate_input_data_name: '"{{name}}" is used by more than one input', validation_duplicate_output_name: 'Output name "{{name}}" is used by more than one column', validation_duplicate_rule: "This rule has the same inputs as another rule", validation_feel_lint: "{{message}}", validation_feel_single_quote: `FEEL strings use double quotes. Write "text" instead of 'text'.`, validation_feel_syntax: "{{message}}", validation_field_of_list_item: `Each item of "{{parent}}" is a single {{type}} value, so it has no field "{{name}}". Change the expression, or make the list's items Objects.`, validation_field_of_single_value: '"{{parent}}" holds a single {{type}} value, so it has no field "{{name}}". Change the expression, or make "{{parent}}" an Object.', validation_input_data_name_invalid: '"{{name}}" is not a valid input name', validation_input_data_name_missing: "This input has no name", validation_input_data_shadows_decision: `"{{name}}" is already the name of another decision's result. Delete this input, or rename it.`, validation_input_expression_missing: "This input column has no expression", validation_item_component_duplicate_name: '"{{type}}" has more than one field named "{{field}}". Rename one of them.', validation_item_component_empty: '"{{field}}" in "{{type}}" has no fields or item type yet, so it accepts any value. Add a field or choose a type.', validation_item_component_name_invalid: '"{{field}}" in "{{type}}" is not a valid field name. Rename it to a valid FEEL name.', validation_item_definition_cycle: '"{{type}}" is defined in terms of itself. Point it at a built-in type or a type with fields.', validation_item_definition_duplicate_name: '"{{type}}" names more than one type. Rename one of them.', validation_item_definition_empty: '"{{type}}" has no fields or item type yet, so it accepts any value. Add a field or choose a type.', validation_item_definition_simple_and_structured: '"{{type}}" has both a base type and fields. Keep one of them.', validation_list_result_type: "This hit policy returns a list, but the decision declares {{typeRef}}. Editing the table clears the declared type.", validation_literal_expression_empty: "This decision has no expression, so it cannot be evaluated.", validation_literal_expression_type_missing: "Set a result type so callers know what this decision answers with.", validation_missing_requirement: `"{{name}}" is used here, but the file doesn't link it as an input. Change anything in the rule to add the link`, validation_no_rules: "This table has no rules", validation_output_name_invalid: '"{{name}}" is not a valid output name', validation_output_name_missing: "This output column has no name — every output in a multi-output table must be named", validation_output_value_not_allowed: "{{value}} is not one of this output's allowed values", validation_output_value_unchecked_one: "A value that isn't a plain literal can't be checked against this output's allowed values; if it falls outside them, the decision fails", validation_output_value_unchecked_other: "{{count}} values that aren't plain literals can't be checked against this output's allowed values; if one falls outside them, the decision fails", validation_range_endpoint_types: "Both ends of a range must be the same type", validation_range_not_ordered: "A {{columnType}} column has no order, so it cannot be given a range", validation_ranked_output_values_missing: "This hit policy ranks matches by allowed values; add them to at least one output", validation_ranked_output_values_single: "This hit policy ranks matches by the order of allowed values, but every ranked output lists only one entry, so every match ties and rule order decides. List the values in rank order", validation_result_name_referenced: '"{{name}}" is a result of this decision, not an input — it cannot be referenced here', validation_rule_entry_count: "This rule's entries do not match the table's columns", validation_type_mismatch: "A {{literalType}} value does not match the {{columnType}} column type", validation_unknown_member: '"{{name}}" is not a field of "{{parent}}". Check the spelling, or add the field to its type.', validation_unknown_name: '"{{name}}" is not a known input or decision variable', validation_unreachable_rule: "This rule can never be reached — an earlier rule matches every input", validation_value_not_valid_for_type: "{{value}} is not a valid {{columnType}}", variable_picker_empty: "No variables found", variable_picker_insert: "Insert variable", variable_picker_search_placeholder: "Search variables…", viewer_unsupported_notice: "This rule can't be shown as a decision table.", xml_error_apply_failed: "This document could not be applied. Check the XML and try again.", xml_error_invalid: "This is not well-formed XML.", xml_error_lossy: "Remove XML comments and processing instructions — they cannot be kept.", xml_error_migration_failed: "This DMN 1.1 document could not be migrated.", xml_error_uninitialized: "This document holds no decision to apply.", xml_error_unsafe: "Remove the DOCTYPE declaration.", xml_error_unsupported_profile: "Only a single decision table can be applied.", xml_error_unsupported_version: "This DMN version is not supported.", xml_tab: "XML", xml_unavailable: "This table can't be shown as XML right now. Your latest changes are still in the table." };
|
|
7
|
-
|
|
8
|
-
// ../../node_modules/@uipath/dmn-editor-utils/dist/diagnostics/index.js
|
|
9
|
-
var s = Object.assign(Object.create(null), e);
|
|
10
|
-
var l = (t, n = {}) => {
|
|
11
|
-
let { count: r } = n;
|
|
12
|
-
return ((typeof r == "number" ? s[`${t}_${r === 1 ? "one" : "other"}`] : undefined) ?? s[t] ?? t).replace(/\{\{\s*(\w+)\s*\}\}/g, (c, o) => Object.prototype.hasOwnProperty.call(n, o) ? String(n[o]) : c);
|
|
13
|
-
};
|
|
14
|
-
var u = (t) => l(t.messageKey, m(t, l));
|
|
15
|
-
export {
|
|
16
|
-
u as translateDmnDiagnostic
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//# debugId=20699FA86074657B64756E2164756E21
|
package/dist/index-z4kt2kt6.js
DELETED
package/dist/index-zeszs1ra.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
m4,
|
|
3
|
-
A2,
|
|
4
|
-
I,
|
|
5
|
-
J2,
|
|
6
|
-
v4_default
|
|
7
|
-
} from "./tool-sbtf80ft.js";
|
|
8
|
-
|
|
9
|
-
// ../../node_modules/@uipath/dmn-editor-utils/dist/entry-points/index.js
|
|
10
|
-
function ne(e) {
|
|
11
|
-
switch (e.toLowerCase()) {
|
|
12
|
-
case "boolean":
|
|
13
|
-
return "boolean";
|
|
14
|
-
case "number":
|
|
15
|
-
case "integer":
|
|
16
|
-
case "long":
|
|
17
|
-
case "double":
|
|
18
|
-
case "decimal":
|
|
19
|
-
return "number";
|
|
20
|
-
case "date":
|
|
21
|
-
return "date";
|
|
22
|
-
case "time":
|
|
23
|
-
return "time";
|
|
24
|
-
case "date and time":
|
|
25
|
-
case "datetime":
|
|
26
|
-
return "datetime";
|
|
27
|
-
case "array":
|
|
28
|
-
return "array";
|
|
29
|
-
case "any":
|
|
30
|
-
case "object":
|
|
31
|
-
return "object";
|
|
32
|
-
default:
|
|
33
|
-
return "string";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
var te = { date: { type: "string", format: "date" }, datetime: { type: "string", format: "date-time" }, time: { type: "string", format: "time" } };
|
|
37
|
-
var $ = (e) => te[e] ?? (e === "array" ? { type: "array", items: {} } : { type: e });
|
|
38
|
-
var L = (e) => e._jsonSchema ?? $(e.type);
|
|
39
|
-
var Y = (e) => {
|
|
40
|
-
let n = e.type === "array" ? e.items?.type : undefined;
|
|
41
|
-
return { _jsonSchema: e, ...typeof n == "string" ? { subType: n } : {} };
|
|
42
|
-
};
|
|
43
|
-
var I2 = "x-uipath-decision-keyed";
|
|
44
|
-
var H = "x-uipath-rows";
|
|
45
|
-
var oe = { "invalid-xml": "The rule is not valid XML.", "unsafe-xml": "The rule declares a document type, which is not allowed.", "lossy-xml": "The rule contains comments or processing instructions that cannot be preserved.", "unsupported-version": "The rule uses a DMN version that is not supported.", "migration-failed": "The rule could not be migrated to a supported DMN version.", "unsupported-profile": "The rule uses DMN constructs that are not supported." };
|
|
46
|
-
var N = class extends Error {
|
|
47
|
-
constructor(t) {
|
|
48
|
-
super(oe[t] ?? "The rule could not be read.");
|
|
49
|
-
this.reason = t;
|
|
50
|
-
this.name = "UnreadableDmnError";
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var W = (e) => e.__$$element === "decision";
|
|
54
|
-
var ae = (e) => e.__$$element === "inputData";
|
|
55
|
-
var A = (e) => e.expression?.__$$element === "decisionTable" ? e.expression : undefined;
|
|
56
|
-
var k = (e) => e.expression?.__$$element === "literalExpression" ? e.expression : undefined;
|
|
57
|
-
var C = (e) => !!A(e) || !!k(e);
|
|
58
|
-
var ue = (e, n, t, r) => ({ name: t, displayName: e["@_label"] || t, ...r.argumentType(...ce(e, n), true), source: `=result.${t}` });
|
|
59
|
-
var ce = (e, n) => n["@_typeRef"] === undefined ? [e.variable?.["@_typeRef"], [e.variable, e]] : [n["@_typeRef"], [n, e]];
|
|
60
|
-
var le = (e, n, t) => ({ name: n, displayName: e["@_name"] || e.variable?.["@_name"] || "", ...t.argumentType(e.variable?.["@_typeRef"], [e.variable, e], false), required: true });
|
|
61
|
-
async function G(e) {
|
|
62
|
-
let [{ importDmnDocument: n }, { outputArgumentName: t, resolvedIdentifier: r }, { aggregateTypeRef: u, isCollectAggregation: p, LIST_HIT_POLICIES: o }, { DmnHitPolicy: c }] = await Promise.all([import("./KieDmnMarshaller-LGE63WDG-nfkpv8f4.js"), import("./DmnFactory-L7MABUC6-q2sr3grz.js"), import("./hitPolicyResult-CGCR73CW-jz89f1aa.js"), import("./DmnModelTypes-ATR7FVKZ-h8srwcxk.js")]), d = await n(e);
|
|
63
|
-
if (d.status === "error")
|
|
64
|
-
throw new N(d.reason);
|
|
65
|
-
let l = d.document.definitions, g = l.drgElement ?? [], R = g.filter(W), O = g.filter(ae), _ = (s) => r(s.variable?.["@_name"], s["@_name"]), T = pe(l), j = (s) => !s["@_aggregation"] && o.has(s["@_hitPolicy"] ?? c.Unique), P = (s, a, m) => {
|
|
66
|
-
let f = m["@_typeRef"] === undefined && a.output?.length === 1 && !j(a) ? s.variable?.["@_typeRef"] : undefined, y = f ?? m["@_typeRef"], S = f === undefined ? [m, a, s] : [s.variable, s], w = a["@_aggregation"];
|
|
67
|
-
return a["@_hitPolicy"] === c.Collect && p(w) ? [u(w, { typeRef: y }) ?? "Any", S] : [y, S];
|
|
68
|
-
}, B = (s, a, m, f) => {
|
|
69
|
-
let y = t({ id: m["@_id"] ?? "", name: m["@_name"], label: m["@_label"] }, f);
|
|
70
|
-
return { name: y, displayName: m["@_label"] || y, ...T.argumentType(...P(s, a, m), true), source: `=result.${y}` };
|
|
71
|
-
}, i = (s) => s.map((a) => ({ ...a, type: "jsonSchema", ...Y({ type: "array", items: L(a) }) })), D = (s) => {
|
|
72
|
-
let a = k(s);
|
|
73
|
-
if (a)
|
|
74
|
-
return [ue(s, a, _(s), T)];
|
|
75
|
-
let m = A(s);
|
|
76
|
-
if (!m)
|
|
77
|
-
return [];
|
|
78
|
-
let f = (m.output ?? []).map((S, w) => B(s, m, S, w)), y = s["@_name"];
|
|
79
|
-
return f.length !== 1 || m.output?.[0]?.["@_name"]?.trim() || !y ? f : [{ ...f[0], name: y, displayName: m.output?.[0]?.["@_label"] || y, source: `=result.${y}` }];
|
|
80
|
-
}, E = (s) => {
|
|
81
|
-
let a = A(s);
|
|
82
|
-
return a && j(a) ? i(D(s)) : D(s);
|
|
83
|
-
}, h = (s = () => true) => O.filter(s).map((a) => le(a, _(a), T)), b = (s) => {
|
|
84
|
-
let a = s["@_name"] ?? "", m = A(s), f = D(s), y = !!m && j(m), S = (ee) => Object.fromEntries(ee.map((M) => [M.name, L(M)])), w = y && f.length > 1 ? { [a]: { type: "array", items: { type: "object", properties: S(f) }, [H]: true } } : S(y ? i(f) : f);
|
|
85
|
-
return { name: a, displayName: a, type: "jsonSchema", source: `=result.${a}`, _jsonSchema: { type: "object", properties: w } };
|
|
86
|
-
}, x = R.every((s) => !C(s) || !!s["@_name"]?.trim());
|
|
87
|
-
return { definitions: l, decisions: R, declared: O, identifierOf: _, inputsFor: h, outputsOf: E, toKeyedOutput: b, keyable: x };
|
|
88
|
-
}
|
|
89
|
-
var X = (e) => ne(e.foreign ? "Any" : e.baseTypeRef ?? "");
|
|
90
|
-
var z = (e) => {
|
|
91
|
-
let n = e.recursive ? {} : e.components ? { type: "object", properties: Object.fromEntries(e.components.map((t) => [t.name, z(t.type)])) } : $(X(e));
|
|
92
|
-
return e.chain.filter((t) => t.isCollection).reduce((t) => ({ type: "array", items: t }), n);
|
|
93
|
-
};
|
|
94
|
-
function pe(e) {
|
|
95
|
-
let n = { itemDefinitions: A2(e), namespace: e["@_namespace"], namespaces: m4(e) }, t = (r, u) => J2(n, r, I(u));
|
|
96
|
-
return { argumentType: (r, u, p) => {
|
|
97
|
-
let o = t(r, u);
|
|
98
|
-
if (!o.components && !o.isCollection)
|
|
99
|
-
return { type: X(o) };
|
|
100
|
-
let c = z(o);
|
|
101
|
-
return { type: p ? "jsonSchema" : c.type === "array" ? "array" : "object", ...Y(c) };
|
|
102
|
-
} };
|
|
103
|
-
}
|
|
104
|
-
var Q = (e) => e?.startsWith("#") ? e.slice(1) : e || undefined;
|
|
105
|
-
var de = (e, n) => new RegExp(`(^|[^\\w.$])${n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}([^\\w$]|$)`).test(e);
|
|
106
|
-
function ye(e, n) {
|
|
107
|
-
let t = new Set([e]), r = [e];
|
|
108
|
-
for (;r.length > 0; ) {
|
|
109
|
-
let u = n.get(r.shift() ?? "");
|
|
110
|
-
if (!u)
|
|
111
|
-
continue;
|
|
112
|
-
let p = [...(u.informationRequirement ?? []).flatMap((o) => [o.requiredInput?.["@_href"], o.requiredDecision?.["@_href"]]), ...(u.knowledgeRequirement ?? []).map((o) => o.requiredKnowledge?.["@_href"])];
|
|
113
|
-
for (let o of p) {
|
|
114
|
-
let c = Q(o);
|
|
115
|
-
!c || t.has(c) || (t.add(c), r.push(c));
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return t;
|
|
119
|
-
}
|
|
120
|
-
async function v(e, n = false) {
|
|
121
|
-
let { definitions: t, decisions: r, declared: u, identifierOf: p, inputsFor: o, outputsOf: c, toKeyedOutput: d, keyable: l } = await G(e), g = n && l, R = new Map([...r, ...u].flatMap((i) => i["@_id"] ? [[i["@_id"], i]] : [])), O = new Set(r.flatMap((i) => (i.informationRequirement ?? []).flatMap((D) => {
|
|
122
|
-
let E = Q(D.requiredDecision?.["@_href"]);
|
|
123
|
-
return E ? [E] : [];
|
|
124
|
-
}))), _ = [...r.filter((i) => !O.has(i["@_id"] ?? "")), ...r.filter((i) => O.has(i["@_id"] ?? ""))], T = _.map((i) => {
|
|
125
|
-
let D = ye(i["@_id"] ?? "", R), E = [...D].flatMap((h) => {
|
|
126
|
-
let b = R.get(h);
|
|
127
|
-
if (!b || !W(b))
|
|
128
|
-
return [];
|
|
129
|
-
let x = k(b);
|
|
130
|
-
return x ? [x.text?.__$$text ?? ""] : (A(b)?.input ?? []).map((s) => s.inputExpression?.text?.__$$text ?? "");
|
|
131
|
-
});
|
|
132
|
-
return (h) => {
|
|
133
|
-
if (D.has(h["@_id"] ?? ""))
|
|
134
|
-
return true;
|
|
135
|
-
let b = p(h);
|
|
136
|
-
return !!b && E.some((x) => de(x, b));
|
|
137
|
-
};
|
|
138
|
-
}), j = new Set(u.filter((i) => T.some((D) => D(i)))), P = _.flatMap((i, D) => {
|
|
139
|
-
if (!C(i))
|
|
140
|
-
return [];
|
|
141
|
-
let E = (h) => T[D](h) || !j.has(h);
|
|
142
|
-
return [{ id: i["@_id"] ?? "", name: i["@_label"] ?? i["@_name"] ?? "", inputs: o(E), outputs: g ? [d(i)] : c(i), ...g ? { decisionKeyed: true } : {} }];
|
|
143
|
-
});
|
|
144
|
-
return !g || P.length < 2 ? P : [{ name: t["@_label"] ?? t["@_name"] ?? "", inputs: o(), outputs: P.flatMap((i) => i.outputs), decisionKeyed: true }, ...P];
|
|
145
|
-
}
|
|
146
|
-
var fe = JSON.stringify({ version: "2.0", resources: [] }, null, 2);
|
|
147
|
-
var De = (e, n) => {
|
|
148
|
-
if (e._jsonSchema) {
|
|
149
|
-
let { $schema: t, ...r } = e._jsonSchema;
|
|
150
|
-
return n ? r : { ...r, title: e.name };
|
|
151
|
-
}
|
|
152
|
-
return e.type === "jsonSchema" ? {} : { ...$(e.type), title: e.name };
|
|
153
|
-
};
|
|
154
|
-
var V = (e, n = false) => e.length === 0 ? { type: "object", properties: {} } : { type: "object", properties: Object.fromEntries(e.map((t) => [t.name, De(t, n)])), required: [] };
|
|
155
|
-
var Z = (e) => typeof e == "string" && e !== "";
|
|
156
|
-
var he = (e) => {
|
|
157
|
-
let n = Array.isArray(e?.entryPoints) ? e.entryPoints : [], t = new Map;
|
|
158
|
-
for (let r of n)
|
|
159
|
-
Z(r?.filePath) && Z(r.uniqueId) && t.set(r.filePath, r.uniqueId);
|
|
160
|
-
return t;
|
|
161
|
-
};
|
|
162
|
-
async function be(e, n, t = false) {
|
|
163
|
-
let r = he(n), u = [], p = [];
|
|
164
|
-
for (let { name: o, contents: c } of e) {
|
|
165
|
-
let d;
|
|
166
|
-
try {
|
|
167
|
-
d = await v(c, t);
|
|
168
|
-
} catch (l) {
|
|
169
|
-
p.push({ name: o, error: l });
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
|
-
for (let l of d) {
|
|
173
|
-
let g = l.id ? `/${o}#${l.id}` : `/${o}`;
|
|
174
|
-
u.push({ filePath: g, uniqueId: r.get(g) ?? v4_default(), type: "BusinessRules", ...l.name ? { displayName: l.name } : {}, input: V(l.inputs), output: { ...V(l.outputs, !!l.decisionKeyed), ...l.decisionKeyed ? { [I2]: true } : {} } });
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return { entryPoints: u, entryPointsContent: JSON.stringify({ $schema: "https://cloud.uipath.com/draft/2024-12/entry-point", $id: "entry-points.json", entryPoints: u }, null, 2), bindingContent: fe, unreadable: p, entryPointsChanged: JSON.stringify(n?.entryPoints) !== JSON.stringify(u) };
|
|
178
|
-
}
|
|
179
|
-
export {
|
|
180
|
-
N as UnreadableDmnError,
|
|
181
|
-
be as buildBusinessRulePackagingFiles
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
//# debugId=1A8F1A5A49EA7AEC64756E2164756E21
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
RulesCommandError2,
|
|
3
|
-
isJsonObject2,
|
|
4
|
-
reportRulesFailure2
|
|
5
|
-
} from "./tool-jzdt6z77.js";
|
|
6
|
-
import"./tool-syavphgt.js";
|
|
7
|
-
export {
|
|
8
|
-
RulesCommandError2 as RulesCommandError,
|
|
9
|
-
isJsonObject2 as isJsonObject,
|
|
10
|
-
reportRulesFailure2 as reportRulesFailure
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
//# debugId=1ABE9E632E07ECEB64756E2164756E21
|
package/dist/tool-2nmqvfmt.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-T5EQ7Y3W.js
|
|
2
|
-
var _ = { string: "feel_type_string", number: "feel_type_number", boolean: "feel_type_boolean", Any: "feel_type_object", date: "feel_type_date", time: "feel_type_time", "date and time": "feel_type_date_time", dayTimeDuration: "feel_type_day_time_duration", yearMonthDuration: "feel_type_year_month_duration", array: "feel_type_array" };
|
|
3
|
-
var a = "array:";
|
|
4
|
-
var l = (e, t) => t ? `${a}${e}` : e;
|
|
5
|
-
var i = (e, t) => {
|
|
6
|
-
if (e.startsWith(a))
|
|
7
|
-
return t("feel_type_array_of", { type: i(e.slice(a.length), t) });
|
|
8
|
-
let r = _[e];
|
|
9
|
-
return r ? t(r) : e;
|
|
10
|
-
};
|
|
11
|
-
var y = { DMN_COLUMN_TYPE_MISMATCH: ["declared", "column"], DMN_FIELD_OF_SINGLE_VALUE: ["type"] };
|
|
12
|
-
var m = (e, t) => {
|
|
13
|
-
let r = y[e.code];
|
|
14
|
-
if (!r || !e.messageParams)
|
|
15
|
-
return e.messageParams;
|
|
16
|
-
let n = { ...e.messageParams };
|
|
17
|
-
for (let o of r) {
|
|
18
|
-
let s = n[o];
|
|
19
|
-
typeof s == "string" && (n[o] = i(s, t));
|
|
20
|
-
}
|
|
21
|
-
return n;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { l, m };
|
|
25
|
-
|
|
26
|
-
//# debugId=422D1AD08D4645D764756E2164756E21
|