@uipath/rules-tool 1.205.0-preview.285 → 1.205.0-preview.293
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 +2 -2
- 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-8hykcr25.js → rules-debug-service-7vc3g7tk.js} +1 -1
- package/dist/{rules-init-service-sbsq60pf.js → rules-init-service-daw8tqyc.js} +2 -2
- package/dist/{tool-cazmymbt.js → tool-gzskk4mp.js} +3 -3
- package/dist/{tool-gdtpsdn7.js → tool-j98qvwdt.js} +8 -2
- package/dist/{tool-fbxe48wd.js → tool-mxkne7ws.js} +219 -70
- package/dist/{tool-x57mthxt.js → tool-thv1akpr.js} +6 -6
- package/dist/tool.js +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
JsonSerializerNames,
|
|
4
4
|
JsonSerializerProxy,
|
|
5
5
|
StreamSerializer
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-j98qvwdt.js";
|
|
7
7
|
import {
|
|
8
8
|
FirstPartyServiceApi
|
|
9
9
|
} from "./tool-53w8skv5.js";
|
|
@@ -3609,6 +3609,7 @@ var ErrorCodes = {
|
|
|
3609
3609
|
ResourceAttributeMismatch: "2023",
|
|
3610
3610
|
AppSystemNameConflict: "2024",
|
|
3611
3611
|
InvalidResourceFile: "2025",
|
|
3612
|
+
DuplicatePackageName: "2026",
|
|
3612
3613
|
ResourceNotFound: "1000",
|
|
3613
3614
|
ResourceAlreadyExists: "Resources.ResourceAlreadyExists",
|
|
3614
3615
|
ResourceDependencyNotFound: "Resources.ResourceDependencyNotFound",
|
|
@@ -4137,6 +4138,30 @@ function getPackageType(processResourceType) {
|
|
|
4137
4138
|
return processResourceType;
|
|
4138
4139
|
return processTypeToPackageTypeMap[processResourceType.toLowerCase()] ?? processResourceType;
|
|
4139
4140
|
}
|
|
4141
|
+
function generatePackageName(solutionName, projectName, processResourceType) {
|
|
4142
|
+
const packageType = getPackageType(processResourceType) ?? "";
|
|
4143
|
+
const truncateCharsNo = Math.floor((PACKAGE_NAME_MAX_LENGTH - PACKAGE_NAME_SEPARATION_CHARS - packageType.length) / 2);
|
|
4144
|
+
return sanitizeNuGetPackageName(`${truncate(solutionName, truncateCharsNo)}.${packageType}.${truncate(projectName, truncateCharsNo)}`);
|
|
4145
|
+
}
|
|
4146
|
+
function resolvePackageNameAfterRename(processResource, solutionName, projectName, oldSolutionName, oldProjectName) {
|
|
4147
|
+
const currentPackageName = processResource.spec?.[WellKnownPropertyNames.PackageName];
|
|
4148
|
+
if (!solutionName)
|
|
4149
|
+
return currentPackageName ?? undefined;
|
|
4150
|
+
const oldGeneratedPackageName = generatePackageName(oldSolutionName ?? "", oldProjectName ?? processResource.name, processResource.type);
|
|
4151
|
+
return currentPackageName && currentPackageName.toLowerCase() !== oldGeneratedPackageName.toLowerCase() ? currentPackageName : generatePackageName(solutionName, projectName, processResource.type);
|
|
4152
|
+
}
|
|
4153
|
+
function findPackageNameConflict(solution, projectKey, solutionName, packageName) {
|
|
4154
|
+
if (!packageName)
|
|
4155
|
+
return;
|
|
4156
|
+
const wanted = packageName.toLowerCase();
|
|
4157
|
+
return solution.resources.find((resource) => resource.projectKey !== undefined && resource.projectKey !== projectKey && resource.kind.toLowerCase() === WellKnownProjectType.Process.toLowerCase() && effectivePackageName(resource, solutionName)?.toLowerCase() === wanted);
|
|
4158
|
+
}
|
|
4159
|
+
function effectivePackageName(processResource, solutionName) {
|
|
4160
|
+
const packageName = processResource.spec?.[WellKnownPropertyNames.PackageName];
|
|
4161
|
+
if (packageName)
|
|
4162
|
+
return packageName;
|
|
4163
|
+
return solutionName ? generatePackageName(solutionName, processResource.name, processResource.type) : undefined;
|
|
4164
|
+
}
|
|
4140
4165
|
function changePackageName(processResource, solutionName, projectName, oldSolutionName, oldProjectName) {
|
|
4141
4166
|
if (!solutionName)
|
|
4142
4167
|
return false;
|
|
@@ -4145,11 +4170,9 @@ function changePackageName(processResource, solutionName, projectName, oldSoluti
|
|
|
4145
4170
|
spec[WellKnownPropertyNames.PackageName] = null;
|
|
4146
4171
|
processResource.spec = spec;
|
|
4147
4172
|
const currentPackageName = spec[WellKnownPropertyNames.PackageName];
|
|
4148
|
-
const
|
|
4149
|
-
const truncateCharsNo = Math.floor((PACKAGE_NAME_MAX_LENGTH - PACKAGE_NAME_SEPARATION_CHARS - packageType.length) / 2);
|
|
4150
|
-
const newPackageName = sanitizeNuGetPackageName(`${truncate(solutionName, truncateCharsNo)}.${packageType}.${truncate(projectName, truncateCharsNo)}`);
|
|
4173
|
+
const newPackageName = generatePackageName(solutionName, projectName, processResource.type);
|
|
4151
4174
|
const projectNameForOldPackage = oldProjectName ?? processResource.name;
|
|
4152
|
-
const oldGeneratedPackageName =
|
|
4175
|
+
const oldGeneratedPackageName = generatePackageName(oldSolutionName ?? "", projectNameForOldPackage, processResource.type);
|
|
4153
4176
|
if (!currentPackageName || currentPackageName.toLowerCase() === oldGeneratedPackageName.toLowerCase()) {
|
|
4154
4177
|
spec[WellKnownPropertyNames.PackageName] = newPackageName;
|
|
4155
4178
|
renamePackageDependencies(processResource, projectNameForOldPackage, projectName);
|
|
@@ -4360,8 +4383,15 @@ class MultiFileSolutionDefinitionProvider {
|
|
|
4360
4383
|
return withFileOperationTimeout2(provider, resolveFileOperationTimeoutMs(this.options));
|
|
4361
4384
|
}
|
|
4362
4385
|
async readAsync(context, cancellationToken) {
|
|
4386
|
+
return this.readWithKindsAsync(context, undefined, cancellationToken);
|
|
4387
|
+
}
|
|
4388
|
+
async readKindsAsync(context, kinds, cancellationToken) {
|
|
4389
|
+
return this.readWithKindsAsync(context, context.isReadOnly ? kinds : undefined, cancellationToken);
|
|
4390
|
+
}
|
|
4391
|
+
async readWithKindsAsync(context, kinds, cancellationToken) {
|
|
4363
4392
|
this.logger.info("Reading multi-file solution definition for solution %s", context.path);
|
|
4364
4393
|
const loadStarted = nowMs();
|
|
4394
|
+
let listedFileCount = 0;
|
|
4365
4395
|
let fileCount = 0;
|
|
4366
4396
|
let listMs = 0;
|
|
4367
4397
|
let readStarted = loadStarted;
|
|
@@ -4399,9 +4429,11 @@ class MultiFileSolutionDefinitionProvider {
|
|
|
4399
4429
|
loaded: loadedCount,
|
|
4400
4430
|
missing: missingFiles.length,
|
|
4401
4431
|
invalid: invalidFiles.length,
|
|
4402
|
-
parseErrors: parseErrors.length
|
|
4432
|
+
parseErrors: parseErrors.length,
|
|
4433
|
+
kinds: kinds?.join(",") ?? "*",
|
|
4434
|
+
listedFileCount
|
|
4403
4435
|
};
|
|
4404
|
-
const message = `Solution read ${outcome} for solution ${context.path}: ${metrics.fileCount} files in ${metrics.totalMs} ms (list ${metrics.listMs} ms, read ${metrics.readWallMs} ms wall, io ${metrics.ioMs} ms summed, max file io ${metrics.maxFileIoMs} ms, parse ${metrics.parseMs} ms, hash ${metrics.hashMs} ms, merge ${metrics.mergeMs} ms); ${metrics.chars} chars; parallelism ${metrics.degreeOfParallelism}; readOnly ${metrics.isReadOnly}; loaded ${metrics.loaded}, missing ${metrics.missing}, invalid ${metrics.invalid}, parseErrors ${metrics.parseErrors}`;
|
|
4436
|
+
const message = `Solution read ${outcome} for solution ${context.path}: ${metrics.fileCount} files in ${metrics.totalMs} ms (list ${metrics.listMs} ms, read ${metrics.readWallMs} ms wall, io ${metrics.ioMs} ms summed, max file io ${metrics.maxFileIoMs} ms, parse ${metrics.parseMs} ms, hash ${metrics.hashMs} ms, merge ${metrics.mergeMs} ms); ${metrics.chars} chars; parallelism ${metrics.degreeOfParallelism}; readOnly ${metrics.isReadOnly}; loaded ${metrics.loaded}, missing ${metrics.missing}, invalid ${metrics.invalid}, parseErrors ${metrics.parseErrors}; kinds ${metrics.kinds}, listed ${metrics.listedFileCount}`;
|
|
4405
4437
|
if (outcome === "Success")
|
|
4406
4438
|
this.logger.info(message, metrics);
|
|
4407
4439
|
else
|
|
@@ -4427,8 +4459,11 @@ class MultiFileSolutionDefinitionProvider {
|
|
|
4427
4459
|
tree.length = 0;
|
|
4428
4460
|
}
|
|
4429
4461
|
const listStarted = nowMs();
|
|
4430
|
-
const
|
|
4462
|
+
const listedFiles = await fileStorageProvider.getFilesAsync(SolutionConstants.RESOURCE_FILES_FOLDER_NAME, "*.json", cancellationToken);
|
|
4431
4463
|
listMs = nowMs() - listStarted;
|
|
4464
|
+
listedFileCount = listedFiles.length;
|
|
4465
|
+
const wantedKinds = kinds && new Set(kinds.map((k) => k.toLowerCase()));
|
|
4466
|
+
const resourceFiles = wantedKinds === undefined ? listedFiles : listedFiles.filter((resourceFile) => MultiFileSolutionDefinitionProvider.mayHoldAnyKind(resourceFile, wantedKinds));
|
|
4432
4467
|
fileCount = resourceFiles.length;
|
|
4433
4468
|
readStarted = nowMs();
|
|
4434
4469
|
const readResults = await this.readResourceFilesAsync(context, fileStorageProvider, resourceFiles, cancellationToken);
|
|
@@ -4671,6 +4706,10 @@ class MultiFileSolutionDefinitionProvider {
|
|
|
4671
4706
|
};
|
|
4672
4707
|
}
|
|
4673
4708
|
}
|
|
4709
|
+
static mayHoldAnyKind(resourceFile, lowerCaseKinds) {
|
|
4710
|
+
const segments = resourceFile.replace(/\\/g, "/").split("/").filter((s) => s.length > 0);
|
|
4711
|
+
return segments.slice(0, -1).some((segment) => lowerCaseKinds.has(segment.toLowerCase()));
|
|
4712
|
+
}
|
|
4674
4713
|
applyFolders(resource, resourceFile) {
|
|
4675
4714
|
const relPath = resourceFile.replace(/\\/g, "/");
|
|
4676
4715
|
const segments = relPath.split("/").filter((s) => s.length > 0);
|
|
@@ -4774,6 +4813,8 @@ class MultiFileSolutionDefinitionProvider {
|
|
|
4774
4813
|
newPaths.forEach((value, key) => {
|
|
4775
4814
|
existingPaths.set(key, value);
|
|
4776
4815
|
});
|
|
4816
|
+
existingTree.length = 0;
|
|
4817
|
+
existingTree.push(...orderedResourceKeys);
|
|
4777
4818
|
}
|
|
4778
4819
|
async deleteFilesAsync(context, filesToDelete, cancellationToken) {
|
|
4779
4820
|
if (!filesToDelete || filesToDelete.length === 0 || context.isReadOnly)
|
|
@@ -5003,8 +5044,8 @@ class MultiFileSolutionDefinitionFactory {
|
|
|
5003
5044
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/embedded-files-default.js
|
|
5004
5045
|
async function createDefaultEmbeddedFileReaderAsync() {
|
|
5005
5046
|
const [{ EmbeddedFileReader }, { JsonSerializerFactory: JsonSerializerFactory2 }] = await Promise.all([
|
|
5006
|
-
import("./embedded-file-reader-
|
|
5007
|
-
import("./index-
|
|
5047
|
+
import("./embedded-file-reader-1r9d51g0.js"),
|
|
5048
|
+
import("./index-ys3gmgf0.js")
|
|
5008
5049
|
]);
|
|
5009
5050
|
return new EmbeddedFileReader(new JsonSerializerFactory2);
|
|
5010
5051
|
}
|
|
@@ -5618,7 +5659,103 @@ class BindingOverwritesMappingRequest {
|
|
|
5618
5659
|
}
|
|
5619
5660
|
}
|
|
5620
5661
|
|
|
5662
|
+
// ../../node_modules/@uipath/resource-builder-sdk/dist/bindings/jit-debug-project-types.js
|
|
5663
|
+
var JIT_DEBUG_PROJECT_TYPES_FEATURE_FLAG = "FE.JitDebugProjectTypes";
|
|
5664
|
+
var PROCESS_KIND = "process";
|
|
5665
|
+
var BUSINESS_RULE_KIND = "businessrule";
|
|
5666
|
+
var APP_KIND = "app";
|
|
5667
|
+
var LOW_CODE_APP_PROJECT_TYPE = "webapp";
|
|
5668
|
+
var LOW_CODE_APP_TYPES = new Set([
|
|
5669
|
+
"workflow action"
|
|
5670
|
+
]);
|
|
5671
|
+
var CODED_APP_PROJECT_TYPE = "appv2";
|
|
5672
|
+
var CODED_APP_TYPES = new Set([
|
|
5673
|
+
"coded",
|
|
5674
|
+
"codedaction"
|
|
5675
|
+
]);
|
|
5676
|
+
var DEFAULT_PROCESS_PROJECT_TYPE = "process";
|
|
5677
|
+
var KNOWN_PROCESS_PROJECT_TYPES = new Set([
|
|
5678
|
+
DEFAULT_PROCESS_PROJECT_TYPE,
|
|
5679
|
+
"processorchestration",
|
|
5680
|
+
"agent",
|
|
5681
|
+
"api",
|
|
5682
|
+
"flow",
|
|
5683
|
+
"function",
|
|
5684
|
+
"casemanagement",
|
|
5685
|
+
"webapp",
|
|
5686
|
+
"businessrules"
|
|
5687
|
+
]);
|
|
5688
|
+
var BUSINESS_RULE_PROJECT_TYPE = "businessrules";
|
|
5689
|
+
function parseJitDebugProjectTypes(flagValue) {
|
|
5690
|
+
if (!flagValue || !flagValue.trim())
|
|
5691
|
+
return [];
|
|
5692
|
+
return flagValue.split(",").map((t) => t.trim()).filter((t) => t.length > 0);
|
|
5693
|
+
}
|
|
5694
|
+
function solutionSupportsJitDebug(solution, flagValue) {
|
|
5695
|
+
const enabledProjectTypes = parseJitDebugProjectTypes(flagValue).map((t) => t.toLowerCase());
|
|
5696
|
+
if (enabledProjectTypes.length === 0)
|
|
5697
|
+
return false;
|
|
5698
|
+
return (solution.resources ?? []).filter((r) => (r.projectKey != null || r.isArtefactResource === true) && isDecisionKind(r.kind)).every((r) => enabledProjectTypes.some((projectType) => matches(projectType, r)));
|
|
5699
|
+
}
|
|
5700
|
+
function isDecisionKind(kind) {
|
|
5701
|
+
const normalized = (kind ?? "").toLowerCase();
|
|
5702
|
+
return normalized === PROCESS_KIND || normalized === BUSINESS_RULE_KIND || normalized === APP_KIND;
|
|
5703
|
+
}
|
|
5704
|
+
function matches(projectType, resource) {
|
|
5705
|
+
if ((resource.kind ?? "").toLowerCase() === BUSINESS_RULE_KIND)
|
|
5706
|
+
return projectType === BUSINESS_RULE_PROJECT_TYPE;
|
|
5707
|
+
if ((resource.kind ?? "").toLowerCase() === APP_KIND) {
|
|
5708
|
+
const appType = (resource.type ?? "").toLowerCase();
|
|
5709
|
+
if (appType === "" || LOW_CODE_APP_TYPES.has(appType))
|
|
5710
|
+
return projectType === LOW_CODE_APP_PROJECT_TYPE;
|
|
5711
|
+
return CODED_APP_TYPES.has(appType) && projectType === CODED_APP_PROJECT_TYPE;
|
|
5712
|
+
}
|
|
5713
|
+
const resourceType = (resource.type ?? "").toLowerCase();
|
|
5714
|
+
const processType = resourceType === "" ? DEFAULT_PROCESS_PROJECT_TYPE : resourceType;
|
|
5715
|
+
return !KNOWN_PROCESS_PROJECT_TYPES.has(processType) || projectType === processType;
|
|
5716
|
+
}
|
|
5717
|
+
|
|
5718
|
+
// ../../node_modules/@uipath/resource-builder-sdk/dist/services/overwrites/models.js
|
|
5719
|
+
var models_ValidationSeverity = /* @__PURE__ */ function(ValidationSeverity) {
|
|
5720
|
+
ValidationSeverity["Warning"] = "Warning";
|
|
5721
|
+
ValidationSeverity["Critical"] = "Critical";
|
|
5722
|
+
return ValidationSeverity;
|
|
5723
|
+
}({});
|
|
5724
|
+
var models_OverwriteType = /* @__PURE__ */ function(OverwriteType) {
|
|
5725
|
+
OverwriteType["Install"] = "Install";
|
|
5726
|
+
OverwriteType["Reference"] = "Reference";
|
|
5727
|
+
return OverwriteType;
|
|
5728
|
+
}({});
|
|
5729
|
+
function createLocalizableMessage(key, ...args) {
|
|
5730
|
+
return {
|
|
5731
|
+
key,
|
|
5732
|
+
args: args.length > 0 ? args : undefined
|
|
5733
|
+
};
|
|
5734
|
+
}
|
|
5735
|
+
function createMissingRcsResources(missingKeys, error) {
|
|
5736
|
+
return {
|
|
5737
|
+
missingResourceKeys: missingKeys instanceof Set ? missingKeys : new Set(missingKeys),
|
|
5738
|
+
error
|
|
5739
|
+
};
|
|
5740
|
+
}
|
|
5741
|
+
function setValidationError(errors, resourceKey, dto) {
|
|
5742
|
+
const error = errors.get(resourceKey);
|
|
5743
|
+
if (error)
|
|
5744
|
+
dto.validationError = error;
|
|
5745
|
+
}
|
|
5746
|
+
var DebugOverwritesConstants = {
|
|
5747
|
+
ResourceOverwritesFileName: "debug_overwrites.json",
|
|
5748
|
+
CurrentOverwritesDocVersion: "1.0"
|
|
5749
|
+
};
|
|
5750
|
+
|
|
5621
5751
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/bindings/binding-overwrites-handler.js
|
|
5752
|
+
var FOLDER_KEY_RESOURCE_TYPES = new Set([
|
|
5753
|
+
models_BindingsResourceType.Entity,
|
|
5754
|
+
models_BindingsResourceType.Asset,
|
|
5755
|
+
models_BindingsResourceType.Queue,
|
|
5756
|
+
models_BindingsResourceType.Process
|
|
5757
|
+
]);
|
|
5758
|
+
|
|
5622
5759
|
class BindingOverwritesHandler {
|
|
5623
5760
|
async handleAsync(request, cancellationToken) {
|
|
5624
5761
|
if (request instanceof BindingOverwritesValidationCommand)
|
|
@@ -5633,6 +5770,10 @@ class BindingOverwritesHandler {
|
|
|
5633
5770
|
if (bindingResources.length === 0)
|
|
5634
5771
|
return {};
|
|
5635
5772
|
const result = {};
|
|
5773
|
+
const solution = await request.context.loadAsync(cancellationToken);
|
|
5774
|
+
const jitDebugProjectTypes = this.featureFlagProvider.getString(JIT_DEBUG_PROJECT_TYPES_FEATURE_FLAG, "");
|
|
5775
|
+
const emptyFolderPathForArtefacts = solutionSupportsJitDebug(solution, jitDebugProjectTypes);
|
|
5776
|
+
this.logger.info(`Binding overwrites for solution ${request.context.path}: JIT debug ${emptyFolderPathForArtefacts ? "on" : "off"} (FE.JitDebugProjectTypes = '${jitDebugProjectTypes}')`);
|
|
5636
5777
|
const resourceOverwrites = await this.resourceOverwritesService.getResourceOverwritesAsync(request.context, cancellationToken);
|
|
5637
5778
|
for (const bindingResource of bindingResources) {
|
|
5638
5779
|
const resourceOverwrite = resourceOverwrites.get(bindingResource.resourceKey.toLowerCase());
|
|
@@ -5645,13 +5786,15 @@ class BindingOverwritesHandler {
|
|
|
5645
5786
|
[BindingsKnownKeys.FolderKeyPropertyName]: resourceOverwrite.folderKey ?? ""
|
|
5646
5787
|
};
|
|
5647
5788
|
else {
|
|
5648
|
-
const
|
|
5789
|
+
const resolvesInDebugFolder = emptyFolderPathForArtefacts && bindingResource.isArtefactResource;
|
|
5790
|
+
const folderPath = resolvesInDebugFolder ? "" : resourceOverwrite.folderFullyQualifiedName ?? "";
|
|
5791
|
+
const name = resourceOverwrite.type === models_OverwriteType.Install && bindingResource.isArtefactResource && bindingResource.resourceName ? bindingResource.resourceName : resourceOverwrite.resourceName;
|
|
5649
5792
|
overwrite = {
|
|
5650
5793
|
[BindingsKnownKeys.FolderPathPropertyName]: folderPath,
|
|
5651
|
-
[BindingsKnownKeys.NamePropertyName]:
|
|
5794
|
+
[BindingsKnownKeys.NamePropertyName]: name
|
|
5652
5795
|
};
|
|
5653
|
-
if (bindingResource.binding.resourceType
|
|
5654
|
-
overwrite[BindingsKnownKeys.FolderKeyPropertyName] = resourceOverwrite.folderKey ?? "";
|
|
5796
|
+
if (FOLDER_KEY_RESOURCE_TYPES.has(bindingResource.binding.resourceType))
|
|
5797
|
+
overwrite[BindingsKnownKeys.FolderKeyPropertyName] = resolvesInDebugFolder ? "" : resourceOverwrite.folderKey ?? "";
|
|
5655
5798
|
}
|
|
5656
5799
|
const key = getOverrideKey(bindingResource.binding);
|
|
5657
5800
|
result[key] = overwrite;
|
|
@@ -5667,9 +5810,10 @@ class BindingOverwritesHandler {
|
|
|
5667
5810
|
throw new BadRequestException("Bindings.ValidationFailed", `Binding validation failed: ${failureMessages}`);
|
|
5668
5811
|
}
|
|
5669
5812
|
}
|
|
5670
|
-
constructor(mediator, resourceOverwritesService, loggerFactory) {
|
|
5813
|
+
constructor(mediator, resourceOverwritesService, loggerFactory, featureFlagProvider) {
|
|
5671
5814
|
this.mediator = mediator;
|
|
5672
5815
|
this.resourceOverwritesService = resourceOverwritesService;
|
|
5816
|
+
this.featureFlagProvider = featureFlagProvider;
|
|
5673
5817
|
this.logger = loggerFactory.create("BindingOverwritesHandler");
|
|
5674
5818
|
}
|
|
5675
5819
|
}
|
|
@@ -5709,7 +5853,8 @@ class BindingOverwritesMappingRequestHandler {
|
|
|
5709
5853
|
binding: bindingsResource,
|
|
5710
5854
|
resourceKey: resource.key,
|
|
5711
5855
|
isArtefactResource: resource.projectKey != null,
|
|
5712
|
-
isCodedApp: bindingsResource.resourceType === models_BindingsResourceType.App && isCodedAppType(resource.type)
|
|
5856
|
+
isCodedApp: bindingsResource.resourceType === models_BindingsResourceType.App && isCodedAppType(resource.type),
|
|
5857
|
+
resourceName: resource.name
|
|
5713
5858
|
});
|
|
5714
5859
|
} else {
|
|
5715
5860
|
this.logger.error(`Solution does not contain binding resource of type ${models_BindingsResourceType[bindingsResource.resourceType]}.`);
|
|
@@ -5832,6 +5977,9 @@ class SolutionContext {
|
|
|
5832
5977
|
signal = forceOrSignal;
|
|
5833
5978
|
return this.doWithLockAsync((token) => this.internalLoadAsync(force, token), signal);
|
|
5834
5979
|
}
|
|
5980
|
+
async loadKindsAsync(kinds, cancellationToken) {
|
|
5981
|
+
return this.doWithLockAsync((token) => this.isReadOnly && this._definition === null && this._definitionProvider.readKindsAsync ? this._definitionProvider.readKindsAsync(this, kinds, token) : this.internalLoadAsync(false, token), cancellationToken);
|
|
5982
|
+
}
|
|
5835
5983
|
async getSolutionDefinitionAsync(cancellationToken) {
|
|
5836
5984
|
return this._definitionProvider.readAsync(this, cancellationToken);
|
|
5837
5985
|
}
|
|
@@ -5849,20 +5997,17 @@ class SolutionContext {
|
|
|
5849
5997
|
this.validateResourceDependencies(this._definition);
|
|
5850
5998
|
await this.deleteSavedFilesAsync(filesToDelete, token);
|
|
5851
5999
|
await this.internalSaveChanges(this._definition, token);
|
|
5852
|
-
this._definition = null;
|
|
5853
6000
|
}, signal);
|
|
5854
6001
|
else
|
|
5855
6002
|
await this.doWithLockAsync(async (token) => {
|
|
5856
6003
|
this.validateResourceDependencies(this._definition);
|
|
5857
6004
|
await this.internalSaveChanges(this._definition, token);
|
|
5858
|
-
this._definition = null;
|
|
5859
6005
|
}, signal);
|
|
5860
6006
|
}
|
|
5861
6007
|
async forceSaveChangesAsync(cancellationToken) {
|
|
5862
6008
|
await this.doWithLockAsync(async (token) => {
|
|
5863
6009
|
this.validateResourceDependencies(this._definition);
|
|
5864
6010
|
await this.internalSaveChanges(this._definition, token);
|
|
5865
|
-
this._definition = null;
|
|
5866
6011
|
}, cancellationToken);
|
|
5867
6012
|
}
|
|
5868
6013
|
async saveAsync(solution, cancellationToken) {
|
|
@@ -5873,7 +6018,7 @@ class SolutionContext {
|
|
|
5873
6018
|
this.validateResourceDependencies(solution);
|
|
5874
6019
|
await this.internalLoadAsync(false, token);
|
|
5875
6020
|
await this.internalSaveChanges(solution, token);
|
|
5876
|
-
this._definition =
|
|
6021
|
+
this._definition = solution;
|
|
5877
6022
|
}, cancellationToken);
|
|
5878
6023
|
}
|
|
5879
6024
|
toString() {
|
|
@@ -6954,39 +7099,6 @@ SettingsRequestHandler = _ts_decorate4([
|
|
|
6954
7099
|
])
|
|
6955
7100
|
], SettingsRequestHandler);
|
|
6956
7101
|
|
|
6957
|
-
// ../../node_modules/@uipath/resource-builder-sdk/dist/services/overwrites/models.js
|
|
6958
|
-
var models_ValidationSeverity = /* @__PURE__ */ function(ValidationSeverity) {
|
|
6959
|
-
ValidationSeverity["Warning"] = "Warning";
|
|
6960
|
-
ValidationSeverity["Critical"] = "Critical";
|
|
6961
|
-
return ValidationSeverity;
|
|
6962
|
-
}({});
|
|
6963
|
-
var models_OverwriteType = /* @__PURE__ */ function(OverwriteType) {
|
|
6964
|
-
OverwriteType["Install"] = "Install";
|
|
6965
|
-
OverwriteType["Reference"] = "Reference";
|
|
6966
|
-
return OverwriteType;
|
|
6967
|
-
}({});
|
|
6968
|
-
function createLocalizableMessage(key, ...args) {
|
|
6969
|
-
return {
|
|
6970
|
-
key,
|
|
6971
|
-
args: args.length > 0 ? args : undefined
|
|
6972
|
-
};
|
|
6973
|
-
}
|
|
6974
|
-
function createMissingRcsResources(missingKeys, error) {
|
|
6975
|
-
return {
|
|
6976
|
-
missingResourceKeys: missingKeys instanceof Set ? missingKeys : new Set(missingKeys),
|
|
6977
|
-
error
|
|
6978
|
-
};
|
|
6979
|
-
}
|
|
6980
|
-
function setValidationError(errors, resourceKey, dto) {
|
|
6981
|
-
const error = errors.get(resourceKey);
|
|
6982
|
-
if (error)
|
|
6983
|
-
dto.validationError = error;
|
|
6984
|
-
}
|
|
6985
|
-
var DebugOverwritesConstants = {
|
|
6986
|
-
ResourceOverwritesFileName: "debug_overwrites.json",
|
|
6987
|
-
CurrentOverwritesDocVersion: "1.0"
|
|
6988
|
-
};
|
|
6989
|
-
|
|
6990
7102
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/mappings/resource-subtype-mapper.js
|
|
6991
7103
|
var solutionsSubtypesMap = {
|
|
6992
7104
|
Text: "stringAsset",
|
|
@@ -8327,8 +8439,8 @@ class SolutionDefinitionHelper {
|
|
|
8327
8439
|
if (references.length === 0)
|
|
8328
8440
|
continue;
|
|
8329
8441
|
const referenceKind = refProp["referenceKind"];
|
|
8330
|
-
const
|
|
8331
|
-
const filtered = references.filter((r) => !
|
|
8442
|
+
const matches2 = (ref) => ref.name != null && invariantEquals(resource.name, ref.name) && referenceKind != null && invariantEquals(referenceKind, resource.kind);
|
|
8443
|
+
const filtered = references.filter((r) => !matches2(r));
|
|
8332
8444
|
if (filtered.length !== references.length)
|
|
8333
8445
|
spec[refProp.property] = isSingleReferenceProperty(refProp) ? filtered[0] ?? null : filtered;
|
|
8334
8446
|
}
|
|
@@ -8475,7 +8587,9 @@ class ResourcesSearchRequestHandler {
|
|
|
8475
8587
|
async getSolutionResourcesAsync(request, cancellationToken) {
|
|
8476
8588
|
if (request.pageSize <= 0 || !request.includeSolutionResources)
|
|
8477
8589
|
return null;
|
|
8478
|
-
const solution = await request.context.
|
|
8590
|
+
const solution = await (request.context.loadKindsAsync?.([
|
|
8591
|
+
request.kind
|
|
8592
|
+
], cancellationToken) ?? request.context.loadAsync(cancellationToken));
|
|
8479
8593
|
let resources = solution.resources.filter((x) => !x.projectKey || request.projectKey && x.projectKey !== request.projectKey).filter((x) => x.kind.toLowerCase() === request.kind.toLowerCase()).filter((x) => !request.types || request.types.some((t) => t.toLowerCase() === x.type?.toLowerCase())).filter((x) => !request.searchTerm || x.name.toLowerCase().includes(request.searchTerm.toLowerCase()));
|
|
8480
8594
|
if (request.cursor?.pageDirection === internal_InternalPageDirection.Previous) {
|
|
8481
8595
|
if (request.cursor.name) {
|
|
@@ -9974,6 +10088,7 @@ class GenerateArtefactResourcesCommandHandler {
|
|
|
9974
10088
|
apiVersion: metadataVersion.version.uri,
|
|
9975
10089
|
name: command.projectName,
|
|
9976
10090
|
projectKey: command.projectKey,
|
|
10091
|
+
isArtefactResource: !!command.projectKey,
|
|
9977
10092
|
folders: [],
|
|
9978
10093
|
files: []
|
|
9979
10094
|
};
|
|
@@ -13663,7 +13778,7 @@ class ProjectCreateCommandHandler {
|
|
|
13663
13778
|
const solution = await command.context.loadAsync(cancellationToken);
|
|
13664
13779
|
const resourceIdentifiers = new Set(this.projectConfigurationReader.getTemplateResourcesByType(command.type, command.subType, true).map((r) => JSON.stringify(r)));
|
|
13665
13780
|
const projectResources = solution.resources.filter((x) => x.projectKey === command.projectKey);
|
|
13666
|
-
const duplicateProject = solution.resources.find((r) => r.
|
|
13781
|
+
const duplicateProject = solution.resources.find((r) => r.projectKey !== undefined && r.projectKey !== command.projectKey && r.name.toLowerCase() === command.name.toLowerCase());
|
|
13667
13782
|
if (duplicateProject) {
|
|
13668
13783
|
this.logger.error("Project name already exists", undefined, {
|
|
13669
13784
|
projectName: command.name,
|
|
@@ -13672,15 +13787,16 @@ class ProjectCreateCommandHandler {
|
|
|
13672
13787
|
throw new BadRequestException("Project.DuplicateProjectName", "Project name already exists");
|
|
13673
13788
|
}
|
|
13674
13789
|
if (projectResources.length === 0)
|
|
13675
|
-
await this.
|
|
13790
|
+
this.addArtefacts(command, solution, await this.generateAndValidateArtefacts(command, solution, cancellationToken));
|
|
13676
13791
|
else {
|
|
13677
13792
|
const existingResourceIdentifiers = new Set(projectResources.map((x) => JSON.stringify(toResourceIdentifier2(x))));
|
|
13678
13793
|
const needsRegeneration = existingResourceIdentifiers.size !== resourceIdentifiers.size || [
|
|
13679
13794
|
...resourceIdentifiers
|
|
13680
13795
|
].some((id) => !existingResourceIdentifiers.has(id));
|
|
13681
13796
|
if (needsRegeneration) {
|
|
13797
|
+
const artefacts = await this.generateAndValidateArtefacts(command, solution, cancellationToken);
|
|
13682
13798
|
await this.removeExistingProjectResources(command, cancellationToken);
|
|
13683
|
-
|
|
13799
|
+
this.addArtefacts(command, solution, artefacts);
|
|
13684
13800
|
} else if (projectResources.some((x) => x.name !== command.name))
|
|
13685
13801
|
await this.mediator.sendCommandAsync(new ProjectEditCommand(command.context, command.projectKey, {
|
|
13686
13802
|
name: command.name,
|
|
@@ -13690,13 +13806,13 @@ class ProjectCreateCommandHandler {
|
|
|
13690
13806
|
}
|
|
13691
13807
|
await command.context.saveChangesAsync(cancellationToken);
|
|
13692
13808
|
}
|
|
13693
|
-
async
|
|
13809
|
+
async generateAndValidateArtefacts(command, solution, cancellationToken) {
|
|
13694
13810
|
this.logger.info("Generate artefact resources for project", {
|
|
13695
13811
|
projectName: command.name,
|
|
13696
13812
|
projectKey: command.projectKey
|
|
13697
13813
|
});
|
|
13698
13814
|
const artefactResources = await this.mediator.sendCommandAsync(new GenerateArtefactResourcesCommand(command.context, command.name, command.type, command.projectKey, command.subType), cancellationToken);
|
|
13699
|
-
const existingConflictResource = solution.resources.find((r) =>
|
|
13815
|
+
const existingConflictResource = solution.resources.find((r) => r.projectKey === undefined && r.name.toLowerCase() === command.name.toLowerCase() && artefactResources.some((pr) => r.kind.toLowerCase() === pr.kind.toLowerCase()));
|
|
13700
13816
|
if (existingConflictResource) {
|
|
13701
13817
|
this.logger.error("Resource name conflict", undefined, {
|
|
13702
13818
|
context: command.context,
|
|
@@ -13705,6 +13821,23 @@ class ProjectCreateCommandHandler {
|
|
|
13705
13821
|
});
|
|
13706
13822
|
throw new BadRequestException("Resources.DuplicateResourceName", `Solution already contains a ${existingConflictResource.kind} resource named "${existingConflictResource.name}"`);
|
|
13707
13823
|
}
|
|
13824
|
+
for (const artefact of artefactResources) {
|
|
13825
|
+
if (artefact.kind.toLowerCase() !== WellKnownProjectType.Process.toLowerCase())
|
|
13826
|
+
continue;
|
|
13827
|
+
const packageName = resolvePackageNameAfterRename(artefact, command.solutionName, command.name, command.solutionName);
|
|
13828
|
+
const conflictingProject = findPackageNameConflict(solution, command.projectKey, command.solutionName, packageName);
|
|
13829
|
+
if (conflictingProject) {
|
|
13830
|
+
this.logger.error("Package name conflict", undefined, {
|
|
13831
|
+
context: command.context,
|
|
13832
|
+
packageName,
|
|
13833
|
+
conflictingProject: conflictingProject.name
|
|
13834
|
+
});
|
|
13835
|
+
throw new BadRequestException(ErrorCodes.Resources.DuplicatePackageName, `The name '${command.name}' would publish under the same package name as project '${conflictingProject.name}': '${packageName}'. Long names are shortened when the package name is composed, so choose a name that differs earlier.`);
|
|
13836
|
+
}
|
|
13837
|
+
}
|
|
13838
|
+
return artefactResources;
|
|
13839
|
+
}
|
|
13840
|
+
addArtefacts(command, solution, artefactResources) {
|
|
13708
13841
|
for (const artefact of artefactResources) {
|
|
13709
13842
|
if (artefact.kind.toLowerCase() === WellKnownProjectType.Process.toLowerCase())
|
|
13710
13843
|
changePackageName(artefact, command.solutionName, command.name, command.solutionName);
|
|
@@ -13745,18 +13878,32 @@ class ProjectEditCommandHandler {
|
|
|
13745
13878
|
const newProjectName = command.projectDetails.name.trim();
|
|
13746
13879
|
const projectDescription = command.projectDetails.description;
|
|
13747
13880
|
const solutionName = command.projectDetails.solutionName;
|
|
13748
|
-
const duplicateProject = solution.resources.find((r) => r.
|
|
13881
|
+
const duplicateProject = solution.resources.find((r) => r.projectKey !== undefined && r.projectKey !== command.projectKey && r.name.toLowerCase() === newProjectName.toLowerCase());
|
|
13749
13882
|
if (duplicateProject) {
|
|
13750
13883
|
this.logger.error("Project name already exists");
|
|
13751
13884
|
throw new BadRequestException(ErrorCodes.Resources.DuplicateResourceName, "Project name already exists");
|
|
13752
13885
|
}
|
|
13753
|
-
const existingConflictResource = solution.resources.find((r) =>
|
|
13886
|
+
const existingConflictResource = solution.resources.find((r) => r.projectKey === undefined && r.name.toLowerCase() === newProjectName.toLowerCase() && projectResources.some((pr) => r.kind.toLowerCase() === pr.kind.toLowerCase()));
|
|
13754
13887
|
if (existingConflictResource) {
|
|
13755
13888
|
this.logger.error("Solution already contains resource of kind with same name");
|
|
13756
13889
|
throw new BadRequestException(ErrorCodes.Resources.DuplicateResourceName, `Solution already contains a ${existingConflictResource.kind} resource named "${existingConflictResource.name}"`);
|
|
13757
13890
|
}
|
|
13758
13891
|
const firstProjectResource = projectResources[0];
|
|
13759
13892
|
const oldProjectName = firstProjectResource ? firstProjectResource.name : "";
|
|
13893
|
+
for (const resource of projectResources) {
|
|
13894
|
+
if (resource.kind.toLowerCase() !== WellKnownProjectType.Process.toLowerCase())
|
|
13895
|
+
continue;
|
|
13896
|
+
const packageName = resolvePackageNameAfterRename(resource, solutionName, newProjectName, solutionName, oldProjectName);
|
|
13897
|
+
const conflictingProject = findPackageNameConflict(solution, command.projectKey, solutionName, packageName);
|
|
13898
|
+
if (conflictingProject) {
|
|
13899
|
+
this.logger.error("Package name conflict", undefined, {
|
|
13900
|
+
context: command.context,
|
|
13901
|
+
packageName,
|
|
13902
|
+
conflictingProject: conflictingProject.name
|
|
13903
|
+
});
|
|
13904
|
+
throw new BadRequestException(ErrorCodes.Resources.DuplicatePackageName, `The name '${newProjectName}' would publish under the same package name as project '${conflictingProject.name}': '${packageName}'. Long names are shortened when the package name is composed, so choose a name that differs earlier.`);
|
|
13905
|
+
}
|
|
13906
|
+
}
|
|
13760
13907
|
const dependencyMapper = new Map;
|
|
13761
13908
|
for (const resource of projectResources) {
|
|
13762
13909
|
const depKey = `${oldProjectName.toLowerCase()}|${resource.kind.toLowerCase()}`;
|
|
@@ -15991,7 +16138,8 @@ function registerHandlers(diContainer) {
|
|
|
15991
16138
|
const mediator = c.resolve(ServiceTokens.Mediator);
|
|
15992
16139
|
const resourceOverwritesService = c.resolve(Tokens.IResourceOverwritesService);
|
|
15993
16140
|
const loggerFactory = c.resolve(ServiceTokens.LoggerFactory);
|
|
15994
|
-
|
|
16141
|
+
const featureFlagProvider = c.resolve(ServiceTokens.FeatureFlagProvider);
|
|
16142
|
+
return new BindingOverwritesHandler(mediator, resourceOverwritesService, loggerFactory, featureFlagProvider);
|
|
15995
16143
|
}
|
|
15996
16144
|
});
|
|
15997
16145
|
diContainer.register(createCommandHandlerToken(BindingOverwritesValidationCommand.name), {
|
|
@@ -15999,7 +16147,8 @@ function registerHandlers(diContainer) {
|
|
|
15999
16147
|
const mediator = c.resolve(ServiceTokens.Mediator);
|
|
16000
16148
|
const resourceOverwritesService = c.resolve(Tokens.IResourceOverwritesService);
|
|
16001
16149
|
const loggerFactory = c.resolve(ServiceTokens.LoggerFactory);
|
|
16002
|
-
|
|
16150
|
+
const featureFlagProvider = c.resolve(ServiceTokens.FeatureFlagProvider);
|
|
16151
|
+
return new BindingOverwritesHandler(mediator, resourceOverwritesService, loggerFactory, featureFlagProvider);
|
|
16003
16152
|
}
|
|
16004
16153
|
});
|
|
16005
16154
|
diContainer.register(createRequestHandlerToken(BindingOverwritesMappingRequest.name), {
|
|
@@ -18180,12 +18329,12 @@ async function findResourceByKeyInRcs(builder, kind, expectedKey, folderPath, pr
|
|
|
18180
18329
|
return;
|
|
18181
18330
|
}
|
|
18182
18331
|
async function searchRcsResources(builder, kind, name) {
|
|
18183
|
-
const [searchError,
|
|
18332
|
+
const [searchError, matches2] = await catchError(searchRcsResourcesStrict(builder, kind, name));
|
|
18184
18333
|
if (searchError) {
|
|
18185
18334
|
logger.warn(`Failed to search ${kind} resources in RCS: ${searchError.message}`);
|
|
18186
18335
|
return [];
|
|
18187
18336
|
}
|
|
18188
|
-
return
|
|
18337
|
+
return matches2;
|
|
18189
18338
|
}
|
|
18190
18339
|
async function searchRcsResourcesStrict(builder, kind, name) {
|
|
18191
18340
|
let pageCursor;
|
|
@@ -18193,8 +18342,8 @@ async function searchRcsResourcesStrict(builder, kind, name) {
|
|
|
18193
18342
|
do {
|
|
18194
18343
|
const result = await builder.searchResourcesAsync(kind, undefined, name, pageCursor, 50, undefined, false);
|
|
18195
18344
|
for (const folderResources of result.availableResources) {
|
|
18196
|
-
const
|
|
18197
|
-
for (const match of
|
|
18345
|
+
const matches2 = folderResources.resources.filter((r) => r.name.toLowerCase() === name.toLowerCase());
|
|
18346
|
+
for (const match of matches2) {
|
|
18198
18347
|
allMatches.push({
|
|
18199
18348
|
key: match.key,
|
|
18200
18349
|
name: match.name,
|
|
@@ -18738,4 +18887,4 @@ function sortKeysDeep(value) {
|
|
|
18738
18887
|
}
|
|
18739
18888
|
export { getSolutionAuthContext, assertSolutionManifest, readSolutionManifest, resolveProjectDirFromManifest, EntryPointSpecEnhancer, computeEntryPointSpec, applyEntryPointEnhancementAsync, createResourceBuilderServices, findProjectFile, ProjectManifestError, isProjectManifestError, isMissingProjectTypeError, readProjectFile, readSolutionFile, resolveSolutionFilePath, writeSolutionFile, restoreSolutionFile, createProjectInSolutionBuilder, CatalogLookupError, normalizeFolderPath, findMatchingLocalResource, findMatchingMemberResource, findMemberCloneResources, addProjectArtifactsToSolutionAsync, hasBareTemplateRow, hasAnyTemplateRow, getRemoteResourceClients, findCatalogEntityAsync, findCatalogEntitiesAsync, toResourceReference, toCatalogReference, exportResourceDefinitionAsync, readSpecProperty, readSpecEntryPoints, normalizeResourceCasing, saveCasingNormalized, normalizeResourceFileCasing, isResourceKeyNotFound, refreshArtefactSpecsAsync, exportResourceConfigurationsAsync, readResourceConfigurationsAsync, readResourceConfigurationAsync, findResourcesByNameAsync, MAX_RESOURCE_NAME_LENGTH, validateResourceName, assertValidResourceName, formatResourceSubtypes, sameResourceSubtype, syncResourcesFromBindings, uniqueNameForResource, findResourceByKeyInRcs, searchRcsResources, searchRcsResourcesStrict, findResourceInRcs, createResourceKindMetadataResolver, resolveResourceKindMetadata, createLocalResource, readUipxProjects, syncAndLog, resourceRefreshAsync, resourceRemoteSyncAsync };
|
|
18740
18889
|
|
|
18741
|
-
//# debugId=
|
|
18890
|
+
//# debugId=5D407730CF72893164756E2164756E21
|
|
@@ -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.293",
|
|
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-7vc3g7tk.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-daw8tqyc.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=7EF1DF9D31E07F1864756E2164756E21
|
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.205.0-preview.
|
|
5
|
+
"version": "1.205.0-preview.293",
|
|
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": "4f19761f18bc44c793afb1ca678e648988c4e686"
|
|
31
31
|
}
|