@uipath/case-tool 1.206.0-preview.303 → 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-c300019s.js → case-debug-solution-projects-5tr4pwbs.js} +2 -2
- package/dist/{case-debug-studio-web-service-b6xe8es1.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-p324kcry.js → case-validate-service-fxvq4qx7.js} +146 -38
- package/dist/{connector-enrichment-service-9wnew5a0.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-v8r2htmg.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-n1ndwwsz.js → index-2j5tfjwv.js} +129 -76
- package/dist/{index-kc1h1yf6.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-7n5960qy.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-rfdkx9c9.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-anvg0etj.js → packager-tool-178xtejt.js} +191 -154
- package/dist/{packager-tool-j69tzg52.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-z4phaas7.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-7hcpmn4g.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-m4kp6a7j.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-jkwpw95j.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-y5r4k43w.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-xsm2ktkq.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-dzkht78s.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-garh9kcd.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,26 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catchError2
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-j8mnpsv8.js";
|
|
4
4
|
import {
|
|
5
5
|
getEventOperationObjects,
|
|
6
6
|
resourceFolderKeyFieldName,
|
|
7
|
+
REQUEST_BUCKETS,
|
|
8
|
+
declaredFieldsOf,
|
|
9
|
+
companionBucket,
|
|
7
10
|
ResourceFieldResolutionError2,
|
|
8
11
|
createSolutionResourceConfigurationsProvider,
|
|
9
|
-
|
|
12
|
+
buildActivityEssentialConfiguration2,
|
|
10
13
|
configureActivityClient,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
assertActivityMetadataResolved2,
|
|
15
|
+
extractMultipartParameters2,
|
|
16
|
+
inlineMultipartFileValues2,
|
|
17
|
+
buildInputMetadata2,
|
|
15
18
|
ConflictingDesignActionsError,
|
|
16
19
|
resourcePickersRequestNeeds,
|
|
17
20
|
findTriggerDesignAction,
|
|
18
21
|
triggerEventParameters,
|
|
19
22
|
runTriggerDesignAction
|
|
20
|
-
} from "./packager-tool-
|
|
21
|
-
import"./packager-tool-
|
|
22
|
-
import"./packager-tool-
|
|
23
|
-
import"./packager-tool-
|
|
23
|
+
} from "./packager-tool-z13dp55w.js";
|
|
24
|
+
import"./packager-tool-n3r5apbb.js";
|
|
25
|
+
import"./packager-tool-c0pavv0s.js";
|
|
26
|
+
import"./packager-tool-p64w2wrt.js";
|
|
24
27
|
import {
|
|
25
28
|
storedActivityBindings,
|
|
26
29
|
planResourceBindings,
|
|
@@ -30,25 +33,26 @@ import {
|
|
|
30
33
|
resourceBindingIdPlaceholder,
|
|
31
34
|
externalExecutionOf,
|
|
32
35
|
externalExecutionWarning
|
|
33
|
-
} from "./packager-tool-
|
|
34
|
-
import"./packager-tool-17b466mr.js";
|
|
36
|
+
} from "./packager-tool-00ck60cc.js";
|
|
35
37
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
extractTriggerEventParameters,
|
|
41
|
-
extractTriggerFilterFields,
|
|
42
|
-
extractActivityFilterFields,
|
|
43
|
-
fetchConnectorTriggerMetadata,
|
|
38
|
+
extractTriggerEventParameters2,
|
|
39
|
+
extractTriggerFilterFields2,
|
|
40
|
+
extractActivityFilterFields2,
|
|
41
|
+
fetchConnectorTriggerMetadata2,
|
|
44
42
|
ConnectionConnectorMismatchError2,
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
assertConnectionConnector2,
|
|
44
|
+
fetchConnectionInfo2,
|
|
47
45
|
fetchConnectorMetadata2
|
|
48
|
-
} from "./packager-tool-
|
|
46
|
+
} from "./packager-tool-1dsedy7x.js";
|
|
47
|
+
import"./packager-tool-hrd44w8g.js";
|
|
48
|
+
import {
|
|
49
|
+
findSolutionFromCwd2
|
|
50
|
+
} from "./packager-tool-5s476jdt.js";
|
|
51
|
+
import"./packager-tool-wvf6b31h.js";
|
|
52
|
+
import"./packager-tool-8kcwawyg.js";
|
|
49
53
|
import {
|
|
50
54
|
genericObjectDiscoveryCommands
|
|
51
|
-
} from "./packager-tool-
|
|
55
|
+
} from "./packager-tool-zte9svtn.js";
|
|
52
56
|
import {
|
|
53
57
|
v2ConfigurationVersionEntry
|
|
54
58
|
} from "./packager-tool-68648y3j.js";
|
|
@@ -627,7 +631,7 @@ function buildActivityContext(args) {
|
|
|
627
631
|
name: p.name,
|
|
628
632
|
dataType: p.dataType
|
|
629
633
|
})) ?? [];
|
|
630
|
-
const inputMetadata =
|
|
634
|
+
const inputMetadata = buildInputMetadata2(multipartParams, args.verb, args.maxPageSize) ?? {};
|
|
631
635
|
const activity = args.connectorDisplayName !== null ? { ...args.typecacheEntry, category: args.connectorDisplayName } : args.typecacheEntry;
|
|
632
636
|
const metadataBody = {
|
|
633
637
|
activityPropertyConfiguration,
|
|
@@ -702,7 +706,7 @@ function buildTriggerCaseShape(objectName, _eventParameters, responseFields, res
|
|
|
702
706
|
return { inputs, outputs };
|
|
703
707
|
}
|
|
704
708
|
async function fetchConnectionContext(connectionId, target, diagnostics) {
|
|
705
|
-
const [err, info] = await catchError2(
|
|
709
|
+
const [err, info] = await catchError2(fetchConnectionInfo2(connectionId));
|
|
706
710
|
if (err) {
|
|
707
711
|
diagnostics.fallbacks.push({
|
|
708
712
|
endpoint: "fetchConnectionInfo",
|
|
@@ -711,7 +715,7 @@ async function fetchConnectionContext(connectionId, target, diagnostics) {
|
|
|
711
715
|
throw new Error(`Connection "${connectionId}" not found or inaccessible: ${err.message}`);
|
|
712
716
|
}
|
|
713
717
|
diagnostics.fetched.push("fetchConnectionInfo");
|
|
714
|
-
|
|
718
|
+
assertConnectionConnector2(connectionId, info, target.connectorKey, `${target.activityTypeId} ("${String(target.displayName)}")`);
|
|
715
719
|
return {
|
|
716
720
|
context: {
|
|
717
721
|
id: info.id,
|
|
@@ -838,7 +842,7 @@ async function buildActivitySpec(connectorKey, objectName, httpMethod, resolvedC
|
|
|
838
842
|
...bodyFields.map((p) => ({ p, slot: "bodyFields" }))
|
|
839
843
|
]);
|
|
840
844
|
const { multipart, inputDetails } = withMultipartFileValues(buildMultipartSpec(params), opts.inputDetails);
|
|
841
|
-
assertActivityParameters(inputDetails, params, connectorKey, objectName);
|
|
845
|
+
assertActivityParameters(inputDetails, params, bodyFields, connectorKey, objectName);
|
|
842
846
|
let savedFilterTrees = null;
|
|
843
847
|
let activityFilterParamName = null;
|
|
844
848
|
if (inputDetails?.filter !== undefined) {
|
|
@@ -867,7 +871,7 @@ async function buildActivitySpec(connectorKey, objectName, httpMethod, resolvedC
|
|
|
867
871
|
});
|
|
868
872
|
await assertPickersResolved(activityClient, authoredValues, resolvedResources, optionLabels(opts.optionLabels));
|
|
869
873
|
const { essentialConfiguration: essentialConfig } = activityClient.getEssentialConfiguration();
|
|
870
|
-
|
|
874
|
+
assertActivityMetadataResolved2(essentialConfig, resolvedConnection.context.id);
|
|
871
875
|
const activityCeqlExpression = activityFilterParamName ? activityClient.getCompiledFilter(activityFilterParamName) : null;
|
|
872
876
|
const filter = withBuilderOperators(metadataFilter, "ceql", activityClient.getFilterFields());
|
|
873
877
|
const essentialConfiguration = { essentialConfiguration: essentialConfig };
|
|
@@ -904,7 +908,7 @@ async function buildActivitySpec(connectorKey, objectName, httpMethod, resolvedC
|
|
|
904
908
|
});
|
|
905
909
|
warnAboutExternalExecution(diagnostics, externalExecution, `${connectorKey}/${objectName}`);
|
|
906
910
|
}
|
|
907
|
-
const resourceBindings = bindResolvedResources(caseShape, resolvedResources, activityClient);
|
|
911
|
+
const resourceBindings = bindResolvedResources(caseShape, resolvedResources, activityClient, "activity");
|
|
908
912
|
return {
|
|
909
913
|
specVersion: 1,
|
|
910
914
|
identity: {
|
|
@@ -996,42 +1000,55 @@ async function withTriggerDesignAction(params) {
|
|
|
996
1000
|
async function solutionDirFor(opts) {
|
|
997
1001
|
return opts.solutionFolder ?? (await findSolutionFromCwd2())?.solutionDir ?? null;
|
|
998
1002
|
}
|
|
999
|
-
function assertActivityParameters(inputDetails, params, connectorKey, objectName) {
|
|
1000
|
-
const
|
|
1001
|
-
const
|
|
1003
|
+
function assertActivityParameters(inputDetails, params, bodyFields, connectorKey, objectName) {
|
|
1004
|
+
const declared = declaredFieldsOfParams(params);
|
|
1005
|
+
const pathBucket = parameterBucket("pathParameters", params, "path", declared);
|
|
1006
|
+
const queryBucket = parameterBucket("queryParameters", params, "query", declared);
|
|
1002
1007
|
const target = `${connectorKey}/${objectName}`;
|
|
1003
1008
|
assertDeclaredParameters(inputDetails?.pathParameters, pathBucket, [queryBucket], target);
|
|
1004
1009
|
if (!isHttpRequestObject(objectName) && queryBucket.names.length > 0) {
|
|
1005
1010
|
assertDeclaredParameters(inputDetails?.queryParameters, queryBucket, [pathBucket], target);
|
|
1006
1011
|
}
|
|
1012
|
+
assertBodyParameters(inputDetails?.bodyParameters, bodyFields, [queryBucket, pathBucket], target);
|
|
1013
|
+
}
|
|
1014
|
+
function assertBodyParameters(authored, bodyFields, others, target) {
|
|
1015
|
+
const rootOf = (name) => name.split(/[.[]/, 1)[0];
|
|
1016
|
+
const bodyRoots = new Set(bodyFields.map((f) => rootOf(f.name)));
|
|
1017
|
+
const misplaced = Object.keys(authored ?? {}).filter((key) => !bodyRoots.has(rootOf(key)) && others.some((other) => bucketTakes(other, rootOf(key))));
|
|
1018
|
+
if (misplaced.length === 0)
|
|
1019
|
+
return;
|
|
1020
|
+
throw new InvalidInputDetailsError(`"${target}" has no bodyParameters entry ${misplaced.join(", ")}. ${moveHint(misplaced, others, rootOf)}`);
|
|
1007
1021
|
}
|
|
1022
|
+
var declaredFieldsOfParams = (params) => params.flatMap((p) => p.name && p.type ? [{ name: p.name, location: p.type }] : []);
|
|
1008
1023
|
var isPickerParam = (param) => param.design?.component === "Resources";
|
|
1009
|
-
function parameterBucket(key, params, type) {
|
|
1024
|
+
function parameterBucket(key, params, type, declaredFields) {
|
|
1010
1025
|
const declared = params.filter((p) => p.type === type && p.name);
|
|
1011
1026
|
return {
|
|
1012
1027
|
key,
|
|
1013
1028
|
names: declared.map((p) => p.name),
|
|
1014
|
-
|
|
1029
|
+
companions: declared.filter(isPickerParam).map((p) => resourceFolderKeyFieldName(p.name)).filter((companion) => companionBucket(declaredFields, companion, key) === key)
|
|
1015
1030
|
};
|
|
1016
1031
|
}
|
|
1017
1032
|
function assertDeclaredParameters(authored, bucket, others, target) {
|
|
1018
|
-
const accepted = new Set([
|
|
1019
|
-
...bucket.names,
|
|
1020
|
-
...bucket.pickers.map(resourceFolderKeyFieldName)
|
|
1021
|
-
]);
|
|
1033
|
+
const accepted = new Set([...bucket.names, ...bucket.companions]);
|
|
1022
1034
|
const unknown = Object.keys(authored ?? {}).filter((name) => !accepted.has(name));
|
|
1023
1035
|
if (unknown.length === 0)
|
|
1024
1036
|
return;
|
|
1025
|
-
const moves = others.flatMap((other) => {
|
|
1026
|
-
const here = unknown.filter((name) => other.names.includes(name));
|
|
1027
|
-
return here.length > 0 ? [`put ${here.join(", ")} under ${other.key}`] : [];
|
|
1028
|
-
});
|
|
1029
|
-
const moveText = moves.join("; ");
|
|
1030
1037
|
throw new InvalidInputDetailsError([
|
|
1031
1038
|
bucket.names.length === 0 ? `"${target}" declares no ${bucket.key}, but the authored ${bucket.key} sets ${unknown.join(", ")}.` : `"${target}" has no ${bucket.key} entry ${unknown.join(", ")}. Its ${bucket.key}: ${bucket.names.join(", ")}.`,
|
|
1032
|
-
|
|
1039
|
+
moveHint(unknown, others)
|
|
1033
1040
|
].filter(Boolean).join(" "));
|
|
1034
1041
|
}
|
|
1042
|
+
var bucketTakes = (bucket, name) => bucket.names.includes(name) || bucket.companions.includes(name);
|
|
1043
|
+
function moveHint(names, others, rootOf = (name) => name) {
|
|
1044
|
+
const text = others.flatMap((other) => {
|
|
1045
|
+
const here = [
|
|
1046
|
+
...new Set(names.map(rootOf).filter((name) => bucketTakes(other, name)))
|
|
1047
|
+
];
|
|
1048
|
+
return here.length > 0 ? [`put ${here.join(", ")} under ${other.key}`] : [];
|
|
1049
|
+
}).join("; ");
|
|
1050
|
+
return text === "" ? "" : `${text[0].toUpperCase()}${text.slice(1)}.`;
|
|
1051
|
+
}
|
|
1035
1052
|
async function assertPickersResolved(client, values, resolved, labels) {
|
|
1036
1053
|
if (!values)
|
|
1037
1054
|
return;
|
|
@@ -1054,7 +1071,52 @@ function authoredFieldValues(inputDetails) {
|
|
|
1054
1071
|
};
|
|
1055
1072
|
return Object.keys(values).length > 0 ? values : undefined;
|
|
1056
1073
|
}
|
|
1057
|
-
|
|
1074
|
+
var isMap = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
1075
|
+
function bucketMaps(caseShape, target, bucket, create) {
|
|
1076
|
+
const slot = (holder, key) => {
|
|
1077
|
+
if (!isMap(holder[key]) && create)
|
|
1078
|
+
holder[key] = {};
|
|
1079
|
+
const found = holder[key];
|
|
1080
|
+
return isMap(found) ? [found] : [];
|
|
1081
|
+
};
|
|
1082
|
+
if (target === "activity") {
|
|
1083
|
+
const name = {
|
|
1084
|
+
pathParameters: "pathParameters",
|
|
1085
|
+
queryParameters: "queryParameters",
|
|
1086
|
+
bodyParameters: "body",
|
|
1087
|
+
eventParameters: undefined
|
|
1088
|
+
}[bucket];
|
|
1089
|
+
if (name === undefined)
|
|
1090
|
+
return [];
|
|
1091
|
+
let input = caseShape.inputs.find((i) => i.name === name);
|
|
1092
|
+
if (!input && create) {
|
|
1093
|
+
input = { name, type: "json", target: name, body: {} };
|
|
1094
|
+
caseShape.inputs.push(input);
|
|
1095
|
+
}
|
|
1096
|
+
return isMap(input?.body) ? [input.body] : [];
|
|
1097
|
+
}
|
|
1098
|
+
const body = caseShape.inputs.find((i) => i.name === "body")?.body;
|
|
1099
|
+
if (!isMap(body))
|
|
1100
|
+
return [];
|
|
1101
|
+
if (bucket === "eventParameters")
|
|
1102
|
+
return slot(body, "queryParams");
|
|
1103
|
+
if (bucket === "bodyParameters")
|
|
1104
|
+
return [];
|
|
1105
|
+
const metadataBody = caseShape.context?.find((c) => c.name === "metadata")?.body;
|
|
1106
|
+
const inputMetadata = isMap(metadataBody) ? slot(metadataBody, "inputMetadata")[0] : undefined;
|
|
1107
|
+
const metadataKey = bucket === "queryParameters" ? "triggerQueryParameters" : "triggerPathParameters";
|
|
1108
|
+
return [
|
|
1109
|
+
...slot(body, "parameters"),
|
|
1110
|
+
...inputMetadata ? slot(inputMetadata, metadataKey) : []
|
|
1111
|
+
];
|
|
1112
|
+
}
|
|
1113
|
+
function pickerBucketOf(caseShape, target, field) {
|
|
1114
|
+
const body = caseShape.inputs.find((i) => i.name === "body")?.body;
|
|
1115
|
+
const shared = target === "trigger" && isMap(body) ? body.parameters : undefined;
|
|
1116
|
+
const holds = (bucket, ownOnly) => bucketMaps(caseShape, target, bucket, false).some((map) => (!ownOnly || map !== shared) && (field in map));
|
|
1117
|
+
return REQUEST_BUCKETS.find((bucket) => holds(bucket, true)) ?? REQUEST_BUCKETS.find((bucket) => holds(bucket, false));
|
|
1118
|
+
}
|
|
1119
|
+
function bindResolvedResources(caseShape, resolved, client, target) {
|
|
1058
1120
|
if (!caseShape || resolved.length === 0)
|
|
1059
1121
|
return [];
|
|
1060
1122
|
const emitted = storedActivityBindings(client.getBindings());
|
|
@@ -1063,15 +1125,18 @@ function bindResolvedResources(caseShape, resolved, client) {
|
|
|
1063
1125
|
const stored = Array.isArray(metadata.body.bindings) ? metadata.body.bindings : [];
|
|
1064
1126
|
metadata.body.bindings = [...stored, ...emitted];
|
|
1065
1127
|
}
|
|
1128
|
+
const declared = declaredFieldsOf(client);
|
|
1066
1129
|
const bindings = [];
|
|
1067
1130
|
for (const plan of planResourceBindings(emitted, resolved)) {
|
|
1068
1131
|
const field = plan.rows[0].field;
|
|
1069
|
-
const
|
|
1070
|
-
if (
|
|
1132
|
+
const pickerBucket = pickerBucketOf(caseShape, target, field);
|
|
1133
|
+
if (pickerBucket === undefined)
|
|
1071
1134
|
continue;
|
|
1072
1135
|
const rows = plan.rows.map((row) => {
|
|
1073
1136
|
const bindingIdPlaceholder = resourceBindingIdPlaceholder(row.field);
|
|
1074
|
-
|
|
1137
|
+
const isPicker = row.field === field;
|
|
1138
|
+
const maps = isPicker ? bucketMaps(caseShape, target, pickerBucket, false).filter((map) => (field in map)) : bucketMaps(caseShape, target, companionBucket(declared, row.field, pickerBucket), true);
|
|
1139
|
+
for (const map of maps) {
|
|
1075
1140
|
map[row.field] = `=bindings.${bindingIdPlaceholder}`;
|
|
1076
1141
|
}
|
|
1077
1142
|
return {
|
|
@@ -1090,20 +1155,6 @@ function bindResolvedResources(caseShape, resolved, client) {
|
|
|
1090
1155
|
}
|
|
1091
1156
|
return bindings;
|
|
1092
1157
|
}
|
|
1093
|
-
function valueMaps(caseShape) {
|
|
1094
|
-
const isMap = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
1095
|
-
const nestedMaps = (holder, keys) => keys.map((key) => holder[key]).filter(isMap);
|
|
1096
|
-
const inputMaps = caseShape.inputs.flatMap((input) => isMap(input.body) ? [
|
|
1097
|
-
input.body,
|
|
1098
|
-
...nestedMaps(input.body, ["queryParams", "parameters"])
|
|
1099
|
-
] : []);
|
|
1100
|
-
const inputMetadata = caseShape.context?.find((entry) => entry.name === "metadata")?.body?.inputMetadata;
|
|
1101
|
-
const stashMaps = isMap(inputMetadata) ? nestedMaps(inputMetadata, [
|
|
1102
|
-
"triggerQueryParameters",
|
|
1103
|
-
"triggerPathParameters"
|
|
1104
|
-
]) : [];
|
|
1105
|
-
return [...inputMaps, ...stashMaps];
|
|
1106
|
-
}
|
|
1107
1158
|
async function buildHttpActivitySpec(connectorKey, objectName, httpMethod, resolvedConnection, diagnostics, opts, typecacheCtx) {
|
|
1108
1159
|
diagnostics.fetched.push("synthetic.HttpRequest");
|
|
1109
1160
|
const verb = httpMethodToVerb(httpMethod);
|
|
@@ -1114,7 +1165,7 @@ async function buildHttpActivitySpec(connectorKey, objectName, httpMethod, resol
|
|
|
1114
1165
|
objectName,
|
|
1115
1166
|
httpMethod
|
|
1116
1167
|
};
|
|
1117
|
-
const essentialConfiguration =
|
|
1168
|
+
const essentialConfiguration = buildActivityEssentialConfiguration2(instanceParameters, {
|
|
1118
1169
|
operation: verb,
|
|
1119
1170
|
description: "",
|
|
1120
1171
|
method: httpMethod,
|
|
@@ -1243,9 +1294,11 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
1243
1294
|
const queryParameters = scope.query.map(parameterFromIS);
|
|
1244
1295
|
const pathParameters = scope.path.map(parameterFromIS);
|
|
1245
1296
|
const triggerInputDetails = opts.inputDetails;
|
|
1297
|
+
const scopeParams = [...scope.query, ...scope.path];
|
|
1298
|
+
const scopeDeclared = declaredFieldsOfParams(scopeParams);
|
|
1246
1299
|
const scopeBuckets = [
|
|
1247
|
-
parameterBucket("queryParameters", scope.query, "query"),
|
|
1248
|
-
parameterBucket("pathParameters", scope.path, "path")
|
|
1300
|
+
parameterBucket("queryParameters", scope.query, "query", scopeDeclared),
|
|
1301
|
+
parameterBucket("pathParameters", scope.path, "path", scopeDeclared)
|
|
1249
1302
|
];
|
|
1250
1303
|
if (eventOpFlags !== null) {
|
|
1251
1304
|
for (const bucket of scopeBuckets) {
|
|
@@ -1283,7 +1336,7 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
1283
1336
|
});
|
|
1284
1337
|
await assertPickersResolved(triggerClient, resolvePickers ? pickerValues : undefined, resolvedResources, optionLabels(opts.optionLabels));
|
|
1285
1338
|
const { essentialConfiguration: triggerEssentialConfig } = triggerClient.getEssentialConfiguration();
|
|
1286
|
-
|
|
1339
|
+
assertActivityMetadataResolved2(triggerEssentialConfig, resolvedConnection.context.id);
|
|
1287
1340
|
const designedMeta = await withTriggerDesignAction({
|
|
1288
1341
|
triggerMeta,
|
|
1289
1342
|
eventObject: eventOpFlags,
|
|
@@ -1297,7 +1350,7 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
1297
1350
|
});
|
|
1298
1351
|
const fieldsMap = designedMeta.fields ?? {};
|
|
1299
1352
|
const allFields = Object.values(fieldsMap);
|
|
1300
|
-
const eventParamCompacts =
|
|
1353
|
+
const eventParamCompacts = extractTriggerEventParameters2(designedMeta, eventOperation);
|
|
1301
1354
|
const eventParameters = eventParamCompacts.map(compactToFieldSpec);
|
|
1302
1355
|
const filterFieldDefs = extractTriggerFilterFieldsLocal(designedMeta);
|
|
1303
1356
|
const responseFields = allFields.map((f) => triggerFieldToFieldSpec(f, false));
|
|
@@ -1345,7 +1398,7 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
1345
1398
|
inputMetadata: triggerInputDetails ? triggerScopeInputMetadata(triggerInputDetails) : {}
|
|
1346
1399
|
});
|
|
1347
1400
|
}
|
|
1348
|
-
const resourceBindings = bindResolvedResources(caseShape, resolvedResources, triggerClient);
|
|
1401
|
+
const resourceBindings = bindResolvedResources(caseShape, resolvedResources, triggerClient, "trigger");
|
|
1349
1402
|
return {
|
|
1350
1403
|
specVersion: 1,
|
|
1351
1404
|
identity: {
|
|
@@ -1385,7 +1438,7 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
1385
1438
|
};
|
|
1386
1439
|
}
|
|
1387
1440
|
async function fetchTriggerMetadata(connectorKey, objectName, operationName, connectionId) {
|
|
1388
|
-
return
|
|
1441
|
+
return fetchConnectorTriggerMetadata2(connectorKey, operationName, objectName, connectionId);
|
|
1389
1442
|
}
|
|
1390
1443
|
function collectFields(metadata) {
|
|
1391
1444
|
const direct = metadata.fields;
|
|
@@ -1496,12 +1549,12 @@ function toFilterFieldSpec(cf) {
|
|
|
1496
1549
|
return ff;
|
|
1497
1550
|
}
|
|
1498
1551
|
function extractTriggerFilterFieldsLocal(triggerMeta) {
|
|
1499
|
-
return
|
|
1552
|
+
return extractTriggerFilterFields2(triggerMeta).map(toFilterFieldSpec);
|
|
1500
1553
|
}
|
|
1501
1554
|
function buildActivityFilter(metadata, method, verb) {
|
|
1502
1555
|
if (verb !== "list" && verb !== "read")
|
|
1503
1556
|
return;
|
|
1504
|
-
const filterFields =
|
|
1557
|
+
const filterFields = extractActivityFilterFields2(metadata, method).map(toFilterFieldSpec);
|
|
1505
1558
|
return filterFields.length > 0 ? { builder: "ceql", fields: filterFields } : undefined;
|
|
1506
1559
|
}
|
|
1507
1560
|
function withBuilderOperators(filter, builder, builderFields) {
|
|
@@ -1554,7 +1607,7 @@ function withMultipartFileValues(multipart, inputDetails) {
|
|
|
1554
1607
|
if (multipart === null || inputDetails?.bodyParameters === undefined) {
|
|
1555
1608
|
return { multipart, inputDetails };
|
|
1556
1609
|
}
|
|
1557
|
-
const { multipartParams, bodyParameters } =
|
|
1610
|
+
const { multipartParams, bodyParameters } = inlineMultipartFileValues2(multipart.parameters, inputDetails.bodyParameters);
|
|
1558
1611
|
const unmoved = multipart.parameters.find((param) => param.dataType === "file" && bodyParameters?.[param.name] !== undefined);
|
|
1559
1612
|
if (unmoved) {
|
|
1560
1613
|
throw new InvalidInputDetailsError(`bodyParameters.${unmoved.name} takes a file variable as a string, e.g. "=js:vars.download".`);
|
|
@@ -1571,10 +1624,10 @@ function withMultipartFileValues(multipart, inputDetails) {
|
|
|
1571
1624
|
};
|
|
1572
1625
|
}
|
|
1573
1626
|
function buildMultipartSpec(params) {
|
|
1574
|
-
const multiparts =
|
|
1627
|
+
const multiparts = extractMultipartParameters2(params);
|
|
1575
1628
|
if (multiparts.length === 0)
|
|
1576
1629
|
return null;
|
|
1577
|
-
const inputMeta =
|
|
1630
|
+
const inputMeta = buildInputMetadata2(multiparts, "create");
|
|
1578
1631
|
return {
|
|
1579
1632
|
bodyFieldName: inputMeta?.multipart?.bodyFieldName ?? null,
|
|
1580
1633
|
parameters: multiparts.map((m) => ({
|
|
@@ -1639,4 +1692,4 @@ export {
|
|
|
1639
1692
|
nestDottedKeys
|
|
1640
1693
|
};
|
|
1641
1694
|
|
|
1642
|
-
//# debugId=
|
|
1695
|
+
//# debugId=E51E4F39FD53695764756E2164756E21
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
isSolutionUploadHttpError2,
|
|
4
4
|
buildSolutionUploadFailureOutput2,
|
|
5
5
|
uploadOrOverwriteSolution2
|
|
6
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-2x40ye7a.js";
|
|
7
7
|
import {
|
|
8
8
|
prepareProjectLocation2,
|
|
9
9
|
findSolutionFile2,
|
|
10
10
|
updateSolutionFile2,
|
|
11
11
|
tryRegisterProjectInParentSolution2
|
|
12
|
-
} from "./packager-tool-
|
|
13
|
-
import"./packager-tool-
|
|
14
|
-
import"./packager-tool-
|
|
12
|
+
} from "./packager-tool-m7s4n455.js";
|
|
13
|
+
import"./packager-tool-j8mnpsv8.js";
|
|
14
|
+
import"./packager-tool-p64w2wrt.js";
|
|
15
15
|
export {
|
|
16
16
|
buildSolutionPackageFromDir2 as buildSolutionPackageFromDir,
|
|
17
17
|
buildSolutionUploadFailureOutput2 as buildSolutionUploadFailureOutput,
|