@im-more/dsh-dingtalk 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/cordis.patch.yml +11 -0
- package/lib/index.js +2765 -0
- package/lib/index.js.map +1 -0
- package/lib/types/api/alitrip.d.ts +397 -0
- package/lib/types/api/alitrip.d.ts.map +1 -0
- package/lib/types/api/alitrip.js +21 -0
- package/lib/types/api/alitrip.js.map +1 -0
- package/lib/types/api/attendance.d.ts +63 -0
- package/lib/types/api/attendance.d.ts.map +1 -0
- package/lib/types/api/attendance.js +8 -0
- package/lib/types/api/attendance.js.map +1 -0
- package/lib/types/api/badge.d.ts +233 -0
- package/lib/types/api/badge.d.ts.map +1 -0
- package/lib/types/api/badge.js +19 -0
- package/lib/types/api/badge.js.map +1 -0
- package/lib/types/api/blackboard.d.ts +17 -0
- package/lib/types/api/blackboard.d.ts.map +1 -0
- package/lib/types/api/blackboard.js +6 -0
- package/lib/types/api/blackboard.js.map +1 -0
- package/lib/types/api/calendar.d.ts +621 -0
- package/lib/types/api/calendar.d.ts.map +1 -0
- package/lib/types/api/calendar.js +57 -0
- package/lib/types/api/calendar.js.map +1 -0
- package/lib/types/api/card.d.ts +185 -0
- package/lib/types/api/card.d.ts.map +1 -0
- package/lib/types/api/card.js +13 -0
- package/lib/types/api/card.js.map +1 -0
- package/lib/types/api/conference.d.ts +404 -0
- package/lib/types/api/conference.d.ts.map +1 -0
- package/lib/types/api/conference.js +60 -0
- package/lib/types/api/conference.js.map +1 -0
- package/lib/types/api/connector.d.ts +79 -0
- package/lib/types/api/connector.d.ts.map +1 -0
- package/lib/types/api/connector.js +8 -0
- package/lib/types/api/connector.js.map +1 -0
- package/lib/types/api/contact.d.ts +40 -0
- package/lib/types/api/contact.d.ts.map +1 -0
- package/lib/types/api/contact.js +9 -0
- package/lib/types/api/contact.js.map +1 -0
- package/lib/types/api/convFile.d.ts +135 -0
- package/lib/types/api/convFile.d.ts.map +1 -0
- package/lib/types/api/convFile.js +9 -0
- package/lib/types/api/convFile.js.map +1 -0
- package/lib/types/api/crm.d.ts +662 -0
- package/lib/types/api/crm.d.ts.map +1 -0
- package/lib/types/api/crm.js +59 -0
- package/lib/types/api/crm.js.map +1 -0
- package/lib/types/api/customerService.d.ts +128 -0
- package/lib/types/api/customerService.d.ts.map +1 -0
- package/lib/types/api/customerService.js +13 -0
- package/lib/types/api/customerService.js.map +1 -0
- package/lib/types/api/datacenter.d.ts +506 -0
- package/lib/types/api/datacenter.d.ts.map +1 -0
- package/lib/types/api/datacenter.js +61 -0
- package/lib/types/api/datacenter.js.map +1 -0
- package/lib/types/api/devicemng.d.ts +161 -0
- package/lib/types/api/devicemng.d.ts.map +1 -0
- package/lib/types/api/devicemng.js +20 -0
- package/lib/types/api/devicemng.js.map +1 -0
- package/lib/types/api/diot.d.ts +13 -0
- package/lib/types/api/diot.d.ts.map +1 -0
- package/lib/types/api/diot.js +4 -0
- package/lib/types/api/diot.js.map +1 -0
- package/lib/types/api/doc.d.ts +141 -0
- package/lib/types/api/doc.d.ts.map +1 -0
- package/lib/types/api/doc.js +27 -0
- package/lib/types/api/doc.js.map +1 -0
- package/lib/types/api/drive.d.ts +88 -0
- package/lib/types/api/drive.d.ts.map +1 -0
- package/lib/types/api/drive.js +11 -0
- package/lib/types/api/drive.js.map +1 -0
- package/lib/types/api/edu.d.ts +23 -0
- package/lib/types/api/edu.d.ts.map +1 -0
- package/lib/types/api/edu.js +4 -0
- package/lib/types/api/edu.js.map +1 -0
- package/lib/types/api/esign.d.ts +34 -0
- package/lib/types/api/esign.d.ts.map +1 -0
- package/lib/types/api/esign.js +7 -0
- package/lib/types/api/esign.js.map +1 -0
- package/lib/types/api/exclusive.d.ts +304 -0
- package/lib/types/api/exclusive.d.ts.map +1 -0
- package/lib/types/api/exclusive.js +27 -0
- package/lib/types/api/exclusive.js.map +1 -0
- package/lib/types/api/h3yun.d.ts +438 -0
- package/lib/types/api/h3yun.d.ts.map +1 -0
- package/lib/types/api/h3yun.js +33 -0
- package/lib/types/api/h3yun.js.map +1 -0
- package/lib/types/api/hrm.d.ts +215 -0
- package/lib/types/api/hrm.d.ts.map +1 -0
- package/lib/types/api/hrm.js +20 -0
- package/lib/types/api/hrm.js.map +1 -0
- package/lib/types/api/im.d.ts +773 -0
- package/lib/types/api/im.d.ts.map +1 -0
- package/lib/types/api/im.js +72 -0
- package/lib/types/api/im.js.map +1 -0
- package/lib/types/api/industry.d.ts +118 -0
- package/lib/types/api/industry.d.ts.map +1 -0
- package/lib/types/api/industry.js +14 -0
- package/lib/types/api/industry.js.map +1 -0
- package/lib/types/api/jzcrm.d.ts +255 -0
- package/lib/types/api/jzcrm.d.ts.map +1 -0
- package/lib/types/api/jzcrm.js +18 -0
- package/lib/types/api/jzcrm.js.map +1 -0
- package/lib/types/api/link.d.ts +73 -0
- package/lib/types/api/link.d.ts.map +1 -0
- package/lib/types/api/link.js +9 -0
- package/lib/types/api/link.js.map +1 -0
- package/lib/types/api/live.d.ts +132 -0
- package/lib/types/api/live.d.ts.map +1 -0
- package/lib/types/api/live.js +13 -0
- package/lib/types/api/live.js.map +1 -0
- package/lib/types/api/microApp.d.ts +240 -0
- package/lib/types/api/microApp.d.ts.map +1 -0
- package/lib/types/api/microApp.js +29 -0
- package/lib/types/api/microApp.js.map +1 -0
- package/lib/types/api/oapi.d.ts +3362 -0
- package/lib/types/api/oapi.d.ts.map +1 -0
- package/lib/types/api/oapi.js +247 -0
- package/lib/types/api/oapi.js.map +1 -0
- package/lib/types/api/oauth2.d.ts +115 -0
- package/lib/types/api/oauth2.d.ts.map +1 -0
- package/lib/types/api/oauth2.js +12 -0
- package/lib/types/api/oauth2.js.map +1 -0
- package/lib/types/api/pedia.d.ts +186 -0
- package/lib/types/api/pedia.d.ts.map +1 -0
- package/lib/types/api/pedia.js +13 -0
- package/lib/types/api/pedia.js.map +1 -0
- package/lib/types/api/project.d.ts +1119 -0
- package/lib/types/api/project.d.ts.map +1 -0
- package/lib/types/api/project.js +135 -0
- package/lib/types/api/project.js.map +1 -0
- package/lib/types/api/resident.d.ts +107 -0
- package/lib/types/api/resident.d.ts.map +1 -0
- package/lib/types/api/resident.js +10 -0
- package/lib/types/api/resident.js.map +1 -0
- package/lib/types/api/robot.d.ts +256 -0
- package/lib/types/api/robot.d.ts.map +1 -0
- package/lib/types/api/robot.js +21 -0
- package/lib/types/api/robot.js.map +1 -0
- package/lib/types/api/rooms.d.ts +256 -0
- package/lib/types/api/rooms.d.ts.map +1 -0
- package/lib/types/api/rooms.js +23 -0
- package/lib/types/api/rooms.js.map +1 -0
- package/lib/types/api/serviceGroup.d.ts +176 -0
- package/lib/types/api/serviceGroup.d.ts.map +1 -0
- package/lib/types/api/serviceGroup.js +15 -0
- package/lib/types/api/serviceGroup.js.map +1 -0
- package/lib/types/api/storage.d.ts +1241 -0
- package/lib/types/api/storage.d.ts.map +1 -0
- package/lib/types/api/storage.js +128 -0
- package/lib/types/api/storage.js.map +1 -0
- package/lib/types/api/swform.d.ts +71 -0
- package/lib/types/api/swform.d.ts.map +1 -0
- package/lib/types/api/swform.js +8 -0
- package/lib/types/api/swform.js.map +1 -0
- package/lib/types/api/todo.d.ts +169 -0
- package/lib/types/api/todo.d.ts.map +1 -0
- package/lib/types/api/todo.js +16 -0
- package/lib/types/api/todo.js.map +1 -0
- package/lib/types/api/wiki.d.ts +195 -0
- package/lib/types/api/wiki.d.ts.map +1 -0
- package/lib/types/api/wiki.js +11 -0
- package/lib/types/api/wiki.js.map +1 -0
- package/lib/types/api/workbench.d.ts +46 -0
- package/lib/types/api/workbench.d.ts.map +1 -0
- package/lib/types/api/workbench.js +14 -0
- package/lib/types/api/workbench.js.map +1 -0
- package/lib/types/api/yida.d.ts +1838 -0
- package/lib/types/api/yida.d.ts.map +1 -0
- package/lib/types/api/yida.js +103 -0
- package/lib/types/api/yida.js.map +1 -0
- package/lib/types/bot.d.ts +62 -0
- package/lib/types/bot.d.ts.map +1 -0
- package/lib/types/bot.js +134 -0
- package/lib/types/bot.js.map +1 -0
- package/lib/types/config.d.ts +47 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/config.js +53 -0
- package/lib/types/config.js.map +1 -0
- package/lib/types/decode.d.ts +36 -0
- package/lib/types/decode.d.ts.map +1 -0
- package/lib/types/decode.js +200 -0
- package/lib/types/decode.js.map +1 -0
- package/lib/types/errors.d.ts +77 -0
- package/lib/types/errors.d.ts.map +1 -0
- package/lib/types/errors.js +249 -0
- package/lib/types/errors.js.map +1 -0
- package/lib/types/index.d.ts +22 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +22 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/internal.d.ts +15 -0
- package/lib/types/internal.d.ts.map +1 -0
- package/lib/types/internal.js +57 -0
- package/lib/types/internal.js.map +1 -0
- package/lib/types/media.d.ts +57 -0
- package/lib/types/media.d.ts.map +1 -0
- package/lib/types/media.js +99 -0
- package/lib/types/media.js.map +1 -0
- package/lib/types/modes/markdown.d.ts +12 -0
- package/lib/types/modes/markdown.d.ts.map +1 -0
- package/lib/types/modes/markdown.js +148 -0
- package/lib/types/modes/markdown.js.map +1 -0
- package/lib/types/modes/shared.d.ts +183 -0
- package/lib/types/modes/shared.d.ts.map +1 -0
- package/lib/types/modes/shared.js +358 -0
- package/lib/types/modes/shared.js.map +1 -0
- package/lib/types/request.d.ts +63 -0
- package/lib/types/request.d.ts.map +1 -0
- package/lib/types/request.js +182 -0
- package/lib/types/request.js.map +1 -0
- package/lib/types/send.d.ts +38 -0
- package/lib/types/send.d.ts.map +1 -0
- package/lib/types/send.js +128 -0
- package/lib/types/send.js.map +1 -0
- package/lib/types/token.d.ts +32 -0
- package/lib/types/token.d.ts.map +1 -0
- package/lib/types/token.js +62 -0
- package/lib/types/token.js.map +1 -0
- package/lib/types/transport/stream.d.ts +89 -0
- package/lib/types/transport/stream.d.ts.map +1 -0
- package/lib/types/transport/stream.js +345 -0
- package/lib/types/transport/stream.js.map +1 -0
- package/lib/types/transport/webhook.d.ts +54 -0
- package/lib/types/transport/webhook.d.ts.map +1 -0
- package/lib/types/transport/webhook.js +159 -0
- package/lib/types/transport/webhook.js.map +1 -0
- package/lib/types/types/index.d.ts +150 -0
- package/lib/types/types/index.d.ts.map +1 -0
- package/lib/types/types/index.js +43 -0
- package/lib/types/types/index.js.map +1 -0
- package/package.json +61 -3
- package/src/api/.eslintrc.yml +2 -0
- package/src/api/alitrip.ts +467 -0
- package/src/api/attendance.ts +81 -0
- package/src/api/badge.ts +285 -0
- package/src/api/blackboard.ts +28 -0
- package/src/api/calendar.ts +817 -0
- package/src/api/card.ts +215 -0
- package/src/api/conference.ts +561 -0
- package/src/api/connector.ts +97 -0
- package/src/api/contact.ts +56 -0
- package/src/api/convFile.ts +166 -0
- package/src/api/crm.ts +830 -0
- package/src/api/customerService.ts +156 -0
- package/src/api/datacenter.ts +672 -0
- package/src/api/devicemng.ts +202 -0
- package/src/api/diot.ts +19 -0
- package/src/api/doc.ts +232 -0
- package/src/api/drive.ts +109 -0
- package/src/api/edu.ts +30 -0
- package/src/api/esign.ts +44 -0
- package/src/api/exclusive.ts +372 -0
- package/src/api/h3yun.ts +537 -0
- package/src/api/hrm.ts +272 -0
- package/src/api/im.ts +978 -0
- package/src/api/industry.ts +153 -0
- package/src/api/jzcrm.ts +304 -0
- package/src/api/link.ts +94 -0
- package/src/api/live.ts +162 -0
- package/src/api/microApp.ts +309 -0
- package/src/api/oapi.ts +4083 -0
- package/src/api/oauth2.ts +146 -0
- package/src/api/pedia.ts +222 -0
- package/src/api/project.ts +1519 -0
- package/src/api/resident.ts +133 -0
- package/src/api/robot.ts +326 -0
- package/src/api/rooms.ts +334 -0
- package/src/api/serviceGroup.ts +216 -0
- package/src/api/storage.ts +1701 -0
- package/src/api/swform.ts +94 -0
- package/src/api/todo.ts +220 -0
- package/src/api/wiki.ts +231 -0
- package/src/api/workbench.ts +73 -0
- package/src/api/yida.ts +2165 -0
- package/src/bot.ts +211 -0
- package/src/config.ts +88 -0
- package/src/decode.ts +250 -0
- package/src/errors.ts +282 -0
- package/src/index.ts +82 -0
- package/src/internal.ts +60 -0
- package/src/media.ts +149 -0
- package/src/modes/markdown.ts +173 -0
- package/src/modes/shared.ts +473 -0
- package/src/request.ts +262 -0
- package/src/send.ts +195 -0
- package/src/token.ts +72 -0
- package/src/transport/stream.ts +436 -0
- package/src/transport/webhook.ts +198 -0
- package/src/types/index.ts +165 -0
- package/README.md +0 -3
package/src/api/card.ts
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { Internal } from '../internal.ts'
|
|
2
|
+
// GENERATED CONTENT
|
|
3
|
+
|
|
4
|
+
export interface UpdateCardParams {
|
|
5
|
+
/** 外部卡片实例Id。 */
|
|
6
|
+
outTrackId: string
|
|
7
|
+
/** 卡片数据 */
|
|
8
|
+
cardData?: unknown
|
|
9
|
+
/** 用户的私有数据。 */
|
|
10
|
+
privateData?: unknown
|
|
11
|
+
/** 卡片更新选项 */
|
|
12
|
+
cardUpdateOptions?: unknown
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface UpdateCardResponse {
|
|
16
|
+
success?: unknown
|
|
17
|
+
result?: unknown
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface CreateCardParams {
|
|
21
|
+
/** 卡片创建者的userId。 */
|
|
22
|
+
userId?: string
|
|
23
|
+
/** 卡片内容模板ID,可通过登录[开发者后台 > 卡片平台](https://open-dev.dingtalk.com/fe/card)获取。 */
|
|
24
|
+
cardTemplateId: string
|
|
25
|
+
/** 外部卡片实例Id。 */
|
|
26
|
+
outTrackId: string
|
|
27
|
+
/** 卡片回调的类型: */
|
|
28
|
+
callbackType?: string
|
|
29
|
+
/** 卡片回调HTTP模式时的路由 Key,用于查询注册的 callbackUrl。 */
|
|
30
|
+
callbackRouteKey?: string
|
|
31
|
+
/** 卡片数据,示例: */
|
|
32
|
+
cardData: unknown
|
|
33
|
+
/** 用户的私有数据: */
|
|
34
|
+
privateData?: unknown
|
|
35
|
+
/** 动态数据源配置。 */
|
|
36
|
+
openDynamicDataConfig?: unknown
|
|
37
|
+
/** IM 群聊场域信息。 */
|
|
38
|
+
imGroupOpenSpaceModel?: unknown
|
|
39
|
+
/** IM 单聊场域信息。 */
|
|
40
|
+
imRobotOpenSpaceModel?: unknown
|
|
41
|
+
/** 协作场域信息。 */
|
|
42
|
+
coFeedOpenSpaceModel?: unknown
|
|
43
|
+
/** 吊顶场域信息。 */
|
|
44
|
+
topOpenSpaceModel?: unknown
|
|
45
|
+
/** 用户id类型: */
|
|
46
|
+
userIdType?: number
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface CreateCardResponse {
|
|
50
|
+
success?: unknown
|
|
51
|
+
result?: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface CreateAndDeliverParams {
|
|
55
|
+
/** 卡片创建者的userId。 */
|
|
56
|
+
userId?: string
|
|
57
|
+
/** 卡片内容模板ID,可通过登录[开发者后台 > 卡片平台](https://open-dev.dingtalk.com/fe/card)获取。 */
|
|
58
|
+
cardTemplateId: string
|
|
59
|
+
/** 外部卡片实例Id。 */
|
|
60
|
+
outTrackId: string
|
|
61
|
+
/** 卡片回调的类型: */
|
|
62
|
+
callbackType?: string
|
|
63
|
+
/** 卡片回调HTTP模式时的路由 Key,用于查询注册的 callbackUrl。 */
|
|
64
|
+
callbackRouteKey?: string
|
|
65
|
+
/** 卡片数据,示例: */
|
|
66
|
+
cardData: unknown
|
|
67
|
+
/** 用户的私有数据: */
|
|
68
|
+
privateData?: unknown
|
|
69
|
+
/** 动态数据源配置。 */
|
|
70
|
+
openDynamicDataConfig?: unknown
|
|
71
|
+
/** IM群聊场域信息。 */
|
|
72
|
+
imGroupOpenSpaceModel?: unknown
|
|
73
|
+
/** IM机器人单聊场域信息。 */
|
|
74
|
+
imRobotOpenSpaceModel?: unknown
|
|
75
|
+
/** 协作场域信息。 */
|
|
76
|
+
coFeedOpenSpaceModel?: unknown
|
|
77
|
+
/** 吊顶场域信息。 */
|
|
78
|
+
topOpenSpaceModel?: unknown
|
|
79
|
+
/** 表示场域及其场域id,其格式为`dtv1.card//spaceType1.spaceId1;spaceType2.spaceId2_1;spaceType2.spaceId2_2;spaceType3.spaceId3`。 */
|
|
80
|
+
openSpaceId: string
|
|
81
|
+
/** 群聊投放参数。 */
|
|
82
|
+
imGroupOpenDeliverModel?: unknown
|
|
83
|
+
/** IM机器人单聊投放参数。 */
|
|
84
|
+
imRobotOpenDeliverModel?: unknown
|
|
85
|
+
/** 吊顶投放参数。 */
|
|
86
|
+
topOpenDeliverModel?: unknown
|
|
87
|
+
/** 协作投放参数。 */
|
|
88
|
+
coFeedOpenDeliverModel?: unknown
|
|
89
|
+
/** 文档投放参数 */
|
|
90
|
+
docOpenDeliverModel?: unknown
|
|
91
|
+
/** 用户userId类型: */
|
|
92
|
+
userIdType?: number
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface CreateAndDeliverResponse {
|
|
96
|
+
success?: unknown
|
|
97
|
+
result?: {
|
|
98
|
+
outTrackId?: string
|
|
99
|
+
deliverResults?: number
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface RegisterCallbackParams {
|
|
104
|
+
/** 回调地址的路由 Key,一个 callbackRouteKey 仅可映射一个 callbackUrl */
|
|
105
|
+
callbackRouteKey: string
|
|
106
|
+
/** 接受动态卡片回调的 URL 地址 */
|
|
107
|
+
callbackUrl: string
|
|
108
|
+
/** 加密密钥用于校验来源 */
|
|
109
|
+
apiSecret?: string
|
|
110
|
+
/** 是否强制覆盖更新,默认 false。 */
|
|
111
|
+
forceUpdate?: unknown
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface RegisterCallbackResponse {
|
|
115
|
+
success?: unknown
|
|
116
|
+
result?: {
|
|
117
|
+
callbackUrl?: string
|
|
118
|
+
apiSecret?: string
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface AppendSpaceParams {
|
|
123
|
+
/** 外部卡片实例Id。 */
|
|
124
|
+
outTrackId: string
|
|
125
|
+
/** IM群聊场域信息 */
|
|
126
|
+
imGroupOpenSpaceModel?: unknown
|
|
127
|
+
/** 机器人单聊场域参数 */
|
|
128
|
+
imRobotOpenSpaceModel?: unknown
|
|
129
|
+
/** 吊顶场域信息 */
|
|
130
|
+
topOpenSpaceModel?: unknown
|
|
131
|
+
/** 协作场域信息 */
|
|
132
|
+
coFeedOpenSpaceModel?: unknown
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface AppendSpaceResponse {
|
|
136
|
+
success?: unknown
|
|
137
|
+
result?: unknown
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface DeliverCardParams {
|
|
141
|
+
/** 外部卡片实例Id。 */
|
|
142
|
+
outTrackId: string
|
|
143
|
+
/** 表示场域及其场域id,其格式为dtv1.card//spaceType1.spaceId1;spaceType2,spaceId2;spaceType3,spaceId3 */
|
|
144
|
+
openSpaceId: string
|
|
145
|
+
/** 单聊场域投放参数 */
|
|
146
|
+
imSingleOpenDeliverModel?: unknown
|
|
147
|
+
/** 群聊投放参数 */
|
|
148
|
+
imGroupOpenDeliverModel?: unknown
|
|
149
|
+
/** 吊顶投放参数 */
|
|
150
|
+
topOpenDeliverModel?: unknown
|
|
151
|
+
/** 协作投放参数 */
|
|
152
|
+
coFeedOpenDeliverModel?: unknown
|
|
153
|
+
/** 工作台投放参数 */
|
|
154
|
+
workBenchOpenDeliverModel?: unknown
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface DeliverCardResponse {
|
|
158
|
+
success?: unknown
|
|
159
|
+
result?: {
|
|
160
|
+
spaceType?: string
|
|
161
|
+
spaceId?: string
|
|
162
|
+
success?: number
|
|
163
|
+
}[]
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// funcName: isOldApi
|
|
167
|
+
Internal.define({
|
|
168
|
+
'/card/instances': {
|
|
169
|
+
PUT: { updateCard: false },
|
|
170
|
+
POST: { createCard: false },
|
|
171
|
+
},
|
|
172
|
+
'/card/instances/createAndDeliver': { POST: { createAndDeliver: false } },
|
|
173
|
+
'/card/callbacks/register': { POST: { registerCallback: false } },
|
|
174
|
+
'/card/instances/spaces': { PUT: { appendSpace: false } },
|
|
175
|
+
'/card/instances/deliver': { POST: { deliverCard: false } },
|
|
176
|
+
})
|
|
177
|
+
|
|
178
|
+
declare module '../internal' {
|
|
179
|
+
interface Internal {
|
|
180
|
+
/**
|
|
181
|
+
* 更新卡片
|
|
182
|
+
* @see https://open.dingtalk.com/document/orgapp/interactive-card-update-interface
|
|
183
|
+
*/
|
|
184
|
+
updateCard(params: UpdateCardParams): Promise<UpdateCardResponse>
|
|
185
|
+
/**
|
|
186
|
+
* 创建卡片
|
|
187
|
+
* @see https://open.dingtalk.com/document/orgapp/interface-for-creating-a-card-instance
|
|
188
|
+
*/
|
|
189
|
+
createCard(params: CreateCardParams): Promise<CreateCardResponse>
|
|
190
|
+
/**
|
|
191
|
+
* 创建并投放卡片
|
|
192
|
+
* @see https://open.dingtalk.com/document/orgapp/create-and-deliver-cards
|
|
193
|
+
*/
|
|
194
|
+
createAndDeliver(
|
|
195
|
+
params: CreateAndDeliverParams,
|
|
196
|
+
): Promise<CreateAndDeliverResponse>
|
|
197
|
+
/**
|
|
198
|
+
* 注册卡片回调地址
|
|
199
|
+
* @see https://open.dingtalk.com/document/orgapp/register-card-callback-address
|
|
200
|
+
*/
|
|
201
|
+
registerCallback(
|
|
202
|
+
params: RegisterCallbackParams,
|
|
203
|
+
): Promise<RegisterCallbackResponse>
|
|
204
|
+
/**
|
|
205
|
+
* 新增或更新卡片的场域信息
|
|
206
|
+
* @see https://open.dingtalk.com/document/orgapp/add-field-interface
|
|
207
|
+
*/
|
|
208
|
+
appendSpace(params: AppendSpaceParams): Promise<AppendSpaceResponse>
|
|
209
|
+
/**
|
|
210
|
+
* 投放卡片
|
|
211
|
+
* @see https://open.dingtalk.com/document/isvapp/delivery-card-interface
|
|
212
|
+
*/
|
|
213
|
+
deliverCard(params: DeliverCardParams): Promise<DeliverCardResponse>
|
|
214
|
+
}
|
|
215
|
+
}
|