@uipath/api-workflow-tool 1.204.0 → 1.205.0-preview.258
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 +357 -1
- package/dist/executor-tool.js +6 -5
- package/dist/{index-sby22td6.js → index-h8cph72k.js} +1 -1
- package/dist/{index-dykdwqg2.js → index-qffm5md9.js} +4 -4
- package/dist/index-waq4trz1.js +42584 -0
- package/dist/index.js +9 -8
- package/dist/index.umd.min-fqefd9kn.js +7814 -0
- package/dist/{jmespath-231m3hyn.js → jmespath-e4a59c8w.js} +1 -1
- package/dist/{js-yaml-rtdrjz2v.js → js-yaml-69tsdrrf.js} +1 -1
- package/dist/{node-c39mc2gs.js → node-yh8xgmtz.js} +5 -5
- package/dist/packager-tool-0aacqssr.js +8944 -0
- package/dist/{packager-tool-1de529jm.js → packager-tool-1yh8g550.js} +15 -2
- package/dist/{packager-tool-wged619d.js → packager-tool-56y4axsc.js} +1157 -128
- package/dist/{packager-tool-1n0det9t.js → packager-tool-bgy9gdsp.js} +21 -3
- package/dist/{packager-tool-cbez71ck.js → packager-tool-evd1kzq2.js} +5 -3
- package/dist/{packager-tool-fm7ese0m.js → packager-tool-f7zta1kg.js} +19 -5
- package/dist/{packager-tool-1bxv1gsg.js → packager-tool-hfb7mmmf.js} +25 -13
- package/dist/{packager-tool-gg1c1x4t.js → packager-tool-kh3aq9n7.js} +256 -9094
- package/dist/{packager-tool-qh3bbws2.js → packager-tool-xak3m9vd.js} +27 -9
- package/dist/packager-tool.js +3 -3
- package/dist/tool.js +9 -8
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ensureContentOperateFile,
|
|
10
10
|
toolsFactoryRepository,
|
|
11
11
|
translate
|
|
12
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-f7zta1kg.js";
|
|
13
13
|
// ../packager/packager-tool-apiworkflow/src/i18n/locales/de.json
|
|
14
14
|
var de_default = {
|
|
15
15
|
toolApiworkflow: {
|
|
@@ -53,6 +53,9 @@ var en = {
|
|
|
53
53
|
success: {
|
|
54
54
|
done: "done"
|
|
55
55
|
},
|
|
56
|
+
warnings: {
|
|
57
|
+
mainFileUnreadable: "Could not read the main file from {path}, using the first entry point as main: {error}"
|
|
58
|
+
},
|
|
56
59
|
errors: {
|
|
57
60
|
buildFailed: "An error occurred while building API project files",
|
|
58
61
|
packFailed: "An error occurred while packing API project"
|
|
@@ -470,12 +473,27 @@ class ApiWorkflowsTool extends ProjectTool {
|
|
|
470
473
|
}
|
|
471
474
|
}
|
|
472
475
|
async createOperateFile(options, contentFolder) {
|
|
476
|
+
const mainFile = await this.readMainFile(options.projectPath);
|
|
473
477
|
await ensureContentOperateFile(this.fileSystem, {
|
|
474
478
|
contentFolder,
|
|
475
479
|
projectPath: options.projectPath,
|
|
476
480
|
projectStorageId: options.projectStorageId,
|
|
477
|
-
contentType: "Api" /* Api
|
|
481
|
+
contentType: "Api" /* Api */,
|
|
482
|
+
mainFile
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
async readMainFile(projectPath) {
|
|
486
|
+
const uiProject = await this.getUiProjectAsync(projectPath).catch((error) => {
|
|
487
|
+
const projectFile = Path.join(projectPath, ProjectTool.ProjectFileName);
|
|
488
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
489
|
+
this.logger.warn(translate.t("toolApiworkflow.warnings.mainFileUnreadable", {
|
|
490
|
+
path: projectFile,
|
|
491
|
+
error: reason
|
|
492
|
+
}));
|
|
493
|
+
return;
|
|
478
494
|
});
|
|
495
|
+
const mainFile = uiProject?.MainFile;
|
|
496
|
+
return typeof mainFile === "string" && mainFile.length > 0 ? mainFile : undefined;
|
|
479
497
|
}
|
|
480
498
|
async createPackageDescriptor(localBuildFolder) {
|
|
481
499
|
const packageDescriptor = {
|
|
@@ -511,4 +529,4 @@ function registerPackagerFactories() {
|
|
|
511
529
|
|
|
512
530
|
export { registerPackagerFactories };
|
|
513
531
|
|
|
514
|
-
//# debugId=
|
|
532
|
+
//# debugId=2A814D6AF2A34FE064756E2164756E21
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__require
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-1yh8g550.js";
|
|
4
4
|
|
|
5
5
|
// ../common/src/singleton.ts
|
|
6
6
|
var PREFIX = "@uipath/common/";
|
|
@@ -116,7 +116,9 @@ var ErrorDimensions = {
|
|
|
116
116
|
Result: "Result",
|
|
117
117
|
ErrorCode: "ErrorCode",
|
|
118
118
|
Retry: "Retry",
|
|
119
|
-
ErrorMessage: "ErrorMessage"
|
|
119
|
+
ErrorMessage: "ErrorMessage",
|
|
120
|
+
HttpStatus: "HttpStatus",
|
|
121
|
+
UpstreamErrorCode: "UpstreamErrorCode"
|
|
120
122
|
};
|
|
121
123
|
var AuthDimensions = {
|
|
122
124
|
AuthenticationMethod: "AuthenticationMethod",
|
|
@@ -1500,4 +1502,4 @@ function installSdkUserAgentHeader(BaseApiClass, userAgent) {
|
|
|
1500
1502
|
|
|
1501
1503
|
export { singleton, recordSuppliedArgumentValues, releaseSuppliedArgumentValues, redactProperties, catchError, walkErrorGraph, findHttpStatusInGraph, LOCAL_PERMISSION_ERROR_CODES, carriedInstructions, CommandDimensions, ErrorDimensions, PackagerDimensions, TelemetryService, buildCommandTelemetryAttribution, buildAgentSessionTelemetry, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, BrowserContextStorage, ConsoleTelemetryProvider };
|
|
1502
1504
|
|
|
1503
|
-
//# debugId=
|
|
1505
|
+
//# debugId=8C69C1220DFF780C64756E2164756E21
|
|
@@ -205,7 +205,20 @@ async function writeOrBackfillOperateProjectId(operateFilePath, projectId, fs, c
|
|
|
205
205
|
|
|
206
206
|
// ../packager/packager-core/src/services/content-operate-file.ts
|
|
207
207
|
var OPERATE_SCHEMA = "https://cloud.uipath.com/draft/2024-12/operate";
|
|
208
|
-
|
|
208
|
+
function withoutContentPrefix(filePath) {
|
|
209
|
+
return filePath.replace(/^\/?content\//, "");
|
|
210
|
+
}
|
|
211
|
+
function pickMain(entryPoints, mainFile) {
|
|
212
|
+
if (mainFile) {
|
|
213
|
+
const wanted = withoutContentPrefix(mainFile);
|
|
214
|
+
const declared = entryPoints.find(({ filePath }) => filePath !== undefined && withoutContentPrefix(filePath) === wanted)?.filePath;
|
|
215
|
+
if (declared) {
|
|
216
|
+
return declared;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return entryPoints[0]?.filePath ?? "";
|
|
220
|
+
}
|
|
221
|
+
async function resolveEntryPointMain(fs, sourceFolder, mainFile) {
|
|
209
222
|
const entryPointsFilePath = Path.join(sourceFolder, NugetConstants.EntryPointsFileName);
|
|
210
223
|
if (!await fs.exists(entryPointsFilePath)) {
|
|
211
224
|
return "";
|
|
@@ -216,7 +229,7 @@ async function resolveEntryPointMain(fs, sourceFolder) {
|
|
|
216
229
|
}
|
|
217
230
|
try {
|
|
218
231
|
const parsed = JSON.parse(new TextDecoder().decode(content));
|
|
219
|
-
return parsed.entryPoints
|
|
232
|
+
return pickMain(parsed.entryPoints ?? [], mainFile);
|
|
220
233
|
} catch {
|
|
221
234
|
return "";
|
|
222
235
|
}
|
|
@@ -224,7 +237,7 @@ async function resolveEntryPointMain(fs, sourceFolder) {
|
|
|
224
237
|
async function writeContentOperateFile(fs, params) {
|
|
225
238
|
const operateFilePath = Path.join(params.contentFolder, NugetConstants.OperateFileName);
|
|
226
239
|
await writeOrBackfillOperateProjectId(operateFilePath, params.projectId, fs, async () => {
|
|
227
|
-
const main = await resolveEntryPointMain(fs, params.contentFolder);
|
|
240
|
+
const main = await resolveEntryPointMain(fs, params.contentFolder, params.mainFile);
|
|
228
241
|
const operateFileModel = {
|
|
229
242
|
$schema: OPERATE_SCHEMA,
|
|
230
243
|
contentType: params.contentType,
|
|
@@ -244,7 +257,8 @@ async function ensureContentOperateFile(fs, params) {
|
|
|
244
257
|
await writeContentOperateFile(fs, {
|
|
245
258
|
contentFolder: params.contentFolder,
|
|
246
259
|
projectId,
|
|
247
|
-
contentType: params.contentType
|
|
260
|
+
contentType: params.contentType,
|
|
261
|
+
mainFile: params.mainFile
|
|
248
262
|
});
|
|
249
263
|
}
|
|
250
264
|
// ../../node_modules/fflate/esm/index.mjs
|
|
@@ -2366,4 +2380,4 @@ class LogMessage {
|
|
|
2366
2380
|
}
|
|
2367
2381
|
export { Path, TemporaryStorageService, ZipService, I18nManager, translate, normalizeIgnoredRules, LogMessage, NugetConstants, ToolResult, ensureContentOperateFile, NugetPackager, ProjectTool, toolsFactoryRepository };
|
|
2368
2382
|
|
|
2369
|
-
//# debugId=
|
|
2383
|
+
//# debugId=E9128212FADF46B964756E2164756E21
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
normalizeIgnoredRules,
|
|
11
11
|
toolsFactoryRepository,
|
|
12
12
|
translate
|
|
13
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-f7zta1kg.js";
|
|
14
14
|
import {
|
|
15
15
|
PackagerDimensions,
|
|
16
16
|
addSdkUserAgentHeader,
|
|
17
17
|
carriedInstructions,
|
|
18
18
|
catchError
|
|
19
|
-
} from "./packager-tool-
|
|
19
|
+
} from "./packager-tool-evd1kzq2.js";
|
|
20
20
|
// ../packager/project-packager/src/i18n/locales/de.json
|
|
21
21
|
var de_default = {
|
|
22
22
|
solutionpackager: {
|
|
@@ -150,6 +150,7 @@ var en = {
|
|
|
150
150
|
},
|
|
151
151
|
errors: {
|
|
152
152
|
connectionIncomplete: "Connection info is incomplete, so the tenant could not be asked about governance.",
|
|
153
|
+
applicationLogin: "Could not tell whether this tenant is governed (applicationLogin): the {product} policy was not requested, because AutomationOps does not accept external-application tokens yet.",
|
|
153
154
|
unknownOutcome: "Could not tell whether this tenant is governed ({reason}): {detail} Asked {url}.",
|
|
154
155
|
retryAfter: "The policy service asked for {seconds} seconds before another try.",
|
|
155
156
|
tenantPolicyWins: "The AutomationOps policy published for {product} governs this tenant, so the governance file at {path} is not used.",
|
|
@@ -1489,6 +1490,9 @@ class PackagerParameters {
|
|
|
1489
1490
|
detailedLogPath;
|
|
1490
1491
|
connection;
|
|
1491
1492
|
workflowCompilerVersion;
|
|
1493
|
+
functionsPackagerVersion;
|
|
1494
|
+
codedAppsPackagerVersion;
|
|
1495
|
+
jobTarget;
|
|
1492
1496
|
}
|
|
1493
1497
|
|
|
1494
1498
|
// ../packager/project-packager/src/models/project-restore-options.ts
|
|
@@ -3158,7 +3162,7 @@ var package_default = {
|
|
|
3158
3162
|
name: "@uipath/project-packager",
|
|
3159
3163
|
author: "UiPath",
|
|
3160
3164
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
3161
|
-
version: "1.
|
|
3165
|
+
version: "1.205.0-preview.258",
|
|
3162
3166
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
3163
3167
|
type: "module",
|
|
3164
3168
|
main: "./dist/index.js",
|
|
@@ -3288,6 +3292,10 @@ class GovernancePolicyService {
|
|
|
3288
3292
|
this.warnAndUseShippedRules(validateOptions, t("errors.connectionIncomplete"));
|
|
3289
3293
|
return;
|
|
3290
3294
|
}
|
|
3295
|
+
if (validateOptions.sessionIdentityType === "Application") {
|
|
3296
|
+
this.useLocalRulesUnchecked(validateOptions, requestedType, suppliedFilePath, t("errors.applicationLogin", { product }));
|
|
3297
|
+
return;
|
|
3298
|
+
}
|
|
3291
3299
|
const licenseType = await this.resolveLicenseTypeAsync(product, connectionInfo.cloudUrl?.replace(/\/+$/, "") ?? "", connectionInfo.accessToken, cancellationToken);
|
|
3292
3300
|
const subject = {
|
|
3293
3301
|
organizationId: connectionInfo.organizationId,
|
|
@@ -3337,18 +3345,19 @@ class GovernancePolicyService {
|
|
|
3337
3345
|
return;
|
|
3338
3346
|
}
|
|
3339
3347
|
case "unknown": {
|
|
3340
|
-
this.
|
|
3341
|
-
const localType = localRulesType(requestedType, suppliedFilePath);
|
|
3342
|
-
if (suppliedFilePath && localType !== "Default" /* Default */) {
|
|
3343
|
-
this.logger.info(t("info.suppliedFileUnchecked", {
|
|
3344
|
-
path: suppliedFilePath
|
|
3345
|
-
}));
|
|
3346
|
-
}
|
|
3347
|
-
validateOptions.governanceFileType = localType;
|
|
3348
|
+
this.useLocalRulesUnchecked(validateOptions, requestedType, suppliedFilePath, this.describeUnknown(resolution));
|
|
3348
3349
|
return;
|
|
3349
3350
|
}
|
|
3350
3351
|
}
|
|
3351
3352
|
}
|
|
3353
|
+
useLocalRulesUnchecked(validateOptions, requestedType, suppliedFilePath, warning) {
|
|
3354
|
+
this.logger.warn(warning);
|
|
3355
|
+
const localType = localRulesType(requestedType, suppliedFilePath);
|
|
3356
|
+
if (suppliedFilePath && localType !== "Default" /* Default */) {
|
|
3357
|
+
this.logger.info(t("info.suppliedFileUnchecked", { path: suppliedFilePath }));
|
|
3358
|
+
}
|
|
3359
|
+
validateOptions.governanceFileType = localType;
|
|
3360
|
+
}
|
|
3352
3361
|
dropIgnoredRules(validateOptions, product) {
|
|
3353
3362
|
const rules = normalizeIgnoredRules(validateOptions.ignoredRules);
|
|
3354
3363
|
validateOptions.ignoredRules = undefined;
|
|
@@ -4080,7 +4089,10 @@ class ProjectPackager {
|
|
|
4080
4089
|
targetFramework: options.targetFramework ?? "Portable" /* Portable */,
|
|
4081
4090
|
connection: options.connection,
|
|
4082
4091
|
logger: this.logger,
|
|
4083
|
-
workflowCompilerVersion: options.workflowCompilerVersion
|
|
4092
|
+
workflowCompilerVersion: options.workflowCompilerVersion,
|
|
4093
|
+
functionsPackagerVersion: options.functionsPackagerVersion,
|
|
4094
|
+
codedAppsPackagerVersion: options.codedAppsPackagerVersion,
|
|
4095
|
+
jobTarget: options.jobTarget
|
|
4084
4096
|
};
|
|
4085
4097
|
}
|
|
4086
4098
|
async copyFileToDestination(sourcePath, destinationPath) {
|
|
@@ -4624,4 +4636,4 @@ class ProjectPublisher {
|
|
|
4624
4636
|
|
|
4625
4637
|
export { setGlobalLogHandler, ToolLogger, RulesConfigFileType, PackagerParameters, ProjectRestoreOptions, ProjectValidateOptions, ProjectBuildOptions, ProjectCleanupOptions, ProjectPackOptions, TelemetryNames, resolvePolicyAsync, GovernancePolicyError, GovernancePolicyService, resolveProducedNupkgsAsync, PACKAGE_ID_TOO_LONG, isPackageIdTooLongError, PackService, signNupkgsAsync, PackagerParametersValidator, ProjectBuildOptionsValidator, ProjectLoader, ProjectToolExecutor, ProjectValidateOptionsValidator, ToolsFactory, ProjectPackager, PublishDestinationKind, ProjectPublishOptions, ProjectPublisher };
|
|
4626
4638
|
|
|
4627
|
-
//# debugId=
|
|
4639
|
+
//# debugId=26FAEAC3BE77A94A64756E2164756E21
|