@uipath/rules-tool 1.207.0-preview.309 → 1.207.0-preview.314
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-4b4d9pw6.js → business-rules-6f6d66v0.js} +2 -2
- package/dist/{first-party-service-7qzcrnd0.js → first-party-service-zpk4crh3.js} +1 -1
- package/dist/{index-d3xnveex.js → index-08x51pzz.js} +1 -1
- package/dist/{index-pxmthnvf.js → index-rpvcaj3m.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{rule-catalog-fsxqr6cq.js → rule-catalog-cp4af1cn.js} +3 -3
- package/dist/{rules-debug-service-y4akb0dw.js → rules-debug-service-q3336fhy.js} +3 -3
- package/dist/{rules-init-service-0gzgt8gy.js → rules-init-service-ffhz1kde.js} +2 -2
- package/dist/{solution-definition-helper-g2pt2ssz.js → solution-definition-helper-58x8yhrd.js} +1 -1
- package/dist/{tool-fsmgxvqa.js → tool-18bb0g1v.js} +10 -1
- package/dist/{tool-dq0wvfq4.js → tool-3xkth56h.js} +2 -2
- package/dist/{tool-827rm6jp.js → tool-6w8j2jte.js} +4 -4
- package/dist/{tool-x6g8zxfz.js → tool-a60cm3ss.js} +10 -10
- package/dist/{tool-2cxm18e8.js → tool-vftp2d1g.js} +1 -1
- package/dist/tool.js +1 -1
- package/package.json +2 -2
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
formatRule2,
|
|
8
8
|
formatRuleDetail2,
|
|
9
9
|
formatVersion2
|
|
10
|
-
} from "./tool-
|
|
11
|
-
import"./tool-
|
|
10
|
+
} from "./tool-vftp2d1g.js";
|
|
11
|
+
import"./tool-18bb0g1v.js";
|
|
12
12
|
import"./tool-c0peefw8.js";
|
|
13
13
|
import"./tool-5sgkktdb.js";
|
|
14
14
|
export {
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
exportResourceDefinitionAsync2,
|
|
8
8
|
ResourceExportError2,
|
|
9
9
|
readSpecEntryPoints2
|
|
10
|
-
} from "./tool-
|
|
10
|
+
} from "./tool-6w8j2jte.js";
|
|
11
11
|
import"./tool-kmzhfjw8.js";
|
|
12
|
-
import"./tool-
|
|
12
|
+
import"./tool-18bb0g1v.js";
|
|
13
13
|
import"./tool-5sgkktdb.js";
|
|
14
14
|
export {
|
|
15
15
|
ResourceExportError2 as ResourceExportError,
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
catchError,
|
|
3
3
|
extractErrorDetails
|
|
4
4
|
} from "./tool-5sgkktdb.js";
|
|
5
|
-
import"./tool-
|
|
5
|
+
import"./tool-18bb0g1v.js";
|
|
6
6
|
import {
|
|
7
7
|
getSolutionAuthContext,
|
|
8
8
|
createResourceBuilderServices2,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
exportResourceDefinitionAsync2,
|
|
13
13
|
ResourceExportError2,
|
|
14
14
|
readSpecEntryPoints2
|
|
15
|
-
} from "./tool-
|
|
15
|
+
} from "./tool-6w8j2jte.js";
|
|
16
16
|
import {
|
|
17
17
|
RulesCommandError2,
|
|
18
18
|
DEPLOYED_RULES_FORBIDDEN_MESSAGE2
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
createRulesApi2,
|
|
22
22
|
findRuleByName2
|
|
23
|
-
} from "./tool-
|
|
23
|
+
} from "./tool-vftp2d1g.js";
|
|
24
24
|
import"./tool-kmzhfjw8.js";
|
|
25
25
|
|
|
26
26
|
// src/services/rule-catalog.ts
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getAuthContext,
|
|
3
3
|
PersonalWorkspacesApi,
|
|
4
4
|
createApiClient
|
|
5
|
-
} from "./tool-
|
|
5
|
+
} from "./tool-18bb0g1v.js";
|
|
6
6
|
import {
|
|
7
7
|
getFileSystem,
|
|
8
8
|
catchError,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
buildSolutionPackageFromDir,
|
|
16
16
|
uploadOrOverwriteSolution
|
|
17
|
-
} from "./tool-
|
|
17
|
+
} from "./tool-3xkth56h.js";
|
|
18
18
|
import {
|
|
19
19
|
RulesCommandError2,
|
|
20
20
|
isJsonObject2
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
assertOneFolderOption2,
|
|
24
24
|
resolveRequiredFolder2
|
|
25
|
-
} from "./tool-
|
|
25
|
+
} from "./tool-vftp2d1g.js";
|
|
26
26
|
import {
|
|
27
27
|
findSolutionFile,
|
|
28
28
|
updateSolutionFile
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getFileSystem,
|
|
3
3
|
catchError
|
|
4
4
|
} from "./tool-5sgkktdb.js";
|
|
5
|
-
import"./tool-
|
|
5
|
+
import"./tool-3xkth56h.js";
|
|
6
6
|
import"./tool-c0peefw8.js";
|
|
7
7
|
import {
|
|
8
8
|
prepareProjectLocation,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
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-rpvcaj3m.js");
|
|
20
20
|
return addProjectArtifactsToSolutionAsync(args);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -3986,6 +3986,15 @@ class UsersApi extends BaseAPI {
|
|
|
3986
3986
|
await this.usersPutByIdRaw(requestParameters, initOverrides);
|
|
3987
3987
|
}
|
|
3988
3988
|
}
|
|
3989
|
+
// ../orchestrator-sdk/src/blob-access.ts
|
|
3990
|
+
var ORCHESTRATOR_AUTH_HEADERS = new Set([
|
|
3991
|
+
"Authorization",
|
|
3992
|
+
"X-UIPATH-OrganizationUnitId",
|
|
3993
|
+
"X-UIPATH-FolderKey",
|
|
3994
|
+
"X-UIPATH-FolderPath",
|
|
3995
|
+
"X-UIPATH-FolderPath-Encoded",
|
|
3996
|
+
"X-UIPATH-TenantId"
|
|
3997
|
+
].map((name) => name.toLowerCase()));
|
|
3989
3998
|
// ../orchestrator-sdk/src/folder-runtimes.ts
|
|
3990
3999
|
var FOLDER_RUNTIMES = {
|
|
3991
4000
|
[MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.Process]: [
|
|
@@ -4017,4 +4026,4 @@ var KB_INLINE_LIMITS = {
|
|
|
4017
4026
|
};
|
|
4018
4027
|
export { getLoginStatusAsync, getAuthContext, BusinessRulesApi, PersonalWorkspacesApi, UsersApi, createApiClient, resolveFolder, quoteODataStringLiteral };
|
|
4019
4028
|
|
|
4020
|
-
//# debugId=
|
|
4029
|
+
//# debugId=9759F133990853D164756E2164756E21
|
|
@@ -1594,7 +1594,7 @@ var package_default = {
|
|
|
1594
1594
|
name: "@uipath/solution-sdk",
|
|
1595
1595
|
author: "UiPath",
|
|
1596
1596
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1597
|
-
version: "1.207.0-preview.
|
|
1597
|
+
version: "1.207.0-preview.314",
|
|
1598
1598
|
repository: {
|
|
1599
1599
|
type: "git",
|
|
1600
1600
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -1857,4 +1857,4 @@ var SUCCEEDED = "creationsucceeded";
|
|
|
1857
1857
|
var TERMINAL = new Set([SUCCEEDED, "creationfailed", "validationfailed"]);
|
|
1858
1858
|
export { buildSolutionPackageFromDir, uploadOrOverwriteSolution };
|
|
1859
1859
|
|
|
1860
|
-
//# debugId=
|
|
1860
|
+
//# debugId=78E4267F8565C52164756E2164756E21
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getAuthContext,
|
|
10
10
|
UsersApi,
|
|
11
11
|
createApiClient
|
|
12
|
-
} from "./tool-
|
|
12
|
+
} from "./tool-18bb0g1v.js";
|
|
13
13
|
import {
|
|
14
14
|
normalizeProjectType,
|
|
15
15
|
toPortableRelativePath
|
|
@@ -6204,7 +6204,7 @@ class MultiFileSolutionDefinitionProvider {
|
|
|
6204
6204
|
const metadataReader = this.metadataReaderAccessor?.();
|
|
6205
6205
|
if (!metadataReader)
|
|
6206
6206
|
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);
|
|
6207
|
-
const { SolutionDefinitionHelper } = await import("./solution-definition-helper-
|
|
6207
|
+
const { SolutionDefinitionHelper } = await import("./solution-definition-helper-58x8yhrd.js");
|
|
6208
6208
|
await new SolutionDefinitionHelper(metadataReader, this.logger).replaceDuplicateKeysAsync(solution, cancellationToken);
|
|
6209
6209
|
}
|
|
6210
6210
|
getSolutionKey(context) {
|
|
@@ -6529,7 +6529,7 @@ var service_tokens_ServiceLifetime = /* @__PURE__ */ function(ServiceLifetime) {
|
|
|
6529
6529
|
async function createDefaultEmbeddedFileReaderAsync() {
|
|
6530
6530
|
const [{ EmbeddedFileReader }, { JsonSerializerFactory }] = await Promise.all([
|
|
6531
6531
|
import("./embedded-file-reader-k94wt612.js"),
|
|
6532
|
-
import("./index-
|
|
6532
|
+
import("./index-08x51pzz.js")
|
|
6533
6533
|
]);
|
|
6534
6534
|
return new EmbeddedFileReader(new JsonSerializerFactory);
|
|
6535
6535
|
}
|
|
@@ -16295,7 +16295,7 @@ class FirstPartyServiceClientProxy {
|
|
|
16295
16295
|
const tenantKey = await this.accessProvider.getTenantKeyAsync(cancellationToken);
|
|
16296
16296
|
if (!accountKey)
|
|
16297
16297
|
throw new BadRequestException(ErrorCodes.AuthenticationFailed, "Unable to obtain account key");
|
|
16298
|
-
const client = new (await import("./first-party-service-
|
|
16298
|
+
const client = new (await import("./first-party-service-zpk4crh3.js")).FirstPartyServiceApi({
|
|
16299
16299
|
baseUrl: fullBaseUrl,
|
|
16300
16300
|
customFetch: fetchWithTimeout(LONG_RUNNING_TIMEOUT_MS),
|
|
16301
16301
|
baseApiParams: {
|
|
@@ -16,7 +16,7 @@ var package_default = {
|
|
|
16
16
|
name: "@uipath/rules-tool",
|
|
17
17
|
author: "UiPath",
|
|
18
18
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
19
|
-
version: "1.207.0-preview.
|
|
19
|
+
version: "1.207.0-preview.314",
|
|
20
20
|
description: "Create and manage UiPath Business Rules (DMN) projects.",
|
|
21
21
|
private: false,
|
|
22
22
|
repository: {
|
|
@@ -93,7 +93,7 @@ var RULES_DEBUG_EXAMPLES = [
|
|
|
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
95
|
const { reportRulesFailure } = await import("./rules-command-error-5jq3z0ny.js");
|
|
96
|
-
const { debugRuleProjectAsync } = await import("./rules-debug-service-
|
|
96
|
+
const { debugRuleProjectAsync } = await import("./rules-debug-service-q3336fhy.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,7 +189,7 @@ 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-
|
|
192
|
+
const rules = await import("./business-rules-6f6d66v0.js");
|
|
193
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."));
|
|
@@ -197,7 +197,7 @@ var registerDescribeCommand = (program) => {
|
|
|
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-cp4af1cn.js");
|
|
201
201
|
return describeRuleAsync(name, folder);
|
|
202
202
|
})());
|
|
203
203
|
if (error) {
|
|
@@ -236,7 +236,7 @@ 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-
|
|
239
|
+
const rules = await import("./business-rules-6f6d66v0.js");
|
|
240
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);
|
|
@@ -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-ffhz1kde.js");
|
|
294
294
|
const [error, result] = await catchError(rulesInitAsync(name, {
|
|
295
295
|
force: options.force,
|
|
296
296
|
skipRegistration: options.skipSolutionRegistration === true
|
|
@@ -388,7 +388,7 @@ var registerListCommand = (program) => {
|
|
|
388
388
|
});
|
|
389
389
|
};
|
|
390
390
|
async function listRules(options) {
|
|
391
|
-
const rules = await import("./business-rules-
|
|
391
|
+
const rules = await import("./business-rules-6f6d66v0.js");
|
|
392
392
|
const { RulesCommandError } = await import("./rules-command-error-5jq3z0ny.js");
|
|
393
393
|
const hasFolderSelector = options.folderPath !== undefined || options.folderKey !== undefined;
|
|
394
394
|
if (options.allFolders && hasFolderSelector) {
|
|
@@ -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-cp4af1cn.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.");
|
|
@@ -558,7 +558,7 @@ var RULES_VERSIONS_EXAMPLES = [
|
|
|
558
558
|
var registerVersionsCommand = (program) => {
|
|
559
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");
|
|
560
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) => {
|
|
561
|
-
const rules = await import("./business-rules-
|
|
561
|
+
const rules = await import("./business-rules-6f6d66v0.js");
|
|
562
562
|
const { DEPLOYED_RULES_FORBIDDEN_MESSAGE, reportRulesFailure } = await import("./rules-command-error-5jq3z0ny.js");
|
|
563
563
|
const [error, page] = await catchError((async () => {
|
|
564
564
|
const folder = await rules.resolveRequiredFolder(options);
|
|
@@ -611,4 +611,4 @@ var registerCommands2 = async (program) => {
|
|
|
611
611
|
|
|
612
612
|
export { metadata2, registerCommands2 };
|
|
613
613
|
|
|
614
|
-
//# debugId=
|
|
614
|
+
//# debugId=01FD091F82BDC61F64756E2164756E21
|
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.207.0-preview.
|
|
5
|
+
"version": "1.207.0-preview.314",
|
|
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": "9aee7acc666f8511e30cd28417fa5f24d5ae716c"
|
|
31
31
|
}
|