@uipath/case-tool 1.202.0 → 1.203.0-preview.160
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 +172 -3
- package/dist/{authoring-e757p9dq.js → authoring-kngaggwm.js} +42 -4
- package/dist/{case-api-42s4mbpn.js → case-api-v6cjyrfw.js} +8 -8
- package/dist/case-bindings-service-1wxfghzd.js +240 -0
- package/dist/case-debug-studio-web-service-0624c07c.js +133 -0
- package/dist/case-format-service-q345a2fd.js +84 -0
- package/dist/{case-pack-service-8exkecnd.js → case-pack-service-29rza2q2.js} +61 -11
- package/dist/{case-validate-service-xvxkr026.js → case-validate-service-e06varbt.js} +1422 -40
- package/dist/{connector-enrichment-service-xq9xtz95.js → connector-enrichment-service-2pes4b1b.js} +20 -20
- package/dist/{connector-lookup-service-bk1wscyr.js → connector-lookup-service-2bkybhkf.js} +7 -7
- package/dist/{connector-task-spec-0g34na74.js → connector-task-spec-q59xmzm0.js} +24 -24
- package/dist/{de-7XQXX2DK-tqdy5n2b.js → de-FGHEJRCI-rv513mfh.js} +153 -9
- package/dist/{de-5KVP66U6-1bnf4zt5.js → de-MUJPA4EB-dpg7t2rw.js} +15 -3
- package/dist/{debug-service-f6t4ntmg.js → debug-service-8x087xxt.js} +2 -2
- package/dist/{index-j3xb87ag.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
- package/dist/{en-5ZGC5VQ3-h581y30k.js → en-BWGKA5OE-1qkvb9rn.js} +140 -2
- package/dist/{en-X3S6IZ5J-nhkg6pwn.js → en-FBPVNKFN-dqt573xn.js} +29 -3
- package/dist/{enrichment-service-k1zhkzgr.js → enrichment-service-7vbxcwge.js} +7 -7
- package/dist/{es-VFPNVMP5-bx2c337j.js → es-7SE7HX2X-8yh1aj2y.js} +15 -3
- package/dist/{es-ZGCPPOME-8gazspjj.js → es-KR3ZSNMP-84zphx0x.js} +153 -9
- package/dist/{es-MX-XAVLOQW3-q00km2y7.js → es-MX-2MYFZU7X-3rek4r73.js} +15 -3
- package/dist/{es-MX-U2VN3SZW-anynsmd8.js → es-MX-XXZJGC4R-2mr8jtgm.js} +153 -9
- package/dist/first-party-service-srxaftkn.js +27 -0
- package/dist/{fr-E5MDO4EG-c3mkty2t.js → fr-MDFKNZ4C-h4a122k9.js} +15 -3
- package/dist/{fr-T3G5GZCT-y3f7xb1q.js → fr-Y6NPVODW-8vr1ja4b.js} +153 -9
- package/dist/{index-f0rf4m8p.js → index-8yv94z7r.js} +6 -4
- package/dist/{index-kwxe1vep.js → index-fz4ttsde.js} +16 -4
- package/dist/index-jxj2jz45.js +16742 -0
- package/dist/index-kmp9fmhb.js +25 -0
- package/dist/index.js +10 -10
- package/dist/{input-reader-vgsdjgst.js → input-reader-pnh948bq.js} +1 -1
- package/dist/{ja-BI5K3JDZ-77zat4z2.js → ja-Q5PXKJ2V-p4msxzjd.js} +153 -9
- package/dist/{ja-DPO5PPLO-mysfmznx.js → ja-UTQEAP34-8e0q6swp.js} +15 -3
- package/dist/{known-types-qryebm95.js → known-types-mn8xn36b.js} +4 -4
- package/dist/{ko-ITOPNIYI-hmxd2asd.js → ko-AXCHW2OK-askct7f6.js} +15 -3
- package/dist/{ko-JOBF5V7N-4bv0mjje.js → ko-AYBDSRZG-41mdmsg1.js} +153 -9
- package/dist/{node-strategy-0267x5e5.js → node-strategy-gc4sg6a2.js} +4 -4
- package/dist/{node-sync-service-ac8rzgnj.js → node-sync-service-9d0dqz4z.js} +12 -14
- package/dist/{packager-tool-5yw9xatr.js → packager-tool-052kvydg.js} +1 -1
- package/dist/{packager-tool-3tfbb641.js → packager-tool-32jxda3r.js} +213 -51
- package/dist/packager-tool-53w8skv5.js +262 -0
- package/dist/{packager-tool-w0209wf4.js → packager-tool-61hxhgeg.js} +1 -1
- package/dist/{packager-tool-58q3tvh7.js → packager-tool-7q6z6npd.js} +166 -28
- package/dist/packager-tool-83qnybab.js +1564 -0
- package/dist/{packager-tool-eh50gcdk.js → packager-tool-8q7vzh65.js} +5 -4
- package/dist/{packager-tool-8rf8qda5.js → packager-tool-adcaxdhs.js} +15 -5
- package/dist/{packager-tool-933n6t8x.js → packager-tool-af2s79jb.js} +6 -6
- package/dist/{packager-tool-sk2b33km.js → packager-tool-b6368khs.js} +10 -9
- package/dist/{packager-tool-d73376xs.js → packager-tool-cg2j4rma.js} +8 -8
- package/dist/packager-tool-d4sjk46c.js +88 -0
- package/dist/{packager-tool-a42jnpy5.js → packager-tool-d88rqwk8.js} +29 -3
- package/dist/packager-tool-dd8bq6az.js +8462 -0
- package/dist/packager-tool-gdtpsdn7.js +342 -0
- package/dist/{packager-tool-v60h8pvv.js → packager-tool-hrdan5ms.js} +1 -1
- package/dist/{packager-tool-bmn50g7v.js → packager-tool-hz1mz8fs.js} +1 -1
- package/dist/{packager-tool-v0vdet53.js → packager-tool-jf4hmztd.js} +10 -13
- package/dist/{packager-tool-c23zrhj8.js → packager-tool-jysvpt8p.js} +2 -2
- package/dist/{packager-tool-jhdf8gt1.js → packager-tool-kkxhc0fp.js} +13554 -8844
- package/dist/{packager-tool-4knkebkr.js → packager-tool-kpcjnxd1.js} +269 -23
- package/dist/{packager-tool-nx0j1294.js → packager-tool-rhkk0pta.js} +31 -30
- package/dist/{packager-tool-d128hs55.js → packager-tool-wefb1zw3.js} +1 -1
- package/dist/{packager-tool-3kbkkv2a.js → packager-tool-x4vxexvk.js} +11 -11
- package/dist/{packager-tool-dqs5qy9s.js → packager-tool-yrsrzz1a.js} +134 -19
- package/dist/packager-tool.js +5 -1501
- package/dist/{project-artifacts-43c2ynd9.js → project-artifacts-8snev67g.js} +1 -1
- package/dist/{pt-YI4VE4YQ-wdkn2dcf.js → pt-3DIO5QWG-59b3f4bc.js} +15 -3
- package/dist/{pt-BR-7DYX2YPT-fqxqzqtf.js → pt-BR-TKHNHMET-sn91xyq0.js} +153 -9
- package/dist/{pt-BR-BXURWX4W-bwfcwhk1.js → pt-BR-Y6K6XHXK-mp3hwhw1.js} +15 -3
- package/dist/{pt-HTXGGX6Y-97t21dty.js → pt-ROXU257Y-2f6bxev4.js} +153 -9
- package/dist/{resourcesSyncService-7ampdrez.js → resourcesSyncService-5bq0j9wf.js} +20 -20
- package/dist/{ro-KTNQ3MNU-y08n1x5g.js → ro-AVAWPKOO-b89pw79r.js} +153 -9
- package/dist/{ro-RKXZUG7Z-nndrrsq7.js → ro-BWR3ONRR-vzx3hy8a.js} +15 -3
- package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
- package/dist/sdd-lookup-x08j9g9m.js +48 -0
- package/dist/{strict-case-rules-303vjvas.js → strict-case-rules-x6t0vb40.js} +141 -109
- package/dist/strict-sdd-audit-8e2fh9jg.js +2520 -0
- package/dist/tool.js +9 -9
- package/dist/{tr-AA6O2WSR-86ba4bdf.js → tr-5IIHSFW5-hw4cewew.js} +15 -3
- package/dist/{tr-XHSSPNK7-cmqyc4wd.js → tr-JMIP7ZSL-c39b6pe4.js} +153 -9
- package/dist/{trigger-enrichment-service-cg99dk1f.js → trigger-enrichment-service-kkh3197w.js} +24 -24
- package/dist/{zh-CN-2EHQT23P-mr63c4xz.js → zh-CN-IFFXSEJS-9wm9gmrv.js} +153 -9
- package/dist/{zh-CN-R2KLHXQV-agqr45ds.js → zh-CN-R2KU4U5L-tc1hat59.js} +15 -3
- package/dist/{zh-TW-RJGCQANM-w0x3qc1p.js → zh-TW-GNKMELBF-j674515r.js} +15 -3
- package/dist/{zh-TW-MGZCE5BT-c4ekmrz9.js → zh-TW-IYBNYAMG-8727c7v2.js} +153 -9
- package/package.json +3 -2
- package/dist/case-debug-studio-web-service-npcw81ay.js +0 -335
- package/dist/packager-tool-134mvmcm.js +0 -3040
- package/dist/packager-tool-ty1t2byf.js +0 -27
- package/dist/ru-WBLQ5B2U-8r3c7v6d.js +0 -10
- package/dist/strict-sdd-audit-qdmc9e1y.js +0 -1024
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthContext
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-yrsrzz1a.js";
|
|
4
4
|
import {
|
|
5
5
|
addSdkUserAgentHeader,
|
|
6
6
|
getSdkUserAgentToken,
|
|
7
7
|
installSdkUserAgentHeader
|
|
8
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-kpcjnxd1.js";
|
|
9
9
|
|
|
10
10
|
// ../orchestrator-sdk/generated/src/runtime.ts
|
|
11
11
|
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/orchestrator_".replace(/\/+$/, "");
|
|
@@ -5551,8 +5551,9 @@ class ReleasesApi extends BaseAPI {
|
|
|
5551
5551
|
// ../orchestrator-sdk/package.json
|
|
5552
5552
|
var package_default = {
|
|
5553
5553
|
name: "@uipath/orchestrator-sdk",
|
|
5554
|
+
author: "UiPath",
|
|
5554
5555
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
5555
|
-
version: "1.
|
|
5556
|
+
version: "1.203.0",
|
|
5556
5557
|
repository: {
|
|
5557
5558
|
type: "git",
|
|
5558
5559
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -7474,4 +7475,4 @@ class UsersApi extends BaseAPI {
|
|
|
7474
7475
|
}
|
|
7475
7476
|
export { JobsApi, ReleasesApi, UsersApi, createOrchestratorConfig, createApiClient, resolveFolder };
|
|
7476
7477
|
|
|
7477
|
-
//# debugId=
|
|
7478
|
+
//# debugId=45719B2F3F0A6A6A64756E2164756E21
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
RESULTS,
|
|
3
3
|
catchError,
|
|
4
4
|
logger
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-kpcjnxd1.js";
|
|
6
6
|
|
|
7
7
|
// ../maestro-sdk/src/debug-service.ts
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
@@ -306,7 +306,12 @@ function injectSolutionProjectProcessEntries(fpsProperties, solutionProjects) {
|
|
|
306
306
|
const entries = solutionProjects.map((project) => ({
|
|
307
307
|
name: project.name,
|
|
308
308
|
projectType: project.projectType,
|
|
309
|
-
executorInfo: JSON.stringify({
|
|
309
|
+
executorInfo: JSON.stringify(project.projectType === "Function" ? {
|
|
310
|
+
projectId: project.projectId,
|
|
311
|
+
command: "debug",
|
|
312
|
+
args: ["--attach=none"],
|
|
313
|
+
entryPoint: project.entryPoint
|
|
314
|
+
} : {
|
|
310
315
|
projectId: project.projectId,
|
|
311
316
|
debugArgs: {
|
|
312
317
|
debugMode: project.debugMode ?? DEBUG_MODE_MAP.Default,
|
|
@@ -524,6 +529,7 @@ var PIMS_TERMINAL_STATUSES = [
|
|
|
524
529
|
"Cancelled",
|
|
525
530
|
"Failed"
|
|
526
531
|
];
|
|
532
|
+
var ORCHESTRATOR_JOB_KEY = /^[0-9a-fA-F-]+$/;
|
|
527
533
|
var ORCHESTRATOR_TERMINAL_STATUSES = [
|
|
528
534
|
"Successful",
|
|
529
535
|
"Faulted",
|
|
@@ -570,6 +576,10 @@ function buildPollTimeoutFailureOutput(err, inspectCommand) {
|
|
|
570
576
|
async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterval = 2000, maxPolls = 300, jobKey) {
|
|
571
577
|
let pollCount = 0;
|
|
572
578
|
let lastStatus = "";
|
|
579
|
+
const canCheckOrchestratorJob = jobKey !== undefined && ORCHESTRATOR_JOB_KEY.test(jobKey);
|
|
580
|
+
if (jobKey !== undefined && !canCheckOrchestratorJob) {
|
|
581
|
+
logger.warn(`Skipping the Orchestrator job status fallback: "${jobKey}" is not a job key.`);
|
|
582
|
+
}
|
|
573
583
|
while (pollCount < maxPolls) {
|
|
574
584
|
const status = await debugPimsGet(config, `/api/v1/debug-instances/${instanceId}/element-executions`, "poll-instance-status");
|
|
575
585
|
if (status.status !== lastStatus) {
|
|
@@ -590,8 +600,8 @@ async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterv
|
|
|
590
600
|
logger.info(`Debug session reached terminal status: ${status.status}`);
|
|
591
601
|
return status;
|
|
592
602
|
}
|
|
593
|
-
if (
|
|
594
|
-
const [, jobResponse] = await catchError(orchestratorGet(config, `/odata/Jobs?$filter=Key eq
|
|
603
|
+
if (canCheckOrchestratorJob && pollCount > 0 && pollCount % 5 === 0) {
|
|
604
|
+
const [, jobResponse] = await catchError(orchestratorGet(config, `/odata/Jobs?$filter=Key eq ${jobKey}&$top=1`, "check-orchestrator-job-status"));
|
|
595
605
|
const jobState = jobResponse?.value?.[0]?.State;
|
|
596
606
|
if (jobState && ORCHESTRATOR_TERMINAL_STATUSES.includes(jobState)) {
|
|
597
607
|
const jobInfo = jobResponse?.value?.[0]?.Info ?? "";
|
|
@@ -849,4 +859,4 @@ async function patchConnectionOverwrites(config, organizationName, solutionId, s
|
|
|
849
859
|
|
|
850
860
|
export { FpsPropertiesInjectionError, injectInlineAgentProcessEntries, injectSolutionProjectProcessEntries, extractStartEventId, getPersonalFolderKey, getPersonalFolderInfo, prepareForCustomDebug, getFolderInfoById, beginDebugSession, DEBUG_MODE_MAP, SIMULATION_MODE_MAP, createDebugInstance, DebugPollTimeoutError, buildPollTimeoutFailureOutput, pollDebugInstanceStatus, fetchDebugInstanceIncidents, DebugVariablesFetchFailedError, fetchDebugInstanceVariables, isFaultedDebugStatus, isSuccessfulDebugStatus, resolveFaultIncidents, buildStudioWebDesignerUrl, uploadAndDebugSolution, patchConnectionOverwrites };
|
|
851
861
|
|
|
852
|
-
//# debugId=
|
|
862
|
+
//# debugId=029236635A4BC6F064756E2164756E21
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
loadResourceIndex
|
|
3
|
+
} from "./packager-tool-wefb1zw3.js";
|
|
1
4
|
import {
|
|
2
5
|
ConnectorsApi,
|
|
3
6
|
createApiClient
|
|
4
|
-
} from "./packager-tool-
|
|
5
|
-
import {
|
|
6
|
-
loadResourceIndex
|
|
7
|
-
} from "./packager-tool-d128hs55.js";
|
|
7
|
+
} from "./packager-tool-b6368khs.js";
|
|
8
8
|
import {
|
|
9
9
|
TYPECACHE_PACKAGE_INDEX_TYPES
|
|
10
10
|
} from "./packager-tool-r84ng21s.js";
|
|
11
11
|
import {
|
|
12
12
|
catchError
|
|
13
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-kpcjnxd1.js";
|
|
14
14
|
|
|
15
15
|
// src/services/connector-lookup-service.ts
|
|
16
16
|
async function lookupTypeCacheEntry(uiPathActivityTypeId, type) {
|
|
@@ -74,4 +74,4 @@ async function fetchConnectorConnections(connectorKey) {
|
|
|
74
74
|
|
|
75
75
|
export { lookupTypeCacheEntry, lookupConnectorDisplayName, fetchConnectorConnections };
|
|
76
76
|
|
|
77
|
-
//# debugId=
|
|
77
|
+
//# debugId=CEB0F783A7A1FFBD64756E2164756E21
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthContext
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-yrsrzz1a.js";
|
|
4
|
+
import {
|
|
5
|
+
isBrowser
|
|
6
|
+
} from "./packager-tool-0gctz400.js";
|
|
4
7
|
import {
|
|
5
8
|
addSdkUserAgentHeader,
|
|
6
9
|
getSdkUserAgentToken,
|
|
7
10
|
installSdkUserAgentHeader
|
|
8
|
-
} from "./packager-tool-
|
|
9
|
-
import {
|
|
10
|
-
isBrowser
|
|
11
|
-
} from "./packager-tool-0gctz400.js";
|
|
11
|
+
} from "./packager-tool-kpcjnxd1.js";
|
|
12
12
|
import {
|
|
13
13
|
__require
|
|
14
14
|
} from "./packager-tool-1yh8g550.js";
|
|
@@ -6238,8 +6238,9 @@ class SessionsApi extends BaseAPI {
|
|
|
6238
6238
|
// ../integrationservice-sdk/package.json
|
|
6239
6239
|
var package_default = {
|
|
6240
6240
|
name: "@uipath/integrationservice-sdk",
|
|
6241
|
+
author: "UiPath",
|
|
6241
6242
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
6242
|
-
version: "1.
|
|
6243
|
+
version: "1.203.0-preview.160",
|
|
6243
6244
|
repository: {
|
|
6244
6245
|
type: "git",
|
|
6245
6246
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -6360,9 +6361,9 @@ function isV4ActivityConfiguration(instanceParameters) {
|
|
|
6360
6361
|
return false;
|
|
6361
6362
|
return instanceParameters.version === ACTIVITY_VERSION_V4;
|
|
6362
6363
|
}
|
|
6363
|
-
async function getConnectorActivityMetadataV4(options, connectorKey,
|
|
6364
|
+
async function getConnectorActivityMetadataV4(options, connectorKey, objectName) {
|
|
6364
6365
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
6365
|
-
const url = `${baseUrl}/${organizationId}/${tenantName}/elements_/v4/element/connectors/${encodeURIComponent(connectorKey)}/
|
|
6366
|
+
const url = `${baseUrl}/${organizationId}/${tenantName}/elements_/v4/element/connectors/${encodeURIComponent(connectorKey)}/objects/${encodeURIComponent(objectName)}/metadata`;
|
|
6366
6367
|
const response = await fetch(url, {
|
|
6367
6368
|
headers: addSdkUserAgentHeader({
|
|
6368
6369
|
Authorization: `Bearer ${accessToken}`,
|
|
@@ -6862,4 +6863,4 @@ var CONNECTION_STATE_NAMES = new Map([
|
|
|
6862
6863
|
var CRUD_OPERATIONS = new Set(["CREATED", "UPDATED", "DELETED"]);
|
|
6863
6864
|
export { ConnectionOperationsApi, ConnectionsApi, ConnectorsApi, ElementsApi, createApiClient, isV4ActivityConfiguration, getConnectorActivityMetadataV4, getEventOperationObjects, buildActivityEssentialConfiguration, createConfiguredActivityClient, assertActivityMetadataResolved, extractMultipartParameters, buildInputMetadata, validateIntSvcNode };
|
|
6864
6865
|
|
|
6865
|
-
//# debugId=
|
|
6866
|
+
//# debugId=6B47A7C8C395B40B64756E2164756E21
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEBUG_MODE_MAP,
|
|
3
|
-
SIMULATION_MODE_MAP
|
|
4
|
-
} from "./packager-tool-8rf8qda5.js";
|
|
5
1
|
import {
|
|
6
2
|
resolveJsonInput
|
|
7
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-hz1mz8fs.js";
|
|
8
4
|
import {
|
|
9
5
|
getAuthContext
|
|
10
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-yrsrzz1a.js";
|
|
7
|
+
import {
|
|
8
|
+
DEBUG_MODE_MAP,
|
|
9
|
+
SIMULATION_MODE_MAP
|
|
10
|
+
} from "./packager-tool-adcaxdhs.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PAGE_SIZE,
|
|
13
13
|
EXIT_CODES,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
parseLimit,
|
|
24
24
|
parseOffset,
|
|
25
25
|
processContext
|
|
26
|
-
} from "./packager-tool-
|
|
26
|
+
} from "./packager-tool-kpcjnxd1.js";
|
|
27
27
|
|
|
28
28
|
// ../maestro-sdk/src/query-string.ts
|
|
29
29
|
function buildQueryString(params) {
|
|
@@ -1122,4 +1122,4 @@ var registerSharedProcessesCommands = (program, config) => {
|
|
|
1122
1122
|
|
|
1123
1123
|
export { registerSharedIncidentCommands, registerSharedInstanceCommands, registerSharedProcessCommands, registerSharedProcessesCommands };
|
|
1124
1124
|
|
|
1125
|
-
//# debugId=
|
|
1125
|
+
//# debugId=98A588F258A04C4164756E2164756E21
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// src/services/strict-connector-context.ts
|
|
2
|
+
var REQUIRED_CONNECTOR_CONTEXT_KEYS = [
|
|
3
|
+
"connectorKey",
|
|
4
|
+
"connection",
|
|
5
|
+
"resourceKey",
|
|
6
|
+
"folderKey",
|
|
7
|
+
"objectName",
|
|
8
|
+
"metadata"
|
|
9
|
+
];
|
|
10
|
+
var REQUIRED_TRIGGER_CONTEXT_KEYS = [
|
|
11
|
+
...REQUIRED_CONNECTOR_CONTEXT_KEYS,
|
|
12
|
+
"operation"
|
|
13
|
+
];
|
|
14
|
+
var asRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
|
|
15
|
+
var contextEntries = (context) => (Array.isArray(context) ? context : []).map((entry) => asRecord(entry)).filter((entry) => entry !== undefined);
|
|
16
|
+
var contextEntry = (context, name) => contextEntries(context).find((entry) => entry.name === name);
|
|
17
|
+
var missingContextKeys = (context, waitsForEvent) => {
|
|
18
|
+
const present = new Set(contextEntries(context).map((entry) => entry.name).filter((name) => typeof name === "string"));
|
|
19
|
+
const required = waitsForEvent ? REQUIRED_TRIGGER_CONTEXT_KEYS : REQUIRED_CONNECTOR_CONTEXT_KEYS;
|
|
20
|
+
return required.filter((key) => !present.has(key));
|
|
21
|
+
};
|
|
22
|
+
var readActivityTypeId = (context) => {
|
|
23
|
+
const metadata = contextEntry(context, "metadata");
|
|
24
|
+
const configuration = asRecord(asRecord(metadata?.body)?.activityPropertyConfiguration);
|
|
25
|
+
const activityTypeId = configuration?.uiPathActivityTypeId;
|
|
26
|
+
return typeof activityTypeId === "string" && activityTypeId.trim() !== "" ? activityTypeId : undefined;
|
|
27
|
+
};
|
|
28
|
+
var ACTIVITY_TYPE_ID_PATH = "body.activityPropertyConfiguration.uiPathActivityTypeId";
|
|
29
|
+
var ACTIVITY_TYPE_ID_KEY = "uiPathActivityTypeId";
|
|
30
|
+
var MISCASED_ACTIVITY_TYPE_ID_KEY = "UiPathActivityTypeId";
|
|
31
|
+
var findActivityTypeIdPath = (context) => {
|
|
32
|
+
const metadata = contextEntry(context, "metadata");
|
|
33
|
+
if (metadata === undefined)
|
|
34
|
+
return;
|
|
35
|
+
const search = (value, path) => {
|
|
36
|
+
const record = asRecord(value);
|
|
37
|
+
if (record === undefined) {
|
|
38
|
+
if (!Array.isArray(value))
|
|
39
|
+
return;
|
|
40
|
+
for (const [index, entry] of value.entries()) {
|
|
41
|
+
const found = search(entry, `${path}[${index}]`);
|
|
42
|
+
if (found !== undefined)
|
|
43
|
+
return found;
|
|
44
|
+
}
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
for (const [key, entry] of Object.entries(record)) {
|
|
48
|
+
const here = path === "" ? key : `${path}.${key}`;
|
|
49
|
+
if ((key === ACTIVITY_TYPE_ID_KEY || key === MISCASED_ACTIVITY_TYPE_ID_KEY) && typeof entry === "string" && entry.trim() !== "") {
|
|
50
|
+
return here;
|
|
51
|
+
}
|
|
52
|
+
const found = search(entry, here);
|
|
53
|
+
if (found !== undefined)
|
|
54
|
+
return found;
|
|
55
|
+
}
|
|
56
|
+
return;
|
|
57
|
+
};
|
|
58
|
+
const { name: _name, type: _type, ...payload } = metadata;
|
|
59
|
+
return search(payload, "");
|
|
60
|
+
};
|
|
61
|
+
var activityTypeIdMessage = (subject, context, consequence) => {
|
|
62
|
+
const foundAt = findActivityTypeIdPath(context);
|
|
63
|
+
if (foundAt !== undefined && foundAt !== ACTIVITY_TYPE_ID_PATH) {
|
|
64
|
+
return `Connector ${subject} carries an activity type id at ` + `context[metadata].${foundAt}, but the runtime reads it from ` + `context[metadata].${ACTIVITY_TYPE_ID_PATH}. Write it at that ` + "path instead, with that exact spelling. Both keys start " + 'lower-case: "activityPropertyConfiguration" directly under ' + `"body", then "${ACTIVITY_TYPE_ID_KEY}". The id itself is ` + "already correct.";
|
|
65
|
+
}
|
|
66
|
+
return `Connector ${subject} has a metadata configuration with no ` + `${ACTIVITY_TYPE_ID_KEY} at context[metadata].` + `${ACTIVITY_TYPE_ID_PATH}. ${consequence}`;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// src/services/resource-task-binding.ts
|
|
70
|
+
var NAME_BOUND_TASK_TYPES = new Set([
|
|
71
|
+
"action",
|
|
72
|
+
"agent",
|
|
73
|
+
"api-workflow",
|
|
74
|
+
"case-management",
|
|
75
|
+
"process",
|
|
76
|
+
"rpa"
|
|
77
|
+
]);
|
|
78
|
+
var RESOLVED_IDENTITY_KEYS = [
|
|
79
|
+
"resourceId",
|
|
80
|
+
"typeId",
|
|
81
|
+
"actionAppId",
|
|
82
|
+
"actionDefinitionId"
|
|
83
|
+
];
|
|
84
|
+
var BINDING_REFERENCE_PREFIX = "=bindings.";
|
|
85
|
+
|
|
86
|
+
export { contextEntries, contextEntry, missingContextKeys, readActivityTypeId, ACTIVITY_TYPE_ID_PATH, activityTypeIdMessage, NAME_BOUND_TASK_TYPES, RESOLVED_IDENTITY_KEYS, BINDING_REFERENCE_PREFIX };
|
|
87
|
+
|
|
88
|
+
//# debugId=F24FF71C1A7CE33164756E2164756E21
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
// ../../node_modules/@uipath/flow-schema/dist/chunk-
|
|
1
|
+
// ../../node_modules/@uipath/flow-core/node_modules/@uipath/flow-schema/dist/chunk-2EPL5HPI.js
|
|
2
2
|
var agentDuplicateToolNames_duplicateName_message = 'Tool name "{{name}}" is used by multiple tools on this agent. Each tool must have a unique name.';
|
|
3
3
|
var agentEmptyVar_unwrittenVariable_message = `Agent uses "$vars.{{root}}" but no node assigns a value to "{{root}}", so it will be empty at runtime. Bind it to a node output (e.g. a connector's "<node>.output") or give it a value source.`;
|
|
4
|
+
var agentFileNotAnalyzed_unconsumedFileVar_message = 'Agent uses the file variable "$vars.{{path}}" in its prompt, but it has no tool that can read files, so the agent gets only the file reference and not its contents. Add a file-reading tool such as Analyze Files.';
|
|
5
|
+
var agentFileOutput_unsupported_message = `{{label}}: agents can't create files, so this "file" output produces an invalid attachment at runtime unless a connected tool supplies the file.`;
|
|
4
6
|
var agentInputRefs_ambiguousUnderscoreRoot_message = 'Prompt references "$vars.{{ref}}", but the name "{{rootSegment}}" contains "__", which is reserved as the agent-input encoding separator and cannot round-trip. Rename it to remove the double underscore.';
|
|
5
7
|
var agentInputRefs_reservedMetadataRoot_message = 'Prompt references "$vars.{{ref}}", but a variable or node named "metadata" collides with the "$metadata" namespace once serialized for the agent and cannot round-trip. Rename it to something other than "metadata".';
|
|
6
8
|
var agentInputRefs_reservedNamespace_message = '"$agent.{{ref}}" is a Flow-internal agent-runtime namespace and cannot be used directly in prompts. Reference the flow variable via "$vars.{{ref}}" or "$metadata.{{ref}}" instead.';
|
|
@@ -9,6 +11,8 @@ var conditionExpression_decisionWrapped_message = 'Invalid condition on "{{nodeL
|
|
|
9
11
|
var conditionExpression_incomplete_message = "Incomplete expression";
|
|
10
12
|
var conditionExpression_invalid_message = "Invalid expression";
|
|
11
13
|
var conditionExpression_required_message = "Add a condition";
|
|
14
|
+
var conversationalRequired_contextRequired_message = "{{label}}: Conversation context is required";
|
|
15
|
+
var conversationalRequired_conversationIdRequired_message = "{{label}}: Conversation ID is required";
|
|
12
16
|
var conversationalVoiceEndCall_callContextInvalid_message = "{{label}}: Call context must be bound to a call context object";
|
|
13
17
|
var conversationalVoice_callContextInvalid_message = "{{label}}: Call context must be bound to a call context object";
|
|
14
18
|
var conversationalVoice_callContextRequired_message = "{{label}}: Call context is required when voice is enabled";
|
|
@@ -23,6 +27,15 @@ var dataTransform_mapNoMappings_message = '"{{nodeLabel}}" map operation needs a
|
|
|
23
27
|
var dataTransform_missingCollection_message = '"{{nodeLabel}}" is missing a collection variable';
|
|
24
28
|
var dataTransform_noOperations_message = '"{{nodeLabel}}" has no operations configured';
|
|
25
29
|
var doWhile_limitOutOfRange_message = "Set maximum iterations between {{min}} and {{max}}";
|
|
30
|
+
var entityQuery_emptyFilterExpression_message = "Write an expression for every filter, or remove the filter";
|
|
31
|
+
var entityQuery_emptyFilterValueList_message = "Add at least one value to the filter, or remove the filter";
|
|
32
|
+
var entityQuery_incompleteSingleRecordRow_message = "Select a field and enter a value";
|
|
33
|
+
var entityQuery_uncarryableExpression_message = "Store this expression in a variable, or write it without spaces, quotes, or backslashes";
|
|
34
|
+
var entityQuery_uncarryableRelationPath_message = "{{path}} cannot be used as written. Remove any spaces, quotes or backslashes from the column name.";
|
|
35
|
+
var entityQuery_unfilteredSingleRecord_message = "Add a condition, or read multiple records instead";
|
|
36
|
+
var entityQuery_unresolvedRelation_message = "{{path}} is no longer available. Pick a field on this entity or one of its direct relations.";
|
|
37
|
+
var entityWrite_requiredFieldBlanked_message = "Set a value for {{fields}}, or remove them from the update";
|
|
38
|
+
var entityWrite_requiredFieldMissing_message = "Set a value for {{fields}}";
|
|
26
39
|
var escalation_appRequired_message = "Select an action app";
|
|
27
40
|
var escalation_memoryArgumentRequired_message = "{{label}}: Add at least one argument for agent memory, or turn agent memory off";
|
|
28
41
|
var escalation_nameRequired_message = "{{label}}: Escalation name is required";
|
|
@@ -53,6 +66,8 @@ var triggerRequired_message = "Process must have at least one trigger node";
|
|
|
53
66
|
var en_default = {
|
|
54
67
|
agentDuplicateToolNames_duplicateName_message,
|
|
55
68
|
agentEmptyVar_unwrittenVariable_message,
|
|
69
|
+
agentFileNotAnalyzed_unconsumedFileVar_message,
|
|
70
|
+
agentFileOutput_unsupported_message,
|
|
56
71
|
agentInputRefs_ambiguousUnderscoreRoot_message,
|
|
57
72
|
agentInputRefs_reservedMetadataRoot_message,
|
|
58
73
|
agentInputRefs_reservedNamespace_message,
|
|
@@ -61,6 +76,8 @@ var en_default = {
|
|
|
61
76
|
conditionExpression_incomplete_message,
|
|
62
77
|
conditionExpression_invalid_message,
|
|
63
78
|
conditionExpression_required_message,
|
|
79
|
+
conversationalRequired_contextRequired_message,
|
|
80
|
+
conversationalRequired_conversationIdRequired_message,
|
|
64
81
|
conversationalVoiceEndCall_callContextInvalid_message,
|
|
65
82
|
conversationalVoice_callContextInvalid_message,
|
|
66
83
|
conversationalVoice_callContextRequired_message,
|
|
@@ -75,6 +92,15 @@ var en_default = {
|
|
|
75
92
|
dataTransform_missingCollection_message,
|
|
76
93
|
dataTransform_noOperations_message,
|
|
77
94
|
doWhile_limitOutOfRange_message,
|
|
95
|
+
entityQuery_emptyFilterExpression_message,
|
|
96
|
+
entityQuery_emptyFilterValueList_message,
|
|
97
|
+
entityQuery_incompleteSingleRecordRow_message,
|
|
98
|
+
entityQuery_uncarryableExpression_message,
|
|
99
|
+
entityQuery_uncarryableRelationPath_message,
|
|
100
|
+
entityQuery_unfilteredSingleRecord_message,
|
|
101
|
+
entityQuery_unresolvedRelation_message,
|
|
102
|
+
entityWrite_requiredFieldBlanked_message,
|
|
103
|
+
entityWrite_requiredFieldMissing_message,
|
|
78
104
|
escalation_appRequired_message,
|
|
79
105
|
escalation_memoryArgumentRequired_message,
|
|
80
106
|
escalation_nameRequired_message,
|
|
@@ -104,6 +130,6 @@ var en_default = {
|
|
|
104
130
|
triggerRequired_message
|
|
105
131
|
};
|
|
106
132
|
|
|
107
|
-
export { agentDuplicateToolNames_duplicateName_message, agentEmptyVar_unwrittenVariable_message, agentInputRefs_ambiguousUnderscoreRoot_message, agentInputRefs_reservedMetadataRoot_message, agentInputRefs_reservedNamespace_message, agentInputRefs_unresolvedRef_message, conditionExpression_decisionWrapped_message, conditionExpression_incomplete_message, conditionExpression_invalid_message, conditionExpression_required_message, conversationalVoiceEndCall_callContextInvalid_message, conversationalVoice_callContextInvalid_message, conversationalVoice_callContextRequired_message, dataTransform_customScriptMissing_message, dataTransform_filterMissingField_message, dataTransform_filterNoConditions_message, dataTransform_groupByAggMissingField_message, dataTransform_groupByAggMissingOutputName_message, dataTransform_groupByMissingField_message, dataTransform_mapMissingField_message, dataTransform_mapNoMappings_message, dataTransform_missingCollection_message, dataTransform_noOperations_message, doWhile_limitOutOfRange_message, escalation_appRequired_message, escalation_memoryArgumentRequired_message, escalation_nameRequired_message, escalation_quickFormDuplicateFieldLabel_message, escalation_recipientRequired_message, governance_hitlRequired_message, governance_maxIterationsExceeded_message, governance_maxTokensExceeded_message, governance_modelNotAvailable_message, governance_noAllowedModel_message, governance_temperatureExceeded_message, hitlQuickForm_emptySchema_message, hitlQuickForm_fieldLabelRequired_message, ixpSchemaDraft_invalidWithDetail_message, ixpSchemaDraft_invalid_message, outputMapping_missing_message, schemaValidator_genericKeyword_message, schemaValidator_invalidEnum_message, schemaValidator_invalidField_message, schemaValidator_invalidPattern_message, schemaValidator_outOfRange_message, schemaValidator_required_message, schemaValidator_typeMismatch_message, schemaValidator_validation_genericError, scriptBody_mustache_message, singleConversationTrigger_message, triggerRequired_message, en_default };
|
|
133
|
+
export { agentDuplicateToolNames_duplicateName_message, agentEmptyVar_unwrittenVariable_message, agentFileNotAnalyzed_unconsumedFileVar_message, agentFileOutput_unsupported_message, agentInputRefs_ambiguousUnderscoreRoot_message, agentInputRefs_reservedMetadataRoot_message, agentInputRefs_reservedNamespace_message, agentInputRefs_unresolvedRef_message, conditionExpression_decisionWrapped_message, conditionExpression_incomplete_message, conditionExpression_invalid_message, conditionExpression_required_message, conversationalRequired_contextRequired_message, conversationalRequired_conversationIdRequired_message, conversationalVoiceEndCall_callContextInvalid_message, conversationalVoice_callContextInvalid_message, conversationalVoice_callContextRequired_message, dataTransform_customScriptMissing_message, dataTransform_filterMissingField_message, dataTransform_filterNoConditions_message, dataTransform_groupByAggMissingField_message, dataTransform_groupByAggMissingOutputName_message, dataTransform_groupByMissingField_message, dataTransform_mapMissingField_message, dataTransform_mapNoMappings_message, dataTransform_missingCollection_message, dataTransform_noOperations_message, doWhile_limitOutOfRange_message, entityQuery_emptyFilterExpression_message, entityQuery_emptyFilterValueList_message, entityQuery_incompleteSingleRecordRow_message, entityQuery_uncarryableExpression_message, entityQuery_uncarryableRelationPath_message, entityQuery_unfilteredSingleRecord_message, entityQuery_unresolvedRelation_message, entityWrite_requiredFieldBlanked_message, entityWrite_requiredFieldMissing_message, escalation_appRequired_message, escalation_memoryArgumentRequired_message, escalation_nameRequired_message, escalation_quickFormDuplicateFieldLabel_message, escalation_recipientRequired_message, governance_hitlRequired_message, governance_maxIterationsExceeded_message, governance_maxTokensExceeded_message, governance_modelNotAvailable_message, governance_noAllowedModel_message, governance_temperatureExceeded_message, hitlQuickForm_emptySchema_message, hitlQuickForm_fieldLabelRequired_message, ixpSchemaDraft_invalidWithDetail_message, ixpSchemaDraft_invalid_message, outputMapping_missing_message, schemaValidator_genericKeyword_message, schemaValidator_invalidEnum_message, schemaValidator_invalidField_message, schemaValidator_invalidPattern_message, schemaValidator_outOfRange_message, schemaValidator_required_message, schemaValidator_typeMismatch_message, schemaValidator_validation_genericError, scriptBody_mustache_message, singleConversationTrigger_message, triggerRequired_message, en_default };
|
|
108
134
|
|
|
109
|
-
//# debugId=
|
|
135
|
+
//# debugId=70BBA469B879E06964756E2164756E21
|