@uipath/rules-tool 1.206.0-preview.295 → 1.206.0-preview.297
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/{business-rules-z2zw35qd.js → business-rules-zfzwr08c.js} +4 -4
- package/dist/{first-party-service-wcnp88a9.js → first-party-service-ej32b6j2.js} +1 -1
- package/dist/{index-bac43qkt.js → index-88sps467.js} +4 -4
- package/dist/{index-24g0nqej.js → index-s9wmt93c.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{rule-catalog-p3dwc566.js → rule-catalog-780050xk.js} +6 -6
- package/dist/{rules-command-error-30c8a3n9.js → rules-command-error-2x1vm0wt.js} +2 -2
- package/dist/{rules-debug-service-ng6tzgd1.js → rules-debug-service-4txqy47a.js} +7 -7
- package/dist/{rules-init-service-xb1d97a1.js → rules-init-service-yn3qf0z7.js} +6 -6
- package/dist/{rules-refresh-service-18hrs394.js → rules-refresh-service-x3gfnfqt.js} +3 -3
- package/dist/{rules-validate-service-0z1a00hr.js → rules-validate-service-e47hgykv.js} +3 -3
- package/dist/{solution-definition-helper-exca4thg.js → solution-definition-helper-trxp0zbj.js} +1 -1
- package/dist/{tool-p7hqn93n.js → tool-0tbve332.js} +1 -1
- package/dist/{tool-e23cj2jx.js → tool-3755q59j.js} +1 -1
- package/dist/{tool-b0dmc6r8.js → tool-4yfqjj3t.js} +22 -22
- package/dist/{tool-fkppxa9f.js → tool-b475et36.js} +2 -2
- package/dist/{tool-89pevqfw.js → tool-hvd48ege.js} +3 -3
- package/dist/{tool-njnhj05q.js → tool-jzdt6z77.js} +1 -1
- package/dist/{tool-mst6a4dr.js → tool-sjp6fvze.js} +2 -2
- package/dist/{tool-cs8nyk0r.js → tool-syavphgt.js} +1 -1
- package/dist/{tool-08vxhez5.js → tool-yfaf9b8c.js} +6 -6
- package/dist/tool.js +2 -2
- package/package.json +2 -2
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
formatRule2,
|
|
8
8
|
formatRuleDetail2,
|
|
9
9
|
formatVersion2
|
|
10
|
-
} from "./tool-
|
|
11
|
-
import"./tool-
|
|
12
|
-
import"./tool-
|
|
13
|
-
import"./tool-
|
|
10
|
+
} from "./tool-sjp6fvze.js";
|
|
11
|
+
import"./tool-3755q59j.js";
|
|
12
|
+
import"./tool-jzdt6z77.js";
|
|
13
|
+
import"./tool-syavphgt.js";
|
|
14
14
|
export {
|
|
15
15
|
assertOneFolderOption2 as assertOneFolderOption,
|
|
16
16
|
createRulesApi2 as createRulesApi,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
toResourceReference2,
|
|
7
7
|
exportResourceDefinitionAsync2,
|
|
8
8
|
readSpecEntryPoints2
|
|
9
|
-
} from "./tool-
|
|
10
|
-
import"./tool-
|
|
11
|
-
import"./tool-
|
|
12
|
-
import"./tool-
|
|
9
|
+
} from "./tool-yfaf9b8c.js";
|
|
10
|
+
import"./tool-0tbve332.js";
|
|
11
|
+
import"./tool-3755q59j.js";
|
|
12
|
+
import"./tool-syavphgt.js";
|
|
13
13
|
export {
|
|
14
14
|
addProjectArtifactsToSolutionAsync2 as addProjectArtifactsToSolutionAsync,
|
|
15
15
|
createResourceBuilderServices2 as createResourceBuilderServices,
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
Command
|
|
4
|
-
} from "./tool-
|
|
4
|
+
} from "./tool-syavphgt.js";
|
|
5
5
|
import {
|
|
6
6
|
metadata2,
|
|
7
7
|
registerCommands2
|
|
8
|
-
} from "./tool-
|
|
8
|
+
} from "./tool-4yfqjj3t.js";
|
|
9
9
|
|
|
10
10
|
// src/index.ts
|
|
11
11
|
var program = new Command;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import"./tool-
|
|
2
|
-
import"./tool-
|
|
1
|
+
import"./tool-3755q59j.js";
|
|
2
|
+
import"./tool-syavphgt.js";
|
|
3
3
|
import {
|
|
4
4
|
getSolutionAuthContext,
|
|
5
5
|
createResourceBuilderServices2,
|
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
toResourceReference2,
|
|
9
9
|
exportResourceDefinitionAsync2,
|
|
10
10
|
readSpecEntryPoints2
|
|
11
|
-
} from "./tool-
|
|
11
|
+
} from "./tool-yfaf9b8c.js";
|
|
12
12
|
import {
|
|
13
13
|
RulesCommandError2
|
|
14
|
-
} from "./tool-
|
|
14
|
+
} from "./tool-jzdt6z77.js";
|
|
15
15
|
import {
|
|
16
16
|
createRulesApi2,
|
|
17
17
|
findRuleByName2
|
|
18
|
-
} from "./tool-
|
|
19
|
-
import"./tool-
|
|
18
|
+
} from "./tool-sjp6fvze.js";
|
|
19
|
+
import"./tool-0tbve332.js";
|
|
20
20
|
|
|
21
21
|
// src/services/rule-catalog.ts
|
|
22
22
|
var BUSINESS_RULE_ENTITY_TYPE = "BusinessRule";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
RulesCommandError2,
|
|
3
3
|
isJsonObject2,
|
|
4
4
|
reportRulesFailure2
|
|
5
|
-
} from "./tool-
|
|
6
|
-
import"./tool-
|
|
5
|
+
} from "./tool-jzdt6z77.js";
|
|
6
|
+
import"./tool-syavphgt.js";
|
|
7
7
|
export {
|
|
8
8
|
RulesCommandError2 as RulesCommandError,
|
|
9
9
|
isJsonObject2 as isJsonObject,
|
|
@@ -2,32 +2,32 @@ import {
|
|
|
2
2
|
getAuthContext,
|
|
3
3
|
PersonalWorkspacesApi,
|
|
4
4
|
createApiClient
|
|
5
|
-
} from "./tool-
|
|
5
|
+
} from "./tool-3755q59j.js";
|
|
6
6
|
import {
|
|
7
7
|
getFileSystem,
|
|
8
8
|
catchError,
|
|
9
9
|
logger,
|
|
10
10
|
OutputFormatter
|
|
11
|
-
} from "./tool-
|
|
11
|
+
} from "./tool-syavphgt.js";
|
|
12
12
|
import {
|
|
13
13
|
buildSolutionPackageFromDir,
|
|
14
14
|
uploadOrOverwriteSolution
|
|
15
|
-
} from "./tool-
|
|
15
|
+
} from "./tool-hvd48ege.js";
|
|
16
16
|
import {
|
|
17
17
|
RulesCommandError2,
|
|
18
18
|
isJsonObject2
|
|
19
|
-
} from "./tool-
|
|
19
|
+
} from "./tool-jzdt6z77.js";
|
|
20
20
|
import {
|
|
21
21
|
assertOneFolderOption2,
|
|
22
22
|
resolveRequiredFolder2
|
|
23
|
-
} from "./tool-
|
|
23
|
+
} from "./tool-sjp6fvze.js";
|
|
24
24
|
import {
|
|
25
25
|
findSolutionFile,
|
|
26
26
|
updateSolutionFile
|
|
27
|
-
} from "./tool-
|
|
27
|
+
} from "./tool-0tbve332.js";
|
|
28
28
|
import {
|
|
29
29
|
readRulesProjectNameAsync
|
|
30
|
-
} from "./tool-
|
|
30
|
+
} from "./tool-b475et36.js";
|
|
31
31
|
|
|
32
32
|
// src/services/rules-engine-client.ts
|
|
33
33
|
var DEBUG_EVALUATE_PATH = "/v1/business-rules/debug/evaluate";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem,
|
|
3
3
|
catchError
|
|
4
|
-
} from "./tool-
|
|
5
|
-
import"./tool-
|
|
6
|
-
import"./tool-
|
|
4
|
+
} from "./tool-syavphgt.js";
|
|
5
|
+
import"./tool-hvd48ege.js";
|
|
6
|
+
import"./tool-jzdt6z77.js";
|
|
7
7
|
import {
|
|
8
8
|
prepareProjectLocation,
|
|
9
9
|
tryRegisterProjectInParentSolution
|
|
10
|
-
} from "./tool-
|
|
10
|
+
} from "./tool-0tbve332.js";
|
|
11
11
|
import {
|
|
12
12
|
ENTRY_POINTS_FILE,
|
|
13
13
|
BINDINGS_FILE,
|
|
14
14
|
buildRuleEntryPointsAsync
|
|
15
|
-
} from "./tool-
|
|
15
|
+
} from "./tool-b475et36.js";
|
|
16
16
|
|
|
17
17
|
// src/services/project-artifacts.ts
|
|
18
18
|
async function ensureProjectArtifacts(args) {
|
|
19
|
-
const { addProjectArtifactsToSolutionAsync } = await import("./index-
|
|
19
|
+
const { addProjectArtifactsToSolutionAsync } = await import("./index-88sps467.js");
|
|
20
20
|
return addProjectArtifactsToSolutionAsync(args);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
getFileSystem,
|
|
3
3
|
catchError,
|
|
4
4
|
extractErrorMessageSync
|
|
5
|
-
} from "./tool-
|
|
5
|
+
} from "./tool-syavphgt.js";
|
|
6
6
|
import {
|
|
7
7
|
RulesCommandError2
|
|
8
|
-
} from "./tool-
|
|
8
|
+
} from "./tool-jzdt6z77.js";
|
|
9
9
|
import {
|
|
10
10
|
ENTRY_POINTS_FILE,
|
|
11
11
|
BINDINGS_FILE,
|
|
12
12
|
readRuleProjectAsync,
|
|
13
13
|
buildRuleEntryPointsAsync
|
|
14
|
-
} from "./tool-
|
|
14
|
+
} from "./tool-b475et36.js";
|
|
15
15
|
|
|
16
16
|
// src/services/rules-refresh-service.ts
|
|
17
17
|
async function refreshRuleProjectAsync(projectPath) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import"./tool-
|
|
2
|
-
import"./tool-
|
|
1
|
+
import"./tool-syavphgt.js";
|
|
2
|
+
import"./tool-jzdt6z77.js";
|
|
3
3
|
import {
|
|
4
4
|
ENTRY_POINTS_FILE,
|
|
5
5
|
readRuleProjectAsync,
|
|
6
6
|
buildRuleEntryPointsAsync
|
|
7
|
-
} from "./tool-
|
|
7
|
+
} from "./tool-b475et36.js";
|
|
8
8
|
|
|
9
9
|
// src/services/rules-validate-service.ts
|
|
10
10
|
async function validateRuleProjectAsync(projectPath) {
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
parseLimit,
|
|
11
11
|
parseOffset,
|
|
12
12
|
parseBoundedInt
|
|
13
|
-
} from "./tool-
|
|
13
|
+
} from "./tool-syavphgt.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.206.0-preview.
|
|
19
|
+
version: "1.206.0-preview.297",
|
|
20
20
|
description: "Create and manage UiPath Business Rules (DMN) projects.",
|
|
21
21
|
private: false,
|
|
22
22
|
repository: {
|
|
@@ -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-2x1vm0wt.js");
|
|
96
|
+
const { debugRuleProjectAsync } = await import("./rules-debug-service-4txqy47a.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-zfzwr08c.js");
|
|
193
|
+
const { reportRulesFailure, RulesCommandError } = await import("./rules-command-error-2x1vm0wt.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-780050xk.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-zfzwr08c.js");
|
|
240
|
+
const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.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);
|
|
@@ -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-yn3qf0z7.js");
|
|
294
294
|
const [error, result] = await catchError(rulesInitAsync(name, {
|
|
295
295
|
force: options.force,
|
|
296
296
|
skipRegistration: options.skipSolutionRegistration === true
|
|
@@ -366,7 +366,7 @@ 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 { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
|
|
370
370
|
const [error, result] = await catchError(listRules(options));
|
|
371
371
|
if (error) {
|
|
372
372
|
await reportRulesFailure("Failed to list business rules", error);
|
|
@@ -386,8 +386,8 @@ var registerListCommand = (program) => {
|
|
|
386
386
|
});
|
|
387
387
|
};
|
|
388
388
|
async function listRules(options) {
|
|
389
|
-
const rules = await import("./business-rules-
|
|
390
|
-
const { RulesCommandError } = await import("./rules-command-error-
|
|
389
|
+
const rules = await import("./business-rules-zfzwr08c.js");
|
|
390
|
+
const { RulesCommandError } = await import("./rules-command-error-2x1vm0wt.js");
|
|
391
391
|
const hasFolderSelector = options.folderPath !== undefined || options.folderKey !== undefined;
|
|
392
392
|
if (options.allFolders && hasFolderSelector) {
|
|
393
393
|
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 +410,11 @@ async function listRules(options) {
|
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
async function listRulesAcrossFolders(options) {
|
|
413
|
-
const { RulesCommandError } = await import("./rules-command-error-
|
|
413
|
+
const { RulesCommandError } = await import("./rules-command-error-2x1vm0wt.js");
|
|
414
414
|
if (options.tenant !== undefined) {
|
|
415
415
|
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
416
|
}
|
|
417
|
-
const { listRulesAcrossFoldersAsync } = await import("./rule-catalog-
|
|
417
|
+
const { listRulesAcrossFoldersAsync } = await import("./rule-catalog-780050xk.js");
|
|
418
418
|
const result = await listRulesAcrossFoldersAsync(options.limit, options.offset);
|
|
419
419
|
if (!result) {
|
|
420
420
|
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 +441,8 @@ var RULES_REFRESH_EXAMPLES = [
|
|
|
441
441
|
];
|
|
442
442
|
var registerRefreshCommand = (program) => {
|
|
443
443
|
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-
|
|
444
|
+
const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
|
|
445
|
+
const { refreshRuleProjectAsync } = await import("./rules-refresh-service-x3gfnfqt.js");
|
|
446
446
|
const [error, result] = await catchError(refreshRuleProjectAsync(projectPath));
|
|
447
447
|
if (error) {
|
|
448
448
|
await reportRulesFailure("Failed to refresh business rules package files", error);
|
|
@@ -480,8 +480,8 @@ var RULES_VALIDATE_EXAMPLES = [
|
|
|
480
480
|
];
|
|
481
481
|
var registerValidateCommand = (program) => {
|
|
482
482
|
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-
|
|
483
|
+
const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
|
|
484
|
+
const { validateRuleProjectAsync } = await import("./rules-validate-service-e47hgykv.js");
|
|
485
485
|
const [error, result] = await catchError(validateRuleProjectAsync(projectPath));
|
|
486
486
|
if (error) {
|
|
487
487
|
await reportRulesFailure("Failed to validate business rules project", error);
|
|
@@ -556,8 +556,8 @@ var RULES_VERSIONS_EXAMPLES = [
|
|
|
556
556
|
var registerVersionsCommand = (program) => {
|
|
557
557
|
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
558
|
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-
|
|
559
|
+
const rules = await import("./business-rules-zfzwr08c.js");
|
|
560
|
+
const { reportRulesFailure } = await import("./rules-command-error-2x1vm0wt.js");
|
|
561
561
|
const [error, page] = await catchError((async () => {
|
|
562
562
|
const folder = await rules.resolveRequiredFolder(options);
|
|
563
563
|
const api = await rules.createRulesApi(options.tenant, folder);
|
|
@@ -609,4 +609,4 @@ var registerCommands2 = async (program) => {
|
|
|
609
609
|
|
|
610
610
|
export { metadata2, registerCommands2 };
|
|
611
611
|
|
|
612
|
-
//# debugId=
|
|
612
|
+
//# debugId=9D63C7F101A8F90A64756E2164756E21
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem,
|
|
3
3
|
catchError
|
|
4
|
-
} from "./tool-
|
|
4
|
+
} from "./tool-syavphgt.js";
|
|
5
5
|
import {
|
|
6
6
|
RulesCommandError2,
|
|
7
7
|
isJsonObject2
|
|
8
|
-
} from "./tool-
|
|
8
|
+
} from "./tool-jzdt6z77.js";
|
|
9
9
|
|
|
10
10
|
// ../packager/packager-tool-businessrules/src/entry-point-id.ts
|
|
11
11
|
var EntryPointIdSalt = "uipath:business-rules:entry-point";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getSdkUserAgentToken,
|
|
5
5
|
addSdkUserAgentHeader,
|
|
6
6
|
installSdkUserAgentHeader
|
|
7
|
-
} from "./tool-
|
|
7
|
+
} from "./tool-syavphgt.js";
|
|
8
8
|
import {
|
|
9
9
|
__toESM,
|
|
10
10
|
__commonJS
|
|
@@ -1591,7 +1591,7 @@ var package_default = {
|
|
|
1591
1591
|
name: "@uipath/solution-sdk",
|
|
1592
1592
|
author: "UiPath",
|
|
1593
1593
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1594
|
-
version: "1.206.0-preview.
|
|
1594
|
+
version: "1.206.0-preview.297",
|
|
1595
1595
|
repository: {
|
|
1596
1596
|
type: "git",
|
|
1597
1597
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -1850,4 +1850,4 @@ var SUCCEEDED = "creationsucceeded";
|
|
|
1850
1850
|
var TERMINAL = new Set([SUCCEEDED, "creationfailed", "validationfailed"]);
|
|
1851
1851
|
export { buildSolutionPackageFromDir, uploadOrOverwriteSolution };
|
|
1852
1852
|
|
|
1853
|
-
//# debugId=
|
|
1853
|
+
//# debugId=695DA962F7F2A6AF64756E2164756E21
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
createApiClient,
|
|
4
4
|
resolveFolder,
|
|
5
5
|
quoteODataStringLiteral
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-3755q59j.js";
|
|
7
7
|
import {
|
|
8
8
|
RulesCommandError2
|
|
9
|
-
} from "./tool-
|
|
9
|
+
} from "./tool-jzdt6z77.js";
|
|
10
10
|
|
|
11
11
|
// src/services/business-rules.ts
|
|
12
12
|
function assertOneFolderOption2(options) {
|
|
@@ -7051,4 +7051,4 @@ var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
|
7051
7051
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
7052
7052
|
export { getFileSystem, catchError, extractErrorMessage, extractErrorMessageSync, RESULTS, classifiedFailure, Command, Option, logger, Pagination, OutputFormatter, processContext, DEFAULT_PAGE_SIZE, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType };
|
|
7053
7053
|
|
|
7054
|
-
//# debugId=
|
|
7054
|
+
//# debugId=98EBE696968BE03A64756E2164756E21
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
catchError,
|
|
4
4
|
logger,
|
|
5
5
|
isGuid
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-syavphgt.js";
|
|
7
7
|
import {
|
|
8
8
|
getLoginStatusAsync,
|
|
9
9
|
getAuthContext,
|
|
10
10
|
UsersApi,
|
|
11
11
|
createApiClient
|
|
12
|
-
} from "./tool-
|
|
12
|
+
} from "./tool-3755q59j.js";
|
|
13
13
|
import {
|
|
14
14
|
normalizeProjectType,
|
|
15
15
|
toPortableRelativePath
|
|
16
|
-
} from "./tool-
|
|
16
|
+
} from "./tool-0tbve332.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM,
|
|
19
19
|
__commonJS
|
|
@@ -6198,7 +6198,7 @@ class MultiFileSolutionDefinitionProvider {
|
|
|
6198
6198
|
const metadataReader = this.metadataReaderAccessor?.();
|
|
6199
6199
|
if (!metadataReader)
|
|
6200
6200
|
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-
|
|
6201
|
+
const { SolutionDefinitionHelper } = await import("./solution-definition-helper-trxp0zbj.js");
|
|
6202
6202
|
await new SolutionDefinitionHelper(metadataReader, this.logger).replaceDuplicateKeysAsync(solution, cancellationToken);
|
|
6203
6203
|
}
|
|
6204
6204
|
getSolutionKey(context) {
|
|
@@ -6522,7 +6522,7 @@ var service_tokens_ServiceLifetime = /* @__PURE__ */ function(ServiceLifetime) {
|
|
|
6522
6522
|
async function createDefaultEmbeddedFileReaderAsync() {
|
|
6523
6523
|
const [{ EmbeddedFileReader }, { JsonSerializerFactory }] = await Promise.all([
|
|
6524
6524
|
import("./embedded-file-reader-pxpwcq3n.js"),
|
|
6525
|
-
import("./index-
|
|
6525
|
+
import("./index-s9wmt93c.js")
|
|
6526
6526
|
]);
|
|
6527
6527
|
return new EmbeddedFileReader(new JsonSerializerFactory);
|
|
6528
6528
|
}
|
|
@@ -14301,7 +14301,7 @@ class FirstPartyServiceClientProxy {
|
|
|
14301
14301
|
const tenantKey = await this.accessProvider.getTenantKeyAsync(cancellationToken);
|
|
14302
14302
|
if (!accountKey)
|
|
14303
14303
|
throw new BadRequestException(ErrorCodes.AuthenticationFailed, "Unable to obtain account key");
|
|
14304
|
-
const client = new (await import("./first-party-service-
|
|
14304
|
+
const client = new (await import("./first-party-service-ej32b6j2.js")).FirstPartyServiceApi({
|
|
14305
14305
|
baseUrl: fullBaseUrl,
|
|
14306
14306
|
customFetch: fetchWithTimeout(LONG_RUNNING_TIMEOUT_MS),
|
|
14307
14307
|
baseApiParams: {
|
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.206.0-preview.
|
|
5
|
+
"version": "1.206.0-preview.297",
|
|
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": "8d037366da44f2a20a0bf10d0270d137a408f9f5"
|
|
31
31
|
}
|