@yuku123/z-cognition-component 2.0.0 → 2.0.1
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-lib/ApartmentOutlined-M6qSurnE.js +12 -0
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
- package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
- package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
- package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
- package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
- package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
- package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
- package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
- package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
- package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
- package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
- package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
- package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
- package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
- package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
- package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
- package/dist-lib/Skeleton-DXcERb5r.js +557 -0
- package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
- package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
- package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
- package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
- package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
- package/dist-lib/{agents-DS0rPJGV.js → agents-mAJW3cEN.js} +46 -46
- package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
- package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
- package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
- package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
- package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
- package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
- package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
- package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
- package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
- package/dist-lib/callSuper-DZEfdkXG.js +7 -0
- package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
- package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
- package/dist-lib/colors-sdAcAcU3.js +24 -0
- package/dist-lib/context-Buz0ggsK.js +710 -0
- package/dist-lib/context-DpmyNOn3.js +21 -0
- package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
- package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
- package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
- package/dist-lib/{detail-Xtof0GoK.js → detail-Cfb-zdr9.js} +50 -49
- package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.js} +89 -88
- package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
- package/dist-lib/{downloads-Dj4DgBSS.js → downloads-MkyxiHxi.js} +4 -3
- package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
- package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
- package/dist-lib/embed-DwLg9RDW.js +31148 -0
- package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.js} +15 -14
- package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
- package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
- package/dist-lib/index-9aQ4BzIK.js +500 -0
- package/dist-lib/index-B57Fj7Y0.js +1169 -0
- package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
- package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
- package/dist-lib/index-Bc-Vin3j.js +256 -0
- package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
- package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
- package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
- package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
- package/dist-lib/index-Cfu1W1H6.js +535 -0
- package/dist-lib/index-CrMcNEAZ.js +9656 -0
- package/dist-lib/index-Cy9i4Kx7.js +699 -0
- package/dist-lib/index-CyKWCYMK.js +218 -0
- package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
- package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
- package/dist-lib/index-DBtGE89a.js +168 -0
- package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
- package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
- package/dist-lib/index-DjFPRXl5.js +1484 -0
- package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
- package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
- package/dist-lib/index-DvWHYX81.js +450 -0
- package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
- package/dist-lib/index-Vu6sPBci.js +1884 -0
- package/dist-lib/index-bOY1cBol.js +4890 -0
- package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
- package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
- package/dist-lib/index-nQSVLWfW.js +356 -0
- package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
- package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
- package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
- package/dist-lib/index.js +3 -1
- package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
- package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-BNoIhw6B.js} +71 -71
- package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
- package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
- package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
- package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.js} +181 -177
- package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
- package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
- package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
- package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
- package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
- package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
- package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
- package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
- package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
- package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
- package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
- package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
- package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
- package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
- package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
- package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
- package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
- package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
- package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
- package/dist-lib/pages-CsexFuEz.js +73 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
- package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
- package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
- package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
- package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
- package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
- package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
- package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
- package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
- package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
- package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
- package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
- package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
- package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
- package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
- package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
- package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
- package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
- package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
- package/dist-lib/useClosable-BY7FgWKy.js +59 -0
- package/dist-lib/useForm-Byp1LopG.js +145 -0
- package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
- package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
- package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
- package/package.json +2 -3
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
- package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
- package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
- package/dist-lib/Skeleton-CxFsInYI.js +0 -671
- package/dist-lib/Table-Civ838nE.js +0 -20514
- package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist-lib/callSuper-CwIeyYoc.js +0 -7
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
- package/dist-lib/context-T27uno74.js +0 -54
- package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
- package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
- package/dist-lib/index-0TvzCTD7.js +0 -2336
- package/dist-lib/index-4tbtbcAt.js +0 -550
- package/dist-lib/index-B1wh6i1C.js +0 -1308
- package/dist-lib/index-BVgdmf6r.js +0 -2487
- package/dist-lib/index-CSnvcFg-.js +0 -543
- package/dist-lib/index-D35Ry0PG.js +0 -1162
- package/dist-lib/index-DC57_dnh.js +0 -604
- package/dist-lib/index-DQ16Zb7x.js +0 -546
- package/dist-lib/index-DRcTwC17.js +0 -418
- package/dist-lib/index-Dd9pPAT3.js +0 -2192
- package/dist-lib/index-DxzorPvG.js +0 -13960
- package/dist-lib/index-If4xc1-H.js +0 -559
- package/dist-lib/index-R71k3nB_.js +0 -710
- package/dist-lib/index-mUlorJxp.js +0 -3279
- package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
- package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
- package/dist-lib/pages-CticGC6S.js +0 -512
- package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
|
@@ -0,0 +1,660 @@
|
|
|
1
|
+
import { I as B, _ as K } from "./SearchOutlined-puH6bCY6.js";
|
|
2
|
+
import * as _ from "react";
|
|
3
|
+
import { t as x, r as T, C as V } from "./embed-DwLg9RDW.js";
|
|
4
|
+
var X = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, name: "info-circle", theme: "outlined" }, U = function(s, o) {
|
|
5
|
+
return /* @__PURE__ */ _.createElement(B, K({}, s, {
|
|
6
|
+
ref: o,
|
|
7
|
+
icon: X
|
|
8
|
+
}));
|
|
9
|
+
}, q = /* @__PURE__ */ _.forwardRef(U);
|
|
10
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "InfoCircleOutlined");
|
|
11
|
+
const H = /^[A-Za-z][A-Za-z0-9_]{0,63}$/, b = /^[A-Z][A-Za-z0-9_]{0,63}$/, S = "__src_vid";
|
|
12
|
+
function w(e, s) {
|
|
13
|
+
const o = (e ?? []).map((i) => i.trim()).filter(Boolean), a = Array.from(new Set(o));
|
|
14
|
+
return a.length > 0 ? a : [s];
|
|
15
|
+
}
|
|
16
|
+
function se(e, s) {
|
|
17
|
+
return w(e.typeTargets[s], s);
|
|
18
|
+
}
|
|
19
|
+
function te(e, s) {
|
|
20
|
+
return w(e.edgeTargets[s], s);
|
|
21
|
+
}
|
|
22
|
+
function oe(e, s) {
|
|
23
|
+
const o = new Set(e);
|
|
24
|
+
if (!o.has(s))
|
|
25
|
+
return s;
|
|
26
|
+
let a = 2;
|
|
27
|
+
for (; o.has(`${s}${a}`); )
|
|
28
|
+
a += 1;
|
|
29
|
+
return `${s}${a}`;
|
|
30
|
+
}
|
|
31
|
+
function O(e) {
|
|
32
|
+
var t;
|
|
33
|
+
const s = /* @__PURE__ */ new Map();
|
|
34
|
+
for (const r of e.sourceTypes)
|
|
35
|
+
s.set(r, w(e.typeTargets[r], r));
|
|
36
|
+
const o = /* @__PURE__ */ new Map();
|
|
37
|
+
for (const [r, g] of s)
|
|
38
|
+
for (const l of g) {
|
|
39
|
+
const m = o.get(l) ?? [];
|
|
40
|
+
m.push(r), o.set(l, m);
|
|
41
|
+
}
|
|
42
|
+
const a = {};
|
|
43
|
+
for (const [r, g] of s) {
|
|
44
|
+
const l = g.filter((m) => !b.test(m));
|
|
45
|
+
l.length > 0 && (a[r] = l);
|
|
46
|
+
}
|
|
47
|
+
const i = [], d = [];
|
|
48
|
+
for (const [r, g] of o) {
|
|
49
|
+
if (g.length < 2)
|
|
50
|
+
continue;
|
|
51
|
+
if (g.some((m) => (s.get(m) ?? []).length > 1)) {
|
|
52
|
+
i.push(r);
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
d.push({ target: r, sources: g, mergeKey: ((t = e.mergeKeys[r]) == null ? void 0 : t.trim()) || void 0 });
|
|
56
|
+
}
|
|
57
|
+
return { rows: e.sourceTypes.map((r) => {
|
|
58
|
+
var n;
|
|
59
|
+
const g = s.get(r) ?? [r];
|
|
60
|
+
if (g.length > 1)
|
|
61
|
+
return { from: r, to: g, op: "SPLIT" };
|
|
62
|
+
const l = g[0];
|
|
63
|
+
return (o.get(l) ?? []).length > 1 ? {
|
|
64
|
+
from: r,
|
|
65
|
+
to: g,
|
|
66
|
+
op: "MERGE",
|
|
67
|
+
mergeKey: ((n = e.mergeKeys[l]) == null ? void 0 : n.trim()) || void 0
|
|
68
|
+
} : { from: r, to: g, op: l === r ? "DIRECT" : "RENAME" };
|
|
69
|
+
}), mergeGroups: d, invalidTargets: a, conflictedTargets: i };
|
|
70
|
+
}
|
|
71
|
+
function N(e) {
|
|
72
|
+
const s = /* @__PURE__ */ new Map();
|
|
73
|
+
for (const t of e.sourceEdges)
|
|
74
|
+
s.set(t, w(e.edgeTargets[t], t));
|
|
75
|
+
const o = /* @__PURE__ */ new Map();
|
|
76
|
+
for (const [t, r] of s)
|
|
77
|
+
for (const g of r) {
|
|
78
|
+
const l = o.get(g) ?? [];
|
|
79
|
+
l.push(t), o.set(g, l);
|
|
80
|
+
}
|
|
81
|
+
const a = {};
|
|
82
|
+
for (const [t, r] of s) {
|
|
83
|
+
const g = r.filter((l) => !b.test(l));
|
|
84
|
+
g.length > 0 && (a[t] = g);
|
|
85
|
+
}
|
|
86
|
+
const i = [], d = [];
|
|
87
|
+
for (const [t, r] of o) {
|
|
88
|
+
if (r.length < 2)
|
|
89
|
+
continue;
|
|
90
|
+
if (r.some((l) => (s.get(l) ?? []).length > 1)) {
|
|
91
|
+
i.push(t);
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
d.push({ target: t, sources: r });
|
|
95
|
+
}
|
|
96
|
+
return { rows: e.sourceEdges.map((t) => {
|
|
97
|
+
const r = s.get(t) ?? [t];
|
|
98
|
+
if (r.length > 1)
|
|
99
|
+
return { from: t, to: r, op: "SPLIT" };
|
|
100
|
+
const g = r[0];
|
|
101
|
+
return (o.get(g) ?? []).length > 1 ? { from: t, to: r, op: "MERGE" } : { from: t, to: r, op: g === t ? "DIRECT" : "RENAME" };
|
|
102
|
+
}), mergeGroups: d, invalidTargets: a, conflictedTargets: i };
|
|
103
|
+
}
|
|
104
|
+
function D(e, s) {
|
|
105
|
+
if (!s)
|
|
106
|
+
return [];
|
|
107
|
+
const o = new Set(e.sourceTypes), a = [];
|
|
108
|
+
for (const i of s.edges)
|
|
109
|
+
!i.srcTag || !i.dstTag || !o.has(i.srcTag) || !o.has(i.dstTag) || a.includes(i.edgeName) || a.push(i.edgeName);
|
|
110
|
+
return a;
|
|
111
|
+
}
|
|
112
|
+
function L(e, s, o) {
|
|
113
|
+
const a = new Set(e.sourceTypes), i = [], d = /* @__PURE__ */ new Set();
|
|
114
|
+
for (const c of s)
|
|
115
|
+
for (const t of (o == null ? void 0 : o.edges) ?? []) {
|
|
116
|
+
if (t.edgeName !== c || !t.srcTag || !t.dstTag)
|
|
117
|
+
continue;
|
|
118
|
+
const r = `${c}|${t.srcTag}|${t.dstTag}`;
|
|
119
|
+
if (d.has(r))
|
|
120
|
+
continue;
|
|
121
|
+
d.add(r);
|
|
122
|
+
const g = a.has(t.srcTag) && a.has(t.dstTag), l = [];
|
|
123
|
+
if (g)
|
|
124
|
+
for (const m of w(e.typeTargets[t.srcTag], t.srcTag))
|
|
125
|
+
for (const n of w(e.typeTargets[t.dstTag], t.dstTag))
|
|
126
|
+
l.some((u) => u.srcTag === m && u.dstTag === n) || l.push({ srcTag: m, dstTag: n });
|
|
127
|
+
i.push({ source: c, srcTag: t.srcTag, dstTag: t.dstTag, closed: g, targets: l });
|
|
128
|
+
}
|
|
129
|
+
return i;
|
|
130
|
+
}
|
|
131
|
+
function Z(e, s) {
|
|
132
|
+
if (!s)
|
|
133
|
+
return e;
|
|
134
|
+
const o = new Set(D(e, s)), a = e.sourceEdges.filter((g) => o.has(g)), i = {};
|
|
135
|
+
for (const [g, l] of Object.entries(e.edgeTargets))
|
|
136
|
+
a.includes(g) && (i[g] = l);
|
|
137
|
+
const d = new Set(
|
|
138
|
+
a.flatMap((g) => w(i[g], g))
|
|
139
|
+
), c = e.edgePairs ? Object.fromEntries(
|
|
140
|
+
Object.entries(e.edgePairs).filter(([g]) => d.has(g))
|
|
141
|
+
) : void 0, t = (e.droppedEdges ?? []).filter((g) => o.has(g));
|
|
142
|
+
return a.length === e.sourceEdges.length && Object.keys(i).length === Object.keys(e.edgeTargets).length && Object.keys(c ?? {}).length === Object.keys(e.edgePairs ?? {}).length && t.length === (e.droppedEdges ?? []).length ? e : {
|
|
143
|
+
...e,
|
|
144
|
+
sourceEdges: a,
|
|
145
|
+
edgeTargets: i,
|
|
146
|
+
droppedEdges: t,
|
|
147
|
+
...c !== void 0 ? { edgePairs: c } : {}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function G(e, s) {
|
|
151
|
+
var d;
|
|
152
|
+
const o = /* @__PURE__ */ new Map();
|
|
153
|
+
for (const c of e.sourceEdges)
|
|
154
|
+
for (const t of w(e.edgeTargets[c], c)) {
|
|
155
|
+
const r = o.get(t) ?? [];
|
|
156
|
+
r.includes(c) || r.push(c), o.set(t, r);
|
|
157
|
+
}
|
|
158
|
+
const a = new Set(
|
|
159
|
+
O(e).rows.flatMap((c) => c.to)
|
|
160
|
+
), i = [];
|
|
161
|
+
for (const [c, t] of o) {
|
|
162
|
+
const r = (d = e.edgePairs) == null ? void 0 : d[c], g = r ? r.filter((n) => a.has(n.srcTag) && a.has(n.dstTag)).map((n) => {
|
|
163
|
+
var u, p;
|
|
164
|
+
return {
|
|
165
|
+
...n,
|
|
166
|
+
srcField: ((u = n.srcField) == null ? void 0 : u.trim()) || S,
|
|
167
|
+
dstField: ((p = n.dstField) == null ? void 0 : p.trim()) || S
|
|
168
|
+
};
|
|
169
|
+
}) : k(e, t, s), m = t.some(
|
|
170
|
+
(n) => w(e.edgeTargets[n], n).length > 1
|
|
171
|
+
) ? "SPLIT" : t.length > 1 ? "MERGE" : c === t[0] ? "DIRECT" : "REMAP";
|
|
172
|
+
i.push({ target: c, sources: t, op: m, endpoints: g });
|
|
173
|
+
}
|
|
174
|
+
for (const c of e.customEdges ?? []) {
|
|
175
|
+
const t = c.target.trim();
|
|
176
|
+
!t || o.has(t) || i.push({
|
|
177
|
+
target: t,
|
|
178
|
+
sources: [],
|
|
179
|
+
op: "NEW",
|
|
180
|
+
endpoints: (c.endpoints ?? []).map((r) => {
|
|
181
|
+
var g, l;
|
|
182
|
+
return {
|
|
183
|
+
...r,
|
|
184
|
+
srcField: ((g = r.srcField) == null ? void 0 : g.trim()) || S,
|
|
185
|
+
dstField: ((l = r.dstField) == null ? void 0 : l.trim()) || S
|
|
186
|
+
};
|
|
187
|
+
})
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
return i;
|
|
191
|
+
}
|
|
192
|
+
function k(e, s, o) {
|
|
193
|
+
const a = [], i = /* @__PURE__ */ new Set();
|
|
194
|
+
for (const d of L(e, s, o))
|
|
195
|
+
for (const c of d.targets) {
|
|
196
|
+
const t = `${c.srcTag}|${c.dstTag}`;
|
|
197
|
+
i.has(t) || (i.add(t), a.push({
|
|
198
|
+
srcTag: c.srcTag,
|
|
199
|
+
dstTag: c.dstTag,
|
|
200
|
+
srcField: S,
|
|
201
|
+
dstField: S
|
|
202
|
+
}));
|
|
203
|
+
}
|
|
204
|
+
return a;
|
|
205
|
+
}
|
|
206
|
+
function re(e, s) {
|
|
207
|
+
const o = [];
|
|
208
|
+
H.test(e.scenarioCode.trim()) || o.push({
|
|
209
|
+
field: "scenarioCode",
|
|
210
|
+
message: "场景编码须以字母开头,仅含字母/数字/下划线,最长 64 位"
|
|
211
|
+
}), e.name.trim() || o.push({ field: "name", message: "请填写场景名称" }), e.sourceTypes.length === 0 && o.push({ field: "sourceTypes", message: "至少选择一个基础对象类型" });
|
|
212
|
+
const { rows: a, mergeGroups: i, invalidTargets: d, conflictedTargets: c } = O(e), t = N(e);
|
|
213
|
+
for (const [n, u] of Object.entries(d))
|
|
214
|
+
o.push({
|
|
215
|
+
field: "typeTargets",
|
|
216
|
+
message: `${n} 的目标类型名不合法:${u.join("、")};须以大写字母开头,仅含字母/数字/下划线`
|
|
217
|
+
});
|
|
218
|
+
for (const n of c)
|
|
219
|
+
o.push({
|
|
220
|
+
field: "typeTargets",
|
|
221
|
+
message: `目标类型 ${n} 同时被拆分源和其它源使用;拆分目标不能与其它源共用,请改用合并`
|
|
222
|
+
});
|
|
223
|
+
const r = new Set(e.sourceTypes);
|
|
224
|
+
for (const n of a)
|
|
225
|
+
for (const u of n.to) {
|
|
226
|
+
const p = a.some((E) => E.from === u && E.to.includes(u));
|
|
227
|
+
r.has(u) && !p && o.push({
|
|
228
|
+
field: "typeTargets",
|
|
229
|
+
message: `目标类型 ${u} 与基础类型重名,且该基础类型未映射到自身`
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
for (const n of i)
|
|
233
|
+
n.mergeKey || o.push({
|
|
234
|
+
field: "mergeKeys",
|
|
235
|
+
message: `合并组 ${n.target} 必须声明合并键(${n.sources.join("、")} 都需具备该属性)`
|
|
236
|
+
});
|
|
237
|
+
for (const [n, u] of Object.entries(t.invalidTargets))
|
|
238
|
+
o.push({
|
|
239
|
+
field: "edgeTargets",
|
|
240
|
+
message: `${n} 的目标关系名不合法:${u.join("、")};须以大写字母开头,仅含字母/数字/下划线`
|
|
241
|
+
});
|
|
242
|
+
for (const n of t.conflictedTargets)
|
|
243
|
+
o.push({
|
|
244
|
+
field: "edgeTargets",
|
|
245
|
+
message: `目标关系 ${n} 同时被拆分关系和其它关系使用;拆分目标不能与其它关系共用,请改用合并`
|
|
246
|
+
});
|
|
247
|
+
e.identityStrategy === "PRESERVE" && a.some((n) => n.op !== "DIRECT") && o.push({
|
|
248
|
+
field: "identity",
|
|
249
|
+
message: "存在重命名/合并/拆分,身份策略须使用目标类型前缀(PREFIX_TARGET_TAG)"
|
|
250
|
+
});
|
|
251
|
+
const g = new Set(a.flatMap((n) => n.to)), l = /* @__PURE__ */ new Set();
|
|
252
|
+
for (const n of e.sourceEdges)
|
|
253
|
+
for (const u of w(e.edgeTargets[n], n))
|
|
254
|
+
l.add(u);
|
|
255
|
+
const m = /* @__PURE__ */ new Set();
|
|
256
|
+
for (const n of e.customEdges ?? []) {
|
|
257
|
+
const u = n.target.trim();
|
|
258
|
+
if (!u) {
|
|
259
|
+
o.push({ field: "edgePairs", message: "新增关系缺少目标关系名" });
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
if (b.test(u) || o.push({
|
|
263
|
+
field: "edgePairs",
|
|
264
|
+
message: `新增关系名不合法:${u};须以大写字母开头,仅含字母/数字/下划线`
|
|
265
|
+
}), m.has(u)) {
|
|
266
|
+
o.push({ field: "edgePairs", message: `新增关系 ${u} 重复声明` });
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
if (m.add(u), l.has(u) && o.push({
|
|
270
|
+
field: "edgePairs",
|
|
271
|
+
message: `新增关系 ${u} 与基础关系的目标重名,请改在已有关系的端点约束中追加端点对`
|
|
272
|
+
}), n.endpoints.length === 0) {
|
|
273
|
+
o.push({
|
|
274
|
+
field: "edgePairs",
|
|
275
|
+
message: `新增关系 ${u} 至少需要一个端点对`
|
|
276
|
+
});
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
for (const p of n.endpoints)
|
|
280
|
+
if (!g.has(p.srcTag) || !g.has(p.dstTag)) {
|
|
281
|
+
o.push({
|
|
282
|
+
field: "edgePairs",
|
|
283
|
+
message: `新增关系 ${u} 的端点对 ${p.srcTag || "?"}→${p.dstTag || "?"} 须都是已声明的目标类型`
|
|
284
|
+
});
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
for (const n of G(e, s)) {
|
|
289
|
+
if (n.endpoints.length === 0) {
|
|
290
|
+
s && o.push({
|
|
291
|
+
field: "edgePairs",
|
|
292
|
+
message: `目标关系 ${n.target} 至少需要一个端点对;请检查基础端点与类型映射`
|
|
293
|
+
});
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
const u = /* @__PURE__ */ new Map();
|
|
297
|
+
for (const p of n.endpoints) {
|
|
298
|
+
const E = `${p.srcTag}|${p.dstTag}`, M = `${p.srcField ?? S}|${p.dstField ?? S}`, P = u.get(E);
|
|
299
|
+
if (P && P !== M) {
|
|
300
|
+
o.push({
|
|
301
|
+
field: "edgePairs",
|
|
302
|
+
message: `关系 ${n.target} 的端点对 ${p.srcTag}→${p.dstTag} 定位属性冲突`
|
|
303
|
+
});
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
u.set(E, M);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return o;
|
|
310
|
+
}
|
|
311
|
+
function z(e, s) {
|
|
312
|
+
const o = {};
|
|
313
|
+
for (const [a, i] of Object.entries(e)) {
|
|
314
|
+
const d = /* @__PURE__ */ new Set(), c = [];
|
|
315
|
+
for (const t of i)
|
|
316
|
+
for (const r of s[t] ?? [])
|
|
317
|
+
d.has(r) || (d.add(r), c.push({ src: `${t}.${r}`, as: r }));
|
|
318
|
+
o[a] = c;
|
|
319
|
+
}
|
|
320
|
+
return o;
|
|
321
|
+
}
|
|
322
|
+
function ne(e, s, o) {
|
|
323
|
+
const a = z(s, o), i = { ...e ?? {} }, d = [];
|
|
324
|
+
for (const [c, t] of Object.entries(a))
|
|
325
|
+
c in i || t.length === 0 || (i[c] = t, d.push(c));
|
|
326
|
+
return { rows: i, filled: d };
|
|
327
|
+
}
|
|
328
|
+
function ce(e, s, o) {
|
|
329
|
+
var m;
|
|
330
|
+
const a = Z(e, s), i = [];
|
|
331
|
+
for (const n of O(e).rows)
|
|
332
|
+
n.op !== "DIRECT" && i.push(
|
|
333
|
+
n.op === "MERGE" ? { from: n.from, to: [...n.to], op: "MERGE", mergeKey: n.mergeKey } : { from: n.from, to: [...n.to], op: n.op }
|
|
334
|
+
);
|
|
335
|
+
const d = G(a, s), c = d.map((n) => ({
|
|
336
|
+
target: n.target,
|
|
337
|
+
op: n.op,
|
|
338
|
+
sources: [...n.sources],
|
|
339
|
+
endpoints: n.endpoints.map((u) => ({
|
|
340
|
+
srcTag: u.srcTag,
|
|
341
|
+
dstTag: u.dstTag,
|
|
342
|
+
srcField: u.srcField ?? S,
|
|
343
|
+
dstField: u.dstField ?? S
|
|
344
|
+
}))
|
|
345
|
+
})), t = D(a, s).filter(
|
|
346
|
+
(n) => !a.sourceEdges.includes(n)
|
|
347
|
+
), r = {};
|
|
348
|
+
for (const [n, u] of Object.entries(e.propertyMap ?? {})) {
|
|
349
|
+
const p = u.map((E) => ({ src: E.src.trim(), as: E.as.trim() })).filter((E) => E.src && E.as);
|
|
350
|
+
p.length > 0 && (r[n] = p);
|
|
351
|
+
}
|
|
352
|
+
const g = e.mode === "SUBGRAPH" ? i.length === 0 && e.identityStrategy === "PRESERVE" && !J(e) && j(r, a, o) : i.length === 0 && e.identityStrategy === "PRESERVE" && W(a, d, s) && j(r, a, o), l = {
|
|
353
|
+
mode: g ? "SUBGRAPH" : "MIXED",
|
|
354
|
+
source: {
|
|
355
|
+
types: [...a.sourceTypes],
|
|
356
|
+
edges: [...a.sourceEdges]
|
|
357
|
+
},
|
|
358
|
+
membership: { endpointClosure: !0 },
|
|
359
|
+
identity: { strategy: g ? "PRESERVE" : e.identityStrategy },
|
|
360
|
+
output: (m = e.description) != null && m.trim() ? { description: e.description.trim() } : void 0
|
|
361
|
+
};
|
|
362
|
+
return g || (l.transforms = {
|
|
363
|
+
...i.length > 0 ? { typeMap: i } : {},
|
|
364
|
+
...Object.keys(r).length > 0 ? { propertyMap: r } : {},
|
|
365
|
+
relations: c,
|
|
366
|
+
...t.length > 0 ? { droppedEdges: t } : {}
|
|
367
|
+
}), l;
|
|
368
|
+
}
|
|
369
|
+
function J(e) {
|
|
370
|
+
return (e.customEdges ?? []).length > 0 || N(e).rows.some((s) => s.op !== "DIRECT");
|
|
371
|
+
}
|
|
372
|
+
function W(e, s, o) {
|
|
373
|
+
if (!o || s.length === 0 || (e.customEdges ?? []).length > 0)
|
|
374
|
+
return !1;
|
|
375
|
+
for (const a of s) {
|
|
376
|
+
if (a.op !== "DIRECT" || a.sources.length !== 1 || a.sources[0] !== a.target)
|
|
377
|
+
return !1;
|
|
378
|
+
const i = a.endpoints.map((c) => `${c.srcTag}|${c.dstTag}|${c.srcField}|${c.dstField}`).sort(), d = k(e, a.sources, o).map((c) => `${c.srcTag}|${c.dstTag}|${c.srcField}|${c.dstField}`).sort();
|
|
379
|
+
if (i.length !== d.length || i.some((c, t) => c !== d[t]))
|
|
380
|
+
return !1;
|
|
381
|
+
}
|
|
382
|
+
return !0;
|
|
383
|
+
}
|
|
384
|
+
function j(e, s, o) {
|
|
385
|
+
if (Object.keys(e).length === 0)
|
|
386
|
+
return !0;
|
|
387
|
+
const a = {};
|
|
388
|
+
for (const d of s.sourceTypes)
|
|
389
|
+
for (const c of w(s.typeTargets[d], d)) {
|
|
390
|
+
const t = a[c] ?? [];
|
|
391
|
+
t.push(d), a[c] = t;
|
|
392
|
+
}
|
|
393
|
+
const i = o ? z(a, o) : void 0;
|
|
394
|
+
for (const [d, c] of Object.entries(e)) {
|
|
395
|
+
if (c.some((r) => r.src.slice(r.src.lastIndexOf(".") + 1) !== r.as))
|
|
396
|
+
return !1;
|
|
397
|
+
const t = i == null ? void 0 : i[d];
|
|
398
|
+
if (t) {
|
|
399
|
+
const r = new Set(c.map((g) => g.src));
|
|
400
|
+
if (t.length !== c.length || t.some((g) => !r.has(g.src)))
|
|
401
|
+
return !1;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
return !0;
|
|
405
|
+
}
|
|
406
|
+
function ae(e) {
|
|
407
|
+
if (e)
|
|
408
|
+
try {
|
|
409
|
+
const s = JSON.parse(e);
|
|
410
|
+
return s && typeof s == "object" && "source" in s ? s : void 0;
|
|
411
|
+
} catch {
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
function ge(e) {
|
|
416
|
+
if (e)
|
|
417
|
+
try {
|
|
418
|
+
const s = JSON.parse(e);
|
|
419
|
+
return s && typeof s == "object" && Array.isArray(s.edges) ? s : void 0;
|
|
420
|
+
} catch {
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
function ie(e, s, o) {
|
|
425
|
+
var m, n, u, p, E, M, P, C, I;
|
|
426
|
+
const a = ((m = e == null ? void 0 : e.source) == null ? void 0 : m.types) ?? [], i = {}, d = {};
|
|
427
|
+
for (const f of ((n = e == null ? void 0 : e.transforms) == null ? void 0 : n.typeMap) ?? [])
|
|
428
|
+
i[f.from] = f.to.length > 0 ? [...f.to] : [f.from], f.op === "MERGE" && f.to.length > 0 && (d[f.to[0]] = f.mergeKey ?? "");
|
|
429
|
+
const c = {}, t = {}, r = [];
|
|
430
|
+
for (const f of ((u = e == null ? void 0 : e.transforms) == null ? void 0 : u.relations) ?? []) {
|
|
431
|
+
const R = (f.endpoints ?? []).map((h) => ({
|
|
432
|
+
srcTag: h.srcTag,
|
|
433
|
+
dstTag: h.dstTag,
|
|
434
|
+
srcField: h.srcField || S,
|
|
435
|
+
dstField: h.dstField || S
|
|
436
|
+
}));
|
|
437
|
+
if ((f.sources ?? []).length === 0) {
|
|
438
|
+
r.push({ target: f.target, endpoints: R });
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
for (const h of f.sources ?? []) {
|
|
442
|
+
if (f.target === h)
|
|
443
|
+
continue;
|
|
444
|
+
const F = c[h] ?? [];
|
|
445
|
+
F.includes(f.target) || F.push(f.target), c[h] = F;
|
|
446
|
+
}
|
|
447
|
+
R.length > 0 && (t[f.target] = R);
|
|
448
|
+
}
|
|
449
|
+
for (const f of ((p = e == null ? void 0 : e.transforms) == null ? void 0 : p.relationMap) ?? []) {
|
|
450
|
+
if (((E = f.op) == null ? void 0 : E.toUpperCase()) !== "REMAP" || !f.from)
|
|
451
|
+
continue;
|
|
452
|
+
const R = ((M = f.to) == null ? void 0 : M.trim()) || f.from;
|
|
453
|
+
if (R === f.from)
|
|
454
|
+
continue;
|
|
455
|
+
const h = c[f.from] ?? [];
|
|
456
|
+
h.includes(R) || h.push(R), c[f.from] = h;
|
|
457
|
+
}
|
|
458
|
+
if (Object.keys(t).length === 0)
|
|
459
|
+
for (const f of (o == null ? void 0 : o.edges) ?? []) {
|
|
460
|
+
const R = t[f.name] ?? [];
|
|
461
|
+
R.push({
|
|
462
|
+
srcTag: f.srcTag,
|
|
463
|
+
dstTag: f.dstTag,
|
|
464
|
+
srcField: f.srcField || S,
|
|
465
|
+
dstField: f.dstField || S
|
|
466
|
+
}), t[f.name] = R;
|
|
467
|
+
}
|
|
468
|
+
const g = (P = e == null ? void 0 : e.identity) == null ? void 0 : P.strategy, l = {};
|
|
469
|
+
for (const [f, R] of Object.entries(((C = e == null ? void 0 : e.transforms) == null ? void 0 : C.propertyMap) ?? {}))
|
|
470
|
+
l[f] = R.map((h) => ({ src: h.src, as: h.as }));
|
|
471
|
+
return {
|
|
472
|
+
scenarioCode: s.scenarioCode,
|
|
473
|
+
name: s.name,
|
|
474
|
+
description: s.description,
|
|
475
|
+
mode: (e == null ? void 0 : e.mode) ?? (e != null && e.transforms && Object.keys(e.transforms).length > 0 ? "MIXED" : "SUBGRAPH"),
|
|
476
|
+
sourceTypes: [...a],
|
|
477
|
+
sourceEdges: [...((I = e == null ? void 0 : e.source) == null ? void 0 : I.edges) ?? []],
|
|
478
|
+
discardedTypes: [],
|
|
479
|
+
droppedEdges: [],
|
|
480
|
+
typeTargets: i,
|
|
481
|
+
mergeKeys: d,
|
|
482
|
+
edgeTargets: c,
|
|
483
|
+
edgePairs: t,
|
|
484
|
+
...r.length > 0 ? { customEdges: r } : {},
|
|
485
|
+
...Object.keys(l).length > 0 ? { propertyMap: l } : {},
|
|
486
|
+
identityStrategy: g === "PREFIX_TARGET_TAG" ? "PREFIX_TARGET_TAG" : "PRESERVE"
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
const $ = "/kb/v1/ontology/scenario", y = () => ({ "X-Tenant-Code": V() });
|
|
490
|
+
function A(e) {
|
|
491
|
+
return {
|
|
492
|
+
...e,
|
|
493
|
+
total: Number(e.total),
|
|
494
|
+
current: Number(e.current),
|
|
495
|
+
size: Number(e.size)
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
async function v(e) {
|
|
499
|
+
try {
|
|
500
|
+
return await e();
|
|
501
|
+
} catch (s) {
|
|
502
|
+
x("请求失败", s.message || "服务器错误", "error");
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
function ue(e) {
|
|
507
|
+
return v(
|
|
508
|
+
() => T(`${$}/list`, {
|
|
509
|
+
method: "post",
|
|
510
|
+
data: e,
|
|
511
|
+
headers: y()
|
|
512
|
+
})
|
|
513
|
+
).then((s) => s && A(s));
|
|
514
|
+
}
|
|
515
|
+
function de(e) {
|
|
516
|
+
return v(
|
|
517
|
+
() => T(`${$}/detail`, {
|
|
518
|
+
method: "post",
|
|
519
|
+
data: { scenarioCode: e },
|
|
520
|
+
headers: y()
|
|
521
|
+
})
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
function le(e) {
|
|
525
|
+
return v(
|
|
526
|
+
() => T(`${$}/projection-preview`, {
|
|
527
|
+
method: "post",
|
|
528
|
+
data: e,
|
|
529
|
+
headers: y()
|
|
530
|
+
})
|
|
531
|
+
);
|
|
532
|
+
}
|
|
533
|
+
function fe(e) {
|
|
534
|
+
return v(
|
|
535
|
+
() => T(`${$}/projection-version-list`, {
|
|
536
|
+
method: "post",
|
|
537
|
+
data: { scenarioCode: e },
|
|
538
|
+
headers: y()
|
|
539
|
+
})
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
function pe(e) {
|
|
543
|
+
return v(
|
|
544
|
+
() => T(`${$}/sync-run-list`, {
|
|
545
|
+
method: "post",
|
|
546
|
+
data: e,
|
|
547
|
+
headers: y()
|
|
548
|
+
})
|
|
549
|
+
).then((s) => s && A(s));
|
|
550
|
+
}
|
|
551
|
+
function me(e) {
|
|
552
|
+
return v(
|
|
553
|
+
() => T(`${$}/sync-failure-list`, {
|
|
554
|
+
method: "post",
|
|
555
|
+
data: e,
|
|
556
|
+
headers: y()
|
|
557
|
+
})
|
|
558
|
+
).then((s) => s && A(s));
|
|
559
|
+
}
|
|
560
|
+
function he(e) {
|
|
561
|
+
return v(
|
|
562
|
+
() => T(`${$}/consumer-list`, {
|
|
563
|
+
method: "post",
|
|
564
|
+
data: { scenarioCode: e },
|
|
565
|
+
headers: y()
|
|
566
|
+
})
|
|
567
|
+
);
|
|
568
|
+
}
|
|
569
|
+
const Q = "/kb/v1/ontology/order";
|
|
570
|
+
function Te(e) {
|
|
571
|
+
return T(`${Q}/scenario/submit`, {
|
|
572
|
+
method: "post",
|
|
573
|
+
data: e,
|
|
574
|
+
headers: y()
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
function ye(e) {
|
|
578
|
+
return T(`${$}/apply`, {
|
|
579
|
+
method: "post",
|
|
580
|
+
data: e,
|
|
581
|
+
headers: y()
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
function Ee(e) {
|
|
585
|
+
return T(`${$}/sync-retry`, {
|
|
586
|
+
method: "post",
|
|
587
|
+
data: e,
|
|
588
|
+
headers: y()
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
function Se(e) {
|
|
592
|
+
return T(`${$}/sync-pause`, {
|
|
593
|
+
method: "post",
|
|
594
|
+
data: e,
|
|
595
|
+
headers: y()
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
function $e(e) {
|
|
599
|
+
return T(`${$}/sync-resume`, {
|
|
600
|
+
method: "post",
|
|
601
|
+
data: e,
|
|
602
|
+
headers: y()
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
function Re(e) {
|
|
606
|
+
return T(`${$}/repair`, {
|
|
607
|
+
method: "post",
|
|
608
|
+
data: e,
|
|
609
|
+
headers: y()
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
function we(e) {
|
|
613
|
+
return T(`${$}/reconcile`, {
|
|
614
|
+
method: "post",
|
|
615
|
+
data: e,
|
|
616
|
+
headers: y()
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
function ve(e) {
|
|
620
|
+
return T(`${$}/delete`, {
|
|
621
|
+
method: "post",
|
|
622
|
+
data: e,
|
|
623
|
+
headers: y()
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
export {
|
|
627
|
+
ce as A,
|
|
628
|
+
le as B,
|
|
629
|
+
Te as C,
|
|
630
|
+
N as D,
|
|
631
|
+
L as E,
|
|
632
|
+
q as R,
|
|
633
|
+
S,
|
|
634
|
+
$e as a,
|
|
635
|
+
Re as b,
|
|
636
|
+
we as c,
|
|
637
|
+
ye as d,
|
|
638
|
+
ve as e,
|
|
639
|
+
fe as f,
|
|
640
|
+
de as g,
|
|
641
|
+
pe as h,
|
|
642
|
+
me as i,
|
|
643
|
+
he as j,
|
|
644
|
+
ae as k,
|
|
645
|
+
ue as l,
|
|
646
|
+
ge as m,
|
|
647
|
+
O as n,
|
|
648
|
+
G as o,
|
|
649
|
+
Se as p,
|
|
650
|
+
Z as q,
|
|
651
|
+
Ee as r,
|
|
652
|
+
z as s,
|
|
653
|
+
ie as t,
|
|
654
|
+
D as u,
|
|
655
|
+
se as v,
|
|
656
|
+
oe as w,
|
|
657
|
+
te as x,
|
|
658
|
+
ne as y,
|
|
659
|
+
re as z
|
|
660
|
+
};
|