@uipath/case-tool 1.201.0 → 1.202.0-preview.136

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 (96) hide show
  1. package/dist/{authoring-aaaqwck3.js → authoring-cvjhkfxp.js} +74 -48
  2. package/dist/{browser-strategy-rkcvc6tn.js → browser-strategy-6atc7v8s.js} +3 -3
  3. package/dist/case-api-bwcxsbxe.js +381 -0
  4. package/dist/case-debug-studio-web-service-qcb328bt.js +335 -0
  5. package/dist/{case-pack-service-bxas5bxz.js → case-pack-service-txby2znw.js} +11 -18
  6. package/dist/case-validate-service-0q8krj2a.js +2114 -0
  7. package/dist/connector-enrichment-service-agqxam5y.js +60 -0
  8. package/dist/connector-lookup-service-ycgk77n0.js +22 -0
  9. package/dist/connector-task-spec-kdx5bv87.js +1250 -0
  10. package/dist/{de-5KVP66U6-t37qr521.js → de-5KVP66U6-1bnf4zt5.js} +54 -54
  11. package/dist/{de-5HU6GFWV-zheyw6d2.js → de-7XQXX2DK-tqdy5n2b.js} +857 -845
  12. package/dist/debug-service-dxx5pfev.js +57 -0
  13. package/dist/{en-MABQK6C4-nkzq2j8t.js → en-5ZGC5VQ3-h581y30k.js} +897 -897
  14. package/dist/{en-4KXU7N7B-24v330b5.js → en-X3S6IZ5J-nhkg6pwn.js} +55 -61
  15. package/dist/enrichment-service-ebz1f4ds.js +421 -0
  16. package/dist/{es-MX-POESXYP2-9538722k.js → es-MX-U2VN3SZW-anynsmd8.js} +857 -845
  17. package/dist/{es-MX-XAVLOQW3-47a405kf.js → es-MX-XAVLOQW3-q00km2y7.js} +54 -54
  18. package/dist/{es-VFPNVMP5-6sftsdxe.js → es-VFPNVMP5-bx2c337j.js} +54 -54
  19. package/dist/{es-LUTYN7U7-ye5zn4sn.js → es-ZGCPPOME-8gazspjj.js} +857 -845
  20. package/dist/{fr-E5MDO4EG-f3x1jeqw.js → fr-E5MDO4EG-c3mkty2t.js} +54 -54
  21. package/dist/{fr-LJIK56LW-xf3xf2kh.js → fr-T3G5GZCT-y3f7xb1q.js} +857 -845
  22. package/dist/{index-cncq089f.js → index-7s201ka0.js} +163 -80
  23. package/dist/{index-hsadteg4.js → index-h8cph72k.js} +4 -4
  24. package/dist/index-k4xz16db.js +63712 -0
  25. package/dist/{index-p50kx6jv.js → index-k5tbd184.js} +276 -276
  26. package/dist/index-kwxe1vep.js +143 -0
  27. package/dist/{index-9f8q2ege.js → index-p3vk57z7.js} +27 -27
  28. package/dist/index-qyf1dee9.js +630 -0
  29. package/dist/index.js +16 -17
  30. package/dist/{index.umd.min-drpc57vn.js → index.umd.min-fqefd9kn.js} +3 -3
  31. package/dist/input-reader-xb9vecxv.js +11 -0
  32. package/dist/{ja-FGEGLBJ3-w9byjhze.js → ja-BI5K3JDZ-77zat4z2.js} +857 -845
  33. package/dist/{ja-DPO5PPLO-fmbg7zt2.js → ja-DPO5PPLO-mysfmznx.js} +54 -54
  34. package/dist/{js-yaml-cggj6w7q.js → js-yaml-87cdx6bm.js} +27 -19
  35. package/dist/known-types-qryebm95.js +15 -0
  36. package/dist/{ko-ITOPNIYI-aqy82jk8.js → ko-ITOPNIYI-hmxd2asd.js} +54 -54
  37. package/dist/{ko-TUAK3G3A-s25w0ckg.js → ko-JOBF5V7N-4bv0mjje.js} +857 -845
  38. package/dist/{node-strategy-8gzp67xs.js → node-strategy-0267x5e5.js} +130 -14
  39. package/dist/node-sync-service-9a9ksj9s.js +38 -0
  40. package/dist/{packager-tool-9qecd4wb.js → packager-tool-0gctz400.js} +5 -2
  41. package/dist/packager-tool-0mj06yen.js +65 -0
  42. package/dist/{packager-tool-1cb0d5e0.js → packager-tool-0v3s8r01.js} +2 -2
  43. package/dist/packager-tool-134mvmcm.js +3040 -0
  44. package/dist/{packager-tool-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
  45. package/dist/{packager-tool-zqa5k9f7.js → packager-tool-37zvccmt.js} +990 -2287
  46. package/dist/packager-tool-3ze5vt52.js +54 -0
  47. package/dist/{packager-tool-w3h8xrnv.js → packager-tool-56j6keqr.js} +71 -3
  48. package/dist/{packager-tool-3wygxefb.js → packager-tool-58q3tvh7.js} +10 -10
  49. package/dist/{packager-tool-zx48pq4v.js → packager-tool-5ax2ywcg.js} +1997 -1174
  50. package/dist/{packager-tool-we1phz71.js → packager-tool-885mmrvr.js} +31 -3
  51. package/dist/packager-tool-9scn4b15.js +852 -0
  52. package/dist/{packager-tool-p9j43p8h.js → packager-tool-a42jnpy5.js} +3 -9
  53. package/dist/packager-tool-ajvse9r3.js +356 -0
  54. package/dist/{packager-tool-jysvpt8p.js → packager-tool-c23zrhj8.js} +2 -2
  55. package/dist/packager-tool-dqs5qy9s.js +2327 -0
  56. package/dist/packager-tool-ee5dhff3.js +6717 -0
  57. package/dist/{packager-tool-wvqz81mx.js → packager-tool-gtzs471w.js} +3 -2
  58. package/dist/packager-tool-hrr0efqc.js +546 -0
  59. package/dist/packager-tool-j9rfdrdm.js +1125 -0
  60. package/dist/{packager-tool-gq6952nc.js → packager-tool-jhdf8gt1.js} +5054 -17851
  61. package/dist/packager-tool-mp59jtpm.js +6865 -0
  62. package/dist/packager-tool-njzcfve1.js +77 -0
  63. package/dist/packager-tool-p7jgrm5r.js +15 -0
  64. package/dist/packager-tool-r84ng21s.js +57 -0
  65. package/dist/packager-tool-rqvr63x5.js +1217 -0
  66. package/dist/packager-tool-s12392rd.js +80 -0
  67. package/dist/packager-tool-sv0d6wb6.js +173 -0
  68. package/dist/packager-tool-ty1t2byf.js +27 -0
  69. package/dist/packager-tool-vepqrsse.js +23 -0
  70. package/dist/packager-tool-w5ek334f.js +4892 -0
  71. package/dist/{packager-tool-5arsyj36.js → packager-tool-yc4kw997.js} +4 -2
  72. package/dist/packager-tool.js +91 -5
  73. package/dist/project-artifacts-vhanbtw5.js +14 -0
  74. package/dist/{pt-BR-7XGDXRDJ-espnkgrj.js → pt-BR-7DYX2YPT-fqxqzqtf.js} +857 -845
  75. package/dist/{pt-BR-BXURWX4W-xzyndmrx.js → pt-BR-BXURWX4W-bwfcwhk1.js} +54 -54
  76. package/dist/{pt-TMVOOITK-myha14p9.js → pt-HTXGGX6Y-97t21dty.js} +857 -845
  77. package/dist/{pt-YI4VE4YQ-521681zf.js → pt-YI4VE4YQ-wdkn2dcf.js} +54 -54
  78. package/dist/resourcesSyncService-mrmmwaqr.js +683 -0
  79. package/dist/{ro-2VALF3S5-cdz5afkr.js → ro-KTNQ3MNU-y08n1x5g.js} +857 -845
  80. package/dist/{ro-RKXZUG7Z-pdztdafr.js → ro-RKXZUG7Z-nndrrsq7.js} +54 -54
  81. package/dist/{ru-GSCT4ARZ-qj8dm4dp.js → ru-GSCT4ARZ-1sa9wbr8.js} +1 -1
  82. package/dist/ru-WBLQ5B2U-8r3c7v6d.js +10 -0
  83. package/dist/strict-case-rules-303vjvas.js +377 -0
  84. package/dist/strict-sdd-audit-qdmc9e1y.js +1024 -0
  85. package/dist/tool.js +17 -18
  86. package/dist/{tr-AA6O2WSR-bj9n80k8.js → tr-AA6O2WSR-86ba4bdf.js} +54 -54
  87. package/dist/{tr-RIFCEXFH-hgkb4g8y.js → tr-XHSSPNK7-cmqyc4wd.js} +857 -845
  88. package/dist/trigger-enrichment-service-zdx4x92j.js +340 -0
  89. package/dist/{zh-CN-IP3FMXWM-1cfarhcp.js → zh-CN-2EHQT23P-mr63c4xz.js} +857 -845
  90. package/dist/{zh-CN-R2KLHXQV-x6gnk2n0.js → zh-CN-R2KLHXQV-agqr45ds.js} +54 -54
  91. package/dist/{zh-TW-AGIDXIPF-n6r6w7vy.js → zh-TW-MGZCE5BT-c4ekmrz9.js} +857 -845
  92. package/dist/{zh-TW-RJGCQANM-tt8j5wv2.js → zh-TW-RJGCQANM-w0x3qc1p.js} +54 -54
  93. package/package.json +2 -2
  94. package/dist/index-8bsngk9y.js +0 -247140
  95. package/dist/packager-tool-axcdppp9.js +0 -13607
  96. package/dist/ru-WBLQ5B2U-8xd4gpv2.js +0 -10
@@ -0,0 +1,335 @@
1
+ import {
2
+ loadCaseSchemaAsync
3
+ } from "./packager-tool-p7jgrm5r.js";
4
+ import {
5
+ buildSolutionPackageFromDir,
6
+ createZipFromDir,
7
+ uploadOrOverwriteSolution
8
+ } from "./packager-tool-w5ek334f.js";
9
+ import {
10
+ findSolutionFile,
11
+ updateSolutionFile
12
+ } from "./packager-tool-56j6keqr.js";
13
+ import"./packager-tool-b098y4a2.js";
14
+ import {
15
+ extractStartEventId,
16
+ uploadAndDebugSolution
17
+ } from "./packager-tool-9scn4b15.js";
18
+ import {
19
+ logger
20
+ } from "./packager-tool-5ax2ywcg.js";
21
+ import {
22
+ getFileSystem
23
+ } from "./packager-tool-0v3s8r01.js";
24
+ import"./packager-tool-1yh8g550.js";
25
+
26
+ // src/services/case-debug-studio-web-service.ts
27
+ class CaseDebugStudioWebService {
28
+ fs;
29
+ constructor() {
30
+ this.fs = getFileSystem();
31
+ }
32
+ async readCaseFile(caseFilePath) {
33
+ const absolutePath = this.fs.path.resolve(caseFilePath);
34
+ if (!await this.fs.exists(absolutePath)) {
35
+ throw new Error(`File not found: ${absolutePath}`);
36
+ }
37
+ if (!absolutePath.endsWith(".json")) {
38
+ throw new Error(`Expected a .json file but got: ${this.fs.path.basename(absolutePath)}`);
39
+ }
40
+ const content = await this.fs.readFile(absolutePath, "utf-8");
41
+ if (content === null) {
42
+ throw new Error(`Could not read file: ${absolutePath}`);
43
+ }
44
+ return JSON.parse(content);
45
+ }
46
+ async readBpmnFile(bpmnFilePath) {
47
+ const absolutePath = this.fs.path.resolve(bpmnFilePath);
48
+ if (!await this.fs.exists(absolutePath)) {
49
+ throw new Error(`File not found: ${absolutePath}`);
50
+ }
51
+ if (!absolutePath.endsWith(".bpmn")) {
52
+ throw new Error(`Expected a .bpmn file but got: ${this.fs.path.basename(absolutePath)}`);
53
+ }
54
+ const xml = await this.fs.readFile(absolutePath, "utf-8");
55
+ if (xml === null) {
56
+ throw new Error(`Could not read file: ${absolutePath}`);
57
+ }
58
+ return xml;
59
+ }
60
+ async generateProjectFiles(caseData, bpmnXml, casePlanJson, caseFileContent, startEventId) {
61
+ const caseName = caseData.name ?? caseData.root?.name ?? "case";
62
+ const safeName = caseName.replace(/[^a-zA-Z0-9_-]/g, "_");
63
+ const projectDir = this.fs.path.join(this.fs.env.tmpdir(), `.case-debug-${safeName}-${Date.now()}`);
64
+ await this.fs.mkdir(projectDir);
65
+ const entryPointId = crypto.randomUUID();
66
+ const name = safeName;
67
+ const resolvedStartEventId = startEventId ?? extractStartEventId(bpmnXml);
68
+ const entryPointsJson = {
69
+ $schema: "https://cloud.uipath.com/draft/2024-12/entry-point",
70
+ $id: "entry-points.json",
71
+ entryPoints: [
72
+ {
73
+ filePath: `/caseplan.json.bpmn#${resolvedStartEventId}`,
74
+ uniqueId: entryPointId,
75
+ type: "CaseManagement",
76
+ displayName: caseName
77
+ }
78
+ ]
79
+ };
80
+ const bindingsJson = {
81
+ version: "2.0",
82
+ resources: caseData.bindings ?? []
83
+ };
84
+ const projectUiproj = {
85
+ Name: caseName,
86
+ ProjectType: "CaseManagement"
87
+ };
88
+ await this.fs.writeFile(this.fs.path.join(projectDir, "project.uiproj"), `${JSON.stringify(projectUiproj, null, 2)}
89
+ `);
90
+ await this.fs.writeFile(this.fs.path.join(projectDir, "entry-points.json"), `${JSON.stringify(entryPointsJson, null, 2)}
91
+ `);
92
+ await this.fs.writeFile(this.fs.path.join(projectDir, "bindings_v2.json"), `${JSON.stringify(bindingsJson, null, 2)}
93
+ `);
94
+ await this.fs.writeFile(this.fs.path.join(projectDir, "case-plan.json"), `${JSON.stringify(casePlanJson, null, 2)}
95
+ `);
96
+ await this.fs.writeFile(this.fs.path.join(projectDir, `${name}.bpmn`), bpmnXml);
97
+ if (caseFileContent) {
98
+ await this.fs.writeFile(this.fs.path.join(projectDir, "caseplan.json"), caseFileContent);
99
+ }
100
+ return projectDir;
101
+ }
102
+ async generateBpmnProjectFiles(filePath) {
103
+ const bpmnXml = await this.readBpmnFile(filePath);
104
+ const startEventId = extractStartEventId(bpmnXml);
105
+ const displayName = this.fs.path.basename(filePath, ".bpmn");
106
+ const safeName = displayName.replace(/[^a-zA-Z0-9_-]/g, "_");
107
+ const projectDir = this.fs.path.join(this.fs.env.tmpdir(), `.case-debug-${safeName}-${Date.now()}`);
108
+ await this.fs.mkdir(projectDir);
109
+ const entryPointsJson = {
110
+ $schema: "https://cloud.uipath.com/draft/2024-12/entry-point",
111
+ $id: "entry-points.json",
112
+ entryPoints: [
113
+ {
114
+ filePath: `/${safeName}.bpmn#${startEventId}`,
115
+ uniqueId: crypto.randomUUID(),
116
+ type: "CaseManagement",
117
+ displayName
118
+ }
119
+ ]
120
+ };
121
+ const bindingsJson = { version: "2.0", resources: [] };
122
+ const projectUiproj = {
123
+ Name: displayName,
124
+ ProjectType: "CaseManagement"
125
+ };
126
+ await this.fs.writeFile(this.fs.path.join(projectDir, "project.uiproj"), JSON.stringify(projectUiproj, null, 2));
127
+ await this.fs.writeFile(this.fs.path.join(projectDir, "entry-points.json"), JSON.stringify(entryPointsJson, null, 2));
128
+ await this.fs.writeFile(this.fs.path.join(projectDir, "bindings_v2.json"), JSON.stringify(bindingsJson, null, 2));
129
+ await this.fs.writeFile(this.fs.path.join(projectDir, `${safeName}.bpmn`), bpmnXml);
130
+ return {
131
+ projectDir,
132
+ projectName: safeName,
133
+ entryPointBpmnFile: `${safeName}.bpmn`,
134
+ startEventId
135
+ };
136
+ }
137
+ async executeProjectViaStudioWeb(projectPath, config, callbacks, pollInterval) {
138
+ const absoluteProjectPath = this.fs.path.resolve(projectPath);
139
+ const projectUiprojPath = this.fs.path.join(absoluteProjectPath, "project.uiproj");
140
+ if (!await this.fs.exists(projectUiprojPath)) {
141
+ throw new Error(`Not a valid case project directory: missing project.uiproj in ${absoluteProjectPath}`);
142
+ }
143
+ const projectUiprojContent = await this.fs.readFile(projectUiprojPath, "utf-8");
144
+ if (projectUiprojContent === null) {
145
+ throw new Error(`Could not read project.uiproj in ${absoluteProjectPath}`);
146
+ }
147
+ const projectUiproj = JSON.parse(projectUiprojContent);
148
+ const projectName = projectUiproj.Name;
149
+ const entryPointsPath = this.fs.path.join(absoluteProjectPath, "entry-points.json");
150
+ if (!await this.fs.exists(entryPointsPath)) {
151
+ throw new Error(`Not a valid case project directory: missing entry-points.json in ${absoluteProjectPath}`);
152
+ }
153
+ const entryPointsContent = await this.fs.readFile(entryPointsPath, "utf-8");
154
+ if (entryPointsContent === null) {
155
+ throw new Error(`Could not read entry-points.json in ${absoluteProjectPath}`);
156
+ }
157
+ const entryPointsJson = JSON.parse(entryPointsContent);
158
+ const rawEntryPoint = entryPointsJson.entryPoints?.[0]?.filePath ?? "";
159
+ const entryPoint = rawEntryPoint.replace(/^\/content/, "");
160
+ logger.info("Looking for .uipx solution file...");
161
+ const solutionInfo = await findSolutionFile(this.fs, absoluteProjectPath);
162
+ const existingSolutionId = solutionInfo?.solutionId;
163
+ logger.info("Reading case JSON file...");
164
+ const caseJsonPath = this.fs.path.join(absoluteProjectPath, "caseplan.json");
165
+ if (!await this.fs.exists(caseJsonPath)) {
166
+ throw new Error(`Not a valid case project directory: missing caseplan.json in ${absoluteProjectPath}`);
167
+ }
168
+ const caseFileContent = await this.fs.readFile(caseJsonPath, "utf-8");
169
+ if (caseFileContent === null) {
170
+ throw new Error(`Could not read file: ${caseJsonPath}`);
171
+ }
172
+ logger.info("Converting case JSON to BPMN and case plan JSON...");
173
+ const { serializeCaseDiskJsonToBpmnAndRulesJson } = await loadCaseSchemaAsync();
174
+ const { bpmnXml, rulesJson: casePlanJson } = await serializeCaseDiskJsonToBpmnAndRulesJson(caseFileContent);
175
+ await this.fs.writeFile(this.fs.path.join(absoluteProjectPath, "caseplan.json.bpmn"), bpmnXml);
176
+ await this.fs.writeFile(this.fs.path.join(absoluteProjectPath, "case-plan.json"), `${JSON.stringify(casePlanJson, null, 2)}
177
+ `);
178
+ logger.info("Building solution package from project...");
179
+ const solutionDir = this.fs.path.resolve(absoluteProjectPath, "..");
180
+ const uisPath = await buildSolutionPackageFromDir(this.fs, solutionDir);
181
+ const apiConfig = {
182
+ baseUrl: config.baseUrl,
183
+ organizationId: config.organizationId,
184
+ tenantName: config.tenantName,
185
+ tenantId: config.tenantId,
186
+ authToken: config.authToken,
187
+ organizationUnitId: config.organizationUnitId
188
+ };
189
+ return uploadAndDebugSolution({
190
+ upload: () => uploadOrOverwriteSolution(apiConfig, config.organizationName, uisPath, existingSolutionId, this.fs),
191
+ onSolutionId: (id) => updateSolutionFile(this.fs, absoluteProjectPath, id),
192
+ projectName,
193
+ entryPoint,
194
+ projectType: "CaseManagement",
195
+ apiConfig,
196
+ organizationName: config.organizationName,
197
+ callbacks,
198
+ pollInterval
199
+ });
200
+ }
201
+ async buildSolutionPackage(projectDir, projectName) {
202
+ const solutionId = crypto.randomUUID();
203
+ const projectId = crypto.randomUUID();
204
+ const stagingDir = this.fs.path.join(this.fs.env.tmpdir(), `.case-debug-solution-${Date.now()}`);
205
+ await this.fs.mkdir(stagingDir);
206
+ const solutionStorage = {
207
+ SolutionId: solutionId,
208
+ Projects: [
209
+ {
210
+ ProjectId: projectId,
211
+ ProjectRelativePath: `${projectName}/project.uiproj`
212
+ }
213
+ ]
214
+ };
215
+ await this.fs.writeFile(this.fs.path.join(stagingDir, "SolutionStorage.json"), JSON.stringify(solutionStorage));
216
+ const uipx = {
217
+ SolutionId: solutionId,
218
+ Projects: [
219
+ {
220
+ Type: "CaseManagement",
221
+ ProjectRelativePath: `${projectName}/project.uiproj`,
222
+ Id: projectId
223
+ }
224
+ ]
225
+ };
226
+ await this.fs.writeFile(this.fs.path.join(stagingDir, `${projectName}Solution.uipx`), JSON.stringify(uipx, null, 2));
227
+ const destProjectDir = this.fs.path.join(stagingDir, projectName);
228
+ await this.fs.mkdir(destProjectDir);
229
+ await this.flattenCopyToDir(projectDir, destProjectDir);
230
+ const uisPath = this.fs.path.join(this.fs.env.tmpdir(), `${projectName}Solution-${Date.now()}.uis`);
231
+ const zipData = await createZipFromDir(this.fs, stagingDir);
232
+ await this.fs.writeFile(uisPath, zipData);
233
+ await this.fs.rm(stagingDir).catch(() => {});
234
+ return uisPath;
235
+ }
236
+ async executeViaStudioWeb(filePath, config, callbacks, pollInterval) {
237
+ const dotIndex = filePath.lastIndexOf(".");
238
+ const ext = dotIndex >= 0 ? filePath.slice(dotIndex).toLowerCase() : "";
239
+ if (ext !== ".json" && ext !== ".bpmn") {
240
+ throw new Error(`Unsupported file type "${ext}". Only .json and .bpmn files are supported.`);
241
+ }
242
+ let projectDir;
243
+ let projectName;
244
+ let entryPointBpmnFile;
245
+ let startEventId;
246
+ if (ext === ".json") {
247
+ logger.info("Reading case JSON file...");
248
+ const absolutePath = this.fs.path.resolve(filePath);
249
+ if (!await this.fs.exists(absolutePath)) {
250
+ throw new Error(`File not found: ${absolutePath}`);
251
+ }
252
+ const rawContent = await this.fs.readFile(absolutePath, "utf-8");
253
+ if (rawContent === null) {
254
+ throw new Error(`Could not read file: ${absolutePath}`);
255
+ }
256
+ const caseData = JSON.parse(rawContent);
257
+ logger.info("Converting case JSON to BPMN and case plan JSON...");
258
+ const { serializeCaseDiskJsonToBpmnAndRulesJson } = await loadCaseSchemaAsync();
259
+ const { bpmnXml, rulesJson: casePlanJson } = await serializeCaseDiskJsonToBpmnAndRulesJson(rawContent);
260
+ startEventId = extractStartEventId(bpmnXml);
261
+ logger.info("Generating project files...");
262
+ projectDir = await this.generateProjectFiles(caseData, bpmnXml, casePlanJson, rawContent, startEventId);
263
+ const caseName = caseData.name ?? caseData.root?.name ?? "case";
264
+ projectName = caseName.replace(/[^a-zA-Z0-9_-]/g, "_");
265
+ entryPointBpmnFile = `${projectName}.bpmn`;
266
+ } else {
267
+ ({ projectDir, projectName, entryPointBpmnFile, startEventId } = await this.generateBpmnProjectFiles(filePath));
268
+ }
269
+ logger.info("Building solution package...");
270
+ const uisPath = await this.buildSolutionPackage(projectDir, projectName);
271
+ const cleanupPaths = [projectDir, uisPath];
272
+ try {
273
+ const apiConfig = {
274
+ baseUrl: config.baseUrl,
275
+ organizationId: config.organizationId,
276
+ tenantName: config.tenantName,
277
+ tenantId: config.tenantId,
278
+ authToken: config.authToken,
279
+ organizationUnitId: config.organizationUnitId
280
+ };
281
+ const entryPoint = `/${entryPointBpmnFile}#${startEventId}`;
282
+ return await uploadAndDebugSolution({
283
+ upload: () => uploadOrOverwriteSolution(apiConfig, config.organizationName, uisPath, undefined, this.fs),
284
+ projectName,
285
+ entryPoint,
286
+ projectType: "CaseManagement",
287
+ apiConfig,
288
+ organizationName: config.organizationName,
289
+ callbacks,
290
+ pollInterval
291
+ });
292
+ } finally {
293
+ for (const p of cleanupPaths) {
294
+ this.fs.rm(p).catch(() => {});
295
+ }
296
+ }
297
+ }
298
+ async copyDirRecursive(src, dest) {
299
+ await this.fs.mkdir(dest);
300
+ const entries = await this.fs.readdir(src);
301
+ for (const entry of entries) {
302
+ const srcPath = this.fs.path.join(src, entry);
303
+ const destPath = this.fs.path.join(dest, entry);
304
+ const stats = await this.fs.stat(srcPath);
305
+ if (stats?.isDirectory()) {
306
+ await this.copyDirRecursive(srcPath, destPath);
307
+ } else {
308
+ const content = await this.fs.readFile(srcPath);
309
+ if (content !== null) {
310
+ await this.fs.writeFile(destPath, content);
311
+ }
312
+ }
313
+ }
314
+ }
315
+ async flattenCopyToDir(src, dest) {
316
+ const entries = await this.fs.readdir(src);
317
+ for (const entry of entries) {
318
+ const srcPath = this.fs.path.join(src, entry);
319
+ const stats = await this.fs.stat(srcPath);
320
+ if (stats?.isDirectory()) {
321
+ await this.copyDirRecursive(srcPath, this.fs.path.join(dest, entry));
322
+ } else {
323
+ const content = await this.fs.readFile(srcPath);
324
+ if (content !== null) {
325
+ await this.fs.writeFile(this.fs.path.join(dest, entry), content);
326
+ }
327
+ }
328
+ }
329
+ }
330
+ }
331
+ export {
332
+ CaseDebugStudioWebService
333
+ };
334
+
335
+ //# debugId=5431DE1BB4EFCF8F64756E2164756E21
@@ -1,30 +1,23 @@
1
+ import {
2
+ loadCaseSchemaAsync
3
+ } from "./packager-tool-p7jgrm5r.js";
1
4
  import {
2
5
  NugetPackager,
3
6
  ensureProjectId
4
- } from "./packager-tool-wvqz81mx.js";
7
+ } from "./packager-tool-gtzs471w.js";
8
+ import"./packager-tool-b098y4a2.js";
5
9
  import {
6
- VALID_PACKAGE_NAME_REGEX,
7
- loadCaseSchemaAsync
8
- } from "./packager-tool-gq6952nc.js";
9
- import"./packager-tool-we1phz71.js";
10
- import"./packager-tool-zqa5k9f7.js";
10
+ VALID_PACKAGE_NAME_REGEX
11
+ } from "./packager-tool-vepqrsse.js";
11
12
  import {
12
13
  catchError,
13
14
  logger,
14
15
  mapPackageMetadataOptions
15
- } from "./packager-tool-zx48pq4v.js";
16
- import"./packager-tool-3wygxefb.js";
17
- import"./packager-tool-sc961w0q.js";
18
- import"./packager-tool-p9j43p8h.js";
19
- import"./packager-tool-jysvpt8p.js";
20
- import"./packager-tool-b098y4a2.js";
21
- import"./packager-tool-9qecd4wb.js";
22
- import"./packager-tool-qa9gftnj.js";
16
+ } from "./packager-tool-5ax2ywcg.js";
23
17
  import {
24
18
  getFileSystem
25
- } from "./packager-tool-1cb0d5e0.js";
26
- import"./packager-tool-5arsyj36.js";
27
- import"./packager-tool-wckvcay0.js";
19
+ } from "./packager-tool-0v3s8r01.js";
20
+ import"./packager-tool-1yh8g550.js";
28
21
 
29
22
  // src/services/case-pack-service.ts
30
23
  class CasePackService {
@@ -116,4 +109,4 @@ export {
116
109
  CasePackService
117
110
  };
118
111
 
119
- //# debugId=3F3DF77D1086226264756E2164756E21
112
+ //# debugId=96B15094B9DD778F64756E2164756E21