@uipath/case-tool 1.205.0-preview.277 → 1.206.0-preview.279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-zy1snze0.js → case-debug-solution-projects-zhnn53e5.js} +3 -7
- package/dist/{case-debug-studio-web-service-tp28gt75.js → case-debug-studio-web-service-fvj41xrq.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-g5fpq7xa.js → case-validate-service-4zdx7d2w.js} +234 -170
- package/dist/connector-enrichment-service-mws6z0hw.js +56 -0
- package/dist/connector-library-1yw5r47w.js +99 -0
- package/dist/connector-lookup-service-0t7ydz3t.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/{index-5dxh9z60.js → index-a7y7etmy.js} +6 -5
- package/dist/{index-ekwtgx7y.js → index-ec115v05.js} +309 -287
- package/dist/{connector-task-spec-jpsjxnas.js → index-n4g6qvab.js} +320 -144
- 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-sgpbvm8j.js +26 -0
- package/dist/index-t0sz0svn.js +35 -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-tr5m22nb.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-scc247gk.js → packager-tool-32792w66.js} +66 -82
- 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-4avchhz8.js +539 -0
- package/dist/{packager-tool-29br2cdx.js → packager-tool-4wn3b7qp.js} +252 -468
- package/dist/{packager-tool-jr8x285x.js → packager-tool-5jt5rc2g.js} +630 -689
- 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-bpkkg4z2.js +295 -0
- 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-gt3bsmfp.js +1302 -0
- 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-kz7zz79p.js +71 -0
- package/dist/{packager-tool-9e59z4d6.js → packager-tool-me8gd22q.js} +82 -83
- package/dist/packager-tool-mk9fmzdy.js +20 -0
- package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
- package/dist/{packager-tool-xm3gr7d4.js → packager-tool-nd312sma.js} +32 -15
- 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-g8nkdj5b.js → packager-tool-x1f8ypvs.js} +256 -486
- 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-k9kw8d9b.js → resourcesSyncService-sgnkcvpt.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-phvwaj6j.js → sdd-resolve-siblings-5q28qcw8.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-82kcr49v.js → trigger-enrichment-service-r4gmxvka.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-95bqb0tb.js +0 -65
- package/dist/connector-lookup-service-3qx1qwrx.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-04w3bbe8.js +0 -666
- package/dist/index-kmp9fmhb.js +0 -25
- package/dist/index-m93xazb6.js +0 -282
- 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-ewkg1pgk.js +0 -57
- package/dist/packager-tool-0fsh78kt.js +0 -5365
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-6z1hsm2h.js +0 -143
- package/dist/packager-tool-8y4pceec.js +0 -13189
- 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-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/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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BINDINGS_V2_FILE_NAME2,
|
|
3
|
+
CONNECTION_ID_PROPERTY2,
|
|
4
|
+
FOLDER_KEY_PROPERTY2,
|
|
5
|
+
serializeBindingsV2File2,
|
|
6
|
+
readBindingsV2Resources2,
|
|
7
|
+
diffBindingsV22,
|
|
8
|
+
hasBindingsV2Difference2
|
|
9
|
+
} from "./packager-tool-kz7zz79p.js";
|
|
10
|
+
import"./packager-tool-68648y3j.js";
|
|
11
|
+
import {
|
|
12
|
+
BINDINGS_VERSION
|
|
13
|
+
} from "./packager-tool-h2ar8xf8.js";
|
|
14
|
+
import"./packager-tool-psmb758n.js";
|
|
15
|
+
import"./packager-tool-z070caqq.js";
|
|
16
|
+
export {
|
|
17
|
+
BINDINGS_V2_FILE_NAME2 as BINDINGS_V2_FILE_NAME,
|
|
18
|
+
CONNECTION_ID_PROPERTY2 as CONNECTION_ID_PROPERTY,
|
|
19
|
+
FOLDER_KEY_PROPERTY2 as FOLDER_KEY_PROPERTY,
|
|
20
|
+
BINDINGS_VERSION as RESOURCE_BINDINGS_VERSION,
|
|
21
|
+
diffBindingsV22 as diffBindingsV2,
|
|
22
|
+
hasBindingsV2Difference2 as hasBindingsV2Difference,
|
|
23
|
+
readBindingsV2Resources2 as readBindingsV2Resources,
|
|
24
|
+
serializeBindingsV2File2 as serializeBindingsV2File
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//# debugId=09293FF597AB9C6864756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
2
|
+
AUTH_CANCELLED_ERROR_CODE2
|
|
3
|
+
} from "./packager-tool-q26hncjr.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./packager-tool-
|
|
7
|
-
import"./packager-tool-1yh8g550.js";
|
|
5
|
+
getGlobalThis
|
|
6
|
+
} from "./packager-tool-z9fmqtm6.js";
|
|
8
7
|
|
|
9
8
|
// ../auth/src/strategies/browser-strategy.ts
|
|
10
9
|
class BrowserAuthStrategy {
|
|
@@ -67,7 +66,7 @@ class BrowserAuthStrategy {
|
|
|
67
66
|
const err = new Error(`Authentication was cancelled.
|
|
68
67
|
|
|
69
68
|
` + "The sign-in was cancelled before completing the login process. " + "Please try again and complete the authentication flow.");
|
|
70
|
-
err.code =
|
|
69
|
+
err.code = AUTH_CANCELLED_ERROR_CODE2;
|
|
71
70
|
reject(err);
|
|
72
71
|
popup.close();
|
|
73
72
|
};
|
|
@@ -96,4 +95,4 @@ export {
|
|
|
96
95
|
BrowserAuthStrategy
|
|
97
96
|
};
|
|
98
97
|
|
|
99
|
-
//# debugId=
|
|
98
|
+
//# debugId=6DA120A5D148296564756E2164756E21
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__require
|
|
3
|
-
} from "./packager-tool-1yh8g550.js";
|
|
4
|
-
|
|
5
1
|
// src/services/business-rule-export.ts
|
|
6
2
|
async function readBusinessRuleEntryPointAsync(entry) {
|
|
7
|
-
const { getSolutionAuthContext } = await import("./solution-auth-
|
|
3
|
+
const { getSolutionAuthContext } = await import("./solution-auth-a1p22hq1.js");
|
|
8
4
|
const {
|
|
9
5
|
createResourceBuilderServices,
|
|
10
6
|
exportResourceDefinitionAsync,
|
|
11
7
|
getRemoteResourceClients,
|
|
12
8
|
readSpecEntryPoints,
|
|
13
9
|
toCatalogReference
|
|
14
|
-
} = await import("./index-
|
|
10
|
+
} = await import("./index-ec115v05.js");
|
|
15
11
|
await getSolutionAuthContext({});
|
|
16
12
|
const { importer } = getRemoteResourceClients(await createResourceBuilderServices());
|
|
17
13
|
const folder = entry.folders?.[0];
|
|
@@ -28,4 +24,4 @@ export {
|
|
|
28
24
|
readBusinessRuleEntryPointAsync
|
|
29
25
|
};
|
|
30
26
|
|
|
31
|
-
//# debugId=
|
|
27
|
+
//# debugId=FEC58D6B3748539164756E2164756E21
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import"./packager-tool-1wgav5ma.js";
|
|
2
|
+
import"./packager-tool-yh8mmj3p.js";
|
|
3
|
+
import"./packager-tool-fcektt1g.js";
|
|
4
|
+
import"./packager-tool-z070caqq.js";
|
|
5
|
+
import {
|
|
6
|
+
catchError2
|
|
7
|
+
} from "./packager-tool-psmb758n.js";
|
|
8
|
+
import {
|
|
9
|
+
carryCaseRoles,
|
|
10
|
+
carryCanvasNotes
|
|
11
|
+
} from "./packager-tool-388vyja1.js";
|
|
12
|
+
import"./packager-tool-5w0gjcck.js";
|
|
13
|
+
|
|
14
|
+
// src/services/sdd-convert/previous-plan.ts
|
|
15
|
+
var readPlanAt = async (out) => {
|
|
16
|
+
const { getFileSystemAsync } = await import("./index-21kns9qg.js");
|
|
17
|
+
const fs = await getFileSystemAsync();
|
|
18
|
+
if (!await fs.exists(out))
|
|
19
|
+
return { plan: undefined };
|
|
20
|
+
const [readError, text] = await catchError2(fs.readFile(out, "utf-8"));
|
|
21
|
+
if (readError || typeof text !== "string")
|
|
22
|
+
return {
|
|
23
|
+
error: `Could not read the plan at ${out} to keep what the Case Designer saved in it: ${readError?.message ?? "it read as empty"}`
|
|
24
|
+
};
|
|
25
|
+
if (text.trim() === "")
|
|
26
|
+
return { plan: undefined };
|
|
27
|
+
const json = text.replace(/^\uFEFF/, "");
|
|
28
|
+
const [parseError, plan] = await catchError2(Promise.resolve().then(() => JSON.parse(json)));
|
|
29
|
+
if (parseError)
|
|
30
|
+
return {
|
|
31
|
+
error: `The plan at ${out} is not valid JSON, so what the Case Designer saved in it cannot be kept: ${parseError.message}`
|
|
32
|
+
};
|
|
33
|
+
return { plan };
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// src/services/sdd-convert/carry-forward.ts
|
|
37
|
+
var carryFromPlanAt = async (document, out, unresolved, declaredPersonas = []) => {
|
|
38
|
+
const previous = await readPlanAt(out);
|
|
39
|
+
if ("error" in previous)
|
|
40
|
+
return previous;
|
|
41
|
+
if (previous.plan === undefined)
|
|
42
|
+
return { notes: 0, roles: 0 };
|
|
43
|
+
return {
|
|
44
|
+
notes: carryCanvasNotes(document, previous.plan, unresolved),
|
|
45
|
+
roles: carryCaseRoles(document, previous.plan, unresolved, declaredPersonas)
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
carryFromPlanAt
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
//# debugId=8BA915212A6E28F764756E2164756E21
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
+
import"./packager-tool-z070caqq.js";
|
|
2
|
+
import {
|
|
3
|
+
catchError2,
|
|
4
|
+
OutputFormatter
|
|
5
|
+
} from "./packager-tool-psmb758n.js";
|
|
1
6
|
import {
|
|
2
7
|
JobsApi,
|
|
3
8
|
ReleasesApi,
|
|
4
9
|
createOrchestratorConfig,
|
|
5
10
|
resolveFolder
|
|
6
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-0te1tyhf.js";
|
|
12
|
+
import"./packager-tool-q26hncjr.js";
|
|
13
|
+
import"./packager-tool-dn9d4ywm.js";
|
|
7
14
|
import {
|
|
8
15
|
parseJsonInputOrFile
|
|
9
|
-
} from "./packager-tool-
|
|
10
|
-
import"./packager-tool-
|
|
11
|
-
import"./packager-tool-yn33pw57.js";
|
|
12
|
-
import"./packager-tool-0gctz400.js";
|
|
13
|
-
import"./packager-tool-qa9gftnj.js";
|
|
14
|
-
import"./packager-tool-yc4kw997.js";
|
|
15
|
-
import {
|
|
16
|
-
OutputFormatter,
|
|
17
|
-
catchError
|
|
18
|
-
} from "./packager-tool-83v804p7.js";
|
|
19
|
-
import"./packager-tool-hdxtgckw.js";
|
|
20
|
-
import"./packager-tool-1yh8g550.js";
|
|
16
|
+
} from "./packager-tool-zbx189j3.js";
|
|
17
|
+
import"./packager-tool-q9fnx278.js";
|
|
21
18
|
|
|
22
19
|
// src/services/http-client.ts
|
|
23
20
|
function buildCommonHeaders(config, options) {
|
|
@@ -60,6 +57,7 @@ async function orchestratorGet(config, path) {
|
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
// src/services/case-api.ts
|
|
60
|
+
var RELEASES_PAGE_SIZE = 100;
|
|
63
61
|
async function listCaseProcesses(config, filter) {
|
|
64
62
|
const organizationUnitId = await resolveOrganizationUnitId(config);
|
|
65
63
|
const sdkConfig = await createOrchestratorConfig({
|
|
@@ -79,10 +77,19 @@ async function listCaseProcesses(config, filter) {
|
|
|
79
77
|
filters.push(filter);
|
|
80
78
|
}
|
|
81
79
|
const filterQuery = filters.length > 0 ? filters.join(" and ") : undefined;
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
const all = [];
|
|
81
|
+
for (let skip = 0;; skip += RELEASES_PAGE_SIZE) {
|
|
82
|
+
const response = await releasesApi.releasesGet({
|
|
83
|
+
$filter: filterQuery,
|
|
84
|
+
$orderby: "Name asc",
|
|
85
|
+
$top: RELEASES_PAGE_SIZE,
|
|
86
|
+
$skip: skip
|
|
87
|
+
});
|
|
88
|
+
const page = response.value || [];
|
|
89
|
+
all.push(...page);
|
|
90
|
+
if (page.length < RELEASES_PAGE_SIZE)
|
|
91
|
+
return all;
|
|
92
|
+
}
|
|
86
93
|
}
|
|
87
94
|
async function getCaseEntryPoints(config) {
|
|
88
95
|
const organizationUnitId = await resolveOrganizationUnitId(config);
|
|
@@ -125,7 +132,7 @@ async function startCaseJob(config) {
|
|
|
125
132
|
}
|
|
126
133
|
return response.value[0];
|
|
127
134
|
}
|
|
128
|
-
async function getCaseTraces(config, traceId) {
|
|
135
|
+
async function getCaseTraces(config, traceId, organizationUnitId) {
|
|
129
136
|
if (!config.tenantId) {
|
|
130
137
|
throw new Error("Tenant ID is required for Traces API. Please ensure you're logged in properly.");
|
|
131
138
|
}
|
|
@@ -136,8 +143,8 @@ async function getCaseTraces(config, traceId) {
|
|
|
136
143
|
"Content-Type": "application/json",
|
|
137
144
|
Accept: "application/json"
|
|
138
145
|
};
|
|
139
|
-
if (
|
|
140
|
-
headers["X-UIPATH-OrganizationUnitId"] =
|
|
146
|
+
if (organizationUnitId) {
|
|
147
|
+
headers["X-UIPATH-OrganizationUnitId"] = organizationUnitId.toString();
|
|
141
148
|
}
|
|
142
149
|
if (process.env.DEBUG) {
|
|
143
150
|
OutputFormatter.log({ Message: `DEBUG GET TRACES: ${url}` });
|
|
@@ -170,8 +177,8 @@ async function getCaseTraces(config, traceId) {
|
|
|
170
177
|
}
|
|
171
178
|
function spanToTraceEvent(span) {
|
|
172
179
|
let attributes = {};
|
|
173
|
-
const [parseError, parsed] =
|
|
174
|
-
if (!parseError) {
|
|
180
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(span.Attributes));
|
|
181
|
+
if (!parseError && parsed !== null && typeof parsed === "object") {
|
|
175
182
|
attributes = parsed;
|
|
176
183
|
}
|
|
177
184
|
const duration = span.EndTime ? new Date(span.EndTime).getTime() - new Date(span.StartTime).getTime() : undefined;
|
|
@@ -196,13 +203,14 @@ async function streamJobTraces(config, jobKey, options = {}) {
|
|
|
196
203
|
const startTime = Date.now();
|
|
197
204
|
const pollInterval = options.pollInterval || 2000;
|
|
198
205
|
const maxPolls = options.maxPolls || 300;
|
|
199
|
-
const traceId = jobKey;
|
|
206
|
+
const traceId = options.traceId ?? jobKey;
|
|
200
207
|
let pollCount = 0;
|
|
201
208
|
const seenSpanIds = new Set;
|
|
202
209
|
let tracesFound = false;
|
|
203
|
-
const [outerError, outerResult] = await
|
|
210
|
+
const [outerError, outerResult] = await catchError2((async () => {
|
|
211
|
+
const organizationUnitId = await resolveOrganizationUnitId(config);
|
|
204
212
|
while (pollCount < maxPolls) {
|
|
205
|
-
const [tracesError, fetchedSpans] = await
|
|
213
|
+
const [tracesError, fetchedSpans] = await catchError2(getCaseTraces(config, traceId, organizationUnitId));
|
|
206
214
|
let spans = [];
|
|
207
215
|
if (tracesError) {
|
|
208
216
|
if (tracesError instanceof Error && (tracesError.message.includes("404") || tracesError.message.includes("400"))) {
|
|
@@ -234,7 +242,7 @@ async function streamJobTraces(config, jobKey, options = {}) {
|
|
|
234
242
|
}
|
|
235
243
|
const processRunSpan = spans.find((s) => s.SpanType === "ProcessRun");
|
|
236
244
|
if (processRunSpan) {
|
|
237
|
-
const [parseError, attributes] =
|
|
245
|
+
const [parseError, attributes] = catchError2(() => JSON.parse(processRunSpan.Attributes));
|
|
238
246
|
if (parseError || !attributes) {
|
|
239
247
|
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
|
240
248
|
pollCount++;
|
|
@@ -313,7 +321,7 @@ async function resolveOrganizationUnitId(config) {
|
|
|
313
321
|
return folder.id;
|
|
314
322
|
}
|
|
315
323
|
async function validateCaseInputs(config, inputs) {
|
|
316
|
-
const
|
|
324
|
+
const validationResult = await (async () => {
|
|
317
325
|
const entryPoints = await getCaseEntryPoints(config);
|
|
318
326
|
if (entryPoints.length === 0) {
|
|
319
327
|
return {
|
|
@@ -352,21 +360,14 @@ async function validateCaseInputs(config, inputs) {
|
|
|
352
360
|
valid: errors.length === 0,
|
|
353
361
|
errors: errors.length > 0 ? errors : undefined
|
|
354
362
|
};
|
|
355
|
-
})()
|
|
356
|
-
if (error) {
|
|
357
|
-
return {
|
|
358
|
-
valid: false,
|
|
359
|
-
errors: [
|
|
360
|
-
`Failed to validate inputs: ${error instanceof Error ? error.message : String(error)}`
|
|
361
|
-
]
|
|
362
|
-
};
|
|
363
|
-
}
|
|
363
|
+
})();
|
|
364
364
|
return validationResult;
|
|
365
365
|
}
|
|
366
366
|
async function parseCaseInputs(inputSource) {
|
|
367
367
|
return await parseJsonInputOrFile(inputSource);
|
|
368
368
|
}
|
|
369
369
|
export {
|
|
370
|
+
RELEASES_PAGE_SIZE,
|
|
370
371
|
getCaseEntryPoints,
|
|
371
372
|
getJobStatusDetailed,
|
|
372
373
|
listCaseProcesses,
|
|
@@ -378,4 +379,4 @@ export {
|
|
|
378
379
|
validateCaseInputs
|
|
379
380
|
};
|
|
380
381
|
|
|
381
|
-
//# debugId=
|
|
382
|
+
//# debugId=98BEA38F292D6C4764756E2164756E21
|
|
@@ -1,25 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
FOLDER_KEY_PROPERTY,
|
|
5
|
-
RESOURCE_BINDINGS_VERSION,
|
|
6
|
-
deriveEventTriggerResources,
|
|
7
|
-
diffBindingsV2,
|
|
8
|
-
hasBindingsV2Difference,
|
|
9
|
-
readBindingsV2Resources,
|
|
10
|
-
readEntryPointIds,
|
|
11
|
-
serializeBindingsV2File
|
|
12
|
-
} from "./packager-tool-wekqkmgn.js";
|
|
13
|
-
import"./packager-tool-5qp9xza1.js";
|
|
2
|
+
getFileSystem2
|
|
3
|
+
} from "./packager-tool-z070caqq.js";
|
|
14
4
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./packager-tool-
|
|
5
|
+
catchError2
|
|
6
|
+
} from "./packager-tool-psmb758n.js";
|
|
17
7
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
roleDescriptionOf,
|
|
9
|
+
caseStageLabels,
|
|
10
|
+
liveStageIdsOf,
|
|
11
|
+
roleDeploys,
|
|
12
|
+
readCaseRoles
|
|
13
|
+
} from "./packager-tool-1wgav5ma.js";
|
|
14
|
+
import {
|
|
15
|
+
BINDINGS_VERSION
|
|
16
|
+
} from "./packager-tool-h2ar8xf8.js";
|
|
17
|
+
import {
|
|
18
|
+
BINDINGS_V2_FILE_NAME2,
|
|
19
|
+
CONNECTION_ID_PROPERTY2,
|
|
20
|
+
FOLDER_KEY_PROPERTY2,
|
|
21
|
+
serializeBindingsV2File2,
|
|
22
|
+
readBindingsV2Resources2,
|
|
23
|
+
diffBindingsV22,
|
|
24
|
+
hasBindingsV2Difference2
|
|
25
|
+
} from "./packager-tool-kz7zz79p.js";
|
|
26
|
+
import {
|
|
27
|
+
readEntryPointIds2,
|
|
28
|
+
deriveEventTriggerResources2
|
|
29
|
+
} from "./packager-tool-gy4yjqhf.js";
|
|
30
|
+
import"./packager-tool-68648y3j.js";
|
|
21
31
|
|
|
22
32
|
// src/services/case-bindings-service.ts
|
|
33
|
+
var ROLE_RESOURCE = "Role";
|
|
34
|
+
var roleEntries = (document) => {
|
|
35
|
+
const roles = readCaseRoles(document);
|
|
36
|
+
if (roles.length === 0)
|
|
37
|
+
return [];
|
|
38
|
+
const stages = caseStageLabels(document.nodes);
|
|
39
|
+
const entries = [];
|
|
40
|
+
const seen = new Set;
|
|
41
|
+
for (const role of roles) {
|
|
42
|
+
if (!roleDeploys(role, stages))
|
|
43
|
+
continue;
|
|
44
|
+
if (seen.has(role.name))
|
|
45
|
+
continue;
|
|
46
|
+
seen.add(role.name);
|
|
47
|
+
const labels = liveStageIdsOf(role, stages).map((stageId) => stages.get(stageId));
|
|
48
|
+
entries.push({
|
|
49
|
+
resource: ROLE_RESOURCE,
|
|
50
|
+
key: roleBindingKey(role, labels.length),
|
|
51
|
+
value: { name: { defaultValue: role.name } },
|
|
52
|
+
metadata: {
|
|
53
|
+
displayName: role.name,
|
|
54
|
+
description: roleDescriptionOf(role),
|
|
55
|
+
BindingsVersion: BINDINGS_VERSION,
|
|
56
|
+
...role.scope === "stages" && { Stages: labels }
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return entries;
|
|
61
|
+
};
|
|
62
|
+
var roleBindingKey = (role, stageCount) => `${role.name}-${role.scope === "case" ? "case" : `stages-${stageCount}`}`;
|
|
23
63
|
var asBinding = (value) => {
|
|
24
64
|
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
25
65
|
return;
|
|
@@ -134,17 +174,17 @@ var attributeDefault = (group, attribute) => group.find((binding) => binding.pro
|
|
|
134
174
|
var connectionEntry = (group, connectorKeys) => {
|
|
135
175
|
const key = group[0].resourceKey;
|
|
136
176
|
const use = group.map((binding) => connectorKeys.get(binding.id)).find((found) => found !== undefined);
|
|
137
|
-
const displayLabel = (group.find((binding) => binding.propertyAttribute ===
|
|
177
|
+
const displayLabel = (group.find((binding) => binding.propertyAttribute === CONNECTION_ID_PROPERTY2) ?? group[0]).name;
|
|
138
178
|
const value = {
|
|
139
|
-
[
|
|
140
|
-
defaultValue: attributeDefault(group,
|
|
179
|
+
[CONNECTION_ID_PROPERTY2]: {
|
|
180
|
+
defaultValue: attributeDefault(group, CONNECTION_ID_PROPERTY2) ?? key,
|
|
141
181
|
isExpression: false,
|
|
142
182
|
...typeof displayLabel === "string" && displayLabel !== "" && { displayName: displayLabel }
|
|
143
183
|
}
|
|
144
184
|
};
|
|
145
|
-
const folderKey = attributeDefault(group,
|
|
185
|
+
const folderKey = attributeDefault(group, FOLDER_KEY_PROPERTY2);
|
|
146
186
|
if (folderKey !== undefined) {
|
|
147
|
-
value[
|
|
187
|
+
value[FOLDER_KEY_PROPERTY2] = { defaultValue: folderKey };
|
|
148
188
|
}
|
|
149
189
|
return {
|
|
150
190
|
resource: CONNECTION_RESOURCE,
|
|
@@ -155,7 +195,7 @@ var connectionEntry = (group, connectorKeys) => {
|
|
|
155
195
|
...use?.activityName !== undefined && {
|
|
156
196
|
ActivityName: use.activityName
|
|
157
197
|
},
|
|
158
|
-
BindingsVersion:
|
|
198
|
+
BindingsVersion: BINDINGS_VERSION,
|
|
159
199
|
...typeof displayLabel === "string" && displayLabel !== "" && { DisplayLabel: displayLabel },
|
|
160
200
|
UseConnectionService: "true",
|
|
161
201
|
...use !== undefined && { Connector: use.connectorKey }
|
|
@@ -164,7 +204,12 @@ var connectionEntry = (group, connectorKeys) => {
|
|
|
164
204
|
};
|
|
165
205
|
var SLOT_DISPLAY_NAMES = {
|
|
166
206
|
app: { name: "App name", folderPath: "Folder path" },
|
|
167
|
-
process: { name: "Process name", folderPath: "Folder path" }
|
|
207
|
+
process: { name: "Process name", folderPath: "Folder path" },
|
|
208
|
+
ixpDeployment: {
|
|
209
|
+
name: "name",
|
|
210
|
+
folderPath: "Folder path",
|
|
211
|
+
solutionsSupport: false
|
|
212
|
+
}
|
|
168
213
|
};
|
|
169
214
|
var designerResourceEntry = (group, labels, names) => {
|
|
170
215
|
const key = group[0].resourceKey;
|
|
@@ -195,9 +240,11 @@ var designerResourceEntry = (group, labels, names) => {
|
|
|
195
240
|
value,
|
|
196
241
|
metadata: {
|
|
197
242
|
...activityName !== undefined && { ActivityName: activityName },
|
|
198
|
-
BindingsVersion:
|
|
243
|
+
BindingsVersion: BINDINGS_VERSION,
|
|
199
244
|
DisplayLabel: NAME_ATTRIBUTE,
|
|
200
|
-
|
|
245
|
+
...names.solutionsSupport !== false && {
|
|
246
|
+
SolutionsSupport: "true"
|
|
247
|
+
},
|
|
201
248
|
...subType !== undefined && { subType }
|
|
202
249
|
}
|
|
203
250
|
};
|
|
@@ -227,7 +274,7 @@ var resourceEntry = (group, labels = new Map) => {
|
|
|
227
274
|
if (folderPath !== undefined) {
|
|
228
275
|
value.folderPath = { defaultValue: folderPath };
|
|
229
276
|
}
|
|
230
|
-
const folderKey = attributeDefault(group,
|
|
277
|
+
const folderKey = attributeDefault(group, FOLDER_KEY_PROPERTY2);
|
|
231
278
|
if (folderKey !== undefined)
|
|
232
279
|
value.folderKey = { defaultValue: folderKey };
|
|
233
280
|
const subType = group.find((binding) => binding.resourceSubType !== undefined)?.resourceSubType;
|
|
@@ -236,7 +283,7 @@ var resourceEntry = (group, labels = new Map) => {
|
|
|
236
283
|
key,
|
|
237
284
|
value,
|
|
238
285
|
metadata: {
|
|
239
|
-
BindingsVersion:
|
|
286
|
+
BindingsVersion: BINDINGS_VERSION,
|
|
240
287
|
...subType !== undefined && { subType }
|
|
241
288
|
}
|
|
242
289
|
};
|
|
@@ -331,23 +378,24 @@ var deriveCaseBindingsV2 = (document, entryPointIds = new Map) => {
|
|
|
331
378
|
});
|
|
332
379
|
const identity = (entry) => bindingIdentity(entry.resource, entry.key);
|
|
333
380
|
const merged = new Set(derived.map(identity));
|
|
334
|
-
const triggerEntries =
|
|
381
|
+
const triggerEntries = deriveEventTriggerResources2(document.nodes, bindings, entryPointIds).filter((entry) => !merged.has(identity(entry)));
|
|
335
382
|
for (const entry of triggerEntries)
|
|
336
383
|
merged.add(identity(entry));
|
|
337
384
|
return [
|
|
338
385
|
...derived,
|
|
339
386
|
...triggerEntries,
|
|
340
|
-
...[...stored.values()].filter((entry) => !merged.has(identity(entry)))
|
|
387
|
+
...[...stored.values()].filter((entry) => !merged.has(identity(entry))),
|
|
388
|
+
...roleEntries(document)
|
|
341
389
|
];
|
|
342
390
|
};
|
|
343
391
|
var bindingsV2PathFor = (casePlanPath) => {
|
|
344
|
-
const fs =
|
|
345
|
-
return fs.path.join(fs.path.dirname(fs.path.resolve(casePlanPath)),
|
|
392
|
+
const fs = getFileSystem2();
|
|
393
|
+
return fs.path.join(fs.path.dirname(fs.path.resolve(casePlanPath)), BINDINGS_V2_FILE_NAME2);
|
|
346
394
|
};
|
|
347
395
|
var compareCaseBindingsV2 = async (casePlanPath, document) => {
|
|
348
|
-
const fs =
|
|
396
|
+
const fs = getFileSystem2();
|
|
349
397
|
const path = bindingsV2PathFor(casePlanPath);
|
|
350
|
-
const entryPoints = await
|
|
398
|
+
const entryPoints = await readEntryPointIds2(casePlanPath);
|
|
351
399
|
if ("error" in entryPoints) {
|
|
352
400
|
return {
|
|
353
401
|
status: "entry-points-unreadable",
|
|
@@ -360,17 +408,17 @@ var compareCaseBindingsV2 = async (casePlanPath, document) => {
|
|
|
360
408
|
const expectedCount = expected.length;
|
|
361
409
|
if (!await fs.exists(path))
|
|
362
410
|
return { status: "absent", path, expectedCount };
|
|
363
|
-
const [readError, raw] = await
|
|
411
|
+
const [readError, raw] = await catchError2(fs.readFile(path, "utf-8"));
|
|
364
412
|
if (readError || raw == null)
|
|
365
413
|
return { status: "unreadable", path, expectedCount };
|
|
366
|
-
const actual =
|
|
414
|
+
const actual = readBindingsV2Resources2(raw);
|
|
367
415
|
if (actual === undefined)
|
|
368
416
|
return { status: "unreadable", path, expectedCount };
|
|
369
|
-
const difference =
|
|
370
|
-
return
|
|
417
|
+
const difference = diffBindingsV22(expected, actual);
|
|
418
|
+
return hasBindingsV2Difference2(difference) ? { status: "differs", path, expectedCount, difference } : { status: "match", path, expectedCount };
|
|
371
419
|
};
|
|
372
420
|
var syncCaseBindings = async (casePlanPath) => {
|
|
373
|
-
const fs =
|
|
421
|
+
const fs = getFileSystem2();
|
|
374
422
|
const resolved = fs.path.resolve(casePlanPath);
|
|
375
423
|
if (!await fs.exists(resolved)) {
|
|
376
424
|
return {
|
|
@@ -379,7 +427,7 @@ var syncCaseBindings = async (casePlanPath) => {
|
|
|
379
427
|
instructions: "Pass the path to an existing caseplan JSON file, for example 'uip maestro case bindings sync case.json'."
|
|
380
428
|
};
|
|
381
429
|
}
|
|
382
|
-
const [readError, raw] = await
|
|
430
|
+
const [readError, raw] = await catchError2(fs.readFile(resolved, "utf-8"));
|
|
383
431
|
if (readError || raw == null) {
|
|
384
432
|
return {
|
|
385
433
|
ok: false,
|
|
@@ -387,7 +435,7 @@ var syncCaseBindings = async (casePlanPath) => {
|
|
|
387
435
|
instructions: `Verify read permissions on ${resolved}.`
|
|
388
436
|
};
|
|
389
437
|
}
|
|
390
|
-
const [parseError, document] =
|
|
438
|
+
const [parseError, document] = catchError2(() => JSON.parse(raw));
|
|
391
439
|
if (parseError || document == null || typeof document !== "object" || Array.isArray(document)) {
|
|
392
440
|
return {
|
|
393
441
|
ok: false,
|
|
@@ -395,7 +443,7 @@ var syncCaseBindings = async (casePlanPath) => {
|
|
|
395
443
|
instructions: `Verify the contents of ${resolved}.`
|
|
396
444
|
};
|
|
397
445
|
}
|
|
398
|
-
const entryPoints = await
|
|
446
|
+
const entryPoints = await readEntryPointIds2(resolved);
|
|
399
447
|
if ("error" in entryPoints) {
|
|
400
448
|
return {
|
|
401
449
|
ok: false,
|
|
@@ -405,7 +453,7 @@ var syncCaseBindings = async (casePlanPath) => {
|
|
|
405
453
|
}
|
|
406
454
|
const resources = deriveCaseBindingsV2(document, entryPoints.ids);
|
|
407
455
|
const path = bindingsV2PathFor(resolved);
|
|
408
|
-
const [writeError] = await
|
|
456
|
+
const [writeError] = await catchError2(fs.writeFile(path, serializeBindingsV2File2(resources)));
|
|
409
457
|
if (writeError) {
|
|
410
458
|
return {
|
|
411
459
|
ok: false,
|
|
@@ -421,10 +469,10 @@ var syncCaseBindings = async (casePlanPath) => {
|
|
|
421
469
|
};
|
|
422
470
|
};
|
|
423
471
|
export {
|
|
472
|
+
bindingIdentity,
|
|
424
473
|
bindingsV2PathFor,
|
|
425
474
|
compareCaseBindingsV2,
|
|
426
|
-
deriveCaseBindingsV2,
|
|
427
475
|
syncCaseBindings
|
|
428
476
|
};
|
|
429
477
|
|
|
430
|
-
//# debugId=
|
|
478
|
+
//# debugId=B294578EFB32B17D64756E2164756E21
|
package/dist/{case-debug-solution-projects-zy1snze0.js → case-debug-solution-projects-zhnn53e5.js}
RENAMED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__require
|
|
3
|
-
} from "./packager-tool-1yh8g550.js";
|
|
4
|
-
|
|
5
1
|
// src/services/case-debug-solution-projects.ts
|
|
6
2
|
var caseSolutionProjects = async (solutionDir, uploaded, solutionId) => {
|
|
7
|
-
const { readSolutionAt } = await import("./index-
|
|
3
|
+
const { readSolutionAt } = await import("./index-t0sz0svn.js");
|
|
8
4
|
const context = await readSolutionAt(solutionDir);
|
|
9
5
|
if (context === null)
|
|
10
6
|
return [];
|
|
11
|
-
const { readLocalResourcesForType } = await import("./localSolutionDiscovery-
|
|
7
|
+
const { readLocalResourcesForType } = await import("./localSolutionDiscovery-48d1bnkj.js");
|
|
12
8
|
const rules = await readLocalResourcesForType(context, "businessRule");
|
|
13
9
|
const descriptors = [];
|
|
14
10
|
for (const rule of rules) {
|
|
@@ -31,4 +27,4 @@ export {
|
|
|
31
27
|
caseSolutionProjects
|
|
32
28
|
};
|
|
33
29
|
|
|
34
|
-
//# debugId=
|
|
30
|
+
//# debugId=55ACEDDF923A9BB564756E2164756E21
|