dingtalk-mcp 1.1.19 → 1.1.20
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.
|
@@ -336,7 +336,7 @@ export class DingTalkMCPServer {
|
|
|
336
336
|
timeout: 30000
|
|
337
337
|
});
|
|
338
338
|
if (this.debug) {
|
|
339
|
-
console.
|
|
339
|
+
console.error(response)
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
return {
|
|
@@ -347,7 +347,7 @@ export class DingTalkMCPServer {
|
|
|
347
347
|
};
|
|
348
348
|
} catch (error) {
|
|
349
349
|
if (this.debug) {
|
|
350
|
-
console.
|
|
350
|
+
console.error(error)
|
|
351
351
|
}
|
|
352
352
|
let errorMessage = error.message;
|
|
353
353
|
if (axios.isAxiosError(error) && error.response) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
**条件查询配置**
|
|
2
2
|
---------------------------
|
|
3
|
-
| **字段类型** | **可用操作符** | **查询条件值**
|
|
4
|
-
|
|
5
|
-
| 文本 | equal \| notEqual \| contain \| notContain \| empty \| notEmpty | 示例:`["abc"]`<br/> operator 是 empty/notEmpty 时不需要传值。
|
|
6
|
-
| 数字 | equal \| notEqual \| greater \| greaterEqual \| less \| lessEqual \| empty \| notEmpty | 示例:`["123"]` <br/>operator 是 empty/notEmpty 时不需要传值。
|
|
7
|
-
| 单选 | equal \| notEqual \| contain \| notContain \| empty \| notEmpty | 示例: `["option1", "optionId2"]` <br/>operator 是 contain 时,包含 value 中的任何一个选项即满足条件。<br/>operator 是 notContain 时,不包含 value 中的所有选项即满足条件。<br/> operator 是 empty/notEmpty 时不需要传值。
|
|
8
|
-
| 多选 | 同「单选」 | 同「单选」
|
|
9
|
-
| 日期 | equal \| greater \| less \| empty \| notEmpty | 示例: `["2024-09-27"\| timestamp]` <br/>operator 是 empty/notEmpty 时不需要传值。
|
|
10
|
-
| 人员 | equal \| notEqual \| contain \| notContain \| empty \| notEmpty | 示例: `[{"unionId": "xxx"}, {"unionId": "yyy"}]`<br/>operator 是 contain 时,包含 value 中的任何一个选项即满足条件。<br/> operator 是 notContain 时,不包含 value 中的所有选项即满足条件。<br/>operator 是 empty/notEmpty 时不需要传值。 |
|
|
11
|
-
| 部门 | equal \| notEqual \| contain \| notContain \| empty \| notEmpty | 示例: `[{"deptId": "xxx"}, {"deptId": "yyy"}]`<br/>operator 是 contain 时,包含 value 中的任何一个选项即满足条件。<br/> operator 是 notContain 时,不包含 value 中的所有选项即满足条件。<br/>operator 是 empty/notEmpty 时不需要传值。
|
|
3
|
+
| **字段类型** | **可用操作符** | **查询条件值** |
|
|
4
|
+
|----------|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
5
|
+
| 文本 | equal \| notEqual \| contain \| notContain \| empty \| notEmpty | 示例:`["abc"]`<br/> operator 是 empty/notEmpty 时不需要传值。 |
|
|
6
|
+
| 数字 | equal \| notEqual \| greater \| greaterEqual \| less \| lessEqual \| empty \| notEmpty | 示例:`["123"]` <br/>operator 是 empty/notEmpty 时不需要传值。 |
|
|
7
|
+
| 单选 | equal \| notEqual \| contain \| notContain \| empty \| notEmpty | 示例: `["option1", "optionId2"]` <br/>operator 是 contain 时,包含 value 中的任何一个选项即满足条件。<br/>operator 是 notContain 时,不包含 value 中的所有选项即满足条件。<br/> operator 是 empty/notEmpty 时不需要传值。 |
|
|
8
|
+
| 多选 | 同「单选」 | 同「单选」 |
|
|
9
|
+
| 日期 | equal \| greater \| less \| empty \| notEmpty | 示例: `["2024-09-27"\| timestamp]` <br/>operator 是 empty/notEmpty 时不需要传值。 |
|
|
10
|
+
| 人员 | equal \| notEqual \| contain \| notContain \| empty \| notEmpty | 示例: `[{"unionId": "xxx"}, {"unionId": "yyy"}]`<br/>operator 是 contain 时,包含 value 中的任何一个选项即满足条件。<br/> operator 是 notContain 时,不包含 value 中的所有选项即满足条件。<br/>operator 是 empty/notEmpty 时不需要传值。 特别注意:uniondId是对应人员的unionId. |
|
|
11
|
+
| 部门 | equal \| notEqual \| contain \| notContain \| empty \| notEmpty | 示例: `[{"deptId": "xxx"}, {"deptId": "yyy"}]`<br/>operator 是 contain 时,包含 value 中的任何一个选项即满足条件。<br/> operator 是 notContain 时,不包含 value 中的所有选项即满足条件。<br/>operator 是 empty/notEmpty 时不需要传值。 |
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
不同字段类型所使用的格式请参考下表:
|
|
5
5
|
|
|
6
|
-
| 字段名 | 类型 (type) | 设置值(新增/更新记录时使用的格式) |
|
|
7
|
-
| --- | ---
|
|
8
|
-
| 文本 | text | `"TextString" // 字符串` |
|
|
9
|
-
| 数字 | number | `123 // 支持整数/浮点数/字符串` |
|
|
10
|
-
| 单选 | singleSelect | `"optionName1" // 单选选项名` |
|
|
11
|
-
| 多选 | multipleSelect | `["optionName1", "optionName2"] // 多选选项名` |
|
|
12
|
-
| 日期 | date | `1688601600000 // 时间戳 "2023-12-20 03:00" // 或者 ISO 8601字符串` |
|
|
13
|
-
| 人员 | user | `[ { unionId: "xxx" } ]` |
|
|
14
|
-
| 部门 | department | `[ { deptId: "xxx" } ]` |
|
|
15
|
-
| 附件 | attachment | 具体请参考[上传附件](https://open.dingtalk.com/document/orgapp/notable-upload-attachment) 。 |
|
|
16
|
-
| 单向关联 | unidirectionalLink | `{ "linkedRecordIds": [ "xxx", "yyy" ] }` |
|
|
17
|
-
| 双向关联 | bidirectionalLink | `{ "linkedRecordIds": [ "xxx", "yyy" ] }` |
|
|
18
|
-
| 链接 | url | `{ "text": "Dingtalk", "link": "https://dingtalk.com" }` |
|
|
6
|
+
| 字段名 | 类型 (type) | 设置值(新增/更新记录时使用的格式) |
|
|
7
|
+
| --- | --- |------------------------------------------------------------------------------------|
|
|
8
|
+
| 文本 | text | `"TextString" // 字符串` |
|
|
9
|
+
| 数字 | number | `123 // 支持整数/浮点数/字符串` |
|
|
10
|
+
| 单选 | singleSelect | `"optionName1" // 单选选项名` |
|
|
11
|
+
| 多选 | multipleSelect | `["optionName1", "optionName2"] // 多选选项名` |
|
|
12
|
+
| 日期 | date | `1688601600000 // 时间戳 "2023-12-20 03:00" // 或者 ISO 8601字符串` |
|
|
13
|
+
| 人员 | user | `[ { unionId: "xxx" } ]` |
|
|
14
|
+
| 部门 | department | `[ { deptId: "xxx" } ]` |
|
|
15
|
+
| 附件 | attachment | 具体请参考[上传附件](https://open.dingtalk.com/document/orgapp/notable-upload-attachment) 。 |
|
|
16
|
+
| 单向关联 | unidirectionalLink | `{ "linkedRecordIds": [ "xxx", "yyy" ] }` |
|
|
17
|
+
| 双向关联 | bidirectionalLink | `{ "linkedRecordIds": [ "xxx", "yyy" ] }` |
|
|
18
|
+
| 链接 | url | `{ "text": "Dingtalk", "link": "https://dingtalk.com" }` |
|