@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
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
export interface CreateBadgeNotifyParams {
|
|
2
|
+
/** 用户userid。 */
|
|
3
|
+
userId: string;
|
|
4
|
+
/** 消息传入,调用方传入,唯一标识消息。 */
|
|
5
|
+
msgId: string;
|
|
6
|
+
/** 消息类型,取值: */
|
|
7
|
+
msgType: string;
|
|
8
|
+
/** 通知内容 */
|
|
9
|
+
content: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateBadgeNotifyResponse {
|
|
12
|
+
result: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface NotifyBadgeCodeVerifyResultParams {
|
|
15
|
+
/** 码值,接入方硬件设备扫描钉工牌二维码获取的码值。 */
|
|
16
|
+
payCode: string;
|
|
17
|
+
/** 企业corpId。 */
|
|
18
|
+
corpId: string;
|
|
19
|
+
/** 用户和企业的关系类型,用于区分内部员工,外部联系人,无关系普通用户。 */
|
|
20
|
+
userCorpRelationType: string;
|
|
21
|
+
/** 用户身份标识。 */
|
|
22
|
+
userIdentity: string;
|
|
23
|
+
/** 验证时间。 */
|
|
24
|
+
verifyTime: string;
|
|
25
|
+
/** 验证结果。 */
|
|
26
|
+
verifyResult: unknown;
|
|
27
|
+
/** 验证地点。 */
|
|
28
|
+
verifyLocation?: string;
|
|
29
|
+
/** 验证流水号,可随机生成,确保用户下唯一 */
|
|
30
|
+
verifyNo?: string;
|
|
31
|
+
/** 验证事件。8个汉字以内,如门禁验证、班车登记、餐盘绑定等。 */
|
|
32
|
+
verifyEvent?: string;
|
|
33
|
+
/** 备注信息。 */
|
|
34
|
+
remark?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface NotifyBadgeCodeVerifyResultResponse {
|
|
37
|
+
result: string;
|
|
38
|
+
}
|
|
39
|
+
export interface SaveBadgeCodeCorpInstanceParams {
|
|
40
|
+
/** 码标识,取值: */
|
|
41
|
+
codeIdentity: string;
|
|
42
|
+
/** 开通的企业corpId。 */
|
|
43
|
+
corpId: string;
|
|
44
|
+
/** 状态,传入关闭状态需要用户手动开启后才会渲染二维码。 */
|
|
45
|
+
status: string;
|
|
46
|
+
/** 扩展参数,是否关联支付宝。 */
|
|
47
|
+
extInfo?: unknown;
|
|
48
|
+
}
|
|
49
|
+
export interface SaveBadgeCodeCorpInstanceResponse {
|
|
50
|
+
codeIdentity?: string;
|
|
51
|
+
corpId?: string;
|
|
52
|
+
status?: string;
|
|
53
|
+
extInfo?: unknown;
|
|
54
|
+
}
|
|
55
|
+
export interface NotifyBadgeCodePayResultParams {
|
|
56
|
+
/** 码值,接入方硬件设备扫描钉工牌二维码获取的码值。 */
|
|
57
|
+
payCode: string;
|
|
58
|
+
/** 企业corpId。 */
|
|
59
|
+
corpId: string;
|
|
60
|
+
/** 用户userid,需要与生成码时传入的**userid**保持一致。 */
|
|
61
|
+
userId: string;
|
|
62
|
+
/** 交易开始时间。 */
|
|
63
|
+
gmtTradeCreate: string;
|
|
64
|
+
/** 交易结束时间。 */
|
|
65
|
+
gmtTradeFinish: string;
|
|
66
|
+
/** 交易号,接入方自身系统针对交易生成的唯一订单号。 */
|
|
67
|
+
tradeNo: string;
|
|
68
|
+
/** 交易状态,取值: */
|
|
69
|
+
tradeStatus: string;
|
|
70
|
+
/** 订单标题。 */
|
|
71
|
+
title: string;
|
|
72
|
+
/** 备注。 */
|
|
73
|
+
remark: string;
|
|
74
|
+
/** 订单金额。 */
|
|
75
|
+
amount: string;
|
|
76
|
+
/** 订单优惠金额。 */
|
|
77
|
+
promotionAmount: string;
|
|
78
|
+
/** 收费金额。 */
|
|
79
|
+
chargeAmount: string;
|
|
80
|
+
/** 支付渠道明细信息。 */
|
|
81
|
+
payChannelDetailList: object[];
|
|
82
|
+
/** 支付失败错误码,当**tradeStatus**为**FAIL**时必须传入。 */
|
|
83
|
+
tradeErrorCode?: string;
|
|
84
|
+
/** 支付失败信息,当**tradeStatus**为**FAIL**时必须传入。 */
|
|
85
|
+
tradeErrorMsg?: string;
|
|
86
|
+
/** 扩展信息。 */
|
|
87
|
+
extInfo?: string;
|
|
88
|
+
/** 商户名称。 */
|
|
89
|
+
merchantName: string;
|
|
90
|
+
}
|
|
91
|
+
export interface NotifyBadgeCodePayResultResponse {
|
|
92
|
+
result: string;
|
|
93
|
+
}
|
|
94
|
+
export interface CreateBadgeCodeUserInstanceParams {
|
|
95
|
+
/** 业务幂等ID,由调用方随机生成。 */
|
|
96
|
+
requestId: string;
|
|
97
|
+
/** 码标识,取值: */
|
|
98
|
+
codeIdentity: string;
|
|
99
|
+
/** 码值,由调用方生成。 */
|
|
100
|
+
codeValue?: string;
|
|
101
|
+
/** 码值类型,可不传,默认为DING_STATIC */
|
|
102
|
+
codeValueType?: string;
|
|
103
|
+
/** 状态,传入关闭状态需要用户手动开启后才会渲染二维码。 */
|
|
104
|
+
status: string;
|
|
105
|
+
/** 企业corpId。 */
|
|
106
|
+
corpId: string;
|
|
107
|
+
/** 用户和企业的关系类型,用于区分内部员工,外部联系人,无关系普通用户。 */
|
|
108
|
+
userCorpRelationType: string;
|
|
109
|
+
/** 用户身份标识。 */
|
|
110
|
+
userIdentity: string;
|
|
111
|
+
/** 临时码过期时间,格式:yyyy-MM-dd HH:mm:ss。 */
|
|
112
|
+
gmtExpired: string;
|
|
113
|
+
/** 有效时间列表,对于连续时间段,只需传入一个对象即可。 */
|
|
114
|
+
availableTimes: object[];
|
|
115
|
+
/** 扩展参数。 */
|
|
116
|
+
extInfo: unknown;
|
|
117
|
+
}
|
|
118
|
+
export interface CreateBadgeCodeUserInstanceResponse {
|
|
119
|
+
codeId: string;
|
|
120
|
+
codeDetailUrl?: string;
|
|
121
|
+
}
|
|
122
|
+
export interface NotifyBadgeCodeRefundResultParams {
|
|
123
|
+
/** 企业的corpId。 */
|
|
124
|
+
corpId: string;
|
|
125
|
+
/** 用户userid,需要与生成码时使用的**userid**保持一致。 */
|
|
126
|
+
userId: string;
|
|
127
|
+
/** 交易订单号,自定义,接入方针对交易生成的唯一订单号。 */
|
|
128
|
+
tradeNo: string;
|
|
129
|
+
/** 本次退款订单号,自定义,接入方针对交易生成的唯一退款订单号。 */
|
|
130
|
+
refundOrderNo: string;
|
|
131
|
+
/** 备注。 */
|
|
132
|
+
remark: string;
|
|
133
|
+
/** 退款金额。 */
|
|
134
|
+
refundAmount: string;
|
|
135
|
+
/** 退款的优惠金额。 */
|
|
136
|
+
refundPromotionAmount: string;
|
|
137
|
+
/** 退款时间。 */
|
|
138
|
+
gmtRefund: string;
|
|
139
|
+
/** 支付渠道明细信息。 */
|
|
140
|
+
payChannelDetailList: object[];
|
|
141
|
+
/** 支付时使用的付款码。 */
|
|
142
|
+
payCode: string;
|
|
143
|
+
}
|
|
144
|
+
export interface NotifyBadgeCodeRefundResultResponse {
|
|
145
|
+
result: string;
|
|
146
|
+
}
|
|
147
|
+
export interface UpdateBadgeCodeUserInstanceParams {
|
|
148
|
+
/** 用户码ID。 */
|
|
149
|
+
codeId: string;
|
|
150
|
+
/** 码标识,取值: */
|
|
151
|
+
codeIdentity: string;
|
|
152
|
+
/** 码值,由调用方生成。 */
|
|
153
|
+
codeValue?: string;
|
|
154
|
+
/** 状态,传入关闭状态需要用户手动开启后才会渲染二维码。 */
|
|
155
|
+
status?: string;
|
|
156
|
+
/** 企业corpId。 */
|
|
157
|
+
corpId: string;
|
|
158
|
+
/** 用户和企业的关系类型,用于区分内部员工,外部联系人,无关系普通用户。 */
|
|
159
|
+
userCorpRelationType: string;
|
|
160
|
+
/** 用户身份标识。 */
|
|
161
|
+
userIdentity: string;
|
|
162
|
+
/** 临时码过期时间,格式:yyyy-MM-dd HH:mm:ss。 */
|
|
163
|
+
gmtExpired: string;
|
|
164
|
+
/** 有效时间列表,对于连续时间段,只需传入一个对象即可。 */
|
|
165
|
+
availableTimes: object[];
|
|
166
|
+
/** 扩展参数。 */
|
|
167
|
+
extInfo: unknown;
|
|
168
|
+
}
|
|
169
|
+
export interface UpdateBadgeCodeUserInstanceResponse {
|
|
170
|
+
codeId?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface DecodeBadgeCodeParams {
|
|
173
|
+
/** 码值,解码接口仅支持钉钉侧生成的码值。 */
|
|
174
|
+
payCode: string;
|
|
175
|
+
/** 请求ID,由调用方随机生成幂等字符串。 */
|
|
176
|
+
requestId: string;
|
|
177
|
+
}
|
|
178
|
+
export interface DecodeBadgeCodeResponse {
|
|
179
|
+
corpId: string;
|
|
180
|
+
userId?: string;
|
|
181
|
+
codeType: string;
|
|
182
|
+
alipayCode: string;
|
|
183
|
+
userCorpRelationType: string;
|
|
184
|
+
codeIdentity?: string;
|
|
185
|
+
codeId?: string;
|
|
186
|
+
outBizId?: string;
|
|
187
|
+
extInfo?: string;
|
|
188
|
+
}
|
|
189
|
+
declare module '../internal' {
|
|
190
|
+
interface Internal {
|
|
191
|
+
/**
|
|
192
|
+
* 钉工牌通知消息
|
|
193
|
+
* @see https://open.dingtalk.com/document/isvapp/dingtalk-badge-notification-message
|
|
194
|
+
*/
|
|
195
|
+
createBadgeNotify(params: CreateBadgeNotifyParams): Promise<CreateBadgeNotifyResponse>;
|
|
196
|
+
/**
|
|
197
|
+
* 通知钉工牌码验证结果
|
|
198
|
+
* @see https://open.dingtalk.com/document/isvapp/notification-dingtalk-badge-verification-result
|
|
199
|
+
*/
|
|
200
|
+
notifyBadgeCodeVerifyResult(params: NotifyBadgeCodeVerifyResultParams): Promise<NotifyBadgeCodeVerifyResultResponse>;
|
|
201
|
+
/**
|
|
202
|
+
* 配置企业钉工牌
|
|
203
|
+
* @see https://open.dingtalk.com/document/isvapp/save-dingtalk-enterprise-instance
|
|
204
|
+
*/
|
|
205
|
+
saveBadgeCodeCorpInstance(params: SaveBadgeCodeCorpInstanceParams): Promise<SaveBadgeCodeCorpInstanceResponse>;
|
|
206
|
+
/**
|
|
207
|
+
* 通知支付结果
|
|
208
|
+
* @see https://open.dingtalk.com/document/isvapp/sync-dingtalk-badge-code-payment-result
|
|
209
|
+
*/
|
|
210
|
+
notifyBadgeCodePayResult(params: NotifyBadgeCodePayResultParams): Promise<NotifyBadgeCodePayResultResponse>;
|
|
211
|
+
/**
|
|
212
|
+
* 创建钉工牌电子码
|
|
213
|
+
* @see https://open.dingtalk.com/document/isvapp/create-a-badge-user-instance
|
|
214
|
+
*/
|
|
215
|
+
createBadgeCodeUserInstance(params: CreateBadgeCodeUserInstanceParams): Promise<CreateBadgeCodeUserInstanceResponse>;
|
|
216
|
+
/**
|
|
217
|
+
* 通知退款结果
|
|
218
|
+
* @see https://open.dingtalk.com/document/isvapp/notification-dingtalk-badge-code-refund-result
|
|
219
|
+
*/
|
|
220
|
+
notifyBadgeCodeRefundResult(params: NotifyBadgeCodeRefundResultParams): Promise<NotifyBadgeCodeRefundResultResponse>;
|
|
221
|
+
/**
|
|
222
|
+
* 更新钉工牌电子码
|
|
223
|
+
* @see https://open.dingtalk.com/document/isvapp/update-dingtalk-user-instance
|
|
224
|
+
*/
|
|
225
|
+
updateBadgeCodeUserInstance(params: UpdateBadgeCodeUserInstanceParams): Promise<UpdateBadgeCodeUserInstanceResponse>;
|
|
226
|
+
/**
|
|
227
|
+
* 解码钉工牌电子码
|
|
228
|
+
* @see https://open.dingtalk.com/document/isvapp/stack-dingtalk-badge
|
|
229
|
+
*/
|
|
230
|
+
decodeBadgeCode(params: DecodeBadgeCodeParams): Promise<DecodeBadgeCodeResponse>;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":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AiC,GACxC,OAAO,CAAC,mCAAmC,CAAC,CAAA;QAC/C;;;WAGG;QACH,eAAe,CACb,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAAA;KACpC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Internal } from "../internal.js";
|
|
2
|
+
// funcName: isOldApi
|
|
3
|
+
Internal.define({
|
|
4
|
+
'/badge/notices': { POST: { createBadgeNotify: false } },
|
|
5
|
+
'/badge/codes/verifyResults': {
|
|
6
|
+
POST: { notifyBadgeCodeVerifyResult: false },
|
|
7
|
+
},
|
|
8
|
+
'/badge/codes/corpInstances': { POST: { saveBadgeCodeCorpInstance: false } },
|
|
9
|
+
'/badge/codes/payResults': { POST: { notifyBadgeCodePayResult: false } },
|
|
10
|
+
'/badge/codes/userInstances': {
|
|
11
|
+
POST: { createBadgeCodeUserInstance: false },
|
|
12
|
+
PUT: { updateBadgeCodeUserInstance: false },
|
|
13
|
+
},
|
|
14
|
+
'/badge/codes/refundResults': {
|
|
15
|
+
POST: { notifyBadgeCodeRefundResult: false },
|
|
16
|
+
},
|
|
17
|
+
'/badge/codes/decode': { POST: { decodeBadgeCode: false } },
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/api/badge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AA+MzC,qBAAqB;AACrB,QAAQ,CAAC,MAAM,CAAC;IACd,gBAAgB,EAAE,EAAE,IAAI,EAAE,EAAE,iBAAiB,EAAE,KAAK,EAAE,EAAE;IACxD,4BAA4B,EAAE;QAC5B,IAAI,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE;KAC7C;IACD,4BAA4B,EAAE,EAAE,IAAI,EAAE,EAAE,yBAAyB,EAAE,KAAK,EAAE,EAAE;IAC5E,yBAAyB,EAAE,EAAE,IAAI,EAAE,EAAE,wBAAwB,EAAE,KAAK,EAAE,EAAE;IACxE,4BAA4B,EAAE;QAC5B,IAAI,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE;QAC5C,GAAG,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE;KAC5C;IACD,4BAA4B,EAAE;QAC5B,IAAI,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE;KAC7C;IACD,qBAAqB,EAAE,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE;CAC5D,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface QueryBlackboardSpaceQuery {
|
|
2
|
+
/** 操作人userId。 */
|
|
3
|
+
operationUserId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface QueryBlackboardSpaceResponse {
|
|
6
|
+
spaceId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare module '../internal' {
|
|
9
|
+
interface Internal {
|
|
10
|
+
/**
|
|
11
|
+
* 获取公告钉盘空间信息
|
|
12
|
+
* @see https://open.dingtalk.com/document/app/obtain-bulletin-nail-disk-space-information
|
|
13
|
+
*/
|
|
14
|
+
queryBlackboardSpace(query: QueryBlackboardSpaceQuery): Promise<QueryBlackboardSpaceResponse>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=blackboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blackboard.d.ts","sourceRoot":"","sources":["../../../src/api/blackboard.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,yBAAyB;IACxC,iBAAiB;IACjB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAOD,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,QAAQ;QAChB;;;WAGG;QACH,oBAAoB,CAClB,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,4BAA4B,CAAC,CAAA;KACzC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blackboard.js","sourceRoot":"","sources":["../../../src/api/blackboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAYzC,qBAAqB;AACrB,QAAQ,CAAC,MAAM,CAAC;IACd,oBAAoB,EAAE,EAAE,GAAG,EAAE,EAAE,oBAAoB,EAAE,KAAK,EAAE,EAAE;CAC/D,CAAC,CAAA"}
|