weaver-work-cli 0.1.67 → 0.1.68
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/chunks/{archive-WUZKAEZ6.js → archive-SJTC5265.js} +12 -8
- package/dist/chunks/{asset-ZPC5VWZM.js → asset-XM3Y4FVU.js} +12 -7
- package/dist/chunks/{attachment-content-7SDA6WER.js → attachment-content-IXIBOET6.js} +3 -3
- package/dist/chunks/{chunk-JU5OPHSY.js → chunk-3NJQTG6X.js} +36 -27
- package/dist/chunks/{chunk-IN6NXQ26.js → chunk-3Q5F4C5B.js} +47 -27
- package/dist/chunks/{chunk-DTJZOAO6.js → chunk-6OK4LW76.js} +7 -7
- package/dist/chunks/{chunk-5QYE52LG.js → chunk-7M5OYRK2.js} +18 -9
- package/dist/chunks/{chunk-6ZOSVKMT.js → chunk-BJNSTCJK.js} +1 -1
- package/dist/chunks/{chunk-RU7ZZQQQ.js → chunk-C5IIIT4D.js} +4 -4
- package/dist/chunks/{chunk-G7PQWD4L.js → chunk-DVFA3ODS.js} +38 -10
- package/dist/chunks/{chunk-ATEXBEPD.js → chunk-LCM5SSGJ.js} +4 -1
- package/dist/chunks/{chunk-KS6LXSCA.js → chunk-LXXR2RRE.js} +73 -69
- package/dist/chunks/{chunk-MRYKV5HN.js → chunk-O7KPHPXQ.js} +35 -35
- package/dist/chunks/{chunk-LNWFHNVK.js → chunk-OKUJY5YB.js} +318 -37
- package/dist/chunks/{chunk-C4YQJFZV.js → chunk-PAWXVT6H.js} +22 -11
- package/dist/chunks/{chunk-TXXO4TJT.js → chunk-QHKY4WZA.js} +2 -2
- package/dist/chunks/{chunk-33ANTJWB.js → chunk-QO6JYDIW.js} +3 -3
- package/dist/chunks/{chunk-R6GGDZ2C.js → chunk-X7ZTM4XG.js} +1 -1
- package/dist/chunks/{chunk-XARLZK6C.js → chunk-Y7RGBRLG.js} +3 -3
- package/dist/chunks/{chunk-4PYLZORW.js → chunk-YSEHTSHS.js} +8 -8
- package/dist/chunks/{conflict-DYCSX7CN.js → conflict-CEXRX2KP.js} +2 -2
- package/dist/chunks/{contract-N5WNHKHI.js → contract-PM3EUPZC.js} +38 -20
- package/dist/chunks/{create-flow-PABAGCK2.js → create-flow-DG6D7U2L.js} +6 -6
- package/dist/chunks/{data-QKWI5325.js → data-3G4GQS5P.js} +13 -1
- package/dist/chunks/{ebuilder-form-ZONRROK4.js → ebuilder-form-5ENYH7IF.js} +1 -1
- package/dist/chunks/{employee-PGMY6NI6.js → employee-QX57HEWS.js} +1 -1
- package/dist/chunks/{entry-mode-C2WPJQJM.js → entry-mode-KMP66KHE.js} +3 -3
- package/dist/chunks/{env-SEEXUXZF.js → env-SW6CTETI.js} +2 -2
- package/dist/chunks/{factory-WNLDOLJZ.js → factory-ETQAICPA.js} +1 -1
- package/dist/chunks/{group-chat-DOS4XWUN.js → group-chat-GTYMCBYS.js} +3 -3
- package/dist/chunks/{hrm-XKL27NX2.js → hrm-5WSMSKPX.js} +3 -3
- package/dist/chunks/{im-NDYIMASG.js → im-P7GNBRG6.js} +1 -1
- package/dist/chunks/{invoice-SMODTN2D.js → invoice-2QCVNXBG.js} +2 -1
- package/dist/chunks/{jiuchuanhui-3T5X7SB7.js → jiuchuanhui-FHGFYAHU.js} +4 -1
- package/dist/chunks/{meeting-2IWXP5IL.js → meeting-3PTTPUSG.js} +11 -11
- package/dist/chunks/{minute-doc-N4OR5OLP.js → minute-doc-3IMRJDJV.js} +2 -2
- package/dist/chunks/{okr-VZXRQGS4.js → okr-OIWJRYWY.js} +7 -1
- package/dist/chunks/{operations-62N6EP3C.js → operations-LQY3FTPH.js} +1 -1
- package/dist/chunks/{org-NFE7X7FK.js → org-MWWIFNAO.js} +1 -1
- package/dist/chunks/{reception-3FT2F66K.js → reception-2VSWJQ5N.js} +4 -2
- package/dist/chunks/{recruit-stage-WPGB5BDJ.js → recruit-stage-KHJYQE3I.js} +4 -1
- package/dist/chunks/{registry-JMNOXRST.js → registry-4S3RXXWS.js} +3 -3
- package/dist/chunks/{registry-E5RQJVWN.js → registry-AC33ZZVH.js} +1 -1
- package/dist/chunks/{registry-ABKBGGGK.js → registry-FXBOGH2X.js} +1 -1
- package/dist/chunks/{registry-XOUVCSV4.js → registry-PHPYTXS4.js} +11 -11
- package/dist/chunks/{room-recommend-TWIEVY44.js → room-recommend-BKCPAXQG.js} +4 -4
- package/dist/chunks/{schedule-XZ4UUX4E.js → schedule-Q3MPSZV6.js} +4 -4
- package/dist/chunks/{smart-extract-DEBLJPCQ.js → smart-extract-TYYKC244.js} +28 -17
- package/dist/chunks/{workflow-D7LBN5MZ.js → workflow-GEDHALMY.js} +1 -1
- package/dist/index.js +15 -15
- package/dist/shortcuts/archive/operations/archive-info.js +9 -5
- package/dist/shortcuts/asset/manifest.js +8 -3
- package/dist/shortcuts/contract/manifest.js +38 -20
- package/dist/shortcuts/data/manifest.js +13 -1
- package/dist/shortcuts/ebuilder-form/manifest.js +38 -10
- package/dist/shortcuts/hrm/operations/employee.js +22 -11
- package/dist/shortcuts/hrm/operations/org.js +18 -9
- package/dist/shortcuts/hrm/operations/position.js +24 -12
- package/dist/shortcuts/hrm/operations/resolve.js +18 -10
- package/dist/shortcuts/im/operations/group-read.js +4 -1
- package/dist/shortcuts/invoice/manifest.js +1 -0
- package/dist/shortcuts/jiuchuanhui/manifest.js +4 -1
- package/dist/shortcuts/meeting/operations/attachment-content.js +25 -16
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +1 -0
- package/dist/shortcuts/meeting/operations/invitation.js +1 -1
- package/dist/shortcuts/meeting/operations/link.js +20 -17
- package/dist/shortcuts/okr/operations/read.js +7 -1
- package/dist/shortcuts/reception/manifest.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -1
- package/dist/shortcuts/smart-extract/operations/structure.js +13 -10
- package/dist/shortcuts/smart-extract/operations/target.js +15 -7
- package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +26 -2
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +23 -4
- package/dist/shortcuts/workflow/operations/deepRead.js +295 -4
- package/dist/shortcuts/workflow/operations/read.js +32 -20
- package/package.json +1 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/SKILL.md +10 -10
- package/skills/weaver-e10-workflow/aiDeepRead/templates//346/261/207/346/200/273/345/256/241/346/211/271-demo.html +92 -12
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +6 -4
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +44 -8
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +84 -12
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
|
@@ -1144,16 +1144,19 @@ var formStructure = {
|
|
|
1144
1144
|
name: "smart-extract.form.structure",
|
|
1145
1145
|
risk: "read",
|
|
1146
1146
|
summary: "\u53D6\u8868\u5355\u7ED3\u6784\u5E76\u5F52\u4E00\u5316\uFF1A\u4F20 workflowId(+nodeId\uFF0C\u7F3A\u7701\u81EA\u52A8\u53D6\u53D1\u8D77\u8282\u70B9) \u8D70\u6D41\u7A0B\u8282\u70B9\u5B57\u6BB5\uFF0C\u4F20 formId \u8D70 EB \u8868\u5355\u3002\u8F93\u51FA mainFieldsStr/subFieldsStr \u538B\u7F29\u4E32\uFF0C\u53EF\u76F4\u63A5\u8FDB\u63D0\u793A\u8BCD\u3002",
|
|
1147
|
-
inputSchema:
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1147
|
+
inputSchema: {
|
|
1148
|
+
...schemaOf({
|
|
1149
|
+
workflowId: { ...SCHEMA_ID, description: "\u6D41\u7A0B\u6A21\u677F ID\uFF08wf\uFF09" },
|
|
1150
|
+
nodeId: { ...SCHEMA_ID, description: "\u6D41\u7A0B\u8282\u70B9 ID\uFF1B\u4E0D\u4F20\u65F6\u81EA\u52A8\u53D6\u53D1\u8D77\u8282\u70B9" },
|
|
1151
|
+
formId: { ...SCHEMA_ID, description: "EB \u8868\u5355 ID\uFF08\u4E0E workflowId \u4E8C\u9009\u4E00\uFF09" },
|
|
1152
|
+
targetFieldIdList: {
|
|
1153
|
+
type: "array",
|
|
1154
|
+
items: { type: "string" },
|
|
1155
|
+
description: "\u53EA\u8F93\u51FA\u8FD9\u4E9B\u5B57\u6BB5 ID\uFF08\u53EF\u9009\uFF09"
|
|
1156
|
+
}
|
|
1157
|
+
}),
|
|
1158
|
+
anyOf: [{ required: ["workflowId"] }, { required: ["formId"] }]
|
|
1159
|
+
},
|
|
1157
1160
|
handler: async (args, env) => {
|
|
1158
1161
|
const workflowId = optionalId(args.workflowId, "workflowId");
|
|
1159
1162
|
const formId = optionalId(args.formId, "formId");
|
|
@@ -2602,13 +2605,21 @@ var targetResolve = {
|
|
|
2602
2605
|
name: "smart-extract.target.resolve",
|
|
2603
2606
|
risk: "read",
|
|
2604
2607
|
summary: "\u628A\u76EE\u6807\u6536\u655B\u6210 ID\uFF1AworkflowId/formId/objId \u76F4\u63A5\u56DE\u663E\u6821\u9A8C\uFF1B\u7ED9 workflowKeyword \u65F6\u5217\u51FA\u5F53\u524D\u7528\u6237\u53EF\u53D1\u8D77\u7684\u6D41\u7A0B\u5E76\u505A\u540D\u79F0\u5339\u914D\u3002\u8FD4\u56DE modeType \u4E0E\u547D\u4E2D\u9879\u3002",
|
|
2605
|
-
inputSchema:
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2608
|
+
inputSchema: {
|
|
2609
|
+
...schemaOf({
|
|
2610
|
+
workflowId: { ...SCHEMA_ID, description: "\u6D41\u7A0B\u6A21\u677F ID" },
|
|
2611
|
+
formId: { ...SCHEMA_ID, description: "EB \u8868\u5355 ID" },
|
|
2612
|
+
objId: { ...SCHEMA_ID, description: "EB \u5EFA\u6A21\u5BF9\u8C61 ID\uFF08\u4F1A\u81EA\u52A8\u8F6C\u6362\u6210 formId\uFF09" },
|
|
2613
|
+
workflowKeyword: { type: "string", description: "\u6D41\u7A0B\u540D\u79F0\u5173\u952E\u5B57\uFF08\u53EA\u5728\u53EF\u53D1\u8D77\u6D41\u7A0B\u91CC\u505A\u5305\u542B\u5339\u914D\uFF09" },
|
|
2614
|
+
limit: { type: "integer", description: "\u5173\u952E\u5B57\u5339\u914D\u8FD4\u56DE\u6761\u6570\u4E0A\u9650\uFF0C\u9ED8\u8BA4 10" }
|
|
2615
|
+
}),
|
|
2616
|
+
anyOf: [
|
|
2617
|
+
{ required: ["workflowId"] },
|
|
2618
|
+
{ required: ["formId"] },
|
|
2619
|
+
{ required: ["objId"] },
|
|
2620
|
+
{ required: ["workflowKeyword"] }
|
|
2621
|
+
]
|
|
2622
|
+
},
|
|
2612
2623
|
handler: async (args, env) => {
|
|
2613
2624
|
const workflowId = optionalId(args.workflowId, "workflowId");
|
|
2614
2625
|
const formId = optionalId(args.formId, "formId");
|
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var builtinShortcuts = [
|
|
|
41
41
|
lazyShortcut({
|
|
42
42
|
name: "invoice",
|
|
43
43
|
description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
|
|
44
|
-
load: async () => (await import("./chunks/invoice-
|
|
44
|
+
load: async () => (await import("./chunks/invoice-2QCVNXBG.js")).invoiceShortcut
|
|
45
45
|
}),
|
|
46
46
|
lazyShortcut({
|
|
47
47
|
name: "ehr",
|
|
@@ -51,7 +51,7 @@ var builtinShortcuts = [
|
|
|
51
51
|
lazyShortcut({
|
|
52
52
|
name: "recruit-stage",
|
|
53
53
|
description: "\u6CDB\u5FAEE10\u62DB\u8058\u52A9\u624B\uFF08JD\u751F\u6210/\u7B80\u5386\u5EFA\u6863/AI\u9762\u8BD5\u9080\u7EA6\uFF09CLI",
|
|
54
|
-
load: async () => (await import("./chunks/recruit-stage-
|
|
54
|
+
load: async () => (await import("./chunks/recruit-stage-KHJYQE3I.js")).recruitStageShortcut
|
|
55
55
|
}),
|
|
56
56
|
lazyShortcut({
|
|
57
57
|
name: "performance",
|
|
@@ -66,7 +66,7 @@ var builtinShortcuts = [
|
|
|
66
66
|
lazyShortcut({
|
|
67
67
|
name: "archive",
|
|
68
68
|
description: "E10 \u6587\u4E66\u5B9A\u6863\u6848\u7BA1\u7406 CLI",
|
|
69
|
-
load: async () => (await import("./chunks/archive-
|
|
69
|
+
load: async () => (await import("./chunks/archive-SJTC5265.js")).archiveShortcut
|
|
70
70
|
}),
|
|
71
71
|
lazyShortcut({
|
|
72
72
|
name: "archive-oa",
|
|
@@ -86,7 +86,7 @@ var builtinShortcuts = [
|
|
|
86
86
|
lazyShortcut({
|
|
87
87
|
name: "hrm",
|
|
88
88
|
description: "\u6CDB\u5FAEE10\u7EC4\u7EC7\u7BA1\u7406\uFF08\u5458\u5DE5/\u7EC4\u7EC7/\u5C97\u4F4D\u67E5\u8BE2\uFF09CLI",
|
|
89
|
-
load: async () => (await import("./chunks/hrm-
|
|
89
|
+
load: async () => (await import("./chunks/hrm-5WSMSKPX.js")).hrmShortcut
|
|
90
90
|
}),
|
|
91
91
|
lazyShortcut({
|
|
92
92
|
name: "mail",
|
|
@@ -96,12 +96,12 @@ var builtinShortcuts = [
|
|
|
96
96
|
lazyShortcut({
|
|
97
97
|
name: "meeting",
|
|
98
98
|
description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
|
|
99
|
-
load: async () => (await import("./chunks/meeting-
|
|
99
|
+
load: async () => (await import("./chunks/meeting-3PTTPUSG.js")).meetingShortcut
|
|
100
100
|
}),
|
|
101
101
|
lazyShortcut({
|
|
102
102
|
name: "okr",
|
|
103
103
|
description: "\u6CDB\u5FAEE10 OKR \u76EE\u6807\u7BA1\u7406 CLI\uFF08\u76EE\u6807\u67E5\u8BE2/\u65B0\u5EFA/\u7F16\u8F91\u3001\u5173\u952E\u6210\u679C\u3001\u76EE\u6807\u5BF9\u9F50\u3001\u8BC4\u8BBA\uFF09",
|
|
104
|
-
load: async () => (await import("./chunks/okr-
|
|
104
|
+
load: async () => (await import("./chunks/okr-OIWJRYWY.js")).okrShortcut
|
|
105
105
|
}),
|
|
106
106
|
lazyShortcut({
|
|
107
107
|
name: "plan",
|
|
@@ -116,17 +116,17 @@ var builtinShortcuts = [
|
|
|
116
116
|
lazyShortcut({
|
|
117
117
|
name: "ebuilder-form",
|
|
118
118
|
description: "\u6CDB\u5FAEE10 eBuilder \u8868\u5355\u83DC\u5355\u3001\u5217\u8868\u548C\u8868\u5355\u6570\u636E CLI",
|
|
119
|
-
load: async () => (await import("./chunks/ebuilder-form-
|
|
119
|
+
load: async () => (await import("./chunks/ebuilder-form-5ENYH7IF.js")).ebuilderFormShortcut
|
|
120
120
|
}),
|
|
121
121
|
lazyShortcut({
|
|
122
122
|
name: "jiuchuanhui",
|
|
123
123
|
description: "\u6CDB\u5FAEE10\u4E5D\u6C1A\u6C47\u8425\u9500\u7BA1\u7406 CLI\uFF08\u5BA2\u6237/\u8054\u7CFB\u4EBA/\u5546\u673A/\u7EBF\u7D22/\u8054\u7CFB\u8BA1\u5212/\u516C\u6D77\uFF09",
|
|
124
|
-
load: async () => (await import("./chunks/jiuchuanhui-
|
|
124
|
+
load: async () => (await import("./chunks/jiuchuanhui-FHGFYAHU.js")).jiuchuanhuiShortcut
|
|
125
125
|
}),
|
|
126
126
|
lazyShortcut({
|
|
127
127
|
name: "asset",
|
|
128
128
|
description: "E10 \u8D44\u4EA7\u7BA1\u7406\uFF08\u8D44\u7BA1\u5BB6\uFF09CLI",
|
|
129
|
-
load: async () => (await import("./chunks/asset-
|
|
129
|
+
load: async () => (await import("./chunks/asset-XM3Y4FVU.js")).assetShortcut
|
|
130
130
|
}),
|
|
131
131
|
lazyShortcut({
|
|
132
132
|
name: "asset-idle",
|
|
@@ -136,7 +136,7 @@ var builtinShortcuts = [
|
|
|
136
136
|
lazyShortcut({
|
|
137
137
|
name: "im",
|
|
138
138
|
description: "\u6CDB\u5FAEE10\u6613\u79D2\u529E\uFF08\u5373\u65F6\u901A\u8BAF\uFF09CLI",
|
|
139
|
-
load: async () => (await import("./chunks/im-
|
|
139
|
+
load: async () => (await import("./chunks/im-P7GNBRG6.js")).imShortcut
|
|
140
140
|
}),
|
|
141
141
|
lazyShortcut({
|
|
142
142
|
name: "project",
|
|
@@ -146,7 +146,7 @@ var builtinShortcuts = [
|
|
|
146
146
|
lazyShortcut({
|
|
147
147
|
name: "workflow",
|
|
148
148
|
description: "\u6CDB\u5FAEE10\u6D41\u7A0B\u667A\u80FD\u52A9\u624B CLI\uFF08\u67E5\u8BE2/\u67E5\u770B/\u64CD\u4F5C/\u6279\u91CF/\u53D1\u8D77/\u4FEE\u6539\uFF09",
|
|
149
|
-
load: async () => (await import("./chunks/workflow-
|
|
149
|
+
load: async () => (await import("./chunks/workflow-GEDHALMY.js")).workflowShortcut
|
|
150
150
|
}),
|
|
151
151
|
lazyShortcut({
|
|
152
152
|
name: "blog",
|
|
@@ -161,22 +161,22 @@ var builtinShortcuts = [
|
|
|
161
161
|
lazyShortcut({
|
|
162
162
|
name: "contract",
|
|
163
163
|
description: "\u6CDB\u5FAEE10\u4ECA\u627F\u8FBE\u5408\u540C\u7BA1\u7406 CLI",
|
|
164
|
-
load: async () => (await import("./chunks/contract-
|
|
164
|
+
load: async () => (await import("./chunks/contract-PM3EUPZC.js")).contractShortcut
|
|
165
165
|
}),
|
|
166
166
|
lazyShortcut({
|
|
167
167
|
name: "reception",
|
|
168
168
|
description: "\u6CDB\u5FAE\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u6D41\u7A0B CLI\uFF08\u9762\u677F/\u884C\u7A0B\u5355\u4E0E\u5185\u90E8\u65B9\u6848/\u586B\u5355\u9875\u9884\u586B\uFF09",
|
|
169
|
-
load: async () => (await import("./chunks/reception-
|
|
169
|
+
load: async () => (await import("./chunks/reception-2VSWJQ5N.js")).receptionShortcut
|
|
170
170
|
}),
|
|
171
171
|
lazyShortcut({
|
|
172
172
|
name: "smart-extract",
|
|
173
173
|
description: "\u6CDB\u5FAEE10\u667A\u80FD\u62BD\u53D6 CLI\uFF08\u8868\u5355\u7ED3\u6784 / \u9644\u4EF6\u6B63\u6587 / \u6821\u9A8C\u5E76\u843D\u5E93\uFF0C\u8FD4\u56DE aiExtraId\uFF09",
|
|
174
|
-
load: async () => (await import("./chunks/smart-extract-
|
|
174
|
+
load: async () => (await import("./chunks/smart-extract-TYYKC244.js")).smartExtractShortcut
|
|
175
175
|
}),
|
|
176
176
|
lazyShortcut({
|
|
177
177
|
name: "data",
|
|
178
178
|
description: "\u6CDB\u5FAEE10\u6570\u636E\u52A9\u624B CLI\uFF08\u6570\u636E\u6E90\u67E5\u8BE2 / \u914D\u7F6E\u4E2D\u5FC3 / \u573A\u666F\u5B9A\u4F4D\uFF09",
|
|
179
|
-
load: async () => (await import("./chunks/data-
|
|
179
|
+
load: async () => (await import("./chunks/data-3G4GQS5P.js")).dataShortcut
|
|
180
180
|
})
|
|
181
181
|
];
|
|
182
182
|
function shortcutMetadata() {
|
|
@@ -21,11 +21,15 @@ const archiveInfoGet = {
|
|
|
21
21
|
summary: '查看档案条目的基本信息(年度/案卷号/起止件号/文件日期/保管期限/密级/库位等);输入为档案标识 {档案ID}_{表单ID}(可来自借阅车 arc_dangan)',
|
|
22
22
|
capability: 'archive',
|
|
23
23
|
risk: READ,
|
|
24
|
-
inputSchema:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
inputSchema: {
|
|
25
|
+
...schemaOf({
|
|
26
|
+
arcDangan: { type: 'string', description: '{档案ID}_{表单ID},与 dataId+formId 二选一' },
|
|
27
|
+
dataId: { type: 'string', pattern: '^\\d+$', description: '档案数据 ID(arc_dangan 拆解前半段)' },
|
|
28
|
+
formId: { type: 'string', pattern: '^\\d+$', description: '档案所属表单 ID(arc_dangan 拆解后半段)' },
|
|
29
|
+
}, { description: '查询档案基本信息;arcDangan 与 dataId+formId 至少提供一组' }),
|
|
30
|
+
// 两组定位方式至少给一组:只给 arcDangan 时由它拆出 dataId+formId(见 handler 的 id_pair_required)
|
|
31
|
+
anyOf: [{ required: ['arcDangan'] }, { required: ['dataId', 'formId'] }],
|
|
32
|
+
},
|
|
29
33
|
handler: async (args, { host }) => {
|
|
30
34
|
let pair;
|
|
31
35
|
if (args.arcDangan !== undefined) {
|
|
@@ -83,6 +83,8 @@ export const ziguanjiaOperations = [
|
|
|
83
83
|
asset_name: { type: 'string' },
|
|
84
84
|
with_view_link: { type: 'boolean', default: true, description: '是否给命中记录附带「查看详情」链接(默认 true)' },
|
|
85
85
|
},
|
|
86
|
+
// id / asset_number / asset_name 至少给一个,否则运行时直接报 input_required
|
|
87
|
+
anyOf: [{ required: ['id'] }, { required: ['asset_number'] }, { required: ['asset_name'] }],
|
|
86
88
|
},
|
|
87
89
|
},
|
|
88
90
|
{
|
|
@@ -139,10 +141,11 @@ export const ziguanjiaOperations = [
|
|
|
139
141
|
type: 'object',
|
|
140
142
|
additionalProperties: false,
|
|
141
143
|
properties: {
|
|
142
|
-
house_name: { type: 'string', description: '地点名称,按名称过滤取 ID' },
|
|
144
|
+
house_name: { type: 'string', description: '地点名称,按名称过滤取 ID(必填)' },
|
|
143
145
|
page_no: { type: 'integer', minimum: 1, default: 1 },
|
|
144
146
|
page_size: { type: 'integer', minimum: 1, maximum: 200, default: 50 },
|
|
145
147
|
},
|
|
148
|
+
required: ['house_name'],
|
|
146
149
|
},
|
|
147
150
|
},
|
|
148
151
|
{
|
|
@@ -153,10 +156,11 @@ export const ziguanjiaOperations = [
|
|
|
153
156
|
type: 'object',
|
|
154
157
|
additionalProperties: false,
|
|
155
158
|
properties: {
|
|
156
|
-
status_name: { type: 'string', description: '状态名称,按名称过滤取 ID' },
|
|
159
|
+
status_name: { type: 'string', description: '状态名称,按名称过滤取 ID(必填)' },
|
|
157
160
|
page_no: { type: 'integer', minimum: 1, default: 1 },
|
|
158
161
|
page_size: { type: 'integer', minimum: 1, maximum: 200, default: 50 },
|
|
159
162
|
},
|
|
163
|
+
required: ['status_name'],
|
|
160
164
|
},
|
|
161
165
|
},
|
|
162
166
|
{
|
|
@@ -167,10 +171,11 @@ export const ziguanjiaOperations = [
|
|
|
167
171
|
type: 'object',
|
|
168
172
|
additionalProperties: false,
|
|
169
173
|
properties: {
|
|
170
|
-
type_name: { type: 'string', description: '类型名称,按名称过滤取 ID' },
|
|
174
|
+
type_name: { type: 'string', description: '类型名称,按名称过滤取 ID(必填)' },
|
|
171
175
|
page_no: { type: 'integer', minimum: 1, default: 1 },
|
|
172
176
|
page_size: { type: 'integer', minimum: 1, maximum: 200, default: 50 },
|
|
173
177
|
},
|
|
178
|
+
required: ['type_name'],
|
|
174
179
|
},
|
|
175
180
|
},
|
|
176
181
|
{
|
|
@@ -107,14 +107,28 @@ const contractAssistantOperationContracts = ([
|
|
|
107
107
|
pageNo: { type: 'integer', minimum: 1 },
|
|
108
108
|
pageSize: { type: 'integer', minimum: 1, maximum: 200 },
|
|
109
109
|
}),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
110
|
+
{
|
|
111
|
+
name: 'contract.assistant.rule.group.query',
|
|
112
|
+
risk: 'read',
|
|
113
|
+
auth: AUTH,
|
|
114
|
+
fixed: { method: 'POST', path: '/api/ebd/contract/ai/config/queryCustomConfigRules' },
|
|
115
|
+
// config_id / configId 二选一:handler 为 requireId(input.config_id ?? input.configId)
|
|
116
|
+
inputSchema: {
|
|
117
|
+
...readSchema({ config_id: idString, configId: idString }),
|
|
118
|
+
anyOf: [{ required: ['config_id'] }, { required: ['configId'] }],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'contract.assistant.element.query',
|
|
123
|
+
risk: 'read',
|
|
124
|
+
auth: AUTH,
|
|
125
|
+
fixed: { method: 'POST', path: '/api/ebd/contract/ai/config/queryElementConfigRules' },
|
|
126
|
+
// config_id / configId 二选一:handler 为 requireId(input.config_id ?? input.configId)
|
|
127
|
+
inputSchema: {
|
|
128
|
+
...readSchema({ config_id: idString, configId: idString }),
|
|
129
|
+
anyOf: [{ required: ['config_id'] }, { required: ['configId'] }],
|
|
130
|
+
},
|
|
131
|
+
},
|
|
118
132
|
assistantRead('contract.assistant.flow.list', {
|
|
119
133
|
method: 'POST',
|
|
120
134
|
path: '/api/ebd/contract/tool/permission/list/page',
|
|
@@ -545,18 +559,22 @@ const quoteContracts = [
|
|
|
545
559
|
name: 'contract.ledger.aggregate',
|
|
546
560
|
risk: 'read',
|
|
547
561
|
fixed: { local: true, kind: 'ledger-aggregate' },
|
|
548
|
-
inputSchema:
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
562
|
+
inputSchema: {
|
|
563
|
+
...readSchema({
|
|
564
|
+
ref: { type: 'string', minLength: 1, description: '单个 refId(weaver-work-cli refs 暂存结果)' },
|
|
565
|
+
refs: { type: 'array', items: { type: 'string' }, description: '多个 refId:分批取数后合并统计' },
|
|
566
|
+
file: { type: 'string', maxLength: 4096, description: '直接给结果 JSON 文件路径(与 ref/refs 可同时使用)' },
|
|
567
|
+
refsDir: { type: 'string', maxLength: 4096, description: 'refs 根目录;默认 ~/.weaver-work-cli/state/refs' },
|
|
568
|
+
by: { type: 'array', items: { type: 'string' }, description: '分组字段(语义键,如 xsjl / khmc);不传只出总计' },
|
|
569
|
+
sum: { type: 'array', items: { type: 'string' }, description: '求和字段(金额,如 htzje / yxje)' },
|
|
570
|
+
where: { type: 'array', items: { type: 'string' }, description: '过滤条件,形如 xsjl=吴洋洋(子串匹配)' },
|
|
571
|
+
dedupe: { type: 'boolean', description: '按 id / form_data_id / rowKey / ebrecord_rowkey 去重(分批窗口重叠时使用)' },
|
|
572
|
+
detail: { type: 'boolean', description: '输出命中明细(签订日期/合同号/客户/销售经理/合同总金额)' },
|
|
573
|
+
limit: { type: 'integer', minimum: 1, maximum: 1000, description: '明细最多返回条数,默认 20' },
|
|
574
|
+
}),
|
|
575
|
+
// 结果来源三选一:handler 无来源时抛 source_required(ledger.ts)
|
|
576
|
+
anyOf: [{ required: ['ref'] }, { required: ['refs'] }, { required: ['file'] }],
|
|
577
|
+
},
|
|
560
578
|
},
|
|
561
579
|
{
|
|
562
580
|
name: 'contract.ledger.metrics',
|
|
@@ -31,7 +31,12 @@ const INPUT_SCHEMAS = {
|
|
|
31
31
|
'data.ds.count': { required: ['group', 'table'], optional: ['where', 'source_type', 'app_id'] },
|
|
32
32
|
'data.noun.list': { required: ['skill'], optional: ['source_type', 'source_group', 'source_table'] },
|
|
33
33
|
'data.noun.scope': { required: ['ids'], optional: [] },
|
|
34
|
-
'data.attribution.metric': {
|
|
34
|
+
'data.attribution.metric': {
|
|
35
|
+
required: [],
|
|
36
|
+
optional: ['ids', 'group_ids', 'item_ids'],
|
|
37
|
+
// 至少其一:handler 三者全空即抛 missing_argument(attribution.ts parseAttributionScopeIds)
|
|
38
|
+
anyOf: [{ required: ['ids'] }, { required: ['group_ids'] }, { required: ['item_ids'] }],
|
|
39
|
+
},
|
|
35
40
|
'data.field.name2id': { required: ['module', 'type', 'name'], optional: ['form_param', 'eb_browser_param', 'property_type'] },
|
|
36
41
|
'data.field.options': { required: ['field_name', 'obj_id', 'group'], optional: ['source_type'] },
|
|
37
42
|
'data.conf.get': { required: ['key'], optional: ['type', 'group'] },
|
|
@@ -58,6 +63,12 @@ const INPUT_SCHEMAS = {
|
|
|
58
63
|
'method', 'fields', 'raw', 'show_params', 'full', 'with_example', 'no_example',
|
|
59
64
|
'dry_run', 'timeout',
|
|
60
65
|
],
|
|
66
|
+
// conf_key + group 与本地 confAttrs(conf_file / attrs)二选一(module.ts 头部两条校验)
|
|
67
|
+
anyOf: [
|
|
68
|
+
{ required: ['conf_key', 'group'] },
|
|
69
|
+
{ required: ['conf_file'] },
|
|
70
|
+
{ required: ['attrs'] },
|
|
71
|
+
],
|
|
61
72
|
},
|
|
62
73
|
'data.attend.statis': { required: [], optional: ['user', 'begin', 'end'] },
|
|
63
74
|
};
|
|
@@ -71,6 +82,7 @@ function inputSchemaOf(name) {
|
|
|
71
82
|
type: 'object',
|
|
72
83
|
properties,
|
|
73
84
|
required: spec.required,
|
|
85
|
+
...(spec.anyOf ? { anyOf: spec.anyOf } : {}),
|
|
74
86
|
additionalProperties: false,
|
|
75
87
|
};
|
|
76
88
|
}
|
|
@@ -81,6 +81,8 @@ export const ebuilderFormOperations = [
|
|
|
81
81
|
orderParams: { type: 'array' },
|
|
82
82
|
passid: { type: 'string' },
|
|
83
83
|
cid: { type: 'string' },
|
|
84
|
+
}, {
|
|
85
|
+
anyOf: [{ required: ['context'] }, { required: ['listId', 'appId'] }, { required: ['menuKeywords'] }, { required: ['menu'] }, { required: ['url'] }],
|
|
84
86
|
}),
|
|
85
87
|
},
|
|
86
88
|
{
|
|
@@ -107,6 +109,8 @@ export const ebuilderFormOperations = [
|
|
|
107
109
|
pageFilter: {},
|
|
108
110
|
customConfig: { type: 'object' },
|
|
109
111
|
refPluginPackageId: { type: 'string' },
|
|
112
|
+
}, {
|
|
113
|
+
anyOf: [{ required: ['context'] }, { required: ['hostPageId', 'appId'] }, { required: ['menuKeywords'] }, { required: ['menu'] }, { required: ['url'] }],
|
|
110
114
|
}),
|
|
111
115
|
},
|
|
112
116
|
{
|
|
@@ -123,6 +127,15 @@ export const ebuilderFormOperations = [
|
|
|
123
127
|
enableMerge: { type: ['boolean', 'string'], default: true },
|
|
124
128
|
customParam: {},
|
|
125
129
|
params: {},
|
|
130
|
+
}, {
|
|
131
|
+
anyOf: [
|
|
132
|
+
{ required: ['context'] },
|
|
133
|
+
{ required: ['url'] },
|
|
134
|
+
{ required: ['menuKeywords'] },
|
|
135
|
+
{ required: ['menu'] },
|
|
136
|
+
{ required: ['objId'] },
|
|
137
|
+
{ required: ['listId', 'appId', 'listKind'] },
|
|
138
|
+
],
|
|
126
139
|
}),
|
|
127
140
|
},
|
|
128
141
|
{
|
|
@@ -130,16 +143,31 @@ export const ebuilderFormOperations = [
|
|
|
130
143
|
summary: '按字段元数据 ID 读取选择类字段选项',
|
|
131
144
|
risk: 'read',
|
|
132
145
|
fixed: { path: '/api/ebuilder/common/ds/options' },
|
|
133
|
-
inputSchema:
|
|
134
|
-
...
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
146
|
+
inputSchema: {
|
|
147
|
+
...schema({
|
|
148
|
+
...contextProperties,
|
|
149
|
+
fieldName: { type: 'string', pattern: '^\\d+$' },
|
|
150
|
+
fieldId: { type: 'string', pattern: '^\\d+$' },
|
|
151
|
+
sourceType: { type: 'string', default: 'FORM' },
|
|
152
|
+
groupId: { type: 'string' },
|
|
153
|
+
optionLevel: { type: ['integer', 'string'], default: 1 },
|
|
154
|
+
}),
|
|
155
|
+
// 两条同时成立:① fieldName / fieldId 二选一;② 上下文至少要能给出一组(resolveContext 最终要求 objId)
|
|
156
|
+
allOf: [
|
|
157
|
+
{ anyOf: [{ required: ['fieldName'] }, { required: ['fieldId'] }] },
|
|
158
|
+
{
|
|
159
|
+
anyOf: [
|
|
160
|
+
{ required: ['context'] },
|
|
161
|
+
{ required: ['objId'] },
|
|
162
|
+
{ required: ['listId', 'appId'] },
|
|
163
|
+
{ required: ['hostPageId', 'appId'] },
|
|
164
|
+
{ required: ['menuKeywords'] },
|
|
165
|
+
{ required: ['menu'] },
|
|
166
|
+
{ required: ['url'] },
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
},
|
|
143
171
|
},
|
|
144
172
|
{
|
|
145
173
|
name: 'ebuilder-form.mapping.get',
|
|
@@ -205,17 +205,28 @@ const employeeQuery = {
|
|
|
205
205
|
action: 'hrm.employee.query',
|
|
206
206
|
summary: '按工号/姓名/手机/邮箱(keyword 自动推断或显式字段)查询员工;默认在职,status 传 ["6"] 查离职;默认每行只回人员信息',
|
|
207
207
|
risk: READ,
|
|
208
|
-
inputSchema:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
208
|
+
inputSchema: {
|
|
209
|
+
...schemaOf({
|
|
210
|
+
keyword: { type: 'string', description: '查询关键词,自动推断:含 @→邮箱;11 位纯数字→手机;纯数字或字母开头含数字→工号;其余→姓名(模糊)' },
|
|
211
|
+
username: { type: 'string', description: '姓名(模糊匹配)' },
|
|
212
|
+
job_num: { type: 'string', description: '工号(模糊匹配)' },
|
|
213
|
+
mobile: { type: 'string', description: '手机号(模糊匹配)' },
|
|
214
|
+
email: { type: 'string', description: '邮箱(模糊匹配)' },
|
|
215
|
+
status: { type: 'array', items: { type: 'string', enum: [...EMPLOYEE_STATUS] }, description: '默认 ["normal"] 在职;["6"] 离职。不能单独作为收敛条件' },
|
|
216
|
+
full: { type: 'boolean', description: '默认 false:每行只回人员信息(id/name/department/position/statusCode/link);true:回完整行(另含 userid/cid/mobile/departmentId/deptLink)' },
|
|
217
|
+
all: { type: 'boolean', description: 'true = 自动翻页拉全量(最多 50 页);结果多时建议直接传,避免只拿到第一页' },
|
|
218
|
+
...SCHEMA_PAGE,
|
|
219
|
+
}),
|
|
220
|
+
anyOf: [
|
|
221
|
+
{ required: ['keyword'] },
|
|
222
|
+
{ required: ['username'] },
|
|
223
|
+
{ required: ['job_num'] },
|
|
224
|
+
{ required: ['mobile'] },
|
|
225
|
+
{ required: ['email'] },
|
|
226
|
+
// all:true 是「无收敛条件拉全员」的显式开关(见 resolveEmployeeCondition),all:false 不算条件
|
|
227
|
+
{ required: ['all'], properties: { all: { const: true } } },
|
|
228
|
+
],
|
|
229
|
+
},
|
|
219
230
|
handler: async (args, { host }) => {
|
|
220
231
|
const { field, value } = resolveEmployeeCondition(args);
|
|
221
232
|
const status = Array.isArray(args.status) && args.status.length > 0 ? args.status : ['normal'];
|
|
@@ -15,15 +15,24 @@ const orgQuery = {
|
|
|
15
15
|
action: 'hrm.org.query',
|
|
16
16
|
summary: '按名称/编号/上级组织查询分部或部门(type 区分;不传 type 时默认部门,可用 type 切分部分部)',
|
|
17
17
|
risk: READ,
|
|
18
|
-
inputSchema:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
inputSchema: {
|
|
19
|
+
...schemaOf({
|
|
20
|
+
type: { type: 'string', enum: [...ORG_TYPES], description: 'subcompany 分部 / department 部门;不传默认 department' },
|
|
21
|
+
name: { type: 'string', description: '名称(模糊包含匹配)' },
|
|
22
|
+
code: { type: 'string', description: '编号(模糊包含匹配)' },
|
|
23
|
+
parent: { type: 'array', items: SCHEMA_ID, description: '上级部门 id 数组(部门挂在部门下,department)' },
|
|
24
|
+
subcompany: { type: 'array', items: SCHEMA_ID, description: '上级分部 id 数组(部门挂在分部下,department)' },
|
|
25
|
+
supSubDepartment: { type: 'array', items: SCHEMA_ID, description: '上级分部 id 数组(分部挂在分部下,subcompany)' },
|
|
26
|
+
...SCHEMA_PAGE,
|
|
27
|
+
}),
|
|
28
|
+
anyOf: [
|
|
29
|
+
{ required: ['name'] },
|
|
30
|
+
{ required: ['code'] },
|
|
31
|
+
{ required: ['parent'] },
|
|
32
|
+
{ required: ['subcompany'] },
|
|
33
|
+
{ required: ['supSubDepartment'] },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
27
36
|
handler: async (args, { host }) => {
|
|
28
37
|
const type = args.type === undefined ? 'department' : String(args.type);
|
|
29
38
|
if (!ORG_TYPES.includes(type)) {
|
|
@@ -44,11 +44,14 @@ const positionQuery = {
|
|
|
44
44
|
action: 'hrm.position.query',
|
|
45
45
|
summary: '按名称/编号查岗位(快捷搜索名称编号合一;显式 name/code 走高级条件)',
|
|
46
46
|
risk: READ,
|
|
47
|
-
inputSchema:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
inputSchema: {
|
|
48
|
+
...schemaOf({
|
|
49
|
+
keyword: { type: 'string', description: '快捷搜索关键词,名称与编号合一匹配' },
|
|
50
|
+
name: { type: 'string', description: '岗位名称(包含匹配)' },
|
|
51
|
+
code: { type: 'string', description: '岗位编号(精确匹配)' },
|
|
52
|
+
}),
|
|
53
|
+
anyOf: [{ required: ['keyword'] }, { required: ['name'] }, { required: ['code'] }],
|
|
54
|
+
},
|
|
52
55
|
handler: async (args, { host }) => {
|
|
53
56
|
const name = args.name === undefined ? '' : String(args.name).trim();
|
|
54
57
|
const code = args.code === undefined ? '' : String(args.code).trim();
|
|
@@ -127,13 +130,22 @@ const positionList = {
|
|
|
127
130
|
action: 'hrm.position.list',
|
|
128
131
|
summary: '按组织/名称/编号批量查询岗位(岗位地址簿,一次性 + 自动翻页;无过滤需显式 all=true)',
|
|
129
132
|
risk: READ,
|
|
130
|
-
inputSchema:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
inputSchema: {
|
|
134
|
+
...schemaOf({
|
|
135
|
+
org: SCHEMA_ID,
|
|
136
|
+
name: { type: 'string', description: '岗位名称过滤(与 code 二选一)' },
|
|
137
|
+
code: { type: 'string', description: '岗位编号过滤(与 name 二选一)' },
|
|
138
|
+
all: { type: 'boolean', description: '显式确认全量拉取(无 org/name/code 过滤时必填 true)' },
|
|
139
|
+
pageSize: SCHEMA_ID,
|
|
140
|
+
}),
|
|
141
|
+
anyOf: [
|
|
142
|
+
{ required: ['org'] },
|
|
143
|
+
{ required: ['name'] },
|
|
144
|
+
{ required: ['code'] },
|
|
145
|
+
// 无过滤时必须显式 all=true(见 handler 的 full_pull_blocked),all:false 不算
|
|
146
|
+
{ required: ['all'], properties: { all: { const: true } } },
|
|
147
|
+
],
|
|
148
|
+
},
|
|
137
149
|
handler: async (args, { host }) => {
|
|
138
150
|
const hasFilter = args.org !== undefined || args.name !== undefined || args.code !== undefined;
|
|
139
151
|
if (!hasFilter && args.all !== true) {
|
|
@@ -270,16 +270,24 @@ const orgResolve = {
|
|
|
270
270
|
action: 'hrm.org.resolve',
|
|
271
271
|
summary: '按「多维名称 + 部门/分部名称」解析组织:自动取全量多维→精确优先/模糊兜底匹配→按维度查组织;歧义时返回候选待用户确认',
|
|
272
272
|
risk: READ,
|
|
273
|
-
inputSchema:
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
273
|
+
inputSchema: {
|
|
274
|
+
...schemaOf({
|
|
275
|
+
virtual: { type: 'string', description: '多维名称(如「行政组织」「1号维度」);精确优先,未命中按包含模糊匹配' },
|
|
276
|
+
name: { type: 'string', description: '部门或分部名称;精确优先,未命中按包含模糊匹配' },
|
|
277
|
+
type: { type: 'string', enum: [...ORG_TYPES], description: `department 部门 / subcompany 分部;不传时同时检索两者、按部门优先定位,并把同名另一类型节点回在 alsoMatched` },
|
|
278
|
+
virtualId: { ...SCHEMA_ID, description: '多维 id;用户确认后复调可直接传,跳过维度名称匹配' },
|
|
279
|
+
orgId: { ...SCHEMA_ID, description: '组织节点 id;用户确认后复调可直接传,跳过名称匹配' },
|
|
280
|
+
maxCandidates: { ...SCHEMA_ID, description: `歧义时最多回传的候选条数,1~${MAX_CANDIDATES_LIMIT},默认 ${MAX_CANDIDATES}` },
|
|
281
|
+
}, {
|
|
282
|
+
description: '首调必填 virtual + name;复调可用 virtualId / orgId 直接定位。结果以 data.status 判定(resolved / ambiguous / not_found)。',
|
|
283
|
+
}),
|
|
284
|
+
anyOf: [
|
|
285
|
+
{ required: ['virtual', 'name'] },
|
|
286
|
+
{ required: ['virtual', 'orgId'] },
|
|
287
|
+
{ required: ['virtualId', 'name'] },
|
|
288
|
+
{ required: ['virtualId', 'orgId'] },
|
|
289
|
+
],
|
|
290
|
+
},
|
|
283
291
|
handler: async (args, { host }) => {
|
|
284
292
|
const typeArg = optionalText(args.type);
|
|
285
293
|
if (typeArg && !ORG_TYPES.includes(typeArg)) {
|
|
@@ -68,7 +68,10 @@ const groupSearch = {
|
|
|
68
68
|
createBegin: { type: 'integer', description: '创建时间下界(unix 秒)' },
|
|
69
69
|
createEnd: { type: 'integer', description: '创建时间上界(unix 秒)' },
|
|
70
70
|
pageSize: { type: 'integer', minimum: 1, maximum: 200, description: '每页大小(默认 100)' },
|
|
71
|
-
}, {
|
|
71
|
+
}, {
|
|
72
|
+
requiredAny: ['name', 'type', 'members', 'owner', 'creator', 'today', 'yesterday', 'createBegin', 'createEnd'],
|
|
73
|
+
description: '至少提供一个搜索条件',
|
|
74
|
+
}),
|
|
72
75
|
handler: async (args, { host }) => {
|
|
73
76
|
const cond = {};
|
|
74
77
|
let mask = 0;
|