@yuku123/z-team-component 0.2.21 → 0.2.23
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/DebugPlayground-cxffrMgF.js +15 -0
- package/dist/{InvitationManagementPage-cXDD5J1f.js → InvitationManagementPage-BJ0izYip.js} +2 -2
- package/dist/{OnboardingPage-D7W1L7E7.js → OnboardingPage-Cde_2B_A.js} +2 -2
- package/dist/{ProjectApp-DgCJv9Qr.js → ProjectApp-CJfqACjb.js} +3 -3
- package/dist/SmartWorkbench.module-DzQskKT0.js +85 -0
- package/dist/SystemShell-Cm9eErqQ.js +593 -0
- package/dist/{admin-logs-96BMdLm3.js → admin-logs-C2V1ElH9.js} +34 -34
- package/dist/{api-DayyjL1e.js → api--Fg0hL9Y.js} +258 -258
- package/dist/{api-BzonkJ9O.js → api-DlnrjUut.js} +1 -1
- package/dist/{createWorkspaceWsHandler-Dgpag_y3.js → createWorkspaceWsHandler-CqGqcTh_.js} +27 -27
- package/dist/echarts-B1OU1xr4.js +16 -0
- package/dist/{index-BCnzwGPj.js → index-1xwvv2Q7.js} +3 -3
- package/dist/{index-BuGgpiDq.js → index-8V37FP9c.js} +4 -4
- package/dist/{index-gqKmHnTZ.js → index-B3ikipDf.js} +4 -4
- package/dist/{index-Cnw06MGB.js → index-BMRIUhOL.js} +3 -3
- package/dist/index-BaCiSbPR.js +956 -0
- package/dist/index-Bla8z6ok.js +6879 -0
- package/dist/index-Bsh58cwF.js +975 -0
- package/dist/index-C01UUprh.js +41705 -0
- package/dist/index-C0EIMJI2.js +112 -0
- package/dist/{index-BX-3TBsz.js → index-CGDpGIZC.js} +6 -6
- package/dist/index-CUVdeb8y.js +638 -0
- package/dist/{index-D3TdisV7.js → index-CW2B5_8f.js} +1616 -22092
- package/dist/{index-sGtg7MFg.js → index-D5u3BjCZ.js} +2 -2
- package/dist/{index-pJERGpTh.js → index-DK_aR-Vu.js} +5 -4
- package/dist/index-DKpz0o-l.js +1327 -0
- package/dist/index-DUbYCF9y.js +1171 -0
- package/dist/index-DvIHX7lZ.js +1657 -0
- package/dist/{index-BMOS7sE7.js → index-b1BIpgn7.js} +165 -163
- package/dist/{index-DHGvzWWQ.js → index-bbwTcNjB.js} +7 -7
- package/dist/index-hPzswwk2.js +5900 -0
- package/dist/index-pfzY68PH.js +1408 -0
- package/dist/index.js +1 -1
- package/dist/index.module-CAa-2T7m.js +72 -0
- package/dist/index.module-UI0iz8K0.js +42 -0
- package/dist/{instance-CNHJqTd1.js → instance-1QEDBRqA.js} +12 -12
- package/dist/pages.js +1 -1
- package/dist/schedule-C89oiqIR.js +239 -0
- package/dist/{send-default-agent-team-message-CRRwpv0q.js → send-default-agent-team-message-CxkWi3XC.js} +1 -1
- package/dist/{sso-user-D0JzsJeR.js → sso-user-BE1Ell5F.js} +1 -1
- package/dist/training-o-vSBkqP.js +450 -0
- package/dist/{useAppStore-BYXwTjW-.js → useAppStore-wgWaxcyc.js} +24 -24
- package/dist/webide-BxD6cYe-.js +8084 -0
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/index-CJD6mLzs.js +0 -51451
package/dist/index.js
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const c = "_hub_1scx0_1", o = "_header_1scx0_9", t = "_backBtn_1scx0_19", n = "_title_1scx0_35", e = "_bodySplit_1scx0_42", _ = "_spinWrapper_1scx0_55", a = "_columnsLayout_1scx0_70", s = "_catNav_1scx0_78", r = "_catNavTitle_1scx0_89", v = "_catItem_1scx0_97", l = "_catItemActive_1scx0_116", m = "_columnGridWrap_1scx0_122", d = "_catTag_1scx0_131", x = "_columnGrid_1scx0_122", u = "_columnCard_1scx0_149", i = "_columnCover_1scx0_163", p = "_columnCoverPlaceholder_1scx0_176", I = "_columnInfo_1scx0_182", G = "_columnDesc_1scx0_191", T = "_columnMeta_1scx0_200", C = "_latestUpdate_1scx0_204", A = "_latestTime_1scx0_214", N = "_deleteIcon_1scx0_229", b = "_columnActionsBar_1scx0_238", h = "_actionBtn_1scx0_245", g = "_actionBtnDanger_1scx0_263", y = "_ownerTag_1scx0_272", B = "_coverGrid_1scx0_279", D = "_coverCell_1scx0_284", U = "_coverItem_1scx0_287", k = "_coverNone_1scx0_301", L = "_coverUpload_1scx0_311", M = "_coverUploadIcon_1scx0_319", S = "_coverUploadingMask_1scx0_322", w = "_coverItemSelected_1scx0_330", O = "_coverName_1scx0_334", P = "_splitLayout_1scx0_346", W = "_articleNav_1scx0_354", f = "_navColumnDesc_1scx0_365", E = "_navGroup_1scx0_378", R = "_navToolbar_1scx0_382", $ = "_navAddGroup_1scx0_386", j = "_navGroupOps_1scx0_406", q = "_navGroupTitle_1scx0_415", z = "_navGroupIcon_1scx0_428", F = "_navGroupName_1scx0_433", H = "_navGroupCount_1scx0_440", J = "_navChapter_1scx0_447", K = "_navItem_1scx0_451", Q = "_navItemActive_1scx0_464", V = "_navTitle_1scx0_468", X = "_navItemRead_1scx0_472", Y = "_navIndex_1scx0_475", Z = "_readDot_1scx0_492", cc = "_navOps_1scx0_499", oc = "_navEmpty_1scx0_509", tc = "_readerPane_1scx0_513", nc = "_readerContent_1scx0_528", ec = "_tocAside_1scx0_534", _c = "_tocTitle_1scx0_545", ac = "_tocList_1scx0_554", sc = "_tocItem_1scx0_559", rc = "_tocSub_1scx0_576", vc = "_tocItemActive_1scx0_579", lc = "_readerTitle_1scx0_592", mc = "_readerMeta_1scx0_599", dc = "_markdown_1scx0_611", xc = {
|
|
2
|
+
hub: c,
|
|
3
|
+
header: o,
|
|
4
|
+
backBtn: t,
|
|
5
|
+
title: n,
|
|
6
|
+
bodySplit: e,
|
|
7
|
+
spinWrapper: _,
|
|
8
|
+
columnsLayout: a,
|
|
9
|
+
catNav: s,
|
|
10
|
+
catNavTitle: r,
|
|
11
|
+
catItem: v,
|
|
12
|
+
catItemActive: l,
|
|
13
|
+
columnGridWrap: m,
|
|
14
|
+
catTag: d,
|
|
15
|
+
columnGrid: x,
|
|
16
|
+
columnCard: u,
|
|
17
|
+
columnCover: i,
|
|
18
|
+
columnCoverPlaceholder: p,
|
|
19
|
+
columnInfo: I,
|
|
20
|
+
columnDesc: G,
|
|
21
|
+
columnMeta: T,
|
|
22
|
+
latestUpdate: C,
|
|
23
|
+
latestTime: A,
|
|
24
|
+
deleteIcon: N,
|
|
25
|
+
columnActionsBar: b,
|
|
26
|
+
actionBtn: h,
|
|
27
|
+
actionBtnDanger: g,
|
|
28
|
+
ownerTag: y,
|
|
29
|
+
coverGrid: B,
|
|
30
|
+
coverCell: D,
|
|
31
|
+
coverItem: U,
|
|
32
|
+
coverNone: k,
|
|
33
|
+
coverUpload: L,
|
|
34
|
+
coverUploadIcon: M,
|
|
35
|
+
coverUploadingMask: S,
|
|
36
|
+
coverItemSelected: w,
|
|
37
|
+
coverName: O,
|
|
38
|
+
splitLayout: P,
|
|
39
|
+
articleNav: W,
|
|
40
|
+
navColumnDesc: f,
|
|
41
|
+
navGroup: E,
|
|
42
|
+
navToolbar: R,
|
|
43
|
+
navAddGroup: $,
|
|
44
|
+
navGroupOps: j,
|
|
45
|
+
navGroupTitle: q,
|
|
46
|
+
navGroupIcon: z,
|
|
47
|
+
navGroupName: F,
|
|
48
|
+
navGroupCount: H,
|
|
49
|
+
navChapter: J,
|
|
50
|
+
navItem: K,
|
|
51
|
+
navItemActive: Q,
|
|
52
|
+
navTitle: V,
|
|
53
|
+
navItemRead: X,
|
|
54
|
+
navIndex: Y,
|
|
55
|
+
readDot: Z,
|
|
56
|
+
navOps: cc,
|
|
57
|
+
navEmpty: oc,
|
|
58
|
+
readerPane: tc,
|
|
59
|
+
readerContent: nc,
|
|
60
|
+
tocAside: ec,
|
|
61
|
+
tocTitle: _c,
|
|
62
|
+
tocList: ac,
|
|
63
|
+
tocItem: sc,
|
|
64
|
+
tocSub: rc,
|
|
65
|
+
tocItemActive: vc,
|
|
66
|
+
readerTitle: lc,
|
|
67
|
+
readerMeta: mc,
|
|
68
|
+
markdown: dc
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
xc as h
|
|
72
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const t = "_scenarioPage_1rtig_1", e = "_toolbar_1rtig_11", i = "_toolbarLeft_1rtig_22", o = "_pageTitle_1rtig_30", r = "_statInline_1rtig_39", _ = "_statChip_1rtig_47", n = "_statDivider_1rtig_53", s = "_pageActions_1rtig_60", a = "_tableCard_1rtig_68", c = "_tableWrap_1rtig_76", l = "_codeTag_1rtig_136", g = "_nameCell_1rtig_146", d = "_defaultBadge_1rtig_166", m = "_descCell_1rtig_180", p = "_mutedCell_1rtig_186", I = "_actionGroup_1rtig_190", f = "_emptyState_1rtig_203", y = "_emptyIcon_1rtig_212", b = "_emptyTitle_1rtig_225", C = "_emptyHint_1rtig_232", T = "_loadingWrap_1rtig_240", w = "_scenarioDrawerWrap_1rtig_266", u = "_section_1rtig_275", D = "_formRow_1rtig_279", R = "_formLabel_1rtig_283", S = "_formHint_1rtig_291", W = "_formRowPair_1rtig_298", v = "_sectionDivider_1rtig_307", A = "_listItemRow_1rtig_323", B = "_listItemIndex_1rtig_339", H = "_listItemBody_1rtig_354", L = "_listItemActions_1rtig_367", P = "_inlineFields_1rtig_375", x = "_dirTree_1rtig_395", h = "_dirNode_1rtig_401", F = "_dirTreeScroll_1rtig_411", G = "_readmeSection_1rtig_417", N = {
|
|
2
|
+
scenarioPage: t,
|
|
3
|
+
toolbar: e,
|
|
4
|
+
toolbarLeft: i,
|
|
5
|
+
pageTitle: o,
|
|
6
|
+
statInline: r,
|
|
7
|
+
statChip: _,
|
|
8
|
+
statDivider: n,
|
|
9
|
+
pageActions: s,
|
|
10
|
+
tableCard: a,
|
|
11
|
+
tableWrap: c,
|
|
12
|
+
codeTag: l,
|
|
13
|
+
nameCell: g,
|
|
14
|
+
defaultBadge: d,
|
|
15
|
+
descCell: m,
|
|
16
|
+
mutedCell: p,
|
|
17
|
+
actionGroup: I,
|
|
18
|
+
emptyState: f,
|
|
19
|
+
emptyIcon: y,
|
|
20
|
+
emptyTitle: b,
|
|
21
|
+
emptyHint: C,
|
|
22
|
+
loadingWrap: T,
|
|
23
|
+
scenarioDrawerWrap: w,
|
|
24
|
+
section: u,
|
|
25
|
+
formRow: D,
|
|
26
|
+
formLabel: R,
|
|
27
|
+
formHint: S,
|
|
28
|
+
formRowPair: W,
|
|
29
|
+
sectionDivider: v,
|
|
30
|
+
listItemRow: A,
|
|
31
|
+
listItemIndex: B,
|
|
32
|
+
listItemBody: H,
|
|
33
|
+
listItemActions: L,
|
|
34
|
+
inlineFields: P,
|
|
35
|
+
dirTree: x,
|
|
36
|
+
dirNode: h,
|
|
37
|
+
dirTreeScroll: F,
|
|
38
|
+
readmeSection: G
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
N as s
|
|
42
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, f as d, B as r,
|
|
1
|
+
import { a as o, f as d, B as r, u as c } from "./api--Fg0hL9Y.js";
|
|
2
2
|
async function h(e, n = "") {
|
|
3
3
|
const t = new URLSearchParams();
|
|
4
4
|
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
@@ -107,7 +107,7 @@ async function U(e, n = "") {
|
|
|
107
107
|
};
|
|
108
108
|
return t.scenarioInstance;
|
|
109
109
|
}
|
|
110
|
-
async function
|
|
110
|
+
async function k(e, n = "") {
|
|
111
111
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
112
112
|
`${r}/scenario-instances/${e}/join-self${t}`,
|
|
113
113
|
{
|
|
@@ -117,7 +117,7 @@ async function b(e, n = "") {
|
|
|
117
117
|
), a = await c(s, "加入工程失败");
|
|
118
118
|
return u(a);
|
|
119
119
|
}
|
|
120
|
-
async function
|
|
120
|
+
async function b(e = "") {
|
|
121
121
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await o(`${r}/self-support${n}`, d), s = await c(t, "获取自身答疑群组失败"), a = Number(s.scenario_instance_id ?? 0);
|
|
122
122
|
if (!Number.isFinite(a) || a <= 0)
|
|
123
123
|
throw {
|
|
@@ -198,19 +198,19 @@ async function F(e = "", n = 8) {
|
|
|
198
198
|
}));
|
|
199
199
|
}
|
|
200
200
|
export {
|
|
201
|
-
|
|
201
|
+
F as a,
|
|
202
202
|
v as b,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
h as c,
|
|
204
|
+
I as d,
|
|
205
|
+
b as e,
|
|
206
206
|
C as f,
|
|
207
207
|
A as g,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
O as h,
|
|
209
|
+
P as i,
|
|
210
|
+
k as j,
|
|
211
|
+
y as k,
|
|
212
212
|
S as l,
|
|
213
|
-
|
|
213
|
+
U as m,
|
|
214
214
|
T as p,
|
|
215
215
|
N as r
|
|
216
216
|
};
|
package/dist/pages.js
CHANGED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { jsxs as E, jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { Component as N } from "react";
|
|
3
|
+
import { a as c, B as i, u as l, f as u, g as A, r as f } from "./api--Fg0hL9Y.js";
|
|
4
|
+
class I extends N {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
super(e), this.state = { hasError: !1, error: null };
|
|
7
|
+
}
|
|
8
|
+
static getDerivedStateFromError(e) {
|
|
9
|
+
return { hasError: !0, error: e };
|
|
10
|
+
}
|
|
11
|
+
componentDidCatch(e, t) {
|
|
12
|
+
console.error("[ErrorBoundary]", e, t.componentStack);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
var e;
|
|
16
|
+
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ E(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
style: {
|
|
20
|
+
display: "flex",
|
|
21
|
+
flexDirection: "column",
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
justifyContent: "center",
|
|
24
|
+
height: "100%",
|
|
25
|
+
padding: 24,
|
|
26
|
+
color: "#999",
|
|
27
|
+
fontSize: 14,
|
|
28
|
+
gap: 8
|
|
29
|
+
},
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ h("div", { style: { fontSize: 16, fontWeight: 600, color: "#ff4d4f" }, children: "渲染异常" }),
|
|
32
|
+
/* @__PURE__ */ h(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
style: {
|
|
36
|
+
maxWidth: 400,
|
|
37
|
+
textAlign: "center",
|
|
38
|
+
wordBreak: "break-word"
|
|
39
|
+
},
|
|
40
|
+
children: ((e = this.state.error) == null ? void 0 : e.message) || "未知错误"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ h(
|
|
44
|
+
"button",
|
|
45
|
+
{
|
|
46
|
+
type: "button",
|
|
47
|
+
onClick: () => this.setState({ hasError: !1, error: null }),
|
|
48
|
+
style: {
|
|
49
|
+
marginTop: 8,
|
|
50
|
+
padding: "4px 16px",
|
|
51
|
+
borderRadius: 4,
|
|
52
|
+
border: "1px solid #d9d9d9",
|
|
53
|
+
background: "#fff",
|
|
54
|
+
cursor: "pointer",
|
|
55
|
+
fontSize: 13
|
|
56
|
+
},
|
|
57
|
+
children: "重试"
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
) : this.props.children;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const S = {
|
|
66
|
+
RUNTIME_MONITOR_VIEW: ["RUNTIME_MONITOR_MANAGE"],
|
|
67
|
+
EVALUATION_VIEW: ["EVALUATION_MANAGE"],
|
|
68
|
+
COLLABORATION_VIEW: [
|
|
69
|
+
"AGENT_MANAGE",
|
|
70
|
+
"SKILL_MANAGE",
|
|
71
|
+
"SCENARIO_MANAGE",
|
|
72
|
+
"PROFILE_MANAGE",
|
|
73
|
+
"TAG_MANAGE",
|
|
74
|
+
"TOOL_MANAGE"
|
|
75
|
+
],
|
|
76
|
+
EVOLUTION_VIEW: ["EVOLUTION_MANAGE"],
|
|
77
|
+
OPS_CONFIG_VIEW: [
|
|
78
|
+
"OPS_CONFIG_MANAGE",
|
|
79
|
+
"ONCALL_MANAGE",
|
|
80
|
+
"ANNOUNCEMENT_MANAGE",
|
|
81
|
+
"OPS_REPORT_MANAGE"
|
|
82
|
+
],
|
|
83
|
+
KNOWLEDGE_VIEW: ["KNOWLEDGE_MANAGE"],
|
|
84
|
+
WEBIDE_VIEW: ["WEBIDE_MANAGE"]
|
|
85
|
+
};
|
|
86
|
+
function O(n, e) {
|
|
87
|
+
var r;
|
|
88
|
+
if (!n) return !1;
|
|
89
|
+
if (n.is_global_admin || (r = n.permissions) != null && r.includes(e)) return !0;
|
|
90
|
+
const t = S[e];
|
|
91
|
+
return !!(t != null && t.some((a) => {
|
|
92
|
+
var s;
|
|
93
|
+
return (s = n.permissions) == null ? void 0 : s.includes(a);
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
function p(n) {
|
|
97
|
+
const e = n && typeof n == "object" ? n : {}, t = Array.isArray(e.items) ? A(e.items) : [];
|
|
98
|
+
return { ...e, items: t };
|
|
99
|
+
}
|
|
100
|
+
async function _(n, e = "") {
|
|
101
|
+
const t = e ? `?token=${encodeURIComponent(e)}` : "", r = await c(
|
|
102
|
+
`${i}/personal-agents/${n}/schedules${t}`,
|
|
103
|
+
u
|
|
104
|
+
);
|
|
105
|
+
return f(r, "获取定时任务列表失败");
|
|
106
|
+
}
|
|
107
|
+
async function T(n, e, t, r, a = "", s = "", o = "") {
|
|
108
|
+
const d = o ? `?token=${encodeURIComponent(o)}` : "", m = await c(
|
|
109
|
+
`${i}/personal-agents/${n}/schedules${d}`,
|
|
110
|
+
{
|
|
111
|
+
...u,
|
|
112
|
+
method: "POST",
|
|
113
|
+
headers: { "Content-Type": "application/json" },
|
|
114
|
+
body: JSON.stringify({
|
|
115
|
+
name: e,
|
|
116
|
+
prompt: t,
|
|
117
|
+
cron_expression: r,
|
|
118
|
+
notify_user_id: a,
|
|
119
|
+
notify_user_name: s
|
|
120
|
+
})
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
return f(m, "创建定时任务失败");
|
|
124
|
+
}
|
|
125
|
+
async function w(n, e, t, r = "") {
|
|
126
|
+
const a = r ? `?token=${encodeURIComponent(r)}` : "", s = await c(
|
|
127
|
+
`${i}/personal-agents/${n}/schedules/${e}${a}`,
|
|
128
|
+
{
|
|
129
|
+
...u,
|
|
130
|
+
method: "PUT",
|
|
131
|
+
headers: { "Content-Type": "application/json" },
|
|
132
|
+
body: JSON.stringify(t)
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
return f(s, "更新定时任务失败");
|
|
136
|
+
}
|
|
137
|
+
async function R(n, e, t = "") {
|
|
138
|
+
const r = t ? `?token=${encodeURIComponent(t)}` : "", a = await c(
|
|
139
|
+
`${i}/personal-agents/${n}/schedules/${e}${r}`,
|
|
140
|
+
{
|
|
141
|
+
...u,
|
|
142
|
+
method: "DELETE"
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
return l(a, "删除定时任务失败");
|
|
146
|
+
}
|
|
147
|
+
async function C(n, e, t, r = "") {
|
|
148
|
+
const a = r ? `?token=${encodeURIComponent(r)}` : "", s = await c(
|
|
149
|
+
`${i}/personal-agents/${n}/schedules/${e}/toggle${a}`,
|
|
150
|
+
{
|
|
151
|
+
...u,
|
|
152
|
+
method: "POST",
|
|
153
|
+
headers: { "Content-Type": "application/json" },
|
|
154
|
+
body: JSON.stringify({ enable: t })
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
return f(s, "切换定时任务状态失败");
|
|
158
|
+
}
|
|
159
|
+
async function G(n, e, t = 1, r = 20, a = "") {
|
|
160
|
+
const s = new URLSearchParams();
|
|
161
|
+
s.set("page", String(t)), s.set("size", String(r)), a && s.set("token", a);
|
|
162
|
+
const o = await c(
|
|
163
|
+
`${i}/personal-agents/${n}/schedules/${e}/logs?${s.toString()}`,
|
|
164
|
+
u
|
|
165
|
+
), d = await l(o, "获取执行历史失败");
|
|
166
|
+
return p(d);
|
|
167
|
+
}
|
|
168
|
+
async function M(n, e, t = "") {
|
|
169
|
+
const r = t ? `?token=${encodeURIComponent(t)}` : "", a = await c(
|
|
170
|
+
`${i}/personal-agents/${n}/schedules/${e}/run${r}`,
|
|
171
|
+
{
|
|
172
|
+
...u,
|
|
173
|
+
method: "POST"
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
return f(a, "手动触发任务失败");
|
|
177
|
+
}
|
|
178
|
+
async function L(n, e = "", t = "") {
|
|
179
|
+
const r = new URLSearchParams();
|
|
180
|
+
e && r.set("keyword", e), t && r.set("token", t);
|
|
181
|
+
const a = await c(
|
|
182
|
+
`${i}/personal-agents/${n}/schedules/staff-search?${r.toString()}`,
|
|
183
|
+
u
|
|
184
|
+
);
|
|
185
|
+
return (await l(a, "搜索员工失败") ?? []).map((o) => {
|
|
186
|
+
const d = (o == null ? void 0 : o.extend) ?? {};
|
|
187
|
+
return {
|
|
188
|
+
userId: String((o == null ? void 0 : o.userId) ?? (o == null ? void 0 : o.id) ?? ""),
|
|
189
|
+
name: String((o == null ? void 0 : o.name) ?? ""),
|
|
190
|
+
accountNo: String((o == null ? void 0 : o.accountNo) ?? ""),
|
|
191
|
+
jobNumber: String((o == null ? void 0 : o.jobNumber) ?? ""),
|
|
192
|
+
flowerName: String((o == null ? void 0 : o.flowerName) ?? d.flowerName ?? "")
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
async function b(n = "", e = 50) {
|
|
197
|
+
const t = new URLSearchParams();
|
|
198
|
+
t.set("limit", String(e)), n && t.set("token", n);
|
|
199
|
+
const r = await c(
|
|
200
|
+
`${i}/personal-agents/schedules/notifications?${t.toString()}`,
|
|
201
|
+
u
|
|
202
|
+
), a = await l(r, "获取通知失败");
|
|
203
|
+
return p(a);
|
|
204
|
+
}
|
|
205
|
+
async function U(n, e = "") {
|
|
206
|
+
const t = e ? `?token=${encodeURIComponent(e)}` : "", r = await c(
|
|
207
|
+
`${i}/personal-agents/schedules/notifications/${n}/read${t}`,
|
|
208
|
+
{
|
|
209
|
+
...u,
|
|
210
|
+
method: "POST"
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
return l(r, "标记已读失败");
|
|
214
|
+
}
|
|
215
|
+
async function P(n = "") {
|
|
216
|
+
const e = n ? `?token=${encodeURIComponent(n)}` : "", t = await c(
|
|
217
|
+
`${i}/personal-agents/schedules/notifications/read-all${e}`,
|
|
218
|
+
{
|
|
219
|
+
...u,
|
|
220
|
+
method: "POST"
|
|
221
|
+
}
|
|
222
|
+
);
|
|
223
|
+
return l(t, "标记已读失败");
|
|
224
|
+
}
|
|
225
|
+
export {
|
|
226
|
+
I as E,
|
|
227
|
+
P as a,
|
|
228
|
+
_ as b,
|
|
229
|
+
G as c,
|
|
230
|
+
T as d,
|
|
231
|
+
R as e,
|
|
232
|
+
b as f,
|
|
233
|
+
O as h,
|
|
234
|
+
U as m,
|
|
235
|
+
M as r,
|
|
236
|
+
L as s,
|
|
237
|
+
C as t,
|
|
238
|
+
w as u
|
|
239
|
+
};
|