@satorijs/adapter-dingtalk 1.0.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/lib/api/alitrip.d.ts +396 -0
- package/lib/api/attendance.d.ts +62 -0
- package/lib/api/badge.d.ts +232 -0
- package/lib/api/blackboard.d.ts +16 -0
- package/lib/api/calendar.d.ts +620 -0
- package/lib/api/card.d.ts +184 -0
- package/lib/api/conference.d.ts +403 -0
- package/lib/api/connector.d.ts +78 -0
- package/lib/api/contact.d.ts +39 -0
- package/lib/api/convFile.d.ts +134 -0
- package/lib/api/crm.d.ts +661 -0
- package/lib/api/customerService.d.ts +127 -0
- package/lib/api/datacenter.d.ts +505 -0
- package/lib/api/devicemng.d.ts +160 -0
- package/lib/api/diot.d.ts +12 -0
- package/lib/api/doc.d.ts +140 -0
- package/lib/api/drive.d.ts +87 -0
- package/lib/api/edu.d.ts +22 -0
- package/lib/api/esign.d.ts +33 -0
- package/lib/api/exclusive.d.ts +303 -0
- package/lib/api/h3yun.d.ts +437 -0
- package/lib/api/hrm.d.ts +214 -0
- package/lib/api/im.d.ts +772 -0
- package/lib/api/industry.d.ts +117 -0
- package/lib/api/jzcrm.d.ts +254 -0
- package/lib/api/link.d.ts +72 -0
- package/lib/api/live.d.ts +131 -0
- package/lib/api/microApp.d.ts +239 -0
- package/lib/api/oapi.d.ts +3361 -0
- package/lib/api/oauth2.d.ts +114 -0
- package/lib/api/pedia.d.ts +185 -0
- package/lib/api/project.d.ts +1118 -0
- package/lib/api/resident.d.ts +106 -0
- package/lib/api/robot.d.ts +255 -0
- package/lib/api/rooms.d.ts +255 -0
- package/lib/api/serviceGroup.d.ts +175 -0
- package/lib/api/storage.d.ts +1240 -0
- package/lib/api/swform.d.ts +70 -0
- package/lib/api/todo.d.ts +168 -0
- package/lib/api/wiki.d.ts +194 -0
- package/lib/api/workbench.d.ts +45 -0
- package/lib/api/yida.d.ts +1837 -0
- package/lib/bot.d.ts +30 -0
- package/lib/http.d.ts +7 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +1814 -0
- package/lib/index.js.map +7 -0
- package/lib/internal.d.ts +7 -0
- package/lib/message.d.ts +17 -0
- package/lib/types/index.d.ts +133 -0
- package/lib/utils.d.ts +4 -0
- package/lib/ws.d.ts +12 -0
- package/package.json +31 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export interface AddMemberToServiceGroupParams {
|
|
2
|
+
/** 开放团队ID。如下图所示,查看**ID信息**内的**团队ID**值。 */
|
|
3
|
+
openTeamId: string;
|
|
4
|
+
/** 服务群openConversionId,调用[创建场景服务群](https://open.dingtalk.com/document/orgapp-server/create-a-scenario-service-group)接口获取openConversationId参数值。 */
|
|
5
|
+
openConversationId: string;
|
|
6
|
+
/** 待添加员工在钉钉组织内的的userId列表,最大值100。 */
|
|
7
|
+
userIds: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface AddMemberToServiceGroupResponse {
|
|
10
|
+
success?: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface SendMsgByTaskParams {
|
|
13
|
+
/** 团队ID。 */
|
|
14
|
+
openTeamId: string;
|
|
15
|
+
/** 群发任务名称。 */
|
|
16
|
+
taskName: string;
|
|
17
|
+
/** 群发内容。 */
|
|
18
|
+
messageContent: unknown;
|
|
19
|
+
/** 查询条件。 */
|
|
20
|
+
queryGroup: unknown;
|
|
21
|
+
/** 发送配置。 */
|
|
22
|
+
sendConfig: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface SendMsgByTaskResponse {
|
|
25
|
+
openBatchTaskId?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface UpgradeNormalGroupParams {
|
|
28
|
+
/** 升级的目标群组ID。 */
|
|
29
|
+
openGroupSetId?: string;
|
|
30
|
+
/** 升级的目标群模板ID。 */
|
|
31
|
+
templateId?: string;
|
|
32
|
+
/** 群ID。 */
|
|
33
|
+
openConversationId: string;
|
|
34
|
+
/** 升级的目标团队ID。 */
|
|
35
|
+
openTeamId?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface UpgradeCloudGroupParams {
|
|
38
|
+
/** 群ID。 */
|
|
39
|
+
openConversationId: string;
|
|
40
|
+
/** 升级的目标群模板ID。 */
|
|
41
|
+
templateId?: string;
|
|
42
|
+
/** 升级的目标群组ID。 */
|
|
43
|
+
openGroupSetId?: string;
|
|
44
|
+
/** 智能云客服租户ID。 */
|
|
45
|
+
ccsInstanceId: string;
|
|
46
|
+
/** 升级的目标团队ID。 */
|
|
47
|
+
openTeamId?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface QueryActiveUsersQuery {
|
|
50
|
+
/** 开放团队ID。 */
|
|
51
|
+
openTeamId?: string;
|
|
52
|
+
/** 群ID。 */
|
|
53
|
+
openConversationId: string;
|
|
54
|
+
/** 活跃度排名topN,如top5,最多支持top100 */
|
|
55
|
+
topN?: number;
|
|
56
|
+
}
|
|
57
|
+
export interface QueryActiveUsersResponse {
|
|
58
|
+
activeUserInfos: {
|
|
59
|
+
unionId: string;
|
|
60
|
+
nickName: string;
|
|
61
|
+
actionIndexL7d: number;
|
|
62
|
+
actionIndexL14d: number;
|
|
63
|
+
actionIndexL30d: number;
|
|
64
|
+
activeScore: number;
|
|
65
|
+
ranking: number;
|
|
66
|
+
}[];
|
|
67
|
+
}
|
|
68
|
+
export interface SendServiceGroupMessageParams {
|
|
69
|
+
/** 开放群ID。 */
|
|
70
|
+
targetOpenConversationId: string;
|
|
71
|
+
/** 标题。 */
|
|
72
|
+
title: string;
|
|
73
|
+
/** 消息内容。 */
|
|
74
|
+
content: string;
|
|
75
|
+
/** 是否 at所有人 */
|
|
76
|
+
isAtAll?: unknown;
|
|
77
|
+
/** 被@人的手机号列表。 */
|
|
78
|
+
atMobiles?: string[];
|
|
79
|
+
/** 被@人的dingtalkId列表。 */
|
|
80
|
+
atDingtalkIds?: string[];
|
|
81
|
+
/** 被@人的unionId列表。 */
|
|
82
|
+
atUnionIds?: string[];
|
|
83
|
+
/** 手机号接收者列表。 */
|
|
84
|
+
receiverMobiles?: string[];
|
|
85
|
+
/** dingtalkId接收者列表。 */
|
|
86
|
+
receiverDingtalkIds?: string[];
|
|
87
|
+
/** unionId接收者列表。 */
|
|
88
|
+
receiverUnionIds?: string[];
|
|
89
|
+
/** 消息类型,取值。 */
|
|
90
|
+
messageType: string;
|
|
91
|
+
/** 排列方式。 */
|
|
92
|
+
btnOrientation?: string;
|
|
93
|
+
/** actionCard按钮。 */
|
|
94
|
+
btns?: object[];
|
|
95
|
+
/** 消息内容是否含有链接。 */
|
|
96
|
+
hasContentLinks?: unknown;
|
|
97
|
+
}
|
|
98
|
+
export interface SendServiceGroupMessageResponse {
|
|
99
|
+
openMsgTaskId: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ServiceGroupCreateGroupParams {
|
|
102
|
+
/** 业务关联ID,自定义参数值。 */
|
|
103
|
+
groupBizId?: string;
|
|
104
|
+
/** 开放团队ID。 */
|
|
105
|
+
openTeamId: string;
|
|
106
|
+
/** 开放群组ID。 */
|
|
107
|
+
openGroupSetId: string;
|
|
108
|
+
/** 群名称。 */
|
|
109
|
+
groupName: string;
|
|
110
|
+
/** 群主员工userid。 */
|
|
111
|
+
ownerStaffId: string;
|
|
112
|
+
/** 群成员员工ID列表,最大值20。 */
|
|
113
|
+
memberStaffIds?: string[];
|
|
114
|
+
/** 群标签。 */
|
|
115
|
+
groupTagNames?: string[];
|
|
116
|
+
}
|
|
117
|
+
export interface ServiceGroupCreateGroupResponse {
|
|
118
|
+
openConversationId: string;
|
|
119
|
+
groupUrl: string;
|
|
120
|
+
}
|
|
121
|
+
export interface ServiceGroupUpdateGroupSetParams {
|
|
122
|
+
/** 开放团队ID。 */
|
|
123
|
+
openTeamId?: string;
|
|
124
|
+
/** 开放群ID,可调用[创建服务群](https://open.dingtalk.com/document/orgapp-server/create-a-scenario-service-group)接口获取openConversationId参数值。 */
|
|
125
|
+
openConversationId?: string;
|
|
126
|
+
/** 开放群组ID。 */
|
|
127
|
+
openGroupSetId?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface ServiceGroupUpdateGroupSetResponse {
|
|
130
|
+
success?: unknown;
|
|
131
|
+
}
|
|
132
|
+
declare module '../internal' {
|
|
133
|
+
interface Internal {
|
|
134
|
+
/**
|
|
135
|
+
* 添加服务群成员
|
|
136
|
+
* @see https://developers.dingtalk.com/document/orgapp/add-service-group-members
|
|
137
|
+
*/
|
|
138
|
+
addMemberToServiceGroup(params: AddMemberToServiceGroupParams): Promise<AddMemberToServiceGroupResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* 服务群发任务
|
|
141
|
+
* @see https://developers.dingtalk.com/document/orgapp/service-group-sending-task-interface
|
|
142
|
+
*/
|
|
143
|
+
sendMsgByTask(params: SendMsgByTaskParams): Promise<SendMsgByTaskResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* 升级普通群为服务群
|
|
146
|
+
* @see https://developers.dingtalk.com/document/orgapp/a-dingtalk-group-is-upgraded-to-one-of-the-intelligent
|
|
147
|
+
*/
|
|
148
|
+
upgradeNormalGroup(params: UpgradeNormalGroupParams): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* 升级云客服服务群为钉钉智能服务群
|
|
151
|
+
* @see https://developers.dingtalk.com/document/orgapp/upgraded-the-cloud-customer-service-group-to-the-dingtalk-intelligent
|
|
152
|
+
*/
|
|
153
|
+
upgradeCloudGroup(params: UpgradeCloudGroupParams): Promise<void>;
|
|
154
|
+
/**
|
|
155
|
+
* 查询服务群活跃成员
|
|
156
|
+
* @see https://developers.dingtalk.com/document/orgapp/queries-active-service-users
|
|
157
|
+
*/
|
|
158
|
+
queryActiveUsers(query: QueryActiveUsersQuery): Promise<QueryActiveUsersResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* 服务群发消息
|
|
161
|
+
* @see https://developers.dingtalk.com/document/orgapp/service-group-message-sending-interface
|
|
162
|
+
*/
|
|
163
|
+
sendServiceGroupMessage(params: SendServiceGroupMessageParams): Promise<SendServiceGroupMessageResponse>;
|
|
164
|
+
/**
|
|
165
|
+
* 创建服务群
|
|
166
|
+
* @see https://developers.dingtalk.com/document/orgapp/create-a-scenario-service-group
|
|
167
|
+
*/
|
|
168
|
+
serviceGroupCreateGroup(params: ServiceGroupCreateGroupParams): Promise<ServiceGroupCreateGroupResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* 更换服务群所在的群分组
|
|
171
|
+
* @see https://developers.dingtalk.com/document/isvapp/modify-a-service-group
|
|
172
|
+
*/
|
|
173
|
+
serviceGroupUpdateGroupSet(params: ServiceGroupUpdateGroupSetParams): Promise<ServiceGroupUpdateGroupSetResponse>;
|
|
174
|
+
}
|
|
175
|
+
}
|