@uipath/flow-tool 1.204.0-preview.255 → 1.205.0-preview.256
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/README.md +9 -9
- package/dist/THIRD-PARTY-NOTICES.md +36 -12
- package/dist/{authoring-bppe07p0.js → authoring-e1k40hyw.js} +6 -5
- package/dist/{binding-service-fw3rzae4.js → binding-service-yw91615m.js} +38 -30
- package/dist/{connector-service-2z7s7qtd.js → connector-service-ttm75a4n.js} +224 -47
- package/dist/de-UZI7FJDO-awjpqfz0.js +200 -0
- package/dist/{de-MUJPA4EB-dpg7t2rw.js → de-UZI7FJDO-mwvc4cxe.js} +29 -2
- package/dist/{de-FGHEJRCI-rv513mfh.js → de-WLW6KWOJ-2qnsqdtw.js} +238 -31
- package/dist/debug-conversation-trigger-xsm3ycqx.js +30 -0
- package/dist/{debug-http-client-p4kf38yt.js → debug-http-client-yqjzsnhw.js} +5 -4
- package/dist/{debug-service-893erynq.js → debug-service-nra3n02y.js} +6 -5
- package/dist/{edge-service-6zr5f09c.js → edge-service-8fv0m681.js} +16 -12
- package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
- package/dist/en-EJCBA3LK-0wb3b1xy.js +146 -0
- package/dist/{en-FBPVNKFN-dqt573xn.js → en-EJCBA3LK-dtpdghgj.js} +12 -4
- package/dist/{en-BWGKA5OE-1qkvb9rn.js → en-M7GQYBV2-5nfmpnfz.js} +88 -6
- package/dist/{es-7SE7HX2X-8yh1aj2y.js → es-4UBUTCQA-m1ytpyx2.js} +29 -2
- package/dist/es-4UBUTCQA-t7hsackg.js +200 -0
- package/dist/{es-KR3ZSNMP-84zphx0x.js → es-5THCNRFN-tqwyrdgy.js} +235 -28
- package/dist/{es-MX-2MYFZU7X-3rek4r73.js → es-MX-5RELIXKI-9jhqtddc.js} +29 -2
- package/dist/es-MX-5RELIXKI-jtjbcxbb.js +200 -0
- package/dist/{es-MX-XXZJGC4R-2mr8jtgm.js → es-MX-TWZBRAXK-gqd9swzw.js} +237 -30
- package/dist/filter-engine-7ep90g7f.js +11 -0
- package/dist/{flow-api-kjvpsxhw.js → flow-api-sat010z1.js} +16 -10
- package/dist/{flow-debug-service-9q9k756w.js → flow-debug-service-cgawm96k.js} +96 -58
- package/dist/{flow-eval-node-target-zvk7fcb2.js → flow-eval-node-target-dah1gmmh.js} +17 -17
- package/dist/flow-eval-run-api-xdygjzfv.js +13 -0
- package/dist/{flow-eval-run-service-2hfqyadh.js → flow-eval-run-service-03j1szf6.js} +73 -80
- package/dist/{flow-eval-service-m5n2svke.js → flow-eval-service-9j46ta9k.js} +167 -415
- package/dist/{flow-init-sdk-source-z9qx1zkt.js → flow-init-sdk-source-xvdvkq7d.js} +6 -5
- package/dist/{flow-init-service-8y8b76zm.js → flow-init-service-0a4y3a46.js} +19 -15
- package/dist/{flow-io-w11yspjx.js → flow-io-1wabd32s.js} +15 -11
- package/dist/{flow-migrate-service-v7ch4t3h.js → flow-migrate-service-mkqpbwtv.js} +16 -12
- package/dist/{flow-pack-service-xs8v5mba.js → flow-pack-service-7dj2hhyz.js} +47 -38
- package/dist/flow-validate-service-1ktjayjv.js +70 -0
- package/dist/{fr-Y6NPVODW-8vr1ja4b.js → fr-CERONSRC-edpxhbmb.js} +237 -30
- package/dist/{fr-MDFKNZ4C-h4a122k9.js → fr-VBM5WRC2-63z7w4mh.js} +29 -2
- package/dist/fr-VBM5WRC2-707ha692.js +200 -0
- package/dist/{governance-fetcher-18pk0mgv.js → governance-fetcher-76hxssjm.js} +7 -6
- package/dist/{hitl-service-ehnfkwhp.js → hitl-service-vcbhd4cb.js} +15 -11
- package/dist/{index-aaq9rwfv.js → index-1b2je9n2.js} +1088 -233
- package/dist/index-d090f35d.js +66 -0
- package/dist/{index-yj4xk2aw.js → index-dgdnbb2g.js} +7 -5
- package/dist/{index-ng2f77my.js → index-fyc0k5dd.js} +985 -617
- package/dist/{index-9hqj0ee4.js → index-hz008fep.js} +6 -5
- package/dist/{index-vrhcbxnk.js → index-nsn889vf.js} +6 -5
- package/dist/{index-2s8rmmw6.js → index-sqhbn7ew.js} +4 -4
- package/dist/{index-tnz5ks4t.js → index-wycgq0ff.js} +65 -2230
- package/dist/index.js +17 -14
- package/dist/init.js +19 -15
- package/dist/inline-entity-resolver-64pqwk86.js +45 -0
- package/dist/input-reader-n7kzdrev.js +12 -0
- package/dist/{ja-UTQEAP34-8e0q6swp.js → ja-43QL7CGO-c3q8gre9.js} +29 -2
- package/dist/ja-43QL7CGO-h6qfxfay.js +200 -0
- package/dist/{ja-Q5PXKJ2V-p4msxzjd.js → ja-U2MCNHGT-gz0ap1jk.js} +235 -28
- package/dist/{known-types-q6fcyq2e.js → known-types-3025scz1.js} +5 -5
- package/dist/ko-TLL6Z6CD-ag6gjynr.js +200 -0
- package/dist/{ko-AXCHW2OK-askct7f6.js → ko-TLL6Z6CD-wrt3n8a9.js} +29 -2
- package/dist/{ko-AYBDSRZG-41mdmsg1.js → ko-XAUYQWDR-zp81gjp4.js} +237 -30
- package/dist/{maestro-automate-entry-qak46eg0.js → maestro-automate-entry-6f9act3w.js} +2 -2
- package/dist/{node-cvwqsgg0.js → node-hz6cvp9d.js} +29 -15
- package/dist/{node-service-544fv7as.js → node-service-7wz8gx7h.js} +41 -30
- package/dist/{node-strategy-fdnkvq4a.js → node-strategy-1dmmhvf3.js} +1 -1
- package/dist/node-sync-service-yvyf7chw.js +61 -0
- package/dist/packager-tool-10vc8pq4.js +2 -0
- package/dist/{packager-tool-29b6r6eg.js → packager-tool-2h15x2kb.js} +6 -6
- package/dist/{packager-tool-h7cjs093.js → packager-tool-2z0r1f32.js} +668 -57
- package/dist/packager-tool-4kr6g0zw.js +16 -0
- package/dist/packager-tool-4x7tzvv0.js +1176 -0
- package/dist/{packager-tool-d88rqwk8.js → packager-tool-6z1hsm2h.js} +13 -5
- package/dist/packager-tool-7hw344bt.js +107 -0
- package/dist/{packager-tool-pb7wzsn4.js → packager-tool-7wnxyvf9.js} +519 -437
- package/dist/{packager-tool-m8xtf5ej.js → packager-tool-8g5931fz.js} +7 -4
- package/dist/{packager-tool-h9tzz0qd.js → packager-tool-961vsbsc.js} +15 -10
- package/dist/packager-tool-9era57c0.js +28 -0
- package/dist/packager-tool-9gprvfcy.js +23 -0
- package/dist/packager-tool-9jxzgsxc.js +14 -0
- package/dist/{packager-tool-zxp4hya4.js → packager-tool-a5afh1dc.js} +34 -13
- package/dist/{packager-tool-02f63a08.js → packager-tool-apawc11t.js} +88 -762
- package/dist/{packager-tool-tf3d2y8z.js → packager-tool-aw9v0raw.js} +2 -2
- package/dist/packager-tool-cqtsj6yh.js +2 -0
- package/dist/{packager-tool-5nqhxb9e.js → packager-tool-dwd6cc01.js} +16110 -13031
- package/dist/{packager-tool-t605qewm.js → packager-tool-dxgrhfq5.js} +2 -2
- package/dist/{packager-tool-awkq26v0.js → packager-tool-e7kvq8hf.js} +5 -3
- package/dist/{packager-tool-2y2mmdnq.js → packager-tool-fjqpf1y6.js} +6 -24
- package/dist/{packager-tool-3dc9gz35.js → packager-tool-frjt46rb.js} +1 -1
- package/dist/{packager-tool-y8egb0fa.js → packager-tool-gqq3vkgh.js} +2573 -535
- package/dist/{packager-tool-w5a1hhyj.js → packager-tool-hxyjn885.js} +13 -2
- package/dist/packager-tool-j3228zs9.js +35 -0
- package/dist/{packager-tool-hhy1gr2k.js → packager-tool-jgfzfqjm.js} +1 -1
- package/dist/{packager-tool-5csvkk54.js → packager-tool-kb520rm5.js} +172 -71
- package/dist/{packager-tool-k04k2rnq.js → packager-tool-kmv2p8z4.js} +20 -8
- package/dist/{packager-tool-6h69pd2a.js → packager-tool-kn86394c.js} +127 -61
- package/dist/packager-tool-mgcz986r.js +143 -0
- package/dist/{packager-tool-3h2ktz6q.js → packager-tool-myhbp761.js} +11 -1
- package/dist/{packager-tool-5tk1eg46.js → packager-tool-ns9xn7zq.js} +13 -13
- package/dist/{packager-tool-vbfz8k7w.js → packager-tool-p8gab24q.js} +52 -32
- package/dist/{packager-tool-stq8800d.js → packager-tool-pacrqxv2.js} +17 -4
- package/dist/{packager-tool-7q6z6npd.js → packager-tool-pcvhcn2k.js} +93 -11
- package/dist/packager-tool-phw8ydjx.js +331 -0
- package/dist/{packager-tool-mx0gg6yh.js → packager-tool-q8akejne.js} +6 -4
- package/dist/packager-tool-qcqb9hf8.js +26 -0
- package/dist/{packager-tool-n89vrpex.js → packager-tool-skcjythd.js} +10907 -25608
- package/dist/{packager-tool-v37kemg5.js → packager-tool-sphnextf.js} +5 -6
- package/dist/{packager-tool-1ca047de.js → packager-tool-sqpesv2e.js} +12 -56
- package/dist/packager-tool-t7ahhaer.js +877 -0
- package/dist/{packager-tool-zgm9mqrh.js → packager-tool-thnkpqwc.js} +1802 -378
- package/dist/{packager-tool-peawy22c.js → packager-tool-tqjfdpda.js} +53 -8
- package/dist/{packager-tool-gb4sm499.js → packager-tool-vd3rn4fj.js} +463 -327
- package/dist/{packager-tool-5tjzg56t.js → packager-tool-wh660fny.js} +1 -1
- package/dist/{packager-tool-tyg399d6.js → packager-tool-wze74wyk.js} +74 -47
- package/dist/{packager-tool-zbhqrk3p.js → packager-tool-x20684x5.js} +1 -1
- package/dist/packager-tool-xj0agqpk.js +11 -0
- package/dist/packager-tool-xk78j7dz.js +1256 -0
- package/dist/{packager-tool-py93409h.js → packager-tool-ymma2s85.js} +2 -2
- package/dist/packager-tool-z0yxfhdj.js +40 -0
- package/dist/packager-tool.js +13 -10
- package/dist/{pt-BR-TKHNHMET-sn91xyq0.js → pt-BR-GNQNAAZ2-xadharv4.js} +237 -30
- package/dist/{pt-BR-Y6K6XHXK-mp3hwhw1.js → pt-BR-USP2T7GD-pedn77m1.js} +29 -2
- package/dist/pt-BR-USP2T7GD-rppy42ym.js +200 -0
- package/dist/{pt-3DIO5QWG-59b3f4bc.js → pt-RMIAKZB4-67enhx3m.js} +29 -2
- package/dist/pt-RMIAKZB4-t80exmp7.js +200 -0
- package/dist/{pt-ROXU257Y-2f6bxev4.js → pt-TO2DARY2-ftcce1bv.js} +237 -30
- package/dist/ro-GHOBYW2S-4zevc9dy.js +200 -0
- package/dist/{ro-BWR3ONRR-vzx3hy8a.js → ro-GHOBYW2S-mhnqsgaa.js} +29 -2
- package/dist/{ro-AVAWPKOO-b89pw79r.js → ro-WUYJV6OW-a8d9qy1n.js} +235 -28
- package/dist/ru-WBLQ5B2U-dpqvtfwr.js +10 -0
- package/dist/services/connector-request-buckets.d.ts +1 -0
- package/dist/services/flow-eval-file-store.d.ts +1 -11
- package/dist/services/flow-eval-utils.d.ts +1 -32
- package/dist/services/flow-validate-service.d.ts +51 -0
- package/dist/services/inline-entity-resolver.d.ts +22 -0
- package/dist/services/node-service.d.ts +21 -1
- package/dist/services/packaging-utils.d.ts +15 -2
- package/dist/{shared-utils-pnbvyyb2.js → shared-utils-tqnx96mg.js} +4 -3
- package/dist/solution-auth-8qz5pw7z.js +14 -0
- package/dist/solution-discovery-vqravtkh.js +44 -0
- package/dist/{tidy-service-j70ccg27.js → tidy-service-tqjea6g2.js} +143 -39
- package/dist/tool.js +17 -14
- package/dist/{tr-5IIHSFW5-hw4cewew.js → tr-GDTLECMM-k5fhmq13.js} +29 -2
- package/dist/tr-GDTLECMM-kngksm3r.js +200 -0
- package/dist/{tr-JMIP7ZSL-c39b6pe4.js → tr-M3F5A6AU-bb0tg39m.js} +235 -28
- package/dist/utils/flow-io.d.ts +2 -1
- package/dist/validation.js +39 -33
- package/dist/{variable-service-86t2r5m9.js → variable-service-kqnqxmx2.js} +16 -12
- package/dist/{wait-for-flow-job-d8m6mqb4.js → wait-for-flow-job-b0vj8828.js} +15 -12
- package/dist/{zh-CN-IFFXSEJS-9wm9gmrv.js → zh-CN-C5G4PC7C-ds9gkptg.js} +235 -28
- package/dist/zh-CN-I5D7WHBD-ge92tbx9.js +200 -0
- package/dist/{zh-CN-R2KU4U5L-tc1hat59.js → zh-CN-I5D7WHBD-sr5h0a98.js} +29 -2
- package/dist/{zh-TW-GNKMELBF-j674515r.js → zh-TW-2AVLM723-288pkc1z.js} +29 -2
- package/dist/zh-TW-2AVLM723-xsmap3gk.js +200 -0
- package/dist/{zh-TW-IYBNYAMG-8727c7v2.js → zh-TW-62HZIG6O-787kdwex.js} +234 -27
- package/package.json +2 -2
- package/dist/debug-conversation-trigger-hgszjdhx.js +0 -44
- package/dist/flow-eval-run-api-byx3cacw.js +0 -13
- package/dist/flow-validate-service-12v3bz1b.js +0 -64
- package/dist/input-reader-vhar4g0k.js +0 -11
- package/dist/node-sync-service-ccwgtyte.js +0 -40
- package/dist/packager-tool-4g5hk66k.js +0 -454
- package/dist/packager-tool-kg35b9s6.js +0 -15
- package/dist/packager-tool-pz5nqg0s.js +0 -64
- package/dist/packager-tool-t3ysatjd.js +0 -521
- package/dist/packager-tool-vd6jt4n8.js +0 -208
- package/dist/packager-tool-vscvjrhn.js +0 -265
- package/dist/services/flow-debug-service.d.ts +0 -320
- package/dist/services/flow-eval-schema/deterministic-evaluators.d.ts +0 -110
- package/dist/services/flow-eval-schema/evaluator-fields.d.ts +0 -66
- package/dist/services/flow-eval-schema/helpers.d.ts +0 -9
- package/dist/services/flow-eval-schema/index.d.ts +0 -4
- package/dist/services/flow-eval-schema/llm-judge-evaluators.d.ts +0 -174
- package/dist/services/flow-eval-schema/prompts.d.ts +0 -2
- package/dist/services/flow-eval-schema/registry.d.ts +0 -375
- package/dist/services/flow-eval-schema/tool-call-evaluators.d.ts +0 -93
- package/dist/services/flow-eval-schema/types.d.ts +0 -95
- package/dist/services/flow-eval-types.d.ts +0 -6
- package/dist/utils/write-resolved-flow.d.ts +0 -7
- /package/dist/{headless-45dypanh.js → headless-fw8pwyzm.js} +0 -0
- /package/dist/{localization-xecwjpe2.js → localization-d6gjmrsw.js} +0 -0
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
catchError,
|
|
3
2
|
logger,
|
|
3
|
+
quoteForShell,
|
|
4
4
|
unsupportedSolutionProjectType
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-apawc11t.js";
|
|
6
|
+
import {
|
|
7
|
+
catchError
|
|
8
|
+
} from "./packager-tool-t7ahhaer.js";
|
|
6
9
|
|
|
7
10
|
// ../solution-sdk/src/solution-file.ts
|
|
8
11
|
var STUDIO_WEB_PROJECT_TYPE_OVERRIDES = {
|
|
@@ -466,7 +469,7 @@ function buildRegistrationSuccessInstructions(solutionDir) {
|
|
|
466
469
|
return [
|
|
467
470
|
"The project is listed in the parent solution manifest.",
|
|
468
471
|
"Packing or uploading the solution will sync solution resources automatically.",
|
|
469
|
-
`To sync resources before packaging, run
|
|
472
|
+
`To sync resources before packaging, run: uip solution resources refresh --solution-folder ${quoteForShell(solutionDir)}`
|
|
470
473
|
].join(`
|
|
471
474
|
`);
|
|
472
475
|
}
|
|
@@ -537,4 +540,4 @@ async function findSolutionFileUpward(fs, startDir) {
|
|
|
537
540
|
|
|
538
541
|
export { normalizeProjectType, toPortableRelativePath, readUipxFile, createSolutionManifest, autoScaffoldSolution, prepareProjectLocation, resolveSolutionDir, updateUipxSolutionId, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findNearestParentUipxFile, readSolutionManifest, isProjectRegisteredInSolution, findSolutionFileUpward };
|
|
539
542
|
|
|
540
|
-
//# debugId=
|
|
543
|
+
//# debugId=B912693656C764E064756E2164756E21
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CONNECTION_BINDING_RESOURCE,
|
|
3
3
|
MINIMUM_SUPPORTED_SCHEMA_VERSION,
|
|
4
|
-
RESERVED_WORDS,
|
|
5
4
|
VALID_IDENTIFIER_PATTERN,
|
|
6
5
|
coerceInputsViaSchema,
|
|
7
6
|
createRefResolver,
|
|
@@ -10,11 +9,12 @@ import {
|
|
|
10
9
|
generateNextId,
|
|
11
10
|
generateNodeVariables,
|
|
12
11
|
inMemoryWorkflowToFileFormat,
|
|
12
|
+
isReservedWord,
|
|
13
13
|
planWriteThrough,
|
|
14
14
|
resolveAndConvertWorkflow,
|
|
15
15
|
workflowFileSchema,
|
|
16
16
|
workflowSchema
|
|
17
|
-
} from "./packager-tool-
|
|
17
|
+
} from "./packager-tool-wze74wyk.js";
|
|
18
18
|
import {
|
|
19
19
|
__require
|
|
20
20
|
} from "./packager-tool-1yh8g550.js";
|
|
@@ -112,12 +112,13 @@ function sanitizeNodeLabel(label) {
|
|
|
112
112
|
const words = label.split(/[^a-zA-Z0-9]+/).filter(Boolean);
|
|
113
113
|
if (words.length === 0)
|
|
114
114
|
return "node";
|
|
115
|
-
|
|
115
|
+
const camel = words.map((word, index) => {
|
|
116
116
|
const lower = word.toLowerCase();
|
|
117
117
|
if (index === 0)
|
|
118
118
|
return lower;
|
|
119
119
|
return lower.charAt(0).toUpperCase() + lower.slice(1);
|
|
120
120
|
}).join("");
|
|
121
|
+
return /^\d/.test(camel) ? `_${camel}` : camel;
|
|
121
122
|
}
|
|
122
123
|
function lowerCaseFirstLetter(str) {
|
|
123
124
|
if (!str)
|
|
@@ -145,7 +146,7 @@ function validateIdFormat(id) {
|
|
|
145
146
|
if (!id || !id.trim()) {
|
|
146
147
|
return "ID is required";
|
|
147
148
|
}
|
|
148
|
-
const trimmed = id
|
|
149
|
+
const trimmed = normalizeIdentifier(id);
|
|
149
150
|
if (!VALID_IDENTIFIER_PATTERN.test(trimmed)) {
|
|
150
151
|
if (/^\d/.test(trimmed))
|
|
151
152
|
return "ID cannot start with a number";
|
|
@@ -155,21 +156,25 @@ function validateIdFormat(id) {
|
|
|
155
156
|
return "ID can only contain letters, numbers, and underscores";
|
|
156
157
|
return "ID must start with a letter or underscore";
|
|
157
158
|
}
|
|
158
|
-
if (
|
|
159
|
+
if (isReservedWord(trimmed)) {
|
|
159
160
|
return `"${trimmed}" is a reserved word`;
|
|
160
161
|
}
|
|
161
162
|
return;
|
|
162
163
|
}
|
|
164
|
+
function normalizeIdentifier(id) {
|
|
165
|
+
return id.trim();
|
|
166
|
+
}
|
|
163
167
|
function validateIdentifier(id, existingIds, currentNodeId) {
|
|
164
168
|
const formatError = validateIdFormat(id);
|
|
165
169
|
if (formatError)
|
|
166
170
|
return formatError;
|
|
171
|
+
const normalized = normalizeIdentifier(id);
|
|
167
172
|
const idSet = existingIds instanceof Set ? existingIds : new Set(existingIds);
|
|
168
|
-
if (currentNodeId &&
|
|
173
|
+
if (currentNodeId && normalized === currentNodeId) {
|
|
169
174
|
return;
|
|
170
175
|
}
|
|
171
|
-
if (idSet.has(
|
|
172
|
-
return `ID "${
|
|
176
|
+
if (idSet.has(normalized)) {
|
|
177
|
+
return `ID "${normalized}" is already in use by a node or variable`;
|
|
173
178
|
}
|
|
174
179
|
return;
|
|
175
180
|
}
|
|
@@ -378,6 +383,6 @@ function summarizeWorkflow(workflow) {
|
|
|
378
383
|
hasBindings: (workflow.bindings?.length ?? 0) > 0
|
|
379
384
|
};
|
|
380
385
|
}
|
|
381
|
-
export { needsBinding, createBinding, createConnectionBinding, createFolderKeyBinding, addBindingIfMissing, createBindingsFromManifest, DEFAULT_LAYOUT_OPTIONS, resolveWidth, resolveHeight, GRID_SPACING, snapToGrid, generateNodeId, generateNodeIdAndName, validateIdentifier, generateEdgeId, createNodeFromManifest, createNode, createEdge, addDefinition, addNode, createWorkflow, addEdge, addBinding, addVariable, readWorkflow, writeWorkflow, writeWorkflowWithRefs, validateWorkflow, summarizeWorkflow };
|
|
386
|
+
export { needsBinding, createBinding, createConnectionBinding, createFolderKeyBinding, addBindingIfMissing, createBindingsFromManifest, DEFAULT_LAYOUT_OPTIONS, resolveWidth, resolveHeight, GRID_SPACING, snapToGrid, generateNodeId, generateNodeIdAndName, normalizeIdentifier, validateIdentifier, generateEdgeId, createNodeFromManifest, createNode, createEdge, addDefinition, addNode, createWorkflow, addEdge, addBinding, addVariable, readWorkflow, writeWorkflow, writeWorkflowWithRefs, validateWorkflow, summarizeWorkflow };
|
|
382
387
|
|
|
383
|
-
//# debugId=
|
|
388
|
+
//# debugId=870FE16970598BE964756E2164756E21
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAuthContext
|
|
3
|
+
} from "./packager-tool-kn86394c.js";
|
|
4
|
+
|
|
5
|
+
// ../solution-sdk/src/solution-auth.ts
|
|
6
|
+
async function getSolutionAuthContext(options) {
|
|
7
|
+
const ctx = await getAuthContext({
|
|
8
|
+
tenant: options.tenant,
|
|
9
|
+
ensureTokenValidityMinutes: options.loginValidity ?? 10,
|
|
10
|
+
envFilePath: options.envFilePath,
|
|
11
|
+
requireOrganizationId: true,
|
|
12
|
+
requireTenantName: true
|
|
13
|
+
});
|
|
14
|
+
const organizationId = ctx.organizationId;
|
|
15
|
+
const tenantName = ctx.tenantName;
|
|
16
|
+
const basePath = `${ctx.baseUrl}/${organizationId}/${tenantName}/automationsolutions_`;
|
|
17
|
+
return {
|
|
18
|
+
accessToken: ctx.accessToken,
|
|
19
|
+
basePath,
|
|
20
|
+
organizationId,
|
|
21
|
+
tenantName,
|
|
22
|
+
identity: ctx.identity
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { getSolutionAuthContext };
|
|
27
|
+
|
|
28
|
+
//# debugId=F76D3832B86881B164756E2164756E21
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FlowToolFactory,
|
|
3
|
+
registerInlineEntityReader
|
|
4
|
+
} from "./packager-tool-thnkpqwc.js";
|
|
5
|
+
import {
|
|
6
|
+
toolsFactoryRepository
|
|
7
|
+
} from "./packager-tool-pacrqxv2.js";
|
|
8
|
+
import {
|
|
9
|
+
__require
|
|
10
|
+
} from "./packager-tool-1yh8g550.js";
|
|
11
|
+
|
|
12
|
+
// src/packager-tool.ts
|
|
13
|
+
function registerPackagerFactories() {
|
|
14
|
+
toolsFactoryRepository.registerProjectToolFactory(new FlowToolFactory);
|
|
15
|
+
registerInlineEntityReader(async (fs, flowFilePath) => {
|
|
16
|
+
const { readSolutionInlineEntities } = await import("./index-d090f35d.js");
|
|
17
|
+
return readSolutionInlineEntities(fs, flowFilePath);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { registerPackagerFactories };
|
|
22
|
+
|
|
23
|
+
//# debugId=1434713535B021A964756E2164756E21
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EvalRunApi
|
|
3
|
+
} from "./packager-tool-xk78j7dz.js";
|
|
4
|
+
|
|
5
|
+
// src/services/flow-eval-run-api.ts
|
|
6
|
+
class FlowEvalRunApi extends EvalRunApi {
|
|
7
|
+
constructor() {
|
|
8
|
+
super("Flow");
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { FlowEvalRunApi };
|
|
13
|
+
|
|
14
|
+
//# debugId=028E1F1C632C0C6664756E2164756E21
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UnknownEntryPointError
|
|
3
|
+
} from "./packager-tool-4kr6g0zw.js";
|
|
1
4
|
import {
|
|
2
5
|
JobsApi,
|
|
3
6
|
ReleasesApi,
|
|
4
7
|
createOrchestratorConfig,
|
|
5
8
|
resolveFolder
|
|
6
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-skcjythd.js";
|
|
7
10
|
import {
|
|
8
11
|
parseJsonInputOrFile
|
|
9
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-ymma2s85.js";
|
|
10
13
|
import {
|
|
11
14
|
getPersonalFolderKey
|
|
12
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-tqjfdpda.js";
|
|
13
16
|
import {
|
|
14
17
|
ErrorDecision,
|
|
15
18
|
MIN_INTERVAL_MS,
|
|
16
19
|
PollOutcome,
|
|
17
|
-
catchError,
|
|
18
20
|
logger,
|
|
19
21
|
pollUntil,
|
|
20
22
|
processContext
|
|
21
|
-
} from "./packager-tool-
|
|
23
|
+
} from "./packager-tool-apawc11t.js";
|
|
24
|
+
import {
|
|
25
|
+
catchError
|
|
26
|
+
} from "./packager-tool-t7ahhaer.js";
|
|
22
27
|
|
|
23
28
|
// src/services/http-client.ts
|
|
24
29
|
function buildCommonHeaders(config, options) {
|
|
@@ -78,7 +83,7 @@ async function resolveFlowFolderId(config) {
|
|
|
78
83
|
});
|
|
79
84
|
return personalFolder.id.toString();
|
|
80
85
|
}
|
|
81
|
-
async function listFlowProcesses(config, filter) {
|
|
86
|
+
async function listFlowProcesses(config, filter, window = {}) {
|
|
82
87
|
const folder = await resolveFolder({ folderKey: config.folderKey }, { tenant: config.tenantName });
|
|
83
88
|
const sdkConfig = await createOrchestratorConfig({
|
|
84
89
|
folderId: folder.id.toString()
|
|
@@ -90,7 +95,9 @@ async function listFlowProcesses(config, filter) {
|
|
|
90
95
|
}
|
|
91
96
|
const filterQuery = filters.length > 0 ? filters.join(" and ") : undefined;
|
|
92
97
|
const response = await releasesApi.releasesGet({
|
|
93
|
-
$filter: filterQuery
|
|
98
|
+
$filter: filterQuery,
|
|
99
|
+
$top: window.limit,
|
|
100
|
+
$skip: window.offset || undefined
|
|
94
101
|
});
|
|
95
102
|
return response.value || [];
|
|
96
103
|
}
|
|
@@ -130,6 +137,18 @@ async function getFlowEntryPoints(config) {
|
|
|
130
137
|
const response = await orchestratorGet(apiConfig, path);
|
|
131
138
|
return response.value;
|
|
132
139
|
}
|
|
140
|
+
async function defaultFlowEntryPoint(config, mainEntryPointId) {
|
|
141
|
+
const entryPoints = await getFlowEntryPoints(config);
|
|
142
|
+
return entryPoints.find((ep) => ep.Id === mainEntryPointId) ?? entryPoints[0];
|
|
143
|
+
}
|
|
144
|
+
async function resolveEntryPoint(config, entryPoint) {
|
|
145
|
+
const triggers = (await getFlowEntryPoints(config)).filter((ep) => ep.Path.includes("#")).map((ep) => ({ ep, id: ep.Path.slice(ep.Path.lastIndexOf("#") + 1) }));
|
|
146
|
+
const match = triggers.find((trigger) => trigger.id === entryPoint);
|
|
147
|
+
if (!match) {
|
|
148
|
+
throw new UnknownEntryPointError(entryPoint, triggers.map((trigger) => trigger.id));
|
|
149
|
+
}
|
|
150
|
+
return match.ep;
|
|
151
|
+
}
|
|
133
152
|
async function startFlowJob(config) {
|
|
134
153
|
const folder = await resolveFolder({ folderKey: config.folderKey }, { tenant: config.tenantName });
|
|
135
154
|
const sdkConfig = await createOrchestratorConfig({
|
|
@@ -145,6 +164,9 @@ async function startFlowJob(config) {
|
|
|
145
164
|
if (config.robotIds && config.robotIds.length > 0) {
|
|
146
165
|
startInfo.robotIds = config.robotIds;
|
|
147
166
|
}
|
|
167
|
+
if (config.entryPointPath !== undefined) {
|
|
168
|
+
startInfo.entryPointPath = config.entryPointPath;
|
|
169
|
+
}
|
|
148
170
|
const response = await jobsApi.jobsStartJobs({
|
|
149
171
|
body: { startInfo }
|
|
150
172
|
});
|
|
@@ -382,16 +404,15 @@ function isJobAttachmentReference(value) {
|
|
|
382
404
|
const ref = value;
|
|
383
405
|
return typeof ref.ID === "string" && typeof ref.FullName === "string";
|
|
384
406
|
}
|
|
385
|
-
async function validateFlowInputs(config, inputs) {
|
|
407
|
+
async function validateFlowInputs(config, inputs, chosenEntryPoint, mainEntryPointId) {
|
|
386
408
|
try {
|
|
387
|
-
const
|
|
388
|
-
if (
|
|
409
|
+
const entryPoint = chosenEntryPoint ?? await defaultFlowEntryPoint(config, mainEntryPointId);
|
|
410
|
+
if (entryPoint === undefined) {
|
|
389
411
|
return {
|
|
390
412
|
valid: false,
|
|
391
413
|
errors: ["No entry points found for this process"]
|
|
392
414
|
};
|
|
393
415
|
}
|
|
394
|
-
const entryPoint = entryPoints[0];
|
|
395
416
|
const inputSchema = JSON.parse(entryPoint.InputArguments);
|
|
396
417
|
if (inputSchema.type !== "object") {
|
|
397
418
|
return { valid: true };
|
|
@@ -438,6 +459,6 @@ async function parseFlowInputs(inputSource) {
|
|
|
438
459
|
return await parseJsonInputOrFile(inputSource);
|
|
439
460
|
}
|
|
440
461
|
|
|
441
|
-
export { listFlowProcesses, listFlowJobs, getFlowEntryPoints, spanToTraceEvent, startFlowProjectJob, streamJobTraces, getJobStatusDetailed, validateFlowInputs, parseFlowInputs };
|
|
462
|
+
export { escapeODataStringLiteral, listFlowProcesses, listFlowJobs, getFlowEntryPoints, resolveEntryPoint, spanToTraceEvent, startFlowProjectJob, streamJobTraces, getJobStatusDetailed, validateFlowInputs, parseFlowInputs };
|
|
442
463
|
|
|
443
|
-
//# debugId=
|
|
464
|
+
//# debugId=A28215A36FCF992064756E2164756E21
|