@uipath/rules-tool 1.205.0-preview.290 → 1.205.0-preview.300
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/THIRD-PARTY-NOTICES.md +6 -6
- package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-1r9d51g0.js} +16 -16
- package/dist/{index-cpm94vee.js → index-yhz2d1pg.js} +2 -2
- package/dist/{index-dqa169gp.js → index-ys3gmgf0.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{rule-catalog-10fhgevc.js → rule-catalog-fb48daez.js} +2 -2
- package/dist/{rules-debug-service-aeq7081w.js → rules-debug-service-bq0w8p57.js} +1 -1
- package/dist/{rules-init-service-gj2w5k8b.js → rules-init-service-7rffwnck.js} +2 -2
- package/dist/{tool-91ncm206.js → tool-eys0y81e.js} +3 -3
- package/dist/{tool-jsg5ja7h.js → tool-fv6r8mbn.js} +6 -6
- package/dist/{tool-gdtpsdn7.js → tool-j98qvwdt.js} +8 -2
- package/dist/{tool-fbxe48wd.js → tool-mxkne7ws.js} +219 -70
- package/dist/tool.js +1 -1
- package/package.json +2 -2
|
@@ -59,8 +59,8 @@ import {
|
|
|
59
59
|
uniqueNameForResource,
|
|
60
60
|
validateResourceName,
|
|
61
61
|
writeSolutionFile
|
|
62
|
-
} from "./tool-
|
|
63
|
-
import"./tool-
|
|
62
|
+
} from "./tool-mxkne7ws.js";
|
|
63
|
+
import"./tool-j98qvwdt.js";
|
|
64
64
|
import"./tool-53w8skv5.js";
|
|
65
65
|
import"./tool-1pccj6q3.js";
|
|
66
66
|
import"./tool-txp5th7j.js";
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
getSolutionAuthContext,
|
|
7
7
|
readSpecEntryPoints,
|
|
8
8
|
toResourceReference
|
|
9
|
-
} from "./tool-
|
|
10
|
-
import"./tool-
|
|
9
|
+
} from "./tool-mxkne7ws.js";
|
|
10
|
+
import"./tool-j98qvwdt.js";
|
|
11
11
|
import"./tool-53w8skv5.js";
|
|
12
12
|
import"./tool-1pccj6q3.js";
|
|
13
13
|
import {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./tool-
|
|
1
|
+
import"./tool-eys0y81e.js";
|
|
2
2
|
import {
|
|
3
3
|
prepareProjectLocation,
|
|
4
4
|
tryRegisterProjectInParentSolution
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
|
|
20
20
|
// src/services/project-artifacts.ts
|
|
21
21
|
async function ensureProjectArtifacts(args) {
|
|
22
|
-
const { addProjectArtifactsToSolutionAsync } = await import("./index-
|
|
22
|
+
const { addProjectArtifactsToSolutionAsync } = await import("./index-yhz2d1pg.js");
|
|
23
23
|
return addProjectArtifactsToSolutionAsync(args);
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -951,7 +951,7 @@ var package_default = {
|
|
|
951
951
|
name: "@uipath/solution-sdk",
|
|
952
952
|
author: "UiPath",
|
|
953
953
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
954
|
-
version: "1.205.0-preview.
|
|
954
|
+
version: "1.205.0-preview.300",
|
|
955
955
|
repository: {
|
|
956
956
|
type: "git",
|
|
957
957
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -1011,7 +1011,7 @@ var package_default = {
|
|
|
1011
1011
|
"@uipath/filesystem": "workspace:*",
|
|
1012
1012
|
"@uipath/orchestrator-sdk": "workspace:*",
|
|
1013
1013
|
"@uipath/pipelines-sdk": "workspace:*",
|
|
1014
|
-
"@uipath/resource-builder-sdk": "
|
|
1014
|
+
"@uipath/resource-builder-sdk": "1.0.0-s205-17620",
|
|
1015
1015
|
"@uipath/solutionpackager-tool-core": "workspace:*",
|
|
1016
1016
|
"@uipath/studioweb-sdk": "workspace:*",
|
|
1017
1017
|
"@types/node": "^25.5.2",
|
|
@@ -1205,4 +1205,4 @@ var SUCCEEDED = "creationsucceeded";
|
|
|
1205
1205
|
var TERMINAL = new Set([SUCCEEDED, "creationfailed", "validationfailed"]);
|
|
1206
1206
|
export { buildSolutionPackageFromDir, uploadOrOverwriteSolution };
|
|
1207
1207
|
|
|
1208
|
-
//# debugId=
|
|
1208
|
+
//# debugId=D37ED349AD6748FB64756E2164756E21
|
|
@@ -19,7 +19,7 @@ var package_default = {
|
|
|
19
19
|
name: "@uipath/rules-tool",
|
|
20
20
|
author: "UiPath",
|
|
21
21
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
22
|
-
version: "1.205.0-preview.
|
|
22
|
+
version: "1.205.0-preview.300",
|
|
23
23
|
description: "Create and manage UiPath Business Rules (DMN) projects.",
|
|
24
24
|
private: false,
|
|
25
25
|
repository: {
|
|
@@ -95,7 +95,7 @@ var RULES_DEBUG_EXAMPLES = [
|
|
|
95
95
|
var registerDebugCommand = (program) => {
|
|
96
96
|
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) => {
|
|
97
97
|
const { reportRulesFailure } = await import("./rules-command-error-k6kxwfn7.js");
|
|
98
|
-
const { debugRuleProjectAsync } = await import("./rules-debug-service-
|
|
98
|
+
const { debugRuleProjectAsync } = await import("./rules-debug-service-bq0w8p57.js");
|
|
99
99
|
const [error, result] = await catchError(debugRuleProjectAsync(projectPath, options));
|
|
100
100
|
if (error) {
|
|
101
101
|
await reportRulesFailure("Failed to debug business rules project", error);
|
|
@@ -199,7 +199,7 @@ var registerDescribeCommand = (program) => {
|
|
|
199
199
|
}
|
|
200
200
|
const [error, entryPoints] = await catchError((async () => {
|
|
201
201
|
const folder = await rules.resolveRequiredFolder(options);
|
|
202
|
-
const { describeRuleAsync } = await import("./rule-catalog-
|
|
202
|
+
const { describeRuleAsync } = await import("./rule-catalog-fb48daez.js");
|
|
203
203
|
return describeRuleAsync(name, folder);
|
|
204
204
|
})());
|
|
205
205
|
if (error) {
|
|
@@ -292,7 +292,7 @@ Packing or uploading the solution will sync solution resources automatically.`
|
|
|
292
292
|
];
|
|
293
293
|
var registerInitCommand = (program) => {
|
|
294
294
|
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) => {
|
|
295
|
-
const { rulesInitAsync } = await import("./rules-init-service-
|
|
295
|
+
const { rulesInitAsync } = await import("./rules-init-service-7rffwnck.js");
|
|
296
296
|
const [error, result] = await catchError(rulesInitAsync(name, {
|
|
297
297
|
force: options.force,
|
|
298
298
|
skipRegistration: options.skipSolutionRegistration === true
|
|
@@ -416,7 +416,7 @@ async function listRulesAcrossFolders(options) {
|
|
|
416
416
|
if (options.tenant !== undefined) {
|
|
417
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.");
|
|
418
418
|
}
|
|
419
|
-
const { listRulesAcrossFoldersAsync } = await import("./rule-catalog-
|
|
419
|
+
const { listRulesAcrossFoldersAsync } = await import("./rule-catalog-fb48daez.js");
|
|
420
420
|
const result = await listRulesAcrossFoldersAsync(options.limit, options.offset);
|
|
421
421
|
if (!result) {
|
|
422
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.");
|
|
@@ -611,4 +611,4 @@ var registerCommands = async (program) => {
|
|
|
611
611
|
|
|
612
612
|
export { metadata, registerCommands };
|
|
613
613
|
|
|
614
|
-
//# debugId=
|
|
614
|
+
//# debugId=DA0FB2527479EBB764756E2164756E21
|
|
@@ -21,6 +21,10 @@ var JsonSerializerNames = {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer.js
|
|
24
|
+
var VERBATIM_VALUE_PROPERTIES = new Set([
|
|
25
|
+
"spec"
|
|
26
|
+
]);
|
|
27
|
+
|
|
24
28
|
class JsonSerializer {
|
|
25
29
|
serialize(value) {
|
|
26
30
|
if (value == null)
|
|
@@ -110,7 +114,9 @@ class JsonSerializer {
|
|
|
110
114
|
const result = {};
|
|
111
115
|
const currentClassName = obj.constructor?.name !== "Object" ? obj.constructor.name : className;
|
|
112
116
|
for (const [key, val] of Object.entries(obj))
|
|
113
|
-
if (
|
|
117
|
+
if (VERBATIM_VALUE_PROPERTIES.has(key))
|
|
118
|
+
result[key] = val;
|
|
119
|
+
else if (typeof val == "string")
|
|
114
120
|
result[key] = this.tryConvertEnumStringToCamelCase(val, currentClassName, key);
|
|
115
121
|
else if (Array.isArray(val))
|
|
116
122
|
result[key] = val.map((item) => {
|
|
@@ -339,4 +345,4 @@ class StreamSerializer {
|
|
|
339
345
|
}
|
|
340
346
|
export { JsonSerializerNames, JsonSerializer, CAMEL_CASE_ENUM_PROPERTIES, SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES, RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES, PASCAL_CASE_ENUM_PROPERTIES, JsonSerializerFactory, JsonSerializerProxy, StreamSerializer };
|
|
341
347
|
|
|
342
|
-
//# debugId=
|
|
348
|
+
//# debugId=C9C96784831F2C9F64756E2164756E21
|