@uipath/case-tool 1.206.0-preview.306 → 1.207.0-preview.307
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 +7 -90
- package/dist/THIRD-PARTY-NOTICES.md +164 -9
- package/dist/{authoring-wt5ngnjb.js → authoring-qqev46bh.js} +233 -63
- package/dist/{bindings-v2-x100hvcy.js → bindings-v2-wjgg92tj.js} +4 -4
- package/dist/{browser-strategy-627rrg7z.js → browser-strategy-qc6htsnf.js} +1 -1
- package/dist/{business-rule-export-pggs7x01.js → business-rule-export-56a4wtat.js} +2 -2
- package/dist/{carry-forward-gxsadrqb.js → carry-forward-tj5yrqf6.js} +6 -6
- package/dist/{case-api-a6v5beat.js → case-api-bfwmvkb8.js} +24 -28
- package/dist/{case-bindings-service-9zemt0r2.js → case-bindings-service-5r7c70kz.js} +5 -5
- package/dist/case-catalog-h4fjn6q3.js +304 -0
- package/dist/{case-debug-solution-projects-r60m9e6a.js → case-debug-solution-projects-b2rsts1n.js} +2 -2
- package/dist/{case-debug-studio-web-service-my6vezsd.js → case-debug-studio-web-service-39gj6045.js} +10 -9
- package/dist/{case-described-io-service-8dw21x2y.js → case-described-io-service-ddsvkz8w.js} +5 -5
- package/dist/{case-event-trigger-bindings-pmad4dev.js → case-event-trigger-bindings-8nd78j4e.js} +5 -5
- package/dist/{case-format-service-xjvnx3jd.js → case-format-service-4mzszgfb.js} +2 -2
- package/dist/case-pack-service-17rj6kqt.js +297 -0
- package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
- package/dist/{case-validate-service-pesq63n9.js → case-validate-service-m2kk0fme.js} +146 -38
- package/dist/{connector-enrichment-service-e0z27bhh.js → connector-enrichment-service-s5y68svm.js} +26 -25
- package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
- package/dist/{connector-lookup-service-rpmsy37q.js → connector-lookup-service-g5qw6a1n.js} +8 -8
- package/dist/{connector-task-shape-bgywpbqc.js → connector-task-shape-s2zny4gf.js} +3 -3
- package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
- package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-xrrajtht.js} +1277 -10
- package/dist/{debug-service-tm92ws5e.js → debug-service-hf2wb4tw.js} +9 -4
- package/dist/{embedded-file-reader-pxpwcq3n.js → embedded-file-reader-k94wt612.js} +16 -16
- package/dist/{en-LAVDF7IQ-yzy20n6d.js → en-5JIPZTS5-c68n8taw.js} +4 -2
- package/dist/{en-X6T4SP2Y-xm47mf18.js → en-ETY46SDS-far9tmsf.js} +66 -2
- package/dist/{enrichment-service-hzsn1aqp.js → enrichment-service-dm5kvwhy.js} +17 -17
- package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
- package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
- package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -10
- package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
- package/dist/{first-party-service-6b9ajm57.js → first-party-service-qfg2m05s.js} +1 -1
- package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-vzfmygd7.js} +1277 -10
- package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
- package/dist/{index-0m89asqv.js → index-59sh1kv0.js} +129 -76
- package/dist/index-b3n9b1bf.js +36 -0
- package/dist/{index-amqqhge1.js → index-ewg6ygg0.js} +1 -1
- package/dist/{index-j2gw61z0.js → index-r16ndadh.js} +3030 -764
- package/dist/{index-nj3axvya.js → index-rk82650j.js} +7 -5
- package/dist/{index-pg9wmyrf.js → index-t6fnts8a.js} +2 -2
- package/dist/index-wkmh1h6w.js +26 -0
- package/dist/{index-v8jen5rh.js → index-xy5fcn8e.js} +4 -4
- package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
- package/dist/index.js +13 -11
- package/dist/init-entry-points-52kvvbg9.js +15 -0
- package/dist/input-reader-zr71xcm9.js +13 -0
- package/dist/integration-service-fetcher-n6d0dwba.js +68 -0
- package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
- package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
- package/dist/{known-types-gak9by1w.js → known-types-a5d0evdm.js} +2 -2
- package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
- package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
- package/dist/library-option-pbvkt66g.js +13 -0
- package/dist/{localSolutionDiscovery-9pj8mzye.js → localSolutionDiscovery-5sqz9dkr.js} +5 -5
- package/dist/manifest-rhee8kem.js +32 -0
- package/dist/{node-strategy-2mqzg36t.js → node-strategy-aaf2qe6c.js} +2 -2
- package/dist/{node-sync-service-zvwk08cj.js → node-sync-service-phye3746.js} +21 -15
- package/dist/{out-target-gtg3we44.js → out-target-02x6x6nk.js} +5 -5
- package/dist/{packager-tool-h2ar8xf8.js → packager-tool-00ck60cc.js} +25 -24
- package/dist/{packager-tool-388vyja1.js → packager-tool-0gmnk7sb.js} +2 -2
- package/dist/{packager-tool-fcektt1g.js → packager-tool-0nbcqyvp.js} +10 -9
- package/dist/{packager-tool-wg91yz70.js → packager-tool-1jtrz02q.js} +61 -11
- package/dist/packager-tool-1yew22sn.js +9 -0
- package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
- package/dist/{packager-tool-p0rdmmvk.js → packager-tool-2xemp3b1.js} +2 -2
- package/dist/packager-tool-34ttsx9q.js +18 -0
- package/dist/{packager-tool-3zy717ga.js → packager-tool-36vkdb3h.js} +2 -2
- package/dist/{packager-tool-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
- package/dist/packager-tool-3k5j706w.js +73 -0
- package/dist/{packager-tool-8h6tqbps.js → packager-tool-41j8ppy2.js} +59 -34
- package/dist/{packager-tool-scy94jyb.js → packager-tool-4seehsme.js} +2 -72
- package/dist/{packager-tool-es77jvky.js → packager-tool-4w7nzx18.js} +360 -44
- package/dist/{packager-tool-4avchhz8.js → packager-tool-57970zfm.js} +12 -7
- package/dist/{packager-tool-bjt8b2nz.js → packager-tool-5s476jdt.js} +13 -13
- package/dist/{packager-tool-8n13ny0q.js → packager-tool-70a6y6t1.js} +3393 -3092
- package/dist/{packager-tool-0xj79bbd.js → packager-tool-8kcwawyg.js} +13 -4
- package/dist/{packager-tool-wy3a65rx.js → packager-tool-bw4fsdq4.js} +27 -13
- package/dist/{packager-tool-dn9d4ywm.js → packager-tool-c0pavv0s.js} +66 -10
- package/dist/packager-tool-c9h0rwgv.js +31 -0
- package/dist/{packager-tool-t8qx6hvn.js → packager-tool-dv2vtyg0.js} +4 -4
- package/dist/{packager-tool-3r23qsca.js → packager-tool-ef43cy32.js} +213 -231
- package/dist/{packager-tool-5w0gjcck.js → packager-tool-engs9gvj.js} +1 -1
- package/dist/{packager-tool-stdwmgvd.js → packager-tool-exrjwmew.js} +202 -83
- package/dist/{task-type-declaration-yhczvj05.js → packager-tool-f9n5mk1c.js} +8 -12
- package/dist/{packager-tool-b2q8m9pq.js → packager-tool-fspmvh6g.js} +5 -4
- package/dist/packager-tool-geh2qybm.js +179 -0
- package/dist/{packager-tool-17b466mr.js → packager-tool-hrd44w8g.js} +7561 -6408
- package/dist/{packager-tool-snesn0bt.js → packager-tool-j1etnthk.js} +19 -14
- package/dist/{packager-tool-k871wgpe.js → packager-tool-j53d4vv1.js} +18 -4
- package/dist/{packager-tool-6ewsbrnb.js → packager-tool-j8mnpsv8.js} +329 -149
- package/dist/{packager-tool-k9z8yg4f.js → packager-tool-jepvcpj7.js} +22 -8
- package/dist/{packager-tool-7x1tmb8a.js → packager-tool-jydreskq.js} +1 -1
- package/dist/{packager-tool-r5pha7xq.js → packager-tool-k08k9g2y.js} +9 -9
- package/dist/{packager-tool-bg3tdpva.js → packager-tool-kh9gs4d5.js} +4 -2
- package/dist/{packager-tool-8467kcz9.js → packager-tool-m7s4n455.js} +120 -13
- package/dist/{packager-tool-5ytjvsfb.js → packager-tool-mbm0kd8w.js} +22 -22
- package/dist/{packager-tool-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
- package/dist/packager-tool-n6h4bz4d.js +22 -0
- package/dist/{packager-tool-4t71ya0d.js → packager-tool-nqz24dxf.js} +254 -69
- package/dist/{packager-tool-ad8v11jd.js → packager-tool-p4c1g2sj.js} +1032 -819
- package/dist/{packager-tool-z070caqq.js → packager-tool-p64w2wrt.js} +30 -8
- package/dist/{packager-tool-xd1wbvay.js → packager-tool-pq61r2f1.js} +1 -1
- package/dist/{packager-tool-65vr263d.js → packager-tool-qzyb1eac.js} +1 -1
- package/dist/{packager-tool-5dptce1y.js → packager-tool-rzxnm9yj.js} +2 -2
- package/dist/{packager-tool-jjkypwge.js → packager-tool-s8jxyjgj.js} +15 -4
- package/dist/{init-entry-points-5xzn81bb.js → packager-tool-t6xwkhht.js} +12 -10
- package/dist/packager-tool-vmfd007q.js +27 -0
- package/dist/packager-tool-wvf6b31h.js +50 -0
- package/dist/{packager-tool-cdvrca04.js → packager-tool-x9z4krtr.js} +1036 -259
- package/dist/{packager-tool-z1fw9a8v.js → packager-tool-y69796fy.js} +19 -11
- package/dist/{packager-tool-f93rmjxx.js → packager-tool-z3k461re.js} +191 -154
- package/dist/{packager-tool-9m7jbv7t.js → packager-tool-zbfwp75m.js} +4 -4
- package/dist/{packager-tool-pq9xv4vq.js → packager-tool-zte9svtn.js} +11 -4
- package/dist/packager-tool.js +2 -2
- package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-2hcb65bn.js} +39 -6
- package/dist/{project-artifacts-pfcn65cg.js → project-artifacts-jaj95t3d.js} +1 -1
- package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
- package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
- package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
- package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
- package/dist/{resolved-check-dz8eqrf6.js → resolved-check-kwgy875v.js} +1 -1
- package/dist/{resourcesSyncService-7j2m0tv0.js → resourcesSyncService-5gcxp8r5.js} +49 -26
- package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-9k2jjk88.js} +1271 -10
- package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
- package/dist/{rule-type-declaration-ze0saj5r.js → rule-type-declaration-a0fk7fe7.js} +12 -11
- package/dist/{sdd-convert-service-m8e615a1.js → sdd-convert-service-2ag3xjpj.js} +120 -621
- package/dist/{sdd-lookup-fwj6x364.js → sdd-lookup-wgm5ctnd.js} +2 -2
- package/dist/{sdd-resolve-service-dvg387wx.js → sdd-resolve-service-epygyb0n.js} +34 -6
- package/dist/{sdd-resolve-siblings-jc2788nm.js → sdd-resolve-siblings-bg4qmawq.js} +4 -4
- package/dist/solution-auth-yb1twb9d.js +11 -0
- package/dist/{solution-definition-helper-6zwd9hjs.js → solution-definition-helper-qjj01xh0.js} +1 -1
- package/dist/{solution-discovery-gfdqhgt2.js → solution-discovery-t0nkzpm3.js} +4 -4
- package/dist/{strict-case-rules-045kbjvv.js → strict-case-rules-x1sytx3e.js} +91 -46
- package/dist/{strict-entry-points-wd85a81g.js → strict-entry-points-anxeg692.js} +6 -6
- package/dist/strict-sdd-audit-z1bg2zr0.js +28 -0
- package/dist/taggable-variables-gc58xb0s.js +6094 -0
- package/dist/task-type-declaration-b0ejzhc6.js +15 -0
- package/dist/tool.js +13 -11
- package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -10
- package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
- package/dist/{trigger-enrichment-service-8nfz9p7h.js → trigger-enrichment-service-zn229s6b.js} +33 -32
- package/dist/{trigger-entry-point-id-4j9rk3kp.js → trigger-entry-point-id-hre2ewts.js} +1 -1
- package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
- package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -10
- package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
- package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -11
- package/package.json +2 -2
- package/dist/case-pack-service-adhg30nq.js +0 -167
- package/dist/index-9fxd19z9.js +0 -35
- package/dist/input-reader-pjt4a914.js +0 -10
- package/dist/packager-tool-v11fx4dk.js +0 -25
- package/dist/solution-auth-a1p22hq1.js +0 -11
- package/dist/strict-sdd-audit-6es2j6fs.js +0 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catchError2
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-j8mnpsv8.js";
|
|
4
4
|
import {
|
|
5
5
|
withoutTrailingSlug,
|
|
6
6
|
field,
|
|
@@ -17,11 +17,12 @@ import {
|
|
|
17
17
|
firstTable,
|
|
18
18
|
fenceOf,
|
|
19
19
|
pipeTables,
|
|
20
|
+
pipeTablesAt,
|
|
20
21
|
columnIndex,
|
|
21
22
|
cellAt,
|
|
22
23
|
withoutAnnotation,
|
|
23
24
|
columnField
|
|
24
|
-
} from "./packager-tool-
|
|
25
|
+
} from "./packager-tool-0nbcqyvp.js";
|
|
25
26
|
import {
|
|
26
27
|
CASE_APP_VERSIONS_WITH_ROLES,
|
|
27
28
|
roleActionKeyOf,
|
|
@@ -32,27 +33,38 @@ import {
|
|
|
32
33
|
} from "./packager-tool-yh8mmj3p.js";
|
|
33
34
|
import {
|
|
34
35
|
CONNECTOR_CALL_TASK_TYPES
|
|
35
|
-
} from "./packager-tool-
|
|
36
|
+
} from "./packager-tool-jydreskq.js";
|
|
36
37
|
import {
|
|
38
|
+
ERROR_OUTPUT_SCHEMA,
|
|
37
39
|
outputSourceFor
|
|
38
|
-
} from "./packager-tool-
|
|
40
|
+
} from "./packager-tool-bw4fsdq4.js";
|
|
39
41
|
import {
|
|
42
|
+
outputTypeCell,
|
|
43
|
+
sameOutputKind,
|
|
44
|
+
expandXrefs,
|
|
45
|
+
canonicalExpression,
|
|
40
46
|
STAGE_SELECTOR_RULES,
|
|
41
47
|
TASK_SELECTOR_RULES,
|
|
42
|
-
parseIfCell
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
parseIfCell
|
|
49
|
+
} from "./packager-tool-exrjwmew.js";
|
|
50
|
+
import {
|
|
51
|
+
BINDING_REFERENCE_PREFIX
|
|
52
|
+
} from "./packager-tool-nfhtwa72.js";
|
|
53
|
+
import {
|
|
54
|
+
stageSpellings,
|
|
55
|
+
dedupedId
|
|
56
|
+
} from "./packager-tool-engs9gvj.js";
|
|
46
57
|
import {
|
|
47
58
|
ledgerMissFor,
|
|
48
|
-
ledgerFoundFor
|
|
49
|
-
|
|
59
|
+
ledgerFoundFor,
|
|
60
|
+
VARIABLE_GROUPS
|
|
61
|
+
} from "./packager-tool-y69796fy.js";
|
|
50
62
|
import {
|
|
51
63
|
comparableFolder
|
|
52
64
|
} from "./packager-tool-yaertxsw.js";
|
|
53
65
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./packager-tool-
|
|
66
|
+
prefixedId
|
|
67
|
+
} from "./packager-tool-1h7abxw6.js";
|
|
56
68
|
import {
|
|
57
69
|
isStageNode,
|
|
58
70
|
isAnyTriggerNode
|
|
@@ -192,12 +204,18 @@ var readTaskHeading = (title) => {
|
|
|
192
204
|
if (!text.toLowerCase().startsWith("task "))
|
|
193
205
|
return;
|
|
194
206
|
let rest = text.slice("task ".length).trimStart();
|
|
195
|
-
|
|
196
|
-
|
|
207
|
+
let letters = 0;
|
|
208
|
+
while (letters < rest.length && rest[letters] >= "A" && rest[letters] <= "Z")
|
|
209
|
+
letters += 1;
|
|
210
|
+
rest = rest.slice(letters);
|
|
197
211
|
let at = 0;
|
|
198
|
-
|
|
212
|
+
let digits = 0;
|
|
213
|
+
while (at < rest.length && (isDigit(rest[at]) || rest[at] === ".")) {
|
|
214
|
+
if (isDigit(rest[at]))
|
|
215
|
+
digits += 1;
|
|
199
216
|
at += 1;
|
|
200
|
-
|
|
217
|
+
}
|
|
218
|
+
if (at === 0 || digits === 0)
|
|
201
219
|
return;
|
|
202
220
|
const marker = rest.slice(0, at);
|
|
203
221
|
let tail = rest.slice(at);
|
|
@@ -281,7 +299,6 @@ var CASE_CONDITIONAL_SLA_HEADINGS = [
|
|
|
281
299
|
"Case Variable SLA Rules"
|
|
282
300
|
];
|
|
283
301
|
var STAGE_TASK_HEADINGS = ["Tasks"];
|
|
284
|
-
var VARIABLE_GROUPS = ["inputs", "outputs", "inputOutputs"];
|
|
285
302
|
var VARIABLE_PLACEMENT2 = new Map([
|
|
286
303
|
["in", ["inputs", "inputOutputs"]],
|
|
287
304
|
["out", ["outputs", "inputOutputs"]],
|
|
@@ -832,8 +849,18 @@ var folderFindings = (binding, declared, path, label) => {
|
|
|
832
849
|
error("STRICT_SDD_BINDING_FOLDER_MISMATCH", path, `${label}: binding "${String(binding.id)}" defaults its folderPath to "${actual}", and the SDD declares "${declared}" for this task — ${kind}. Set the binding's default from the SDD row.`)
|
|
833
850
|
];
|
|
834
851
|
};
|
|
852
|
+
var nameFindings = (binding, declared, path, label) => {
|
|
853
|
+
if (String(binding.resource).toLowerCase() !== "process")
|
|
854
|
+
return [];
|
|
855
|
+
const actual = typeof binding.default === "string" ? binding.default : "";
|
|
856
|
+
if (actual === declared)
|
|
857
|
+
return [];
|
|
858
|
+
return [
|
|
859
|
+
error("STRICT_SDD_BINDING_NAME_MISMATCH", path, `${label}: binding "${String(binding.id)}" defaults its name to "${actual}", and the SDD resolves this task to "${declared}" — the pair names a resource the folder may not hold, and then the task cannot start. Set the binding's default to the SDD's Resolved Resource, or update that row if you chose another resource.`)
|
|
860
|
+
];
|
|
861
|
+
};
|
|
835
862
|
var GUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
836
|
-
var bindingFindings = (plan, task, path, label, declaredFolder) => {
|
|
863
|
+
var bindingFindings = (plan, task, path, label, declaredFolder, declaredName) => {
|
|
837
864
|
const findings = [];
|
|
838
865
|
for (const attribute of ["name", "folderPath"]) {
|
|
839
866
|
const id = bindingId(task.data[attribute]);
|
|
@@ -845,6 +872,9 @@ var bindingFindings = (plan, task, path, label, declaredFolder) => {
|
|
|
845
872
|
if (attribute === "folderPath" && declaredFolder !== undefined) {
|
|
846
873
|
findings.push(...folderFindings(binding, declaredFolder, path, label));
|
|
847
874
|
}
|
|
875
|
+
if (attribute === "name" && declaredName !== undefined) {
|
|
876
|
+
findings.push(...nameFindings(binding, declaredName, path, label));
|
|
877
|
+
}
|
|
848
878
|
const key = binding.resourceKey;
|
|
849
879
|
if (typeof key === "string" && key !== "" && !key.split("/").at(-1)?.includes(".")) {
|
|
850
880
|
findings.push(error("STRICT_SDD_BINDING_RESOURCE_KEY", path, `${label}: binding "${String(binding.id)}" has a bare resourceKey "${key}" — it needs the \`.<entry name>\` leaf suffix.`));
|
|
@@ -1819,6 +1849,11 @@ var CANVAS_NOTE_COLORS = [
|
|
|
1819
1849
|
var noNameColumnNote = (title, wanted, header) => `section "${title}": the table has rows but no ${wanted.join("/")} ` + `column (header: ${header.join(" | ") || "<none>"}) — every row is ` + "skipped, so the section contributes nothing to audit";
|
|
1820
1850
|
var capitalize = (text) => text.charAt(0).toUpperCase() + text.slice(1);
|
|
1821
1851
|
var noCategoryColumnNote = (title, header) => `section "${title}": the table has rows but no Category column ` + `(header: ${header.join(" | ") || "<none>"}) — no row can be checked ` + "for `variables` group placement, so a formal argument missing half its " + "pair passes";
|
|
1852
|
+
var unreadRowNames = (names, unnamed) => [...names, ...unnamed > 0 ? [`${unnamed} with no Name`] : []].join(", ");
|
|
1853
|
+
var laterVariableTablesNote = (title, names, unnamed) => `section "${title}": only the first table declares variables — ` + `${names.length + unnamed} row(s) in a later table are not read ` + `(${unreadRowNames(names, unnamed)}), so each is undeclared; ` + "move them into the first table";
|
|
1854
|
+
var variablesOutsideSectionNote = (title, names, unnamed) => `section "${title}": only the first table under \`### Case Variables\` ` + `declares variables — ${names.length + unnamed} row(s) here are not read ` + `(${unreadRowNames(names, unnamed)}), so each is undeclared; ` + "move them into that table";
|
|
1855
|
+
var entryRuleOnLabelLineNote = (task, rule, line) => `task "${task}": the entry rule \`${rule}\` on line ${line} is written ` + "on the `**Entry Condition:**` label line, where no reader takes it — " + "move it to a row of the table below that label";
|
|
1856
|
+
var misplacedHeadingNote = (title, level, line) => `heading "${title}" on line ${line} (level ${level}) names an audited ` + `section, and that section is read at level ${level - 1} — promote it, ` + "or the checks it feeds are skipped";
|
|
1822
1857
|
var unrecognizedHeadingNote = (title, level) => `heading "${title}" (level ${level}) reads like an audited section but ` + "matches no accepted spelling — rename it to one of the canonical " + "headings, or the checks it feeds are skipped";
|
|
1823
1858
|
|
|
1824
1859
|
// src/services/strict-sdd-audit/selector-targets.ts
|
|
@@ -2197,6 +2232,669 @@ var slaDurationFindings = (sdd, plan) => {
|
|
|
2197
2232
|
});
|
|
2198
2233
|
return findings;
|
|
2199
2234
|
};
|
|
2235
|
+
// src/services/sdd-convert/document-extraction-output-schema.json
|
|
2236
|
+
var document_extraction_output_schema_default = {
|
|
2237
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
2238
|
+
type: "object",
|
|
2239
|
+
properties: {
|
|
2240
|
+
ExtractionResult: {
|
|
2241
|
+
type: "object",
|
|
2242
|
+
properties: {
|
|
2243
|
+
DocumentId: {
|
|
2244
|
+
type: "string"
|
|
2245
|
+
},
|
|
2246
|
+
ResultsVersion: {
|
|
2247
|
+
type: "integer"
|
|
2248
|
+
},
|
|
2249
|
+
ResultsDocument: {
|
|
2250
|
+
type: "object",
|
|
2251
|
+
properties: {
|
|
2252
|
+
Bounds: {
|
|
2253
|
+
type: "object",
|
|
2254
|
+
properties: {
|
|
2255
|
+
PageCount: {
|
|
2256
|
+
type: "integer"
|
|
2257
|
+
},
|
|
2258
|
+
PageRange: {
|
|
2259
|
+
type: "string"
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
},
|
|
2263
|
+
Language: {
|
|
2264
|
+
type: "string"
|
|
2265
|
+
},
|
|
2266
|
+
DocumentGroup: {
|
|
2267
|
+
type: "string"
|
|
2268
|
+
},
|
|
2269
|
+
DocumentCategory: {
|
|
2270
|
+
type: "string"
|
|
2271
|
+
},
|
|
2272
|
+
DocumentTypeId: {
|
|
2273
|
+
type: "string"
|
|
2274
|
+
},
|
|
2275
|
+
DocumentTypeName: {
|
|
2276
|
+
type: "string"
|
|
2277
|
+
},
|
|
2278
|
+
Fields: {
|
|
2279
|
+
type: "array",
|
|
2280
|
+
items: {
|
|
2281
|
+
type: "object",
|
|
2282
|
+
properties: {
|
|
2283
|
+
FieldId: {
|
|
2284
|
+
type: "string"
|
|
2285
|
+
},
|
|
2286
|
+
FieldName: {
|
|
2287
|
+
type: "string"
|
|
2288
|
+
},
|
|
2289
|
+
FieldType: {
|
|
2290
|
+
type: "string"
|
|
2291
|
+
},
|
|
2292
|
+
Value: {
|
|
2293
|
+
type: "string"
|
|
2294
|
+
},
|
|
2295
|
+
UnformattedValue: {
|
|
2296
|
+
type: "string"
|
|
2297
|
+
},
|
|
2298
|
+
Confidence: {
|
|
2299
|
+
type: "number"
|
|
2300
|
+
},
|
|
2301
|
+
IsMissing: {
|
|
2302
|
+
type: "boolean"
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
},
|
|
2307
|
+
Tables: {
|
|
2308
|
+
type: "array",
|
|
2309
|
+
items: {
|
|
2310
|
+
type: "object"
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
},
|
|
2315
|
+
ExtractorPayloads: {
|
|
2316
|
+
type: "object"
|
|
2317
|
+
},
|
|
2318
|
+
BusinessrulesResults: {
|
|
2319
|
+
type: "array",
|
|
2320
|
+
items: {
|
|
2321
|
+
type: "object"
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
},
|
|
2326
|
+
Taxonomy: {
|
|
2327
|
+
type: "object",
|
|
2328
|
+
properties: {
|
|
2329
|
+
DataContractVersion: {
|
|
2330
|
+
type: "string"
|
|
2331
|
+
},
|
|
2332
|
+
DocumentTypes: {
|
|
2333
|
+
type: "array",
|
|
2334
|
+
items: {
|
|
2335
|
+
type: "object",
|
|
2336
|
+
properties: {
|
|
2337
|
+
DocumentTypeId: {
|
|
2338
|
+
type: "string"
|
|
2339
|
+
},
|
|
2340
|
+
Group: {
|
|
2341
|
+
type: "string"
|
|
2342
|
+
},
|
|
2343
|
+
Category: {
|
|
2344
|
+
type: "string"
|
|
2345
|
+
},
|
|
2346
|
+
Name: {
|
|
2347
|
+
type: "string"
|
|
2348
|
+
},
|
|
2349
|
+
OptionalUniqueIdentifier: {
|
|
2350
|
+
type: "string"
|
|
2351
|
+
},
|
|
2352
|
+
TypeField: {
|
|
2353
|
+
type: "object"
|
|
2354
|
+
},
|
|
2355
|
+
Fields: {
|
|
2356
|
+
type: "array",
|
|
2357
|
+
items: {
|
|
2358
|
+
type: "object"
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
};
|
|
2368
|
+
|
|
2369
|
+
// src/services/sdd-convert/document-extraction.ts
|
|
2370
|
+
var DOCUMENT_EXTRACTION_SERVICE_TYPE = "IXP.Extraction";
|
|
2371
|
+
var DATA_NAME = "Document extraction";
|
|
2372
|
+
var documentExtractionOutputs = (elementId, taken, reserved = new Set) => {
|
|
2373
|
+
const mint = (base) => {
|
|
2374
|
+
const id = dedupedId(base, new Set([...taken, ...reserved]));
|
|
2375
|
+
taken.add(id);
|
|
2376
|
+
return id;
|
|
2377
|
+
};
|
|
2378
|
+
const row = (name, displayName, source, schema) => {
|
|
2379
|
+
const id = mint(name);
|
|
2380
|
+
return {
|
|
2381
|
+
name,
|
|
2382
|
+
displayName,
|
|
2383
|
+
type: "jsonSchema",
|
|
2384
|
+
source,
|
|
2385
|
+
_jsonSchema: structuredClone(schema),
|
|
2386
|
+
id,
|
|
2387
|
+
var: id,
|
|
2388
|
+
value: id,
|
|
2389
|
+
elementId,
|
|
2390
|
+
body: structuredClone(schema)
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
return [
|
|
2394
|
+
row("output", "Output", "=result", document_extraction_output_schema_default),
|
|
2395
|
+
row("error", "Error", "=Error", ERROR_OUTPUT_SCHEMA)
|
|
2396
|
+
];
|
|
2397
|
+
};
|
|
2398
|
+
var INPUTS = [
|
|
2399
|
+
{ name: "fileRef", displayName: "File", type: "file", required: true },
|
|
2400
|
+
{ name: "pageRange", displayName: "Page range", type: "string" }
|
|
2401
|
+
];
|
|
2402
|
+
var spelling = (name) => name.toLowerCase().replace(/[^a-z]/g, "");
|
|
2403
|
+
var deploymentBinding = (deployment, resourceKey, bindings) => {
|
|
2404
|
+
const found = bindings.find((one) => one.resource === "ixpDeployment" && one.default === deployment && (one.resourceKey ?? null) === resourceKey);
|
|
2405
|
+
if (found !== undefined)
|
|
2406
|
+
return String(found.id);
|
|
2407
|
+
const ordinal = bindings.filter((one) => one.resource === "ixpDeployment").length + 1;
|
|
2408
|
+
const id = `bIxp${ordinal}`;
|
|
2409
|
+
bindings.push({
|
|
2410
|
+
id,
|
|
2411
|
+
name: "name",
|
|
2412
|
+
type: "string",
|
|
2413
|
+
resource: "ixpDeployment",
|
|
2414
|
+
...resourceKey !== null && { resourceKey },
|
|
2415
|
+
default: deployment,
|
|
2416
|
+
propertyAttribute: "name"
|
|
2417
|
+
});
|
|
2418
|
+
return id;
|
|
2419
|
+
};
|
|
2420
|
+
var documentExtractionData = (extraction, authored, outputs, context) => {
|
|
2421
|
+
const { elementId, where, unresolved } = context;
|
|
2422
|
+
const say = (detail) => {
|
|
2423
|
+
unresolved.push({ kind: "resource-binding", where, detail });
|
|
2424
|
+
};
|
|
2425
|
+
const deployment = namedValue(extraction?.deployment);
|
|
2426
|
+
const modelName = namedValue(extraction?.modelName);
|
|
2427
|
+
const deploymentKey = namedValue(extraction?.deploymentKey);
|
|
2428
|
+
const folderKey = namedValue(extraction?.folderKey);
|
|
2429
|
+
const folderName = namedValue(context.folderName);
|
|
2430
|
+
if (deployment === "") {
|
|
2431
|
+
say("this `document-extraction` task names no `**IXP Deployment:**`, so nothing binds the deployment it runs; write the deployment's name as the solution lists it");
|
|
2432
|
+
}
|
|
2433
|
+
if (deploymentKey === "") {
|
|
2434
|
+
say(`this \`document-extraction\` task states no \`**Deployment Key:**\`, the key of the IXP deployment's solution resource; \`uip solution resources add --source remote --kind IxpDeployment --name "${deployment === "" ? "<deployment-name>" : deployment}"\` adds it to the solution and returns it as \`Key\`, and \`uip solution resources list --kind IxpDeployment --source remote\` looks it up without changing anything`);
|
|
2435
|
+
}
|
|
2436
|
+
if (modelName === "") {
|
|
2437
|
+
say("this `document-extraction` task states no `**Model Name:**`, the deployment's DeploymentName; `uip ixp deployments list <project-name>` gives it (with DeploymentTitle, the `**IXP Deployment:**`, and FolderKey), and `uip ixp projects list` names the project");
|
|
2438
|
+
}
|
|
2439
|
+
if (folderKey === "" || folderName === "") {
|
|
2440
|
+
say(`this \`document-extraction\` task states no ${folderName === "" ? "`**Folder Path:**`" : "`**Folder Key:**`"}${folderKey === "" && folderName === "" ? " or `**Folder Key:**`" : ""} for the folder the deployment is deployed to; \`uip ixp deployments list <project-name>\` gives its FolderKey, and \`uip or folders list\` its path`);
|
|
2441
|
+
}
|
|
2442
|
+
const byName = new Map(authored.map((row) => [spelling(String(row.name ?? "")), row]));
|
|
2443
|
+
const inputs = INPUTS.map((slot) => {
|
|
2444
|
+
const row = byName.get(spelling(slot.name)) ?? byName.get(spelling(slot.displayName));
|
|
2445
|
+
const id = prefixedId("v", 8);
|
|
2446
|
+
return {
|
|
2447
|
+
name: slot.name,
|
|
2448
|
+
displayName: slot.displayName,
|
|
2449
|
+
type: slot.type,
|
|
2450
|
+
value: row === undefined ? "" : String(row.value ?? ""),
|
|
2451
|
+
...slot.required === true && { required: true },
|
|
2452
|
+
id,
|
|
2453
|
+
var: id,
|
|
2454
|
+
elementId
|
|
2455
|
+
};
|
|
2456
|
+
});
|
|
2457
|
+
const known = new Set(INPUTS.flatMap((slot) => [
|
|
2458
|
+
spelling(slot.name),
|
|
2459
|
+
spelling(slot.displayName)
|
|
2460
|
+
]));
|
|
2461
|
+
for (const row of authored) {
|
|
2462
|
+
const name = String(row.name ?? "");
|
|
2463
|
+
if (!known.has(spelling(name))) {
|
|
2464
|
+
unresolved.push({
|
|
2465
|
+
kind: "task-io-table",
|
|
2466
|
+
where,
|
|
2467
|
+
detail: `a \`document-extraction\` task takes only \`fileRef\` (File) and \`pageRange\` (Page range), so the Inputs row "${name}" is not written`
|
|
2468
|
+
});
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
if (inputs[0].value === "") {
|
|
2472
|
+
unresolved.push({
|
|
2473
|
+
kind: "task-io-table",
|
|
2474
|
+
where,
|
|
2475
|
+
detail: "this `document-extraction` task's `fileRef` input is empty, so it has no file to extract from; add an Inputs row `fileRef` reading the file, such as `=vars.invoiceFile`"
|
|
2476
|
+
});
|
|
2477
|
+
}
|
|
2478
|
+
const resourceKey = deploymentKey === "" ? null : deploymentKey;
|
|
2479
|
+
const nameValue = deployment === "" ? "" : `${BINDING_REFERENCE_PREFIX}${deploymentBinding(deployment, resourceKey, context.bindings)}`;
|
|
2480
|
+
const entry = (name, value) => ({
|
|
2481
|
+
name,
|
|
2482
|
+
type: "string",
|
|
2483
|
+
value
|
|
2484
|
+
});
|
|
2485
|
+
return {
|
|
2486
|
+
name: DATA_NAME,
|
|
2487
|
+
serviceType: DOCUMENT_EXTRACTION_SERVICE_TYPE,
|
|
2488
|
+
context: [
|
|
2489
|
+
entry("solutionResourceKey", resourceKey),
|
|
2490
|
+
entry("name", nameValue),
|
|
2491
|
+
entry("folderKey", folderKey === "" ? null : folderKey),
|
|
2492
|
+
entry("folderName", folderName === "" ? null : folderName),
|
|
2493
|
+
entry("modelName", modelName === "" ? null : modelName),
|
|
2494
|
+
entry("modelDisplayName", deployment === "" ? null : deployment),
|
|
2495
|
+
entry("digitizationMode", "fileUpload")
|
|
2496
|
+
],
|
|
2497
|
+
inputs,
|
|
2498
|
+
outputs,
|
|
2499
|
+
version: "v2"
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
// src/services/sdd-convert/http-request-metadata.json
|
|
2503
|
+
var http_request_metadata_default = {
|
|
2504
|
+
activityPropertyConfiguration: {
|
|
2505
|
+
configuration: '=jsonString:{"essentialConfiguration":{"connectorVersion":"1.5.3","scriptRef":null,"customFieldsRequestDetails":null,"instanceParameters":{"connectorKey":"uipath-uipath-http","objectName":"http-request","httpMethod":"POST","activityType":"Curated","version":"1.0.0","supportsStreaming":false,"subType":"method"},"objectName":"http-request","operation":"create","packageVersion":"1.0.0","httpMethod":"POST","path":"/http-request","unifiedTypesCompatible":true,"savedJitInputFieldId":"in_http-request"},"optionalConfiguration":{"_textBlocks":[{"name":"contentTypeNotice","text":"The content-type header must be application/json.","position":"above"}],"objectActions":[],"connectorName":"HTTP","agentIdentity":null,"maxPageSize":100,"jobArguments":null,"isAutopilotInvalidConfig":false,"additionalHeaders":null,"cachedLookupValues":[],"cachedBrowserItems":[],"cachedPropertyMappings":[],"primaryKeys":[],"objectDisplayName":"HTTP Request","eventMode":null,"eventOperation":null,"hasBreakingChanges":false,"fieldsContainer":{"outputTypeDefinition":"{\\"body\\":object;\\"code\\":number;\\"method\\":string;\\"rawStringBody\\":string;\\"request\\":{\\"headers\\":object;\\"methodType\\":string;\\"query\\":object;\\"type\\":string;\\"url\\":string}}","outputJsonSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"method":{"title":"Method","type":"string","description":"Specifies the HTTP method to be used for the request."},"body":{"title":"Body","$ref":"#/definitions/body"},"code":{"title":"Code","type":"integer","description":"The Code"},"rawStringBody":{"title":"Raw body","type":"string","description":"The Raw string body"},"request":{"title":"Request","$ref":"#/definitions/request"}},"definitions":{"body":{"type":"object","properties":{}},"request":{"type":"object","properties":{"type":{"title":"Request type","type":"string","description":"The Request type"},"url":{"title":"Request url","type":"string","description":"The Request url"},"methodType":{"title":"Method","type":"string","description":"The Request method type"}}}}},"hasFileOutput":false,"populateOutputFields":true,"inputFields":[{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"authentication","name":"authentication","displayName":"Authentication","description":"Authentication","type":"string","sortOrder":1,"defaultValue":"manual","primaryKey":false,"enum":[{"name":"Manual authentication","value":"manual","description":"Provide authentication details directly in the request"},{"name":"Connector based authentication","value":"connector","description":"Use authentication details from a configured connector"}],"design":{"loadByDefault":false,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"fieldActions":[{"actionType":"showMessages","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":false,"isVariable":false}],"messages":["contentTypeNotice"]},{"actionType":"clearMessages","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":false,"isVariable":false}],"messages":["contentTypeNotice"]}],"textBlocks":[{"name":"contentTypeNotice","text":"The content-type header must be application/json.","position":"above"}],"validation":false},"fieldActions":[{"actionType":"showMessages","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":false,"isVariable":false}],"messages":["contentTypeNotice"]},{"actionType":"clearMessages","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":false,"isVariable":false}],"messages":["contentTypeNotice"]}],"searchable":false,"searchableJoins":null,"required":true,"request":true,"response":false,"responseCurated":false,"fieldLocation":"body","onCanvas":null,"isJitField":false,"isFieldActionParent":true,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"String","assemblyQualifiedName":"String","isValueType":true},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"targetConnector","name":"targetConnector","displayName":"Connector","description":"Select a connector","type":"string","sortOrder":2,"primaryKey":false,"lookup":{"objectName":"connectors","lookupNames":["name"],"lookupValue":"key","path":"/Connectors?hasHttpRequest=true","orderBy":"NONE","defaultLookupValues":[{"name":"HTTP","key":"uipath-uipath-http","priority":1,"isDefault":true,"description":"UiPath HTTP connector for general API requests"}]},"design":{"component":"Connectors","loadByDefault":true,"isMultiSelect":false,"enableUserOverride":false,"displayPattern":"{name}","isHidden":false,"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":true,"isVariable":false}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","isCleared":true,"isVariable":false}]}],"position":"primary","solutionResourceKind":"connector","validation":false},"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":true,"isVariable":false}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","isCleared":true,"isVariable":false}]}],"searchable":false,"searchableJoins":null,"required":true,"request":true,"response":false,"responseCurated":false,"fieldLocation":"body","onCanvas":null,"isJitField":false,"isFieldActionParent":true,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"String","assemblyQualifiedName":"String","isValueType":true},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"connection","name":"connection","displayName":"Connection","description":"Connections","type":"string","sortOrder":3,"primaryKey":false,"design":{"component":"Connections","loadByDefault":true,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"fieldActions":[{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":true,"isVariable":false}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false},{"type":"field","refFieldName":"targetConnector","isCleared":true,"isVariable":false}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","isCleared":true,"isVariable":false}]},{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false},{"type":"field","refFieldName":"targetConnector","refFieldValues":["*"],"isCleared":true,"isVariable":false}]}],"position":"primary","solutionResourceKind":"connection","validation":false},"fieldActions":[{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":true,"isVariable":false}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false},{"type":"field","refFieldName":"targetConnector","isCleared":true,"isVariable":false}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","isCleared":true,"isVariable":false}]},{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false},{"type":"field","refFieldName":"targetConnector","refFieldValues":["*"],"isCleared":true,"isVariable":false}]},{"rules":[{"refFieldName":"targetConnector","refFieldValues":["*"],"isCleared":false,"isConstantValue":false,"isWorkflowExpression":false}],"actionType":"grabValue","groupNames":[],"messages":null}],"searchable":false,"searchableJoins":null,"required":true,"request":true,"response":false,"responseCurated":false,"fieldLocation":"body","onCanvas":null,"isJitField":false,"isFieldActionParent":false,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"String","assemblyQualifiedName":"String","isValueType":true},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"method","name":"method","displayName":"Method","description":"Specifies the HTTP method to be used for the request.","type":"string","sortOrder":4,"defaultValue":"GET","primaryKey":false,"enum":[{"name":"GET","value":"GET"},{"name":"POST","value":"POST"},{"name":"PUT","value":"PUT"},{"name":"PATCH","value":"PATCH"},{"name":"DELETE","value":"DELETE"},{"name":"OPTIONS","value":"OPTIONS"},{"name":"HEAD","value":"HEAD"}],"design":{"loadByDefault":true,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"position":"primary","validation":false},"fieldActions":null,"searchable":false,"searchableJoins":null,"required":true,"request":true,"response":true,"responseCurated":false,"fieldLocation":"body","onCanvas":null,"isJitField":false,"isFieldActionParent":true,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"String","assemblyQualifiedName":"String","isValueType":true},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"url","name":"url","displayName":"URL","description":"The web address where the HTTP request is sent.","type":"string","sortOrder":5,"primaryKey":false,"design":{"loadByDefault":false,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false}]}],"position":"primary","validation":false},"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false}]}],"searchable":false,"searchableJoins":null,"required":true,"request":true,"response":false,"responseCurated":false,"fieldLocation":"body","onCanvas":null,"isJitField":false,"isFieldActionParent":false,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"String","assemblyQualifiedName":"String","isValueType":true},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"path","name":"path","displayName":"Path","description":"The endpoint path for the REST API request.","type":"string","sortOrder":5,"primaryKey":false,"design":{"loadByDefault":false,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":true,"isVariable":false}]}],"position":"primary","validation":false},"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":true,"isVariable":false}]}],"searchable":false,"searchableJoins":null,"required":false,"request":true,"response":false,"responseCurated":false,"fieldLocation":"body","onCanvas":null,"isJitField":false,"isFieldActionParent":false,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"String","assemblyQualifiedName":"String","isValueType":true},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"headers","name":"headers","displayName":"Headers","description":"Headers","type":"object","sortOrder":6,"primaryKey":false,"design":{"component":"Dictionary","loadByDefault":false,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"position":"primary","dictionaryWidget":{"windowTitle":"","windowDescription":"","columnKeyTitle":"","columnKeyDescription":"","columnKeyHint":"","columnValueTitle":"","columnValueDescription":"","columnValueHint":""},"validation":false},"fieldActions":null,"searchable":false,"searchableJoins":null,"required":false,"request":true,"response":false,"responseCurated":false,"fieldLocation":"body","onCanvas":true,"isJitField":false,"isFieldActionParent":false,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"Object","assemblyQualifiedName":"Object","isValueType":false},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"query","name":"query","displayName":"Query parameters","description":"Query parameters","type":"object","sortOrder":7,"primaryKey":false,"design":{"component":"Dictionary","loadByDefault":false,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"position":"primary","dictionaryWidget":{"windowTitle":"","windowDescription":"","columnKeyTitle":"","columnKeyDescription":"","columnKeyHint":"","columnValueTitle":"","columnValueDescription":"","columnValueHint":""},"validation":false},"fieldActions":null,"searchable":false,"searchableJoins":null,"required":false,"request":true,"response":false,"responseCurated":false,"fieldLocation":"body","onCanvas":true,"isJitField":false,"isFieldActionParent":false,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"Object","assemblyQualifiedName":"Object","isValueType":false},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"requestBodyType","name":"requestBodyType","displayName":"Request body type","description":"Determines how the request body is encoded. Available for manual authentication only; connector-based requests remain JSON.","type":"string","sortOrder":8,"defaultValue":"raw","primaryKey":false,"enum":[{"name":"Raw","value":"raw","description":"Send the body as-is using the Content-Type header (e.g. JSON, XML, plain text)."},{"name":"Multipart form data","value":"multipartFormData","description":"Send one or more form-data parts encoded as multipart/form-data."}],"design":{"loadByDefault":false,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true},{"type":"field","refFieldName":"method","refFieldValues":["POST","PATCH","PUT"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"method","refFieldValues":["GET","HEAD","OPTIONS","DELETE"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true}]}],"position":"primary","validation":false},"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true},{"type":"field","refFieldName":"method","refFieldValues":["POST","PATCH","PUT"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"method","refFieldValues":["GET","HEAD","OPTIONS","DELETE"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true}]}],"searchable":false,"searchableJoins":null,"required":false,"request":true,"response":false,"responseCurated":false,"fieldLocation":"body","onCanvas":null,"isJitField":false,"isFieldActionParent":true,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"String","assemblyQualifiedName":"String","isValueType":true},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"body","name":"body","displayName":"Body","description":"Contains the data to be sent with the HTTP request.","type":"object","sortOrder":9,"primaryKey":false,"design":{"loadByDefault":false,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"fieldActions":[{"actionType":"hide","rules":[{"type":"field","refFieldName":"method","refFieldValues":["GET","HEAD","OPTIONS","DELETE"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"requestBodyType","refFieldValues":["multipartFormData"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"requestBodyType","refFieldValues":["raw"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true},{"type":"field","refFieldName":"method","refFieldValues":["POST","PATCH","PUT"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]}],"position":"primary","validation":false},"fieldActions":[{"actionType":"hide","rules":[{"type":"field","refFieldName":"method","refFieldValues":["GET","HEAD","OPTIONS","DELETE"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"requestBodyType","refFieldValues":["multipartFormData"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"requestBodyType","refFieldValues":["raw"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true},{"type":"field","refFieldName":"method","refFieldValues":["POST","PATCH","PUT"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]}],"searchable":false,"searchableJoins":null,"required":false,"request":true,"response":true,"responseCurated":false,"fieldLocation":"body","onCanvas":null,"isJitField":false,"isFieldActionParent":false,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"Object","assemblyQualifiedName":"Object","isValueType":false},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"multipartFormData","name":"multipartFormData","displayName":"Form data parts","description":"Multipart form-data parts. Provide a list of parts; each part is an object with \'name\' (required), \'value\' (required), and optional \'filename\', \'contentType\' and \'encoding\'. A value that is an attachment reference is sent as a file; set encoding to \'base64\' to send a base64 string as bytes; objects are sent as JSON.","type":"object","sortOrder":10,"primaryKey":false,"design":{"loadByDefault":false,"isMultiSelect":false,"enableUserOverride":false,"isHidden":false,"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true},{"type":"field","refFieldName":"requestBodyType","refFieldValues":["multipartFormData"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"requestBodyType","refFieldValues":["raw"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false}]}],"position":"primary","validation":false},"fieldActions":[{"actionType":"show","priorityOrder":1,"rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["manual"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true},{"type":"field","refFieldName":"requestBodyType","refFieldValues":["multipartFormData"],"isCleared":false,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"requestBodyType","refFieldValues":["raw"],"isCleared":true,"isVariable":false,"isWorkflowExpression":true}]},{"actionType":"hide","rules":[{"type":"field","refFieldName":"authentication","refFieldValues":["connector"],"isCleared":true,"isVariable":false}]}],"searchable":false,"searchableJoins":null,"required":false,"request":true,"response":false,"responseCurated":false,"fieldLocation":"body","onCanvas":null,"isJitField":false,"isFieldActionParent":false,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"Object","assemblyQualifiedName":"Object","isValueType":false},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null}],"outputFields":[{"typeScriptDefinition":null,"useUrlInput":false,"resolvedUrl":null,"id":"http-request","name":"http-request","displayName":"HTTP Request","description":"","type":"Generatedhttp-request","sortOrder":null,"format":null,"mask":null,"defaultValue":null,"primaryKey":false,"lookup":null,"enum":null,"design":null,"fieldActions":null,"searchable":false,"searchableOperators":null,"searchableNames":null,"searchableJoins":null,"required":false,"request":false,"response":true,"responseCurated":false,"fieldLocation":"output","onCanvas":null,"isJitField":true,"isFieldActionParent":false,"isMainResponseField":true,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"Object","assemblyQualifiedName":"Object","isValueType":false},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null}],"jitTypeNeedsRefresh":false,"jitInputField":{"typeScriptDefinition":"{\\"authentication\\":string;\\"body\\":object;\\"connection\\":string;\\"headers\\":object;\\"method\\":string;\\"multipartFormData\\":object;\\"path\\":string;\\"query\\":object;\\"requestBodyType\\":string;\\"targetConnector\\":string;\\"url\\":string}","useUrlInput":false,"resolvedUrl":null,"id":"in_http-request","name":"http-request","displayName":"HTTP Request","description":"HTTP Request input object","type":"Generatedhttp-request","sortOrder":null,"format":null,"mask":null,"defaultValue":"{\\n \\"authentication\\": null,\\n \\"body\\": null,\\n \\"connection\\": null,\\n \\"headers\\": null,\\n \\"method\\": null,\\n \\"multipartFormData\\": null,\\n \\"path\\": null,\\n \\"query\\": null,\\n \\"requestBodyType\\": null,\\n \\"targetConnector\\": null,\\n \\"url\\": null\\n}","primaryKey":false,"lookup":null,"enum":null,"design":null,"fieldActions":null,"searchable":false,"searchableOperators":null,"searchableNames":null,"searchableJoins":null,"required":true,"request":false,"response":false,"responseCurated":false,"fieldLocation":"jitObjectInput","onCanvas":null,"isJitField":true,"isFieldActionParent":false,"isMainResponseField":false,"isMethodParameter":false,"isBackgroundField":false,"filterTree":null,"filterNeedsRefresh":null,"arrayInputPaths":null,"clrType":{"_elementType":null,"_isNullable":false,"isArray":false,"genericTypeArguments":[],"fullName":null,"name":"Object","assemblyQualifiedName":"Object","isValueType":false},"forceExpressionEditor":false,"requiredGroups":null,"disableExpressions":false,"backingField":null,"searchableDisplayName":null,"selectedResourceId":null},"inputMode":null,"searchableFields":[],"hasUnifiedTypes":true,"jitTypeHash":null}}}',
|
|
2506
|
+
uiPathActivityTypeId: "5c4cc855-b42a-37e6-b910-de8588998fce",
|
|
2507
|
+
errorState: {
|
|
2508
|
+
issues: []
|
|
2509
|
+
}
|
|
2510
|
+
},
|
|
2511
|
+
activityMetadata: {
|
|
2512
|
+
activity: {
|
|
2513
|
+
isAppActivity: false,
|
|
2514
|
+
packageId: 196648,
|
|
2515
|
+
svgIconUrl: "icons/0dad78c9d04c245b126d8edb4c451aa8a0d395d34731cf5702441f6284c70ccc.svg",
|
|
2516
|
+
displayName: "HTTP Request",
|
|
2517
|
+
assemblyQualifiedName: "UiPath.IntegrationService.Activities.Runtime.Activities.ConnectorActivity, UiPath.IntegrationService.Activities.Runtime, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null",
|
|
2518
|
+
description: "Use HTTP requests to interact with APIs via the selected connector and connection configuration.",
|
|
2519
|
+
category: "",
|
|
2520
|
+
activityColor: "#E56D5C",
|
|
2521
|
+
configuration: '{"connectorKey":"uipath-uipath-http","objectName":"http-request","httpMethod":"POST","activityType":"Curated","version":"1.0.0","supportsStreaming":false,"subType":"method"}',
|
|
2522
|
+
uiPathActivityTypeId: "5c4cc855-b42a-37e6-b910-de8588998fce",
|
|
2523
|
+
isExperimental: false,
|
|
2524
|
+
helpUrlTemplate: "https://docs.uipath.com/{0}/activities/other/latest/integration-service/uipath-uipath-http-HTTP-Request",
|
|
2525
|
+
isEnabled: true,
|
|
2526
|
+
targetPlatform: "CrossPlatform",
|
|
2527
|
+
isAdvanced: false,
|
|
2528
|
+
isRestricted: false,
|
|
2529
|
+
hasWpfOnlyDesigner: false,
|
|
2530
|
+
tags: [
|
|
2531
|
+
""
|
|
2532
|
+
]
|
|
2533
|
+
},
|
|
2534
|
+
meta: {
|
|
2535
|
+
packageName: "UiPath.IntegrationService.Activities",
|
|
2536
|
+
packageVersion: "1.34.0-alpha.20261013.3",
|
|
2537
|
+
activityColor: "#E56D5C",
|
|
2538
|
+
packageCategoryDisplayName: "HTTP"
|
|
2539
|
+
}
|
|
2540
|
+
},
|
|
2541
|
+
inputMetadata: {},
|
|
2542
|
+
telemetryData: {
|
|
2543
|
+
connectorKey: "uipath-uipath-http",
|
|
2544
|
+
connectorName: "HTTP",
|
|
2545
|
+
operationType: "create",
|
|
2546
|
+
objectName: "http-request",
|
|
2547
|
+
objectDisplayName: "HTTP Request",
|
|
2548
|
+
primaryKeyName: ""
|
|
2549
|
+
},
|
|
2550
|
+
bindings: []
|
|
2551
|
+
};
|
|
2552
|
+
|
|
2553
|
+
// src/services/sdd-convert/http-request.ts
|
|
2554
|
+
var HTTP_CONNECTOR_KEY = "uipath-uipath-http";
|
|
2555
|
+
var OUTPUTS = [
|
|
2556
|
+
{
|
|
2557
|
+
name: "code",
|
|
2558
|
+
displayName: "Response status code",
|
|
2559
|
+
type: "number",
|
|
2560
|
+
source: "=response.code"
|
|
2561
|
+
},
|
|
2562
|
+
{
|
|
2563
|
+
name: "headers",
|
|
2564
|
+
displayName: "Response headers",
|
|
2565
|
+
type: "object",
|
|
2566
|
+
source: "=response.headers"
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
name: "body",
|
|
2570
|
+
displayName: "Response body",
|
|
2571
|
+
type: "object",
|
|
2572
|
+
source: "=response.body"
|
|
2573
|
+
}
|
|
2574
|
+
];
|
|
2575
|
+
var ERROR_SCHEMA = {
|
|
2576
|
+
type: "object",
|
|
2577
|
+
properties: {
|
|
2578
|
+
code: { type: "string" },
|
|
2579
|
+
message: { type: "string" },
|
|
2580
|
+
detail: { type: "string" },
|
|
2581
|
+
category: { type: "string" },
|
|
2582
|
+
status: { type: "number" },
|
|
2583
|
+
element: { type: "string" }
|
|
2584
|
+
}
|
|
2585
|
+
};
|
|
2586
|
+
var httpRequestOutputs = (elementId, taken, reserved = new Set) => [
|
|
2587
|
+
...OUTPUTS.map((output) => {
|
|
2588
|
+
const id = mint(String(output.name), taken, reserved);
|
|
2589
|
+
return { ...output, var: id, value: id, id, elementId };
|
|
2590
|
+
}),
|
|
2591
|
+
(() => {
|
|
2592
|
+
const id = mint("error", taken, reserved);
|
|
2593
|
+
return {
|
|
2594
|
+
name: "Error",
|
|
2595
|
+
displayName: "Error",
|
|
2596
|
+
type: "jsonSchema",
|
|
2597
|
+
source: "=Error",
|
|
2598
|
+
_jsonSchema: ERROR_SCHEMA,
|
|
2599
|
+
id,
|
|
2600
|
+
var: id,
|
|
2601
|
+
value: id,
|
|
2602
|
+
elementId,
|
|
2603
|
+
body: ERROR_SCHEMA
|
|
2604
|
+
};
|
|
2605
|
+
})()
|
|
2606
|
+
];
|
|
2607
|
+
var mint = (base, taken, reserved) => {
|
|
2608
|
+
const id = dedupedId(base, new Set([...taken, ...reserved]));
|
|
2609
|
+
taken.add(id);
|
|
2610
|
+
return id;
|
|
2611
|
+
};
|
|
2612
|
+
var objectCell = (text) => {
|
|
2613
|
+
if (text === undefined)
|
|
2614
|
+
return {};
|
|
2615
|
+
const [error, parsed] = catchError2(() => JSON.parse(text));
|
|
2616
|
+
if (error)
|
|
2617
|
+
return { error: "is not JSON" };
|
|
2618
|
+
return typeof parsed === "object" && parsed !== null && !Array.isArray(parsed) ? { value: parsed } : { error: "is not a JSON object" };
|
|
2619
|
+
};
|
|
2620
|
+
var bodyValue = (text) => {
|
|
2621
|
+
if (text.startsWith("="))
|
|
2622
|
+
return { value: text };
|
|
2623
|
+
const [error] = catchError2(() => JSON.parse(text));
|
|
2624
|
+
return error ? { error: "is neither JSON nor an `=` expression" } : { value: `=js:( ${text})` };
|
|
2625
|
+
};
|
|
2626
|
+
var BODY_METHODS = new Set(["POST", "PUT", "PATCH"]);
|
|
2627
|
+
var HTTP_METHODS = new Set([
|
|
2628
|
+
"GET",
|
|
2629
|
+
"POST",
|
|
2630
|
+
"PUT",
|
|
2631
|
+
"PATCH",
|
|
2632
|
+
"DELETE",
|
|
2633
|
+
"OPTIONS",
|
|
2634
|
+
"HEAD"
|
|
2635
|
+
]);
|
|
2636
|
+
var IMPLICIT = "ImplicitConnection";
|
|
2637
|
+
var CONNECTION_BINDING_NAME = `${HTTP_CONNECTOR_KEY} connection`;
|
|
2638
|
+
var binding = (id, rest) => ({
|
|
2639
|
+
id,
|
|
2640
|
+
name: CONNECTION_BINDING_NAME,
|
|
2641
|
+
type: "string",
|
|
2642
|
+
resource: "Connection",
|
|
2643
|
+
...rest
|
|
2644
|
+
});
|
|
2645
|
+
var implicitBinding = (bindings) => {
|
|
2646
|
+
const found = bindings.find((one) => one.name === CONNECTION_BINDING_NAME && one.resourceKey === IMPLICIT);
|
|
2647
|
+
if (found !== undefined)
|
|
2648
|
+
return String(found.id);
|
|
2649
|
+
const id = "bHttpImplicit";
|
|
2650
|
+
bindings.push(binding(id, {
|
|
2651
|
+
resourceKey: IMPLICIT,
|
|
2652
|
+
default: IMPLICIT,
|
|
2653
|
+
propertyAttribute: "ConnectionId"
|
|
2654
|
+
}));
|
|
2655
|
+
return id;
|
|
2656
|
+
};
|
|
2657
|
+
var connectionBindings = (connectionId, context) => {
|
|
2658
|
+
const known = context.connections.get(`http:${connectionId}`);
|
|
2659
|
+
const ordinal = context.connections.size + 1;
|
|
2660
|
+
const connectionRef = known ?? `bHttpC${ordinal}`;
|
|
2661
|
+
const folderRef = `${connectionRef}F`;
|
|
2662
|
+
const connection = binding(connectionRef, {
|
|
2663
|
+
resourceKey: connectionId,
|
|
2664
|
+
default: connectionId,
|
|
2665
|
+
propertyAttribute: "ConnectionId"
|
|
2666
|
+
});
|
|
2667
|
+
const folder = {
|
|
2668
|
+
id: folderRef,
|
|
2669
|
+
name: "FolderKey",
|
|
2670
|
+
type: "string",
|
|
2671
|
+
resource: "Connection",
|
|
2672
|
+
resourceKey: connectionId,
|
|
2673
|
+
propertyAttribute: "folderKey"
|
|
2674
|
+
};
|
|
2675
|
+
if (known === undefined) {
|
|
2676
|
+
context.connections.set(`http:${connectionId}`, connectionRef);
|
|
2677
|
+
context.bindings.push(connection, folder);
|
|
2678
|
+
}
|
|
2679
|
+
return { connection, folder };
|
|
2680
|
+
};
|
|
2681
|
+
var input = (name, elementId) => {
|
|
2682
|
+
const id = prefixedId("v", 8);
|
|
2683
|
+
return { name, type: "json", target: name, id, var: id, elementId };
|
|
2684
|
+
};
|
|
2685
|
+
var contextEntry = (name, value, type = "string") => ({
|
|
2686
|
+
name,
|
|
2687
|
+
value,
|
|
2688
|
+
type
|
|
2689
|
+
});
|
|
2690
|
+
var httpRequestData = (http, connector, outputs, context) => {
|
|
2691
|
+
const { where, unresolved, elementId } = context;
|
|
2692
|
+
const expand = (value) => value.startsWith("=") ? expandXrefs(value, {
|
|
2693
|
+
outputs: context.outputs,
|
|
2694
|
+
where,
|
|
2695
|
+
unresolved
|
|
2696
|
+
}) : value;
|
|
2697
|
+
const expandEntries = (object) => Object.fromEntries(Object.entries(object).map(([key, value]) => [
|
|
2698
|
+
key,
|
|
2699
|
+
typeof value === "string" ? expand(value) : value
|
|
2700
|
+
]));
|
|
2701
|
+
const request = http ?? {};
|
|
2702
|
+
const stated = (request.method ?? "").toUpperCase();
|
|
2703
|
+
const method = HTTP_METHODS.has(stated) ? stated : "";
|
|
2704
|
+
if (stated === "") {
|
|
2705
|
+
unresolved.push({
|
|
2706
|
+
kind: "connector-context",
|
|
2707
|
+
where,
|
|
2708
|
+
detail: "this `http-request` task states no `**Method:**`, so the request has none and the task cannot run until one is set"
|
|
2709
|
+
});
|
|
2710
|
+
} else if (method === "") {
|
|
2711
|
+
unresolved.push({
|
|
2712
|
+
kind: "connector-context",
|
|
2713
|
+
where,
|
|
2714
|
+
detail: `this \`http-request\` task's \`**Method:**\` is "${String(request.method)}", which is not one the activity offers (${[...HTTP_METHODS].join(", ")}), so the request has none and the task cannot run until one is set`
|
|
2715
|
+
});
|
|
2716
|
+
}
|
|
2717
|
+
const targetConnector = typeof connector?.connectorKey === "string" && connector.connectorKey !== "" ? connector.connectorKey : undefined;
|
|
2718
|
+
const connectionId = typeof connector?.connectionId === "string" ? connector.connectionId : undefined;
|
|
2719
|
+
const connectorMode = targetConnector !== undefined && connectionId !== undefined;
|
|
2720
|
+
if (targetConnector !== undefined && !connectorMode && (request.url ?? "") === "") {
|
|
2721
|
+
unresolved.push({
|
|
2722
|
+
kind: "connector-context",
|
|
2723
|
+
where,
|
|
2724
|
+
detail: "this `http-request` task runs as a manual request until a connection is set, and states no `**URL:**` to call"
|
|
2725
|
+
});
|
|
2726
|
+
}
|
|
2727
|
+
if (targetConnector === undefined && (request.url ?? "") === "") {
|
|
2728
|
+
unresolved.push({
|
|
2729
|
+
kind: "connector-context",
|
|
2730
|
+
where,
|
|
2731
|
+
detail: "this `http-request` task names no connector, so it calls `**URL:**` directly, and it states none"
|
|
2732
|
+
});
|
|
2733
|
+
}
|
|
2734
|
+
const body = {
|
|
2735
|
+
authentication: connectorMode ? "connector" : "manual",
|
|
2736
|
+
...connectorMode && { targetConnector },
|
|
2737
|
+
...method !== "" && { method }
|
|
2738
|
+
};
|
|
2739
|
+
if (request.url !== undefined && request.url !== "") {
|
|
2740
|
+
if (connectorMode)
|
|
2741
|
+
body.path = expand(request.url);
|
|
2742
|
+
else
|
|
2743
|
+
body.url = expand(request.url);
|
|
2744
|
+
}
|
|
2745
|
+
for (const [key, cell] of [
|
|
2746
|
+
["headers", request.headers],
|
|
2747
|
+
["query", request.query]
|
|
2748
|
+
]) {
|
|
2749
|
+
const read = objectCell(cell);
|
|
2750
|
+
if (read.value !== undefined)
|
|
2751
|
+
body[key] = expandEntries(read.value);
|
|
2752
|
+
if (read.error !== undefined) {
|
|
2753
|
+
unresolved.push({
|
|
2754
|
+
kind: "connector-context",
|
|
2755
|
+
where,
|
|
2756
|
+
detail: `this \`http-request\` task's \`**${key === "headers" ? "Headers" : "Query"}:**\` ${read.error}, so it is left out; write it as a JSON object such as \`{"Name": "value"}\``
|
|
2757
|
+
});
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
if (request.body !== undefined && request.body !== "") {
|
|
2761
|
+
const read = bodyValue(request.body);
|
|
2762
|
+
if (method !== "" && !BODY_METHODS.has(method)) {
|
|
2763
|
+
unresolved.push({
|
|
2764
|
+
kind: "connector-context",
|
|
2765
|
+
where,
|
|
2766
|
+
detail: `this \`http-request\` task's method is ${method}, which carries no body, so its \`**Body:**\` is left out; use POST, PUT or PATCH to send one`
|
|
2767
|
+
});
|
|
2768
|
+
} else if (read.value !== undefined) {
|
|
2769
|
+
if (!connectorMode)
|
|
2770
|
+
body.requestBodyType = "raw";
|
|
2771
|
+
body.body = expand(read.value);
|
|
2772
|
+
} else {
|
|
2773
|
+
unresolved.push({
|
|
2774
|
+
kind: "connector-context",
|
|
2775
|
+
where,
|
|
2776
|
+
detail: `this \`http-request\` task's \`**Body:**\` ${String(read.error)}, so it is left out; write a JSON literal such as \`{"name": "value"}\`, or an \`=\` expression`
|
|
2777
|
+
});
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
let connectionValue;
|
|
2781
|
+
let resourceKey = null;
|
|
2782
|
+
let folderKey = null;
|
|
2783
|
+
const taskBindings = [];
|
|
2784
|
+
if (connectorMode && connectionId !== undefined) {
|
|
2785
|
+
const pair = connectionBindings(connectionId, context);
|
|
2786
|
+
connectionValue = `${BINDING_REFERENCE_PREFIX}${String(pair.connection.id)}`;
|
|
2787
|
+
resourceKey = connectionId;
|
|
2788
|
+
folderKey = `${BINDING_REFERENCE_PREFIX}${String(pair.folder.id)}`;
|
|
2789
|
+
taskBindings.push(pair.connection, pair.folder);
|
|
2790
|
+
unresolved.push({
|
|
2791
|
+
kind: "connector-context",
|
|
2792
|
+
where,
|
|
2793
|
+
detail: `the folder binding \`${String(pair.folder.id)}\` needs the connection's folder GUID as its \`default\`; the document names the connection and no folder key, so \`sdd resolve\` or a person supplies it`
|
|
2794
|
+
});
|
|
2795
|
+
} else {
|
|
2796
|
+
if (targetConnector !== undefined) {
|
|
2797
|
+
unresolved.push({
|
|
2798
|
+
kind: "connector-connection",
|
|
2799
|
+
where,
|
|
2800
|
+
detail: `this \`http-request\` task reuses \`${String(targetConnector)}\`'s authentication and names no \`**Connection ID:**\`, so nothing is bound and it runs as a manual request until a connection is set`
|
|
2801
|
+
});
|
|
2802
|
+
}
|
|
2803
|
+
connectionValue = `${BINDING_REFERENCE_PREFIX}${implicitBinding(context.bindings)}`;
|
|
2804
|
+
}
|
|
2805
|
+
return {
|
|
2806
|
+
serviceType: "Intsvc.UnifiedHttpRequest",
|
|
2807
|
+
inputs: [
|
|
2808
|
+
input("pathParameters", elementId),
|
|
2809
|
+
input("queryParameters", elementId),
|
|
2810
|
+
{ ...input("body", elementId), body }
|
|
2811
|
+
],
|
|
2812
|
+
outputs,
|
|
2813
|
+
context: [
|
|
2814
|
+
contextEntry("connectorKey", HTTP_CONNECTOR_KEY),
|
|
2815
|
+
contextEntry("connection", connectionValue),
|
|
2816
|
+
contextEntry("resourceKey", resourceKey),
|
|
2817
|
+
contextEntry("folderKey", folderKey),
|
|
2818
|
+
contextEntry("method", "POST"),
|
|
2819
|
+
contextEntry("path", "/http-request"),
|
|
2820
|
+
contextEntry("objectName", "http-request"),
|
|
2821
|
+
{ name: "metadata", type: "json", body: structuredClone(http_request_metadata_default) },
|
|
2822
|
+
contextEntry("activityConfigurationVersion", "v2")
|
|
2823
|
+
],
|
|
2824
|
+
bindings: taskBindings
|
|
2825
|
+
};
|
|
2826
|
+
};
|
|
2827
|
+
|
|
2828
|
+
// src/services/sdd-convert/script.ts
|
|
2829
|
+
var scriptOutputs = (elementId, taken, reserved = new Set) => {
|
|
2830
|
+
const mint = (base) => {
|
|
2831
|
+
const id = dedupedId(base, new Set([...taken, ...reserved]));
|
|
2832
|
+
taken.add(id);
|
|
2833
|
+
return id;
|
|
2834
|
+
};
|
|
2835
|
+
const response = mint("scriptResponse");
|
|
2836
|
+
const error = mint("error");
|
|
2837
|
+
return [
|
|
2838
|
+
{
|
|
2839
|
+
name: "scriptResponse",
|
|
2840
|
+
type: "jsonSchema",
|
|
2841
|
+
source: "=result.response",
|
|
2842
|
+
id: response,
|
|
2843
|
+
var: response,
|
|
2844
|
+
value: response,
|
|
2845
|
+
elementId
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
name: "Error",
|
|
2849
|
+
type: "jsonSchema",
|
|
2850
|
+
source: "=Error",
|
|
2851
|
+
id: error,
|
|
2852
|
+
var: error,
|
|
2853
|
+
value: error,
|
|
2854
|
+
elementId
|
|
2855
|
+
}
|
|
2856
|
+
];
|
|
2857
|
+
};
|
|
2858
|
+
var SYSTEM_INPUTS = [
|
|
2859
|
+
{ name: "vars", type: "object", value: "=vars" },
|
|
2860
|
+
{ name: "metadata", type: "object", value: "=metadata" }
|
|
2861
|
+
];
|
|
2862
|
+
var scriptData = (script, authored, outputs, context) => {
|
|
2863
|
+
const { where, unresolved } = context;
|
|
2864
|
+
if (script === undefined) {
|
|
2865
|
+
unresolved.push({
|
|
2866
|
+
kind: "task-script",
|
|
2867
|
+
where: `${where}.data.script`,
|
|
2868
|
+
detail: "this `script` task's block has no ```js fenced code block, so it has no body to run; write the function body there, reading case state through `vars` and ending in `return { … }`"
|
|
2869
|
+
});
|
|
2870
|
+
}
|
|
2871
|
+
for (const row of authored) {
|
|
2872
|
+
unresolved.push({
|
|
2873
|
+
kind: "task-io-table",
|
|
2874
|
+
where,
|
|
2875
|
+
detail: `a \`script\` task reads case state through \`vars\`, not through inputs, so the Inputs row "${String(row.name ?? "")}" is not written; read \`vars.<variable>\` in the script instead`
|
|
2876
|
+
});
|
|
2877
|
+
}
|
|
2878
|
+
return {
|
|
2879
|
+
...script !== undefined && {
|
|
2880
|
+
script: script.startsWith("=") ? script : `=${script}`
|
|
2881
|
+
},
|
|
2882
|
+
inputs: SYSTEM_INPUTS.map((input) => ({ ...input })),
|
|
2883
|
+
outputs
|
|
2884
|
+
};
|
|
2885
|
+
};
|
|
2886
|
+
|
|
2887
|
+
// src/services/sdd-convert/fixed-outputs.ts
|
|
2888
|
+
var fixedOutputsFor = (taskType, elementId, taken, reserved) => {
|
|
2889
|
+
if (taskType === "http-request")
|
|
2890
|
+
return httpRequestOutputs(elementId, taken, reserved);
|
|
2891
|
+
if (taskType === "document-extraction")
|
|
2892
|
+
return documentExtractionOutputs(elementId, taken, reserved);
|
|
2893
|
+
if (taskType === "script")
|
|
2894
|
+
return scriptOutputs(elementId, taken, reserved);
|
|
2895
|
+
return [];
|
|
2896
|
+
};
|
|
2897
|
+
var fixedOutputTypes = (taskType) => new Map(fixedOutputsFor(taskType, "", new Set, new Set).flatMap((row) => typeof row.source === "string" && typeof row.type === "string" ? [[row.source, row.type]] : []));
|
|
2200
2898
|
|
|
2201
2899
|
// src/services/strict-sdd-audit/task-inputs.ts
|
|
2202
2900
|
var PAYLOAD_SLOTS = ["body", "queryParameters", "pathParameters"];
|
|
@@ -2274,27 +2972,37 @@ var outputTypeFindings = (task, found, path, label) => {
|
|
|
2274
2972
|
return [];
|
|
2275
2973
|
}
|
|
2276
2974
|
const outputs = asArray(found.data.outputs).map(asRecord).filter((o) => o !== undefined);
|
|
2975
|
+
const fixedTypes = fixedOutputTypes(found.type);
|
|
2277
2976
|
const declared = [
|
|
2278
|
-
...task.extractRows.map((row) =>
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2977
|
+
...task.extractRows.map((row) => {
|
|
2978
|
+
const source = outputSourceFor(found.type, row.field);
|
|
2979
|
+
return {
|
|
2980
|
+
row: `\`${row.field} -> ${row.variable}\``,
|
|
2981
|
+
type: row.type,
|
|
2982
|
+
fixed: fixedTypes.get(source),
|
|
2983
|
+
output: outputs.find((o) => o.custom !== true && o.source === source && o.var === row.variable)
|
|
2984
|
+
};
|
|
2985
|
+
}),
|
|
2283
2986
|
...task.customRows.map((row) => ({
|
|
2284
2987
|
row: `\`${row.variable} = ${row.expression}\``,
|
|
2285
2988
|
type: row.type,
|
|
2989
|
+
fixed: undefined,
|
|
2286
2990
|
output: outputs.find((o) => o.custom === true && o.var === row.variable)
|
|
2287
2991
|
}))
|
|
2288
2992
|
];
|
|
2289
2993
|
const findings = [];
|
|
2290
|
-
for (const { row, type, output } of declared) {
|
|
2291
|
-
const
|
|
2994
|
+
for (const { row, type, fixed, output } of declared) {
|
|
2995
|
+
const cell = outputTypeCell(type).type;
|
|
2996
|
+
const wanted = fixed ?? cell;
|
|
2292
2997
|
if (wanted === undefined || output === undefined)
|
|
2293
2998
|
continue;
|
|
2999
|
+
if (fixed !== undefined && cell !== undefined && !sameOutputKind(cell, fixed)) {
|
|
3000
|
+
findings.push(warning("STRICT_SDD_FIXED_OUTPUT_ROW_TYPE", `${path}.data.outputs[${String(output.name ?? output.var)}].type`, `${label}: the SDD row ${row} types this output "${String(type)}", but the "${found.type}" activity's own output is "${fixed}", so the variable it binds receives a "${fixed}" value. Fix the row: set its Type to "${fixed}" and give the variable a matching type, or bind a field of the output instead.`));
|
|
3001
|
+
}
|
|
2294
3002
|
const actual = typeof output.type === "string" ? output.type : "";
|
|
2295
3003
|
if (actual === "" || actual === wanted)
|
|
2296
3004
|
continue;
|
|
2297
|
-
findings.push(error("STRICT_SDD_OUTPUT_TYPE_MISMATCH", `${path}.data.outputs[${String(output.name ?? output.var)}].type`, `${label}: the SDD row ${row} types this output "${type}", so the output's \`type\` must be "${wanted}"; the caseplan has "${actual}". The row's Type is the resource's output-schema type, which is what Studio Web and \`uip maestro case splice --described\` write.`));
|
|
3005
|
+
findings.push(error("STRICT_SDD_OUTPUT_TYPE_MISMATCH", `${path}.data.outputs[${String(output.name ?? output.var)}].type`, fixed === undefined ? `${label}: the SDD row ${row} types this output "${type}", so the output's \`type\` must be "${wanted}"; the caseplan has "${actual}". The row's Type is the resource's output-schema type, which is what Studio Web and \`uip maestro case splice --described\` write.` : `${label}: the SDD row ${row} names the "${found.type}" activity's own output, which the activity types "${wanted}", so the output's \`type\` must be "${wanted}"; the caseplan has "${actual}". Set it to "${wanted}", as \`uip maestro case sdd convert\` and Studio Web write it.`));
|
|
2298
3006
|
}
|
|
2299
3007
|
return findings;
|
|
2300
3008
|
};
|
|
@@ -2556,7 +3264,7 @@ var extractionFields = (block) => {
|
|
|
2556
3264
|
};
|
|
2557
3265
|
|
|
2558
3266
|
// src/services/strict-sdd-audit/http-request-detail.ts
|
|
2559
|
-
var
|
|
3267
|
+
var HTTP_METHODS2 = new Set([
|
|
2560
3268
|
"GET",
|
|
2561
3269
|
"POST",
|
|
2562
3270
|
"PUT",
|
|
@@ -2618,6 +3326,44 @@ var resourceReference = (block) => {
|
|
|
2618
3326
|
};
|
|
2619
3327
|
};
|
|
2620
3328
|
|
|
3329
|
+
// src/services/strict-sdd-audit/script-detail.ts
|
|
3330
|
+
var SCRIPT_LANGUAGES = new Set(["js", "javascript"]);
|
|
3331
|
+
var readScript = (block) => {
|
|
3332
|
+
const lines = block.split(`
|
|
3333
|
+
`);
|
|
3334
|
+
for (let at = 0;at < lines.length; at += 1) {
|
|
3335
|
+
const open = fenceOf(lines[at]);
|
|
3336
|
+
if (open === undefined)
|
|
3337
|
+
continue;
|
|
3338
|
+
const info = lines[at].trim().slice(open.run).trim().toLowerCase();
|
|
3339
|
+
const indent = /^ */.exec(lines[at])?.[0].length ?? 0;
|
|
3340
|
+
const body = [];
|
|
3341
|
+
let end = at + 1;
|
|
3342
|
+
for (;end < lines.length; end += 1) {
|
|
3343
|
+
const close = fenceOf(lines[end]);
|
|
3344
|
+
if (close?.bare && close.ch === open.ch && close.run >= open.run)
|
|
3345
|
+
break;
|
|
3346
|
+
const line = lines[end];
|
|
3347
|
+
const lead = /^ */.exec(line)?.[0].length ?? 0;
|
|
3348
|
+
body.push(line.slice(Math.min(lead, indent)));
|
|
3349
|
+
}
|
|
3350
|
+
if (SCRIPT_LANGUAGES.has(info.split(/\s+/)[0] ?? "")) {
|
|
3351
|
+
while (body.length > 0 && body[0].trim() === "")
|
|
3352
|
+
body.shift();
|
|
3353
|
+
while (body.length > 0 && body[body.length - 1].trim() === "")
|
|
3354
|
+
body.pop();
|
|
3355
|
+
return body.length === 0 ? undefined : body.join(`
|
|
3356
|
+
`);
|
|
3357
|
+
}
|
|
3358
|
+
at = end;
|
|
3359
|
+
}
|
|
3360
|
+
return;
|
|
3361
|
+
};
|
|
3362
|
+
var scriptFields = (block) => {
|
|
3363
|
+
const script = readScript(block);
|
|
3364
|
+
return script === undefined ? {} : { script };
|
|
3365
|
+
};
|
|
3366
|
+
|
|
2621
3367
|
// src/services/strict-sdd-audit/task-detail-rows.ts
|
|
2622
3368
|
var entryConditionBlocks = (section) => {
|
|
2623
3369
|
const block = section.body;
|
|
@@ -2808,6 +3554,22 @@ var addConditionTable = (rows, conditions, block) => {
|
|
|
2808
3554
|
conditions: [...conditions, ...fresh]
|
|
2809
3555
|
};
|
|
2810
3556
|
};
|
|
3557
|
+
var entryRuleOnLabelLine = (section) => {
|
|
3558
|
+
let offset = 0;
|
|
3559
|
+
for (const line of section.body.split(`
|
|
3560
|
+
`)) {
|
|
3561
|
+
const text = line.trim();
|
|
3562
|
+
if (text.startsWith("**") && norm(text.replaceAll("*", "")).startsWith(norm("Entry Condition"))) {
|
|
3563
|
+
const close = text.indexOf("**", 2);
|
|
3564
|
+
const rest = close === -1 ? "" : text.slice(close + 2).replace(/^:/, "");
|
|
3565
|
+
if (rest.trim() !== "")
|
|
3566
|
+
return { text: rest.trim(), offset };
|
|
3567
|
+
return;
|
|
3568
|
+
}
|
|
3569
|
+
offset += line.length + 1;
|
|
3570
|
+
}
|
|
3571
|
+
return;
|
|
3572
|
+
};
|
|
2811
3573
|
|
|
2812
3574
|
// src/services/strict-sdd-audit/task-detail.ts
|
|
2813
3575
|
var detailOutputRows = (block) => {
|
|
@@ -2961,7 +3723,7 @@ var readConnectorTail = (text, into) => {
|
|
|
2961
3723
|
const words = piece.split(/\s+/);
|
|
2962
3724
|
const head = words[0];
|
|
2963
3725
|
const rest = words.slice(1).join(" ").trim();
|
|
2964
|
-
if (
|
|
3726
|
+
if (HTTP_METHODS2.has(head.toUpperCase())) {
|
|
2965
3727
|
into.method = head.toUpperCase();
|
|
2966
3728
|
if (rest !== "")
|
|
2967
3729
|
into.path = rest;
|
|
@@ -3079,7 +3841,8 @@ var readTaskDetail = (section) => {
|
|
|
3079
3841
|
unreadTables: unreadIoTables(block),
|
|
3080
3842
|
...timerFields(block),
|
|
3081
3843
|
...httpFields(block),
|
|
3082
|
-
...extractionFields(block)
|
|
3844
|
+
...extractionFields(block),
|
|
3845
|
+
...scriptFields(block)
|
|
3083
3846
|
};
|
|
3084
3847
|
};
|
|
3085
3848
|
var TIMER_CONFIGURATION_TYPES = new Map([
|
|
@@ -3261,7 +4024,7 @@ var compareTask = (plan, task, found, stagePath, label, selectors, ledger, stage
|
|
|
3261
4024
|
if (isPlaceholder)
|
|
3262
4025
|
return issues;
|
|
3263
4026
|
issues.push(...recipientFindings(task, found, taskPath, label));
|
|
3264
|
-
issues.push(...bindingFindings(plan, found, taskPath, label, namedValue(task.folder) || undefined), ...literalFindings(task, found, plan.bindings, taskPath, label), ...boundInputFindings(task, found, taskPath, label), ...timerFindings(task, found, taskPath, label), ...wiringFindings(task, found, taskPath, label), ...producerFindings(task, found, plan, taskPath, label), ...emptyInputFindings(task, found, taskPath, label), ...expressionShapeFindings(task, found, plan, taskPath, label), ...outputRowFindings(task, found, taskPath, label), ...extractFindings(task, found, taskPath, label), ...customOutputFindings(task, found, taskPath, label), ...outputTypeFindings(task, found, taskPath, label));
|
|
4027
|
+
issues.push(...bindingFindings(plan, found, taskPath, label, namedValue(task.folder) || undefined, namedValue(task.resourceName) || undefined), ...literalFindings(task, found, plan.bindings, taskPath, label), ...boundInputFindings(task, found, taskPath, label), ...timerFindings(task, found, taskPath, label), ...wiringFindings(task, found, taskPath, label), ...producerFindings(task, found, plan, taskPath, label), ...emptyInputFindings(task, found, taskPath, label), ...expressionShapeFindings(task, found, plan, taskPath, label), ...outputRowFindings(task, found, taskPath, label), ...extractFindings(task, found, taskPath, label), ...customOutputFindings(task, found, taskPath, label), ...outputTypeFindings(task, found, taskPath, label));
|
|
3265
4028
|
return issues;
|
|
3266
4029
|
};
|
|
3267
4030
|
|
|
@@ -3668,7 +4431,7 @@ var conditionalSlaRows = (block) => {
|
|
|
3668
4431
|
}
|
|
3669
4432
|
return found;
|
|
3670
4433
|
};
|
|
3671
|
-
var parseStage = (name, section, notes) => {
|
|
4434
|
+
var parseStage = (name, section, notes, lineOf) => {
|
|
3672
4435
|
const body = section.body;
|
|
3673
4436
|
const stage = {
|
|
3674
4437
|
conditionalSlas: [],
|
|
@@ -3681,15 +4444,16 @@ var parseStage = (name, section, notes) => {
|
|
|
3681
4444
|
hasSla: false,
|
|
3682
4445
|
slaEscalations: { atRisk: false, breach: false }
|
|
3683
4446
|
};
|
|
3684
|
-
const
|
|
4447
|
+
const own = ownBodyOf(section);
|
|
4448
|
+
const kind = field(own, "Stage Kind");
|
|
3685
4449
|
if (kind !== undefined && !isBlank(kind)) {
|
|
3686
4450
|
stage.kind = stripTicks(kind).trim().toLowerCase();
|
|
3687
4451
|
}
|
|
3688
|
-
const description = field(
|
|
4452
|
+
const description = field(own, "Description");
|
|
3689
4453
|
if (description !== undefined && !isBlank(description)) {
|
|
3690
4454
|
stage.description = description.trim();
|
|
3691
4455
|
}
|
|
3692
|
-
const requiredCell = field(
|
|
4456
|
+
const requiredCell = field(own, "Required for Case Completion");
|
|
3693
4457
|
if (requiredCell !== undefined) {
|
|
3694
4458
|
const answer = yesNoCell(requiredCell);
|
|
3695
4459
|
if (answer !== undefined)
|
|
@@ -3699,15 +4463,16 @@ var parseStage = (name, section, notes) => {
|
|
|
3699
4463
|
const annotated = [];
|
|
3700
4464
|
const stageNotes = [];
|
|
3701
4465
|
const lookalikes = [];
|
|
4466
|
+
const misplaced = [];
|
|
3702
4467
|
const children = [];
|
|
3703
4468
|
const collect = (parent) => {
|
|
3704
4469
|
for (const child of parent.children) {
|
|
3705
|
-
children.push(child);
|
|
4470
|
+
children.push({ child, parent });
|
|
3706
4471
|
collect(child);
|
|
3707
4472
|
}
|
|
3708
4473
|
};
|
|
3709
4474
|
collect(section);
|
|
3710
|
-
for (const child of children) {
|
|
4475
|
+
for (const { child, parent } of children) {
|
|
3711
4476
|
const { title, body: block, level } = child;
|
|
3712
4477
|
if (level === 4) {
|
|
3713
4478
|
if (applyStageSection(stage, title, block, stageNotes))
|
|
@@ -3720,9 +4485,38 @@ var parseStage = (name, section, notes) => {
|
|
|
3720
4485
|
}
|
|
3721
4486
|
if (level !== 5)
|
|
3722
4487
|
continue;
|
|
4488
|
+
if (headingIs(title, STAGE_CONDITIONAL_SLA_HEADINGS) && headingIs(parent.title, STAGE_SLA_HEADINGS)) {
|
|
4489
|
+
if (stage.conditionalSlas.length === 0) {
|
|
4490
|
+
stage.conditionalSlas = conditionalSlaRows(block);
|
|
4491
|
+
}
|
|
4492
|
+
continue;
|
|
4493
|
+
}
|
|
3723
4494
|
const detailName = readTaskHeading(title);
|
|
3724
|
-
if (detailName
|
|
4495
|
+
if (detailName === undefined) {
|
|
4496
|
+
const deeper = [
|
|
4497
|
+
[STAGE_ENTRY_HEADINGS, () => stage.entryRows === 0],
|
|
4498
|
+
[STAGE_EXIT_HEADINGS, () => stage.exitRows === 0],
|
|
4499
|
+
[
|
|
4500
|
+
STAGE_CONDITIONAL_SLA_HEADINGS,
|
|
4501
|
+
() => stage.conditionalSlas.length === 0
|
|
4502
|
+
],
|
|
4503
|
+
[STAGE_SLA_HEADINGS, () => !stage.hasSla],
|
|
4504
|
+
[STAGE_TASK_HEADINGS, () => stage.tasks.length === 0]
|
|
4505
|
+
];
|
|
4506
|
+
for (const [accepted, isEmpty] of deeper) {
|
|
4507
|
+
if (headingIs(title, accepted)) {
|
|
4508
|
+
misplaced.push([title, lineOf(child.start), isEmpty]);
|
|
4509
|
+
break;
|
|
4510
|
+
}
|
|
4511
|
+
}
|
|
4512
|
+
continue;
|
|
4513
|
+
}
|
|
4514
|
+
{
|
|
3725
4515
|
const detail = readTaskDetail(child);
|
|
4516
|
+
const inline = entryRuleOnLabelLine(child);
|
|
4517
|
+
if (inline !== undefined && detailEntryRows(child) === 0) {
|
|
4518
|
+
stageNotes.push(entryRuleOnLabelLineNote(detailName.trim(), inline.text, lineOf(child.contentStart + inline.offset)));
|
|
4519
|
+
}
|
|
3726
4520
|
const key = norm(detailName);
|
|
3727
4521
|
details.set(key, [
|
|
3728
4522
|
...details.get(key) ?? [],
|
|
@@ -3795,6 +4589,8 @@ var parseStage = (name, section, notes) => {
|
|
|
3795
4589
|
task.http = detail.http;
|
|
3796
4590
|
if (detail.extraction !== undefined && String(task.type ?? "").trim().toLowerCase() === "document-extraction")
|
|
3797
4591
|
task.extraction = detail.extraction;
|
|
4592
|
+
if (detail.script !== undefined && String(task.type ?? "").trim().toLowerCase() === "script")
|
|
4593
|
+
task.script = detail.script;
|
|
3798
4594
|
}
|
|
3799
4595
|
const empty = {
|
|
3800
4596
|
conditions: !(stage.entryRows && stage.exitRows),
|
|
@@ -3805,6 +4601,10 @@ var parseStage = (name, section, notes) => {
|
|
|
3805
4601
|
if (empty[topic])
|
|
3806
4602
|
stageNotes.push(unrecognizedHeadingNote(title, 4));
|
|
3807
4603
|
}
|
|
4604
|
+
for (const [title, line, isEmpty] of misplaced) {
|
|
4605
|
+
if (isEmpty())
|
|
4606
|
+
stageNotes.push(misplacedHeadingNote(title, 5, line));
|
|
4607
|
+
}
|
|
3808
4608
|
if (details.size > 0 && stage.tasks.length === 0 && stageNotes.length === 0) {
|
|
3809
4609
|
stageNotes.push(`${details.size} \`Task <n>.<m>:\` detail section(s) but no task ` + "row parsed — the `#### Tasks` table is missing or has no Task " + "Name column, so none of its tasks are audited");
|
|
3810
4610
|
}
|
|
@@ -3813,6 +4613,39 @@ var parseStage = (name, section, notes) => {
|
|
|
3813
4613
|
};
|
|
3814
4614
|
|
|
3815
4615
|
// src/services/strict-sdd-audit/sdd-parse.ts
|
|
4616
|
+
var readUnreadVariableTables = (sdd, tables, declared = new Set) => {
|
|
4617
|
+
const ignored = [];
|
|
4618
|
+
let unnamed = 0;
|
|
4619
|
+
for (const text of tables) {
|
|
4620
|
+
const next = firstTable(text);
|
|
4621
|
+
const at = columnIndex(next.header, "Name", "Variable", "Variable Name");
|
|
4622
|
+
if (at === undefined)
|
|
4623
|
+
continue;
|
|
4624
|
+
const typeAt = columnIndex(next.header, "Type");
|
|
4625
|
+
for (const row of next.rows) {
|
|
4626
|
+
const name = stripTicks(cellAt(row, at).trim());
|
|
4627
|
+
if (name === "" || isBlank(name)) {
|
|
4628
|
+
const filled = (cell) => {
|
|
4629
|
+
const text = stripTicks(cell.trim());
|
|
4630
|
+
return text !== "" && !isBlank(text);
|
|
4631
|
+
};
|
|
4632
|
+
if (row.some(filled))
|
|
4633
|
+
unnamed++;
|
|
4634
|
+
continue;
|
|
4635
|
+
}
|
|
4636
|
+
if (declared.has(norm(name)))
|
|
4637
|
+
continue;
|
|
4638
|
+
ignored.push(name);
|
|
4639
|
+
const type = stripTicks(cellAt(row, typeAt).trim()).trim();
|
|
4640
|
+
if (type !== "" && !isBlank(type)) {
|
|
4641
|
+
sdd.ignoredVariableTypes.set(norm(name), type);
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
}
|
|
4645
|
+
sdd.ignoredVariableRows.push(...ignored);
|
|
4646
|
+
sdd.unnamedVariableRows += unnamed;
|
|
4647
|
+
return { ignored, unnamed };
|
|
4648
|
+
};
|
|
3816
4649
|
var applyCaseSection = (sdd, title, body, headingLine, declaredNames, own = body) => {
|
|
3817
4650
|
if (headingIs(title, CASE_EXIT_HEADINGS)) {
|
|
3818
4651
|
const merged = addConditionTable(sdd.caseExitRows, sdd.caseExitConditions, body);
|
|
@@ -3916,7 +4749,10 @@ var applyCaseSection = (sdd, title, body, headingLine, declaredNames, own = body
|
|
|
3916
4749
|
readBusinessEvents(sdd, title, body);
|
|
3917
4750
|
} else if (headingIs(title, CASE_VARIABLE_HEADINGS)) {
|
|
3918
4751
|
sdd.sawVariableSection = true;
|
|
3919
|
-
const
|
|
4752
|
+
const [first, ...later] = pipeTablesAt(body);
|
|
4753
|
+
const table = firstTable(first?.text ?? "");
|
|
4754
|
+
const { header, rows } = table;
|
|
4755
|
+
const rowLines = table.rowLines.map((at) => at + (first?.line ?? 0));
|
|
3920
4756
|
const wanted = ["Name", "Variable", "Variable Name"];
|
|
3921
4757
|
const nameAt = columnIndex(header, ...wanted);
|
|
3922
4758
|
const categoryAt = columnIndex(header, "Category");
|
|
@@ -3961,6 +4797,10 @@ var applyCaseSection = (sdd, title, body, headingLine, declaredNames, own = body
|
|
|
3961
4797
|
}
|
|
3962
4798
|
}
|
|
3963
4799
|
}
|
|
4800
|
+
const { ignored, unnamed } = readUnreadVariableTables(sdd, later.map(({ text }) => text));
|
|
4801
|
+
if (ignored.length + unnamed > 0) {
|
|
4802
|
+
sdd.parseNotes.push(laterVariableTablesNote(title, ignored, unnamed));
|
|
4803
|
+
}
|
|
3964
4804
|
} else {
|
|
3965
4805
|
return false;
|
|
3966
4806
|
}
|
|
@@ -4058,6 +4898,9 @@ var parseSdd = (text) => {
|
|
|
4058
4898
|
triggerRows: [],
|
|
4059
4899
|
variables: [],
|
|
4060
4900
|
sawVariableSection: false,
|
|
4901
|
+
ignoredVariableRows: [],
|
|
4902
|
+
unnamedVariableRows: 0,
|
|
4903
|
+
ignoredVariableTypes: new Map,
|
|
4061
4904
|
variableCategories: new Map,
|
|
4062
4905
|
variableSourceTriggers: new Map,
|
|
4063
4906
|
variableDefaults: new Map,
|
|
@@ -4077,6 +4920,7 @@ var parseSdd = (text) => {
|
|
|
4077
4920
|
parseNotes: []
|
|
4078
4921
|
};
|
|
4079
4922
|
const lookalikes = [];
|
|
4923
|
+
const variableLookalikes = [];
|
|
4080
4924
|
const declaredNames = [];
|
|
4081
4925
|
let sawCanvasNotes = false;
|
|
4082
4926
|
for (const section of document.allSections) {
|
|
@@ -4092,9 +4936,12 @@ var parseSdd = (text) => {
|
|
|
4092
4936
|
continue;
|
|
4093
4937
|
const stageName = readStageHeading(title);
|
|
4094
4938
|
if (stageName !== undefined) {
|
|
4095
|
-
sdd.stages.push(parseStage(stageName, section, sdd.parseNotes));
|
|
4939
|
+
sdd.stages.push(parseStage(stageName, section, sdd.parseNotes, (offset) => lineAt(text, offset)));
|
|
4096
4940
|
continue;
|
|
4097
4941
|
}
|
|
4942
|
+
if (norm(title).endsWith("variables")) {
|
|
4943
|
+
variableLookalikes.push({ title, body });
|
|
4944
|
+
}
|
|
4098
4945
|
const topic = topicOf(title);
|
|
4099
4946
|
if (topic === "conditions" || topic === "variables" || topic === "triggers" || topic === "sla") {
|
|
4100
4947
|
lookalikes.push([title, topic]);
|
|
@@ -4111,6 +4958,15 @@ var parseSdd = (text) => {
|
|
|
4111
4958
|
if (empty[topic])
|
|
4112
4959
|
sdd.parseNotes.push(unrecognizedHeadingNote(title, 3));
|
|
4113
4960
|
}
|
|
4961
|
+
if (sdd.sawVariableSection) {
|
|
4962
|
+
const declared = new Set(sdd.variables.map(norm));
|
|
4963
|
+
for (const { title, body } of variableLookalikes) {
|
|
4964
|
+
const { ignored, unnamed } = readUnreadVariableTables(sdd, pipeTablesAt(body).map(({ text }) => text), declared);
|
|
4965
|
+
if (ignored.length + unnamed > 0) {
|
|
4966
|
+
sdd.parseNotes.push(variablesOutsideSectionNote(title, ignored, unnamed));
|
|
4967
|
+
}
|
|
4968
|
+
}
|
|
4969
|
+
}
|
|
4114
4970
|
const collisions = nameCollisions(declaredNames);
|
|
4115
4971
|
if (collisions.length > 0)
|
|
4116
4972
|
throw new SddNameCollisionError(collisions);
|
|
@@ -4148,6 +5004,15 @@ var parseSddToJson2 = (text) => {
|
|
|
4148
5004
|
triggers: sdd.triggers,
|
|
4149
5005
|
triggerRows: sdd.triggerRows,
|
|
4150
5006
|
variables: sdd.variables,
|
|
5007
|
+
...sdd.ignoredVariableRows.length > 0 && {
|
|
5008
|
+
ignoredVariableRows: sdd.ignoredVariableRows
|
|
5009
|
+
},
|
|
5010
|
+
...sdd.unnamedVariableRows > 0 && {
|
|
5011
|
+
unnamedVariableRows: sdd.unnamedVariableRows
|
|
5012
|
+
},
|
|
5013
|
+
...sdd.ignoredVariableTypes.size > 0 && {
|
|
5014
|
+
ignoredVariableTypes: Object.fromEntries(sdd.ignoredVariableTypes)
|
|
5015
|
+
},
|
|
4151
5016
|
resourceOutputs: Object.fromEntries(sdd.resourceOutputs),
|
|
4152
5017
|
variableCategories: Object.fromEntries(sdd.variableCategories),
|
|
4153
5018
|
variableSourceTriggers: Object.fromEntries(sdd.variableSourceTriggers),
|
|
@@ -4211,6 +5076,6 @@ var auditCaseplanAgainstSdd2 = (parsed, sddText, sddName, ledger) => {
|
|
|
4211
5076
|
issues.push(...slaReferenceFindings(sddText, sddName));
|
|
4212
5077
|
return issues;
|
|
4213
5078
|
};
|
|
4214
|
-
export { CASE_SLA_PROPERTY, VARIABLE_PLACEMENT2, DEFAULT_GROUP2, parseSddToJson2, auditCaseplanAgainstSdd2 };
|
|
5079
|
+
export { CASE_SLA_PROPERTY, VARIABLE_PLACEMENT2, DEFAULT_GROUP2, documentExtractionData, httpRequestData, scriptData, fixedOutputsFor, parseSddToJson2, auditCaseplanAgainstSdd2 };
|
|
4215
5080
|
|
|
4216
|
-
//# debugId=
|
|
5081
|
+
//# debugId=7AE895C57438FC1764756E2164756E21
|