@uipath/case-tool 1.205.0-preview.281 → 1.206.0-preview.282
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-NOTICES.md +68 -7
- package/dist/applicationinsights-web-8m26566f.js +17209 -0
- package/dist/{authoring-kqh34zzm.js → authoring-vg90pqrn.js} +488 -213
- package/dist/bindings-v2-1da35xsc.js +27 -0
- package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-627rrg7z.js} +6 -7
- package/dist/{business-rule-export-ey588rv7.js → business-rule-export-jv60r9jf.js} +3 -7
- package/dist/carry-forward-sfdnta6q.js +52 -0
- package/dist/{case-api-sme7esce.js → case-api-by95rf40.js} +38 -37
- package/dist/{case-bindings-service-cht20gqt.js → case-bindings-service-pp3c9g1e.js} +93 -45
- package/dist/{case-debug-solution-projects-qqd3h10v.js → case-debug-solution-projects-je7h4hmq.js} +3 -7
- package/dist/{case-debug-studio-web-service-nqzmwbr5.js → case-debug-studio-web-service-d83h3atd.js} +48 -45
- package/dist/{case-described-io-service-dx1f4nxe.js → case-described-io-service-tsm8r189.js} +33 -15
- package/dist/case-event-trigger-bindings-qbs8ywf5.js +17 -0
- package/dist/{case-format-service-6aew6tqc.js → case-format-service-3sab2297.js} +9 -10
- package/dist/{case-pack-service-pqq8wnfd.js → case-pack-service-txnv711n.js} +47 -42
- package/dist/case-schema-version-cw0h2nrv.js +18 -0
- package/dist/case-shape-reader-xaxmrd40.js +14 -0
- package/dist/{case-splice-service-s5gccctq.js → case-splice-service-6y35w83e.js} +139 -51
- package/dist/{case-validate-service-vq38va33.js → case-validate-service-hz0j90we.js} +234 -170
- package/dist/connector-enrichment-service-sjjmb9dy.js +56 -0
- package/dist/connector-library-1yw5r47w.js +99 -0
- package/dist/connector-lookup-service-yerhg9cd.js +20 -0
- package/dist/connector-task-shape-bgywpbqc.js +13 -0
- package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
- package/dist/{de-UZI7FJDO-mwvc4cxe.js → de-AI7ML6JM-km47f8k4.js} +20 -5
- package/dist/debug-service-h4jxbn1r.js +56 -0
- package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/en-LAVDF7IQ-yzy20n6d.js +254 -0
- package/dist/en-X6T4SP2Y-xm47mf18.js +2752 -0
- package/dist/{enrichment-service-hv7ff88p.js → enrichment-service-wpprec7k.js} +36 -37
- package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
- package/dist/{es-MX-5RELIXKI-9jhqtddc.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
- package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
- package/dist/{es-4UBUTCQA-m1ytpyx2.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
- package/dist/filter-engine-dh9s90gb.js +10 -0
- package/dist/first-party-service-ahcc6xc6.js +8 -0
- package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
- package/dist/{fr-VBM5WRC2-63z7w4mh.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
- package/dist/index-21kns9qg.js +10 -0
- package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
- package/dist/{connector-task-spec-pzfzmfr5.js → index-9f8naxbk.js} +320 -144
- package/dist/{index-5dxh9z60.js → index-a7y7etmy.js} +6 -5
- package/dist/{index-ekwtgx7y.js → index-ec115v05.js} +309 -287
- package/dist/index-j9t2k52h.js +35 -0
- package/dist/index-myf7b4a5.js +26 -0
- package/dist/index-nj3axvya.js +159 -0
- package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-pg9wmyrf.js +36 -0
- package/dist/index-z2qk2qn6.js +24 -0
- package/dist/index.js +19 -25
- package/dist/index.umd.min-ttg1qc0x.js +7814 -0
- package/dist/{init-entry-points-hhpv3e3f.js → init-entry-points-pc128f7z.js} +22 -35
- package/dist/input-reader-9ym8mkbc.js +10 -0
- package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
- package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
- package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
- package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/known-types-gak9by1w.js +11 -0
- package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
- package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
- package/dist/localSolutionDiscovery-48d1bnkj.js +15 -0
- package/dist/{migration-diagnosis-ns5cw4e3.js → migration-diagnosis-myqqgwj0.js} +1 -4
- package/dist/{node-strategy-v442hwgd.js → node-strategy-2mqzg36t.js} +15 -18
- package/dist/node-sync-service-y8b5w1rd.js +56 -0
- package/dist/{out-target-wjgmna0r.js → out-target-eqsttq1k.js} +18 -22
- package/dist/{packager-tool-f8vwy92w.js → packager-tool-0te1tyhf.js} +186 -16
- package/dist/{packager-tool-ydyvtknp.js → packager-tool-0w4fsdzv.js} +44 -20
- package/dist/{packager-tool-8ftat1vn.js → packager-tool-17b466mr.js} +59158 -59666
- package/dist/packager-tool-1nfdj0zm.js +425 -0
- package/dist/packager-tool-1wgav5ma.js +139 -0
- package/dist/{packager-tool-b1nw50ev.js → packager-tool-265h946t.js} +256 -486
- package/dist/{packager-tool-nj4seavy.js → packager-tool-35c9npcy.js} +26 -7
- package/dist/{packager-tool-r0x3qh59.js → packager-tool-388vyja1.js} +185 -29
- package/dist/packager-tool-3m8482sw.js +78 -0
- package/dist/packager-tool-3r23qsca.js +4832 -0
- package/dist/packager-tool-3xehbdyd.js +1302 -0
- package/dist/packager-tool-4avchhz8.js +539 -0
- package/dist/{packager-tool-9kvkzc05.js → packager-tool-5w0gjcck.js} +4 -4
- package/dist/packager-tool-68648y3j.js +6 -0
- package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
- package/dist/{packager-tool-aagnvyba.js → packager-tool-76zhn5pa.js} +131 -432
- package/dist/packager-tool-7x1tmb8a.js +46 -0
- package/dist/{packager-tool-kyrm4e5m.js → packager-tool-9ar5829n.js} +781 -741
- package/dist/{packager-tool-4p11fvf4.js → packager-tool-b2q8m9pq.js} +10 -13
- package/dist/packager-tool-bg3tdpva.js +27 -0
- package/dist/{packager-tool-wr12ndwk.js → packager-tool-ccejfs0r.js} +252 -468
- package/dist/{packager-tool-yn33pw57.js → packager-tool-dn9d4ywm.js} +246 -225
- package/dist/{packager-tool-kdhey8gz.js → packager-tool-e02jkmrq.js} +41 -29
- package/dist/{packager-tool-sq931c23.js → packager-tool-e1tx5mqg.js} +1 -1
- package/dist/{packager-tool-qn3zkrrc.js → packager-tool-ehjw672b.js} +32 -15
- package/dist/packager-tool-gy4yjqhf.js +178 -0
- package/dist/packager-tool-h2ar8xf8.js +222 -0
- package/dist/{packager-tool-v2kcgjbf.js → packager-tool-j6nfje7t.js} +5 -4
- package/dist/packager-tool-k0ar6cn7.js +295 -0
- package/dist/packager-tool-kz7zz79p.js +71 -0
- package/dist/{packager-tool-1gwbq864.js → packager-tool-m5384a1s.js} +66 -82
- package/dist/{packager-tool-9e59z4d6.js → packager-tool-me8gd22q.js} +82 -83
- package/dist/packager-tool-mk9fmzdy.js +20 -0
- package/dist/{packager-tool-yfmby4dd.js → packager-tool-mkt1njk2.js} +630 -689
- package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
- package/dist/{packager-tool-mqy97y5f.js → packager-tool-p5gs9xqy.js} +14 -14
- package/dist/{packager-tool-83v804p7.js → packager-tool-psmb758n.js} +3108 -2627
- package/dist/packager-tool-q26hncjr.js +13 -0
- package/dist/packager-tool-q9fnx278.js +77 -0
- package/dist/{packager-tool-ezds6t5e.js → packager-tool-s12s1dp6.js} +11 -11
- package/dist/packager-tool-scy94jyb.js +5424 -0
- package/dist/{packager-tool-yn7r7zq2.js → packager-tool-snesn0bt.js} +177 -96
- package/dist/{packager-tool-d8e2mrkq.js → packager-tool-tgehy324.js} +56 -56
- package/dist/{packager-tool-tqn0j6f9.js → packager-tool-v11fx4dk.js} +7 -7
- package/dist/{packager-tool-67vy1fz3.js → packager-tool-v6rkp2ay.js} +24 -92
- package/dist/{packager-tool-9sd483vs.js → packager-tool-vs7gqa4r.js} +15 -15
- package/dist/packager-tool-vyavrbym.js +488 -0
- package/dist/{packager-tool-b098y4a2.js → packager-tool-wbksf242.js} +97 -97
- package/dist/{packager-tool-2sn7d8fd.js → packager-tool-x74mmjkw.js} +9 -13
- package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
- package/dist/{packager-tool-a17g0pj1.js → packager-tool-xd1wbvay.js} +10 -8
- package/dist/{packager-tool-1yfw674x.js → packager-tool-xehhk3c3.js} +10 -5
- package/dist/packager-tool-yh8mmj3p.js +123 -0
- package/dist/{packager-tool-hdxtgckw.js → packager-tool-z070caqq.js} +56 -12
- package/dist/{packager-tool-b250k6w4.js → packager-tool-z1fw9a8v.js} +41 -9
- package/dist/{packager-tool-0gctz400.js → packager-tool-z9fmqtm6.js} +4 -4
- package/dist/{packager-tool-mzf4gmph.js → packager-tool-zbx189j3.js} +11 -8
- package/dist/{packager-tool-zf8f9pmm.js → packager-tool-zrbnms9b.js} +3 -4
- package/dist/packager-tool.js +10 -11
- package/dist/prepare-uip-ad7mfs8t.js +92 -0
- package/dist/{project-artifacts-bgyyb0dm.js → project-artifacts-q0c0zghw.js} +2 -6
- package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
- package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
- package/dist/{pt-RMIAKZB4-67enhx3m.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
- package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
- package/dist/{resolved-check-aqw7568y.js → resolved-check-dz8eqrf6.js} +2 -3
- package/dist/{resourcesSyncService-8ac6ncq2.js → resourcesSyncService-yrhhh62m.js} +81 -141
- package/dist/{ro-GHOBYW2S-mhnqsgaa.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
- package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
- package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
- package/dist/ru-WBLQ5B2U-bf20yr5y.js +7 -0
- package/dist/{rule-group-members-zje7n3kf.js → rule-group-members-p0nv1rmj.js} +1 -3
- package/dist/rule-type-declaration-s2nxpcfy.js +77 -0
- package/dist/{sdd-convert-service-8jpew7vz.js → sdd-convert-service-ffbx00k6.js} +481 -504
- package/dist/{sdd-lookup-fe900sdb.js → sdd-lookup-sah7wj5j.js} +8 -9
- package/dist/{sdd-resolve-service-qdtmxw9b.js → sdd-resolve-service-6nt10vhq.js} +28 -20
- package/dist/{sdd-resolve-siblings-8gf9zjwf.js → sdd-resolve-siblings-ap8j1c8h.js} +11 -14
- package/dist/solution-auth-a1p22hq1.js +11 -0
- package/dist/solution-discovery-r1y550sz.js +33 -0
- package/dist/{strict-case-rules-4tjcaznr.js → strict-case-rules-045kbjvv.js} +16 -28
- package/dist/{strict-entry-points-g2pd4mf4.js → strict-entry-points-40ha9afz.js} +15 -14
- package/dist/strict-sdd-audit-bp7fq2tg.js +26 -0
- package/dist/{task-selector-8bjn35dv.js → task-selector-jt60hdbt.js} +1 -3
- package/dist/{task-type-declaration-7a8fqdvs.js → task-type-declaration-yhczvj05.js} +9 -9
- package/dist/tool.js +18 -24
- package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
- package/dist/{tr-GDTLECMM-k5fhmq13.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
- package/dist/{trigger-enrichment-service-agvnhdf7.js → trigger-enrichment-service-z8kxy6qr.js} +53 -57
- package/dist/trigger-entry-point-id-751v48qd.js +14 -0
- package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
- package/dist/{zh-CN-I5D7WHBD-sr5h0a98.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
- package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
- package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
- package/package.json +2 -2
- package/dist/canvas-notes-86fxx1t8.js +0 -19
- package/dist/case-event-trigger-bindings-g9ftnm4x.js +0 -16
- package/dist/case-schema-version-h820ne16.js +0 -20
- package/dist/case-shape-reader-dsbraetf.js +0 -13
- package/dist/connector-enrichment-service-6kskfevq.js +0 -65
- package/dist/connector-lookup-service-yyn8kkw7.js +0 -22
- package/dist/connector-task-shape-mpazkf7s.js +0 -14
- package/dist/debug-service-7q98j726.js +0 -59
- package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
- package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
- package/dist/filter-engine-7ep90g7f.js +0 -11
- package/dist/first-party-service-srxaftkn.js +0 -27
- package/dist/index-0d7qc2gs.js +0 -282
- package/dist/index-jmv5by9z.js +0 -666
- package/dist/index-kmp9fmhb.js +0 -25
- package/dist/index-n9qvnx4x.js +0 -29
- package/dist/index-ngs0a2he.js +0 -15
- package/dist/index-xq6ajhgq.js +0 -157
- package/dist/index.umd.min-fqefd9kn.js +0 -7814
- package/dist/input-reader-c7wz8ra2.js +0 -11
- package/dist/known-types-5b6yrsqn.js +0 -16
- package/dist/localSolutionDiscovery-yyx234ak.js +0 -13
- package/dist/node-sync-service-2ezr3akv.js +0 -57
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-6z1hsm2h.js +0 -143
- package/dist/packager-tool-93mdeqay.js +0 -18
- package/dist/packager-tool-9kf3fqtr.js +0 -23
- package/dist/packager-tool-bfgdz1zh.js +0 -73
- package/dist/packager-tool-e15kqpyh.js +0 -266
- package/dist/packager-tool-gmykn1ef.js +0 -5365
- package/dist/packager-tool-jysvpt8p.js +0 -11
- package/dist/packager-tool-pcvhcn2k.js +0 -2019
- package/dist/packager-tool-rk25wp3c.js +0 -28
- package/dist/packager-tool-sc961w0q.js +0 -16
- package/dist/packager-tool-wekqkmgn.js +0 -265
- package/dist/packager-tool-yc4kw997.js +0 -13
- package/dist/packager-tool-zgpsnxkd.js +0 -13189
- package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
- package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
- package/dist/solution-auth-30yycqtv.js +0 -14
- package/dist/solution-discovery-e9mamp6w.js +0 -38
- package/dist/strict-sdd-audit-q7tb9yj7.js +0 -25
- package/dist/trigger-entry-point-id-yhqwnkx9.js +0 -15
- /package/dist/{packager-tool-5qp9xza1.js → packager-tool-1c30ttpm.js} +0 -0
- /package/dist/{packager-tool-mknccck5.js → packager-tool-1h7abxw6.js} +0 -0
- /package/dist/{packager-tool-9y1w2wds.js → packager-tool-fcektt1g.js} +0 -0
- /package/dist/{packager-tool-k6jbedyc.js → packager-tool-hcdnc420.js} +0 -0
- /package/dist/{packager-tool-7nxppa3d.js → packager-tool-jv5byaww.js} +0 -0
- /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
- /package/dist/{packager-tool-87y6xw3a.js → packager-tool-nfhtwa72.js} +0 -0
- /package/dist/{packager-tool-cv05dwac.js → packager-tool-p0rdmmvk.js} +0 -0
- /package/dist/{packager-tool-21qfsbxn.js → packager-tool-yaertxsw.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
catchError2,
|
|
2
3
|
RESULTS,
|
|
3
|
-
catchError,
|
|
4
4
|
logger
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-psmb758n.js";
|
|
6
6
|
|
|
7
7
|
// ../maestro-sdk/src/debug-service.ts
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
@@ -237,12 +237,6 @@ async function debugPimsWrite(config, path, body, method, stage) {
|
|
|
237
237
|
async function debugPimsPost(config, path, body, stage) {
|
|
238
238
|
return debugPimsWrite(config, path, body, "POST", stage);
|
|
239
239
|
}
|
|
240
|
-
async function debugPimsPut(config, path, body, stage) {
|
|
241
|
-
return debugPimsWrite(config, path, body, "PUT", stage);
|
|
242
|
-
}
|
|
243
|
-
async function debugPimsPatch(config, path, body, stage) {
|
|
244
|
-
return debugPimsWrite(config, path, body, "PATCH", stage);
|
|
245
|
-
}
|
|
246
240
|
async function studioWebPost(config, organizationName, path, body, extraHeaders, stage) {
|
|
247
241
|
const url = `${config.baseUrl}/${organizationName}/studio_/backend/api${path}`;
|
|
248
242
|
const headers = {
|
|
@@ -269,30 +263,38 @@ async function studioWebPost(config, organizationName, path, body, extraHeaders,
|
|
|
269
263
|
}
|
|
270
264
|
return response.json();
|
|
271
265
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
266
|
+
|
|
267
|
+
// ../maestro-sdk/src/debug-poll-retry.ts
|
|
268
|
+
var POLL_RETRY_DELAYS_MS = [5000, 1e4];
|
|
269
|
+
var isRetryablePollStatus = (httpStatus) => httpStatus === 403 || httpStatus >= 500;
|
|
270
|
+
var delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
271
|
+
async function withPollRetry(stage, poll, delays = POLL_RETRY_DELAYS_MS) {
|
|
272
|
+
const totalAttempts = delays.length + 1;
|
|
273
|
+
const traceIds = [];
|
|
274
|
+
for (let attempt = 1;; attempt++) {
|
|
275
|
+
const [error, result] = await catchError2(poll());
|
|
276
|
+
if (!error)
|
|
277
|
+
return result;
|
|
278
|
+
if (!(error instanceof MaestroHttpError) || !isRetryablePollStatus(error.httpStatus)) {
|
|
279
|
+
throw error;
|
|
280
|
+
}
|
|
281
|
+
if (error.parsedTraceId)
|
|
282
|
+
traceIds.push(error.parsedTraceId);
|
|
283
|
+
const retryDelay = delays[attempt - 1];
|
|
284
|
+
if (retryDelay === undefined) {
|
|
285
|
+
error.recordAttempts(totalAttempts, traceIds);
|
|
286
|
+
error.message = `${error.message} — tried ${totalAttempts} times over ${delays.reduce((sum, ms) => sum + ms, 0) / 1000}s${traceIds.length > 0 ? ` (traceIds: ${traceIds.join(", ")})` : ""}`;
|
|
287
|
+
throw error;
|
|
288
|
+
}
|
|
289
|
+
logger.warn(`${stage} returned HTTP ${error.httpStatus} (attempt ${attempt}/${totalAttempts}); retrying in ${retryDelay / 1000}s.`);
|
|
290
|
+
await delay(retryDelay);
|
|
289
291
|
}
|
|
290
292
|
}
|
|
291
293
|
|
|
292
294
|
// ../maestro-sdk/src/debug-service.ts
|
|
293
295
|
var AGENT_TARGET_RUNTIME = "pythonAgent";
|
|
294
296
|
|
|
295
|
-
class
|
|
297
|
+
class FpsPropertiesInjectionError2 extends Error {
|
|
296
298
|
fpsProperties;
|
|
297
299
|
agentCount;
|
|
298
300
|
cause;
|
|
@@ -304,7 +306,7 @@ class FpsPropertiesInjectionError extends Error {
|
|
|
304
306
|
this.cause = cause;
|
|
305
307
|
}
|
|
306
308
|
}
|
|
307
|
-
function
|
|
309
|
+
function injectInlineAgentProcessEntries2(fpsProperties, inlineAgents, flowProjectId) {
|
|
308
310
|
if (!inlineAgents || inlineAgents.length === 0)
|
|
309
311
|
return fpsProperties;
|
|
310
312
|
const entries = inlineAgents.map((agent) => ({
|
|
@@ -324,7 +326,7 @@ function injectInlineAgentProcessEntries(fpsProperties, inlineAgents, flowProjec
|
|
|
324
326
|
}));
|
|
325
327
|
return appendProcessEntries(fpsProperties, entries, inlineAgents.length);
|
|
326
328
|
}
|
|
327
|
-
function
|
|
329
|
+
function injectSolutionProjectProcessEntries2(fpsProperties, solutionProjects) {
|
|
328
330
|
if (!solutionProjects || solutionProjects.length === 0) {
|
|
329
331
|
return fpsProperties;
|
|
330
332
|
}
|
|
@@ -342,7 +344,7 @@ function injectSolutionProjectProcessEntries(fpsProperties, solutionProjects) {
|
|
|
342
344
|
} : {
|
|
343
345
|
projectId: project.projectId,
|
|
344
346
|
debugArgs: {
|
|
345
|
-
debugMode: project.debugMode ??
|
|
347
|
+
debugMode: project.debugMode ?? DEBUG_MODE_MAP2.Default,
|
|
346
348
|
studioWebProjectId: project.projectId,
|
|
347
349
|
processType: project.projectType,
|
|
348
350
|
solutionId: project.solutionId,
|
|
@@ -365,14 +367,14 @@ function appendProcessEntries(fpsProperties, entries, entryCount) {
|
|
|
365
367
|
}
|
|
366
368
|
return JSON.stringify(outer);
|
|
367
369
|
} catch (err) {
|
|
368
|
-
throw new
|
|
370
|
+
throw new FpsPropertiesInjectionError2(fpsProperties ?? "", entryCount, err);
|
|
369
371
|
}
|
|
370
372
|
}
|
|
371
|
-
function
|
|
373
|
+
function extractStartEventId2(bpmnXml) {
|
|
372
374
|
const match = bpmnXml.match(/<bpmn:startEvent\s+id="([^"]+)"/);
|
|
373
375
|
return match?.[1] ?? "start";
|
|
374
376
|
}
|
|
375
|
-
async function
|
|
377
|
+
async function getPersonalFolderKey2(config) {
|
|
376
378
|
const result = await orchestratorGet(config, "/api/Folders/GetAllForCurrentUser", "get-personal-folder");
|
|
377
379
|
const personal = result.PageItems?.find((f) => f.FolderType === "Personal");
|
|
378
380
|
if (!personal) {
|
|
@@ -380,7 +382,7 @@ async function getPersonalFolderKey(config) {
|
|
|
380
382
|
}
|
|
381
383
|
return { key: personal.Key, id: personal.Id };
|
|
382
384
|
}
|
|
383
|
-
async function
|
|
385
|
+
async function getPersonalFolderInfo2(config) {
|
|
384
386
|
const result = await orchestratorGet(config, "/api/Folders/GetAllForCurrentUser", "get-personal-folder");
|
|
385
387
|
const personal = result.PageItems?.find((f) => f.FolderType === "Personal");
|
|
386
388
|
if (!personal) {
|
|
@@ -402,7 +404,7 @@ var TERMINAL_PROJECT_DEBUG_STATUSES = new Set([
|
|
|
402
404
|
"validationfailed"
|
|
403
405
|
]);
|
|
404
406
|
|
|
405
|
-
class
|
|
407
|
+
class DebugProvisioningFailedError2 extends Error {
|
|
406
408
|
status;
|
|
407
409
|
errors;
|
|
408
410
|
constructor(status, errors) {
|
|
@@ -411,11 +413,8 @@ class DebugProvisioningFailedError extends Error {
|
|
|
411
413
|
this.status = status;
|
|
412
414
|
this.errors = errors;
|
|
413
415
|
}
|
|
414
|
-
get isValidationFailure() {
|
|
415
|
-
return this.status.toLowerCase() === "validationfailed";
|
|
416
|
-
}
|
|
417
416
|
}
|
|
418
|
-
var
|
|
417
|
+
var delay2 = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
419
418
|
async function waitForProjectProvisioning(config, solutionId, sessionId, timeoutMs, pollIntervalMs) {
|
|
420
419
|
const deadline = Date.now() + timeoutMs;
|
|
421
420
|
const path = `/api/v1/solutions/${encodeURIComponent(solutionId)}/projects/debug/status` + `?debugSessionId=${encodeURIComponent(sessionId)}`;
|
|
@@ -423,7 +422,7 @@ async function waitForProjectProvisioning(config, solutionId, sessionId, timeout
|
|
|
423
422
|
const remainingMs = deadline - Date.now();
|
|
424
423
|
if (remainingMs <= 0)
|
|
425
424
|
break;
|
|
426
|
-
const [pollError, info] = await
|
|
425
|
+
const [pollError, info] = await catchError2(automationSolutionsGet(config, path, "poll-project-debug-status", AbortSignal.timeout(remainingMs)));
|
|
427
426
|
if (pollError) {
|
|
428
427
|
if (Date.now() >= deadline)
|
|
429
428
|
break;
|
|
@@ -433,7 +432,7 @@ async function waitForProjectProvisioning(config, solutionId, sessionId, timeout
|
|
|
433
432
|
logger.debug(`Project debug provisioning status: ${info.status ?? "unknown"}`);
|
|
434
433
|
if (status && TERMINAL_PROJECT_DEBUG_STATUSES.has(status)) {
|
|
435
434
|
if (status !== "creationsucceeded") {
|
|
436
|
-
throw new
|
|
435
|
+
throw new DebugProvisioningFailedError2(info.status ?? "unknown", info.errors ?? []);
|
|
437
436
|
}
|
|
438
437
|
logger.info(`Studio Web resources provisioned${info.folderFullyQualifiedName ? ` in ${info.folderFullyQualifiedName}` : ""}`);
|
|
439
438
|
return;
|
|
@@ -441,11 +440,11 @@ async function waitForProjectProvisioning(config, solutionId, sessionId, timeout
|
|
|
441
440
|
const remainingAfterPollMs = deadline - Date.now();
|
|
442
441
|
if (remainingAfterPollMs <= 0)
|
|
443
442
|
break;
|
|
444
|
-
await
|
|
443
|
+
await delay2(Math.min(pollIntervalMs, remainingAfterPollMs));
|
|
445
444
|
}
|
|
446
445
|
throw new Error(`Timed out waiting for Studio Web resource provisioning after ${timeoutMs}ms.`);
|
|
447
446
|
}
|
|
448
|
-
async function
|
|
447
|
+
async function prepareForCustomDebug2(params) {
|
|
449
448
|
const sessionId = params.sessionId ?? randomUUID();
|
|
450
449
|
const query = new URLSearchParams({
|
|
451
450
|
sessionId,
|
|
@@ -471,7 +470,7 @@ async function prepareForCustomDebug(params) {
|
|
|
471
470
|
solutionDebugId: result.solutionDebugId ?? params.solutionId
|
|
472
471
|
};
|
|
473
472
|
}
|
|
474
|
-
async function
|
|
473
|
+
async function getFolderInfoById2(config, folderId) {
|
|
475
474
|
const result = await orchestratorGet(config, `/odata/Folders(${folderId})`, "get-folder-by-id");
|
|
476
475
|
return {
|
|
477
476
|
key: result.Key,
|
|
@@ -481,8 +480,8 @@ async function getFolderInfoById(config, folderId) {
|
|
|
481
480
|
parentKey: result.ParentKey
|
|
482
481
|
};
|
|
483
482
|
}
|
|
484
|
-
async function
|
|
485
|
-
const fpsProperties =
|
|
483
|
+
async function beginDebugSession2(config, inputArguments = "{}", options) {
|
|
484
|
+
const fpsProperties = injectSolutionProjectProcessEntries2(injectInlineAgentProcessEntries2(options?.fpsProperties, options?.inlineAgents, options?.flowProjectId), options?.solutionProjects);
|
|
486
485
|
const body = {
|
|
487
486
|
JobsCount: 1,
|
|
488
487
|
JobPriority: null,
|
|
@@ -502,28 +501,28 @@ async function beginDebugSession(config, inputArguments = "{}", options) {
|
|
|
502
501
|
}
|
|
503
502
|
return result;
|
|
504
503
|
}
|
|
505
|
-
var
|
|
504
|
+
var DEBUG_MODE_MAP2 = {
|
|
506
505
|
None: 0,
|
|
507
506
|
Default: 1,
|
|
508
507
|
StepByStep: 2,
|
|
509
508
|
SingleStep: 3
|
|
510
509
|
};
|
|
511
|
-
var
|
|
510
|
+
var SIMULATION_MODE_MAP2 = {
|
|
512
511
|
None: 0,
|
|
513
512
|
All: 1,
|
|
514
513
|
Selective: 2
|
|
515
514
|
};
|
|
516
515
|
var CREATE_DEBUG_INSTANCE_RETRY_DELAYS_MS = [2000, 5000];
|
|
517
516
|
var CREATE_DEBUG_INSTANCE_RETRYABLE_STATUSES = new Set([500, 503]);
|
|
518
|
-
async function
|
|
517
|
+
async function createDebugInstance2(config, jobKey, solutionId, studioWebProjectId, entryPoint, processType = "Flow", debugMode = "Default", simulationMode = "None") {
|
|
519
518
|
const body = {
|
|
520
519
|
jobKey,
|
|
521
520
|
debugArgs: {
|
|
522
521
|
breakPoints: [],
|
|
523
|
-
debugMode:
|
|
522
|
+
debugMode: DEBUG_MODE_MAP2[debugMode],
|
|
524
523
|
entryPoint,
|
|
525
524
|
processType,
|
|
526
|
-
simulationMode:
|
|
525
|
+
simulationMode: SIMULATION_MODE_MAP2[simulationMode],
|
|
527
526
|
solutionId,
|
|
528
527
|
studioWebProjectId,
|
|
529
528
|
variables: {}
|
|
@@ -533,7 +532,7 @@ async function createDebugInstance(config, jobKey, solutionId, studioWebProjectI
|
|
|
533
532
|
const traceIds = [];
|
|
534
533
|
let lastError;
|
|
535
534
|
for (let attempt = 1;attempt <= totalAttempts; attempt++) {
|
|
536
|
-
const [error, result] = await
|
|
535
|
+
const [error, result] = await catchError2(debugPimsPost(config, "/api/v1/debug-instances", body, "create-debug-instance"));
|
|
537
536
|
if (!error) {
|
|
538
537
|
if (!result.instanceId) {
|
|
539
538
|
throw new Error(`debug-instances API returned no instanceId: ${JSON.stringify(result)}`);
|
|
@@ -558,7 +557,7 @@ async function createDebugInstance(config, jobKey, solutionId, studioWebProjectI
|
|
|
558
557
|
break;
|
|
559
558
|
}
|
|
560
559
|
logger.warn(`create-debug-instance returned HTTP ${error.httpStatus} (attempt ${attempt}/${totalAttempts}); retrying in ${retryDelay / 1000}s.`);
|
|
561
|
-
await
|
|
560
|
+
await delay2(retryDelay);
|
|
562
561
|
}
|
|
563
562
|
if (!lastError) {
|
|
564
563
|
throw new Error("create-debug-instance failed without an error.");
|
|
@@ -584,7 +583,7 @@ var SUCCESS_DEBUG_STATUSES = new Set([
|
|
|
584
583
|
]);
|
|
585
584
|
var FAULTED_DEBUG_STATUSES = new Set([...PIMS_TERMINAL_STATUSES, ...ORCHESTRATOR_TERMINAL_STATUSES].filter((status) => !SUCCESS_DEBUG_STATUSES.has(status)));
|
|
586
585
|
|
|
587
|
-
class
|
|
586
|
+
class DebugPollTimeoutError2 extends Error {
|
|
588
587
|
instanceId;
|
|
589
588
|
jobKey;
|
|
590
589
|
lastStatus;
|
|
@@ -598,7 +597,7 @@ class DebugPollTimeoutError extends Error {
|
|
|
598
597
|
this.timeoutSeconds = details.timeoutSeconds;
|
|
599
598
|
}
|
|
600
599
|
}
|
|
601
|
-
function
|
|
600
|
+
function buildPollTimeoutFailureOutput2(err, inspectCommand) {
|
|
602
601
|
const inspect = inspectCommand ? `Check it with '${inspectCommand} ${err.instanceId}', or re-run` : "Re-run";
|
|
603
602
|
return {
|
|
604
603
|
Result: RESULTS.Failure,
|
|
@@ -615,7 +614,7 @@ function buildPollTimeoutFailureOutput(err, inspectCommand) {
|
|
|
615
614
|
}
|
|
616
615
|
};
|
|
617
616
|
}
|
|
618
|
-
async function
|
|
617
|
+
async function pollDebugInstanceStatus2(config, instanceId, callbacks, pollInterval = 2000, maxPolls = 300, jobKey) {
|
|
619
618
|
let pollCount = 0;
|
|
620
619
|
let lastStatus = "";
|
|
621
620
|
const canCheckOrchestratorJob = jobKey !== undefined && ORCHESTRATOR_JOB_KEY.test(jobKey);
|
|
@@ -623,7 +622,7 @@ async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterv
|
|
|
623
622
|
logger.warn(`Skipping the Orchestrator job status fallback: "${jobKey}" is not a job key.`);
|
|
624
623
|
}
|
|
625
624
|
while (pollCount < maxPolls) {
|
|
626
|
-
const status = await debugPimsGet(config, `/api/v1/debug-instances/${instanceId}/element-executions`, "poll-instance-status");
|
|
625
|
+
const status = await withPollRetry("poll-instance-status", () => debugPimsGet(config, `/api/v1/debug-instances/${instanceId}/element-executions`, "poll-instance-status"));
|
|
627
626
|
if (status.status !== lastStatus) {
|
|
628
627
|
lastStatus = status.status;
|
|
629
628
|
const elementExecutions = status.elementExecutions.map((e) => ({
|
|
@@ -643,7 +642,7 @@ async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterv
|
|
|
643
642
|
return status;
|
|
644
643
|
}
|
|
645
644
|
if (canCheckOrchestratorJob && pollCount > 0 && pollCount % 5 === 0) {
|
|
646
|
-
const [, jobResponse] = await
|
|
645
|
+
const [, jobResponse] = await catchError2(orchestratorGet(config, `/odata/Jobs?$filter=Key eq ${jobKey}&$top=1`, "check-orchestrator-job-status"));
|
|
647
646
|
const jobState = jobResponse?.value?.[0]?.State;
|
|
648
647
|
if (jobState && ORCHESTRATOR_TERMINAL_STATUSES.includes(jobState)) {
|
|
649
648
|
const jobInfo = jobResponse?.value?.[0]?.Info ?? "";
|
|
@@ -654,14 +653,14 @@ async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterv
|
|
|
654
653
|
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
|
655
654
|
pollCount++;
|
|
656
655
|
}
|
|
657
|
-
throw new
|
|
656
|
+
throw new DebugPollTimeoutError2({
|
|
658
657
|
instanceId,
|
|
659
658
|
...jobKey === undefined ? {} : { jobKey },
|
|
660
659
|
lastStatus: lastStatus || "unknown",
|
|
661
660
|
timeoutSeconds: maxPolls * pollInterval / 1000
|
|
662
661
|
});
|
|
663
662
|
}
|
|
664
|
-
async function
|
|
663
|
+
async function fetchDebugInstanceIncidents2(config, instanceId) {
|
|
665
664
|
const result = await debugPimsGet(config, `/api/v1/debug-instances/${instanceId}/incidents`, "get-debug-instance-incidents");
|
|
666
665
|
return result ?? [];
|
|
667
666
|
}
|
|
@@ -683,7 +682,7 @@ function undefinedGlobals(response, expected) {
|
|
|
683
682
|
}
|
|
684
683
|
return expected.filter((id) => !Object.hasOwn(defined, id));
|
|
685
684
|
}
|
|
686
|
-
async function
|
|
685
|
+
async function fetchDebugInstanceVariables2(config, instanceId, options) {
|
|
687
686
|
const endpoint = `/api/v1/debug-instances/${encodeURIComponent(instanceId)}/variables`;
|
|
688
687
|
const delays = options?.delays ?? FETCH_VARIABLES_RETRY_DELAYS_MS;
|
|
689
688
|
const attemptTimeoutMs = options?.attemptTimeoutMs ?? FETCH_VARIABLES_ATTEMPT_TIMEOUT_MS;
|
|
@@ -705,7 +704,7 @@ async function fetchDebugInstanceVariables(config, instanceId, options) {
|
|
|
705
704
|
for (let attempt = 1;attempt <= totalAttempts; attempt++) {
|
|
706
705
|
const controller = new AbortController;
|
|
707
706
|
const timer = setTimeout(() => controller.abort(), attemptTimeoutMs);
|
|
708
|
-
const [error, result] = await
|
|
707
|
+
const [error, result] = await catchError2(debugPimsGet(config, endpoint, "fetch-output-variables", { signal: controller.signal }));
|
|
709
708
|
clearTimeout(timer);
|
|
710
709
|
const missing = error ? [] : undefinedGlobals(result, options?.expectGlobals ?? []);
|
|
711
710
|
if (!error && missing.length === 0) {
|
|
@@ -742,7 +741,7 @@ async function fetchDebugInstanceVariables(config, instanceId, options) {
|
|
|
742
741
|
break;
|
|
743
742
|
}
|
|
744
743
|
logger.warn(`fetch-output-variables failed (attempt ${attempt}/${totalAttempts}): ${lastMessage}; retrying in ${retryDelay / 1000}s.`);
|
|
745
|
-
await
|
|
744
|
+
await delay2(retryDelay);
|
|
746
745
|
}
|
|
747
746
|
throw new DebugVariablesFetchFailedError({
|
|
748
747
|
message: lastMessage,
|
|
@@ -758,17 +757,17 @@ async function fetchDebugInstanceVariables(config, instanceId, options) {
|
|
|
758
757
|
...timing()
|
|
759
758
|
});
|
|
760
759
|
}
|
|
761
|
-
function
|
|
760
|
+
function isFaultedDebugStatus2(status) {
|
|
762
761
|
return FAULTED_DEBUG_STATUSES.has(status);
|
|
763
762
|
}
|
|
764
|
-
function
|
|
763
|
+
function isSuccessfulDebugStatus2(status) {
|
|
765
764
|
return SUCCESS_DEBUG_STATUSES.has(status);
|
|
766
765
|
}
|
|
767
|
-
async function
|
|
768
|
-
if (!
|
|
766
|
+
async function resolveFaultIncidents2(config, instanceId, status) {
|
|
767
|
+
if (!isFaultedDebugStatus2(status)) {
|
|
769
768
|
return;
|
|
770
769
|
}
|
|
771
|
-
const [incidentError, fetched] = await
|
|
770
|
+
const [incidentError, fetched] = await catchError2(fetchDebugInstanceIncidents2(config, instanceId));
|
|
772
771
|
if (incidentError) {
|
|
773
772
|
logger.warn(`Could not fetch debug incidents: ${incidentError.message}`);
|
|
774
773
|
return;
|
|
@@ -780,10 +779,10 @@ async function resolveFaultIncidents(config, instanceId, status) {
|
|
|
780
779
|
logger.warn(`Debug session faulted with ${fetched.length} incident(s). ` + `First: [${first.errorCode ?? "no-code"}] ${first.errorMessage}` + (first.elementId ? ` (element ${first.elementId})` : ""));
|
|
781
780
|
return fetched;
|
|
782
781
|
}
|
|
783
|
-
function
|
|
782
|
+
function buildStudioWebDesignerUrl2(params) {
|
|
784
783
|
return `${params.baseUrl}/${encodeURIComponent(params.organizationName)}` + `/studio_/designer/${encodeURIComponent(params.projectId)}` + `?solutionId=${encodeURIComponent(params.solutionId)}`;
|
|
785
784
|
}
|
|
786
|
-
async function
|
|
785
|
+
async function uploadAndDebugSolution2(params) {
|
|
787
786
|
const { apiConfig } = params;
|
|
788
787
|
logger.info("Uploading solution to Studio Web...");
|
|
789
788
|
const importResult = await params.upload();
|
|
@@ -793,7 +792,7 @@ async function uploadAndDebugSolution(params) {
|
|
|
793
792
|
}
|
|
794
793
|
const matchedProject = importResult.projects.find((p) => p.name === params.projectName);
|
|
795
794
|
const studioWebProjectId = (matchedProject ?? importResult.projects[0]).id;
|
|
796
|
-
const studioWebUrl =
|
|
795
|
+
const studioWebUrl = buildStudioWebDesignerUrl2({
|
|
797
796
|
baseUrl: apiConfig.baseUrl,
|
|
798
797
|
organizationName: params.organizationName,
|
|
799
798
|
projectId: studioWebProjectId,
|
|
@@ -802,7 +801,7 @@ async function uploadAndDebugSolution(params) {
|
|
|
802
801
|
logger.info(`Solution uploaded — solutionId: ${solutionId}, projectId: ${studioWebProjectId}`);
|
|
803
802
|
logger.info(`Studio Web URL: ${studioWebUrl}`);
|
|
804
803
|
params.callbacks?.onStudioWebUrl?.(studioWebUrl);
|
|
805
|
-
const folder = params.folder ?? await
|
|
804
|
+
const folder = params.folder ?? await getPersonalFolderKey2(apiConfig);
|
|
806
805
|
apiConfig.folderKey = folder.key;
|
|
807
806
|
apiConfig.organizationUnitId = folder.id;
|
|
808
807
|
logger.info(`Personal folder — key: ${folder.key}, id: ${folder.id}`);
|
|
@@ -831,7 +830,7 @@ async function uploadAndDebugSolution(params) {
|
|
|
831
830
|
organizationUnitId: apiConfig.organizationUnitId,
|
|
832
831
|
organizationName: params.organizationName
|
|
833
832
|
};
|
|
834
|
-
const [prepErr, prepIds] = await
|
|
833
|
+
const [prepErr, prepIds] = await catchError2(prepareForCustomDebug2({
|
|
835
834
|
config: studioWebConfig,
|
|
836
835
|
solutionId,
|
|
837
836
|
projectId: studioWebProjectId,
|
|
@@ -854,19 +853,19 @@ async function uploadAndDebugSolution(params) {
|
|
|
854
853
|
logger.warn("Skipping prepareForCustomDebug — apiConfig.tenantId is not set. " + "Sub-jobs (api-workflow / agent / process orchestration) may fault with a missing debugSessionId.");
|
|
855
854
|
}
|
|
856
855
|
logger.info("Beginning debug session in Orchestrator...");
|
|
857
|
-
const session = await
|
|
856
|
+
const session = await beginDebugSession2(apiConfig, params.beginSessionPayload, {
|
|
858
857
|
inlineAgents,
|
|
859
858
|
flowProjectId: studioWebProjectId,
|
|
860
859
|
...solutionProjects ? { solutionProjects } : {}
|
|
861
860
|
});
|
|
862
861
|
logger.info(`Debug session started — jobKey: ${session.jobKey}`);
|
|
863
862
|
logger.info("Creating debug instance in PIMS...");
|
|
864
|
-
const debugInstance = await
|
|
863
|
+
const debugInstance = await createDebugInstance2(apiConfig, session.jobKey, debugSolutionId, debugProjectId, params.entryPoint, params.projectType);
|
|
865
864
|
logger.info(`Debug instance created — instanceId: ${debugInstance.instanceId}`);
|
|
866
865
|
logger.info("Polling for completion...");
|
|
867
|
-
const finalResponse = await
|
|
866
|
+
const finalResponse = await pollDebugInstanceStatus2(apiConfig, debugInstance.instanceId, params.callbacks, params.pollInterval, params.maxPolls, session.jobKey);
|
|
868
867
|
const terminalStatusAt = Date.now();
|
|
869
|
-
const incidents = await
|
|
868
|
+
const incidents = await resolveFaultIncidents2(apiConfig, debugInstance.instanceId, finalResponse.status);
|
|
870
869
|
return {
|
|
871
870
|
jobKey: session.jobKey,
|
|
872
871
|
instanceId: debugInstance.instanceId,
|
|
@@ -886,7 +885,7 @@ async function uploadAndDebugSolution(params) {
|
|
|
886
885
|
incidents
|
|
887
886
|
};
|
|
888
887
|
}
|
|
889
|
-
async function
|
|
888
|
+
async function patchConnectionOverwrites2(config, organizationName, solutionId, solutionDir, folder, fs) {
|
|
890
889
|
const connectionsDir = fs.path.join(solutionDir, "resources", "solution_folder", "connection");
|
|
891
890
|
if (!await fs.exists(connectionsDir)) {
|
|
892
891
|
return 0;
|
|
@@ -895,15 +894,15 @@ async function patchConnectionOverwrites(config, organizationName, solutionId, s
|
|
|
895
894
|
const connectionResources = (await Promise.all(connectorDirs.map(async (connectorDir) => {
|
|
896
895
|
const connectorPath = fs.path.join(connectionsDir, connectorDir);
|
|
897
896
|
const stat = await fs.stat(connectorPath);
|
|
898
|
-
if (!stat
|
|
897
|
+
if (!stat?.isDirectory())
|
|
899
898
|
return [];
|
|
900
899
|
const files = await fs.readdir(connectorPath);
|
|
901
900
|
const results = await Promise.all(files.filter((file) => file.endsWith(".json")).map(async (file) => {
|
|
902
901
|
const filePath = fs.path.join(connectorPath, file);
|
|
903
|
-
const [readErr, content] = await
|
|
902
|
+
const [readErr, content] = await catchError2(fs.readFile(filePath, "utf-8"));
|
|
904
903
|
if (readErr || !content)
|
|
905
904
|
return;
|
|
906
|
-
const [parseErr, parsed] =
|
|
905
|
+
const [parseErr, parsed] = catchError2(() => JSON.parse(content));
|
|
907
906
|
if (parseErr || parsed.resource?.kind !== "connection")
|
|
908
907
|
return;
|
|
909
908
|
return parsed;
|
|
@@ -924,7 +923,7 @@ async function patchConnectionOverwrites(config, organizationName, solutionId, s
|
|
|
924
923
|
const validResources = connectionResources.filter((cr) => cr.resource.key && cr.resource.type);
|
|
925
924
|
let successCount = 0;
|
|
926
925
|
for (const cr of validResources) {
|
|
927
|
-
const [err] = await
|
|
926
|
+
const [err] = await catchError2(studioWebPost(config, organizationName, apiPath, {
|
|
928
927
|
kind: "connection",
|
|
929
928
|
type: cr.resource.type,
|
|
930
929
|
key: cr.resource.key,
|
|
@@ -939,6 +938,6 @@ async function patchConnectionOverwrites(config, organizationName, solutionId, s
|
|
|
939
938
|
return successCount;
|
|
940
939
|
}
|
|
941
940
|
|
|
942
|
-
export {
|
|
941
|
+
export { FpsPropertiesInjectionError2, injectInlineAgentProcessEntries2, injectSolutionProjectProcessEntries2, extractStartEventId2, getPersonalFolderKey2, getPersonalFolderInfo2, DebugProvisioningFailedError2, prepareForCustomDebug2, getFolderInfoById2, beginDebugSession2, DEBUG_MODE_MAP2, SIMULATION_MODE_MAP2, createDebugInstance2, DebugPollTimeoutError2, buildPollTimeoutFailureOutput2, pollDebugInstanceStatus2, fetchDebugInstanceIncidents2, fetchDebugInstanceVariables2, isFaultedDebugStatus2, isSuccessfulDebugStatus2, resolveFaultIncidents2, buildStudioWebDesignerUrl2, uploadAndDebugSolution2, patchConnectionOverwrites2 };
|
|
943
942
|
|
|
944
|
-
//# debugId=
|
|
943
|
+
//# debugId=4F257430BC4AD4B564756E2164756E21
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/services/expression-namespaces.ts
|
|
2
|
+
var EXPRESSION_NAMESPACES = new Set([
|
|
3
|
+
"bindings",
|
|
4
|
+
"datafabric",
|
|
5
|
+
"outputs",
|
|
6
|
+
"result",
|
|
7
|
+
"this",
|
|
8
|
+
"vars",
|
|
9
|
+
"iterator",
|
|
10
|
+
"metadata",
|
|
11
|
+
"orchestrator",
|
|
12
|
+
"instanceglobals",
|
|
13
|
+
"runtime",
|
|
14
|
+
"senderinfo"
|
|
15
|
+
]);
|
|
16
|
+
var isExpressionNamespace = (name) => EXPRESSION_NAMESPACES.has(name.trim().toLowerCase());
|
|
17
|
+
|
|
18
|
+
export { EXPRESSION_NAMESPACES, isExpressionNamespace };
|
|
19
|
+
|
|
20
|
+
//# debugId=D693ACF3CD15D5C464756E2164756E21
|