@uipath/case-tool 1.206.0-preview.301 → 1.207.0-preview.305

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/README.md +7 -90
  2. package/dist/THIRD-PARTY-NOTICES.md +162 -7
  3. package/dist/{authoring-wt5ngnjb.js → authoring-qqev46bh.js} +233 -63
  4. package/dist/{bindings-v2-x100hvcy.js → bindings-v2-wjgg92tj.js} +4 -4
  5. package/dist/{browser-strategy-627rrg7z.js → browser-strategy-qc6htsnf.js} +1 -1
  6. package/dist/{business-rule-export-pggs7x01.js → business-rule-export-0pbc3ysq.js} +2 -2
  7. package/dist/{carry-forward-gxsadrqb.js → carry-forward-tj5yrqf6.js} +6 -6
  8. package/dist/{case-api-a6v5beat.js → case-api-bfwmvkb8.js} +24 -28
  9. package/dist/{case-bindings-service-9zemt0r2.js → case-bindings-service-5r7c70kz.js} +5 -5
  10. package/dist/case-catalog-h4fjn6q3.js +304 -0
  11. package/dist/{case-debug-solution-projects-ygfggamz.js → case-debug-solution-projects-5tr4pwbs.js} +2 -2
  12. package/dist/{case-debug-studio-web-service-hcbrw6f5.js → case-debug-studio-web-service-7smzvq4c.js} +10 -9
  13. package/dist/{case-described-io-service-8dw21x2y.js → case-described-io-service-ddsvkz8w.js} +5 -5
  14. package/dist/{case-event-trigger-bindings-pmad4dev.js → case-event-trigger-bindings-8nd78j4e.js} +5 -5
  15. package/dist/{case-format-service-xjvnx3jd.js → case-format-service-4mzszgfb.js} +2 -2
  16. package/dist/case-pack-service-bp7sh20v.js +297 -0
  17. package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
  18. package/dist/{case-validate-service-2kjqnhdt.js → case-validate-service-fxvq4qx7.js} +146 -38
  19. package/dist/{connector-enrichment-service-wq282h58.js → connector-enrichment-service-x0w721wj.js} +26 -25
  20. package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
  21. package/dist/{connector-lookup-service-62t7j9km.js → connector-lookup-service-51pca3bf.js} +8 -8
  22. package/dist/{connector-task-shape-bgywpbqc.js → connector-task-shape-s2zny4gf.js} +3 -3
  23. package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
  24. package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-xrrajtht.js} +1277 -10
  25. package/dist/{debug-service-tm92ws5e.js → debug-service-hf2wb4tw.js} +9 -4
  26. package/dist/{en-LAVDF7IQ-yzy20n6d.js → en-5JIPZTS5-c68n8taw.js} +4 -2
  27. package/dist/{en-X6T4SP2Y-xm47mf18.js → en-ETY46SDS-far9tmsf.js} +66 -2
  28. package/dist/{enrichment-service-hzsn1aqp.js → enrichment-service-7f4sdff5.js} +17 -17
  29. package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
  30. package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
  31. package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -10
  32. package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
  33. package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-vzfmygd7.js} +1277 -10
  34. package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
  35. package/dist/{index-8h77h81c.js → index-2j5tfjwv.js} +129 -76
  36. package/dist/{index-katfc3yn.js → index-ezxmyhan.js} +4 -4
  37. package/dist/{index-j2gw61z0.js → index-gb75pv5a.js} +111 -65
  38. package/dist/index-prn518fr.js +36 -0
  39. package/dist/{index-nj3axvya.js → index-rk82650j.js} +7 -5
  40. package/dist/{index-pg9wmyrf.js → index-t6fnts8a.js} +2 -2
  41. package/dist/index-wkmh1h6w.js +26 -0
  42. package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
  43. package/dist/index.js +13 -11
  44. package/dist/init-entry-points-52kvvbg9.js +15 -0
  45. package/dist/input-reader-zr71xcm9.js +13 -0
  46. package/dist/integration-service-fetcher-bpbz1gcx.js +68 -0
  47. package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
  48. package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
  49. package/dist/{known-types-gak9by1w.js → known-types-a5d0evdm.js} +2 -2
  50. package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
  51. package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
  52. package/dist/library-option-pbvkt66g.js +13 -0
  53. package/dist/{localSolutionDiscovery-9pj8mzye.js → localSolutionDiscovery-5sqz9dkr.js} +5 -5
  54. package/dist/manifest-rhee8kem.js +32 -0
  55. package/dist/{node-strategy-2mqzg36t.js → node-strategy-aaf2qe6c.js} +2 -2
  56. package/dist/{node-sync-service-m4zksnxd.js → node-sync-service-q1a37d6n.js} +21 -15
  57. package/dist/{out-target-gtg3we44.js → out-target-02x6x6nk.js} +5 -5
  58. package/dist/{packager-tool-h2ar8xf8.js → packager-tool-00ck60cc.js} +25 -24
  59. package/dist/{packager-tool-tqn0a5bg.js → packager-tool-00qmds4s.js} +254 -69
  60. package/dist/{packager-tool-388vyja1.js → packager-tool-0gmnk7sb.js} +2 -2
  61. package/dist/{packager-tool-fcektt1g.js → packager-tool-0nbcqyvp.js} +10 -9
  62. package/dist/{packager-tool-3aeetcr4.js → packager-tool-178xtejt.js} +191 -154
  63. package/dist/{packager-tool-gkmvcbkr.js → packager-tool-1dsedy7x.js} +59 -34
  64. package/dist/packager-tool-1yew22sn.js +9 -0
  65. package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
  66. package/dist/{packager-tool-m4x2n2bx.js → packager-tool-2x40ye7a.js} +21 -7
  67. package/dist/{packager-tool-p0rdmmvk.js → packager-tool-2xemp3b1.js} +2 -2
  68. package/dist/packager-tool-34ttsx9q.js +18 -0
  69. package/dist/{packager-tool-3zy717ga.js → packager-tool-36vkdb3h.js} +2 -2
  70. package/dist/{packager-tool-81wpefzk.js → packager-tool-380ac64s.js} +61 -11
  71. package/dist/{packager-tool-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
  72. package/dist/packager-tool-3k5j706w.js +73 -0
  73. package/dist/{packager-tool-scy94jyb.js → packager-tool-4seehsme.js} +2 -72
  74. package/dist/{packager-tool-es77jvky.js → packager-tool-4w7nzx18.js} +360 -44
  75. package/dist/{packager-tool-4avchhz8.js → packager-tool-57970zfm.js} +12 -7
  76. package/dist/{packager-tool-bjt8b2nz.js → packager-tool-5s476jdt.js} +13 -13
  77. package/dist/{packager-tool-0xj79bbd.js → packager-tool-8kcwawyg.js} +13 -4
  78. package/dist/{packager-tool-wy3a65rx.js → packager-tool-bw4fsdq4.js} +27 -13
  79. package/dist/{packager-tool-dn9d4ywm.js → packager-tool-c0pavv0s.js} +66 -10
  80. package/dist/packager-tool-c9h0rwgv.js +31 -0
  81. package/dist/{packager-tool-t8qx6hvn.js → packager-tool-dv2vtyg0.js} +4 -4
  82. package/dist/{packager-tool-3r23qsca.js → packager-tool-ef43cy32.js} +213 -231
  83. package/dist/{packager-tool-pg0qpfg8.js → packager-tool-ej14cxen.js} +22 -22
  84. package/dist/{packager-tool-5w0gjcck.js → packager-tool-engs9gvj.js} +1 -1
  85. package/dist/{packager-tool-stdwmgvd.js → packager-tool-exrjwmew.js} +202 -83
  86. package/dist/{task-type-declaration-yhczvj05.js → packager-tool-f9n5mk1c.js} +8 -12
  87. package/dist/{packager-tool-b2q8m9pq.js → packager-tool-fspmvh6g.js} +5 -4
  88. package/dist/packager-tool-geh2qybm.js +179 -0
  89. package/dist/{packager-tool-17b466mr.js → packager-tool-hrd44w8g.js} +7561 -6408
  90. package/dist/{packager-tool-snesn0bt.js → packager-tool-j1etnthk.js} +19 -14
  91. package/dist/{packager-tool-k871wgpe.js → packager-tool-j53d4vv1.js} +18 -4
  92. package/dist/{packager-tool-6ewsbrnb.js → packager-tool-j8mnpsv8.js} +329 -149
  93. package/dist/{packager-tool-7x1tmb8a.js → packager-tool-jydreskq.js} +1 -1
  94. package/dist/{packager-tool-r5pha7xq.js → packager-tool-k08k9g2y.js} +9 -9
  95. package/dist/{packager-tool-bg3tdpva.js → packager-tool-kh9gs4d5.js} +4 -2
  96. package/dist/{packager-tool-8467kcz9.js → packager-tool-m7s4n455.js} +120 -13
  97. package/dist/{packager-tool-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
  98. package/dist/packager-tool-n6h4bz4d.js +22 -0
  99. package/dist/{packager-tool-ad8v11jd.js → packager-tool-p4c1g2sj.js} +1032 -819
  100. package/dist/{packager-tool-z070caqq.js → packager-tool-p64w2wrt.js} +30 -8
  101. package/dist/{packager-tool-xd1wbvay.js → packager-tool-pq61r2f1.js} +1 -1
  102. package/dist/{packager-tool-65vr263d.js → packager-tool-qzyb1eac.js} +1 -1
  103. package/dist/{packager-tool-5dptce1y.js → packager-tool-rzxnm9yj.js} +2 -2
  104. package/dist/{init-entry-points-5xzn81bb.js → packager-tool-t6xwkhht.js} +12 -10
  105. package/dist/packager-tool-vmfd007q.js +27 -0
  106. package/dist/packager-tool-wvf6b31h.js +50 -0
  107. package/dist/{packager-tool-cdvrca04.js → packager-tool-x9z4krtr.js} +1036 -259
  108. package/dist/{packager-tool-z1fw9a8v.js → packager-tool-y69796fy.js} +19 -11
  109. package/dist/{packager-tool-7c14mwnb.js → packager-tool-z13dp55w.js} +3393 -3092
  110. package/dist/{packager-tool-9m7jbv7t.js → packager-tool-zbfwp75m.js} +4 -4
  111. package/dist/{packager-tool-pq9xv4vq.js → packager-tool-zte9svtn.js} +11 -4
  112. package/dist/packager-tool.js +2 -2
  113. package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-2hcb65bn.js} +39 -6
  114. package/dist/{project-artifacts-pfcn65cg.js → project-artifacts-77yctm8b.js} +1 -1
  115. package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
  116. package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
  117. package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
  118. package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
  119. package/dist/{resolved-check-dz8eqrf6.js → resolved-check-kwgy875v.js} +1 -1
  120. package/dist/{resourcesSyncService-27bstvae.js → resourcesSyncService-gegbd8b8.js} +49 -26
  121. package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-9k2jjk88.js} +1271 -10
  122. package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
  123. package/dist/{rule-type-declaration-ze0saj5r.js → rule-type-declaration-a0fk7fe7.js} +12 -11
  124. package/dist/{sdd-convert-service-m8e615a1.js → sdd-convert-service-2ag3xjpj.js} +120 -621
  125. package/dist/{sdd-lookup-fwj6x364.js → sdd-lookup-wgm5ctnd.js} +2 -2
  126. package/dist/{sdd-resolve-service-dvg387wx.js → sdd-resolve-service-epygyb0n.js} +34 -6
  127. package/dist/{sdd-resolve-siblings-mpj6ypwk.js → sdd-resolve-siblings-qz7gwws5.js} +4 -4
  128. package/dist/solution-auth-yb1twb9d.js +11 -0
  129. package/dist/{solution-discovery-gfdqhgt2.js → solution-discovery-t0nkzpm3.js} +4 -4
  130. package/dist/{strict-case-rules-045kbjvv.js → strict-case-rules-x1sytx3e.js} +91 -46
  131. package/dist/{strict-entry-points-wd85a81g.js → strict-entry-points-anxeg692.js} +6 -6
  132. package/dist/strict-sdd-audit-z1bg2zr0.js +28 -0
  133. package/dist/taggable-variables-gc58xb0s.js +6094 -0
  134. package/dist/task-type-declaration-b0ejzhc6.js +15 -0
  135. package/dist/tool.js +13 -11
  136. package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -10
  137. package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
  138. package/dist/{trigger-enrichment-service-5x04aa70.js → trigger-enrichment-service-bsj58ppa.js} +33 -32
  139. package/dist/{trigger-entry-point-id-4j9rk3kp.js → trigger-entry-point-id-hre2ewts.js} +1 -1
  140. package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
  141. package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -10
  142. package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
  143. package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -11
  144. package/package.json +2 -2
  145. package/dist/case-pack-service-adhg30nq.js +0 -167
  146. package/dist/index-krtxycbe.js +0 -35
  147. package/dist/input-reader-pjt4a914.js +0 -10
  148. package/dist/packager-tool-v11fx4dk.js +0 -25
  149. package/dist/solution-auth-a1p22hq1.js +0 -11
  150. package/dist/strict-sdd-audit-6es2j6fs.js +0 -26
