@uipath/case-tool 1.206.0-preview.301 → 1.207.0-preview.305
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 +162 -7
- 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-0pbc3ysq.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-ygfggamz.js → case-debug-solution-projects-5tr4pwbs.js} +2 -2
- package/dist/{case-debug-studio-web-service-hcbrw6f5.js → case-debug-studio-web-service-7smzvq4c.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-bp7sh20v.js +297 -0
- package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
- package/dist/{case-validate-service-2kjqnhdt.js → case-validate-service-fxvq4qx7.js} +146 -38
- package/dist/{connector-enrichment-service-wq282h58.js → connector-enrichment-service-x0w721wj.js} +26 -25
- package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
- package/dist/{connector-lookup-service-62t7j9km.js → connector-lookup-service-51pca3bf.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/{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-7f4sdff5.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/{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-8h77h81c.js → index-2j5tfjwv.js} +129 -76
- package/dist/{index-katfc3yn.js → index-ezxmyhan.js} +4 -4
- package/dist/{index-j2gw61z0.js → index-gb75pv5a.js} +111 -65
- package/dist/index-prn518fr.js +36 -0
- 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-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-bpbz1gcx.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-m4zksnxd.js → node-sync-service-q1a37d6n.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-tqn0a5bg.js → packager-tool-00qmds4s.js} +254 -69
- 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-3aeetcr4.js → packager-tool-178xtejt.js} +191 -154
- package/dist/{packager-tool-gkmvcbkr.js → packager-tool-1dsedy7x.js} +59 -34
- package/dist/packager-tool-1yew22sn.js +9 -0
- package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
- package/dist/{packager-tool-m4x2n2bx.js → packager-tool-2x40ye7a.js} +21 -7
- 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-81wpefzk.js → packager-tool-380ac64s.js} +61 -11
- package/dist/{packager-tool-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
- package/dist/packager-tool-3k5j706w.js +73 -0
- 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-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-pg0qpfg8.js → packager-tool-ej14cxen.js} +22 -22
- 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-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-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
- package/dist/packager-tool-n6h4bz4d.js +22 -0
- 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/{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-7c14mwnb.js → packager-tool-z13dp55w.js} +3393 -3092
- 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-77yctm8b.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-27bstvae.js → resourcesSyncService-gegbd8b8.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-mpj6ypwk.js → sdd-resolve-siblings-qz7gwws5.js} +4 -4
- package/dist/solution-auth-yb1twb9d.js +11 -0
- 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-5x04aa70.js → trigger-enrichment-service-bsj58ppa.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-krtxycbe.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,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catchError2
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-j8mnpsv8.js";
|
|
4
4
|
import {
|
|
5
5
|
ElementsApi,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./packager-tool-
|
|
6
|
+
createApiClient2,
|
|
7
|
+
createConfiguredActivityClient2,
|
|
8
|
+
assertActivityMetadataResolved2,
|
|
9
|
+
extractMultipartParameters2,
|
|
10
|
+
buildInputMetadata2
|
|
11
|
+
} from "./packager-tool-z13dp55w.js";
|
|
12
12
|
import {
|
|
13
13
|
guardJsonString
|
|
14
|
-
} from "./packager-tool-
|
|
14
|
+
} from "./packager-tool-00ck60cc.js";
|
|
15
|
+
import {
|
|
16
|
+
fetchConnectorMetadata2
|
|
17
|
+
} from "./packager-tool-1dsedy7x.js";
|
|
15
18
|
import {
|
|
16
19
|
lookupTypeCacheEntry2,
|
|
17
20
|
fetchConnectorConnections2
|
|
18
|
-
} from "./packager-tool-
|
|
21
|
+
} from "./packager-tool-380ac64s.js";
|
|
19
22
|
import {
|
|
20
23
|
buildErrorOutput,
|
|
21
24
|
addVarIdsToInputsOutputs
|
|
22
|
-
} from "./packager-tool-
|
|
23
|
-
import {
|
|
24
|
-
fetchConnectorMetadata2
|
|
25
|
-
} from "./packager-tool-gkmvcbkr.js";
|
|
25
|
+
} from "./packager-tool-bw4fsdq4.js";
|
|
26
26
|
import {
|
|
27
27
|
createConnectorBindings
|
|
28
28
|
} from "./packager-tool-e1tx5mqg.js";
|
|
@@ -45,7 +45,7 @@ async function fetchMetadataSafe(connectorKey, objectName, connectionId) {
|
|
|
45
45
|
return err ? undefined : result;
|
|
46
46
|
}
|
|
47
47
|
async function resolveActivityOperation2(connectorKey, displayName, operation) {
|
|
48
|
-
const [apiError, api] = await catchError2(
|
|
48
|
+
const [apiError, api] = await catchError2(createApiClient2(ElementsApi));
|
|
49
49
|
if (apiError) {
|
|
50
50
|
return operation;
|
|
51
51
|
}
|
|
@@ -70,7 +70,7 @@ async function resolveActivityOperation2(connectorKey, displayName, operation) {
|
|
|
70
70
|
return operation;
|
|
71
71
|
}
|
|
72
72
|
async function fetchObjectSwaggerPath2(connectorKey, objectName) {
|
|
73
|
-
const [apiError, api] = await catchError2(
|
|
73
|
+
const [apiError, api] = await catchError2(createApiClient2(ElementsApi));
|
|
74
74
|
if (apiError) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
@@ -89,7 +89,7 @@ async function fetchObjectSwaggerPath2(connectorKey, objectName) {
|
|
|
89
89
|
return pathKeys[0];
|
|
90
90
|
}
|
|
91
91
|
async function fetchObjectMethodConfig2(connectorKey, objectName, httpMethod) {
|
|
92
|
-
const [apiError, api] = await catchError2(
|
|
92
|
+
const [apiError, api] = await catchError2(createApiClient2(ElementsApi));
|
|
93
93
|
if (apiError) {
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
@@ -111,14 +111,14 @@ async function fetchObjectMethodConfig2(connectorKey, objectName, httpMethod) {
|
|
|
111
111
|
async function buildActivityPropertyConfig(params) {
|
|
112
112
|
const { entry, uiPathActivityTypeId, connectionId } = params;
|
|
113
113
|
const instanceParameters = parseEntryConfiguration2(entry);
|
|
114
|
-
const activityClient = await
|
|
114
|
+
const activityClient = await createConfiguredActivityClient2({
|
|
115
115
|
instanceParameters,
|
|
116
116
|
connectionId
|
|
117
117
|
});
|
|
118
118
|
const { essentialConfiguration } = activityClient.getEssentialConfiguration();
|
|
119
|
-
|
|
119
|
+
assertActivityMetadataResolved2(essentialConfiguration, connectionId);
|
|
120
120
|
const essentialConfig = { essentialConfiguration };
|
|
121
|
-
const multipartParams =
|
|
121
|
+
const multipartParams = extractMultipartParameters2(params.objectMethodConfig?.parameters ?? []);
|
|
122
122
|
return {
|
|
123
123
|
...multipartParams.length > 0 ? { multipartParameters: multipartParams } : {},
|
|
124
124
|
configuration: guardJsonString(JSON.stringify(essentialConfig)),
|
|
@@ -128,8 +128,8 @@ async function buildActivityPropertyConfig(params) {
|
|
|
128
128
|
}
|
|
129
129
|
function buildInputMetadataFromParams(objectMethodConfig, resolvedOperation) {
|
|
130
130
|
const params = objectMethodConfig?.parameters ?? [];
|
|
131
|
-
const multipartParams =
|
|
132
|
-
return
|
|
131
|
+
const multipartParams = extractMultipartParameters2(params);
|
|
132
|
+
return buildInputMetadata2(multipartParams, resolvedOperation ?? "list") ?? undefined;
|
|
133
133
|
}
|
|
134
134
|
function extractFields2(metadata) {
|
|
135
135
|
if (metadata.fields) {
|
|
@@ -527,4 +527,4 @@ async function enrichConnectorActivity2(activityTypeId, connectionId, indexType
|
|
|
527
527
|
|
|
528
528
|
export { parseEntryConfiguration2, resolveActivityOperation2, fetchObjectSwaggerPath2, fetchObjectMethodConfig2, extractFields2, normalizeFields2, mapISFieldsToInputOutputs2, buildParameterInputs2, buildConnectorContext2, extractFieldDefinitions2, enrichConnectorRegistryEntry2, enrichConnectorActivity2 };
|
|
529
529
|
|
|
530
|
-
//# debugId=
|
|
530
|
+
//# debugId=39DE63A42F754E3364756E2164756E21
|
|
@@ -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
|