@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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// ../maestro-sdk/src/jint-globals.ts
|
|
2
|
+
var JINT_GLOBALS = [
|
|
3
|
+
"AggregateError",
|
|
4
|
+
"Array",
|
|
5
|
+
"ArrayBuffer",
|
|
6
|
+
"AsyncDisposableStack",
|
|
7
|
+
"Atomics",
|
|
8
|
+
"BigInt",
|
|
9
|
+
"BigInt64Array",
|
|
10
|
+
"BigUint64Array",
|
|
11
|
+
"Boolean",
|
|
12
|
+
"DataView",
|
|
13
|
+
"Date",
|
|
14
|
+
"DisposableStack",
|
|
15
|
+
"Error",
|
|
16
|
+
"EvalError",
|
|
17
|
+
"FinalizationRegistry",
|
|
18
|
+
"Float16Array",
|
|
19
|
+
"Float32Array",
|
|
20
|
+
"Float64Array",
|
|
21
|
+
"Function",
|
|
22
|
+
"Generator",
|
|
23
|
+
"Infinity",
|
|
24
|
+
"Int16Array",
|
|
25
|
+
"Int32Array",
|
|
26
|
+
"Int8Array",
|
|
27
|
+
"JSON",
|
|
28
|
+
"Map",
|
|
29
|
+
"Math",
|
|
30
|
+
"NaN",
|
|
31
|
+
"Number",
|
|
32
|
+
"Object",
|
|
33
|
+
"Promise",
|
|
34
|
+
"Proxy",
|
|
35
|
+
"RangeError",
|
|
36
|
+
"ReferenceError",
|
|
37
|
+
"Reflect",
|
|
38
|
+
"RegExp",
|
|
39
|
+
"Set",
|
|
40
|
+
"ShadowRealm",
|
|
41
|
+
"SharedArrayBuffer",
|
|
42
|
+
"String",
|
|
43
|
+
"SuppressedError",
|
|
44
|
+
"Symbol",
|
|
45
|
+
"SyntaxError",
|
|
46
|
+
"TypeError",
|
|
47
|
+
"TypedArray",
|
|
48
|
+
"URIError",
|
|
49
|
+
"Uint16Array",
|
|
50
|
+
"Uint32Array",
|
|
51
|
+
"Uint8Array",
|
|
52
|
+
"Uint8ClampedArray",
|
|
53
|
+
"WeakMap",
|
|
54
|
+
"WeakRef",
|
|
55
|
+
"WeakSet",
|
|
56
|
+
"decodeURI",
|
|
57
|
+
"decodeURIComponent",
|
|
58
|
+
"encodeURI",
|
|
59
|
+
"encodeURIComponent",
|
|
60
|
+
"escape",
|
|
61
|
+
"eval",
|
|
62
|
+
"globalThis",
|
|
63
|
+
"isFinite",
|
|
64
|
+
"isNaN",
|
|
65
|
+
"parseFloat",
|
|
66
|
+
"parseInt",
|
|
67
|
+
"undefined",
|
|
68
|
+
"unescape"
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
export { JINT_GLOBALS };
|
|
72
|
+
|
|
73
|
+
//# debugId=7C295C70D286DDB864756E2164756E21
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catchError2,
|
|
3
3
|
logger
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-j8mnpsv8.js";
|
|
5
5
|
import {
|
|
6
6
|
ConnectionsApi,
|
|
7
7
|
ElementsApi,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
getConnectorActivityMetadataV4
|
|
11
|
-
|
|
8
|
+
createApiClient2,
|
|
9
|
+
isV4ActivityConfiguration2,
|
|
10
|
+
getConnectorActivityMetadataV4,
|
|
11
|
+
connectorMaxPageSize
|
|
12
|
+
} from "./packager-tool-70a6y6t1.js";
|
|
12
13
|
|
|
13
14
|
// ../maestro-sdk/src/registry/integration-service-fetcher.ts
|
|
14
15
|
function parseContext(node) {
|
|
@@ -60,11 +61,11 @@ function extractFields(metadata, method, requestOnly) {
|
|
|
60
61
|
return compact;
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function isConnectorNode2(node) {
|
|
64
65
|
const nodeType = node.nodeType;
|
|
65
66
|
return nodeType?.startsWith("uipath.connector") || false;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function isConnectorTriggerNode2(node) {
|
|
68
69
|
const nodeType = node.nodeType;
|
|
69
70
|
return nodeType?.startsWith("uipath.connector.trigger") || false;
|
|
70
71
|
}
|
|
@@ -80,15 +81,15 @@ function toCompactField(field, required) {
|
|
|
80
81
|
applyOptionalFieldProps(compact, field);
|
|
81
82
|
return compact;
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function extractTriggerEventParameters2(metadata, operationName) {
|
|
84
85
|
const fields = Object.values(metadata?.fields ?? {});
|
|
85
86
|
return fields.filter((field) => !!field.events?.[operationName]).map((field) => toCompactField(field, field.events?.[operationName]?.required === true));
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function extractTriggerFilterFields2(metadata) {
|
|
88
89
|
const fields = Object.values(metadata?.fields ?? {});
|
|
89
90
|
return fields.filter((field) => field.order === 1).map((field) => toCompactField(field, false));
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function extractActivityFilterFields2(metadata, _method) {
|
|
92
93
|
const fieldsObj = metadata?.fields ?? {};
|
|
93
94
|
const fields = Array.isArray(fieldsObj) ? fieldsObj : Object.values(fieldsObj);
|
|
94
95
|
return fields.filter((field) => field.searchable === true).map((field) => {
|
|
@@ -118,8 +119,8 @@ function extractTriggerOutputFields(metadata) {
|
|
|
118
119
|
return compact;
|
|
119
120
|
});
|
|
120
121
|
}
|
|
121
|
-
async function
|
|
122
|
-
const api = await
|
|
122
|
+
async function fetchConnectorTriggerMetadata2(connectorKey, operationName, objectName, connectionId) {
|
|
123
|
+
const api = await createApiClient2(ElementsApi);
|
|
123
124
|
const triggerMetadata = await api.getInstanceEventObjectMetadata({
|
|
124
125
|
connectionOrInstanceId: connectionId,
|
|
125
126
|
elementKey: connectorKey,
|
|
@@ -143,13 +144,30 @@ function getConfigurationString(node) {
|
|
|
143
144
|
}
|
|
144
145
|
return;
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
+
function getConnectorConfiguration2(node) {
|
|
147
148
|
const configStr = getConfigurationString(node);
|
|
148
149
|
if (!configStr)
|
|
149
150
|
return null;
|
|
150
151
|
const [err, parsed] = catchError2(() => JSON.parse(configStr));
|
|
151
152
|
return err ? null : parsed;
|
|
152
153
|
}
|
|
154
|
+
function getConnectorInfo2(node) {
|
|
155
|
+
const context = parseContext(node);
|
|
156
|
+
const config = getConnectorConfiguration2(node);
|
|
157
|
+
if (!context && !config)
|
|
158
|
+
return null;
|
|
159
|
+
const connectorKey = config?.connectorKey ?? context?.connectorKey ?? "";
|
|
160
|
+
const objectName = config?.objectName ?? context?.objectName ?? "";
|
|
161
|
+
if (!connectorKey || !objectName)
|
|
162
|
+
return null;
|
|
163
|
+
return {
|
|
164
|
+
connectorKey,
|
|
165
|
+
objectName,
|
|
166
|
+
method: config?.httpMethod ?? context?.method ?? "POST",
|
|
167
|
+
activityType: config?.activityType ?? ""
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
153
171
|
class ConnectionConnectorMismatchError2 extends Error {
|
|
154
172
|
instructions;
|
|
155
173
|
constructor(message, instructions) {
|
|
@@ -158,14 +176,14 @@ class ConnectionConnectorMismatchError2 extends Error {
|
|
|
158
176
|
this.name = "ConnectionConnectorMismatchError";
|
|
159
177
|
}
|
|
160
178
|
}
|
|
161
|
-
function
|
|
179
|
+
function assertConnectionConnector2(connectionId, info, connectorKey, subject) {
|
|
162
180
|
if (!info.connectorKey || !connectorKey || info.connectorKey.toLowerCase() === connectorKey.toLowerCase()) {
|
|
163
181
|
return;
|
|
164
182
|
}
|
|
165
183
|
throw new ConnectionConnectorMismatchError2(`Connection "${connectionId}" is a ${info.connectorKey} connection, but ${subject} runs on ${connectorKey}.`, `Pass a ${connectorKey} connection: 'uip is connections list ${connectorKey} --all-folders'.`);
|
|
166
184
|
}
|
|
167
|
-
async function
|
|
168
|
-
const api = await
|
|
185
|
+
async function fetchConnectionInfo2(connectionId) {
|
|
186
|
+
const api = await createApiClient2(ConnectionsApi);
|
|
169
187
|
const response = await api.apiV1ConnectionsConnectionIdGet({
|
|
170
188
|
connectionId
|
|
171
189
|
});
|
|
@@ -183,7 +201,7 @@ async function fetchConnectionInfo(connectionId) {
|
|
|
183
201
|
};
|
|
184
202
|
}
|
|
185
203
|
async function fetchConnectorMetadata2(connectorKey, objectName, connectionId) {
|
|
186
|
-
const api = await
|
|
204
|
+
const api = await createApiClient2(ElementsApi);
|
|
187
205
|
if (connectionId) {
|
|
188
206
|
const response = await api.getInstanceObjectMetadataRaw({
|
|
189
207
|
connectionOrInstanceId: connectionId,
|
|
@@ -200,14 +218,22 @@ async function fetchConnectorMetadata2(connectorKey, objectName, connectionId) {
|
|
|
200
218
|
});
|
|
201
219
|
return await response.raw.json();
|
|
202
220
|
}
|
|
203
|
-
async function
|
|
221
|
+
async function fetchConnectorMaxPageSize2(connectorKey) {
|
|
222
|
+
const api = await createApiClient2(ElementsApi);
|
|
223
|
+
const response = await api.getElementStringRaw({
|
|
224
|
+
elementKey: connectorKey
|
|
225
|
+
});
|
|
226
|
+
const element = JSON.parse(await response.raw.text());
|
|
227
|
+
return connectorMaxPageSize(element.configuration);
|
|
228
|
+
}
|
|
229
|
+
async function fetchConnectorActivityMetadataV42(connectorKey, objectName) {
|
|
204
230
|
return await getConnectorActivityMetadataV4(undefined, connectorKey, objectName);
|
|
205
231
|
}
|
|
206
232
|
function buildEnrichedActivityNode(node, metadata, method) {
|
|
207
233
|
const connectorMethodInfo = metadata?.metadata?.method?.[method];
|
|
208
234
|
const inputFields = extractFields(metadata, method, true);
|
|
209
235
|
const outputFields = extractFields(metadata, method, false);
|
|
210
|
-
const filterFields =
|
|
236
|
+
const filterFields = extractActivityFilterFields2(metadata, method);
|
|
211
237
|
return {
|
|
212
238
|
...node,
|
|
213
239
|
...connectorMethodInfo && { connectorMethodInfo },
|
|
@@ -220,8 +246,8 @@ function buildEnrichedActivityNode(node, metadata, method) {
|
|
|
220
246
|
}
|
|
221
247
|
async function enrichConnectorActivityNode(node, connectionId) {
|
|
222
248
|
const parsed = parseContext(node);
|
|
223
|
-
const config =
|
|
224
|
-
if (
|
|
249
|
+
const config = getConnectorConfiguration2(node);
|
|
250
|
+
if (isV4ActivityConfiguration2(config)) {
|
|
225
251
|
return enrichV4ConnectorActivityNode(node, connectionId, config);
|
|
226
252
|
}
|
|
227
253
|
if (!parsed)
|
|
@@ -244,34 +270,33 @@ async function enrichV4ConnectorActivityNode(node, connectionId, config) {
|
|
|
244
270
|
if (connectionId) {
|
|
245
271
|
logger.warn("v4 metadata endpoints are not connection-scoped — --connection-id is ignored for 4.0.0 enrichment.");
|
|
246
272
|
}
|
|
247
|
-
const [error, metadata] = await catchError2(
|
|
273
|
+
const [error, metadata] = await catchError2(fetchConnectorActivityMetadataV42(connectorKey, objectName));
|
|
248
274
|
if (error) {
|
|
249
275
|
logger.warn(`IS v4 enrichment failed: ${error.message}`);
|
|
250
276
|
return node;
|
|
251
277
|
}
|
|
252
278
|
return buildEnrichedActivityNode(node, metadata, method);
|
|
253
279
|
}
|
|
254
|
-
async function
|
|
255
|
-
if (!
|
|
280
|
+
async function enrichConnectorNode2(node, connectionId) {
|
|
281
|
+
if (!isConnectorNode2(node))
|
|
256
282
|
return node;
|
|
257
|
-
return
|
|
283
|
+
return isConnectorTriggerNode2(node) ? enrichConnectorTriggerNode(node, connectionId) : enrichConnectorActivityNode(node, connectionId);
|
|
258
284
|
}
|
|
259
285
|
async function enrichConnectorTriggerNode(node, connectionId) {
|
|
260
|
-
if (!connectionId)
|
|
261
|
-
|
|
262
|
-
}
|
|
286
|
+
if (!connectionId)
|
|
287
|
+
return node;
|
|
263
288
|
const parsed = parseContext(node);
|
|
264
289
|
if (!parsed?.operation)
|
|
265
290
|
return node;
|
|
266
291
|
const { connectorKey, objectName, operation } = parsed;
|
|
267
|
-
const metadata = await
|
|
268
|
-
const eventParameters =
|
|
269
|
-
const filterFields =
|
|
292
|
+
const metadata = await fetchConnectorTriggerMetadata2(connectorKey, operation, objectName, connectionId);
|
|
293
|
+
const eventParameters = extractTriggerEventParameters2(metadata, operation);
|
|
294
|
+
const filterFields = extractTriggerFilterFields2(metadata);
|
|
270
295
|
const outputFields = extractTriggerOutputFields(metadata);
|
|
271
296
|
let byoaConnection = false;
|
|
272
297
|
let elementInstanceId = null;
|
|
273
298
|
if (connectionId) {
|
|
274
|
-
const [connErr, connInfo] = await catchError2(
|
|
299
|
+
const [connErr, connInfo] = await catchError2(fetchConnectionInfo2(connectionId));
|
|
275
300
|
if (!connErr) {
|
|
276
301
|
byoaConnection = connInfo.byoaConnection;
|
|
277
302
|
elementInstanceId = connInfo.elementInstanceId;
|
|
@@ -290,6 +315,6 @@ async function enrichConnectorTriggerNode(node, connectionId) {
|
|
|
290
315
|
};
|
|
291
316
|
}
|
|
292
317
|
|
|
293
|
-
export {
|
|
318
|
+
export { isConnectorNode2, isConnectorTriggerNode2, extractTriggerEventParameters2, extractTriggerFilterFields2, extractActivityFilterFields2, fetchConnectorTriggerMetadata2, getConnectorConfiguration2, getConnectorInfo2, ConnectionConnectorMismatchError2, assertConnectionConnector2, fetchConnectionInfo2, fetchConnectorMetadata2, fetchConnectorMaxPageSize2, fetchConnectorActivityMetadataV42, enrichConnectorNode2 };
|
|
294
319
|
|
|
295
|
-
//# debugId=
|
|
320
|
+
//# debugId=B707F299EE30E2D164756E2164756E21
|
|
@@ -5349,76 +5349,6 @@ function parse(input, options) {
|
|
|
5349
5349
|
return Parser.parse(input, options);
|
|
5350
5350
|
}
|
|
5351
5351
|
|
|
5352
|
-
|
|
5353
|
-
var JINT_GLOBALS = [
|
|
5354
|
-
"AggregateError",
|
|
5355
|
-
"Array",
|
|
5356
|
-
"ArrayBuffer",
|
|
5357
|
-
"AsyncDisposableStack",
|
|
5358
|
-
"Atomics",
|
|
5359
|
-
"BigInt",
|
|
5360
|
-
"BigInt64Array",
|
|
5361
|
-
"BigUint64Array",
|
|
5362
|
-
"Boolean",
|
|
5363
|
-
"DataView",
|
|
5364
|
-
"Date",
|
|
5365
|
-
"DisposableStack",
|
|
5366
|
-
"Error",
|
|
5367
|
-
"EvalError",
|
|
5368
|
-
"FinalizationRegistry",
|
|
5369
|
-
"Float16Array",
|
|
5370
|
-
"Float32Array",
|
|
5371
|
-
"Float64Array",
|
|
5372
|
-
"Function",
|
|
5373
|
-
"Generator",
|
|
5374
|
-
"Infinity",
|
|
5375
|
-
"Int16Array",
|
|
5376
|
-
"Int32Array",
|
|
5377
|
-
"Int8Array",
|
|
5378
|
-
"JSON",
|
|
5379
|
-
"Map",
|
|
5380
|
-
"Math",
|
|
5381
|
-
"NaN",
|
|
5382
|
-
"Number",
|
|
5383
|
-
"Object",
|
|
5384
|
-
"Promise",
|
|
5385
|
-
"Proxy",
|
|
5386
|
-
"RangeError",
|
|
5387
|
-
"ReferenceError",
|
|
5388
|
-
"Reflect",
|
|
5389
|
-
"RegExp",
|
|
5390
|
-
"Set",
|
|
5391
|
-
"ShadowRealm",
|
|
5392
|
-
"SharedArrayBuffer",
|
|
5393
|
-
"String",
|
|
5394
|
-
"SuppressedError",
|
|
5395
|
-
"Symbol",
|
|
5396
|
-
"SyntaxError",
|
|
5397
|
-
"TypeError",
|
|
5398
|
-
"TypedArray",
|
|
5399
|
-
"URIError",
|
|
5400
|
-
"Uint16Array",
|
|
5401
|
-
"Uint32Array",
|
|
5402
|
-
"Uint8Array",
|
|
5403
|
-
"Uint8ClampedArray",
|
|
5404
|
-
"WeakMap",
|
|
5405
|
-
"WeakRef",
|
|
5406
|
-
"WeakSet",
|
|
5407
|
-
"decodeURI",
|
|
5408
|
-
"decodeURIComponent",
|
|
5409
|
-
"encodeURI",
|
|
5410
|
-
"encodeURIComponent",
|
|
5411
|
-
"escape",
|
|
5412
|
-
"eval",
|
|
5413
|
-
"globalThis",
|
|
5414
|
-
"isFinite",
|
|
5415
|
-
"isNaN",
|
|
5416
|
-
"parseFloat",
|
|
5417
|
-
"parseInt",
|
|
5418
|
-
"undefined",
|
|
5419
|
-
"unescape"
|
|
5420
|
-
];
|
|
5352
|
+
export { parse };
|
|
5421
5353
|
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
//# debugId=7EDC58C6FFAC011F64756E2164756E21
|
|
5354
|
+
//# debugId=FAE4002165471F6364756E2164756E21
|