@@ -1,20 +1,23 @@
1
- import"./packager-tool-z070caqq.js";
1
+ import"./packager-tool-p64w2wrt.js";
2
2
  import {
3
3
  catchError2,
4
4
  OutputFormatter
5
- } from "./packager-tool-6ewsbrnb.js";
5
+ } from "./packager-tool-j8mnpsv8.js";
6
6
  import {
7
- JobsApi,
8
- ReleasesApi,
9
- createOrchestratorConfig,
10
- resolveFolder
11
- } from "./packager-tool-ad8v11jd.js";
12
- import"./packager-tool-q26hncjr.js";
13
- import"./packager-tool-dn9d4ywm.js";
7
+ toMillisecondIso
8
+ } from "./packager-tool-wvf6b31h.js";
9
+ import {
10
+ JobsApi2,
11
+ ReleasesApi2,
12
+ createOrchestratorConfig2,
13
+ resolveFolder2
14
+ } from "./packager-tool-p4c1g2sj.js";
15
+ import"./packager-tool-n3r5apbb.js";
16
+ import"./packager-tool-c0pavv0s.js";
14
17
  import {
15
18
  parseJsonInputOrFile
16
- } from "./packager-tool-5dptce1y.js";
17
- import"./packager-tool-pq9xv4vq.js";
19
+ } from "./packager-tool-rzxnm9yj.js";
20
+ import"./packager-tool-zte9svtn.js";
18
21
 
