@uipath/case-tool 1.205.0-preview.276 → 1.206.0-preview.279

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.
Files changed (211) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +68 -7
  2. package/dist/applicationinsights-web-8m26566f.js +17209 -0
  3. package/dist/{authoring-kqh34zzm.js → authoring-vg90pqrn.js} +488 -213
  4. package/dist/bindings-v2-1da35xsc.js +27 -0
  5. package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-627rrg7z.js} +6 -7
  6. package/dist/{business-rule-export-ey588rv7.js → business-rule-export-jv60r9jf.js} +3 -7
  7. package/dist/carry-forward-sfdnta6q.js +52 -0
  8. package/dist/{case-api-sme7esce.js → case-api-by95rf40.js} +38 -37
  9. package/dist/{case-bindings-service-cht20gqt.js → case-bindings-service-pp3c9g1e.js} +93 -45
  10. package/dist/{case-debug-solution-projects-g871p7tg.js → case-debug-solution-projects-zhnn53e5.js} +3 -7
  11. package/dist/{case-debug-studio-web-service-0b1kwswy.js → case-debug-studio-web-service-fvj41xrq.js} +48 -45
  12. package/dist/{case-described-io-service-dx1f4nxe.js → case-described-io-service-tsm8r189.js} +33 -15
  13. package/dist/case-event-trigger-bindings-qbs8ywf5.js +17 -0
  14. package/dist/{case-format-service-6aew6tqc.js → case-format-service-3sab2297.js} +9 -10
  15. package/dist/{case-pack-service-pqq8wnfd.js → case-pack-service-txnv711n.js} +47 -42
  16. package/dist/case-schema-version-cw0h2nrv.js +18 -0
  17. package/dist/case-shape-reader-xaxmrd40.js +14 -0
  18. package/dist/{case-splice-service-s5gccctq.js → case-splice-service-6y35w83e.js} +139 -51
  19. package/dist/{case-validate-service-311sf3ee.js → case-validate-service-4zdx7d2w.js} +234 -170
  20. package/dist/connector-enrichment-service-mws6z0hw.js +56 -0
  21. package/dist/connector-library-1yw5r47w.js +99 -0
  22. package/dist/connector-lookup-service-0t7ydz3t.js +20 -0
  23. package/dist/connector-task-shape-bgywpbqc.js +13 -0
  24. package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
  25. package/dist/{de-UZI7FJDO-mwvc4cxe.js → de-AI7ML6JM-km47f8k4.js} +20 -5
  26. package/dist/debug-service-h4jxbn1r.js +56 -0
  27. package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
  28. package/dist/en-LAVDF7IQ-yzy20n6d.js +254 -0
  29. package/dist/en-X6T4SP2Y-xm47mf18.js +2752 -0
  30. package/dist/{enrichment-service-hv7ff88p.js → enrichment-service-wpprec7k.js} +36 -37
  31. package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
  32. package/dist/{es-MX-5RELIXKI-9jhqtddc.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
  33. package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
  34. package/dist/{es-4UBUTCQA-m1ytpyx2.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
  35. package/dist/filter-engine-dh9s90gb.js +10 -0
  36. package/dist/first-party-service-ahcc6xc6.js +8 -0
  37. package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
  38. package/dist/{fr-VBM5WRC2-63z7w4mh.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
  39. package/dist/index-21kns9qg.js +10 -0
  40. package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
  41. package/dist/{index-5dxh9z60.js → index-a7y7etmy.js} +6 -5
  42. package/dist/{index-ekwtgx7y.js → index-ec115v05.js} +309 -287
  43. package/dist/{connector-task-spec-gjsfdysf.js → index-n4g6qvab.js} +320 -144
  44. package/dist/index-nj3axvya.js +159 -0
  45. package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
  46. package/dist/index-pg9wmyrf.js +36 -0
  47. package/dist/index-sgpbvm8j.js +26 -0
  48. package/dist/index-t0sz0svn.js +35 -0
  49. package/dist/index-z2qk2qn6.js +24 -0
  50. package/dist/index.js +19 -25
  51. package/dist/index.umd.min-ttg1qc0x.js +7814 -0
  52. package/dist/{init-entry-points-hhpv3e3f.js → init-entry-points-pc128f7z.js} +22 -35
  53. package/dist/input-reader-9ym8mkbc.js +10 -0
  54. package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
  55. package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
  56. package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
  57. package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
  58. package/dist/known-types-gak9by1w.js +11 -0
  59. package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
  60. package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
  61. package/dist/localSolutionDiscovery-48d1bnkj.js +15 -0
  62. package/dist/{migration-diagnosis-ns5cw4e3.js → migration-diagnosis-myqqgwj0.js} +1 -4
  63. package/dist/{node-strategy-v442hwgd.js → node-strategy-2mqzg36t.js} +15 -18
  64. package/dist/node-sync-service-tr5m22nb.js +56 -0
  65. package/dist/{out-target-wjgmna0r.js → out-target-eqsttq1k.js} +18 -22
  66. package/dist/{packager-tool-f8vwy92w.js → packager-tool-0te1tyhf.js} +186 -16
  67. package/dist/{packager-tool-ydyvtknp.js → packager-tool-0w4fsdzv.js} +44 -20
  68. package/dist/{packager-tool-8ftat1vn.js → packager-tool-17b466mr.js} +59158 -59666
  69. package/dist/packager-tool-1nfdj0zm.js +425 -0
  70. package/dist/packager-tool-1wgav5ma.js +139 -0
  71. package/dist/{packager-tool-0wwc2phf.js → packager-tool-32792w66.js} +66 -82
  72. package/dist/{packager-tool-nj4seavy.js → packager-tool-35c9npcy.js} +26 -7
  73. package/dist/{packager-tool-r0x3qh59.js → packager-tool-388vyja1.js} +185 -29
  74. package/dist/packager-tool-3m8482sw.js +78 -0
  75. package/dist/packager-tool-3r23qsca.js +4832 -0
  76. package/dist/packager-tool-4avchhz8.js +539 -0
  77. package/dist/{packager-tool-2ns09tvh.js → packager-tool-4wn3b7qp.js} +252 -468
  78. package/dist/{packager-tool-8wkterdq.js → packager-tool-5jt5rc2g.js} +630 -689
  79. package/dist/{packager-tool-9kvkzc05.js → packager-tool-5w0gjcck.js} +4 -4
  80. package/dist/packager-tool-68648y3j.js +6 -0
  81. package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
  82. package/dist/{packager-tool-aagnvyba.js → packager-tool-76zhn5pa.js} +131 -432
  83. package/dist/packager-tool-7x1tmb8a.js +46 -0
  84. package/dist/{packager-tool-kyrm4e5m.js → packager-tool-9ar5829n.js} +781 -741
  85. package/dist/{packager-tool-4p11fvf4.js → packager-tool-b2q8m9pq.js} +10 -13
  86. package/dist/packager-tool-bg3tdpva.js +27 -0
  87. package/dist/packager-tool-bpkkg4z2.js +295 -0
  88. package/dist/{packager-tool-yn33pw57.js → packager-tool-dn9d4ywm.js} +246 -225
  89. package/dist/{packager-tool-kdhey8gz.js → packager-tool-e02jkmrq.js} +41 -29
  90. package/dist/{packager-tool-sq931c23.js → packager-tool-e1tx5mqg.js} +1 -1
  91. package/dist/packager-tool-gt3bsmfp.js +1302 -0
  92. package/dist/packager-tool-gy4yjqhf.js +178 -0
  93. package/dist/packager-tool-h2ar8xf8.js +222 -0
  94. package/dist/{packager-tool-v2kcgjbf.js → packager-tool-j6nfje7t.js} +5 -4
  95. package/dist/packager-tool-kz7zz79p.js +71 -0
  96. package/dist/{packager-tool-9e59z4d6.js → packager-tool-me8gd22q.js} +82 -83
  97. package/dist/packager-tool-mk9fmzdy.js +20 -0
  98. package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
  99. package/dist/{packager-tool-1a5v21za.js → packager-tool-nd312sma.js} +32 -15
  100. package/dist/{packager-tool-mqy97y5f.js → packager-tool-p5gs9xqy.js} +14 -14
  101. package/dist/{packager-tool-83v804p7.js → packager-tool-psmb758n.js} +3108 -2627
  102. package/dist/packager-tool-q26hncjr.js +13 -0
  103. package/dist/packager-tool-q9fnx278.js +77 -0
  104. package/dist/{packager-tool-ezds6t5e.js → packager-tool-s12s1dp6.js} +11 -11
  105. package/dist/packager-tool-scy94jyb.js +5424 -0
  106. package/dist/{packager-tool-yn7r7zq2.js → packager-tool-snesn0bt.js} +177 -96
  107. package/dist/{packager-tool-d8e2mrkq.js → packager-tool-tgehy324.js} +56 -56
  108. package/dist/{packager-tool-tqn0j6f9.js → packager-tool-v11fx4dk.js} +7 -7
  109. package/dist/{packager-tool-67vy1fz3.js → packager-tool-v6rkp2ay.js} +24 -92
  110. package/dist/{packager-tool-9sd483vs.js → packager-tool-vs7gqa4r.js} +15 -15
  111. package/dist/packager-tool-vyavrbym.js +488 -0
  112. package/dist/{packager-tool-b098y4a2.js → packager-tool-wbksf242.js} +97 -97
  113. package/dist/{packager-tool-b5rxh1hk.js → packager-tool-x1f8ypvs.js} +256 -486
  114. package/dist/{packager-tool-2sn7d8fd.js → packager-tool-x74mmjkw.js} +9 -13
  115. package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
  116. package/dist/{packager-tool-a17g0pj1.js → packager-tool-xd1wbvay.js} +10 -8
  117. package/dist/{packager-tool-1yfw674x.js → packager-tool-xehhk3c3.js} +10 -5
  118. package/dist/packager-tool-yh8mmj3p.js +123 -0
  119. package/dist/{packager-tool-hdxtgckw.js → packager-tool-z070caqq.js} +56 -12
  120. package/dist/{packager-tool-b250k6w4.js → packager-tool-z1fw9a8v.js} +41 -9
  121. package/dist/{packager-tool-0gctz400.js → packager-tool-z9fmqtm6.js} +4 -4
  122. package/dist/{packager-tool-mzf4gmph.js → packager-tool-zbx189j3.js} +11 -8
  123. package/dist/{packager-tool-zf8f9pmm.js → packager-tool-zrbnms9b.js} +3 -4
  124. package/dist/packager-tool.js +10 -11
  125. package/dist/prepare-uip-ad7mfs8t.js +92 -0
  126. package/dist/{project-artifacts-bgyyb0dm.js → project-artifacts-q0c0zghw.js} +2 -6
  127. package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
  128. package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
  129. package/dist/{pt-RMIAKZB4-67enhx3m.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
  130. package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
  131. package/dist/{resolved-check-aqw7568y.js → resolved-check-dz8eqrf6.js} +2 -3
  132. package/dist/{resourcesSyncService-0hm54p73.js → resourcesSyncService-sgnkcvpt.js} +81 -141
  133. package/dist/{ro-GHOBYW2S-mhnqsgaa.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
  134. package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
  135. package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
  136. package/dist/ru-WBLQ5B2U-bf20yr5y.js +7 -0
  137. package/dist/{rule-group-members-zje7n3kf.js → rule-group-members-p0nv1rmj.js} +1 -3
  138. package/dist/rule-type-declaration-s2nxpcfy.js +77 -0
  139. package/dist/{sdd-convert-service-8jpew7vz.js → sdd-convert-service-ffbx00k6.js} +481 -504
  140. package/dist/{sdd-lookup-fe900sdb.js → sdd-lookup-sah7wj5j.js} +8 -9
  141. package/dist/{sdd-resolve-service-qdtmxw9b.js → sdd-resolve-service-6nt10vhq.js} +28 -20
  142. package/dist/{sdd-resolve-siblings-bxxdy3x7.js → sdd-resolve-siblings-5q28qcw8.js} +11 -14
  143. package/dist/solution-auth-a1p22hq1.js +11 -0
  144. package/dist/solution-discovery-r1y550sz.js +33 -0
  145. package/dist/{strict-case-rules-4tjcaznr.js → strict-case-rules-045kbjvv.js} +16 -28
  146. package/dist/{strict-entry-points-g2pd4mf4.js → strict-entry-points-40ha9afz.js} +15 -14
  147. package/dist/strict-sdd-audit-bp7fq2tg.js +26 -0
  148. package/dist/{task-selector-8bjn35dv.js → task-selector-jt60hdbt.js} +1 -3
  149. package/dist/{task-type-declaration-7a8fqdvs.js → task-type-declaration-yhczvj05.js} +9 -9
  150. package/dist/tool.js +18 -24
  151. package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
  152. package/dist/{tr-GDTLECMM-k5fhmq13.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
  153. package/dist/{trigger-enrichment-service-4c6g6may.js → trigger-enrichment-service-r4gmxvka.js} +53 -57
  154. package/dist/trigger-entry-point-id-751v48qd.js +14 -0
  155. package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
  156. package/dist/{zh-CN-I5D7WHBD-sr5h0a98.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
  157. package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
  158. package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
  159. package/package.json +2 -2
  160. package/dist/canvas-notes-86fxx1t8.js +0 -19
  161. package/dist/case-event-trigger-bindings-g9ftnm4x.js +0 -16
  162. package/dist/case-schema-version-h820ne16.js +0 -20
  163. package/dist/case-shape-reader-dsbraetf.js +0 -13
  164. package/dist/connector-enrichment-service-08tea3m1.js +0 -65
  165. package/dist/connector-lookup-service-x50n59dg.js +0 -22
  166. package/dist/connector-task-shape-mpazkf7s.js +0 -14
  167. package/dist/debug-service-7q98j726.js +0 -59
  168. package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
  169. package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
  170. package/dist/filter-engine-7ep90g7f.js +0 -11
  171. package/dist/first-party-service-srxaftkn.js +0 -27
  172. package/dist/index-8ybf5kqc.js +0 -666
  173. package/dist/index-kmp9fmhb.js +0 -25
  174. package/dist/index-n9qvnx4x.js +0 -29
  175. package/dist/index-ngs0a2he.js +0 -15
  176. package/dist/index-qvxg2haf.js +0 -282
  177. package/dist/index-xq6ajhgq.js +0 -157
  178. package/dist/index.umd.min-fqefd9kn.js +0 -7814
  179. package/dist/input-reader-c7wz8ra2.js +0 -11
  180. package/dist/known-types-5b6yrsqn.js +0 -16
  181. package/dist/localSolutionDiscovery-yyx234ak.js +0 -13
  182. package/dist/node-sync-service-6jsqx7eg.js +0 -57
  183. package/dist/packager-tool-53w8skv5.js +0 -262
  184. package/dist/packager-tool-6z1hsm2h.js +0 -143
  185. package/dist/packager-tool-93mdeqay.js +0 -18
  186. package/dist/packager-tool-9kf3fqtr.js +0 -23
  187. package/dist/packager-tool-bfgdz1zh.js +0 -73
  188. package/dist/packager-tool-e15kqpyh.js +0 -266
  189. package/dist/packager-tool-jysvpt8p.js +0 -11
  190. package/dist/packager-tool-pcvhcn2k.js +0 -2019
  191. package/dist/packager-tool-rk25wp3c.js +0 -28
  192. package/dist/packager-tool-sc961w0q.js +0 -16
  193. package/dist/packager-tool-vhx08y8p.js +0 -5365
  194. package/dist/packager-tool-wekqkmgn.js +0 -265
  195. package/dist/packager-tool-xz2px32y.js +0 -13189
  196. package/dist/packager-tool-yc4kw997.js +0 -13
  197. package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
  198. package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
  199. package/dist/solution-auth-30yycqtv.js +0 -14
  200. package/dist/solution-discovery-e9mamp6w.js +0 -38
  201. package/dist/strict-sdd-audit-q7tb9yj7.js +0 -25
  202. package/dist/trigger-entry-point-id-yhqwnkx9.js +0 -15
  203. /package/dist/{packager-tool-5qp9xza1.js → packager-tool-1c30ttpm.js} +0 -0
  204. /package/dist/{packager-tool-mknccck5.js → packager-tool-1h7abxw6.js} +0 -0
  205. /package/dist/{packager-tool-9y1w2wds.js → packager-tool-fcektt1g.js} +0 -0
  206. /package/dist/{packager-tool-k6jbedyc.js → packager-tool-hcdnc420.js} +0 -0
  207. /package/dist/{packager-tool-7nxppa3d.js → packager-tool-jv5byaww.js} +0 -0
  208. /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
  209. /package/dist/{packager-tool-87y6xw3a.js → packager-tool-nfhtwa72.js} +0 -0
  210. /package/dist/{packager-tool-cv05dwac.js → packager-tool-p0rdmmvk.js} +0 -0
  211. /package/dist/{packager-tool-21qfsbxn.js → packager-tool-yaertxsw.js} +0 -0
@@ -1,26 +1,35 @@
1
1
  import {
2
- CONNECTOR_TASK_TYPES,
3
- SERVICE_TYPE_BY_TASK
4
- } from "./packager-tool-93mdeqay.js";
2
+ mapStringsDeep,
3
+ CONN_BINDING_ID_PLACEHOLDER,
4
+ FOLDER_BINDING_ID_PLACEHOLDER,
5
+ RESOURCE_BINDING_ID_PREFIX,
6
+ upsertResourceBinding
7
+ } from "./packager-tool-h2ar8xf8.js";
5
8
  import {
6
- BINDING_REFERENCE_PREFIX
7
- } from "./packager-tool-87y6xw3a.js";
9
+ EXTERNAL_TASK_TYPES,
10
+ CONNECTOR_CALL_TASK_TYPES,
11
+ isMappedExecution,
12
+ serviceTypeFor
13
+ } from "./packager-tool-7x1tmb8a.js";
8
14
  import {
9
- dedupedId
10
- } from "./packager-tool-9kvkzc05.js";
15
+ BINDING_REFERENCE_PREFIX
16
+ } from "./packager-tool-nfhtwa72.js";
11
17
  import {
12
18
  camelizeDisplayName
13
- } from "./packager-tool-ydyvtknp.js";
14
- import"./packager-tool-9y1w2wds.js";
19
+ } from "./packager-tool-0w4fsdzv.js";
20
+ import"./packager-tool-z070caqq.js";
21
+ import"./packager-tool-psmb758n.js";
22
+ import"./packager-tool-fcektt1g.js";
23
+ import {
24
+ dedupedId
25
+ } from "./packager-tool-5w0gjcck.js";
15
26
  import {
16
27
  createConnectorBindings
17
- } from "./packager-tool-sq931c23.js";
28
+ } from "./packager-tool-e1tx5mqg.js";
18
29
  import {
19
30
  prefixedId
20
- } from "./packager-tool-mknccck5.js";
21
- import"./packager-tool-83v804p7.js";
22
- import"./packager-tool-hdxtgckw.js";
23
- import"./packager-tool-1yh8g550.js";
31
+ } from "./packager-tool-1h7abxw6.js";
32
+ import"./packager-tool-68648y3j.js";
24
33
 
25
34
  // src/services/splice-output-ids.ts
26
35
  var outputIdBase = (name) => {
@@ -59,8 +68,6 @@ var takenIdsIn = (document) => {
59
68
  var mintOutputId = (name, taken) => dedupedId(outputIdBase(name), taken);
60
69
 
61
70
  // src/services/case-splice-service.ts
62
- var CONNECTION_SENTINEL = "{{CONN_BINDING_ID}}";
63
- var FOLDER_SENTINEL = "{{FOLDER_BINDING_ID}}";
64
71
  var CONNECTION_RESOURCE = "Connection";
65
72
  var FOLDER_KEY_ATTRIBUTE = "folderKey";
66
73
  var asRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
@@ -115,25 +122,10 @@ var connectorKeyOf = (context) => {
115
122
  }
116
123
  return;
117
124
  };
118
- var substituteSentinels = (value, connectionId, folderId) => {
119
- if (typeof value === "string") {
120
- let next = value.replaceAll(CONNECTION_SENTINEL, connectionId);
121
- if (folderId !== undefined) {
122
- next = next.replaceAll(FOLDER_SENTINEL, folderId);
123
- }
124
- return next;
125
- }
126
- if (Array.isArray(value)) {
127
- return value.map((entry) => substituteSentinels(entry, connectionId, folderId));
128
- }
129
- const record = asRecord(value);
130
- if (!record)
131
- return value;
132
- return Object.fromEntries(Object.entries(record).map(([key, entry]) => [
133
- key,
134
- substituteSentinels(entry, connectionId, folderId)
135
- ]));
136
- };
125
+ var substituteSentinels = (value, connectionId, folderId) => mapStringsDeep(value, (text) => {
126
+ const next = text.replaceAll(CONN_BINDING_ID_PLACEHOLDER, connectionId);
127
+ return folderId === undefined ? next : next.replaceAll(FOLDER_BINDING_ID_PLACEHOLDER, folderId);
128
+ });
137
129
  var existingBinding = (bindings, connectionId, propertyAttribute) => {
138
130
  for (const raw of bindings) {
139
131
  const binding = asRecord(raw);
@@ -205,10 +197,12 @@ var spliceConnectorShape = (document, caseShape, options) => {
205
197
  }
206
198
  const { task } = found;
207
199
  const taskType = typeof task.type === "string" ? task.type : "";
208
- if (!CONNECTOR_TASK_TYPES.has(taskType)) {
200
+ const spliceable = [...CONNECTOR_CALL_TASK_TYPES];
201
+ if (!spliceable.includes(taskType)) {
202
+ const allowed = spliceable.map((type) => `\`${type}\``).join(", ");
209
203
  return {
210
204
  message: `Task "${options.taskId}" is a \`${taskType || "(untyped)"}\` task, not a connector task`,
211
- instructions: `A connector shape only belongs on ${[...CONNECTOR_TASK_TYPES].map((type) => `\`${type}\``).join(" or ")}. Change the task's type first, or splice into a different task.`
205
+ instructions: `A connector shape only belongs on ${allowed}. Change the task's type first, or splice into a different task.`
212
206
  };
213
207
  }
214
208
  const context = asArray(caseShape.context);
@@ -218,6 +212,12 @@ var spliceConnectorShape = (document, caseShape, options) => {
218
212
  instructions: "Re-run `uip maestro case spec` without `--skip-case-shape`. A trigger spec may not build a context yet, in which case there is nothing to splice."
219
213
  };
220
214
  }
215
+ const executionType = contextValue(context, "executionType");
216
+ const wrongKind = specKindMismatch(options.taskId, taskType, executionType);
217
+ if (wrongKind !== undefined)
218
+ return wrongKind;
219
+ const serviceType = serviceTypeFor(taskType, executionType);
220
+ const warning = EXTERNAL_TASK_TYPES.has(taskType) ? guessedExecutionWarning(executionType, serviceType) : undefined;
221
221
  const connectorKey = connectorKeyOf(context);
222
222
  if (connectorKey === undefined) {
223
223
  return {
@@ -256,14 +256,14 @@ var spliceConnectorShape = (document, caseShape, options) => {
256
256
  }
257
257
  const folderKey = options.folderKey ?? (declaresEntry(context, "folderKey") ? specFolderKey : undefined);
258
258
  const foundFolder = folderKey === undefined ? undefined : existingBinding(bindings, connectionId, "folderKey");
259
- for (const found2 of [foundConnection, foundFolder]) {
260
- if (found2 === undefined)
259
+ for (const found of [foundConnection, foundFolder]) {
260
+ if (found === undefined)
261
261
  continue;
262
- const id = found2.id;
262
+ const id = found.id;
263
263
  if (typeof id === "string" && id !== "")
264
264
  continue;
265
265
  return {
266
- message: `The existing \`${String(found2.propertyAttribute ?? "")}\` binding for connection ${connectionId} has ${id === undefined ? "no `id`" : `an empty \`id\``}, so nothing can reference it`,
266
+ message: `The existing \`${String(found.propertyAttribute ?? "")}\` binding for connection ${connectionId} has ${id === undefined ? "no `id`" : `an empty \`id\``}, so nothing can reference it`,
267
267
  instructions: "A task addresses a binding as `=bindings.<id>`, so an " + "entry with no id resolves to nothing. Give that entry in " + "`bindings[]` a unique id, or delete it and re-run this " + "command to have a fresh pair written."
268
268
  };
269
269
  }
@@ -302,20 +302,49 @@ var spliceConnectorShape = (document, caseShape, options) => {
302
302
  }
303
303
  const elementId = typeof task.elementId === "string" && task.elementId !== "" ? task.elementId : options.taskId;
304
304
  const data = asRecord(task.data) ?? {};
305
- const splicedContext = substituteSentinels(context, connectionBindingId, folderBindingId);
306
- const leftover = JSON.stringify(splicedContext).includes(FOLDER_SENTINEL) ? FOLDER_SENTINEL : JSON.stringify(splicedContext).includes(CONNECTION_SENTINEL) ? CONNECTION_SENTINEL : undefined;
305
+ const resources = applyResourceBindings(nextBindings, options.resourceBindings ?? []);
306
+ const splicedContext = replacePlaceholders(substituteSentinels(context, connectionBindingId, folderBindingId), resources.ids);
307
+ const splicedInputs = replacePlaceholders(asArray(caseShape.inputs), resources.ids);
308
+ const contextText = JSON.stringify(splicedContext);
309
+ const leftover = [
310
+ FOLDER_BINDING_ID_PLACEHOLDER,
311
+ CONN_BINDING_ID_PLACEHOLDER
312
+ ].find((placeholder) => contextText.includes(placeholder));
313
+ const unresolved = /\{\{RESOURCE_BINDING_ID:[^}]*\}\}/.exec(JSON.stringify([splicedContext, splicedInputs]))?.[0];
314
+ if (unresolved !== undefined) {
315
+ return {
316
+ message: `This spec references ${unresolved}, but its ResourceBindings define no row for it`,
317
+ instructions: "Pass the whole `uip maestro case spec` result to --spec, including its ResourceBindings, or re-fetch the spec; the picker binding is only defined there."
318
+ };
319
+ }
307
320
  if (leftover !== undefined) {
308
321
  return {
309
322
  message: `This spec's context carries ${leftover}, and nothing was given to resolve it`,
310
- instructions: leftover === FOLDER_SENTINEL ? "Pass `--folder-key <key>`. The shape asks for a folder-key binding, so splicing without one would leave an unresolved reference in the task." : "Pass `--connection-id <id>` for the connection this spec was fetched for."
323
+ instructions: leftover === FOLDER_BINDING_ID_PLACEHOLDER ? "Pass `--folder-key <key>`. The shape asks for a folder-key binding, so splicing without one would leave an unresolved reference in the task." : "Pass `--connection-id <id>` for the connection this spec was fetched for."
311
324
  };
312
325
  }
326
+ const priorTaskBindings = asArray(data.bindings);
327
+ const staleIds = new Set(priorTaskBindings.flatMap((raw) => {
328
+ const entry = asRecord(raw);
329
+ const id = String(entry?.id);
330
+ return entry !== undefined && entry.resource !== CONNECTION_RESOURCE && !resources.usedIds.has(id) ? [id] : [];
331
+ }));
332
+ const taskBindings = [
333
+ ...priorTaskBindings.filter((raw) => {
334
+ const id = String(asRecord(raw)?.id);
335
+ return !resources.usedIds.has(id) && !staleIds.has(id);
336
+ }),
337
+ ...resources.used
338
+ ];
313
339
  task.data = {
314
340
  ...data,
315
- serviceType: SERVICE_TYPE_BY_TASK[taskType],
341
+ serviceType,
316
342
  context: splicedContext,
317
- inputs: withVarIds(asArray(caseShape.inputs), asArray(data.inputs), elementId),
318
- outputs: mergeOutputs(asArray(caseShape.outputs), asArray(data.outputs), elementId, takenIdsIn(document))
343
+ inputs: withVarIds(splicedInputs, asArray(data.inputs), elementId),
344
+ outputs: mergeOutputs(asArray(caseShape.outputs), asArray(data.outputs), elementId, takenIdsIn(document)),
345
+ ...(priorTaskBindings.length > 0 || resources.used.length > 0) && {
346
+ bindings: taskBindings
347
+ }
319
348
  };
320
349
  const dropped = [];
321
350
  const prunedBindings = folderKey === undefined && !declaresEntry(context, "folderKey") ? nextBindings.filter((entry) => {
@@ -330,13 +359,20 @@ var spliceConnectorShape = (document, caseShape, options) => {
330
359
  dropped.push(String(binding.name ?? id ?? ""));
331
360
  return false;
332
361
  }) : nextBindings;
333
- document.bindings = prunedBindings;
362
+ document.bindings = prunedBindings.filter((entry) => {
363
+ const binding = asRecord(entry);
364
+ const id = String(binding?.id);
365
+ if (!staleIds.has(id) || isReferenced(document, id))
366
+ return true;
367
+ dropped.push(typeof binding?.name === "string" ? binding.name : id);
368
+ return false;
369
+ });
334
370
  return {
335
371
  document,
336
372
  summary: {
337
373
  taskId: options.taskId,
338
374
  taskType,
339
- serviceType: SERVICE_TYPE_BY_TASK[taskType],
375
+ serviceType,
340
376
  contextEntries: splicedContext.length,
341
377
  inputs: asArray(caseShape.inputs).length,
342
378
  outputs: asArray(caseShape.outputs).length,
@@ -344,14 +380,66 @@ var spliceConnectorShape = (document, caseShape, options) => {
344
380
  ...folderBindingId !== undefined && { folderBindingId },
345
381
  bindingsReused: foundConnection !== undefined,
346
382
  bindingsCompleted: completed,
347
- bindingsDropped: dropped
383
+ bindingsDropped: dropped,
384
+ resourceBindingIds: [...resources.usedIds],
385
+ ...warning !== undefined && { warning }
348
386
  }
349
387
  };
350
388
  };
389
+ function specKindMismatch(taskId, taskType, executionType) {
390
+ if (EXTERNAL_TASK_TYPES.has(taskType) || executionType === undefined) {
391
+ return;
392
+ }
393
+ return {
394
+ message: `Task "${taskId}" is a \`${taskType}\` task, but this spec is for an external agent or automation (executionType "${executionType}")`,
395
+ instructions: "Change the task's type to `external-agent` or `external-workflow`, or fetch a connector activity's spec."
396
+ };
397
+ }
398
+ function guessedExecutionWarning(executionType, serviceType) {
399
+ if (executionType === undefined) {
400
+ return `The spec's context has no executionType, so the task was written as ${serviceType}, the Designer's default. If the spec is for a plain connector activity, splice it into an \`execute-connector-activity\` task instead.`;
401
+ }
402
+ if (isMappedExecution(executionType))
403
+ return;
404
+ return `The spec's executionType "${executionType}" is not sync, async or hybrid, so the task was written as ${serviceType}, the Designer's default. Check the connector's execution type before relying on it.`;
405
+ }
406
+ function applyResourceBindings(bindings, resourceBindings) {
407
+ const ids = new Map;
408
+ const used = [];
409
+ for (const resource of resourceBindings) {
410
+ for (const row of resource.rows) {
411
+ const { binding, created } = upsertResourceBinding(bindings.filter((entry) => asRecord(entry) !== undefined), {
412
+ resource: resource.resource,
413
+ resourceKey: resource.resourceKey,
414
+ propertyAttribute: row.propertyAttribute,
415
+ name: row.name,
416
+ default: row.default
417
+ }, () => prefixedId("b", 8));
418
+ if (created)
419
+ bindings.push(binding);
420
+ ids.set(row.bindingIdPlaceholder, String(binding.id));
421
+ if (!used.some((entry) => entry.id === binding.id))
422
+ used.push(binding);
423
+ }
424
+ }
425
+ return {
426
+ ids,
427
+ used,
428
+ usedIds: new Set(used.map((entry) => String(entry.id)))
429
+ };
430
+ }
431
+ var replacePlaceholders = (value, ids) => mapStringsDeep(value, (text) => {
432
+ if (!text.includes(RESOURCE_BINDING_ID_PREFIX))
433
+ return text;
434
+ let out = text;
435
+ for (const [placeholder, id] of ids)
436
+ out = out.replaceAll(placeholder, id);
437
+ return out;
438
+ });
351
439
  var isSpliceFailure = (value) => ("message" in value);
352
440
  export {
353
441
  isSpliceFailure,
354
442
  spliceConnectorShape
355
443
  };
356
444
 
357
- //# debugId=0226F0A402EC388E64756E2164756E21
445
+ //# debugId=A4201D0AD800A05764756E2164756E21