@uipath/flow-tool 1.202.2 → 1.203.0-preview.180
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 +48 -49
- package/dist/{authoring-cyybnqy9.js → authoring-tv4dh80p.js} +31 -9
- package/dist/{binding-service-xq110a7q.js → binding-service-1hjkvp7f.js} +37 -29
- package/dist/{connector-service-1jp3gvb1.js → connector-service-f50vt5ar.js} +225 -57
- package/dist/{conversion-FQTRFHRX-j8vsrk1c.js → conversion-FQTRFHRX-5bww6cg9.js} +11 -10
- package/dist/de-FGHEJRCI-gn4cf5gh.js +2697 -0
- package/dist/de-MUJPA4EB-dpg7t2rw.js +173 -0
- package/dist/{debug-conversation-trigger-q5jwq1x7.js → debug-conversation-trigger-nmd9v41y.js} +21 -18
- package/dist/{debug-http-client-4ev9xna7.js → debug-http-client-53qk6pc5.js} +2 -2
- package/dist/{debug-service-2skv6t3q.js → debug-service-nyk0s6mc.js} +3 -3
- package/dist/{edge-service-crgn8x3q.js → edge-service-qs0fmj4c.js} +19 -16
- package/dist/{index-4b8634za.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
- package/dist/{en-TBNO2WUV-rfe87pgh.js → en-BWGKA5OE-1qkvb9rn.js} +2 -2
- package/dist/en-FBPVNKFN-dqt573xn.js +138 -0
- package/dist/en-TBNO2WUV-9nan43e5.js +1936 -0
- package/dist/es-7SE7HX2X-8yh1aj2y.js +173 -0
- package/dist/es-KR3ZSNMP-0cszm2n3.js +2697 -0
- package/dist/es-MX-2MYFZU7X-3rek4r73.js +173 -0
- package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +2697 -0
- package/dist/first-party-service-srxaftkn.js +27 -0
- package/dist/{flow-api-p1jy8t6k.js → flow-api-f49qbvf6.js} +8 -8
- package/dist/{flow-debug-service-gtz48pcs.js → flow-debug-service-nvx6c5fm.js} +65 -40
- package/dist/{flow-eval-node-target-d4q72qzz.js → flow-eval-node-target-rv41h6g2.js} +24 -17
- package/dist/flow-eval-run-api-1bw5e0k4.js +13 -0
- package/dist/{flow-eval-run-service-bteardyh.js → flow-eval-run-service-bnpf0zhb.js} +105 -220
- package/dist/{flow-eval-service-8wn40enf.js → flow-eval-service-p0fbctsk.js} +350 -306
- package/dist/flow-init-service-6c5tj22g.js +42 -0
- package/dist/{flow-io-91tv36v5.js → flow-io-c05c9hc7.js} +18 -15
- package/dist/{flow-migrate-service-4mxge029.js → flow-migrate-service-6dky7rrg.js} +27 -23
- package/dist/{flow-pack-service-9s7wmwpf.js → flow-pack-service-3ms1t8nv.js} +44 -36
- package/dist/flow-validate-service-hq93ye0w.js +65 -0
- package/dist/fr-MDFKNZ4C-h4a122k9.js +173 -0
- package/dist/fr-Y6NPVODW-q5ef3htr.js +2697 -0
- package/dist/{governance-fetcher-kn29e4eb.js → governance-fetcher-7b0a301w.js} +6 -5
- package/dist/{headless-my7j1typ.js → headless-rkxtgwts.js} +42909 -1756
- package/dist/{hitl-service-fmrkamr4.js → hitl-service-fpdb3tf5.js} +18 -15
- package/dist/{index-1kgxzh8x.js → index-3ts7y9d3.js} +15 -3
- package/dist/{index-gbfvfhkw.js → index-4hhb8jhe.js} +6 -4
- package/dist/{index-apf8q9y0.js → index-51z10z84.js} +4 -4
- package/dist/{index-d1yqqk6q.js → index-55cym5j7.js} +6 -4
- package/dist/index-kmp9fmhb.js +25 -0
- package/dist/index-sc7ddh21.js +16742 -0
- package/dist/{index-acd6bpqc.js → index-ymsd3pyx.js} +12 -15
- package/dist/index.js +13 -24
- package/dist/init.js +23 -19
- package/dist/{input-reader-mm2ydeh5.js → input-reader-tw0j373f.js} +1 -1
- package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +2697 -0
- package/dist/ja-UTQEAP34-8e0q6swp.js +173 -0
- package/dist/known-types-8dhhqk35.js +19 -0
- package/dist/ko-AXCHW2OK-askct7f6.js +173 -0
- package/dist/ko-AYBDSRZG-am0h0m2r.js +2697 -0
- package/dist/{maestro-automate-entry-6bxz7zxn.js → maestro-automate-entry-pqy9xqm3.js} +2 -2
- package/dist/{node-2ja52fbg.js → node-98psr4wc.js} +2344 -376
- package/dist/{node-service-1ygyqaed.js → node-service-yfyzjg1s.js} +37 -29
- package/dist/{node-sync-service-a4grwf1e.js → node-sync-service-zq2ptsep.js} +15 -15
- package/dist/{packager-tool-nnm6kw3x.js → packager-tool-0egkaa38.js} +1 -1
- package/dist/{packager-tool-0hrz9qfd.js → packager-tool-10t52r3c.js} +7 -7
- package/dist/{packager-tool-eb48j42f.js → packager-tool-13xbv18n.js} +100 -127
- package/dist/{packager-tool-nq4rcqqg.js → packager-tool-1frs4sr4.js} +32 -2
- package/dist/{packager-tool-bddj2zb4.js → packager-tool-1r5dnt9q.js} +1 -1
- package/dist/{packager-tool-f0kd5kq4.js → packager-tool-26ydwf12.js} +130 -15
- package/dist/{packager-tool-9ydywwp2.js → packager-tool-321a1806.js} +1 -1
- package/dist/packager-tool-35hg551a.js +1889 -0
- package/dist/{packager-tool-2csx1z2z.js → packager-tool-3j8sdsc2.js} +31 -30
- package/dist/{packager-tool-kscf0zaz.js → packager-tool-4rvnss1x.js} +15 -56
- package/dist/{packager-tool-t6exvxxr.js → packager-tool-5060zp48.js} +2 -2
- package/dist/packager-tool-53w8skv5.js +262 -0
- package/dist/{packager-tool-rew0hp2h.js → packager-tool-6k8s7pt9.js} +269 -23
- package/dist/{packager-tool-29eg86w6.js → packager-tool-6rsegsby.js} +6 -7
- package/dist/packager-tool-795gzq9k.js +208 -0
- package/dist/packager-tool-7q6z6npd.js +1937 -0
- package/dist/{packager-tool-h1mds3r4.js → packager-tool-8dj442ex.js} +5 -4
- package/dist/packager-tool-8qp60s20.js +12 -0
- package/dist/{packager-tool-114a3x6s.js → packager-tool-9kx94sj5.js} +16 -6
- package/dist/packager-tool-asvprb1k.js +3513 -0
- package/dist/{packager-tool-0d7tcvg1.js → packager-tool-b1xs6aty.js} +4 -1
- package/dist/{packager-tool-nmqwgqp7.js → packager-tool-bzry3t7v.js} +9 -9
- package/dist/{packager-tool-nt7g81h7.js → packager-tool-carzh1jy.js} +10 -10
- package/dist/packager-tool-d88rqwk8.js +135 -0
- package/dist/{packager-tool-pm3qh1hy.js → packager-tool-dh5nppv4.js} +1 -1
- package/dist/{packager-tool-r87gxwqa.js → packager-tool-e87tzg4y.js} +2 -2
- package/dist/{packager-tool-d0w3423x.js → packager-tool-e9yc5m6b.js} +1 -1
- package/dist/packager-tool-fvm2dddf.js +6297 -0
- package/dist/{packager-tool-3bra2c4j.js → packager-tool-gctpkdzs.js} +1 -1
- package/dist/packager-tool-gdtpsdn7.js +342 -0
- package/dist/{packager-tool-aa481g36.js → packager-tool-gpwec9sp.js} +6 -6
- package/dist/{packager-tool-a1hbfmws.js → packager-tool-gzpvdcnw.js} +124 -2
- package/dist/{packager-tool-03hjxcd7.js → packager-tool-h9d8c9rf.js} +1 -1
- package/dist/packager-tool-j78fwwhq.js +16 -0
- package/dist/packager-tool-jysvpt8p.js +11 -0
- package/dist/{packager-tool-5kd7msdf.js → packager-tool-nsmy7aap.js} +5 -5
- package/dist/packager-tool-paq9c70w.js +1332 -0
- package/dist/{packager-tool-tv33t02p.js → packager-tool-pszx10r5.js} +310 -13
- package/dist/{packager-tool-7qzyj26r.js → packager-tool-r45r9gk6.js} +209 -199
- package/dist/{packager-tool-sc5tddfj.js → packager-tool-s0mzv3sx.js} +1 -1
- package/dist/{packager-tool-pdg7hwvw.js → packager-tool-t9c77psy.js} +3098 -3179
- package/dist/{packager-tool-0880myh2.js → packager-tool-v31s32s4.js} +23 -5
- package/dist/{packager-tool-vfb74f9p.js → packager-tool-vbser1d9.js} +7 -7
- package/dist/packager-tool-vcjq9xkc.js +1895 -0
- package/dist/{packager-tool-w20r6n9v.js → packager-tool-vck7ct1e.js} +2877 -2221
- package/dist/{packager-tool-e8td7b01.js → packager-tool-vdc8r21p.js} +10328 -16610
- package/dist/{packager-tool-yr3bws42.js → packager-tool-vqcnvaae.js} +15 -15
- package/dist/{packager-tool-n7x6kxph.js → packager-tool-w22107ex.js} +8 -8
- package/dist/packager-tool-w5a1hhyj.js +13 -0
- package/dist/{packager-tool-rmh1jea6.js → packager-tool-xsta8jfz.js} +4 -3
- package/dist/packager-tool-yvva2vc5.js +261 -0
- package/dist/{packager-tool-9y5am147.js → packager-tool-z185rq2a.js} +4 -4
- package/dist/{packager-tool-gbzpz3qn.js → packager-tool-z894s8rx.js} +10 -13
- package/dist/packager-tool.js +17 -14
- package/dist/pt-3DIO5QWG-59b3f4bc.js +173 -0
- package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +2697 -0
- package/dist/pt-BR-Y6K6XHXK-mp3hwhw1.js +173 -0
- package/dist/pt-ROXU257Y-yd80gx6s.js +2697 -0
- package/dist/ro-AVAWPKOO-42m6am1w.js +2697 -0
- package/dist/ro-BWR3ONRR-vzx3hy8a.js +173 -0
- package/dist/ru-GSCT4ARZ-jrxwev63.js +10 -0
- package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
- package/dist/{serialization-BXU6AKAN-n5b0v0kd.js → serialization-BXU6AKAN-z0vcrhpz.js} +13 -12
- package/dist/services/connector-binding-validator.d.ts +10 -1
- package/dist/services/definitions-lookup.d.ts +27 -0
- package/dist/services/flow-debug-service.d.ts +290 -0
- package/dist/services/flow-eval-types.d.ts +2 -2
- package/dist/services/flow-eval-utils.d.ts +29 -0
- package/dist/services/flow-validate-service.d.ts +39 -0
- package/dist/services/node-validators/connector-validator.d.ts +8 -0
- package/dist/services/vars-reference-rule.d.ts +113 -13
- package/dist/{shared-utils-ka4xn0nn.js → shared-utils-wv356cvj.js} +1 -1
- package/dist/tidy-service-cxpm6pcy.js +39 -0
- package/dist/tool.js +13 -24
- package/dist/tr-5IIHSFW5-hw4cewew.js +173 -0
- package/dist/tr-JMIP7ZSL-fb67ft9w.js +2696 -0
- package/dist/utils/handle-expansion.d.ts +34 -0
- package/dist/utils/write-resolved-flow.d.ts +7 -0
- package/dist/validation.js +46 -39
- package/dist/{variable-service-caa9axmz.js → variable-service-c1f91388.js} +22 -19
- package/dist/{wait-for-flow-job-xtnb6zfc.js → wait-for-flow-job-yp3mhy43.js} +8 -8
- package/dist/zh-CN-IFFXSEJS-tke4mzty.js +2697 -0
- package/dist/zh-CN-R2KU4U5L-tc1hat59.js +173 -0
- package/dist/zh-TW-GNKMELBF-j674515r.js +173 -0
- package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +2697 -0
- package/package.json +3 -2
- package/dist/flow-init-service-a4td40wm.js +0 -38
- package/dist/flow-validate-service-bd4zxhfx.js +0 -59
- package/dist/known-types-eq32py2n.js +0 -20
- package/dist/packager-tool-2wefykg9.js +0 -106
- package/dist/packager-tool-7t3rgb7f.js +0 -4945
- package/dist/packager-tool-8j92afwp.js +0 -58
- package/dist/packager-tool-jjpc0yka.js +0 -304
- package/dist/tidy-service-44n8x2mn.js +0 -36
- /package/dist/{localization-w8ada88j.js → localization-y790z9vm.js} +0 -0
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveMaestroRegistry
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-0egkaa38.js";
|
|
4
|
+
import {
|
|
5
|
+
listKnownSdkNodes
|
|
6
|
+
} from "./packager-tool-dh5nppv4.js";
|
|
7
|
+
import {
|
|
8
|
+
getAgentProjectMetadataReader
|
|
9
|
+
} from "./packager-tool-8qp60s20.js";
|
|
4
10
|
import {
|
|
5
11
|
getAuthContext,
|
|
6
12
|
getLoginStatusAsync
|
|
7
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-26ydwf12.js";
|
|
8
14
|
import {
|
|
9
15
|
isBrowser
|
|
10
16
|
} from "./packager-tool-0gctz400.js";
|
|
11
17
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
MANIFEST_FEATURE_FLAGS,
|
|
19
|
+
ManifestClient,
|
|
20
|
+
extractIOFromEntryPoints,
|
|
21
|
+
getServiceType,
|
|
22
|
+
taskDefinitionsToNodeManifests
|
|
23
|
+
} from "./packager-tool-vck7ct1e.js";
|
|
14
24
|
import {
|
|
15
25
|
UIPATH_HOME_DIR,
|
|
16
26
|
addSdkUserAgentHeader,
|
|
@@ -19,17 +29,10 @@ import {
|
|
|
19
29
|
hashContent,
|
|
20
30
|
installSdkUserAgentHeader,
|
|
21
31
|
logger
|
|
22
|
-
} from "./packager-tool-
|
|
32
|
+
} from "./packager-tool-6k8s7pt9.js";
|
|
23
33
|
import {
|
|
24
34
|
getFileSystem
|
|
25
35
|
} from "./packager-tool-0v3s8r01.js";
|
|
26
|
-
import {
|
|
27
|
-
MANIFEST_FEATURE_FLAGS,
|
|
28
|
-
ManifestClient,
|
|
29
|
-
extractIOFromEntryPoints,
|
|
30
|
-
getServiceType,
|
|
31
|
-
taskDefinitionsToNodeManifests
|
|
32
|
-
} from "./packager-tool-w20r6n9v.js";
|
|
33
36
|
import {
|
|
34
37
|
__require
|
|
35
38
|
} from "./packager-tool-1yh8g550.js";
|
|
@@ -667,8 +670,9 @@ class TextApiResponse {
|
|
|
667
670
|
// ../integrationservice-sdk/package.json
|
|
668
671
|
var package_default = {
|
|
669
672
|
name: "@uipath/integrationservice-sdk",
|
|
673
|
+
author: "UiPath",
|
|
670
674
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
671
|
-
version: "1.
|
|
675
|
+
version: "1.203.0-preview.180",
|
|
672
676
|
repository: {
|
|
673
677
|
type: "git",
|
|
674
678
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -6479,9 +6483,9 @@ function isV4ActivityConfiguration(instanceParameters) {
|
|
|
6479
6483
|
return false;
|
|
6480
6484
|
return instanceParameters.version === ACTIVITY_VERSION_V4;
|
|
6481
6485
|
}
|
|
6482
|
-
async function getConnectorActivityMetadataV4(options, connectorKey,
|
|
6486
|
+
async function getConnectorActivityMetadataV4(options, connectorKey, objectName) {
|
|
6483
6487
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
6484
|
-
const url = `${baseUrl}/${organizationId}/${tenantName}/elements_/v4/element/connectors/${encodeURIComponent(connectorKey)}/
|
|
6488
|
+
const url = `${baseUrl}/${organizationId}/${tenantName}/elements_/v4/element/connectors/${encodeURIComponent(connectorKey)}/objects/${encodeURIComponent(objectName)}/metadata`;
|
|
6485
6489
|
const response = await fetch(url, {
|
|
6486
6490
|
headers: addSdkUserAgentHeader({
|
|
6487
6491
|
Authorization: `Bearer ${accessToken}`,
|
|
@@ -7104,7 +7108,8 @@ function applyOptionalFieldProps(compact, field) {
|
|
|
7104
7108
|
lookupValue: field.reference.lookupValue,
|
|
7105
7109
|
lookupNames: field.reference.lookupNames,
|
|
7106
7110
|
path: field.reference.path,
|
|
7107
|
-
childPath: field.reference.childPath
|
|
7111
|
+
childPath: field.reference.childPath,
|
|
7112
|
+
scriptRef: field.reference.scriptRef
|
|
7108
7113
|
};
|
|
7109
7114
|
}
|
|
7110
7115
|
}
|
|
@@ -7273,8 +7278,8 @@ async function fetchConnectorMetadata(connectorKey, objectName, connectionId) {
|
|
|
7273
7278
|
});
|
|
7274
7279
|
return await response.raw.json();
|
|
7275
7280
|
}
|
|
7276
|
-
async function fetchConnectorActivityMetadataV4(connectorKey,
|
|
7277
|
-
return await getConnectorActivityMetadataV4(undefined, connectorKey,
|
|
7281
|
+
async function fetchConnectorActivityMetadataV4(connectorKey, objectName) {
|
|
7282
|
+
return await getConnectorActivityMetadataV4(undefined, connectorKey, objectName);
|
|
7278
7283
|
}
|
|
7279
7284
|
function buildEnrichedActivityNode(node, metadata, method) {
|
|
7280
7285
|
const connectorMethodInfo = metadata?.metadata?.method?.[method];
|
|
@@ -7308,16 +7313,16 @@ async function enrichConnectorActivityNode(node, connectionId) {
|
|
|
7308
7313
|
}
|
|
7309
7314
|
async function enrichV4ConnectorActivityNode(node, connectionId, config) {
|
|
7310
7315
|
const connectorKey = config?.connectorKey;
|
|
7311
|
-
const
|
|
7316
|
+
const objectName = config?.objectName;
|
|
7312
7317
|
const method = config?.httpMethod;
|
|
7313
|
-
if (!connectorKey || !
|
|
7314
|
-
logger.warn("v4 IS enrichment skipped: node configuration carries no connectorKey/
|
|
7318
|
+
if (!connectorKey || !objectName || !method) {
|
|
7319
|
+
logger.warn("v4 IS enrichment skipped: node configuration carries no connectorKey/objectName/httpMethod.");
|
|
7315
7320
|
return node;
|
|
7316
7321
|
}
|
|
7317
7322
|
if (connectionId) {
|
|
7318
7323
|
logger.warn("v4 metadata endpoints are not connection-scoped — --connection-id is ignored for 4.0.0 enrichment.");
|
|
7319
7324
|
}
|
|
7320
|
-
const [error, metadata] = await catchError(fetchConnectorActivityMetadataV4(connectorKey,
|
|
7325
|
+
const [error, metadata] = await catchError(fetchConnectorActivityMetadataV4(connectorKey, objectName));
|
|
7321
7326
|
if (error) {
|
|
7322
7327
|
logger.warn(`IS v4 enrichment failed: ${error.message}`);
|
|
7323
7328
|
return node;
|
|
@@ -7418,7 +7423,7 @@ async function getPrecacheNode(nodeType, options) {
|
|
|
7418
7423
|
}
|
|
7419
7424
|
|
|
7420
7425
|
// ../maestro-sdk/src/registry/node-storage.ts
|
|
7421
|
-
var CACHE_FORMAT_VERSION =
|
|
7426
|
+
var CACHE_FORMAT_VERSION = 5;
|
|
7422
7427
|
var INDEX_FILE = "index.json";
|
|
7423
7428
|
var METADATA_FILE = "index.meta.json";
|
|
7424
7429
|
var SEARCH_INDEX_FILE = "search-index.json";
|
|
@@ -7618,10 +7623,6 @@ var EMPTY_IO = {
|
|
|
7618
7623
|
inputs: {},
|
|
7619
7624
|
outputs: {}
|
|
7620
7625
|
};
|
|
7621
|
-
var agentProjectMetadataReader;
|
|
7622
|
-
function setAgentProjectMetadataReader(reader) {
|
|
7623
|
-
agentProjectMetadataReader = reader;
|
|
7624
|
-
}
|
|
7625
7626
|
function findEnclosingProjectId(solutionDir, projects, cwd) {
|
|
7626
7627
|
const fs = getFileSystem();
|
|
7627
7628
|
for (const p of projects) {
|
|
@@ -7791,7 +7792,7 @@ async function buildInSolutionNodeManifests(ctx) {
|
|
|
7791
7792
|
if (!serviceType)
|
|
7792
7793
|
continue;
|
|
7793
7794
|
const projectDir = fs.path.resolve(ctx.solutionDir, fs.path.dirname(project.ProjectRelativePath));
|
|
7794
|
-
const reader =
|
|
7795
|
+
const reader = getAgentProjectMetadataReader();
|
|
7795
7796
|
const [name, io, projectMetadata] = await Promise.all([
|
|
7796
7797
|
readProjectName(projectDir),
|
|
7797
7798
|
readProjectEntryPointIO(projectDir),
|
|
@@ -8175,6 +8176,6 @@ async function searchNodesWithFilters(keyword, filters, options) {
|
|
|
8175
8176
|
return searchWithFilters(nodes, keyword, filters);
|
|
8176
8177
|
}
|
|
8177
8178
|
|
|
8178
|
-
export { ACTIVITY_VERSION_V4, isV4ActivityConfiguration, FilterNotSupportedError, substituteFilterVariables, MANAGED_HTTP_CONNECTOR_KEY, buildActivityEssentialConfiguration, createConfiguredActivityClient, applySavedFilterTree, assertActivityMetadataResolved, buildManagedHttpEssentialConfiguration, extractMultipartParameters, inlineMultipartFileValues, isListOperation, buildInputMetadata, normalizeHttpMethod, validateIntSvcNode, isConnectorNode, getConnectorInfo, fetchConnectionInfo, fetchConnectorMetadata, fetchConnectorActivityMetadataV4,
|
|
8179
|
+
export { ACTIVITY_VERSION_V4, isV4ActivityConfiguration, FilterNotSupportedError, substituteFilterVariables, MANAGED_HTTP_CONNECTOR_KEY, buildActivityEssentialConfiguration, createConfiguredActivityClient, applySavedFilterTree, assertActivityMetadataResolved, buildManagedHttpEssentialConfiguration, extractMultipartParameters, inlineMultipartFileValues, isListOperation, buildInputMetadata, normalizeHttpMethod, validateIntSvcNode, isConnectorNode, getConnectorInfo, fetchConnectionInfo, fetchConnectorMetadata, fetchConnectorActivityMetadataV4, pullNodes, pullRemoteNodes, listNodes, searchNodeSummariesWithAvailability, searchNodes, getNode, getNodeEnriched, searchNodesWithFilters };
|
|
8179
8180
|
|
|
8180
|
-
//# debugId=
|
|
8181
|
+
//# debugId=C6AC0975789990E964756E2164756E21
|
|
@@ -1,28 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
regenerateBindingsFile
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-bzry3t7v.js";
|
|
4
4
|
import {
|
|
5
5
|
getConnectorInfo,
|
|
6
6
|
getNode,
|
|
7
7
|
isConnectorNode
|
|
8
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-3j8sdsc2.js";
|
|
9
9
|
import {
|
|
10
10
|
isKnownSdkNodeType
|
|
11
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-dh5nppv4.js";
|
|
12
|
+
import {
|
|
13
|
+
findMatchingDefinition
|
|
14
|
+
} from "./packager-tool-gzpvdcnw.js";
|
|
12
15
|
import {
|
|
13
16
|
readFlowWorkflow,
|
|
14
17
|
writeFlowWorkflow
|
|
15
|
-
} from "./packager-tool-
|
|
18
|
+
} from "./packager-tool-w22107ex.js";
|
|
19
|
+
import {
|
|
20
|
+
createProcessBindings,
|
|
21
|
+
extractProcessGuid
|
|
22
|
+
} from "./packager-tool-r45r9gk6.js";
|
|
16
23
|
import {
|
|
17
24
|
addBinding,
|
|
18
25
|
addNode,
|
|
19
|
-
createBinding,
|
|
20
26
|
generateNodeIdAndName
|
|
21
|
-
} from "./packager-tool-
|
|
27
|
+
} from "./packager-tool-6rsegsby.js";
|
|
22
28
|
import {
|
|
23
29
|
catchError,
|
|
24
30
|
logger
|
|
25
|
-
} from "./packager-tool-
|
|
31
|
+
} from "./packager-tool-6k8s7pt9.js";
|
|
26
32
|
import {
|
|
27
33
|
getFileSystem
|
|
28
34
|
} from "./packager-tool-0v3s8r01.js";
|
|
@@ -76,20 +82,12 @@ var PROCESS_NODE_PREFIXES = [
|
|
|
76
82
|
function isProcessNode(manifest) {
|
|
77
83
|
return PROCESS_NODE_PREFIXES.some((prefix) => manifest.nodeType?.startsWith(prefix));
|
|
78
84
|
}
|
|
79
|
-
function extractProcessGuid(nodeType) {
|
|
80
|
-
const match = nodeType.match(/^(?:uipath\.core\.rpa-workflow|uipath\.agent\.resource\.tool\.process|uipath\.core\.agent|uipath\.core\.api-workflow)\.([0-9a-f-]+)$/i);
|
|
81
|
-
if (!match) {
|
|
82
|
-
throw new Error(`Invalid process node type: "${nodeType}". ` + "Expected a known prefix followed by a process GUID.");
|
|
83
|
-
}
|
|
84
|
-
return match[1];
|
|
85
|
-
}
|
|
86
85
|
function resolveProcessTarget(node, definitions) {
|
|
87
86
|
if (!isProcessNode({ nodeType: node.type }))
|
|
88
87
|
return;
|
|
89
88
|
let subType = "Process";
|
|
90
89
|
if (definitions) {
|
|
91
|
-
const
|
|
92
|
-
const def = sameType.find((d) => node.typeVersion !== undefined && d.version === node.typeVersion) ?? sameType[0];
|
|
90
|
+
const def = findMatchingDefinition(node.type, node.typeVersion, definitions);
|
|
93
91
|
const model = def?.model;
|
|
94
92
|
const defBindings = model?.bindings;
|
|
95
93
|
if (defBindings?.resourceSubType)
|
|
@@ -103,45 +101,6 @@ function resolveProcessTarget(node, definitions) {
|
|
|
103
101
|
function resolveProcessTargetKey(node, definitions) {
|
|
104
102
|
return resolveProcessTarget(node, definitions)?.key;
|
|
105
103
|
}
|
|
106
|
-
function createProcessBindings(manifest) {
|
|
107
|
-
const processGuid = extractProcessGuid(manifest.nodeType);
|
|
108
|
-
const model = manifest.model;
|
|
109
|
-
const rawValues = model?.bindings?.values;
|
|
110
|
-
let processName;
|
|
111
|
-
let folderPath;
|
|
112
|
-
if (Array.isArray(rawValues)) {
|
|
113
|
-
processName = rawValues.find((v) => v.propertyAttribute === "name")?.default ?? "";
|
|
114
|
-
folderPath = rawValues.find((v) => v.propertyAttribute === "folderPath")?.default;
|
|
115
|
-
} else {
|
|
116
|
-
processName = rawValues?.name ?? "";
|
|
117
|
-
folderPath = rawValues?.folderPath;
|
|
118
|
-
}
|
|
119
|
-
if (folderPath == null) {
|
|
120
|
-
throw new Error("Manifest is missing model.bindings.values.folderPath. " + "Cannot create process bindings without a folder path.");
|
|
121
|
-
}
|
|
122
|
-
const subType = model?.bindings?.resourceSubType ?? "Process";
|
|
123
|
-
const resourceKey = model?.bindings?.resourceKey ?? processGuid;
|
|
124
|
-
const nameBinding = createBinding({
|
|
125
|
-
name: "name",
|
|
126
|
-
value: processName,
|
|
127
|
-
resource: "process",
|
|
128
|
-
resourceKey,
|
|
129
|
-
propertyAttribute: "name",
|
|
130
|
-
resourceSubType: subType
|
|
131
|
-
});
|
|
132
|
-
const folderBinding = createBinding({
|
|
133
|
-
name: "folderPath",
|
|
134
|
-
value: folderPath,
|
|
135
|
-
resource: "process",
|
|
136
|
-
resourceKey,
|
|
137
|
-
propertyAttribute: "folderPath",
|
|
138
|
-
resourceSubType: subType
|
|
139
|
-
});
|
|
140
|
-
if (folderPath === "" && folderBinding.default === undefined) {
|
|
141
|
-
folderBinding.default = "";
|
|
142
|
-
}
|
|
143
|
-
return { nameBinding, folderBinding };
|
|
144
|
-
}
|
|
145
104
|
function resolveProcessBindingsInContext(node, nameBinding, folderBinding) {
|
|
146
105
|
const model = node.model;
|
|
147
106
|
if (!model?.context)
|
|
@@ -454,4 +413,4 @@ var deleteNodeFromFlow = async (filePath, nodeId) => {
|
|
|
454
413
|
|
|
455
414
|
export { NodeTypeNotFoundError, NodeTypeNotEnabledError, SourceRequiredError, listNodesInFlow, PROCESS_NODE_PREFIXES, isProcessNode, resolveProcessTarget, resolveProcessTargetKey, ensureProcessBindings, collectNodeBindingResourceKeys, addNodeToFlow, deleteNodeFromFlow };
|
|
456
415
|
|
|
457
|
-
//# debugId=
|
|
416
|
+
//# debugId=8A5B4295E359433A64756E2164756E21
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
registerFlowMigrationsI18n,
|
|
6
6
|
runtimeMigrations,
|
|
7
7
|
runtimeVersion
|
|
8
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-r45r9gk6.js";
|
|
9
9
|
import {
|
|
10
10
|
instance
|
|
11
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-vdc8r21p.js";
|
|
12
12
|
|
|
13
13
|
// src/services/flow-migration-check.ts
|
|
14
14
|
if (!instance.isInitialized) {
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
// ../../node_modules/@uipath/resource-builder-sdk/dist/clients/generated/first-party-service.js
|
|
2
|
+
var first_party_service_DeploymentAction = /* @__PURE__ */ function(DeploymentAction) {
|
|
3
|
+
DeploymentAction["Install"] = "Install";
|
|
4
|
+
DeploymentAction["Link"] = "Link";
|
|
5
|
+
DeploymentAction["Uninstall"] = "Uninstall";
|
|
6
|
+
DeploymentAction["Unlink"] = "Unlink";
|
|
7
|
+
DeploymentAction["Merge"] = "Merge";
|
|
8
|
+
DeploymentAction["UseExisting"] = "UseExisting";
|
|
9
|
+
DeploymentAction["Activate"] = "Activate";
|
|
10
|
+
return DeploymentAction;
|
|
11
|
+
}({});
|
|
12
|
+
var first_party_service_SolutionDeploymentAction = /* @__PURE__ */ function(SolutionDeploymentAction) {
|
|
13
|
+
SolutionDeploymentAction["Install"] = "Install";
|
|
14
|
+
SolutionDeploymentAction["Uninstall"] = "Uninstall";
|
|
15
|
+
SolutionDeploymentAction["Upgrade"] = "Upgrade";
|
|
16
|
+
SolutionDeploymentAction["Rollback"] = "Rollback";
|
|
17
|
+
SolutionDeploymentAction["Activate"] = "Activate";
|
|
18
|
+
return SolutionDeploymentAction;
|
|
19
|
+
}({});
|
|
20
|
+
var first_party_service_SolutionStatus = /* @__PURE__ */ function(SolutionStatus) {
|
|
21
|
+
SolutionStatus["Installed"] = "Installed";
|
|
22
|
+
SolutionStatus["Uninstalled"] = "Uninstalled";
|
|
23
|
+
SolutionStatus["Installing"] = "Installing";
|
|
24
|
+
SolutionStatus["Uninstalling"] = "Uninstalling";
|
|
25
|
+
SolutionStatus["InstallError"] = "InstallError";
|
|
26
|
+
SolutionStatus["UninstallError"] = "UninstallError";
|
|
27
|
+
SolutionStatus["Unknown"] = "Unknown";
|
|
28
|
+
return SolutionStatus;
|
|
29
|
+
}({});
|
|
30
|
+
var first_party_service_QueryOptions = /* @__PURE__ */ function(QueryOptions) {
|
|
31
|
+
QueryOptions["Contains"] = "Contains";
|
|
32
|
+
QueryOptions["Equals"] = "Equals";
|
|
33
|
+
return QueryOptions;
|
|
34
|
+
}({});
|
|
35
|
+
var first_party_service_DeploymentResourceValidationErrorLevel = /* @__PURE__ */ function(DeploymentResourceValidationErrorLevel) {
|
|
36
|
+
DeploymentResourceValidationErrorLevel["Error"] = "Error";
|
|
37
|
+
DeploymentResourceValidationErrorLevel["Warning"] = "Warning";
|
|
38
|
+
DeploymentResourceValidationErrorLevel["Info"] = "Info";
|
|
39
|
+
return DeploymentResourceValidationErrorLevel;
|
|
40
|
+
}({});
|
|
41
|
+
var first_party_service_DeploymentResourceValidationErrorKind = /* @__PURE__ */ function(DeploymentResourceValidationErrorKind) {
|
|
42
|
+
DeploymentResourceValidationErrorKind["Conflict"] = "Conflict";
|
|
43
|
+
DeploymentResourceValidationErrorKind["ConfigurationError"] = "ConfigurationError";
|
|
44
|
+
return DeploymentResourceValidationErrorKind;
|
|
45
|
+
}({});
|
|
46
|
+
var first_party_service_DeploymentResourceValidationAction = /* @__PURE__ */ function(DeploymentResourceValidationAction) {
|
|
47
|
+
DeploymentResourceValidationAction["RenameExisting"] = "RenameExisting";
|
|
48
|
+
DeploymentResourceValidationAction["RenameInSolution"] = "RenameInSolution";
|
|
49
|
+
DeploymentResourceValidationAction["UseExisting"] = "UseExisting";
|
|
50
|
+
DeploymentResourceValidationAction["FixConfiguration"] = "FixConfiguration";
|
|
51
|
+
DeploymentResourceValidationAction["Delete"] = "Delete";
|
|
52
|
+
DeploymentResourceValidationAction["SkipDelete"] = "SkipDelete";
|
|
53
|
+
DeploymentResourceValidationAction["MergeConfiguration"] = "MergeConfiguration";
|
|
54
|
+
DeploymentResourceValidationAction["Replace"] = "Replace";
|
|
55
|
+
return DeploymentResourceValidationAction;
|
|
56
|
+
}({});
|
|
57
|
+
var first_party_service_ContentType = /* @__PURE__ */ function(ContentType) {
|
|
58
|
+
ContentType["Json"] = "application/json";
|
|
59
|
+
ContentType["JsonApi"] = "application/vnd.api+json";
|
|
60
|
+
ContentType["FormData"] = "multipart/form-data";
|
|
61
|
+
ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
|
|
62
|
+
ContentType["Text"] = "text/plain";
|
|
63
|
+
return ContentType;
|
|
64
|
+
}({});
|
|
65
|
+
|
|
66
|
+
class HttpClient {
|
|
67
|
+
encodeQueryParam(key, value) {
|
|
68
|
+
const encodedKey = encodeURIComponent(key);
|
|
69
|
+
return `${encodedKey}=${encodeURIComponent(typeof value == "number" ? value : `${value}`)}`;
|
|
70
|
+
}
|
|
71
|
+
addQueryParam(query, key) {
|
|
72
|
+
return this.encodeQueryParam(key, query[key]);
|
|
73
|
+
}
|
|
74
|
+
addArrayQueryParam(query, key) {
|
|
75
|
+
const value = query[key];
|
|
76
|
+
return value.map((v) => this.encodeQueryParam(key, v)).join("&");
|
|
77
|
+
}
|
|
78
|
+
toQueryString(rawQuery) {
|
|
79
|
+
const query = rawQuery || {};
|
|
80
|
+
const keys = Object.keys(query).filter((key) => query[key] !== undefined);
|
|
81
|
+
return keys.map((key) => Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)).join("&");
|
|
82
|
+
}
|
|
83
|
+
addQueryParams(rawQuery) {
|
|
84
|
+
const queryString = this.toQueryString(rawQuery);
|
|
85
|
+
return queryString ? `?${queryString}` : "";
|
|
86
|
+
}
|
|
87
|
+
mergeRequestParams(params1, params2) {
|
|
88
|
+
return {
|
|
89
|
+
...this.baseApiParams,
|
|
90
|
+
...params1,
|
|
91
|
+
...params2 || {},
|
|
92
|
+
headers: {
|
|
93
|
+
...this.baseApiParams.headers || {},
|
|
94
|
+
...params1.headers || {},
|
|
95
|
+
...params2 && params2.headers || {}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
constructor(apiConfig = {}) {
|
|
100
|
+
this.baseUrl = "https://localhost:7008";
|
|
101
|
+
this.securityData = null;
|
|
102
|
+
this.abortControllers = new Map;
|
|
103
|
+
this.customFetch = (...fetchParams) => fetch(...fetchParams);
|
|
104
|
+
this.baseApiParams = {
|
|
105
|
+
credentials: "same-origin",
|
|
106
|
+
headers: {},
|
|
107
|
+
redirect: "follow",
|
|
108
|
+
referrerPolicy: "no-referrer"
|
|
109
|
+
};
|
|
110
|
+
this.setSecurityData = (data) => {
|
|
111
|
+
this.securityData = data;
|
|
112
|
+
};
|
|
113
|
+
this.contentFormatters = {
|
|
114
|
+
["application/json"]: (input) => input !== null && (typeof input == "object" || typeof input == "string") ? JSON.stringify(input) : input,
|
|
115
|
+
["application/vnd.api+json"]: (input) => input !== null && (typeof input == "object" || typeof input == "string") ? JSON.stringify(input) : input,
|
|
116
|
+
["text/plain"]: (input) => input !== null && typeof input != "string" ? JSON.stringify(input) : input,
|
|
117
|
+
["multipart/form-data"]: (input) => {
|
|
118
|
+
if (input instanceof FormData)
|
|
119
|
+
return input;
|
|
120
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
121
|
+
const property = input[key];
|
|
122
|
+
formData.append(key, property instanceof Blob ? property : typeof property == "object" && property !== null ? JSON.stringify(property) : `${property}`);
|
|
123
|
+
return formData;
|
|
124
|
+
}, new FormData);
|
|
125
|
+
},
|
|
126
|
+
["application/x-www-form-urlencoded"]: (input) => this.toQueryString(input)
|
|
127
|
+
};
|
|
128
|
+
this.createAbortSignal = (cancelToken) => {
|
|
129
|
+
if (this.abortControllers.has(cancelToken)) {
|
|
130
|
+
const abortController2 = this.abortControllers.get(cancelToken);
|
|
131
|
+
if (abortController2)
|
|
132
|
+
return abortController2.signal;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const abortController = new AbortController;
|
|
136
|
+
this.abortControllers.set(cancelToken, abortController);
|
|
137
|
+
return abortController.signal;
|
|
138
|
+
};
|
|
139
|
+
this.abortRequest = (cancelToken) => {
|
|
140
|
+
const abortController = this.abortControllers.get(cancelToken);
|
|
141
|
+
if (abortController) {
|
|
142
|
+
abortController.abort();
|
|
143
|
+
this.abortControllers.delete(cancelToken);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
this.request = async ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }) => {
|
|
147
|
+
const secureParams = (typeof secure == "boolean" ? secure : this.baseApiParams.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {};
|
|
148
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
149
|
+
const queryString = query && this.toQueryString(query);
|
|
150
|
+
const payloadFormatter = this.contentFormatters[type || "application/json"];
|
|
151
|
+
const responseFormat = format || requestParams.format;
|
|
152
|
+
return this.customFetch(`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`, {
|
|
153
|
+
...requestParams,
|
|
154
|
+
headers: {
|
|
155
|
+
...requestParams.headers || {},
|
|
156
|
+
...type && type !== "multipart/form-data" ? {
|
|
157
|
+
"Content-Type": type
|
|
158
|
+
} : {}
|
|
159
|
+
},
|
|
160
|
+
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
|
|
161
|
+
body: body == null ? null : payloadFormatter(body)
|
|
162
|
+
}).then(async (response) => {
|
|
163
|
+
const r = response;
|
|
164
|
+
r.data = null;
|
|
165
|
+
r.error = null;
|
|
166
|
+
const responseToParse = responseFormat ? response.clone() : response;
|
|
167
|
+
const data = responseFormat ? await responseToParse[responseFormat]().then((data2) => {
|
|
168
|
+
if (r.ok)
|
|
169
|
+
r.data = data2;
|
|
170
|
+
else
|
|
171
|
+
r.error = data2;
|
|
172
|
+
return r;
|
|
173
|
+
}).catch((e) => {
|
|
174
|
+
r.error = e;
|
|
175
|
+
return r;
|
|
176
|
+
}) : r;
|
|
177
|
+
if (cancelToken)
|
|
178
|
+
this.abortControllers.delete(cancelToken);
|
|
179
|
+
if (!response.ok)
|
|
180
|
+
throw data;
|
|
181
|
+
return data.data;
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
Object.assign(this, apiConfig);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
class FirstPartyServiceApi extends HttpClient {
|
|
189
|
+
constructor(...args) {
|
|
190
|
+
super(...args), this.v2 = {
|
|
191
|
+
automationSolutionsGetMetadata: (params = {}) => this.request({
|
|
192
|
+
path: "/v2/automationsolutions/metadata",
|
|
193
|
+
method: "GET",
|
|
194
|
+
...params
|
|
195
|
+
}),
|
|
196
|
+
automationSolutionsHeadMetadata: (params = {}) => this.request({
|
|
197
|
+
path: "/v2/automationsolutions/metadata",
|
|
198
|
+
method: "HEAD",
|
|
199
|
+
...params
|
|
200
|
+
}),
|
|
201
|
+
automationSolutionsSetState: (data, query, params = {}) => this.request({
|
|
202
|
+
path: "/v2/automationsolutions",
|
|
203
|
+
method: "PATCH",
|
|
204
|
+
query,
|
|
205
|
+
body: data,
|
|
206
|
+
type: "application/json",
|
|
207
|
+
...params
|
|
208
|
+
}),
|
|
209
|
+
automationSolutionsInstall: (data, query, params = {}) => this.request({
|
|
210
|
+
path: "/v2/automationsolutions",
|
|
211
|
+
method: "PUT",
|
|
212
|
+
query,
|
|
213
|
+
body: data,
|
|
214
|
+
format: "json",
|
|
215
|
+
...params
|
|
216
|
+
}),
|
|
217
|
+
automationSolutionsUninstall: (data, query, params = {}) => this.request({
|
|
218
|
+
path: "/v2/automationsolutions",
|
|
219
|
+
method: "DELETE",
|
|
220
|
+
query,
|
|
221
|
+
body: data,
|
|
222
|
+
type: "application/json",
|
|
223
|
+
format: "json",
|
|
224
|
+
...params
|
|
225
|
+
}),
|
|
226
|
+
automationSolutionsExport: (data, params = {}) => this.request({
|
|
227
|
+
path: "/v2/automationsolutions/export",
|
|
228
|
+
method: "POST",
|
|
229
|
+
body: data,
|
|
230
|
+
type: "application/json",
|
|
231
|
+
format: "json",
|
|
232
|
+
...params
|
|
233
|
+
}),
|
|
234
|
+
automationSolutionsGetTranslations: (query, params = {}) => this.request({
|
|
235
|
+
path: "/v2/automationsolutions/translations",
|
|
236
|
+
method: "GET",
|
|
237
|
+
query,
|
|
238
|
+
format: "json",
|
|
239
|
+
...params
|
|
240
|
+
}),
|
|
241
|
+
automationSolutionsValidate: (data, query, params = {}) => this.request({
|
|
242
|
+
path: "/v2/automationsolutions/validate",
|
|
243
|
+
method: "POST",
|
|
244
|
+
query,
|
|
245
|
+
body: data,
|
|
246
|
+
type: "application/json",
|
|
247
|
+
format: "json",
|
|
248
|
+
...params
|
|
249
|
+
}),
|
|
250
|
+
automationSolutionsLookup: (query, params = {}) => this.request({
|
|
251
|
+
path: "/v2/automationsolutions/lookup",
|
|
252
|
+
method: "GET",
|
|
253
|
+
query,
|
|
254
|
+
format: "json",
|
|
255
|
+
...params
|
|
256
|
+
})
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
export { first_party_service_DeploymentAction, first_party_service_SolutionDeploymentAction, first_party_service_SolutionStatus, first_party_service_QueryOptions, first_party_service_DeploymentResourceValidationErrorLevel, first_party_service_DeploymentResourceValidationErrorKind, first_party_service_DeploymentResourceValidationAction, first_party_service_ContentType, HttpClient, FirstPartyServiceApi };
|
|
261
|
+
|
|
262
|
+
//# debugId=AC88CC622210E15664756E2164756E21
|