@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,106 @@
|
|
|
1
|
+
export interface AddPointQuery {
|
|
2
|
+
/** 是否查询全员圈积分规则,取值: */
|
|
3
|
+
isCircle: unknown;
|
|
4
|
+
/** 加减积分的唯一幂等标志,由调用方自己生成。 */
|
|
5
|
+
uuid: string;
|
|
6
|
+
/** 用户userid,可以调用[通过免登码获取用户信息](https://developers.dingtalk.com/document/app/obtain-the-userid-of-a-user-by-using-the-log-free)接口获取。 */
|
|
7
|
+
userId: string;
|
|
8
|
+
/** 规则代码。可以为空。 */
|
|
9
|
+
ruleCode?: string;
|
|
10
|
+
/** 规则名字。 */
|
|
11
|
+
ruleName: string;
|
|
12
|
+
/** 增加积分的时间戳,单位毫秒。 */
|
|
13
|
+
actionTime?: number;
|
|
14
|
+
/** 本次增加积分。 */
|
|
15
|
+
score: number;
|
|
16
|
+
}
|
|
17
|
+
export interface PagePointHistoryQuery {
|
|
18
|
+
/** 是否查询全员圈积分记录,否则查询积分管理积分记录,取值: */
|
|
19
|
+
isCircle: unknown;
|
|
20
|
+
/** 用户userid。 */
|
|
21
|
+
userId?: string;
|
|
22
|
+
/** 分页游标,第一次请求传0,后续取值是上一次调用此API返回的nextToken参数。 */
|
|
23
|
+
nextToken: number;
|
|
24
|
+
/** 本次读取的最大数据记录数量,最大值20。 */
|
|
25
|
+
maxResults: number;
|
|
26
|
+
/** 起始时间Unix时间戳,单位毫秒。 */
|
|
27
|
+
startTime?: number;
|
|
28
|
+
/** 结束时间Unix时间戳(不包含),单位毫秒。 */
|
|
29
|
+
endTime?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface PagePointHistoryResponse {
|
|
32
|
+
pointRecordList: {
|
|
33
|
+
userId: string;
|
|
34
|
+
score: number;
|
|
35
|
+
createAt: number;
|
|
36
|
+
uuid: string;
|
|
37
|
+
ruleCode?: string;
|
|
38
|
+
ruleName: string;
|
|
39
|
+
}[];
|
|
40
|
+
hasMore: unknown;
|
|
41
|
+
nextToken: number;
|
|
42
|
+
totalCount: number;
|
|
43
|
+
}
|
|
44
|
+
export interface ListPointRulesQuery {
|
|
45
|
+
/** 是否查询全员圈积分规则,否则查询积分管理积分规则,取值: */
|
|
46
|
+
isCircle: unknown;
|
|
47
|
+
}
|
|
48
|
+
export interface ListPointRulesResponse {
|
|
49
|
+
pointRuleList: {
|
|
50
|
+
score: number;
|
|
51
|
+
dayLimitTimes: number;
|
|
52
|
+
status: number;
|
|
53
|
+
ruleCode?: string;
|
|
54
|
+
ruleName: string;
|
|
55
|
+
extension: string;
|
|
56
|
+
groupId: number;
|
|
57
|
+
orderId: number;
|
|
58
|
+
}[];
|
|
59
|
+
}
|
|
60
|
+
export interface ListIndustryRoleUsersQuery {
|
|
61
|
+
/** 行业角色编码,有以下取值: */
|
|
62
|
+
tagCode: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ListIndustryRoleUsersResponse {
|
|
65
|
+
userIdList?: string[];
|
|
66
|
+
}
|
|
67
|
+
export interface ListUserIndustryRolesQuery {
|
|
68
|
+
/** 用户userId。 */
|
|
69
|
+
userId: string;
|
|
70
|
+
}
|
|
71
|
+
export interface ListUserIndustryRolesResponse {
|
|
72
|
+
roleList?: {
|
|
73
|
+
roleId?: number;
|
|
74
|
+
roleName?: string;
|
|
75
|
+
tagCode?: string;
|
|
76
|
+
}[];
|
|
77
|
+
}
|
|
78
|
+
declare module '../internal' {
|
|
79
|
+
interface Internal {
|
|
80
|
+
/**
|
|
81
|
+
* 增加或减少居民积分
|
|
82
|
+
* @see https://developers.dingtalk.com/document/isvapp/increase-or-decrease-resident-points
|
|
83
|
+
*/
|
|
84
|
+
addPoint(query: AddPointQuery): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* 查询数字区县居民积分流水
|
|
87
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-the-integral-flow-records-by-page
|
|
88
|
+
*/
|
|
89
|
+
pagePointHistory(query: PagePointHistoryQuery): Promise<PagePointHistoryResponse>;
|
|
90
|
+
/**
|
|
91
|
+
* 查询组织维度配置的的积分规则
|
|
92
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-all-credit-rules
|
|
93
|
+
*/
|
|
94
|
+
listPointRules(query: ListPointRulesQuery): Promise<ListPointRulesResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* 获取行业角色下的用户列表
|
|
97
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtains-a-list-of-users-under-an-industry-role
|
|
98
|
+
*/
|
|
99
|
+
listIndustryRoleUsers(query: ListIndustryRoleUsersQuery): Promise<ListIndustryRoleUsersResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* 获取用户所在的行业角色信息
|
|
102
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtains-information-about-the-industry-role-to-which-the-user
|
|
103
|
+
*/
|
|
104
|
+
listUserIndustryRoles(query: ListUserIndustryRolesQuery): Promise<ListUserIndustryRolesResponse>;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
export interface GetBotListInGroupParams {
|
|
2
|
+
/** 群ID: */
|
|
3
|
+
openConversationId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface GetBotListInGroupResponse {
|
|
6
|
+
chatbotInstanceVOList?: {
|
|
7
|
+
robotCode?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
downloadIconURL?: string;
|
|
10
|
+
openRobotType?: number;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export interface RobotMessageFileDownloadParams {
|
|
14
|
+
/** 用户向机器人发送文件消息后,机器人回调给开发者消息中的下载码。 */
|
|
15
|
+
downloadCode: string;
|
|
16
|
+
/** 机器人的编码: */
|
|
17
|
+
robotCode: string;
|
|
18
|
+
}
|
|
19
|
+
export interface RobotMessageFileDownloadResponse {
|
|
20
|
+
downloadUrl: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ClearRobotPluginParams {
|
|
23
|
+
/** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/orgapp/robot-overview#title-ed9-e7b-epe)内容,获取`robotCode`。 */
|
|
24
|
+
robotCode: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ClearRobotPluginResponse {
|
|
27
|
+
result?: unknown;
|
|
28
|
+
}
|
|
29
|
+
export interface SetRobotPluginParams {
|
|
30
|
+
/** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/orgapp/robot-overview#title-ed9-e7b-epe)内容,获取`robotCode`。 */
|
|
31
|
+
robotCode?: string;
|
|
32
|
+
/** 插件信息。 */
|
|
33
|
+
pluginInfoList?: object[];
|
|
34
|
+
}
|
|
35
|
+
export interface SetRobotPluginResponse {
|
|
36
|
+
result?: unknown;
|
|
37
|
+
}
|
|
38
|
+
export interface QueryRobotPluginParams {
|
|
39
|
+
/** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/orgapp/robot-overview#title-ed9-e7b-epe)内容,获取`robotCode`。 */
|
|
40
|
+
robotCode: string;
|
|
41
|
+
}
|
|
42
|
+
export interface QueryRobotPluginResponse {
|
|
43
|
+
pluginInfoList?: {
|
|
44
|
+
name?: string;
|
|
45
|
+
icon?: string;
|
|
46
|
+
pcUrl?: string;
|
|
47
|
+
mobileUrl?: string;
|
|
48
|
+
}[];
|
|
49
|
+
}
|
|
50
|
+
export interface OrgGroupRecallParams {
|
|
51
|
+
/** 开放的群ID。 */
|
|
52
|
+
openConversationId: string;
|
|
53
|
+
/** 机器人的编码。 */
|
|
54
|
+
robotCode: string;
|
|
55
|
+
processQueryKeys: string[];
|
|
56
|
+
}
|
|
57
|
+
export interface OrgGroupRecallResponse {
|
|
58
|
+
successResult: string[];
|
|
59
|
+
failedResult: unknown;
|
|
60
|
+
}
|
|
61
|
+
export interface OrgGroupQueryParams {
|
|
62
|
+
/** 开放的群id。 */
|
|
63
|
+
openConversationId?: string;
|
|
64
|
+
/** 机器人的robotCode。 */
|
|
65
|
+
robotCode?: string;
|
|
66
|
+
/** 机器人在群内安装后,群内机器人的webhook属性中中的access_token部分的值。 */
|
|
67
|
+
token?: string;
|
|
68
|
+
/** 发送消息返回的加密消息id。 */
|
|
69
|
+
processQueryKey: string;
|
|
70
|
+
/** 分页查询每页的数量。 */
|
|
71
|
+
maxResults?: number;
|
|
72
|
+
/** 一次查询后返回的加密的分页凭证,首次查询不填。 */
|
|
73
|
+
nextToken?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface OrgGroupQueryResponse {
|
|
76
|
+
sendStatus?: string;
|
|
77
|
+
readUserIds?: string[];
|
|
78
|
+
nextToken?: string;
|
|
79
|
+
hasMore?: unknown;
|
|
80
|
+
}
|
|
81
|
+
export interface OrgGroupSendParams {
|
|
82
|
+
/** 消息模板参数。 */
|
|
83
|
+
msgParam: string;
|
|
84
|
+
/** 消息模板key。 */
|
|
85
|
+
msgKey: string;
|
|
86
|
+
/** 群id: */
|
|
87
|
+
openConversationId?: string;
|
|
88
|
+
/** 机器人的编码。 */
|
|
89
|
+
robotCode?: string;
|
|
90
|
+
/** 机器人在群内安装后,群内机器人的webhook属性中中的`access_token`的参数值。 */
|
|
91
|
+
token?: string;
|
|
92
|
+
/** 群聊酷应用编码。 */
|
|
93
|
+
coolAppCode?: string;
|
|
94
|
+
}
|
|
95
|
+
export interface OrgGroupSendResponse {
|
|
96
|
+
processQueryKey: string;
|
|
97
|
+
}
|
|
98
|
+
export interface BatchRecallOTOParams {
|
|
99
|
+
/** 机器人的编码。 */
|
|
100
|
+
robotCode: string;
|
|
101
|
+
processQueryKeys: string[];
|
|
102
|
+
}
|
|
103
|
+
export interface BatchRecallOTOResponse {
|
|
104
|
+
successResult?: string[];
|
|
105
|
+
failedResult?: unknown;
|
|
106
|
+
}
|
|
107
|
+
export interface BatchOTOQueryQuery {
|
|
108
|
+
/** - 企业内部开发-机器人,此处为企业自建应用的appKey。 */
|
|
109
|
+
robotCode: string;
|
|
110
|
+
/** 加密的消息id,可通过调用[发送批量单聊信息](https://open.dingtalk.com/document/group/chatbots-send-one-on-one-chat-messages-in-batches)接口获取。 */
|
|
111
|
+
processQueryKey: string;
|
|
112
|
+
}
|
|
113
|
+
export interface BatchOTOQueryResponse {
|
|
114
|
+
sendStatus?: string;
|
|
115
|
+
messageReadInfoList?: {
|
|
116
|
+
name: string;
|
|
117
|
+
userId: string;
|
|
118
|
+
readStatus: string;
|
|
119
|
+
readTimestamp: number;
|
|
120
|
+
}[];
|
|
121
|
+
}
|
|
122
|
+
export interface BatchSendOTOParams {
|
|
123
|
+
/** 机器人的编码。 */
|
|
124
|
+
robotCode: string;
|
|
125
|
+
/** 用户的userid。 */
|
|
126
|
+
userIds: string[];
|
|
127
|
+
/** 消息的msgKey。 */
|
|
128
|
+
msgKey: string;
|
|
129
|
+
/** 消息体。 */
|
|
130
|
+
msgParam: string;
|
|
131
|
+
}
|
|
132
|
+
export interface BatchSendOTOResponse {
|
|
133
|
+
processQueryKey?: string;
|
|
134
|
+
invalidStaffIdList?: string[];
|
|
135
|
+
flowControlledStaffIdList?: string[];
|
|
136
|
+
}
|
|
137
|
+
export interface PrivateChatSendParams {
|
|
138
|
+
/** 消息体。 */
|
|
139
|
+
msgParam: string;
|
|
140
|
+
/** 消息类型的key。 */
|
|
141
|
+
msgKey: string;
|
|
142
|
+
/** 会话ID。 */
|
|
143
|
+
openConversationId?: string;
|
|
144
|
+
/** 机器人编码。 */
|
|
145
|
+
robotCode?: string;
|
|
146
|
+
/** 酷应用的code。 */
|
|
147
|
+
coolAppCode?: string;
|
|
148
|
+
}
|
|
149
|
+
export interface PrivateChatSendResponse {
|
|
150
|
+
processQueryKey: string;
|
|
151
|
+
}
|
|
152
|
+
export interface PrivateChatQueryParams {
|
|
153
|
+
/** 人与人单聊开放会话ID: */
|
|
154
|
+
openConversationId?: string;
|
|
155
|
+
/** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/group/robot-overview)内容,获取`robotCode`。 */
|
|
156
|
+
robotCode?: string;
|
|
157
|
+
/** 发送消息返回的加密消息id */
|
|
158
|
+
processQueryKey: string;
|
|
159
|
+
/** 分页查询每页的数量 */
|
|
160
|
+
maxResults?: number;
|
|
161
|
+
/** 一次查询后返回的加密的分页凭证,首次查询不填 */
|
|
162
|
+
nextToken?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface PrivateChatQueryResponse {
|
|
165
|
+
sendStatus?: string;
|
|
166
|
+
readUserIds?: string[];
|
|
167
|
+
nextToken?: string;
|
|
168
|
+
hasMore?: unknown;
|
|
169
|
+
}
|
|
170
|
+
export interface BatchRecallPrivateChatParams {
|
|
171
|
+
/** 人与人单聊开放会话ID: */
|
|
172
|
+
openConversationId: string;
|
|
173
|
+
/** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/group/robot-overview)内容,获取`robotCode`。 */
|
|
174
|
+
robotCode: string;
|
|
175
|
+
/** 消息id */
|
|
176
|
+
processQueryKeys: string[];
|
|
177
|
+
}
|
|
178
|
+
export interface BatchRecallPrivateChatResponse {
|
|
179
|
+
successResult: string[];
|
|
180
|
+
failedResult: unknown;
|
|
181
|
+
}
|
|
182
|
+
declare module '../internal' {
|
|
183
|
+
interface Internal {
|
|
184
|
+
/**
|
|
185
|
+
* 查询群内的机器人列表
|
|
186
|
+
* @see https://developers.dingtalk.com/document/orgapp/obtain-the-list-of-robots-in-the-group
|
|
187
|
+
*/
|
|
188
|
+
getBotListInGroup(params: GetBotListInGroupParams): Promise<GetBotListInGroupResponse>;
|
|
189
|
+
/**
|
|
190
|
+
* 获取机器人消息中文件下载链接
|
|
191
|
+
* @see https://developers.dingtalk.com/document/isvapp/download-the-file-content-of-the-robot-receiving-message
|
|
192
|
+
*/
|
|
193
|
+
robotMessageFileDownload(params: RobotMessageFileDownloadParams): Promise<RobotMessageFileDownloadResponse>;
|
|
194
|
+
/**
|
|
195
|
+
* 清空单聊机器人快捷入口
|
|
196
|
+
* @see https://developers.dingtalk.com/document/orgapp/clear-single-chat-robot-quick-entry
|
|
197
|
+
*/
|
|
198
|
+
clearRobotPlugin(params: ClearRobotPluginParams): Promise<ClearRobotPluginResponse>;
|
|
199
|
+
/**
|
|
200
|
+
* 设置单聊机器人快捷入口
|
|
201
|
+
* @see https://developers.dingtalk.com/document/orgapp/set-robot-quick-entrance
|
|
202
|
+
*/
|
|
203
|
+
setRobotPlugin(params: SetRobotPluginParams): Promise<SetRobotPluginResponse>;
|
|
204
|
+
/**
|
|
205
|
+
* 查询单聊机器人快捷入口
|
|
206
|
+
* @see https://developers.dingtalk.com/document/orgapp/quick-entrance-of-inquiry-single-chat-robot
|
|
207
|
+
*/
|
|
208
|
+
queryRobotPlugin(params: QueryRobotPluginParams): Promise<QueryRobotPluginResponse>;
|
|
209
|
+
/**
|
|
210
|
+
* 企业机器人撤回内部群消息
|
|
211
|
+
* @see https://developers.dingtalk.com/document/orgapp/enterprise-chatbot-withdraws-internal-group-messages
|
|
212
|
+
*/
|
|
213
|
+
orgGroupRecall(params: OrgGroupRecallParams): Promise<OrgGroupRecallResponse>;
|
|
214
|
+
/**
|
|
215
|
+
* 查询企业机器人群聊消息用户已读状态
|
|
216
|
+
* @see https://developers.dingtalk.com/document/orgapp/chatbot-queries-the-read-status-of-a-message
|
|
217
|
+
*/
|
|
218
|
+
orgGroupQuery(params: OrgGroupQueryParams): Promise<OrgGroupQueryResponse>;
|
|
219
|
+
/**
|
|
220
|
+
* 机器人发送群聊消息
|
|
221
|
+
* @see https://developers.dingtalk.com/document/orgapp/the-robot-sends-a-group-message
|
|
222
|
+
*/
|
|
223
|
+
orgGroupSend(params: OrgGroupSendParams): Promise<OrgGroupSendResponse>;
|
|
224
|
+
/**
|
|
225
|
+
* 批量撤回人与机器人会话中机器人消息
|
|
226
|
+
* @see https://developers.dingtalk.com/document/orgapp/batch-message-recall-chat
|
|
227
|
+
*/
|
|
228
|
+
batchRecallOTO(params: BatchRecallOTOParams): Promise<BatchRecallOTOResponse>;
|
|
229
|
+
/**
|
|
230
|
+
* 批量查询人与机器人会话机器人消息是否已读
|
|
231
|
+
* @see https://developers.dingtalk.com/document/orgapp/chatbot-batch-query-the-read-status-of-messages
|
|
232
|
+
*/
|
|
233
|
+
batchOTOQuery(query: BatchOTOQueryQuery): Promise<BatchOTOQueryResponse>;
|
|
234
|
+
/**
|
|
235
|
+
* 批量发送人与机器人会话中机器人消息
|
|
236
|
+
* @see https://developers.dingtalk.com/document/orgapp/chatbots-send-one-on-one-chat-messages-in-batches
|
|
237
|
+
*/
|
|
238
|
+
batchSendOTO(params: BatchSendOTOParams): Promise<BatchSendOTOResponse>;
|
|
239
|
+
/**
|
|
240
|
+
* 人与人会话中机器人发送普通消息
|
|
241
|
+
* @see https://developers.dingtalk.com/document/orgapp/the-robot-sends-ordinary-messages-in-a-person-to-person-conversation
|
|
242
|
+
*/
|
|
243
|
+
privateChatSend(params: PrivateChatSendParams): Promise<PrivateChatSendResponse>;
|
|
244
|
+
/**
|
|
245
|
+
* 查询人与人会话中机器人已读消息
|
|
246
|
+
* @see https://developers.dingtalk.com/document/orgapp/query-the-read-list-of-robot-messages-in-person-to-person-conversations
|
|
247
|
+
*/
|
|
248
|
+
privateChatQuery(params: PrivateChatQueryParams): Promise<PrivateChatQueryResponse>;
|
|
249
|
+
/**
|
|
250
|
+
* 批量撤回人与人会话中机器人消息
|
|
251
|
+
* @see https://developers.dingtalk.com/document/orgapp/batch-withdrawal-of-single-chat-robot-messages-in-person-to-person-conversations
|
|
252
|
+
*/
|
|
253
|
+
batchRecallPrivateChat(params: BatchRecallPrivateChatParams): Promise<BatchRecallPrivateChatResponse>;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
export interface QueryDevicePropertiesParams {
|
|
2
|
+
/** 设备属性名称列表,最大值10。 */
|
|
3
|
+
propertyNames?: string[];
|
|
4
|
+
}
|
|
5
|
+
export interface QueryDevicePropertiesQuery {
|
|
6
|
+
/** 操作查询的人员unionId,可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取。 */
|
|
7
|
+
operatorUnionId: string;
|
|
8
|
+
/** 需要查询的设备ID,该参数可从订阅[设备绑定会议室变更](https://open.dingtalk.com/document/orgapp/device-binding-meeting-room-change-event)事件中获取。 */
|
|
9
|
+
deviceId?: string;
|
|
10
|
+
/** 需要查询的设备unionId,该参数可从订阅[设备绑定会议室变更](https://open.dingtalk.com/document/orgapp/device-binding-meeting-room-change-event)事件中获取。 */
|
|
11
|
+
deviceUnionId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface QueryDevicePropertiesResponse {
|
|
14
|
+
result?: {
|
|
15
|
+
propertyName?: string;
|
|
16
|
+
propertyValue?: string;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
|
19
|
+
export interface QueryMeetingRoomDeviceQuery {
|
|
20
|
+
/** 操作查询的人员unionId,可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取。 */
|
|
21
|
+
operatorUnionId: string;
|
|
22
|
+
/** 需要查询的设备ID,该参数从订阅[设备绑定会议室变更](https://open.dingtalk.com/document/orgapp/device-binding-meeting-room-change-event)事件中获取。 */
|
|
23
|
+
deviceId?: string;
|
|
24
|
+
/** 需要查询的设备unionId,该参数从订阅[设备绑定会议室变更](https://open.dingtalk.com/document/orgapp/device-binding-meeting-room-change-event)事件中获取。 */
|
|
25
|
+
deviceUnionId?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface QueryMeetingRoomDeviceResponse {
|
|
28
|
+
result?: {
|
|
29
|
+
deviceId?: string;
|
|
30
|
+
deviceUnionId?: string;
|
|
31
|
+
openRoomId?: string;
|
|
32
|
+
corpId?: string;
|
|
33
|
+
deviceName?: string;
|
|
34
|
+
shareCode?: string;
|
|
35
|
+
deviceSn?: string;
|
|
36
|
+
deviceMac?: string;
|
|
37
|
+
deviceType?: string;
|
|
38
|
+
deviceServiceId?: number;
|
|
39
|
+
deviceModel?: string;
|
|
40
|
+
deviceStatus?: string;
|
|
41
|
+
controllers?: number;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export interface DeleteMeetingRoomGroupQuery {
|
|
45
|
+
/** 操作人的unionId。 */
|
|
46
|
+
unionId: string;
|
|
47
|
+
}
|
|
48
|
+
export interface DeleteMeetingRoomGroupResponse {
|
|
49
|
+
result?: unknown;
|
|
50
|
+
}
|
|
51
|
+
export interface UpdateMeetingRoomGroupParams {
|
|
52
|
+
/** 操作人的unionId。 */
|
|
53
|
+
unionId: string;
|
|
54
|
+
/** 修改后的分组名称。 */
|
|
55
|
+
groupName?: string;
|
|
56
|
+
/** 分组ID。 */
|
|
57
|
+
groupId: number;
|
|
58
|
+
}
|
|
59
|
+
export interface UpdateMeetingRoomGroupResponse {
|
|
60
|
+
result?: unknown;
|
|
61
|
+
}
|
|
62
|
+
export interface QueryMeetingRoomGroupListQuery {
|
|
63
|
+
/** 操作人的unionId。 */
|
|
64
|
+
unionId: string;
|
|
65
|
+
}
|
|
66
|
+
export interface QueryMeetingRoomGroupListResponse {
|
|
67
|
+
result?: {
|
|
68
|
+
groupId?: number;
|
|
69
|
+
groupName?: string;
|
|
70
|
+
parentId?: number;
|
|
71
|
+
}[];
|
|
72
|
+
}
|
|
73
|
+
export interface QueryMeetingRoomGroupQuery {
|
|
74
|
+
/** 操作人的unionId。 */
|
|
75
|
+
unionId: string;
|
|
76
|
+
}
|
|
77
|
+
export interface QueryMeetingRoomGroupResponse {
|
|
78
|
+
groupId?: number;
|
|
79
|
+
groupName?: string;
|
|
80
|
+
parentId?: number;
|
|
81
|
+
}
|
|
82
|
+
export interface CreateMeetingRoomGroupParams {
|
|
83
|
+
/** 操作人的unionId。 */
|
|
84
|
+
unionId: string;
|
|
85
|
+
/** 分组名称。 */
|
|
86
|
+
groupName?: string;
|
|
87
|
+
/** 父分组ID,传0表示根分组。 */
|
|
88
|
+
parentGroupId: number;
|
|
89
|
+
}
|
|
90
|
+
export interface CreateMeetingRoomGroupResponse {
|
|
91
|
+
result?: number;
|
|
92
|
+
}
|
|
93
|
+
export interface DeleteMeetingRoomQuery {
|
|
94
|
+
/** 操作人的unionId。 */
|
|
95
|
+
unionId: string;
|
|
96
|
+
}
|
|
97
|
+
export interface DeleteMeetingRoomResponse {
|
|
98
|
+
result?: unknown;
|
|
99
|
+
}
|
|
100
|
+
export interface QueryMeetingRoomListQuery {
|
|
101
|
+
/** 分页游标。 */
|
|
102
|
+
nextToken?: number;
|
|
103
|
+
/** 请求分页大小,默认值20,目前未限制最大值。 */
|
|
104
|
+
maxResults?: number;
|
|
105
|
+
/** 操作人的unionId。 */
|
|
106
|
+
unionId: string;
|
|
107
|
+
}
|
|
108
|
+
export interface QueryMeetingRoomListResponse {
|
|
109
|
+
hasMore?: unknown;
|
|
110
|
+
nextToken?: number;
|
|
111
|
+
result?: {
|
|
112
|
+
roomId?: string;
|
|
113
|
+
roomStaffId?: string;
|
|
114
|
+
corpId?: string;
|
|
115
|
+
roomName?: string;
|
|
116
|
+
roomStatus?: number;
|
|
117
|
+
roomLabels?: number;
|
|
118
|
+
roomCapacity?: number;
|
|
119
|
+
roomLocation?: number;
|
|
120
|
+
roomPicture?: string;
|
|
121
|
+
isvRoomId?: string;
|
|
122
|
+
roomGroup?: number;
|
|
123
|
+
}[];
|
|
124
|
+
}
|
|
125
|
+
export interface UpdateMeetingRoomParams {
|
|
126
|
+
/** 操作人的unionId。 */
|
|
127
|
+
unionId: string;
|
|
128
|
+
/** 会议室ID。 */
|
|
129
|
+
roomId: string;
|
|
130
|
+
/** 会议室名称。 */
|
|
131
|
+
roomName?: string;
|
|
132
|
+
/** 会议室可容纳人数。 */
|
|
133
|
+
roomCapacity?: number;
|
|
134
|
+
/** 会议室图片。 */
|
|
135
|
+
roomPicture?: string;
|
|
136
|
+
/** 会议室状态。 */
|
|
137
|
+
roomStatus?: number;
|
|
138
|
+
/** 会议室位置信息。 */
|
|
139
|
+
roomLocation?: unknown;
|
|
140
|
+
/** 标签ID。 */
|
|
141
|
+
roomLabelIds?: number[];
|
|
142
|
+
/** 调用方外部会议室ID,调用方可传入自有系统内的会议室ID。 */
|
|
143
|
+
isvRoomId?: string;
|
|
144
|
+
/** 会议室所属分组ID。 */
|
|
145
|
+
groupId?: number;
|
|
146
|
+
}
|
|
147
|
+
export interface UpdateMeetingRoomResponse {
|
|
148
|
+
result?: unknown;
|
|
149
|
+
}
|
|
150
|
+
export interface QueryMeetingRoomQuery {
|
|
151
|
+
/** 操作人的unionId。 */
|
|
152
|
+
unionId: string;
|
|
153
|
+
}
|
|
154
|
+
export interface QueryMeetingRoomResponse {
|
|
155
|
+
result?: {
|
|
156
|
+
roomId?: string;
|
|
157
|
+
roomStaffId?: string;
|
|
158
|
+
corpId?: string;
|
|
159
|
+
roomName?: string;
|
|
160
|
+
roomStatus?: number;
|
|
161
|
+
roomLabels?: number;
|
|
162
|
+
roomCapacity?: number;
|
|
163
|
+
roomLocation?: number;
|
|
164
|
+
roomPicture?: string;
|
|
165
|
+
isvRoomId?: string;
|
|
166
|
+
roomGroup?: number;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
export interface CreateMeetingRoomParams {
|
|
170
|
+
/** 操作人的unionId。 */
|
|
171
|
+
unionId: string;
|
|
172
|
+
/** 会议室名称。 */
|
|
173
|
+
roomName: string;
|
|
174
|
+
/** 会议室可容纳人数,目前无最大值限制。 */
|
|
175
|
+
roomCapacity?: number;
|
|
176
|
+
/** 会议室图片。 */
|
|
177
|
+
roomPicture?: string;
|
|
178
|
+
/** 会议室状态。 */
|
|
179
|
+
roomStatus: number;
|
|
180
|
+
/** 会议室位置信息。 */
|
|
181
|
+
roomLocation?: unknown;
|
|
182
|
+
/** 标签ID。 */
|
|
183
|
+
roomLabelIds?: number[];
|
|
184
|
+
/** 调用方外部会议室ID,调用方可传入自有系统内的会议室ID。 */
|
|
185
|
+
isvRoomId: string;
|
|
186
|
+
/** 分组ID。 */
|
|
187
|
+
groupId?: number;
|
|
188
|
+
}
|
|
189
|
+
export interface CreateMeetingRoomResponse {
|
|
190
|
+
result?: string;
|
|
191
|
+
}
|
|
192
|
+
declare module '../internal' {
|
|
193
|
+
interface Internal {
|
|
194
|
+
/**
|
|
195
|
+
* 查询设备属性
|
|
196
|
+
* @see https://developers.dingtalk.com/document/app/querying-video-conference-device-attribute-information
|
|
197
|
+
*/
|
|
198
|
+
queryDeviceProperties(query: QueryDevicePropertiesQuery, params: QueryDevicePropertiesParams): Promise<QueryDevicePropertiesResponse>;
|
|
199
|
+
/**
|
|
200
|
+
* 查询设备信息
|
|
201
|
+
* @see https://developers.dingtalk.com/document/app/querying-video-conference-device-information
|
|
202
|
+
*/
|
|
203
|
+
queryMeetingRoomDevice(query: QueryMeetingRoomDeviceQuery): Promise<QueryMeetingRoomDeviceResponse>;
|
|
204
|
+
/**
|
|
205
|
+
* 删除会议室分组
|
|
206
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-a-conference-room-group
|
|
207
|
+
*/
|
|
208
|
+
deleteMeetingRoomGroup(groupId: number, query: DeleteMeetingRoomGroupQuery): Promise<DeleteMeetingRoomGroupResponse>;
|
|
209
|
+
/**
|
|
210
|
+
* 更新会议室分组信息
|
|
211
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-meeting-room-group-information
|
|
212
|
+
*/
|
|
213
|
+
updateMeetingRoomGroup(params: UpdateMeetingRoomGroupParams): Promise<UpdateMeetingRoomGroupResponse>;
|
|
214
|
+
/**
|
|
215
|
+
* 查询会议室分组列表
|
|
216
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-meeting-room-groups
|
|
217
|
+
*/
|
|
218
|
+
queryMeetingRoomGroupList(query: QueryMeetingRoomGroupListQuery): Promise<QueryMeetingRoomGroupListResponse>;
|
|
219
|
+
/**
|
|
220
|
+
* 查询会议室分组信息
|
|
221
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-meeting-room-group-information
|
|
222
|
+
*/
|
|
223
|
+
queryMeetingRoomGroup(groupId: number, query: QueryMeetingRoomGroupQuery): Promise<QueryMeetingRoomGroupResponse>;
|
|
224
|
+
/**
|
|
225
|
+
* 创建会议室分组
|
|
226
|
+
* @see https://developers.dingtalk.com/document/isvapp/create-a-meeting-room-group
|
|
227
|
+
*/
|
|
228
|
+
createMeetingRoomGroup(params: CreateMeetingRoomGroupParams): Promise<CreateMeetingRoomGroupResponse>;
|
|
229
|
+
/**
|
|
230
|
+
* 删除会议室
|
|
231
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-a-meeting-room
|
|
232
|
+
*/
|
|
233
|
+
deleteMeetingRoom(roomId: string, query: DeleteMeetingRoomQuery): Promise<DeleteMeetingRoomResponse>;
|
|
234
|
+
/**
|
|
235
|
+
* 查询会议室列表
|
|
236
|
+
* @see https://developers.dingtalk.com/document/isvapp/check-the-meeting-room-list
|
|
237
|
+
*/
|
|
238
|
+
queryMeetingRoomList(query: QueryMeetingRoomListQuery): Promise<QueryMeetingRoomListResponse>;
|
|
239
|
+
/**
|
|
240
|
+
* 更新会议室信息
|
|
241
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-meeting-room-information
|
|
242
|
+
*/
|
|
243
|
+
updateMeetingRoom(params: UpdateMeetingRoomParams): Promise<UpdateMeetingRoomResponse>;
|
|
244
|
+
/**
|
|
245
|
+
* 查询会议室详情
|
|
246
|
+
* @see https://developers.dingtalk.com/document/isvapp/check-meeting-room-details
|
|
247
|
+
*/
|
|
248
|
+
queryMeetingRoom(roomId: string, query: QueryMeetingRoomQuery): Promise<QueryMeetingRoomResponse>;
|
|
249
|
+
/**
|
|
250
|
+
* 创建智能会议室
|
|
251
|
+
* @see https://developers.dingtalk.com/document/isvapp/create-a-meeting-room
|
|
252
|
+
*/
|
|
253
|
+
createMeetingRoom(params: CreateMeetingRoomParams): Promise<CreateMeetingRoomResponse>;
|
|
254
|
+
}
|
|
255
|
+
}
|