@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.
@@ -59,8 +59,8 @@ import {
59
59
  uniqueNameForResource,
60
60
  validateResourceName,
61
61
  writeSolutionFile
62
- } from "./tool-fbxe48wd.js";
63
- import"./tool-gdtpsdn7.js";
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";
@@ -8,7 +8,7 @@ import {
8
8
  RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES,
9
9
  SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES,
10
10
  StreamSerializer
11
- } from "./tool-gdtpsdn7.js";
11
+ } from "./tool-j98qvwdt.js";
12
12
  import"./tool-1de529jm.js";
13
13
  export {
14
14
  CAMEL_CASE_ENUM_PROPERTIES,
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./tool-jsg5ja7h.js";
5
+ } from "./tool-fv6r8mbn.js";
6
6
  import {
7
7
  Command
8
8
  } from "./tool-wf2qkrye.js";
@@ -6,8 +6,8 @@ import {
6
6
  getSolutionAuthContext,
7
7
  readSpecEntryPoints,
8
8
  toResourceReference
9
- } from "./tool-fbxe48wd.js";
10
- import"./tool-gdtpsdn7.js";
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,7 +1,7 @@
1
1
  import {
2
2
  buildSolutionPackageFromDir,
3
3
  uploadOrOverwriteSolution
4
- } from "./tool-91ncm206.js";
4
+ } from "./tool-eys0y81e.js";
5
5
  import {
6
6
  findSolutionFile,
7
7
  updateSolutionFile
@@ -1,4 +1,4 @@
1
- import"./tool-91ncm206.js";
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-cpm94vee.js");
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.290",
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": "2025.11.0-alpha6584-4367",
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=0213B32A902D138B64756E2164756E21
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.290",
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-aeq7081w.js");
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-10fhgevc.js");
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-gj2w5k8b.js");
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-10fhgevc.js");
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=1B3B6D722344BBB864756E2164756E21
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 (typeof val == "string")
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=B9E68BD7718EF2DB64756E2164756E21
348
+ //# debugId=C9C96784831F2C9F64756E2164756E21