@uipath/case-tool 1.204.0 → 1.205.0-preview.258
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 +24 -11
- package/dist/{authoring-6ckkzfc9.js → authoring-kqh34zzm.js} +49 -30
- package/dist/{business-rule-export-kg5bk8aw.js → business-rule-export-ey588rv7.js} +2 -2
- package/dist/canvas-notes-86fxx1t8.js +19 -0
- package/dist/{case-api-rvamfn02.js → case-api-sme7esce.js} +6 -6
- package/dist/case-bindings-service-cht20gqt.js +430 -0
- package/dist/case-debug-solution-projects-h3w2nx0a.js +34 -0
- package/dist/{case-debug-studio-web-service-xxfesw4v.js → case-debug-studio-web-service-3mkrtaet.js} +16 -10
- package/dist/{case-described-io-service-14hdnqcc.js → case-described-io-service-dx1f4nxe.js} +37 -11
- package/dist/case-event-trigger-bindings-g9ftnm4x.js +16 -0
- package/dist/{case-format-service-yb48785t.js → case-format-service-6aew6tqc.js} +2 -2
- package/dist/{case-pack-service-9185h6ez.js → case-pack-service-pqq8wnfd.js} +6 -6
- package/dist/case-schema-version-h820ne16.js +20 -0
- package/dist/{case-shape-reader-mw58avr0.js → case-shape-reader-dsbraetf.js} +1 -1
- package/dist/{case-splice-service-tkmb7xjp.js → case-splice-service-s5gccctq.js} +53 -8
- package/dist/{case-validate-service-c84e2bhv.js → case-validate-service-rey6btew.js} +128 -42
- package/dist/{connector-enrichment-service-hfv0kwht.js → connector-enrichment-service-crqs2216.js} +23 -20
- package/dist/{connector-lookup-service-whgjceyj.js → connector-lookup-service-dwv8q5eh.js} +6 -6
- package/dist/connector-task-shape-mpazkf7s.js +14 -0
- package/dist/{connector-task-spec-k0cwavrm.js → connector-task-spec-trs4tcb3.js} +196 -40
- package/dist/{de-MUJPA4EB-dpg7t2rw.js → de-UZI7FJDO-mwvc4cxe.js} +29 -2
- package/dist/{de-FGHEJRCI-rv513mfh.js → de-WLW6KWOJ-2qnsqdtw.js} +238 -31
- package/dist/{debug-service-ch3v6jmm.js → debug-service-7q98j726.js} +3 -3
- package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
- package/dist/{en-FBPVNKFN-dqt573xn.js → en-EJCBA3LK-dtpdghgj.js} +12 -4
- package/dist/{en-BWGKA5OE-1qkvb9rn.js → en-M7GQYBV2-5nfmpnfz.js} +88 -6
- package/dist/{enrichment-service-3f1kygjs.js → enrichment-service-hv7ff88p.js} +56 -12
- package/dist/{es-7SE7HX2X-8yh1aj2y.js → es-4UBUTCQA-m1ytpyx2.js} +29 -2
- package/dist/{es-KR3ZSNMP-84zphx0x.js → es-5THCNRFN-tqwyrdgy.js} +235 -28
- package/dist/{es-MX-2MYFZU7X-3rek4r73.js → es-MX-5RELIXKI-9jhqtddc.js} +29 -2
- package/dist/{es-MX-XXZJGC4R-2mr8jtgm.js → es-MX-TWZBRAXK-gqd9swzw.js} +237 -30
- package/dist/filter-engine-7ep90g7f.js +11 -0
- package/dist/{fr-Y6NPVODW-8vr1ja4b.js → fr-CERONSRC-edpxhbmb.js} +237 -30
- package/dist/{fr-MDFKNZ4C-h4a122k9.js → fr-VBM5WRC2-63z7w4mh.js} +29 -2
- package/dist/index-332n0kxj.js +282 -0
- package/dist/{index-wmffgzmr.js → index-5dxh9z60.js} +21751 -11098
- package/dist/{index-aw2gqqat.js → index-a2fvrrth.js} +4 -4
- package/dist/{index-4yanx3rn.js → index-ekwtgx7y.js} +1089 -218
- package/dist/{index-ng2f77my.js → index-fyc0k5dd.js} +985 -617
- package/dist/index-n9qvnx4x.js +29 -0
- package/dist/{index-hhsf00x8.js → index-ngs0a2he.js} +1 -1
- package/dist/{index-j2r3jb6c.js → index-xq6ajhgq.js} +2 -2
- package/dist/index.js +12 -12
- package/dist/init-entry-points-hhpv3e3f.js +98 -0
- package/dist/{input-reader-1tcqt27f.js → input-reader-c7wz8ra2.js} +3 -3
- package/dist/{ja-UTQEAP34-8e0q6swp.js → ja-43QL7CGO-c3q8gre9.js} +29 -2
- package/dist/{ja-Q5PXKJ2V-p4msxzjd.js → ja-U2MCNHGT-gz0ap1jk.js} +235 -28
- package/dist/{known-types-0h9kqwyy.js → known-types-jvkdgmzz.js} +5 -4
- package/dist/{ko-AXCHW2OK-askct7f6.js → ko-TLL6Z6CD-wrt3n8a9.js} +29 -2
- package/dist/{ko-AYBDSRZG-41mdmsg1.js → ko-XAUYQWDR-zp81gjp4.js} +237 -30
- package/dist/localSolutionDiscovery-yyx234ak.js +13 -0
- package/dist/migration-diagnosis-ns5cw4e3.js +99 -0
- package/dist/{node-strategy-5pz40tee.js → node-strategy-v442hwgd.js} +1 -1
- package/dist/node-sync-service-1wkcyn1n.js +57 -0
- package/dist/out-target-wjgmna0r.js +111 -0
- package/dist/{packager-tool-85q4f3pq.js → packager-tool-1pcmxqny.js} +3 -3
- package/dist/{packager-tool-8a9yqfq7.js → packager-tool-1yfw674x.js} +4 -2
- package/dist/{packager-tool-pdhhzfr5.js → packager-tool-29x6vran.js} +296 -417
- package/dist/packager-tool-2sn7d8fd.js +41 -0
- package/dist/packager-tool-4p11fvf4.js +92 -0
- package/dist/{packager-tool-25hng8h4.js → packager-tool-4rtktkhv.js} +16211 -13084
- package/dist/{packager-tool-yfm83bzd.js → packager-tool-67vy1fz3.js} +4 -3
- package/dist/{packager-tool-d88rqwk8.js → packager-tool-6z1hsm2h.js} +13 -5
- package/dist/packager-tool-7hw344bt.js +107 -0
- package/dist/{packager-tool-3q3d1hk8.js → packager-tool-83v804p7.js} +56 -6
- package/dist/{packager-tool-00y70spr.js → packager-tool-87y6xw3a.js} +2 -1
- package/dist/packager-tool-93mdeqay.js +18 -0
- package/dist/{packager-tool-64rg5ekd.js → packager-tool-9e59z4d6.js} +75 -7
- package/dist/{packager-tool-vepqrsse.js → packager-tool-9kf3fqtr.js} +2 -2
- package/dist/packager-tool-9kvkzc05.js +74 -0
- package/dist/{packager-tool-s6619wtx.js → packager-tool-9sd483vs.js} +2 -2
- package/dist/{packager-tool-f78ntj5g.js → packager-tool-9y1w2wds.js} +51 -6
- package/dist/packager-tool-a17g0pj1.js +62 -0
- package/dist/{packager-tool-167qap9m.js → packager-tool-aagnvyba.js} +845 -38
- package/dist/{packager-tool-0p6dbsp0.js → packager-tool-c5q10254.js} +5 -5
- package/dist/{packager-tool-wj9d9mqe.js → packager-tool-e15kqpyh.js} +12 -13
- package/dist/{packager-tool-c31qx8kc.js → packager-tool-ezds6t5e.js} +2 -2
- package/dist/{packager-tool-d3zvghjd.js → packager-tool-f2z2dscy.js} +308 -120
- package/dist/{packager-tool-hvzjm2nk.js → packager-tool-f8vwy92w.js} +2093 -5805
- package/dist/{packager-tool-rgpdaxbx.js → packager-tool-gx2cer6a.js} +5385 -1098
- package/dist/{packager-tool-xdxr3ync.js → packager-tool-hdxtgckw.js} +11 -1
- package/dist/{packager-tool-mr149jsw.js → packager-tool-k5cpxdm4.js} +17 -7
- package/dist/packager-tool-k6jbedyc.js +69 -0
- package/dist/packager-tool-kdhey8gz.js +153 -0
- package/dist/{packager-tool-cenvh23g.js → packager-tool-kyrm4e5m.js} +718 -87
- package/dist/packager-tool-mqy97y5f.js +52 -0
- package/dist/{packager-tool-jfysbxdt.js → packager-tool-mzf4gmph.js} +4 -4
- package/dist/packager-tool-n7w9wx62.js +25 -0
- package/dist/{packager-tool-7q6z6npd.js → packager-tool-pcvhcn2k.js} +93 -11
- package/dist/packager-tool-r0x3qh59.js +307 -0
- package/dist/{packager-tool-w1b5pyj6.js → packager-tool-r6b5ktzb.js} +730 -14
- package/dist/{packager-tool-zbrda9sn.js → packager-tool-rk25wp3c.js} +1 -1
- package/dist/{packager-tool-xcd87qyx.js → packager-tool-v2kcgjbf.js} +2 -3
- package/dist/{case-bindings-service-d9vezn69.js → packager-tool-wekqkmgn.js} +20 -231
- package/dist/packager-tool-yct6zp4m.js +335 -0
- package/dist/{packager-tool-kpqr938m.js → packager-tool-ydyvtknp.js} +26 -3
- package/dist/{packager-tool-v99ygh9f.js → packager-tool-yn33pw57.js} +124 -58
- package/dist/{packager-tool-4rqd21wc.js → packager-tool-yn7r7zq2.js} +19 -5
- package/dist/{packager-tool-cmwets3m.js → packager-tool-zf8f9pmm.js} +1 -1
- package/dist/packager-tool.js +3 -3
- package/dist/{project-artifacts-rng5m6r2.js → project-artifacts-bgyyb0dm.js} +1 -1
- package/dist/{pt-BR-TKHNHMET-sn91xyq0.js → pt-BR-GNQNAAZ2-xadharv4.js} +237 -30
- package/dist/{pt-BR-Y6K6XHXK-mp3hwhw1.js → pt-BR-USP2T7GD-pedn77m1.js} +29 -2
- package/dist/{pt-3DIO5QWG-59b3f4bc.js → pt-RMIAKZB4-67enhx3m.js} +29 -2
- package/dist/{pt-ROXU257Y-2f6bxev4.js → pt-TO2DARY2-ftcce1bv.js} +237 -30
- package/dist/{resolved-check-p99hysaw.js → resolved-check-aqw7568y.js} +1 -1
- package/dist/{resourcesSyncService-zwjyp1qx.js → resourcesSyncService-d302jnap.js} +32 -170
- package/dist/{ro-BWR3ONRR-vzx3hy8a.js → ro-GHOBYW2S-mhnqsgaa.js} +29 -2
- package/dist/{ro-AVAWPKOO-b89pw79r.js → ro-WUYJV6OW-a8d9qy1n.js} +235 -28
- package/dist/{sdd-convert-service-vf0ps358.js → sdd-convert-service-8jpew7vz.js} +686 -445
- package/dist/{sdd-lookup-dwzpvvwn.js → sdd-lookup-fe900sdb.js} +2 -2
- package/dist/{sdd-resolve-service-mjqad2nn.js → sdd-resolve-service-qdtmxw9b.js} +38 -13
- package/dist/sdd-resolve-siblings-6kfxc2t6.js +53 -0
- package/dist/{solution-auth-kddmbm0p.js → solution-auth-30yycqtv.js} +3 -3
- package/dist/solution-discovery-g6ksnrg1.js +38 -0
- package/dist/{strict-case-rules-tz37bspw.js → strict-case-rules-4tjcaznr.js} +3 -2
- package/dist/{strict-entry-points-v14d7y50.js → strict-entry-points-g2pd4mf4.js} +29 -1
- package/dist/{strict-sdd-audit-4aqdeh59.js → strict-sdd-audit-q7tb9yj7.js} +7 -5
- package/dist/task-type-declaration-7a8fqdvs.js +46 -0
- package/dist/tool.js +12 -12
- package/dist/{tr-5IIHSFW5-hw4cewew.js → tr-GDTLECMM-k5fhmq13.js} +29 -2
- package/dist/{tr-JMIP7ZSL-c39b6pe4.js → tr-M3F5A6AU-bb0tg39m.js} +235 -28
- package/dist/{trigger-enrichment-service-g3vt051f.js → trigger-enrichment-service-sj0p2d1j.js} +23 -20
- package/dist/trigger-entry-point-id-yhqwnkx9.js +15 -0
- package/dist/{zh-CN-IFFXSEJS-9wm9gmrv.js → zh-CN-C5G4PC7C-ds9gkptg.js} +235 -28
- package/dist/{zh-CN-R2KU4U5L-tc1hat59.js → zh-CN-I5D7WHBD-sr5h0a98.js} +29 -2
- package/dist/{zh-TW-GNKMELBF-j674515r.js → zh-TW-2AVLM723-288pkc1z.js} +29 -2
- package/dist/{zh-TW-IYBNYAMG-8727c7v2.js → zh-TW-62HZIG6O-787kdwex.js} +234 -27
- package/package.json +2 -2
- package/dist/migration-diagnosis-ag2sgd1e.js +0 -71
- package/dist/node-sync-service-2tfrgbjs.js +0 -36
- package/dist/out-target-jakehnd3.js +0 -70
- package/dist/packager-tool-57pzrd0g.js +0 -32
- package/dist/packager-tool-dthjwajc.js +0 -13
- package/dist/packager-tool-xy04yy0v.js +0 -32
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import"./packager-tool-1yh8g550.js";
|
|
2
|
-
|
|
3
|
-
// src/services/migration-diagnosis.ts
|
|
4
|
-
var LEGACY_NODE_TYPES = [
|
|
5
|
-
"case-management:Trigger",
|
|
6
|
-
"case-management:Stage",
|
|
7
|
-
"case-management:ExceptionStage",
|
|
8
|
-
"case-management:StickyNote"
|
|
9
|
-
];
|
|
10
|
-
var asRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
|
|
11
|
-
var discriminatorNodeTypes = (migrationError, parsed) => {
|
|
12
|
-
if (!migrationError.includes("discriminator"))
|
|
13
|
-
return [];
|
|
14
|
-
const nodes = Array.isArray(parsed.nodes) ? parsed.nodes : [];
|
|
15
|
-
const offending = new Set;
|
|
16
|
-
for (const raw of nodes) {
|
|
17
|
-
const type = asRecord(raw)?.type;
|
|
18
|
-
if (typeof type !== "string" || type === "")
|
|
19
|
-
continue;
|
|
20
|
-
if (LEGACY_NODE_TYPES.includes(type))
|
|
21
|
-
continue;
|
|
22
|
-
offending.add(type);
|
|
23
|
-
}
|
|
24
|
-
return [...offending];
|
|
25
|
-
};
|
|
26
|
-
var legacySpellingFor = (type) => {
|
|
27
|
-
const lower = type.toLowerCase();
|
|
28
|
-
if (lower.includes("exception"))
|
|
29
|
-
return "case-management:ExceptionStage";
|
|
30
|
-
if (lower.includes("stickynote") || lower.includes("sticky"))
|
|
31
|
-
return "case-management:StickyNote";
|
|
32
|
-
if (lower.includes("trigger"))
|
|
33
|
-
return "case-management:Trigger";
|
|
34
|
-
if (lower.includes("stage"))
|
|
35
|
-
return "case-management:Stage";
|
|
36
|
-
return;
|
|
37
|
-
};
|
|
38
|
-
var diagnoseMigrationFailure = (parsed, migrationError, validate) => {
|
|
39
|
-
const offending = discriminatorNodeTypes(migrationError, parsed);
|
|
40
|
-
if (offending.length === 0)
|
|
41
|
-
return;
|
|
42
|
-
const probe = JSON.parse(JSON.stringify(parsed));
|
|
43
|
-
const nodes = Array.isArray(probe.nodes) ? probe.nodes : [];
|
|
44
|
-
let rewrote = false;
|
|
45
|
-
for (const raw of nodes) {
|
|
46
|
-
const node = asRecord(raw);
|
|
47
|
-
const type = node?.type;
|
|
48
|
-
if (node === undefined || typeof type !== "string")
|
|
49
|
-
continue;
|
|
50
|
-
if (!offending.includes(type))
|
|
51
|
-
continue;
|
|
52
|
-
const legacy = legacySpellingFor(type);
|
|
53
|
-
if (legacy === undefined)
|
|
54
|
-
continue;
|
|
55
|
-
node.type = legacy;
|
|
56
|
-
rewrote = true;
|
|
57
|
-
}
|
|
58
|
-
if (!rewrote)
|
|
59
|
-
return { offending, typeIsTheBlocker: false };
|
|
60
|
-
const result = validate(JSON.stringify(probe));
|
|
61
|
-
if (result.valid)
|
|
62
|
-
return { offending, typeIsTheBlocker: true };
|
|
63
|
-
const remaining = result.migrationError ?? result.issues.map((issue) => `${issue.path}: ${issue.message}`)[0];
|
|
64
|
-
return { offending, typeIsTheBlocker: false, remainingError: remaining };
|
|
65
|
-
};
|
|
66
|
-
export {
|
|
67
|
-
diagnoseMigrationFailure,
|
|
68
|
-
discriminatorNodeTypes
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
//# debugId=13AF90FEA78DE82564756E2164756E21
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getNode,
|
|
3
|
-
getNodeEnriched,
|
|
4
|
-
listNodes,
|
|
5
|
-
pullNodes,
|
|
6
|
-
pullRemoteNodes,
|
|
7
|
-
searchNodeSummariesWithAvailability,
|
|
8
|
-
searchNodes,
|
|
9
|
-
searchNodesWithFilters
|
|
10
|
-
} from "./packager-tool-pdhhzfr5.js";
|
|
11
|
-
import"./packager-tool-c31qx8kc.js";
|
|
12
|
-
import"./packager-tool-w1b5pyj6.js";
|
|
13
|
-
import"./packager-tool-25hng8h4.js";
|
|
14
|
-
import"./packager-tool-7q6z6npd.js";
|
|
15
|
-
import"./packager-tool-sc961w0q.js";
|
|
16
|
-
import"./packager-tool-d88rqwk8.js";
|
|
17
|
-
import"./packager-tool-jysvpt8p.js";
|
|
18
|
-
import"./packager-tool-v99ygh9f.js";
|
|
19
|
-
import"./packager-tool-0gctz400.js";
|
|
20
|
-
import"./packager-tool-qa9gftnj.js";
|
|
21
|
-
import"./packager-tool-yc4kw997.js";
|
|
22
|
-
import"./packager-tool-3q3d1hk8.js";
|
|
23
|
-
import"./packager-tool-xdxr3ync.js";
|
|
24
|
-
import"./packager-tool-1yh8g550.js";
|
|
25
|
-
export {
|
|
26
|
-
getNode,
|
|
27
|
-
getNodeEnriched,
|
|
28
|
-
listNodes,
|
|
29
|
-
pullNodes,
|
|
30
|
-
pullRemoteNodes,
|
|
31
|
-
searchNodeSummariesWithAvailability,
|
|
32
|
-
searchNodes,
|
|
33
|
-
searchNodesWithFilters
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
//# debugId=A4EC89E9001237BE64756E2164756E21
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
byCodeUnit
|
|
3
|
-
} from "./packager-tool-5qp9xza1.js";
|
|
4
|
-
import {
|
|
5
|
-
catchError
|
|
6
|
-
} from "./packager-tool-3q3d1hk8.js";
|
|
7
|
-
import"./packager-tool-xdxr3ync.js";
|
|
8
|
-
import"./packager-tool-1yh8g550.js";
|
|
9
|
-
|
|
10
|
-
// src/services/sdd-convert/out-target.ts
|
|
11
|
-
var isCaseProject = async (fs, dir) => {
|
|
12
|
-
const [error, text] = await catchError(fs.readFile(fs.path.join(dir, "project.uiproj"), "utf-8"));
|
|
13
|
-
if (error || typeof text !== "string")
|
|
14
|
-
return false;
|
|
15
|
-
const [parseError, parsed] = await catchError(Promise.resolve().then(() => JSON.parse(text)));
|
|
16
|
-
if (parseError || typeof parsed !== "object" || parsed === null) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
return parsed.ProjectType === "CaseManagement";
|
|
20
|
-
};
|
|
21
|
-
var projectsBelowOut = async (fs, out) => {
|
|
22
|
-
if (fs.path.basename(out) !== "caseplan.json")
|
|
23
|
-
return [];
|
|
24
|
-
const dir = fs.path.dirname(out);
|
|
25
|
-
if (await isCaseProject(fs, dir))
|
|
26
|
-
return [];
|
|
27
|
-
const [error, entries] = await catchError(fs.readdir(dir));
|
|
28
|
-
if (error || entries === undefined)
|
|
29
|
-
return [];
|
|
30
|
-
const found = [];
|
|
31
|
-
for (const entry of [...entries].sort(byCodeUnit)) {
|
|
32
|
-
const candidate = fs.path.join(dir, entry);
|
|
33
|
-
const [statError, stat] = await catchError(fs.stat(candidate));
|
|
34
|
-
if (statError || stat?.isDirectory() !== true)
|
|
35
|
-
continue;
|
|
36
|
-
if (await isCaseProject(fs, candidate)) {
|
|
37
|
-
found.push(fs.path.join(candidate, fs.path.basename(out)));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return found;
|
|
41
|
-
};
|
|
42
|
-
var shellArg = (value) => {
|
|
43
|
-
if (value.startsWith("-") || /["$`%]/.test(value))
|
|
44
|
-
return;
|
|
45
|
-
return /^[\w@+=:,./-]+$/.test(value) ? value : `"${value}"`;
|
|
46
|
-
};
|
|
47
|
-
var correctedConvert = (file, out, resolved) => {
|
|
48
|
-
const quotedFile = shellArg(file);
|
|
49
|
-
const quotedOut = shellArg(out);
|
|
50
|
-
const quotedResolved = resolved === undefined ? undefined : shellArg(resolved);
|
|
51
|
-
if (quotedFile === undefined || quotedOut === undefined)
|
|
52
|
-
return;
|
|
53
|
-
if (resolved !== undefined && quotedResolved === undefined) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
return [
|
|
57
|
-
"uip maestro case sdd convert",
|
|
58
|
-
quotedFile,
|
|
59
|
-
...quotedResolved === undefined ? [] : ["--resolved", quotedResolved],
|
|
60
|
-
"--out",
|
|
61
|
-
quotedOut
|
|
62
|
-
].join(" ");
|
|
63
|
-
};
|
|
64
|
-
export {
|
|
65
|
-
correctedConvert,
|
|
66
|
-
projectsBelowOut,
|
|
67
|
-
shellArg
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
//# debugId=0F5C46010ED4CEAB64756E2164756E21
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
loadCaseSchemaAsync
|
|
3
|
-
} from "./packager-tool-cmwets3m.js";
|
|
4
|
-
|
|
5
|
-
// src/services/case-schema-version.ts
|
|
6
|
-
var MIN_SUPPORTED_MAJOR = 20;
|
|
7
|
-
async function resolveCaseSchemaVersion() {
|
|
8
|
-
const { LATEST_CASE_SCHEMA_VERSION } = await loadCaseSchemaAsync();
|
|
9
|
-
if (parseCaseSchemaVersion(LATEST_CASE_SCHEMA_VERSION) === null) {
|
|
10
|
-
throw new Error(`@uipath/case-schema exports a LATEST_CASE_SCHEMA_VERSION that is not "<major>.<minor>.<patch>": ${String(LATEST_CASE_SCHEMA_VERSION)}`);
|
|
11
|
-
}
|
|
12
|
-
return LATEST_CASE_SCHEMA_VERSION;
|
|
13
|
-
}
|
|
14
|
-
function parseCaseSchemaVersion(version) {
|
|
15
|
-
if (typeof version !== "string")
|
|
16
|
-
return null;
|
|
17
|
-
const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(version);
|
|
18
|
-
if (!match)
|
|
19
|
-
return null;
|
|
20
|
-
return {
|
|
21
|
-
major: Number.parseInt(match[1], 10),
|
|
22
|
-
minor: Number.parseInt(match[2], 10),
|
|
23
|
-
patch: Number.parseInt(match[3], 10)
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function compareCaseSchemaVersions(a, b) {
|
|
27
|
-
return a.major - b.major || a.minor - b.minor || a.patch - b.patch;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { MIN_SUPPORTED_MAJOR, resolveCaseSchemaVersion, parseCaseSchemaVersion, compareCaseSchemaVersions };
|
|
31
|
-
|
|
32
|
-
//# debugId=11DAE5CFC88DAB2564756E2164756E21
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// src/services/connector-task-types.ts
|
|
2
|
-
var CONNECTOR_TASK_TYPES = new Set([
|
|
3
|
-
"execute-connector-activity",
|
|
4
|
-
"wait-for-connector"
|
|
5
|
-
]);
|
|
6
|
-
var SERVICE_TYPE_BY_TASK = {
|
|
7
|
-
"execute-connector-activity": "Intsvc.ActivityExecution",
|
|
8
|
-
"wait-for-connector": "Intsvc.WaitForEvent"
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { CONNECTOR_TASK_TYPES, SERVICE_TYPE_BY_TASK };
|
|
12
|
-
|
|
13
|
-
//# debugId=5E05EF2E4B85DEA864756E2164756E21
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
catchError
|
|
3
|
-
} from "./packager-tool-3q3d1hk8.js";
|
|
4
|
-
|
|
5
|
-
// src/services/business-rule-outputs.ts
|
|
6
|
-
var DECISION_KEYED_SCHEMA_KEY = "x-uipath-decision-keyed";
|
|
7
|
-
function flattenDecisionKeyedSchema(output) {
|
|
8
|
-
const schema = typeof output === "string" ? catchError(() => JSON.parse(output))[1] : output;
|
|
9
|
-
if (!schema || typeof schema !== "object" || schema[DECISION_KEYED_SCHEMA_KEY] !== true) {
|
|
10
|
-
return output;
|
|
11
|
-
}
|
|
12
|
-
const { properties, definitions, $defs } = schema;
|
|
13
|
-
if (!properties || Object.keys(properties).length === 0) {
|
|
14
|
-
return output;
|
|
15
|
-
}
|
|
16
|
-
const columns = Object.create(null);
|
|
17
|
-
for (const decision of Object.values(properties)) {
|
|
18
|
-
for (const [name, column] of Object.entries(decision.properties ?? {})) {
|
|
19
|
-
columns[name] ??= column;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return {
|
|
23
|
-
type: "object",
|
|
24
|
-
properties: columns,
|
|
25
|
-
...definitions ? { definitions } : {},
|
|
26
|
-
...$defs ? { $defs } : {}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { flattenDecisionKeyedSchema };
|
|
31
|
-
|
|
32
|
-
//# debugId=C54007C256101CD364756E2164756E21
|