@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,13 +1,12 @@
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
6
  extractErrorMessage,
7
- logger,
8
- isGuid
9
- } from "./packager-tool-6ewsbrnb.js";
10
- import"./packager-tool-snesn0bt.js";
7
+ logger
8
+ } from "./packager-tool-j8mnpsv8.js";
9
+ import"./packager-tool-j1etnthk.js";
11
10
  import {
12
11
  ErrorCodes,
13
12
  BadRequestException,
@@ -57,22 +56,30 @@ import {
57
56
  SolutionDefinitionHelper2,
58
57
  FirstPartyServiceApi2
59
58
  } from "./packager-tool-jjkypwge.js";
60
- import"./packager-tool-q26hncjr.js";
59
+ import"./packager-tool-n3r5apbb.js";
61
60
  import {
62
61
  getLoginStatusAsync2
63
- } from "./packager-tool-dn9d4ywm.js";
62
+ } from "./packager-tool-c0pavv0s.js";
64
63
  import {
65
- UsersApi,
66
- createApiClient2
67
- } from "./packager-tool-ad8v11jd.js";
64
+ UsersApi2,
65
+ createApiClient3
66
+ } from "./packager-tool-p4c1g2sj.js";
68
67
  import {
69
68
  getSolutionAuthContext2
70
- } from "./packager-tool-bg3tdpva.js";
69
+ } from "./packager-tool-kh9gs4d5.js";
71
70
  import {
71
+ SolutionFileError,
72
72
  normalizeProjectType,
73
73
  toPortableRelativePath,
74
- findSolutionFileUpward
75
- } from "./packager-tool-8467kcz9.js";
74
+ findSolutionFileUpward,
75
+ MAX_RESOURCE_NAME_LENGTH2,
76
+ hasUnsafeNameChars2,
77
+ validateResourceName2,
78
+ assertValidResourceName2
79
+ } from "./packager-tool-m7s4n455.js";
80
+ import {
81
+ isGuid
82
+ } from "./packager-tool-1yew22sn.js";
76
83
  import {
77
84
  __toESM,
78
85
  __commonJS
@@ -17743,7 +17750,7 @@ class SolutionAccessProvider {
17743
17750
  if (this.userKey !== undefined) {
17744
17751
  return this.userKey;
17745
17752
  }
17746
- const [apiError, api] = await catchError2(createApiClient2(UsersApi));
17753
+ const [apiError, api] = await catchError2(createApiClient3(UsersApi2));
17747
17754
  if (apiError) {
17748
17755
  logger.warn(`Failed to create UsersApi client: ${apiError.message}`);
17749
17756
  return null;
@@ -17884,7 +17891,7 @@ async function readSolutionFile(filePath) {
17884
17891
  const [parseError, solution] = catchError2(() => JSON.parse(rawContent));
17885
17892
  if (parseError) {
17886
17893
  return [
17887
- new Error(`Invalid JSON in solution file: ${parseError.message}`),
17894
+ new SolutionFileError(`Invalid JSON in solution file: ${parseError.message}`, "invalid_argument"),
17888
17895
  null
17889
17896
  ];
17890
17897
  }
@@ -17896,7 +17903,10 @@ async function resolveSolutionFilePath(solutionFileOption, searchStartDir) {
17896
17903
  const resolved = fs.path.resolve(fs.env.cwd(), solutionFileOption);
17897
17904
  const exists = await fs.exists(resolved);
17898
17905
  if (!exists) {
17899
- return [new Error(`Solution file not found: ${resolved}`), null];
17906
+ return [
17907
+ new SolutionFileError(`Solution file not found: ${resolved}`, "not_found"),
17908
+ null
17909
+ ];
17900
17910
  }
17901
17911
  return [null, resolved];
17902
17912
  }
@@ -18096,6 +18106,24 @@ function findMemberCloneResources(resources, memberProjectKeys) {
18096
18106
  function hasPackageDependency(resource) {
18097
18107
  return (resource.dependencies ?? []).some((dependency) => (dependency.kind ?? "").toLowerCase() === "package");
18098
18108
  }
18109
+ var ORPHAN_CHECKED_KINDS = new Set(["process", "app"]);
18110
+ function findOrphanedDeclarations(resources, bound, boundKeys = new Set) {
18111
+ const depended = new Set(resources.flatMap((r) => (r.dependencies ?? []).map((d) => `${d.kind ?? ""}:${d.name ?? ""}`.toLowerCase())));
18112
+ return resources.filter((candidate) => {
18113
+ const kind = (candidate.kind ?? "").toLowerCase();
18114
+ if (!ORPHAN_CHECKED_KINDS.has(kind))
18115
+ return false;
18116
+ if (candidate.isArtefactResource === true || candidate.projectKey) {
18117
+ return false;
18118
+ }
18119
+ if (boundKeys.has((candidate.key ?? "").toLowerCase()))
18120
+ return false;
18121
+ const name = candidate.name ?? "";
18122
+ if (depended.has(`${kind}:${name}`.toLowerCase()))
18123
+ return false;
18124
+ return !bound.some((b) => b.kind.toLowerCase() === kind && nameSuffixRegex(b.name, false).test(name));
18125
+ });
18126
+ }
18099
18127
  // ../solution-sdk/src/resources/services/project-artifacts-service.ts
18100
18128
  async function addProjectArtifactsToSolutionAsync(options) {
18101
18129
  const error = await createProjectInSolutionBuilder(options.solutionDir, options.projectId, options.projectName, normalizeProjectType(options.projectType), options.projectSubType);
@@ -18174,9 +18202,30 @@ function toCatalogReference(reference) {
18174
18202
  };
18175
18203
  }
18176
18204
  async function exportResourceDefinitionAsync(importer, reference) {
18177
- const payload = await importer.exportResourceAsync(reference);
18205
+ const [error, payload] = await catchError2(importer.exportResourceAsync(reference));
18206
+ if (error) {
18207
+ throw withExportStatus(error);
18208
+ }
18178
18209
  return payload.resourceDefinitions.find((d) => d.key === reference.key);
18179
18210
  }
18211
+
18212
+ class ResourceExportError extends Error {
18213
+ status;
18214
+ constructor(message, status, cause) {
18215
+ super(message, { cause });
18216
+ this.status = status;
18217
+ this.name = "ResourceExportError";
18218
+ }
18219
+ }
18220
+ function withExportStatus(error) {
18221
+ if (!(error instanceof Error) || !("exceptionData" in error)) {
18222
+ return error;
18223
+ }
18224
+ const data = error.exceptionData;
18225
+ const text = typeof data === "object" && data !== null ? data.errorMessage : undefined;
18226
+ const match = typeof text === "string" ? /^HTTP (\d{3})\b/.exec(text) : null;
18227
+ return match ? new ResourceExportError(error.message, Number(match[1]), error) : error;
18228
+ }
18180
18229
  function readSpecProperty(spec, name) {
18181
18230
  if (!spec) {
18182
18231
  return;
@@ -18481,47 +18530,6 @@ async function findResourcesByNameAsync(services, builder, { kind, name, subType
18481
18530
  folderKey: row.folderKey ?? undefined
18482
18531
  }));
18483
18532
  }
18484
- // ../solution-sdk/src/resources/services/resource-name.ts
18485
- var MAX_RESOURCE_NAME_LENGTH = 256;
18486
- var UNSAFE_NAME_CHARS = /[\\/:*?"<>|]/;
18487
- function hasControlChar(value) {
18488
- for (let i = 0;i < value.length; i++) {
18489
- if (value.charCodeAt(i) < 32)
18490
- return true;
18491
- }
18492
- return false;
18493
- }
18494
- function validateResourceName(name, options = {}) {
18495
- const optionName = options.optionName ?? "--name";
18496
- if (name.trim() === "") {
18497
- return {
18498
- ok: false,
18499
- message: `${optionName} must not be blank`,
18500
- instructions: "Pass a non-empty resource name."
18501
- };
18502
- }
18503
- if (name.length > MAX_RESOURCE_NAME_LENGTH) {
18504
- return {
18505
- ok: false,
18506
- message: `${optionName} exceeds the ${MAX_RESOURCE_NAME_LENGTH}-character limit (got ${name.length})`,
18507
- instructions: "Shorten the resource name. Orchestrator name limits are kind-specific (queues cap at 50, assets at 256)."
18508
- };
18509
- }
18510
- if (UNSAFE_NAME_CHARS.test(name) || hasControlChar(name)) {
18511
- return {
18512
- ok: false,
18513
- message: `${optionName} contains unsafe characters`,
18514
- instructions: 'Resource names cannot contain path separators (/, \\), control characters, or any of: : * ? " < > |'
18515
- };
18516
- }
18517
- return { ok: true };
18518
- }
18519
- function assertValidResourceName(name, options = {}) {
18520
- const result = validateResourceName(name, options);
18521
- if (!result.ok) {
18522
- throw new Error(`${result.message}. ${result.instructions}`);
18523
- }
18524
- }
18525
18533
  // ../solution-sdk/src/resources/services/sync-resources-from-bindings.ts
18526
18534
  var TYPE_IS_IDENTITY_REPLACE_OPTIONS = new Set([
18527
18535
  "SameType",
@@ -18636,7 +18644,7 @@ function resolveBindingResourceIdentity(binding) {
18636
18644
  };
18637
18645
  }
18638
18646
  }
18639
- async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTypes, projectBindings, selfProvisioned) {
18647
+ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTypes, projectBindings, selfProvisioned, options = {}) {
18640
18648
  const result = {
18641
18649
  created: 0,
18642
18650
  imported: 0,
@@ -18648,7 +18656,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
18648
18656
  };
18649
18657
  const uipxProjects = await readUipxProjects(solutionDir);
18650
18658
  const paths = projectPaths ?? uipxProjects.map((p) => p.path);
18651
- if (paths.length === 0) {
18659
+ if (paths.length === 0 && projectPaths !== undefined) {
18652
18660
  return result;
18653
18661
  }
18654
18662
  const bindingsJsonFallbackDirs = new Set(uipxProjects.filter((p) => BINDINGS_JSON_FALLBACK_TYPES.has(p.type.toLowerCase())).map((p) => p.path));
@@ -18676,7 +18684,11 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
18676
18684
  result.projectResourcesCreated = reconcileOutcome.resourcesAdded;
18677
18685
  const memberProjectKeys = new Set(uipxProjects.map((project) => project.id.toLowerCase()));
18678
18686
  await pruneMemberClones(builder, memberProjectKeys, result);
18687
+ const reportUnbound = projectPaths === undefined && options.bindingsComplete !== false;
18679
18688
  if (allBindings.length === 0) {
18689
+ if (reportUnbound) {
18690
+ await reportOrphanedDeclarations(services, builder, allBindings, result);
18691
+ }
18680
18692
  const saveError = await saveAndDisposeBuilder(builder, solutionDir);
18681
18693
  if (saveError) {
18682
18694
  throw new Error(`Failed to save solution changes: ${saveError.message}`);
@@ -18861,6 +18873,9 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
18861
18873
  });
18862
18874
  result.warnings.push(catalogLookupWarning(result.catalogLookupFailure, keptUnchecked, result.unresolved));
18863
18875
  }
18876
+ if (reportUnbound) {
18877
+ await reportOrphanedDeclarations(services, builder, allBindings, result);
18878
+ }
18864
18879
  const saveError = await saveAndDisposeBuilder(builder, solutionDir);
18865
18880
  if (saveError) {
18866
18881
  throw new Error(`Failed to save solution changes: ${saveError.message}`);
@@ -18888,6 +18903,32 @@ async function pruneMemberClones(builder, memberProjectKeys, result) {
18888
18903
  logger.info(`Removed duplicate ${clone.kind} "${clone.name}" (key: ${clone.key}) — the solution provisions this project itself`);
18889
18904
  }
18890
18905
  }
18906
+ async function reportOrphanedDeclarations(services, builder, bindings, result) {
18907
+ const [loadError, solution] = await catchError2(builder.context.loadAsync());
18908
+ if (loadError || !solution) {
18909
+ logger.warn(`Skipping the unbound declaration check; failed to load solution: ${loadError?.message ?? "unknown"}`);
18910
+ return;
18911
+ }
18912
+ const [overwritesError, overwrites] = await catchError2((async () => services.container.resolve(Tokens.IResourceOverwritesService).getTenantResourceOverwritesAsync(builder.context))());
18913
+ if (overwritesError) {
18914
+ logger.warn(`Skipping the unbound declaration check; failed to read resource overwrites: ${overwritesError.message}`);
18915
+ return;
18916
+ }
18917
+ const bound = bindings.flatMap((binding) => {
18918
+ const name = getResourceName(binding);
18919
+ return name ? [{ kind: resolveBindingResourceIdentity(binding).kind, name }] : [];
18920
+ });
18921
+ const boundKeys = new Set((overwrites ?? []).filter((o) => {
18922
+ const name = o.overwrite?.resourceName?.toLowerCase();
18923
+ const kind = o.overwrite?.kind?.toLowerCase();
18924
+ return bound.some((b) => b.name.toLowerCase() === name && (!kind || b.kind.toLowerCase() === kind));
18925
+ }).flatMap((o) => o.solutionResourceKey ? [o.solutionResourceKey.toLowerCase()] : []));
18926
+ for (const orphan of findOrphanedDeclarations(solution.resources ?? [], bound, boundKeys)) {
18927
+ const warning = `${orphan.kind} "${orphan.name}" is declared in the solution but no project binds it, and deploy still provisions it. If nothing needs it, remove it: uip solution resources remove ${orphan.key}`;
18928
+ result.warnings.push(warning);
18929
+ logger.warn(warning);
18930
+ }
18931
+ }
18891
18932
  async function isUncheckedBindingCovered(builder, knownResourceKeys, kind, name, directCloudKey) {
18892
18933
  if (directCloudKey) {
18893
18934
  return knownResourceKeys.has(directCloudKey.toLowerCase());
@@ -19414,7 +19455,9 @@ async function resourceRefreshAsync(solutionPath = ".", options = {}) {
19414
19455
  if (bindingsError) {
19415
19456
  resolverWarnings.push(`Could not read the bindings projects contribute: ${bindingsError.message}. Those projects were synced from any bindings_v2.json on disk instead; fix the tool install and re-run 'uip solution resources refresh'.`);
19416
19457
  }
19417
- const [syncError, result] = await catchError2(syncResourcesFromBindings(resolvedPath, undefined, projectSubTypes ?? new Map, projectBindings ?? new Map));
19458
+ const [syncError, result] = await catchError2(syncResourcesFromBindings(resolvedPath, undefined, projectSubTypes ?? new Map, projectBindings ?? new Map, undefined, {
19459
+ bindingsComplete: !bindingsError && (options.isProjectBindingsComplete?.() ?? true)
19460
+ }));
19418
19461
  if (syncError) {
19419
19462
  return {
19420
19463
  ok: false,
@@ -19612,12 +19655,13 @@ function sortKeysDeep2(value) {
19612
19655
  export {
19613
19656
  CatalogLookupError,
19614
19657
  EntryPointSpecEnhancer,
19615
- MAX_RESOURCE_NAME_LENGTH,
19658
+ MAX_RESOURCE_NAME_LENGTH2 as MAX_RESOURCE_NAME_LENGTH,
19616
19659
  ProjectManifestError,
19660
+ ResourceExportError,
19617
19661
  addProjectArtifactsToSolutionAsync,
19618
19662
  applyEntryPointEnhancementAsync,
19619
19663
  assertSolutionManifest,
19620
- assertValidResourceName,
19664
+ assertValidResourceName2 as assertValidResourceName,
19621
19665
  computeEntryPointSpec,
19622
19666
  createLocalResource,
19623
19667
  createProjectInSolutionBuilder,
@@ -19630,6 +19674,7 @@ export {
19630
19674
  findMatchingLocalResource,
19631
19675
  findMatchingMemberResource,
19632
19676
  findMemberCloneResources,
19677
+ findOrphanedDeclarations,
19633
19678
  findProjectFile,
19634
19679
  findResourceByKeyInRcs,
19635
19680
  findResourceInRcs,
@@ -19638,6 +19683,7 @@ export {
19638
19683
  getRemoteResourceClients,
19639
19684
  hasAnyTemplateRow,
19640
19685
  hasBareTemplateRow,
19686
+ hasUnsafeNameChars2 as hasUnsafeNameChars,
19641
19687
  isMissingProjectTypeError,
19642
19688
  isProjectManifestError,
19643
19689
  isResourceKeyNotFound,
@@ -19668,8 +19714,8 @@ export {
19668
19714
  toCatalogReference,
19669
19715
  toResourceReference,
19670
19716
  uniqueNameForResource,
19671
- validateResourceName,
19717
+ validateResourceName2 as validateResourceName,
19672
19718
  writeSolutionFile
19673
19719
  };
19674
19720
 
19675
- //# debugId=2EB0AFAB661AFA2864756E2164756E21
19721
+ //# debugId=0C36A0F62384A6AC64756E2164756E21
@@ -0,0 +1,36 @@
1
+ import"./packager-tool-ef43cy32.js";
2
+ import"./packager-tool-4seehsme.js";
3
+ import"./packager-tool-00qmds4s.js";
4
+ import"./packager-tool-36vkdb3h.js";
5
+ import"./packager-tool-xb16e3tz.js";
6
+ import {
7
+ fetchConnectorMetadata2
8
+ } from "./packager-tool-1dsedy7x.js";
9
+ import"./packager-tool-z13dp55w.js";
10
+ import"./packager-tool-c9h0rwgv.js";
11
+ import"./packager-tool-p4c1g2sj.js";
12
+ import {
13
+ solutionSearchDirs2,
14
+ readSolutionAt2,
15
+ findSolutionFromCwd2
16
+ } from "./packager-tool-5s476jdt.js";
17
+ import"./packager-tool-hrd44w8g.js";
18
+ import"./packager-tool-x9z4krtr.js";
19
+ import"./packager-tool-rzxnm9yj.js";
20
+ import"./packager-tool-zte9svtn.js";
21
+ import"./packager-tool-4w7nzx18.js";
22
+ import"./packager-tool-wvf6b31h.js";
23
+ import"./packager-tool-c0pavv0s.js";
24
+ import"./packager-tool-n3r5apbb.js";
25
+ import"./packager-tool-68648y3j.js";
26
+ import"./packager-tool-00ck60cc.js";
27
+ import"./packager-tool-j8mnpsv8.js";
28
+ import"./packager-tool-p64w2wrt.js";
29
+ export {
30
+ fetchConnectorMetadata2 as fetchConnectorMetadata,
31
+ findSolutionFromCwd2 as findSolutionFromCwd,
32
+ readSolutionAt2 as readSolutionAt,
33
+ solutionSearchDirs2 as solutionSearchDirs
34
+ };
35
+
36
+ //# debugId=A971AA1F1594807C64756E2164756E21
@@ -66,8 +66,9 @@ import {
66
66
  interactiveLogin2,
67
67
  logoutWithDeps2,
68
68
  logout2,
69
+ updateEnvFileLockedAsync2,
69
70
  authenticate2
70
- } from "./packager-tool-dn9d4ywm.js";
71
+ } from "./packager-tool-c0pavv0s.js";
71
72
  import {
72
73
  isBrowser2,
73
74
  isNode2
@@ -77,8 +78,8 @@ import {
77
78
  AUTH_TIMEOUT_ERROR_CODE2,
78
79
  AUTH_CANCELLED_ERROR_CODE2,
79
80
  AUTH_RECLAIMED_ERROR_CODE2
80
- } from "./packager-tool-q26hncjr.js";
81
- import"./packager-tool-z070caqq.js";
81
+ } from "./packager-tool-n3r5apbb.js";
82
+ import"./packager-tool-p64w2wrt.js";
82
83
  export {
83
84
  AUTH_CANCELLED_ERROR_CODE2 as AUTH_CANCELLED_ERROR_CODE,
84
85
  AUTH_FLOW_ENV_VAR2 as AUTH_FLOW_ENV_VAR,
@@ -153,7 +154,8 @@ export {
153
154
  saveRefreshBreaker2 as saveRefreshBreaker,
154
155
  selectTenantWithDeps2 as selectTenantWithDeps,
155
156
  setActiveAuthProfile2 as setActiveAuthProfile,
156
- setAuthFileConfig2 as setAuthFileConfig
157
+ setAuthFileConfig2 as setAuthFileConfig,
158
+ updateEnvFileLockedAsync2 as updateEnvFileLockedAsync
157
159
  };
158
160
 
159
- //# debugId=B69558E61513AF1E64756E2164756E21
161
+ //# debugId=C541CAB3F189870864756E2164756E21
@@ -13,8 +13,8 @@ import {
13
13
  withCasePlanDefaults2,
14
14
  casePlanDefaults2,
15
15
  CaseToolFactory2
16
- } from "./packager-tool-4avchhz8.js";
17
- import"./packager-tool-snesn0bt.js";
16
+ } from "./packager-tool-57970zfm.js";
17
+ import"./packager-tool-j1etnthk.js";
18
18
  import"./packager-tool-1wgav5ma.js";
19
19
  export {
20
20
  CasePlanFileNames2 as CasePlanFileNames,
@@ -0,0 +1,26 @@
1
+ import {
2
+ JobsApi2,
3
+ ReleasesApi2,
4
+ UsersApi2,
5
+ createOrchestratorConfig2,
6
+ createApiClient3,
7
+ resolveFolder2,
8
+ quoteODataStringLiteral2,
9
+ ReleaseNotFoundError2
10
+ } from "./packager-tool-p4c1g2sj.js";
11
+ import"./packager-tool-c0pavv0s.js";
12
+ import"./packager-tool-n3r5apbb.js";
13
+ import"./packager-tool-j8mnpsv8.js";
14
+ import"./packager-tool-p64w2wrt.js";
15
+ export {
16
+ JobsApi2 as JobsApi,
17
+ ReleaseNotFoundError2 as ReleaseNotFoundError,
18
+ ReleasesApi2 as ReleasesApi,
19
+ UsersApi2 as UsersApi,
20
+ createApiClient3 as createApiClient,
21
+ createOrchestratorConfig2 as createOrchestratorConfig,
22
+ quoteODataStringLiteral2 as quoteODataStringLiteral,
23
+ resolveFolder2 as resolveFolder
24
+ };
25
+
26
+ //# debugId=36821F08BF5B0C0864756E2164756E21
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getFileSystem2,
3
3
  getFileSystemAsync2
4
- } from "./packager-tool-z070caqq.js";
4
+ } from "./packager-tool-p64w2wrt.js";
5
5
  export {
6
6
  getFileSystem2 as getFileSystem,
7
7
  getFileSystemAsync2 as getFileSystemAsync
package/dist/index.js CHANGED
@@ -1,21 +1,23 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Command
4
- } from "./packager-tool-6ewsbrnb.js";
5
- import"./packager-tool-z070caqq.js";
4
+ } from "./packager-tool-j8mnpsv8.js";
5
+ import"./packager-tool-p64w2wrt.js";
6
6
  import"./packager-tool-p5gs9xqy.js";
7
- import"./packager-tool-es77jvky.js";
8
- import"./packager-tool-q26hncjr.js";
9
- import"./packager-tool-dn9d4ywm.js";
10
- import"./packager-tool-cdvrca04.js";
7
+ import"./packager-tool-wvf6b31h.js";
8
+ import"./packager-tool-4w7nzx18.js";
9
+ import"./packager-tool-n3r5apbb.js";
10
+ import"./packager-tool-c0pavv0s.js";
11
+ import"./packager-tool-x9z4krtr.js";
11
12
  import {
12
13
  metadata2,
13
14
  registerCommands2
14
- } from "./packager-tool-3aeetcr4.js";
15
+ } from "./packager-tool-178xtejt.js";
15
16
  import"./packager-tool-jv5byaww.js";
16
- import"./packager-tool-h2ar8xf8.js";
17
- import"./packager-tool-5dptce1y.js";
18
- import"./packager-tool-pq9xv4vq.js";
17
+ import"./packager-tool-00ck60cc.js";
18
+ import"./packager-tool-n6h4bz4d.js";
19
+ import"./packager-tool-rzxnm9yj.js";
20
+ import"./packager-tool-zte9svtn.js";
19
21
  import"./packager-tool-68648y3j.js";
20
22
 
21
23
  // src/index.ts
@@ -24,4 +26,4 @@ program.name(metadata2.commandPrefix).description(metadata2.description).version
24
26
  await registerCommands2(program);
25
27
  program.parse(process.argv);
26
28
 
27
- //# debugId=904BC790B38EE83D64756E2164756E21
29
+ //# debugId=A2AE58E41F96C7A964756E2164756E21
@@ -0,0 +1,15 @@
1
+ import {
2
+ entryPointsDocument2,
3
+ initEntryPoints2
4
+ } from "./packager-tool-t6xwkhht.js";
5
+ import"./packager-tool-57970zfm.js";
6
+ import"./packager-tool-j1etnthk.js";
7
+ import"./packager-tool-1wgav5ma.js";
8
+ import"./packager-tool-j8mnpsv8.js";
9
+ import"./packager-tool-p64w2wrt.js";
10
+ export {
11
+ entryPointsDocument2 as entryPointsDocument,
12
+ initEntryPoints2 as initEntryPoints
13
+ };
14
+
15
+ //# debugId=D315BBDFD20139D764756E2164756E21
@@ -0,0 +1,13 @@
1
+ import"./packager-tool-p64w2wrt.js";
2
+ import {
3
+ readStdinWithTimeout
4
+ } from "./packager-tool-j8mnpsv8.js";
5
+
6
+ // src/utils/input-reader.ts
7
+ var STDIN_TIMEOUT_MS = 1e4;
8
+ var readStdin = () => readStdinWithTimeout(STDIN_TIMEOUT_MS);
9
+ export {
10
+ readStdin
11
+ };
12
+
13
+ //# debugId=456CBE7BFE6F548464756E2164756E21
@@ -0,0 +1,68 @@
1
+ import {
2
+ isConnectorNode2,
3
+ isConnectorTriggerNode2,
4
+ extractTriggerEventParameters2,
5
+ extractTriggerFilterFields2,
6
+ extractActivityFilterFields2,
7
+ fetchConnectorTriggerMetadata2,
8
+ getConnectorConfiguration2,
9
+ getConnectorInfo2,
10
+ ConnectionConnectorMismatchError2,
11
+ assertConnectionConnector2,
12
+ fetchConnectionInfo2,
13
+ fetchConnectorMetadata2,
14
+ fetchConnectorMaxPageSize2,
15
+ fetchConnectorActivityMetadataV42,
16
+ enrichConnectorNode2
17
+ } from "./packager-tool-1dsedy7x.js";
18
+ import {
19
+ ACTIVITY_VERSION_V42,
20
+ SUPPORTED_ACTIVITY_VERSIONS2,
21
+ isV4ActivityConfiguration2,
22
+ buildActivityEssentialConfiguration2,
23
+ createConfiguredActivityClient2,
24
+ applySavedFilterTree2,
25
+ assertActivityMetadataResolved2,
26
+ buildManagedHttpEssentialConfiguration2,
27
+ extractMultipartParameters2,
28
+ inlineMultipartFileValues2,
29
+ buildInputMetadata2
30
+ } from "./packager-tool-z13dp55w.js";
31
+ import"./packager-tool-c0pavv0s.js";
32
+ import"./packager-tool-n3r5apbb.js";
33
+ import {
34
+ MANAGED_HTTP_CONNECTOR_KEY2
35
+ } from "./packager-tool-00ck60cc.js";
36
+ import"./packager-tool-j8mnpsv8.js";
37
+ import"./packager-tool-p64w2wrt.js";
38
+ export {
39
+ ACTIVITY_VERSION_V42 as ACTIVITY_VERSION_V4,
40
+ ConnectionConnectorMismatchError2 as ConnectionConnectorMismatchError,
41
+ MANAGED_HTTP_CONNECTOR_KEY2 as MANAGED_HTTP_CONNECTOR_KEY,
42
+ SUPPORTED_ACTIVITY_VERSIONS2 as SUPPORTED_ACTIVITY_VERSIONS,
43
+ applySavedFilterTree2 as applySavedFilterTree,
44
+ assertActivityMetadataResolved2 as assertActivityMetadataResolved,
45
+ assertConnectionConnector2 as assertConnectionConnector,
46
+ buildActivityEssentialConfiguration2 as buildActivityEssentialConfiguration,
47
+ buildInputMetadata2 as buildInputMetadata,
48
+ buildManagedHttpEssentialConfiguration2 as buildManagedHttpEssentialConfiguration,
49
+ createConfiguredActivityClient2 as createConfiguredActivityClient,
50
+ enrichConnectorNode2 as enrichConnectorNode,
51
+ extractActivityFilterFields2 as extractActivityFilterFields,
52
+ extractMultipartParameters2 as extractMultipartParameters,
53
+ extractTriggerEventParameters2 as extractTriggerEventParameters,
54
+ extractTriggerFilterFields2 as extractTriggerFilterFields,
55
+ fetchConnectionInfo2 as fetchConnectionInfo,
56
+ fetchConnectorActivityMetadataV42 as fetchConnectorActivityMetadataV4,
57
+ fetchConnectorMaxPageSize2 as fetchConnectorMaxPageSize,
58
+ fetchConnectorMetadata2 as fetchConnectorMetadata,
59
+ fetchConnectorTriggerMetadata2 as fetchConnectorTriggerMetadata,
60
+ getConnectorConfiguration2 as getConnectorConfiguration,
61
+ getConnectorInfo2 as getConnectorInfo,
62
+ inlineMultipartFileValues2 as inlineMultipartFileValues,
63
+ isConnectorNode2 as isConnectorNode,
64
+ isConnectorTriggerNode2 as isConnectorTriggerNode,
65
+ isV4ActivityConfiguration2 as isV4ActivityConfiguration
66
+ };
67
+
68
+ //# debugId=6867879D028357B964756E2164756E21