@uipath/case-tool 1.204.0 → 1.205.0-preview.258
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/dist/THIRD-PARTY-NOTICES.md +24 -11
- package/dist/{authoring-6ckkzfc9.js → authoring-kqh34zzm.js} +49 -30
- package/dist/{business-rule-export-kg5bk8aw.js → business-rule-export-ey588rv7.js} +2 -2
- package/dist/canvas-notes-86fxx1t8.js +19 -0
- package/dist/{case-api-rvamfn02.js → case-api-sme7esce.js} +6 -6
- package/dist/case-bindings-service-cht20gqt.js +430 -0
- package/dist/case-debug-solution-projects-h3w2nx0a.js +34 -0
- package/dist/{case-debug-studio-web-service-xxfesw4v.js → case-debug-studio-web-service-3mkrtaet.js} +16 -10
- package/dist/{case-described-io-service-14hdnqcc.js → case-described-io-service-dx1f4nxe.js} +37 -11
- package/dist/case-event-trigger-bindings-g9ftnm4x.js +16 -0
- package/dist/{case-format-service-yb48785t.js → case-format-service-6aew6tqc.js} +2 -2
- package/dist/{case-pack-service-9185h6ez.js → case-pack-service-pqq8wnfd.js} +6 -6
- package/dist/case-schema-version-h820ne16.js +20 -0
- package/dist/{case-shape-reader-mw58avr0.js → case-shape-reader-dsbraetf.js} +1 -1
- package/dist/{case-splice-service-tkmb7xjp.js → case-splice-service-s5gccctq.js} +53 -8
- package/dist/{case-validate-service-c84e2bhv.js → case-validate-service-rey6btew.js} +128 -42
- package/dist/{connector-enrichment-service-hfv0kwht.js → connector-enrichment-service-crqs2216.js} +23 -20
- package/dist/{connector-lookup-service-whgjceyj.js → connector-lookup-service-dwv8q5eh.js} +6 -6
- package/dist/connector-task-shape-mpazkf7s.js +14 -0
- package/dist/{connector-task-spec-k0cwavrm.js → connector-task-spec-trs4tcb3.js} +196 -40
- package/dist/{de-MUJPA4EB-dpg7t2rw.js → de-UZI7FJDO-mwvc4cxe.js} +29 -2
- package/dist/{de-FGHEJRCI-rv513mfh.js → de-WLW6KWOJ-2qnsqdtw.js} +238 -31
- package/dist/{debug-service-ch3v6jmm.js → debug-service-7q98j726.js} +3 -3
- package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
- package/dist/{en-FBPVNKFN-dqt573xn.js → en-EJCBA3LK-dtpdghgj.js} +12 -4
- package/dist/{en-BWGKA5OE-1qkvb9rn.js → en-M7GQYBV2-5nfmpnfz.js} +88 -6
- package/dist/{enrichment-service-3f1kygjs.js → enrichment-service-hv7ff88p.js} +56 -12
- package/dist/{es-7SE7HX2X-8yh1aj2y.js → es-4UBUTCQA-m1ytpyx2.js} +29 -2
- package/dist/{es-KR3ZSNMP-84zphx0x.js → es-5THCNRFN-tqwyrdgy.js} +235 -28
- package/dist/{es-MX-2MYFZU7X-3rek4r73.js → es-MX-5RELIXKI-9jhqtddc.js} +29 -2
- package/dist/{es-MX-XXZJGC4R-2mr8jtgm.js → es-MX-TWZBRAXK-gqd9swzw.js} +237 -30
- package/dist/filter-engine-7ep90g7f.js +11 -0
- package/dist/{fr-Y6NPVODW-8vr1ja4b.js → fr-CERONSRC-edpxhbmb.js} +237 -30
- package/dist/{fr-MDFKNZ4C-h4a122k9.js → fr-VBM5WRC2-63z7w4mh.js} +29 -2
- package/dist/index-332n0kxj.js +282 -0
- package/dist/{index-wmffgzmr.js → index-5dxh9z60.js} +21751 -11098
- package/dist/{index-aw2gqqat.js → index-a2fvrrth.js} +4 -4
- package/dist/{index-4yanx3rn.js → index-ekwtgx7y.js} +1089 -218
- package/dist/{index-ng2f77my.js → index-fyc0k5dd.js} +985 -617
- package/dist/index-n9qvnx4x.js +29 -0
- package/dist/{index-hhsf00x8.js → index-ngs0a2he.js} +1 -1
- package/dist/{index-j2r3jb6c.js → index-xq6ajhgq.js} +2 -2
- package/dist/index.js +12 -12
- package/dist/init-entry-points-hhpv3e3f.js +98 -0
- package/dist/{input-reader-1tcqt27f.js → input-reader-c7wz8ra2.js} +3 -3
- package/dist/{ja-UTQEAP34-8e0q6swp.js → ja-43QL7CGO-c3q8gre9.js} +29 -2
- package/dist/{ja-Q5PXKJ2V-p4msxzjd.js → ja-U2MCNHGT-gz0ap1jk.js} +235 -28
- package/dist/{known-types-0h9kqwyy.js → known-types-jvkdgmzz.js} +5 -4
- package/dist/{ko-AXCHW2OK-askct7f6.js → ko-TLL6Z6CD-wrt3n8a9.js} +29 -2
- package/dist/{ko-AYBDSRZG-41mdmsg1.js → ko-XAUYQWDR-zp81gjp4.js} +237 -30
- package/dist/localSolutionDiscovery-yyx234ak.js +13 -0
- package/dist/migration-diagnosis-ns5cw4e3.js +99 -0
- package/dist/{node-strategy-5pz40tee.js → node-strategy-v442hwgd.js} +1 -1
- package/dist/node-sync-service-1wkcyn1n.js +57 -0
- package/dist/out-target-wjgmna0r.js +111 -0
- package/dist/{packager-tool-85q4f3pq.js → packager-tool-1pcmxqny.js} +3 -3
- package/dist/{packager-tool-8a9yqfq7.js → packager-tool-1yfw674x.js} +4 -2
- package/dist/{packager-tool-pdhhzfr5.js → packager-tool-29x6vran.js} +296 -417
- package/dist/packager-tool-2sn7d8fd.js +41 -0
- package/dist/packager-tool-4p11fvf4.js +92 -0
- package/dist/{packager-tool-25hng8h4.js → packager-tool-4rtktkhv.js} +16211 -13084
- package/dist/{packager-tool-yfm83bzd.js → packager-tool-67vy1fz3.js} +4 -3
- package/dist/{packager-tool-d88rqwk8.js → packager-tool-6z1hsm2h.js} +13 -5
- package/dist/packager-tool-7hw344bt.js +107 -0
- package/dist/{packager-tool-3q3d1hk8.js → packager-tool-83v804p7.js} +56 -6
- package/dist/{packager-tool-00y70spr.js → packager-tool-87y6xw3a.js} +2 -1
- package/dist/packager-tool-93mdeqay.js +18 -0
- package/dist/{packager-tool-64rg5ekd.js → packager-tool-9e59z4d6.js} +75 -7
- package/dist/{packager-tool-vepqrsse.js → packager-tool-9kf3fqtr.js} +2 -2
- package/dist/packager-tool-9kvkzc05.js +74 -0
- package/dist/{packager-tool-s6619wtx.js → packager-tool-9sd483vs.js} +2 -2
- package/dist/{packager-tool-f78ntj5g.js → packager-tool-9y1w2wds.js} +51 -6
- package/dist/packager-tool-a17g0pj1.js +62 -0
- package/dist/{packager-tool-167qap9m.js → packager-tool-aagnvyba.js} +845 -38
- package/dist/{packager-tool-0p6dbsp0.js → packager-tool-c5q10254.js} +5 -5
- package/dist/{packager-tool-wj9d9mqe.js → packager-tool-e15kqpyh.js} +12 -13
- package/dist/{packager-tool-c31qx8kc.js → packager-tool-ezds6t5e.js} +2 -2
- package/dist/{packager-tool-d3zvghjd.js → packager-tool-f2z2dscy.js} +308 -120
- package/dist/{packager-tool-hvzjm2nk.js → packager-tool-f8vwy92w.js} +2093 -5805
- package/dist/{packager-tool-rgpdaxbx.js → packager-tool-gx2cer6a.js} +5385 -1098
- package/dist/{packager-tool-xdxr3ync.js → packager-tool-hdxtgckw.js} +11 -1
- package/dist/{packager-tool-mr149jsw.js → packager-tool-k5cpxdm4.js} +17 -7
- package/dist/packager-tool-k6jbedyc.js +69 -0
- package/dist/packager-tool-kdhey8gz.js +153 -0
- package/dist/{packager-tool-cenvh23g.js → packager-tool-kyrm4e5m.js} +718 -87
- package/dist/packager-tool-mqy97y5f.js +52 -0
- package/dist/{packager-tool-jfysbxdt.js → packager-tool-mzf4gmph.js} +4 -4
- package/dist/packager-tool-n7w9wx62.js +25 -0
- package/dist/{packager-tool-7q6z6npd.js → packager-tool-pcvhcn2k.js} +93 -11
- package/dist/packager-tool-r0x3qh59.js +307 -0
- package/dist/{packager-tool-w1b5pyj6.js → packager-tool-r6b5ktzb.js} +730 -14
- package/dist/{packager-tool-zbrda9sn.js → packager-tool-rk25wp3c.js} +1 -1
- package/dist/{packager-tool-xcd87qyx.js → packager-tool-v2kcgjbf.js} +2 -3
- package/dist/{case-bindings-service-d9vezn69.js → packager-tool-wekqkmgn.js} +20 -231
- package/dist/packager-tool-yct6zp4m.js +335 -0
- package/dist/{packager-tool-kpqr938m.js → packager-tool-ydyvtknp.js} +26 -3
- package/dist/{packager-tool-v99ygh9f.js → packager-tool-yn33pw57.js} +124 -58
- package/dist/{packager-tool-4rqd21wc.js → packager-tool-yn7r7zq2.js} +19 -5
- package/dist/{packager-tool-cmwets3m.js → packager-tool-zf8f9pmm.js} +1 -1
- package/dist/packager-tool.js +3 -3
- package/dist/{project-artifacts-rng5m6r2.js → project-artifacts-bgyyb0dm.js} +1 -1
- package/dist/{pt-BR-TKHNHMET-sn91xyq0.js → pt-BR-GNQNAAZ2-xadharv4.js} +237 -30
- package/dist/{pt-BR-Y6K6XHXK-mp3hwhw1.js → pt-BR-USP2T7GD-pedn77m1.js} +29 -2
- package/dist/{pt-3DIO5QWG-59b3f4bc.js → pt-RMIAKZB4-67enhx3m.js} +29 -2
- package/dist/{pt-ROXU257Y-2f6bxev4.js → pt-TO2DARY2-ftcce1bv.js} +237 -30
- package/dist/{resolved-check-p99hysaw.js → resolved-check-aqw7568y.js} +1 -1
- package/dist/{resourcesSyncService-zwjyp1qx.js → resourcesSyncService-d302jnap.js} +32 -170
- package/dist/{ro-BWR3ONRR-vzx3hy8a.js → ro-GHOBYW2S-mhnqsgaa.js} +29 -2
- package/dist/{ro-AVAWPKOO-b89pw79r.js → ro-WUYJV6OW-a8d9qy1n.js} +235 -28
- package/dist/{sdd-convert-service-vf0ps358.js → sdd-convert-service-8jpew7vz.js} +686 -445
- package/dist/{sdd-lookup-dwzpvvwn.js → sdd-lookup-fe900sdb.js} +2 -2
- package/dist/{sdd-resolve-service-mjqad2nn.js → sdd-resolve-service-qdtmxw9b.js} +38 -13
- package/dist/sdd-resolve-siblings-6kfxc2t6.js +53 -0
- package/dist/{solution-auth-kddmbm0p.js → solution-auth-30yycqtv.js} +3 -3
- package/dist/solution-discovery-g6ksnrg1.js +38 -0
- package/dist/{strict-case-rules-tz37bspw.js → strict-case-rules-4tjcaznr.js} +3 -2
- package/dist/{strict-entry-points-v14d7y50.js → strict-entry-points-g2pd4mf4.js} +29 -1
- package/dist/{strict-sdd-audit-4aqdeh59.js → strict-sdd-audit-q7tb9yj7.js} +7 -5
- package/dist/task-type-declaration-7a8fqdvs.js +46 -0
- package/dist/tool.js +12 -12
- package/dist/{tr-5IIHSFW5-hw4cewew.js → tr-GDTLECMM-k5fhmq13.js} +29 -2
- package/dist/{tr-JMIP7ZSL-c39b6pe4.js → tr-M3F5A6AU-bb0tg39m.js} +235 -28
- package/dist/{trigger-enrichment-service-g3vt051f.js → trigger-enrichment-service-sj0p2d1j.js} +23 -20
- package/dist/trigger-entry-point-id-yhqwnkx9.js +15 -0
- package/dist/{zh-CN-IFFXSEJS-9wm9gmrv.js → zh-CN-C5G4PC7C-ds9gkptg.js} +235 -28
- package/dist/{zh-CN-R2KU4U5L-tc1hat59.js → zh-CN-I5D7WHBD-sr5h0a98.js} +29 -2
- package/dist/{zh-TW-GNKMELBF-j674515r.js → zh-TW-2AVLM723-288pkc1z.js} +29 -2
- package/dist/{zh-TW-IYBNYAMG-8727c7v2.js → zh-TW-62HZIG6O-787kdwex.js} +234 -27
- package/package.json +2 -2
- package/dist/migration-diagnosis-ag2sgd1e.js +0 -71
- package/dist/node-sync-service-2tfrgbjs.js +0 -36
- package/dist/out-target-jakehnd3.js +0 -70
- package/dist/packager-tool-57pzrd0g.js +0 -32
- package/dist/packager-tool-dthjwajc.js +0 -13
- package/dist/packager-tool-xy04yy0v.js +0 -32
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nestDottedKeys
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-c5q10254.js";
|
|
4
4
|
import {
|
|
5
5
|
lookupConnectorDisplayName,
|
|
6
6
|
lookupTypeCacheEntry
|
|
7
|
-
} from "./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
7
|
+
} from "./packager-tool-1pcmxqny.js";
|
|
8
|
+
import"./packager-tool-ydyvtknp.js";
|
|
9
|
+
import"./packager-tool-9sd483vs.js";
|
|
10
|
+
import"./packager-tool-gx2cer6a.js";
|
|
10
11
|
import"./packager-tool-bfgdz1zh.js";
|
|
11
|
-
import"./packager-tool-s6619wtx.js";
|
|
12
12
|
import {
|
|
13
13
|
extractActivityFilterFields,
|
|
14
14
|
extractTriggerEventParameters,
|
|
@@ -16,40 +16,52 @@ import {
|
|
|
16
16
|
fetchConnectionInfo,
|
|
17
17
|
fetchConnectorMetadata,
|
|
18
18
|
fetchConnectorTriggerMetadata
|
|
19
|
-
} from "./packager-tool-
|
|
20
|
-
import"./packager-tool-
|
|
19
|
+
} from "./packager-tool-29x6vran.js";
|
|
20
|
+
import"./packager-tool-ezds6t5e.js";
|
|
21
21
|
import {
|
|
22
22
|
assertActivityMetadataResolved,
|
|
23
23
|
buildActivityEssentialConfiguration,
|
|
24
24
|
buildInputMetadata,
|
|
25
|
-
|
|
25
|
+
configureActivityClient,
|
|
26
|
+
createSolutionResourceConfigurationsProvider,
|
|
26
27
|
extractMultipartParameters,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
findTriggerDesignAction,
|
|
29
|
+
getEventOperationObjects,
|
|
30
|
+
planResourceBindings,
|
|
31
|
+
resourcePickersRequestNeeds,
|
|
32
|
+
runTriggerDesignAction,
|
|
33
|
+
storedActivityBindings,
|
|
34
|
+
triggerEventParameters
|
|
35
|
+
} from "./packager-tool-r6b5ktzb.js";
|
|
36
|
+
import"./packager-tool-7hw344bt.js";
|
|
37
|
+
import"./packager-tool-n7w9wx62.js";
|
|
38
|
+
import"./packager-tool-f8vwy92w.js";
|
|
39
|
+
import {
|
|
40
|
+
findSolutionFromCwd
|
|
41
|
+
} from "./packager-tool-yct6zp4m.js";
|
|
42
|
+
import"./packager-tool-4rtktkhv.js";
|
|
43
|
+
import"./packager-tool-pcvhcn2k.js";
|
|
31
44
|
import"./packager-tool-sc961w0q.js";
|
|
32
|
-
import"./packager-tool-
|
|
33
|
-
import"./packager-tool-hvzjm2nk.js";
|
|
45
|
+
import"./packager-tool-6z1hsm2h.js";
|
|
34
46
|
import"./packager-tool-jysvpt8p.js";
|
|
35
47
|
import"./packager-tool-sq931c23.js";
|
|
36
48
|
import"./packager-tool-mknccck5.js";
|
|
37
|
-
import"./packager-tool-167qap9m.js";
|
|
38
49
|
import {
|
|
39
50
|
TYPECACHE_ACTIVITY_INDEX_TYPES,
|
|
40
51
|
TYPECACHE_TRIGGER_INDEX_TYPES
|
|
41
52
|
} from "./packager-tool-7nxppa3d.js";
|
|
42
|
-
import"./packager-tool-
|
|
43
|
-
import"./packager-tool-
|
|
44
|
-
import"./packager-tool-
|
|
53
|
+
import"./packager-tool-aagnvyba.js";
|
|
54
|
+
import"./packager-tool-mzf4gmph.js";
|
|
55
|
+
import"./packager-tool-9kf3fqtr.js";
|
|
56
|
+
import"./packager-tool-9e59z4d6.js";
|
|
57
|
+
import"./packager-tool-yn33pw57.js";
|
|
45
58
|
import"./packager-tool-0gctz400.js";
|
|
46
59
|
import"./packager-tool-qa9gftnj.js";
|
|
47
60
|
import"./packager-tool-yc4kw997.js";
|
|
48
|
-
import"./packager-tool-64rg5ekd.js";
|
|
49
61
|
import {
|
|
50
62
|
catchError
|
|
51
|
-
} from "./packager-tool-
|
|
52
|
-
import"./packager-tool-
|
|
63
|
+
} from "./packager-tool-83v804p7.js";
|
|
64
|
+
import"./packager-tool-hdxtgckw.js";
|
|
53
65
|
import"./packager-tool-1yh8g550.js";
|
|
54
66
|
|
|
55
67
|
// src/services/case-spec-input-validator.ts
|
|
@@ -176,6 +188,7 @@ function normalizeGroupOperator(value) {
|
|
|
176
188
|
// src/services/connector-task-spec.types.ts
|
|
177
189
|
var CONN_BINDING_ID_PLACEHOLDER = "{{CONN_BINDING_ID}}";
|
|
178
190
|
var FOLDER_BINDING_ID_PLACEHOLDER = "{{FOLDER_BINDING_ID}}";
|
|
191
|
+
var resourceBindingIdPlaceholder = (field) => `{{RESOURCE_BINDING_ID:${field}}}`;
|
|
179
192
|
|
|
180
193
|
// src/services/trigger-scope-parameters.ts
|
|
181
194
|
var isParam = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && typeof value.name === "string";
|
|
@@ -768,11 +781,15 @@ async function buildActivitySpec(connectorKey, objectName, httpMethod, resolvedC
|
|
|
768
781
|
objectName,
|
|
769
782
|
httpMethod
|
|
770
783
|
};
|
|
771
|
-
const
|
|
784
|
+
const authoredValues = opts.skipCaseShape ? undefined : authoredFieldValues(inputDetails);
|
|
785
|
+
const { client: activityClient, resolvedResources } = await configureActivityClient({
|
|
772
786
|
instanceParameters,
|
|
773
787
|
connectionId: resolvedConnection.context.id,
|
|
774
|
-
savedFilterTrees
|
|
788
|
+
savedFilterTrees,
|
|
789
|
+
fieldValues: authoredValues ?? null,
|
|
790
|
+
solutionDir: authoredValues ? await solutionDirFor(opts) : null
|
|
775
791
|
});
|
|
792
|
+
await assertPickersResolved(activityClient, authoredValues, resolvedResources);
|
|
776
793
|
const { essentialConfiguration: essentialConfig } = activityClient.getEssentialConfiguration();
|
|
777
794
|
assertActivityMetadataResolved(essentialConfig, resolvedConnection.context.id);
|
|
778
795
|
const activityCeqlExpression = activityFilterParamName ? activityClient.getCompiledFilter(activityFilterParamName) : null;
|
|
@@ -807,6 +824,7 @@ async function buildActivitySpec(connectorKey, objectName, httpMethod, resolvedC
|
|
|
807
824
|
essentialConfiguration
|
|
808
825
|
});
|
|
809
826
|
}
|
|
827
|
+
const resourceBindings = bindResolvedResources(caseShape, resolvedResources, activityClient);
|
|
810
828
|
return {
|
|
811
829
|
specVersion: 1,
|
|
812
830
|
identity: {
|
|
@@ -842,8 +860,124 @@ async function buildActivitySpec(connectorKey, objectName, httpMethod, resolvedC
|
|
|
842
860
|
essentialConfiguration,
|
|
843
861
|
references,
|
|
844
862
|
diagnostics,
|
|
845
|
-
...caseShape ? { caseShape } : {}
|
|
863
|
+
...caseShape ? { caseShape } : {},
|
|
864
|
+
...resourceBindings.length > 0 ? { resourceBindings } : {}
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
function literalFieldValues(values) {
|
|
868
|
+
return Object.fromEntries(Object.entries(values).flatMap(([name, value]) => {
|
|
869
|
+
if (typeof value === "string") {
|
|
870
|
+
return value.startsWith("=") ? [] : [[name, value]];
|
|
871
|
+
}
|
|
872
|
+
return typeof value === "number" || typeof value === "boolean" ? [[name, String(value)]] : [];
|
|
873
|
+
}));
|
|
874
|
+
}
|
|
875
|
+
async function withTriggerDesignAction(params) {
|
|
876
|
+
const { triggerMeta, eventObject, fieldValues, resolvedResources } = params;
|
|
877
|
+
if (!eventObject || Object.keys(fieldValues).length === 0) {
|
|
878
|
+
return triggerMeta;
|
|
879
|
+
}
|
|
880
|
+
const action = await findTriggerDesignAction(eventObject, fieldValues, params.target);
|
|
881
|
+
if (!action)
|
|
882
|
+
return triggerMeta;
|
|
883
|
+
const endpoint = `triggerDesignAction.${action.name}`;
|
|
884
|
+
const resolved = new Map(resolvedResources.map((r) => [r.field, r]));
|
|
885
|
+
const unresolved = (await resourcePickersRequestNeeds(action, triggerEventParameters(eventObject))).map((picker) => picker.field.name).filter((name) => !resolved.has(name));
|
|
886
|
+
if (unresolved.length > 0) {
|
|
887
|
+
params.diagnostics.fallbacks.push({
|
|
888
|
+
endpoint,
|
|
889
|
+
reason: `the picker [${unresolved.join(", ")}] did not resolve into a solution, so the fields it loads are missing; run inside a solution or pass --solution-folder, without --skip-case-shape`
|
|
890
|
+
});
|
|
891
|
+
return triggerMeta;
|
|
892
|
+
}
|
|
893
|
+
const solutionResources = Object.fromEntries(resolvedResources.map((r) => [
|
|
894
|
+
r.field,
|
|
895
|
+
{ resourceKey: r.selection.key }
|
|
896
|
+
]));
|
|
897
|
+
const [error, designed] = await catchError(runTriggerDesignAction(undefined, params.connectionId, triggerMeta, action, fieldValues, solutionResources, createSolutionResourceConfigurationsProvider(params.solutionDir, new Map(resolvedResources.map((r) => [
|
|
898
|
+
r.selection.key,
|
|
899
|
+
r.selection.name
|
|
900
|
+
])))));
|
|
901
|
+
if (error) {
|
|
902
|
+
throw Object.assign(new Error(`The trigger's design action '${action.name}' failed, so its fields could not be loaded: ${error.message}`, { cause: error }), { status: error.status });
|
|
903
|
+
}
|
|
904
|
+
params.diagnostics.fetched.push(endpoint);
|
|
905
|
+
return designed;
|
|
906
|
+
}
|
|
907
|
+
async function solutionDirFor(opts) {
|
|
908
|
+
return opts.solutionFolder ?? (await findSolutionFromCwd())?.solutionDir ?? null;
|
|
909
|
+
}
|
|
910
|
+
async function assertPickersResolved(client, values, resolved) {
|
|
911
|
+
if (!values)
|
|
912
|
+
return;
|
|
913
|
+
const unresolved = (await client.getResourceFields()).filter((f) => {
|
|
914
|
+
const value = values[f.name];
|
|
915
|
+
return typeof value === "string" && value !== "" && !value.startsWith("=") && !resolved.some((r) => r.field === f.name);
|
|
916
|
+
});
|
|
917
|
+
if (unresolved.length === 0)
|
|
918
|
+
return;
|
|
919
|
+
const names = unresolved.map((f) => `'${f.name}' (${f.kind})`).join(", ");
|
|
920
|
+
throw new InvalidInputDetailsError(`${names} ${unresolved.length === 1 ? "is a resource picker" : "are resource pickers"} and must be referenced into the case's solution, but no solution was found from the current folder. Pass --solution-folder <path to the folder holding the .uipx>, or run from inside the solution.`);
|
|
921
|
+
}
|
|
922
|
+
function authoredFieldValues(inputDetails) {
|
|
923
|
+
if (!inputDetails)
|
|
924
|
+
return;
|
|
925
|
+
const values = {
|
|
926
|
+
...inputDetails.bodyParameters,
|
|
927
|
+
...inputDetails.queryParameters,
|
|
928
|
+
...inputDetails.pathParameters
|
|
846
929
|
};
|
|
930
|
+
return Object.keys(values).length > 0 ? values : undefined;
|
|
931
|
+
}
|
|
932
|
+
function bindResolvedResources(caseShape, resolved, client) {
|
|
933
|
+
if (!caseShape || resolved.length === 0)
|
|
934
|
+
return [];
|
|
935
|
+
const emitted = storedActivityBindings(client.getBindings());
|
|
936
|
+
const metadata = caseShape.context?.find((c) => c.name === "metadata");
|
|
937
|
+
if (metadata?.body && emitted.length > 0) {
|
|
938
|
+
const stored = Array.isArray(metadata.body.bindings) ? metadata.body.bindings : [];
|
|
939
|
+
metadata.body.bindings = [...stored, ...emitted];
|
|
940
|
+
}
|
|
941
|
+
const bindings = [];
|
|
942
|
+
for (const plan of planResourceBindings(emitted, resolved)) {
|
|
943
|
+
const field = plan.rows[0].field;
|
|
944
|
+
const holders = valueMaps(caseShape).filter((map) => (field in map));
|
|
945
|
+
if (holders.length === 0)
|
|
946
|
+
continue;
|
|
947
|
+
const rows = plan.rows.map((row) => {
|
|
948
|
+
const bindingIdPlaceholder = resourceBindingIdPlaceholder(row.field);
|
|
949
|
+
for (const map of holders) {
|
|
950
|
+
map[row.field] = `=bindings.${bindingIdPlaceholder}`;
|
|
951
|
+
}
|
|
952
|
+
return {
|
|
953
|
+
name: row.name,
|
|
954
|
+
propertyAttribute: row.propertyAttribute,
|
|
955
|
+
default: row.default,
|
|
956
|
+
bindingIdPlaceholder
|
|
957
|
+
};
|
|
958
|
+
});
|
|
959
|
+
bindings.push({
|
|
960
|
+
field,
|
|
961
|
+
resource: plan.resource,
|
|
962
|
+
resourceKey: plan.resourceKey,
|
|
963
|
+
rows
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
return bindings;
|
|
967
|
+
}
|
|
968
|
+
function valueMaps(caseShape) {
|
|
969
|
+
const isMap = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
970
|
+
const nestedMaps = (holder, keys) => keys.map((key) => holder[key]).filter(isMap);
|
|
971
|
+
const inputMaps = caseShape.inputs.flatMap((input) => isMap(input.body) ? [
|
|
972
|
+
input.body,
|
|
973
|
+
...nestedMaps(input.body, ["queryParams", "parameters"])
|
|
974
|
+
] : []);
|
|
975
|
+
const inputMetadata = caseShape.context?.find((entry) => entry.name === "metadata")?.body?.inputMetadata;
|
|
976
|
+
const stashMaps = isMap(inputMetadata) ? nestedMaps(inputMetadata, [
|
|
977
|
+
"triggerQueryParameters",
|
|
978
|
+
"triggerPathParameters"
|
|
979
|
+
]) : [];
|
|
980
|
+
return [...inputMaps, ...stashMaps];
|
|
847
981
|
}
|
|
848
982
|
async function buildHttpActivitySpec(connectorKey, objectName, httpMethod, resolvedConnection, diagnostics, opts, typecacheCtx) {
|
|
849
983
|
diagnostics.fetched.push("synthetic.HttpRequest");
|
|
@@ -976,12 +1110,6 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
976
1110
|
}
|
|
977
1111
|
const eventMode = triggerMeta.eventMode === "webhooks" ? "webhooks" : "polling";
|
|
978
1112
|
const objectDisplayName = triggerMeta.displayName ?? objectName;
|
|
979
|
-
const fieldsMap = triggerMeta.fields ?? {};
|
|
980
|
-
const allFields = Object.values(fieldsMap);
|
|
981
|
-
const eventParamCompacts = extractTriggerEventParameters(triggerMeta, eventOperation);
|
|
982
|
-
const eventParameters = eventParamCompacts.map(compactToFieldSpec);
|
|
983
|
-
const filterFieldDefs = extractTriggerFilterFieldsLocal(triggerMeta);
|
|
984
|
-
const responseFields = allFields.map((f) => triggerFieldToFieldSpec(f, false));
|
|
985
1113
|
if (eventOpFlags === null && opts.triggerKind === "start") {
|
|
986
1114
|
const why = elementInstanceId === null ? "the connection has no element instance to look the event up on" : diagnostics.fallbacks.find((one) => one.endpoint === "client-factory.getEventOperationObjects")?.reason ?? `no event object named "${objectName}" was returned for ${eventOperation}`;
|
|
987
1115
|
throw new Error(`Could not read the start trigger's query and path parameters: ${why}. Without them the trigger cannot be created on deploy.`);
|
|
@@ -989,12 +1117,6 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
989
1117
|
const scope = extractTriggerScopeParameters(eventOpFlags);
|
|
990
1118
|
const queryParameters = scope.query.map(parameterFromIS);
|
|
991
1119
|
const pathParameters = scope.path.map(parameterFromIS);
|
|
992
|
-
const references = collectReferences(connectorKey, resolvedConnection.context.id, [
|
|
993
|
-
...pathParameters.map((p) => ({ p, slot: "pathParameters" })),
|
|
994
|
-
...queryParameters.map((p) => ({ p, slot: "queryParameters" })),
|
|
995
|
-
...eventParameters.map((p) => ({ p, slot: "eventParameters" })),
|
|
996
|
-
...responseFields.map((p) => ({ p, slot: "responseFields" }))
|
|
997
|
-
]);
|
|
998
1120
|
const triggerInputDetails = opts.inputDetails;
|
|
999
1121
|
let triggerFilterTree = null;
|
|
1000
1122
|
if (triggerInputDetails?.filter !== undefined) {
|
|
@@ -1010,14 +1132,46 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
1010
1132
|
eventMode,
|
|
1011
1133
|
activityType: overriddenActivityType
|
|
1012
1134
|
};
|
|
1013
|
-
const
|
|
1135
|
+
const eventValues = triggerInputDetails?.eventParameters ?? {};
|
|
1136
|
+
const pickerValues = {
|
|
1137
|
+
...triggerInputDetails?.queryParameters,
|
|
1138
|
+
...triggerInputDetails?.pathParameters,
|
|
1139
|
+
...eventValues
|
|
1140
|
+
};
|
|
1141
|
+
const resolvePickers = !opts.skipCaseShape && Object.keys(pickerValues).length > 0;
|
|
1142
|
+
const authoredValues = literalFieldValues(pickerValues);
|
|
1143
|
+
const { client: triggerClient, resolvedResources } = await configureActivityClient({
|
|
1014
1144
|
instanceParameters,
|
|
1015
1145
|
connectionId: resolvedConnection.context.id,
|
|
1016
1146
|
savedFilterTrees: triggerFilterTree ? { filter: triggerFilterTree } : null,
|
|
1017
|
-
fieldValues:
|
|
1147
|
+
fieldValues: pickerValues,
|
|
1148
|
+
solutionDir: resolvePickers ? await solutionDirFor(opts) : null
|
|
1018
1149
|
});
|
|
1150
|
+
await assertPickersResolved(triggerClient, resolvePickers ? pickerValues : undefined, resolvedResources);
|
|
1019
1151
|
const { essentialConfiguration: triggerEssentialConfig } = triggerClient.getEssentialConfiguration();
|
|
1020
1152
|
assertActivityMetadataResolved(triggerEssentialConfig, resolvedConnection.context.id);
|
|
1153
|
+
const designedMeta = await withTriggerDesignAction({
|
|
1154
|
+
triggerMeta,
|
|
1155
|
+
eventObject: eventOpFlags,
|
|
1156
|
+
fieldValues: authoredValues,
|
|
1157
|
+
resolvedResources,
|
|
1158
|
+
solutionDir: resolvePickers ? await solutionDirFor(opts) : null,
|
|
1159
|
+
connectionId: resolvedConnection.context.id,
|
|
1160
|
+
target: { connectorKey, operation: eventOperation, objectName },
|
|
1161
|
+
diagnostics
|
|
1162
|
+
});
|
|
1163
|
+
const fieldsMap = designedMeta.fields ?? {};
|
|
1164
|
+
const allFields = Object.values(fieldsMap);
|
|
1165
|
+
const eventParamCompacts = extractTriggerEventParameters(designedMeta, eventOperation);
|
|
1166
|
+
const eventParameters = eventParamCompacts.map(compactToFieldSpec);
|
|
1167
|
+
const filterFieldDefs = extractTriggerFilterFieldsLocal(designedMeta);
|
|
1168
|
+
const responseFields = allFields.map((f) => triggerFieldToFieldSpec(f, false));
|
|
1169
|
+
const references = collectReferences(connectorKey, resolvedConnection.context.id, [
|
|
1170
|
+
...pathParameters.map((p) => ({ p, slot: "pathParameters" })),
|
|
1171
|
+
...queryParameters.map((p) => ({ p, slot: "queryParameters" })),
|
|
1172
|
+
...eventParameters.map((p) => ({ p, slot: "eventParameters" })),
|
|
1173
|
+
...responseFields.map((p) => ({ p, slot: "responseFields" }))
|
|
1174
|
+
]);
|
|
1021
1175
|
const combinedFilterExpression = triggerClient.getCompiledFilter("filter");
|
|
1022
1176
|
const essentialConfiguration = {
|
|
1023
1177
|
essentialConfiguration: triggerEssentialConfig
|
|
@@ -1050,6 +1204,7 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
1050
1204
|
inputMetadata: triggerInputDetails ? triggerScopeInputMetadata(triggerInputDetails) : {}
|
|
1051
1205
|
});
|
|
1052
1206
|
}
|
|
1207
|
+
const resourceBindings = bindResolvedResources(caseShape, resolvedResources, triggerClient);
|
|
1053
1208
|
return {
|
|
1054
1209
|
specVersion: 1,
|
|
1055
1210
|
identity: {
|
|
@@ -1084,7 +1239,8 @@ async function buildTriggerSpec(connectorKey, objectName, eventOperation, resolv
|
|
|
1084
1239
|
essentialConfiguration,
|
|
1085
1240
|
references,
|
|
1086
1241
|
diagnostics,
|
|
1087
|
-
...caseShape ? { caseShape } : {}
|
|
1242
|
+
...caseShape ? { caseShape } : {},
|
|
1243
|
+
...resourceBindings.length > 0 ? { resourceBindings } : {}
|
|
1088
1244
|
};
|
|
1089
1245
|
}
|
|
1090
1246
|
async function fetchTriggerMetadata(connectorKey, objectName, operationName, connectionId) {
|
|
@@ -1307,4 +1463,4 @@ export {
|
|
|
1307
1463
|
fetchConnectorTaskSpec
|
|
1308
1464
|
};
|
|
1309
1465
|
|
|
1310
|
-
//# debugId=
|
|
1466
|
+
//# debugId=7B6C3F0AC1329CE164756E2164756E21
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import"./packager-tool-jysvpt8p.js";
|
|
2
2
|
import"./packager-tool-1yh8g550.js";
|
|
3
3
|
|
|
4
|
-
// ../../node_modules/@uipath/flow-core/node_modules/@uipath/flow-schema/dist/de-
|
|
4
|
+
// ../../node_modules/@uipath/flow-core/node_modules/@uipath/flow-schema/dist/de-UZI7FJDO.js
|
|
5
5
|
var agentDuplicateToolNames_duplicateName_message = "Toolname „{{name}}“ wird von mehreren Tools für diesen Agent verwendet. Jedes Tool muss einen eindeutigen Namen haben.";
|
|
6
6
|
var agentEmptyVar_unwrittenVariable_message = "Agent verwendet „$vars.{{root}}“ aber kein Knoten weist „{{root}}“ einen Wert zu, sodass er zur Laufzeit leer ist. Binden Sie ihn an eine Knotenausgabe (z. B. „<node>.output“ eines Connectors), oder geben Sie eine Wertquelle dafür an.";
|
|
7
|
+
var agentFileNotAnalyzed_unconsumedFileVar_message = "Agent verwendet die Dateivariable „$vars.{{path}}“ in seinem Prompt, aber er verfügt nicht über ein Tool, das Dateien lesen kann, sodass der Agent nur die Dateireferenz und nicht deren Inhalt erhält. Fügen Sie ein Dateilesetool wie Analyze Files hinzu.";
|
|
7
8
|
var agentInputRefs_ambiguousUnderscoreRoot_message = "Prompt verweist auf „$vars.{{ref}}“, doch der Name „{{rootSegment}}“ enthält „__“, das als Trennzeichen für die Agent-Eingabecodierung reserviert ist und ein Roundtrip ist nicht möglich. Benennen Sie ihn um, um den doppelten Unterstrich zu entfernen.";
|
|
8
9
|
var agentInputRefs_reservedMetadataRoot_message = "Prompt verweist auf „$vars.{{ref}}“, doch eine Variable oder ein Knoten mit dem Namen „metadata“ steht nach der Serialisierung für den Agent in Konflikt mit dem Namespace „$metadata“ und ein Roundtrip ist nicht möglich. Benennen Sie es in etwas anderes als „metadata“ um.";
|
|
9
10
|
var agentInputRefs_reservedNamespace_message = "„$agent.{{ref}}“ ist ein Flow-interner Namespace für Agent-Runtime und kann nicht direkt in Prompts verwendet werden. Verweisen Sie über „$vars.{{ref}}“ oder „$metadata.{{ref}}“ auf die Flow-Variable.";
|
|
@@ -12,6 +13,8 @@ var conditionExpression_decisionWrapped_message = "Ungültige Bedingung für „
|
|
|
12
13
|
var conditionExpression_incomplete_message = "Unvollständiger Ausdruck";
|
|
13
14
|
var conditionExpression_invalid_message = "Ungültiger Ausdruck";
|
|
14
15
|
var conditionExpression_required_message = "Eine Bedingung hinzufügen";
|
|
16
|
+
var conversationalRequired_contextRequired_message = "{{label}}: Konversationskontext ist erforderlich";
|
|
17
|
+
var conversationalRequired_conversationIdRequired_message = "{{label}}: Konversations-ID ist erforderlich";
|
|
15
18
|
var conversationalVoiceEndCall_callContextInvalid_message = "{{label}}: Aufrufkontext muss an ein Aufrufkontextobjekt gebunden sein";
|
|
16
19
|
var conversationalVoice_callContextInvalid_message = "{{label}}: Aufrufkontext muss an ein Aufrufkontextobjekt gebunden sein";
|
|
17
20
|
var conversationalVoice_callContextRequired_message = "{{label}}: Anrufkontext ist erforderlich, wenn Sprache aktiviert ist";
|
|
@@ -28,7 +31,13 @@ var dataTransform_noOperations_message = "Für „{{nodeLabel}}“ sind keine Vo
|
|
|
28
31
|
var doWhile_limitOutOfRange_message = "Maximale Iterationen zwischen {{min}} und {{max}} festlegen";
|
|
29
32
|
var entityQuery_emptyFilterExpression_message = "Einen Ausdruck für jeden Filter schreiben oder den Filter entfernen";
|
|
30
33
|
var entityQuery_emptyFilterValueList_message = "Dem Filter mindestens einen Wert hinzu oder den Filter entfernen";
|
|
34
|
+
var entityQuery_incompleteSingleRecordRow_message = "Ein Feld auswählen und einen Wert eingeben";
|
|
31
35
|
var entityQuery_uncarryableExpression_message = "Speichern Sie diesen Ausdruck in einer Variablen oder schreiben Sie ihn ohne Leerzeichen, Anführungszeichen oder umgekehrte Schrägstriche";
|
|
36
|
+
var entityQuery_uncarryableRelationPath_message = "{{path}} kann nicht wie geschrieben verwendet werden. Entfernen Sie alle Leerzeichen, Anführungszeichen oder umgekehrten Schrägstriche aus dem Spaltennamen.";
|
|
37
|
+
var entityQuery_unfilteredSingleRecord_message = "Eine Bedingung hinzufügen oder stattdessen mehrere Datensätze lesen";
|
|
38
|
+
var entityQuery_unresolvedRelation_message = "{{path}} ist nicht mehr verfügbar. Wählen Sie ein Feld für diese Entität oder eine ihrer direkten Beziehungen aus.";
|
|
39
|
+
var entityWrite_requiredFieldBlanked_message = "Einen Wert für {{fields}} festlegen oder die Felder aus der Aktualisierung entfernen";
|
|
40
|
+
var entityWrite_requiredFieldMissing_message = "Einen Wert für {{fields}} festlegen";
|
|
32
41
|
var escalation_appRequired_message = "Eine Aktions-App auswählen";
|
|
33
42
|
var escalation_memoryArgumentRequired_message = "{{label}}: Fügen Sie mindestens ein Argument für das Agentengedächtnis hinzu oder deaktivieren Sie das Agentengedächtnis.";
|
|
34
43
|
var escalation_nameRequired_message = "{{label}}: Eskalationsname ist erforderlich.";
|
|
@@ -59,6 +68,7 @@ var triggerRequired_message = "Prozess muss mindestens einen Triggerknoten haben
|
|
|
59
68
|
var de_default = {
|
|
60
69
|
agentDuplicateToolNames_duplicateName_message,
|
|
61
70
|
agentEmptyVar_unwrittenVariable_message,
|
|
71
|
+
agentFileNotAnalyzed_unconsumedFileVar_message,
|
|
62
72
|
agentInputRefs_ambiguousUnderscoreRoot_message,
|
|
63
73
|
agentInputRefs_reservedMetadataRoot_message,
|
|
64
74
|
agentInputRefs_reservedNamespace_message,
|
|
@@ -67,6 +77,8 @@ var de_default = {
|
|
|
67
77
|
conditionExpression_incomplete_message,
|
|
68
78
|
conditionExpression_invalid_message,
|
|
69
79
|
conditionExpression_required_message,
|
|
80
|
+
conversationalRequired_contextRequired_message,
|
|
81
|
+
conversationalRequired_conversationIdRequired_message,
|
|
70
82
|
conversationalVoiceEndCall_callContextInvalid_message,
|
|
71
83
|
conversationalVoice_callContextInvalid_message,
|
|
72
84
|
conversationalVoice_callContextRequired_message,
|
|
@@ -83,7 +95,13 @@ var de_default = {
|
|
|
83
95
|
doWhile_limitOutOfRange_message,
|
|
84
96
|
entityQuery_emptyFilterExpression_message,
|
|
85
97
|
entityQuery_emptyFilterValueList_message,
|
|
98
|
+
entityQuery_incompleteSingleRecordRow_message,
|
|
86
99
|
entityQuery_uncarryableExpression_message,
|
|
100
|
+
entityQuery_uncarryableRelationPath_message,
|
|
101
|
+
entityQuery_unfilteredSingleRecord_message,
|
|
102
|
+
entityQuery_unresolvedRelation_message,
|
|
103
|
+
entityWrite_requiredFieldBlanked_message,
|
|
104
|
+
entityWrite_requiredFieldMissing_message,
|
|
87
105
|
escalation_appRequired_message,
|
|
88
106
|
escalation_memoryArgumentRequired_message,
|
|
89
107
|
escalation_nameRequired_message,
|
|
@@ -115,6 +133,7 @@ var de_default = {
|
|
|
115
133
|
export {
|
|
116
134
|
agentDuplicateToolNames_duplicateName_message,
|
|
117
135
|
agentEmptyVar_unwrittenVariable_message,
|
|
136
|
+
agentFileNotAnalyzed_unconsumedFileVar_message,
|
|
118
137
|
agentInputRefs_ambiguousUnderscoreRoot_message,
|
|
119
138
|
agentInputRefs_reservedMetadataRoot_message,
|
|
120
139
|
agentInputRefs_reservedNamespace_message,
|
|
@@ -123,6 +142,8 @@ export {
|
|
|
123
142
|
conditionExpression_incomplete_message,
|
|
124
143
|
conditionExpression_invalid_message,
|
|
125
144
|
conditionExpression_required_message,
|
|
145
|
+
conversationalRequired_contextRequired_message,
|
|
146
|
+
conversationalRequired_conversationIdRequired_message,
|
|
126
147
|
conversationalVoiceEndCall_callContextInvalid_message,
|
|
127
148
|
conversationalVoice_callContextInvalid_message,
|
|
128
149
|
conversationalVoice_callContextRequired_message,
|
|
@@ -140,7 +161,13 @@ export {
|
|
|
140
161
|
doWhile_limitOutOfRange_message,
|
|
141
162
|
entityQuery_emptyFilterExpression_message,
|
|
142
163
|
entityQuery_emptyFilterValueList_message,
|
|
164
|
+
entityQuery_incompleteSingleRecordRow_message,
|
|
143
165
|
entityQuery_uncarryableExpression_message,
|
|
166
|
+
entityQuery_uncarryableRelationPath_message,
|
|
167
|
+
entityQuery_unfilteredSingleRecord_message,
|
|
168
|
+
entityQuery_unresolvedRelation_message,
|
|
169
|
+
entityWrite_requiredFieldBlanked_message,
|
|
170
|
+
entityWrite_requiredFieldMissing_message,
|
|
144
171
|
escalation_appRequired_message,
|
|
145
172
|
escalation_memoryArgumentRequired_message,
|
|
146
173
|
escalation_nameRequired_message,
|
|
@@ -170,4 +197,4 @@ export {
|
|
|
170
197
|
triggerRequired_message
|
|
171
198
|
};
|
|
172
199
|
|
|
173
|
-
//# debugId=
|
|
200
|
+
//# debugId=156F3BB2120642B764756E2164756E21
|