19
22
  // src/services/http-client.ts
20
23
  function buildCommonHeaders(config, options) {
@@ -60,19 +63,12 @@ async function orchestratorGet(config, path) {
60
63
  var RELEASES_PAGE_SIZE = 100;
61
64
  async function listCaseProcesses(config, filter) {
62
65
  const organizationUnitId = await resolveOrganizationUnitId(config);
63
- const sdkConfig = await createOrchestratorConfig({
66
+ const sdkConfig = await createOrchestratorConfig2({
64
67
  folderId: organizationUnitId?.toString(),
65
68
  tenant: config.tenantName
66
69
  });
67
- const releasesApi = new ReleasesApi(sdkConfig);
70
+ const releasesApi = new ReleasesApi2(sdkConfig);
68
71
  const filters = ["ProcessType eq 'CaseManagement'"];
69
- if (config.folderKey) {
70
- const guidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
71
- if (!guidRegex.test(config.folderKey)) {
72
- throw new Error(`Invalid folder key format: "${config.folderKey}". Expected GUID ex. 01234567-0123-0123-0123-0123456789ab`);
73
- }
74
- filters.push(`FolderKey eq '${config.folderKey}'`);
75
- }
76
72
  if (filter) {
77
73
  filters.push(filter);
78
74
  }
@@ -101,7 +97,7 @@ async function getCaseEntryPoints(config) {
101
97
  organizationUnitId
102
98
  };
103
99
  const feedIdParam = config.feedId ? `?feedId=${encodeURIComponent(config.feedId)}` : "";
104
- if (!/^[a-zA-Z0-9._-]+$/.test(config.processKey)) {
100
+ if (!/^[a-zA-Z0-9._:-]+$/.test(config.processKey)) {
105
101
  throw new Error(`Invalid process key format: "${config.processKey}"`);
106
102
  }
107
103
  const path = `/odata/Processes/UiPath.Server.Configuration.OData.GetPackageEntryPointsV2(key='${config.processKey}')${feedIdParam}`;
@@ -110,11 +106,11 @@ async function getCaseEntryPoints(config) {
110
106
  }
111
107
  async function startCaseJob(config) {
112
108
  const organizationUnitId = await resolveOrganizationUnitId(config);
113
- const sdkConfig = await createOrchestratorConfig({
109
+ const sdkConfig = await createOrchestratorConfig2({
114
110
  folderId: organizationUnitId?.toString(),
115
111
  tenant: config.tenantName
116
112
  });
117
- const jobsApi = new JobsApi(sdkConfig);
113
+ const jobsApi = new JobsApi2(sdkConfig);
118
114
  const inputArguments = config.inputs ? JSON.stringify(config.inputs) : "{}";
119
115
  const startInfo = {
120
116
  releaseKey: config.releaseKey,
@@ -183,7 +179,7 @@ function spanToTraceEvent(span) {
183
179
  }
184
180
  const duration = span.EndTime ? new Date(span.EndTime).getTime() - new Date(span.StartTime).getTime() : undefined;
185
181
  return {
186
- timestamp: span.StartTime,
182
+ timestamp: toMillisecondIso(span.StartTime),
187
183
  spanId: span.Id,
188
184
  parentId: span.ParentId,
189
185
  name: span.Name,
@@ -288,11 +284,11 @@ async function streamJobTraces(config, jobKey, options = {}) {
288
284
  }
289
285
  async function getJobStatusDetailed(config, jobKey) {
290
286
  const organizationUnitId = await resolveOrganizationUnitId(config);
291
- const sdkConfig = await createOrchestratorConfig({
287
+ const sdkConfig = await createOrchestratorConfig2({
292
288
  folderId: organizationUnitId?.toString(),
293
289
  tenant: config.tenantName
294
290
  });
295
- const jobsApi = new JobsApi(sdkConfig);
291
+ const jobsApi = new JobsApi2(sdkConfig);
296
292
  if (!/^[0-9a-fA-F-]+$/.test(jobKey)) {
297
293
  throw new Error(`Invalid job key format: "${jobKey}"`);
298
294
  }
@@ -313,7 +309,7 @@ async function resolveOrganizationUnitId(config) {
313
309
  if (!config.folderKey) {
314
310
  return;
315
311
  }
316
- const folder = await resolveFolder({ folderKey: config.folderKey }, { tenant: config.tenantName });
312
+ const folder = await resolveFolder2({ folderKey: config.folderKey }, { tenant: config.tenantName });
317
313
  if (folder?.id === undefined || folder.id === null) {
318
314
  throw new Error(`Folder with key '${config.folderKey}' could not be resolved to an organization unit ID.`);
319
315
  }
@@ -379,4 +375,4 @@ export {
379
375
  validateCaseInputs
380
376
  };
381
377
 
382
- //# debugId=98BEA38F292D6C4764756E2164756E21
378
+ //# debugId=883F5D5765E1B37664756E2164756E21
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./packager-tool-z070caqq.js";
3
+ } from "./packager-tool-p64w2wrt.js";
4
4
  import {
5
5
  catchError2
6
- } from "./packager-tool-6ewsbrnb.js";
6
+ } from "./packager-tool-j8mnpsv8.js";
7
7
  import {
8
8
  roleDescriptionOf,
9
9
  caseStageLabels,
@@ -13,7 +13,7 @@ import {
13
13
  } from "./packager-tool-1wgav5ma.js";
14
14
  import {
15
15
  BINDINGS_VERSION
16
- } from "./packager-tool-h2ar8xf8.js";
16
+ } from "./packager-tool-00ck60cc.js";
17
17
  import {
18
18
  BINDINGS_V2_FILE_NAME2,
19
19
  CONNECTION_ID_PROPERTY2,
@@ -22,11 +22,11 @@ import {
22
22
  readBindingsV2Resources2,
23
23
  diffBindingsV22,
24
24
  hasBindingsV2Difference2
25
- } from "./packager-tool-65vr263d.js";
25
+ } from "./packager-tool-qzyb1eac.js";
26
26
  import {
27
27
  readEntryPointIds2,
28
28
  deriveEventTriggerResources2
29
- } from "./packager-tool-t8qx6hvn.js";
29
+ } from "./packager-tool-dv2vtyg0.js";
30
30
  import"./packager-tool-68648y3j.js";
31
31
 
32
32
  // src/services/case-bindings-service.ts
@@ -0,0 +1,304 @@
1
+ import {
2
+ declareVariable,
3
+ uniqueCatalog
4
+ } from "./packager-tool-geh2qybm.js";
5
+
6
+ // ../maestro-sdk/src/variable-tags/case-catalog.ts
7
+ var METADATA_GROUP = "Case instance metadata";
8
+ var STAGE_TYPES = new Set([
9
+ "case-management:Stage",
10
+ "case-management:ExceptionStage"
11
+ ]);
12
+ var isRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
13
+ function toCanvas(document) {
14
+ const parsed = typeof document === "string" ? JSON.parse(document) : document;
15
+ if (!isRecord(parsed)) {
16
+ throw new Error("The case definition is not a JSON object.");
17
+ }
18
+ const nodes = parsed.nodes ?? [];
19
+ const edges = parsed.edges ?? [];
20
+ if (isRecord(parsed.root)) {
21
+ const root = parsed.root;
22
+ return {
23
+ root,
24
+ nodes,
25
+ edges,
26
+ bindings: root.data?.uipath?.bindings ?? []
27
+ };
28
+ }
29
+ const metadata = isRecord(parsed.metadata) ? parsed.metadata : {};
30
+ const bindings = parsed.bindings ?? [];
31
+ const name = typeof parsed.name === "string" ? parsed.name : undefined;
32
+ const root = {
33
+ id: "root",
34
+ name,
35
+ data: {
36
+ label: name,
37
+ slaRules: metadata.slaRules,
38
+ uipath: {
39
+ bindings,
40
+ variables: parsed.variables ?? {}
41
+ }
42
+ },
43
+ caseExitConditions: metadata.caseExitRules,
44
+ allowAdhocOptionalStageTasks: metadata.allowAdhocOptionalStageTasks === true
45
+ };
46
+ return { root, nodes, edges, bindings };
47
+ }
48
+ var stripExpression = (value) => value.replace(/^=/, "");
49
+ var isOwnOutput = (output) => !output.originalVar || output.var === output.id;
50
+ var withShownName = (output) => output.renamed ? { ...output, name: output.displayName ?? output.name } : output;
51
+ function sourceVariable(output) {
52
+ const id = stripExpression(output.id ?? "");
53
+ if (id.length === 0 && output.var?.length)
54
+ return;
55
+ if (id.startsWith("vars.") || id.startsWith("bindings."))
56
+ return;
57
+ return { ...output, id, type: output.type ?? "string" };
58
+ }
59
+ function addVariables(map, ownerKey, outputs, options = {}) {
60
+ for (const raw of outputs ?? []) {
61
+ if (options.own && !isOwnOutput(raw))
62
+ continue;
63
+ if (options.onlyOwnedBy !== undefined && raw.elementId && raw.elementId !== options.onlyOwnedBy) {
64
+ continue;
65
+ }
66
+ const variable = sourceVariable(options.own ? withShownName(raw) : raw);
67
+ if (!variable)
68
+ continue;
69
+ const key = variable.elementId ?? ownerKey;
70
+ const inElement = map.get(key) ?? new Map;
71
+ const existing = inElement.get(variable.id ?? "");
72
+ if (existing && existing.id === variable.var)
73
+ continue;
74
+ inElement.set(variable.id ?? "", variable);
75
+ map.set(key, inElement);
76
+ }
77
+ }
78
+ var flatRules = (conditions) => (conditions ?? []).flatMap((condition) => (condition.rules ?? []).flatMap((set) => set));
79
+ var taskKey = (stageId, task) => `${stageId}-${task.id ?? ""}`;
80
+ function addRuleVariables(map, elementId, rules) {
81
+ for (const rule of rules) {
82
+ const key = `${elementId}-${rule.id ?? ""}`;
83
+ addVariables(map, key, rule.uipath?.outputs, {
84
+ own: true,
85
+ onlyOwnedBy: key
86
+ });
87
+ }
88
+ }
89
+ var isStage = (element) => STAGE_TYPES.has(element.type ?? "");
90
+ var isTrigger = (element) => element.type === "case-management:Trigger" || element.type === "uipath.case.trigger";
91
+ function ownElementOutputs(element) {
92
+ const isTriggerNode = isTrigger(element);
93
+ const bag = element.type === "uipath.case.trigger" ? element.data?.inputs : element.data?.uipath;
94
+ if (bag?.inputOutputs)
95
+ return bag.inputOutputs;
96
+ const outputs = bag?.outputs ?? [];
97
+ return isTriggerNode ? outputs.filter(isOwnOutput).map(withShownName) : outputs;
98
+ }
99
+ function buildVariablesMap(canvas) {
100
+ const { root, nodes, edges } = canvas;
101
+ const map = new Map;
102
+ addVariables(map, root.id, root.data?.uipath?.variables?.inputOutputs);
103
+ addRuleVariables(map, root.id, flatRules(root.caseExitConditions));
104
+ const addTask = (stageId, task) => {
105
+ const key = taskKey(stageId, task);
106
+ addVariables(map, key, task.data?.outputs, {
107
+ own: true,
108
+ onlyOwnedBy: key
109
+ });
110
+ };
111
+ for (const node of nodes) {
112
+ addVariables(map, node.id, ownElementOutputs(node), {
113
+ onlyOwnedBy: node.id
114
+ });
115
+ if (isStage(node)) {
116
+ const tasks = (node.data?.tasks ?? []).flatMap((set) => set);
117
+ for (const task of tasks) {
118
+ addTask(node.id, task);
119
+ for (const condition of task.entryConditions ?? []) {
120
+ addRuleVariables(map, node.id, flatRules([condition]));
121
+ }
122
+ }
123
+ }
124
+ addRuleVariables(map, node.id, flatRules([
125
+ ...node.data?.entryConditions ?? [],
126
+ ...node.data?.exitConditions ?? []
127
+ ]));
128
+ if (root.allowAdhocOptionalStageTasks) {
129
+ const adhoc = node.data?.adhocOrchestrationData?.adhocConnectorTask;
130
+ if (adhoc)
131
+ addTask(node.id, adhoc);
132
+ const end = node.data?.adhocCaseEndData?.endCaseConnectorTask;
133
+ if (end)
134
+ addTask(node.id, end);
135
+ }
136
+ }
137
+ for (const edge of edges) {
138
+ addVariables(map, edge.id, ownElementOutputs(edge), {
139
+ onlyOwnedBy: edge.id
140
+ });
141
+ }
142
+ return map;
143
+ }
144
+ function elementLabel(element) {
145
+ if (isTrigger(element)) {
146
+ return element.type === "uipath.case.trigger" ? element.data?.display?.label ?? element.name ?? "" : element.data?.label ?? element.name ?? "";
147
+ }
148
+ const context = element.data?.uipath?.context ?? [];
149
+ const fromContext = (name) => context.find((one) => one.name === name)?.value;
150
+ return element.data?.label || fromContext("_label") || fromContext("name") || fromContext("actionName") || fromContext("queueName") || element.name || "";
151
+ }
152
+ function displayLabels(elements) {
153
+ const labels = new Map;
154
+ const counts = new Map;
155
+ for (const element of elements) {
156
+ const label = elementLabel(element);
157
+ labels.set(element.id, label);
158
+ if (label)
159
+ counts.set(label, (counts.get(label) ?? 0) + 1);
160
+ }
161
+ return (id) => {
162
+ const label = labels.get(id) || id;
163
+ return (counts.get(label) ?? 0) > 1 ? `${label} (${id})` : label;
164
+ };
165
+ }
166
+ function taskName(task, bindings) {
167
+ if (task.displayName?.length)
168
+ return task.displayName;
169
+ const name = task.data?.name ?? "";
170
+ const bound = name.startsWith("=bindings.") ? bindings.find((one) => one.id === name.slice("=bindings.".length)) : undefined;
171
+ return bound?.default ?? name;
172
+ }
173
+ function subElementsOf(canvas, element) {
174
+ const { root, bindings } = canvas;
175
+ const subs = [];
176
+ const ruleSubs = (rules) => {
177
+ for (const rule of rules) {
178
+ subs.push({
179
+ id: `${element.id}-${rule.id ?? ""}`,
180
+ name: `Transition rule ${rule.id ?? ""}`
181
+ });
182
+ }
183
+ };
184
+ const taskSubs = (task, displayName) => {
185
+ const name = displayName ?? taskName(task, bindings);
186
+ subs.push({ id: taskKey(element.id, task), name });
187
+ for (const condition of task.entryConditions ?? []) {
188
+ subs.push({
189
+ id: `${element.id}-${condition.id ?? ""}`,
190
+ name: `${name} - ${condition.id ?? ""}`
191
+ });
192
+ }
193
+ };
194
+ if (isStage(element)) {
195
+ for (const task of (element.data?.tasks ?? []).flatMap((set) => set)) {
196
+ taskSubs(task);
197
+ }
198
+ ruleSubs(flatRules([
199
+ ...element.data?.entryConditions ?? [],
200
+ ...element.data?.exitConditions ?? []
201
+ ]));
202
+ if (root.allowAdhocOptionalStageTasks) {
203
+ const adhoc = element.data?.adhocOrchestrationData?.adhocConnectorTask;
204
+ if (adhoc)
205
+ taskSubs(adhoc, adhoc.displayName ?? "Case events connector");
206
+ const end = element.data?.adhocCaseEndData?.endCaseConnectorTask;
207
+ if (end) {
208
+ taskSubs(end, end.displayName ?? "End ad hoc case connector");
209
+ }
210
+ }
211
+ } else if (element.id === root.id) {
212
+ ruleSubs(flatRules(root.caseExitConditions));
213
+ }
214
+ return subs;
215
+ }
216
+ var savedElementKey = (activityId) => {
217
+ const dash = activityId.indexOf("-");
218
+ return dash === -1 ? activityId : activityId.slice(dash + 1);
219
+ };
220
+ function declarationFor(input) {
221
+ const { variable, activityId, nested, parentId } = input;
222
+ const dashed = activityId.includes("-");
223
+ const body = variable.body ?? variable._jsonSchema;
224
+ const declaration = {
225
+ elementKey: savedElementKey(activityId),
226
+ name: variable.name ?? "",
227
+ type: variable.type,
228
+ body,
229
+ elementLabel: input.elementLabel,
230
+ source: input.source
231
+ };
232
+ if (dashed && !nested) {
233
+ declaration.blockedReason = `the Maestro UI cannot save a variable on '${activityId}': its id contains a dash; tag it in the Maestro UI`;
234
+ } else if (nested && parentId.includes("-")) {
235
+ declaration.note = `saved under '${declaration.elementKey}', which is how the Maestro UI keys it for a stage id with a dash ('${parentId}'); the runtime may not match it`;
236
+ }
237
+ return declaration;
238
+ }
239
+ var DEFAULT_SLA_NAME = "Default SLA";
240
+ function slaDeclaration(sla) {
241
+ const name = sla.displayName?.length ? sla.displayName : DEFAULT_SLA_NAME;
242
+ const properties = { slaStatus: { type: "string" } };
243
+ for (const escalation of sla.escalationRule ?? []) {
244
+ const key = escalation.displayName?.length ? escalation.displayName.replace(/[^a-zA-Z0-9_]/g, "_") : escalation.id ?? "";
245
+ properties[key] = {
246
+ title: escalation.displayName ?? "",
247
+ type: "object",
248
+ properties: {
249
+ startTimeEpoch: { type: "number" },
250
+ endTimeEpoch: { type: "number" }
251
+ }
252
+ };
253
+ }
254
+ return {
255
+ elementKey: "root",
256
+ name,
257
+ type: "jsonSchema",
258
+ body: { type: "object", properties },
259
+ elementLabel: `${METADATA_GROUP} / ${name}`,
260
+ source: name
261
+ };
262
+ }
263
+ function deriveCaseTaggableVariables(document) {
264
+ const canvas = toCanvas(document);
265
+ const { root, nodes, edges } = canvas;
266
+ const elements = [root, ...nodes, ...edges];
267
+ const titleOf = displayLabels(elements);
268
+ const map = buildVariablesMap(canvas);
269
+ const sink = { variables: [], containers: [] };
270
+ const declareAll = (ownerId, shared) => {
271
+ for (const variable of map.get(ownerId)?.values() ?? []) {
272
+ if (variable.internal || !variable.name)
273
+ continue;
274
+ declareVariable(declarationFor({ variable, activityId: ownerId, ...shared }), sink);
275
+ }
276
+ };
277
+ for (const element of elements) {
278
+ const title = titleOf(element.id);
279
+ declareAll(element.id, {
280
+ nested: false,
281
+ parentId: element.id,
282
+ elementLabel: title,
283
+ source: title
284
+ });
285
+ for (const sub of subElementsOf(canvas, element)) {
286
+ const name = sub.name || sub.id;
287
+ declareAll(sub.id, {
288
+ nested: true,
289
+ parentId: element.id,
290
+ elementLabel: `${title} / ${name}`,
291
+ source: name
292
+ });
293
+ }
294
+ }
295
+ for (const sla of root.data?.slaRules ?? []) {
296
+ declareVariable(slaDeclaration(sla), sink);
297
+ }
298
+ return uniqueCatalog(sink);
299
+ }
300
+ export {
301
+ deriveCaseTaggableVariables
302
+ };
303
+
304
+ //# debugId=8F9E130079D34C7864756E2164756E21
@@ -1,10 +1,10 @@
1
1
  // src/services/case-debug-solution-projects.ts
2
2
  var caseSolutionProjects = async (solutionDir, uploaded, solutionId) => {
3
- const { readSolutionAt } = await import("./index-krtxycbe.js");
3
+ const { readSolutionAt } = await import("./index-prn518fr.js");
4
4
  const context = await readSolutionAt(solutionDir);
5
5
  if (context === null)
6
6
  return [];
7
- const { readLocalResourcesForType } = await import("./localSolutionDiscovery-9pj8mzye.js");
7
+ const { readLocalResourcesForType } = await import("./localSolutionDiscovery-5sqz9dkr.js");
8
8
  const rules = await readLocalResourcesForType(context, "businessRule");
9
9
  const descriptors = [];
10
10
  for (const rule of rules) {
@@ -1,17 +1,18 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./packager-tool-z070caqq.js";
3
+ } from "./packager-tool-p64w2wrt.js";
4
4
  import {
5
5
  logger
6
- } from "./packager-tool-6ewsbrnb.js";
6
+ } from "./packager-tool-j8mnpsv8.js";
7
7
  import {
8
8
  uploadAndDebugSolution2
9
- } from "./packager-tool-es77jvky.js";
9
+ } from "./packager-tool-4w7nzx18.js";
10
+ import"./packager-tool-wvf6b31h.js";
10
11
  import {
11
12
  parseJsonObject,
12
13
  resolvePackagedMain,
13
14
  readOperateMain
14
- } from "./packager-tool-snesn0bt.js";
15
+ } from "./packager-tool-j1etnthk.js";
15
16
  import"./packager-tool-1wgav5ma.js";
16
17
  import {
17
18
  CasePlanFileNames2,
@@ -23,15 +24,15 @@ import {
23
24
  misnamedEntryPointBpmn2,
24
25
  buildCasePackageDescriptor2,
25
26
  withCasePlanDefaults2
26
- } from "./packager-tool-4avchhz8.js";
27
+ } from "./packager-tool-57970zfm.js";
27
28
  import {
28
29
  buildSolutionPackageFromDir2,
29
30
  uploadOrOverwriteSolution2
30
- } from "./packager-tool-m4x2n2bx.js";
31
+ } from "./packager-tool-2x40ye7a.js";
31
32
  import {
32
33
  findSolutionFile2,
33
34
  updateSolutionFile2
34
- } from "./packager-tool-8467kcz9.js";
35
+ } from "./packager-tool-m7s4n455.js";
35
36
  import {
36
37
  loadCaseSchemaAsync
37
38
  } from "./packager-tool-zrbnms9b.js";
@@ -126,7 +127,7 @@ class CaseDebugStudioWebService {
126
127
  entryPoint,
127
128
  projectType: "CaseManagement",
128
129
  buildSolutionProjects: async (uploadedProjects, solutionId) => {
129
- const { caseSolutionProjects } = await import("./case-debug-solution-projects-ygfggamz.js");
130
+ const { caseSolutionProjects } = await import("./case-debug-solution-projects-5tr4pwbs.js");
130
131
  return caseSolutionProjects(solutionDir, uploadedProjects, solutionId);
131
132
  },
132
133
  apiConfig,
@@ -140,4 +141,4 @@ export {
140
141
  CaseDebugStudioWebService
141
142
  };
142
143
 
143
- //# debugId=3C82667883B1594564756E2164756E21
144
+ //# debugId=A3CAD03A8D2940FB64756E2164756E21
@@ -4,14 +4,14 @@ import {
4
4
  import {
5
5
  isExpressionNamespace
6
6
  } from "./packager-tool-mk9fmzdy.js";
7
- import"./packager-tool-h2ar8xf8.js";
8
- import"./packager-tool-7x1tmb8a.js";
7
+ import"./packager-tool-00ck60cc.js";
8
+ import"./packager-tool-jydreskq.js";
9
9
  import {
10
10
  RESULT_OUTPUT_SOURCE,
11
11
  outputSourceFor
12
- } from "./packager-tool-wy3a65rx.js";
13
- import"./packager-tool-z070caqq.js";
14
- import"./packager-tool-6ewsbrnb.js";
12
+ } from "./packager-tool-bw4fsdq4.js";
13
+ import"./packager-tool-p64w2wrt.js";
14
+ import"./packager-tool-j8mnpsv8.js";
15
15
  import {
16
16
  NAME_BOUND_TASK_TYPES
17
17
  } from "./packager-tool-nfhtwa72.js";
@@ -2,12 +2,12 @@ import {
2
2
  entryPointIdsByNode2,
3
3
  readEntryPointIds2,
4
4
  deriveEventTriggerResources2
5
- } from "./packager-tool-t8qx6hvn.js";
6
- import"./packager-tool-65vr263d.js";
5
+ } from "./packager-tool-dv2vtyg0.js";
6
+ import"./packager-tool-qzyb1eac.js";
7
7
  import"./packager-tool-68648y3j.js";
8
- import"./packager-tool-h2ar8xf8.js";
9
- import"./packager-tool-6ewsbrnb.js";
10
- import"./packager-tool-z070caqq.js";
8
+ import"./packager-tool-00ck60cc.js";
9
+ import"./packager-tool-j8mnpsv8.js";
10
+ import"./packager-tool-p64w2wrt.js";
11
11
  export {
12
12
  deriveEventTriggerResources2 as deriveEventTriggerResources,
13
13
  entryPointIdsByNode2 as entryPointIdsByNode,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./packager-tool-z070caqq.js";
3
+ } from "./packager-tool-p64w2wrt.js";
4
4
  import {
5
5
  catchError2
6
- } from "./packager-tool-6ewsbrnb.js";
6
+ } from "./packager-tool-j8mnpsv8.js";
7
7
 
8
8
  // src/services/case-format-service.ts
9
9
  var INDENT = 2;