@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,13 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
norm,
|
|
3
3
|
stripTicks
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-0nbcqyvp.js";
|
|
5
|
+
import {
|
|
6
|
+
parse
|
|
7
|
+
} from "./packager-tool-4seehsme.js";
|
|
5
8
|
import {
|
|
6
9
|
isExpressionNamespace
|
|
7
10
|
} from "./packager-tool-mk9fmzdy.js";
|
|
8
11
|
import {
|
|
9
12
|
outputSourceFor
|
|
10
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-bw4fsdq4.js";
|
|
11
14
|
import {
|
|
12
15
|
stageSpellings,
|
|
13
16
|
indexKey,
|
|
@@ -15,7 +18,91 @@ import {
|
|
|
15
18
|
dedupedId,
|
|
16
19
|
exactKey,
|
|
17
20
|
lookupOutput
|
|
18
|
-
} from "./packager-tool-
|
|
21
|
+
} from "./packager-tool-engs9gvj.js";
|
|
22
|
+
|
|
23
|
+
// src/services/sdd-convert/script-write-targets.ts
|
|
24
|
+
var isNode = (value) => typeof value === "object" && value !== null && typeof value.type === "string";
|
|
25
|
+
var writeTargetBases = (body) => {
|
|
26
|
+
let program;
|
|
27
|
+
try {
|
|
28
|
+
program = parse(body, {
|
|
29
|
+
ecmaVersion: "latest",
|
|
30
|
+
sourceType: "script",
|
|
31
|
+
allowReturnOutsideFunction: true
|
|
32
|
+
});
|
|
33
|
+
} catch {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const bases = new Set;
|
|
37
|
+
const target = (node) => {
|
|
38
|
+
if (!isNode(node))
|
|
39
|
+
return;
|
|
40
|
+
switch (node.type) {
|
|
41
|
+
case "MemberExpression": {
|
|
42
|
+
const base = varsBase(node);
|
|
43
|
+
if (base !== undefined)
|
|
44
|
+
bases.add(base);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
case "ArrayPattern":
|
|
48
|
+
for (const element of node.elements)
|
|
49
|
+
target(element);
|
|
50
|
+
return;
|
|
51
|
+
case "ObjectPattern":
|
|
52
|
+
for (const property of node.properties) {
|
|
53
|
+
target(property.type === "RestElement" ? property.argument : property.value);
|
|
54
|
+
}
|
|
55
|
+
return;
|
|
56
|
+
case "RestElement":
|
|
57
|
+
target(node.argument);
|
|
58
|
+
return;
|
|
59
|
+
case "AssignmentPattern":
|
|
60
|
+
target(node.left);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const walk = (node) => {
|
|
65
|
+
if (Array.isArray(node)) {
|
|
66
|
+
for (const child of node)
|
|
67
|
+
walk(child);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (!isNode(node))
|
|
71
|
+
return;
|
|
72
|
+
if (node.type === "AssignmentExpression")
|
|
73
|
+
target(node.left);
|
|
74
|
+
if (node.type === "UpdateExpression")
|
|
75
|
+
target(node.argument);
|
|
76
|
+
if (node.type === "ForInStatement" || node.type === "ForOfStatement") {
|
|
77
|
+
target(node.left);
|
|
78
|
+
}
|
|
79
|
+
for (const value of Object.values(node)) {
|
|
80
|
+
if (typeof value === "object")
|
|
81
|
+
walk(value);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
walk(program);
|
|
85
|
+
return bases;
|
|
86
|
+
};
|
|
87
|
+
var varsBase = (node) => {
|
|
88
|
+
let current = node;
|
|
89
|
+
while (isNode(current)) {
|
|
90
|
+
if (current.type === "MemberExpression") {
|
|
91
|
+
const object = current.object;
|
|
92
|
+
if (isNode(object) && object.type === "Identifier" && object.name === "vars") {
|
|
93
|
+
return current.start;
|
|
94
|
+
}
|
|
95
|
+
current = object;
|
|
96
|
+
} else if (current.type === "CallExpression") {
|
|
97
|
+
current = current.callee;
|
|
98
|
+
} else if (current.type === "TaggedTemplateExpression") {
|
|
99
|
+
current = current.tag;
|
|
100
|
+
} else {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return;
|
|
105
|
+
};
|
|
19
106
|
|
|
20
107
|
// src/services/sdd-convert/xrefs.ts
|
|
21
108
|
var QUOTED = String.raw`(?:'((?:\\.|[^'\\])*)'|"((?:\\.|[^"\\])*)"|` + "`((?:\\\\.|[^`\\\\])*)`" + String.raw`|\u201c([^\u201d]*)\u201d)`;
|
|
@@ -37,8 +124,33 @@ var deferredOutputs = new WeakMap;
|
|
|
37
124
|
var markDeferredOutputs = (index, ids) => {
|
|
38
125
|
deferredOutputs.set(index, ids);
|
|
39
126
|
};
|
|
40
|
-
var expandXrefs = (text, context) =>
|
|
41
|
-
const
|
|
127
|
+
var expandXrefs = (text, context) => {
|
|
128
|
+
const chained = [];
|
|
129
|
+
let shift = 0;
|
|
130
|
+
const expanded = text.replace(XREF_CALL, (whole, ...rest) => {
|
|
131
|
+
const offset = rest[rest.length - 2];
|
|
132
|
+
const written = expandOne(whole, rest, context);
|
|
133
|
+
if (written !== whole) {
|
|
134
|
+
if (DOTTED_READ.test(text.slice(offset + whole.length))) {
|
|
135
|
+
const start = offset + shift;
|
|
136
|
+
chained.push({ start, end: start + written.length });
|
|
137
|
+
}
|
|
138
|
+
shift += written.length - whole.length;
|
|
139
|
+
}
|
|
140
|
+
return written;
|
|
141
|
+
});
|
|
142
|
+
if (chained.length === 0)
|
|
143
|
+
return expanded;
|
|
144
|
+
const writes = context.script ? writeTargetBases(expanded) : undefined;
|
|
145
|
+
let out = expanded;
|
|
146
|
+
for (const { start, end } of chained.reverse()) {
|
|
147
|
+
if (writes?.has(start))
|
|
148
|
+
continue;
|
|
149
|
+
out = `${out.slice(0, end)}?${out.slice(end)}`;
|
|
150
|
+
}
|
|
151
|
+
return out;
|
|
152
|
+
};
|
|
153
|
+
var expandOne = (whole, rest, context) => {
|
|
42
154
|
const captured = rest.slice(0, -2);
|
|
43
155
|
const stage = argumentOf(captured.slice(0, 4));
|
|
44
156
|
const task = argumentOf(captured.slice(4, 8));
|
|
@@ -52,8 +164,7 @@ var expandXrefs = (text, context) => text.replace(XREF_CALL, (whole, ...rest) =>
|
|
|
52
164
|
detail: `\`${whole}\` reads an output of a task the resolved file defers, so \`vars.${found.id}\` resolves to nothing until that task is filled`
|
|
53
165
|
});
|
|
54
166
|
}
|
|
55
|
-
|
|
56
|
-
return DOTTED_READ.test(after) ? `vars.${found.id}?` : `vars.${found.id}`;
|
|
167
|
+
return `vars.${found.id}`;
|
|
57
168
|
}
|
|
58
169
|
context.unresolved.push({
|
|
59
170
|
kind: "producer-reference",
|
|
@@ -61,7 +172,7 @@ var expandXrefs = (text, context) => text.replace(XREF_CALL, (whole, ...rest) =>
|
|
|
61
172
|
detail: unresolvedXrefDetail(whole, found)
|
|
62
173
|
});
|
|
63
174
|
return whole;
|
|
64
|
-
}
|
|
175
|
+
};
|
|
65
176
|
var expandOutputMarkers = (output, context) => {
|
|
66
177
|
const expand = (value) => typeof value === "string" && value.includes("$xref") ? expandXrefs(value, context) : value;
|
|
67
178
|
const value = expand(output.value);
|
|
@@ -69,79 +180,6 @@ var expandOutputMarkers = (output, context) => {
|
|
|
69
180
|
return value === output.value && source === output.source ? output : { ...output, value, source };
|
|
70
181
|
};
|
|
71
182
|
|
|
72
|
-
// src/services/sdd-condition-cell.ts
|
|
73
|
-
var STAGE_SELECTOR_RULES = new Set([
|
|
74
|
-
"selected-stage-completed",
|
|
75
|
-
"selected-stage-exited"
|
|
76
|
-
]);
|
|
77
|
-
var TASK_SELECTOR_RULES = new Set(["selected-tasks-completed"]);
|
|
78
|
-
var IF_PARTS = new Map([
|
|
79
|
-
["conditionexpression", "expression"],
|
|
80
|
-
["selected tasks", "tasks"],
|
|
81
|
-
["selected task", "tasks"],
|
|
82
|
-
["selected stage", "stage"],
|
|
83
|
-
["selected stages", "stage"]
|
|
84
|
-
]);
|
|
85
|
-
var splitIfParts = (text) => {
|
|
86
|
-
const pieces = [];
|
|
87
|
-
let current = "";
|
|
88
|
-
let quote;
|
|
89
|
-
for (let index = 0;index < text.length; index += 1) {
|
|
90
|
-
const char = text[index];
|
|
91
|
-
if (quote !== undefined) {
|
|
92
|
-
current += char;
|
|
93
|
-
if (char === "\\") {
|
|
94
|
-
current += text[index + 1] ?? "";
|
|
95
|
-
index += 1;
|
|
96
|
-
} else if (char === quote)
|
|
97
|
-
quote = undefined;
|
|
98
|
-
continue;
|
|
99
|
-
}
|
|
100
|
-
if (char === '"' || char === "'" || char === "`") {
|
|
101
|
-
quote = char;
|
|
102
|
-
current += char;
|
|
103
|
-
continue;
|
|
104
|
-
}
|
|
105
|
-
if (char !== ";") {
|
|
106
|
-
current += char;
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
pieces.push(current);
|
|
110
|
-
current = "";
|
|
111
|
-
}
|
|
112
|
-
pieces.push(current);
|
|
113
|
-
return pieces;
|
|
114
|
-
};
|
|
115
|
-
var parseIfCell = (cell) => {
|
|
116
|
-
const text = cell.trim();
|
|
117
|
-
const found = {
|
|
118
|
-
expression: ""
|
|
119
|
-
};
|
|
120
|
-
const parts = [];
|
|
121
|
-
let structured = false;
|
|
122
|
-
const partKey = (text2) => text2.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim();
|
|
123
|
-
for (const piece of splitIfParts(text)) {
|
|
124
|
-
const at = piece.indexOf(":");
|
|
125
|
-
const key = at === -1 ? "" : partKey(piece.slice(0, at));
|
|
126
|
-
const slot = IF_PARTS.get(key);
|
|
127
|
-
if (slot === undefined) {
|
|
128
|
-
parts.push(piece);
|
|
129
|
-
continue;
|
|
130
|
-
}
|
|
131
|
-
structured = true;
|
|
132
|
-
const value = piece.slice(at + 1).trim();
|
|
133
|
-
if (slot === "expression")
|
|
134
|
-
found.expression = value;
|
|
135
|
-
else if (slot === "tasks")
|
|
136
|
-
found.tasks = value;
|
|
137
|
-
else
|
|
138
|
-
found.stage = value;
|
|
139
|
-
}
|
|
140
|
-
if (!structured)
|
|
141
|
-
return { expression: text };
|
|
142
|
-
return found;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
183
|
// src/services/output-types.ts
|
|
146
184
|
var OUTPUT_TYPE_LITERALS = new Map([
|
|
147
185
|
["string", "string"],
|
|
@@ -172,6 +210,14 @@ var outputTypeCell = (cell) => {
|
|
|
172
210
|
return type === undefined ? { unmapped: text } : { type };
|
|
173
211
|
};
|
|
174
212
|
var OUTPUT_TYPE_NAMES = [...new Set(OUTPUT_TYPE_LITERALS.values())];
|
|
213
|
+
var outputKind = (literal) => {
|
|
214
|
+
if (literal === "object" || literal === "jsonSchema")
|
|
215
|
+
return "structured";
|
|
216
|
+
if (literal === "integer")
|
|
217
|
+
return "number";
|
|
218
|
+
return literal;
|
|
219
|
+
};
|
|
220
|
+
var sameOutputKind = (a, b) => a === "any" || b === "any" || outputKind(a) === outputKind(b);
|
|
175
221
|
|
|
176
222
|
// src/services/sdd-convert/io.ts
|
|
177
223
|
var taskMatcher = (model, taskName) => {
|
|
@@ -420,6 +466,79 @@ var inputsFor = (task, elementId, where, unresolved, outputs) => {
|
|
|
420
466
|
return [...ranked.values()].map((entry) => entry.input);
|
|
421
467
|
};
|
|
422
468
|
|
|
423
|
-
|
|
469
|
+
// src/services/sdd-condition-cell.ts
|
|
470
|
+
var STAGE_SELECTOR_RULES = new Set([
|
|
471
|
+
"selected-stage-completed",
|
|
472
|
+
"selected-stage-exited"
|
|
473
|
+
]);
|
|
474
|
+
var TASK_SELECTOR_RULES = new Set(["selected-tasks-completed"]);
|
|
475
|
+
var IF_PARTS = new Map([
|
|
476
|
+
["conditionexpression", "expression"],
|
|
477
|
+
["selected tasks", "tasks"],
|
|
478
|
+
["selected task", "tasks"],
|
|
479
|
+
["selected stage", "stage"],
|
|
480
|
+
["selected stages", "stage"]
|
|
481
|
+
]);
|
|
482
|
+
var splitIfParts = (text) => {
|
|
483
|
+
const pieces = [];
|
|
484
|
+
let current = "";
|
|
485
|
+
let quote;
|
|
486
|
+
for (let index = 0;index < text.length; index += 1) {
|
|
487
|
+
const char = text[index];
|
|
488
|
+
if (quote !== undefined) {
|
|
489
|
+
current += char;
|
|
490
|
+
if (char === "\\") {
|
|
491
|
+
current += text[index + 1] ?? "";
|
|
492
|
+
index += 1;
|
|
493
|
+
} else if (char === quote)
|
|
494
|
+
quote = undefined;
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
if (char === '"' || char === "'" || char === "`") {
|
|
498
|
+
quote = char;
|
|
499
|
+
current += char;
|
|
500
|
+
continue;
|
|
501
|
+
}
|
|
502
|
+
if (char !== ";") {
|
|
503
|
+
current += char;
|
|
504
|
+
continue;
|
|
505
|
+
}
|
|
506
|
+
pieces.push(current);
|
|
507
|
+
current = "";
|
|
508
|
+
}
|
|
509
|
+
pieces.push(current);
|
|
510
|
+
return pieces;
|
|
511
|
+
};
|
|
512
|
+
var parseIfCell = (cell) => {
|
|
513
|
+
const text = cell.trim();
|
|
514
|
+
const found = {
|
|
515
|
+
expression: ""
|
|
516
|
+
};
|
|
517
|
+
const parts = [];
|
|
518
|
+
let structured = false;
|
|
519
|
+
const partKey = (text2) => text2.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim();
|
|
520
|
+
for (const piece of splitIfParts(text)) {
|
|
521
|
+
const at = piece.indexOf(":");
|
|
522
|
+
const key = at === -1 ? "" : partKey(piece.slice(0, at));
|
|
523
|
+
const slot = IF_PARTS.get(key);
|
|
524
|
+
if (slot === undefined) {
|
|
525
|
+
parts.push(piece);
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
structured = true;
|
|
529
|
+
const value = piece.slice(at + 1).trim();
|
|
530
|
+
if (slot === "expression")
|
|
531
|
+
found.expression = value;
|
|
532
|
+
else if (slot === "tasks")
|
|
533
|
+
found.tasks = value;
|
|
534
|
+
else
|
|
535
|
+
found.stage = value;
|
|
536
|
+
}
|
|
537
|
+
if (!structured)
|
|
538
|
+
return { expression: text };
|
|
539
|
+
return found;
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
export { outputTypeCell, sameOutputKind, markDeferredOutputs, expandXrefs, expandOutputMarkers, declaredOutputs, outputTypeFor, outputFor, variableOutputType, rowOutputType, unmappedOutputType, extractOutputFor, customOutputFor, canonicalExpression, unquoteLiteral, inputsFor, STAGE_SELECTOR_RULES, TASK_SELECTOR_RULES, parseIfCell };
|
|
424
543
|
|
|
425
|
-
//# debugId=
|
|
544
|
+
//# debugId=6D28464737546EE764756E2164756E21
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import"./packager-tool-h2ar8xf8.js";
|
|
2
1
|
import {
|
|
3
2
|
SERVICE_TYPE_BY_TASK
|
|
4
|
-
} from "./packager-tool-
|
|
5
|
-
import"./packager-tool-nfhtwa72.js";
|
|
3
|
+
} from "./packager-tool-jydreskq.js";
|
|
6
4
|
import {
|
|
7
5
|
SDD_TASK_TYPES,
|
|
8
6
|
UNAUTHORABLE_TASK_TYPES
|
|
9
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-fspmvh6g.js";
|
|
10
8
|
import {
|
|
11
9
|
byCodeUnit
|
|
12
10
|
} from "./packager-tool-1c30ttpm.js";
|
|
13
|
-
import"./packager-tool-68648y3j.js";
|
|
14
11
|
|
|
15
12
|
// src/services/task-type-declaration.ts
|
|
16
13
|
var DESCRIBE_LAYER = "uip maestro case tasks describe --type";
|
|
17
|
-
var
|
|
14
|
+
var NOT_TASK_TYPES2 = [
|
|
18
15
|
{
|
|
19
16
|
spelling: "connector-activity",
|
|
20
17
|
layer: DESCRIBE_LAYER,
|
|
@@ -32,15 +29,14 @@ var NOT_TASK_TYPES = [
|
|
|
32
29
|
}
|
|
33
30
|
];
|
|
34
31
|
var byName = (types) => [...types].sort(byCodeUnit).map((type) => ({ type }));
|
|
35
|
-
var
|
|
32
|
+
var taskTypeDeclaration2 = (versions) => ({
|
|
36
33
|
writeSchemaVersion: versions.writeSchemaVersion,
|
|
37
34
|
readSchemaVersion: versions.readSchemaVersion,
|
|
38
35
|
authorable: byName(SDD_TASK_TYPES),
|
|
39
36
|
studioWebOnly: byName(UNAUTHORABLE_TASK_TYPES),
|
|
40
|
-
notTaskTypes:
|
|
37
|
+
notTaskTypes: NOT_TASK_TYPES2.map((one) => ({ ...one }))
|
|
41
38
|
});
|
|
42
|
-
export {
|
|
43
|
-
taskTypeDeclaration
|
|
44
|
-
};
|
|
45
39
|
|
|
46
|
-
|
|
40
|
+
export { NOT_TASK_TYPES2, taskTypeDeclaration2 };
|
|
41
|
+
|
|
42
|
+
//# debugId=0BE1E8B2B86DAC4264756E2164756E21
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CONNECTOR_TASK_TYPES,
|
|
3
3
|
EXTERNAL_TASK_TYPES
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-jydreskq.js";
|
|
5
5
|
import {
|
|
6
6
|
NAME_BOUND_TASK_TYPES
|
|
7
7
|
} from "./packager-tool-nfhtwa72.js";
|
|
@@ -13,9 +13,10 @@ var SDD_TASK_TYPES = new Set([
|
|
|
13
13
|
...EXTERNAL_TASK_TYPES,
|
|
14
14
|
"wait-for-timer",
|
|
15
15
|
"http-request",
|
|
16
|
-
"document-extraction"
|
|
16
|
+
"document-extraction",
|
|
17
|
+
"script"
|
|
17
18
|
]);
|
|
18
|
-
var UNAUTHORABLE_TASK_TYPES = new Set
|
|
19
|
+
var UNAUTHORABLE_TASK_TYPES = new Set;
|
|
19
20
|
var RESOURCE_KINDS = new Map([
|
|
20
21
|
["agent", { resource: "process", subType: "Agent" }],
|
|
21
22
|
["process", { resource: "process", subType: "ProcessOrchestration" }],
|
|
@@ -86,4 +87,4 @@ var connectionPairFor = (connectionId, ordinal) => {
|
|
|
86
87
|
|
|
87
88
|
export { SDD_TASK_TYPES, UNAUTHORABLE_TASK_TYPES, bindingPairFor, connectionPairFor };
|
|
88
89
|
|
|
89
|
-
//# debugId=
|
|
90
|
+
//# debugId=A756A7B0A1D2E93E64756E2164756E21
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
// ../maestro-sdk/src/variable-tags/catalog-types.ts
|
|
2
|
+
var NUMBER_TYPES = new Set([
|
|
3
|
+
"number",
|
|
4
|
+
"numeric",
|
|
5
|
+
"integer",
|
|
6
|
+
"int",
|
|
7
|
+
"int32",
|
|
8
|
+
"int64",
|
|
9
|
+
"long",
|
|
10
|
+
"short",
|
|
11
|
+
"float",
|
|
12
|
+
"double",
|
|
13
|
+
"decimal"
|
|
14
|
+
]);
|
|
15
|
+
var BOOLEAN_TYPES = new Set(["boolean", "bool"]);
|
|
16
|
+
function extractedValueTypeFor(type) {
|
|
17
|
+
const normalized = type?.trim().toLowerCase() ?? "";
|
|
18
|
+
if (NUMBER_TYPES.has(normalized))
|
|
19
|
+
return "Number";
|
|
20
|
+
if (BOOLEAN_TYPES.has(normalized))
|
|
21
|
+
return "Boolean";
|
|
22
|
+
return "String";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// ../maestro-sdk/src/variable-tags/schema-leaves.ts
|
|
26
|
+
var SCHEMA_TYPES = new Set([
|
|
27
|
+
"jsonSchema",
|
|
28
|
+
"file",
|
|
29
|
+
"octet-stream"
|
|
30
|
+
]);
|
|
31
|
+
var MAX_SCHEMA_DEPTH = 24;
|
|
32
|
+
var ARRAY_REASON = "array fields are not supported yet; tag the variable in the Maestro UI";
|
|
33
|
+
function resolveSchemaType(type) {
|
|
34
|
+
if (!Array.isArray(type))
|
|
35
|
+
return type;
|
|
36
|
+
const nonNull = type.filter((one) => one !== "null");
|
|
37
|
+
return nonNull.length === 1 ? nonNull[0] : "any";
|
|
38
|
+
}
|
|
39
|
+
function resolveRef(schema, definitions) {
|
|
40
|
+
if (!schema.$ref)
|
|
41
|
+
return;
|
|
42
|
+
return definitions[schema.$ref.replace("#/definitions/", "")];
|
|
43
|
+
}
|
|
44
|
+
function parseSchema(body) {
|
|
45
|
+
if (typeof body === "string") {
|
|
46
|
+
if (!body.trim())
|
|
47
|
+
return;
|
|
48
|
+
try {
|
|
49
|
+
return parseSchema(JSON.parse(body));
|
|
50
|
+
} catch {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return body !== null && typeof body === "object" ? body : undefined;
|
|
55
|
+
}
|
|
56
|
+
function pushField(ctx, path, fields) {
|
|
57
|
+
const { declaration } = ctx;
|
|
58
|
+
const { blockedReason, note } = declaration;
|
|
59
|
+
const entry = {
|
|
60
|
+
id: [declaration.elementKey, declaration.name, ...path].join("."),
|
|
61
|
+
name: declaration.name,
|
|
62
|
+
elementId: declaration.elementKey,
|
|
63
|
+
extractPath: path.join("."),
|
|
64
|
+
extractedValueType: "String",
|
|
65
|
+
defaultLabel: path[path.length - 1] ?? declaration.name,
|
|
66
|
+
elementLabel: declaration.elementLabel,
|
|
67
|
+
source: declaration.source,
|
|
68
|
+
taggable: true,
|
|
69
|
+
...note && { note },
|
|
70
|
+
...fields
|
|
71
|
+
};
|
|
72
|
+
if (blockedReason !== undefined && entry.taggable) {
|
|
73
|
+
entry.taggable = false;
|
|
74
|
+
entry.reason = blockedReason;
|
|
75
|
+
}
|
|
76
|
+
ctx.sink.variables.push(entry);
|
|
77
|
+
return entry;
|
|
78
|
+
}
|
|
79
|
+
function walkProperties(schema, path, ctx, depth, ancestors) {
|
|
80
|
+
const resolved = resolveRef(schema, ctx.definitions) ?? schema;
|
|
81
|
+
if (depth > MAX_SCHEMA_DEPTH || ancestors.includes(resolved))
|
|
82
|
+
return [];
|
|
83
|
+
const open = [...ancestors, resolved];
|
|
84
|
+
const leafIds = [];
|
|
85
|
+
for (const [key, property] of Object.entries(resolved.properties ?? {})) {
|
|
86
|
+
const fieldPath = [...path, key];
|
|
87
|
+
const title = property.title || key;
|
|
88
|
+
if (key.includes(".")) {
|
|
89
|
+
pushField(ctx, fieldPath, {
|
|
90
|
+
defaultLabel: title,
|
|
91
|
+
taggable: false,
|
|
92
|
+
reason: "the field name contains a dot, so it cannot be addressed"
|
|
93
|
+
});
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
const target = property.$ref ? resolveRef(property, ctx.definitions) : property;
|
|
97
|
+
if (!target)
|
|
98
|
+
continue;
|
|
99
|
+
const type = property.$ref ? resolveSchemaType(target.type) ?? "object" : resolveSchemaType(property.type) || "string";
|
|
100
|
+
if (type === "array") {
|
|
101
|
+
pushField(ctx, fieldPath, {
|
|
102
|
+
defaultLabel: title,
|
|
103
|
+
taggable: false,
|
|
104
|
+
reason: ARRAY_REASON,
|
|
105
|
+
array: true
|
|
106
|
+
});
|
|
107
|
+
} else if (type === "object" && (!property.$ref || target.type)) {
|
|
108
|
+
const children = walkProperties(target, fieldPath, ctx, depth + 1, open);
|
|
109
|
+
ctx.sink.containers.push({
|
|
110
|
+
id: [
|
|
111
|
+
ctx.declaration.elementKey,
|
|
112
|
+
ctx.declaration.name,
|
|
113
|
+
...fieldPath
|
|
114
|
+
].join("."),
|
|
115
|
+
leafIds: children
|
|
116
|
+
});
|
|
117
|
+
leafIds.push(...children);
|
|
118
|
+
} else {
|
|
119
|
+
leafIds.push(pushField(ctx, fieldPath, {
|
|
120
|
+
defaultLabel: title,
|
|
121
|
+
extractedValueType: extractedValueTypeFor(type)
|
|
122
|
+
}).id);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return leafIds;
|
|
126
|
+
}
|
|
127
|
+
function declareVariable(declaration, sink) {
|
|
128
|
+
const { elementKey, name, type, elementLabel, source } = declaration;
|
|
129
|
+
const base = {
|
|
130
|
+
id: `${elementKey}.${name}`,
|
|
131
|
+
name,
|
|
132
|
+
elementId: elementKey,
|
|
133
|
+
extractPath: "",
|
|
134
|
+
extractedValueType: extractedValueTypeFor(type),
|
|
135
|
+
defaultLabel: name,
|
|
136
|
+
elementLabel,
|
|
137
|
+
source,
|
|
138
|
+
taggable: true,
|
|
139
|
+
...declaration.note && { note: declaration.note }
|
|
140
|
+
};
|
|
141
|
+
const blocked = declaration.blockedReason ?? (name.includes(".") || elementKey.includes(".") ? "the name contains a dot, so it cannot be addressed" : undefined);
|
|
142
|
+
const schema = type !== undefined && SCHEMA_TYPES.has(type) ? parseSchema(declaration.body) : undefined;
|
|
143
|
+
if (blocked !== undefined || !schema) {
|
|
144
|
+
sink.variables.push(blocked === undefined ? base : { ...base, taggable: false, reason: blocked });
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
const definitions = schema.definitions ?? {};
|
|
148
|
+
const root = resolveRef(schema, definitions) ?? schema;
|
|
149
|
+
if (resolveSchemaType(root.type) === "array") {
|
|
150
|
+
sink.variables.push({
|
|
151
|
+
...base,
|
|
152
|
+
taggable: false,
|
|
153
|
+
reason: ARRAY_REASON,
|
|
154
|
+
array: true
|
|
155
|
+
});
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
const leafIds = walkProperties(root, [], { declaration, definitions, sink }, 0, []);
|
|
159
|
+
sink.containers.push({ id: base.id, leafIds });
|
|
160
|
+
}
|
|
161
|
+
function uniqueCatalog(sink) {
|
|
162
|
+
const keepFirst = (entries) => {
|
|
163
|
+
const seen = new Set;
|
|
164
|
+
return entries.filter((entry) => {
|
|
165
|
+
if (seen.has(entry.id))
|
|
166
|
+
return false;
|
|
167
|
+
seen.add(entry.id);
|
|
168
|
+
return true;
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
return {
|
|
172
|
+
variables: keepFirst(sink.variables),
|
|
173
|
+
containers: keepFirst(sink.containers)
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export { extractedValueTypeFor, declareVariable, uniqueCatalog };
|
|
178
|
+
|
|
179
|
+
//# debugId=9A088498CBC8D5D464756E2164756E21
|