@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,620 @@
|
|
|
1
|
+
export interface GetMeetingRoomsScheduleParams {
|
|
2
|
+
/** 待查询的会议室roomId列表,建议不超过5个。 */
|
|
3
|
+
roomIds: string[];
|
|
4
|
+
/** 查询开始时间,iso8601格式,例如:2022-07-29T14:55Z。 */
|
|
5
|
+
startTime: string;
|
|
6
|
+
/** 查询结束时间,iso8601格式,例如:2022-07-29T14:55Z。 */
|
|
7
|
+
endTime: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetMeetingRoomsScheduleResponse {
|
|
10
|
+
scheduleInformation?: {
|
|
11
|
+
roomId?: string;
|
|
12
|
+
error?: string;
|
|
13
|
+
scheduleItems?: number;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export interface AddMeetingRoomsParams {
|
|
17
|
+
/** 需要预定的会议室roomId列表,一个日程最多添加5个会议室。 */
|
|
18
|
+
meetingRoomsToAdd: object[];
|
|
19
|
+
}
|
|
20
|
+
export interface AddMeetingRoomsResponse {
|
|
21
|
+
result?: unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface RemoveMeetingRoomsParams {
|
|
24
|
+
/** 需要取消预定的会议室信息。 */
|
|
25
|
+
meetingRoomsToRemove?: object[];
|
|
26
|
+
}
|
|
27
|
+
export interface RemoveMeetingRoomsResponse {
|
|
28
|
+
result?: unknown;
|
|
29
|
+
}
|
|
30
|
+
export interface UnsubscribeCalendarResponse {
|
|
31
|
+
result?: unknown;
|
|
32
|
+
}
|
|
33
|
+
export interface DeleteSubscribedCalendarResponse {
|
|
34
|
+
result?: unknown;
|
|
35
|
+
}
|
|
36
|
+
export interface GetSubscribedCalendarResponse {
|
|
37
|
+
calendarId?: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
author?: string;
|
|
41
|
+
managers?: string[];
|
|
42
|
+
subscribeScope?: {
|
|
43
|
+
unionIds?: number;
|
|
44
|
+
openConversationIds?: number;
|
|
45
|
+
corpIds?: number;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export interface CreateSubscribedCalendarParams {
|
|
49
|
+
/** 订阅日历的名称。 */
|
|
50
|
+
name: string;
|
|
51
|
+
/** 订阅日历的描述,最大长度1024字符。 */
|
|
52
|
+
description?: string;
|
|
53
|
+
/** 订阅日历共同编辑人的unionId。 */
|
|
54
|
+
managers?: string[];
|
|
55
|
+
/** 可订阅该日历的对象。 */
|
|
56
|
+
subscribeScope: unknown;
|
|
57
|
+
}
|
|
58
|
+
export interface CreateSubscribedCalendarResponse {
|
|
59
|
+
calendarId?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface SignOutResponse {
|
|
62
|
+
checkOutTime?: number;
|
|
63
|
+
}
|
|
64
|
+
export interface GetSignOutListQuery {
|
|
65
|
+
/** 查询返回结果数,最大值500。 */
|
|
66
|
+
maxResults: number;
|
|
67
|
+
/** 分页游标。 */
|
|
68
|
+
nextToken?: string;
|
|
69
|
+
/** 签退信息类型。 */
|
|
70
|
+
type: string;
|
|
71
|
+
}
|
|
72
|
+
export interface GetSignOutListResponse {
|
|
73
|
+
nextToken?: string;
|
|
74
|
+
users?: {
|
|
75
|
+
userId?: string;
|
|
76
|
+
displayName?: string;
|
|
77
|
+
checkOutTime?: number;
|
|
78
|
+
}[];
|
|
79
|
+
}
|
|
80
|
+
export interface ListAttendeesQuery {
|
|
81
|
+
/** 最大返回记录数,默认值100,最大值500。 */
|
|
82
|
+
maxResults?: number;
|
|
83
|
+
/** 分页游标。 */
|
|
84
|
+
nextToken?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface ListAttendeesResponse {
|
|
87
|
+
nextToken?: string;
|
|
88
|
+
attendees?: {
|
|
89
|
+
id?: string;
|
|
90
|
+
displayName?: string;
|
|
91
|
+
responseStatus?: string;
|
|
92
|
+
self?: number;
|
|
93
|
+
isOptional?: number;
|
|
94
|
+
}[];
|
|
95
|
+
}
|
|
96
|
+
export interface SignInResponse {
|
|
97
|
+
checkInTime?: number;
|
|
98
|
+
}
|
|
99
|
+
export interface ListAclsResponse {
|
|
100
|
+
acls?: {
|
|
101
|
+
privilege?: string;
|
|
102
|
+
aclId?: string;
|
|
103
|
+
scope?: number;
|
|
104
|
+
}[];
|
|
105
|
+
}
|
|
106
|
+
export interface CreateAclsParams {
|
|
107
|
+
/** 权限信息,取值: */
|
|
108
|
+
privilege: string;
|
|
109
|
+
/** 是否向授权人发消息。 */
|
|
110
|
+
sendMsg: unknown;
|
|
111
|
+
/** 权限范围。 */
|
|
112
|
+
scope: unknown;
|
|
113
|
+
}
|
|
114
|
+
export interface CreateAclsResponse {
|
|
115
|
+
privilege?: string;
|
|
116
|
+
aclId?: string;
|
|
117
|
+
scope?: {
|
|
118
|
+
scopeType?: string;
|
|
119
|
+
userId?: string;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export interface GetSignInListQuery {
|
|
123
|
+
/** 查询返回结果数,最大值500。 */
|
|
124
|
+
maxResults: number;
|
|
125
|
+
/** 分页游标。 */
|
|
126
|
+
nextToken?: string;
|
|
127
|
+
/** 签到信息类型,取值: */
|
|
128
|
+
type: string;
|
|
129
|
+
}
|
|
130
|
+
export interface GetSignInListResponse {
|
|
131
|
+
nextToken?: string;
|
|
132
|
+
users?: {
|
|
133
|
+
userId?: string;
|
|
134
|
+
displayName?: string;
|
|
135
|
+
checkInTime?: number;
|
|
136
|
+
}[];
|
|
137
|
+
}
|
|
138
|
+
export interface ListCalendarsResponse {
|
|
139
|
+
response?: {
|
|
140
|
+
calendars: number;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
export interface GetScheduleParams {
|
|
144
|
+
/** 查询目标用户的unionId,可通过[根据userid获取用户详情](https://developers.dingtalk.com/document/app/query-user-details)接口获取。 */
|
|
145
|
+
userIds: string[];
|
|
146
|
+
/** 查询的开始时间。 */
|
|
147
|
+
startTime: string;
|
|
148
|
+
/** 查询的结束时间。 */
|
|
149
|
+
endTime: string;
|
|
150
|
+
}
|
|
151
|
+
export interface GetScheduleResponse {
|
|
152
|
+
scheduleInformation?: {
|
|
153
|
+
userId?: string;
|
|
154
|
+
error?: string;
|
|
155
|
+
scheduleItems?: number;
|
|
156
|
+
}[];
|
|
157
|
+
}
|
|
158
|
+
export interface ListEventsQuery {
|
|
159
|
+
/** 日程开始时间的最小值,格式为ISO-8601的date-time格式,可不填。 */
|
|
160
|
+
timeMin?: string;
|
|
161
|
+
/** 日程开始时间的最大值,格式为ISO-8601的date-time格式,可不填。 */
|
|
162
|
+
timeMax?: string;
|
|
163
|
+
/** 是否返回已取消/删除的日程。 */
|
|
164
|
+
showDeleted?: unknown;
|
|
165
|
+
/** 最大返回记录数,最大值100,默认值100。 */
|
|
166
|
+
maxResults?: number;
|
|
167
|
+
/** 每个日程的参与者查询个数,默认100,最大100。 */
|
|
168
|
+
maxAttendees?: number;
|
|
169
|
+
/** 分页游标。 */
|
|
170
|
+
nextToken?: string;
|
|
171
|
+
/** 同步token,用于增量数据同步场景,一个查询条件已经返回全部数据后(如果数据比较多会分页返回,调用方需要连续使用nextToken查询,直到所有分页都查完nextToken返回null之后),会返回一个syncToken,下次带着该token来查询会返回两次查询之间发生变更的增量数据。 */
|
|
172
|
+
syncToken?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface ListEventsResponse {
|
|
175
|
+
nextToken?: string;
|
|
176
|
+
events?: {
|
|
177
|
+
id?: string;
|
|
178
|
+
summary?: string;
|
|
179
|
+
description?: string;
|
|
180
|
+
start?: number;
|
|
181
|
+
originStart?: number;
|
|
182
|
+
end?: number;
|
|
183
|
+
isAllDay?: number;
|
|
184
|
+
recurrence?: number;
|
|
185
|
+
attendees?: number;
|
|
186
|
+
organizer?: number;
|
|
187
|
+
location?: number;
|
|
188
|
+
seriesMasterId?: string;
|
|
189
|
+
createTime?: string;
|
|
190
|
+
updateTime?: string;
|
|
191
|
+
status?: string;
|
|
192
|
+
onlineMeetingInfo?: number;
|
|
193
|
+
reminders?: number;
|
|
194
|
+
extendedProperties?: number;
|
|
195
|
+
meetingRooms?: number;
|
|
196
|
+
categories?: number;
|
|
197
|
+
richTextDescription?: number;
|
|
198
|
+
}[];
|
|
199
|
+
syncToken?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface GetEventQuery {
|
|
202
|
+
/** 最大参与人数,默认值100,最大值500。 */
|
|
203
|
+
maxAttendees?: number;
|
|
204
|
+
}
|
|
205
|
+
export interface GetEventResponse {
|
|
206
|
+
id?: string;
|
|
207
|
+
summary?: string;
|
|
208
|
+
description?: string;
|
|
209
|
+
status: string;
|
|
210
|
+
start?: {
|
|
211
|
+
date?: string;
|
|
212
|
+
dateTime?: string;
|
|
213
|
+
timeZone?: string;
|
|
214
|
+
};
|
|
215
|
+
originStart?: {
|
|
216
|
+
dateTime?: string;
|
|
217
|
+
};
|
|
218
|
+
end?: {
|
|
219
|
+
date?: string;
|
|
220
|
+
dateTime?: string;
|
|
221
|
+
timeZone?: string;
|
|
222
|
+
};
|
|
223
|
+
isAllDay?: unknown;
|
|
224
|
+
recurrence?: {
|
|
225
|
+
pattern?: number;
|
|
226
|
+
range?: number;
|
|
227
|
+
};
|
|
228
|
+
attendees?: {
|
|
229
|
+
id?: string;
|
|
230
|
+
displayName?: string;
|
|
231
|
+
responseStatus?: string;
|
|
232
|
+
self?: number;
|
|
233
|
+
isOptional?: number;
|
|
234
|
+
}[];
|
|
235
|
+
organizer?: {
|
|
236
|
+
id?: string;
|
|
237
|
+
displayName?: string;
|
|
238
|
+
responseStatus?: string;
|
|
239
|
+
self?: number;
|
|
240
|
+
};
|
|
241
|
+
location?: {
|
|
242
|
+
displayName?: string;
|
|
243
|
+
meetingRooms?: number;
|
|
244
|
+
};
|
|
245
|
+
seriesMasterId?: string;
|
|
246
|
+
createTime?: string;
|
|
247
|
+
updateTime?: string;
|
|
248
|
+
reminders?: {
|
|
249
|
+
method?: string;
|
|
250
|
+
minutes?: string;
|
|
251
|
+
}[];
|
|
252
|
+
onlineMeetingInfo?: {
|
|
253
|
+
type?: string;
|
|
254
|
+
conferenceId?: string;
|
|
255
|
+
url?: string;
|
|
256
|
+
extraInfo?: number;
|
|
257
|
+
};
|
|
258
|
+
extendedProperties?: {
|
|
259
|
+
sharedProperties?: number;
|
|
260
|
+
};
|
|
261
|
+
meetingRooms?: {
|
|
262
|
+
roomId?: string;
|
|
263
|
+
responseStatus?: string;
|
|
264
|
+
displayName?: string;
|
|
265
|
+
}[];
|
|
266
|
+
categories?: {
|
|
267
|
+
displayName?: string;
|
|
268
|
+
}[];
|
|
269
|
+
richTextDescription?: {
|
|
270
|
+
text?: string;
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
export interface AddAttendeeParams {
|
|
274
|
+
/** 参与人信息。 */
|
|
275
|
+
attendeesToAdd: object[];
|
|
276
|
+
}
|
|
277
|
+
export interface RemoveAttendeeParams {
|
|
278
|
+
/** 日程参与人列表。 */
|
|
279
|
+
attendeesToRemove?: object[];
|
|
280
|
+
}
|
|
281
|
+
export interface CreateEventParams {
|
|
282
|
+
/** 日程标题,最大不超过2048个字符。 */
|
|
283
|
+
summary: string;
|
|
284
|
+
/** 日程描述,最大不超过5000个字符。 */
|
|
285
|
+
description?: string;
|
|
286
|
+
/** 日程开始时间。 */
|
|
287
|
+
start: unknown;
|
|
288
|
+
/** 日程结束时间。 */
|
|
289
|
+
end?: unknown;
|
|
290
|
+
/** 是否全天日程。 */
|
|
291
|
+
isAllDay?: unknown;
|
|
292
|
+
/** 日程循环规则。 */
|
|
293
|
+
recurrence?: unknown;
|
|
294
|
+
/** 日程参与人列表,最多支持500个参与人。 */
|
|
295
|
+
attendees?: object[];
|
|
296
|
+
/** 日程地点。 */
|
|
297
|
+
location?: unknown;
|
|
298
|
+
/** 日程提醒,可以添加多个,如果不传默认提醒时间为: */
|
|
299
|
+
reminders?: object[];
|
|
300
|
+
/** 创建日程同时创建线上会议。 */
|
|
301
|
+
onlineMeetingInfo?: unknown;
|
|
302
|
+
/** JSON格式的扩展能力开关,选填,具体属性定义如下: */
|
|
303
|
+
extra?: unknown;
|
|
304
|
+
}
|
|
305
|
+
export interface CreateEventResponse {
|
|
306
|
+
id?: string;
|
|
307
|
+
summary?: string;
|
|
308
|
+
description?: string;
|
|
309
|
+
start: {
|
|
310
|
+
date?: string;
|
|
311
|
+
dateTime?: string;
|
|
312
|
+
timeZone?: string;
|
|
313
|
+
};
|
|
314
|
+
end?: {
|
|
315
|
+
date?: string;
|
|
316
|
+
dateTime?: string;
|
|
317
|
+
timeZone?: string;
|
|
318
|
+
};
|
|
319
|
+
isAllDay?: unknown;
|
|
320
|
+
recurrence?: {
|
|
321
|
+
pattern?: number;
|
|
322
|
+
range?: number;
|
|
323
|
+
};
|
|
324
|
+
attendees?: {
|
|
325
|
+
id?: string;
|
|
326
|
+
displayName?: string;
|
|
327
|
+
responseStatus?: string;
|
|
328
|
+
self?: number;
|
|
329
|
+
isOptional?: number;
|
|
330
|
+
}[];
|
|
331
|
+
organizer?: {
|
|
332
|
+
id?: string;
|
|
333
|
+
displayName?: string;
|
|
334
|
+
responseStatus?: string;
|
|
335
|
+
self?: number;
|
|
336
|
+
};
|
|
337
|
+
location?: {
|
|
338
|
+
displayName?: string;
|
|
339
|
+
};
|
|
340
|
+
reminders?: {
|
|
341
|
+
method?: string;
|
|
342
|
+
minutes?: string;
|
|
343
|
+
}[];
|
|
344
|
+
createTime?: string;
|
|
345
|
+
updateTime?: string;
|
|
346
|
+
onlineMeetingInfo?: {
|
|
347
|
+
type?: string;
|
|
348
|
+
conferenceId?: string;
|
|
349
|
+
url?: string;
|
|
350
|
+
extraInfo?: number;
|
|
351
|
+
};
|
|
352
|
+
uiConfigs?: {
|
|
353
|
+
uiName?: string;
|
|
354
|
+
uiStatus?: string;
|
|
355
|
+
}[];
|
|
356
|
+
richTextDescription?: {
|
|
357
|
+
text?: string;
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
export interface ListEventsViewQuery {
|
|
361
|
+
/** 查询开始时间,格式为ISO-8601的date-time格式。 */
|
|
362
|
+
timeMin?: string;
|
|
363
|
+
/** 查询截止时间,格式为ISO-8601的date-time格式。 */
|
|
364
|
+
timeMax?: string;
|
|
365
|
+
/** 最大返回记录数,最大值100,默认值100。 */
|
|
366
|
+
maxResults?: number;
|
|
367
|
+
/** 每个日程的参与者查询个数,默认100,最大100。如果参会人数超过100人,需要拉取全部参会人请使用 */
|
|
368
|
+
maxAttendees?: number;
|
|
369
|
+
/** 分页游标。 */
|
|
370
|
+
nextToken?: string;
|
|
371
|
+
}
|
|
372
|
+
export interface ListEventsViewResponse {
|
|
373
|
+
nextToken?: string;
|
|
374
|
+
events?: {
|
|
375
|
+
id?: string;
|
|
376
|
+
summary?: string;
|
|
377
|
+
description?: string;
|
|
378
|
+
start?: number;
|
|
379
|
+
originStart?: number;
|
|
380
|
+
end?: number;
|
|
381
|
+
isAllDay?: number;
|
|
382
|
+
recurrence?: number;
|
|
383
|
+
attendees?: number;
|
|
384
|
+
organizer?: number;
|
|
385
|
+
location?: number;
|
|
386
|
+
seriesMasterId?: string;
|
|
387
|
+
createTime?: string;
|
|
388
|
+
updateTime?: string;
|
|
389
|
+
status?: string;
|
|
390
|
+
extendedProperties?: number;
|
|
391
|
+
onlineMeetingInfo?: number;
|
|
392
|
+
categories?: number;
|
|
393
|
+
richTextDescription?: number;
|
|
394
|
+
meetingRooms?: number;
|
|
395
|
+
}[];
|
|
396
|
+
}
|
|
397
|
+
export interface RespondEventParams {
|
|
398
|
+
/** 响应状态: */
|
|
399
|
+
responseStatus: string;
|
|
400
|
+
}
|
|
401
|
+
export interface PatchEventParams {
|
|
402
|
+
/** 日程标题。 */
|
|
403
|
+
summary?: string;
|
|
404
|
+
/** 日程ID。 */
|
|
405
|
+
id: string;
|
|
406
|
+
/** 日程描述。 */
|
|
407
|
+
description?: string;
|
|
408
|
+
/** 日程开始时间。 */
|
|
409
|
+
start?: unknown;
|
|
410
|
+
/** 日程结束时间。 */
|
|
411
|
+
end?: unknown;
|
|
412
|
+
/** 是否全天日程。 */
|
|
413
|
+
isAllDay?: unknown;
|
|
414
|
+
/** 日程循环规则。 */
|
|
415
|
+
recurrence?: unknown;
|
|
416
|
+
/** 参会人。 */
|
|
417
|
+
attendees?: object[];
|
|
418
|
+
/** 日程地点。 */
|
|
419
|
+
location?: unknown;
|
|
420
|
+
/** JSON格式的扩展能力开关,选填,具体属性定义如下。 */
|
|
421
|
+
extra?: unknown;
|
|
422
|
+
/** 单个日程提醒记录。 */
|
|
423
|
+
reminders?: object[];
|
|
424
|
+
/** 视频会议。 */
|
|
425
|
+
onlineMeetingInfo?: unknown;
|
|
426
|
+
}
|
|
427
|
+
export interface PatchEventResponse {
|
|
428
|
+
id?: string;
|
|
429
|
+
summary?: string;
|
|
430
|
+
description?: string;
|
|
431
|
+
start: {
|
|
432
|
+
date?: string;
|
|
433
|
+
dateTime?: string;
|
|
434
|
+
timeZone?: string;
|
|
435
|
+
};
|
|
436
|
+
end?: {
|
|
437
|
+
date?: string;
|
|
438
|
+
dateTime?: string;
|
|
439
|
+
timeZone?: string;
|
|
440
|
+
};
|
|
441
|
+
isAllDay?: unknown;
|
|
442
|
+
recurrence?: {
|
|
443
|
+
pattern?: number;
|
|
444
|
+
range?: number;
|
|
445
|
+
};
|
|
446
|
+
attendees?: {
|
|
447
|
+
id?: string;
|
|
448
|
+
displayName?: string;
|
|
449
|
+
responseStatus?: string;
|
|
450
|
+
self?: number;
|
|
451
|
+
isOptional?: number;
|
|
452
|
+
}[];
|
|
453
|
+
organizer?: {
|
|
454
|
+
id?: string;
|
|
455
|
+
displayName?: string;
|
|
456
|
+
responseStatus?: string;
|
|
457
|
+
self?: number;
|
|
458
|
+
};
|
|
459
|
+
location?: {
|
|
460
|
+
displayName?: string;
|
|
461
|
+
meetingRooms?: number;
|
|
462
|
+
};
|
|
463
|
+
reminders?: {
|
|
464
|
+
method?: string;
|
|
465
|
+
minutes?: string;
|
|
466
|
+
}[];
|
|
467
|
+
createTime?: string;
|
|
468
|
+
updateTime?: string;
|
|
469
|
+
onlineMeetingInfo?: {
|
|
470
|
+
type?: string;
|
|
471
|
+
conferenceId?: string;
|
|
472
|
+
url?: string;
|
|
473
|
+
};
|
|
474
|
+
richTextDescription?: {
|
|
475
|
+
text?: string;
|
|
476
|
+
};
|
|
477
|
+
uiConfigs?: {
|
|
478
|
+
uiName: string;
|
|
479
|
+
uiStatus: string;
|
|
480
|
+
}[];
|
|
481
|
+
}
|
|
482
|
+
declare module '../internal' {
|
|
483
|
+
interface Internal {
|
|
484
|
+
/**
|
|
485
|
+
* 查询会议室忙闲
|
|
486
|
+
* @see https://developers.dingtalk.com/document/isvapp/queries-free-and-busy-meeting-room-information
|
|
487
|
+
*/
|
|
488
|
+
getMeetingRoomsSchedule(userId: string, params: GetMeetingRoomsScheduleParams): Promise<GetMeetingRoomsScheduleResponse>;
|
|
489
|
+
/**
|
|
490
|
+
* 添加会议室
|
|
491
|
+
* @see https://developers.dingtalk.com/document/app/add-a-meeting-room
|
|
492
|
+
*/
|
|
493
|
+
addMeetingRooms(userId: string, calendarId: string, eventId: string, params: AddMeetingRoomsParams): Promise<AddMeetingRoomsResponse>;
|
|
494
|
+
/**
|
|
495
|
+
* 删除会议室
|
|
496
|
+
* @see https://developers.dingtalk.com/document/isvapp/cancel-a-meeting-room-reservation
|
|
497
|
+
*/
|
|
498
|
+
removeMeetingRooms(userId: string, calendarId: string, eventId: string, params: RemoveMeetingRoomsParams): Promise<RemoveMeetingRoomsResponse>;
|
|
499
|
+
/**
|
|
500
|
+
* 取消订阅公共日历
|
|
501
|
+
* @see https://developers.dingtalk.com/document/orgapp/unsubscribe-from-a-public-calendar
|
|
502
|
+
*/
|
|
503
|
+
unsubscribeCalendar(userId: string, calendarId: string): Promise<UnsubscribeCalendarResponse>;
|
|
504
|
+
/**
|
|
505
|
+
* 删除订阅日历
|
|
506
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-subscription-calendar
|
|
507
|
+
*/
|
|
508
|
+
deleteSubscribedCalendar(userId: string, calendarId: string): Promise<DeleteSubscribedCalendarResponse>;
|
|
509
|
+
/**
|
|
510
|
+
* 查询单个订阅日历详情
|
|
511
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-a-single-subscription-calendar
|
|
512
|
+
*/
|
|
513
|
+
getSubscribedCalendar(userId: string, calendarId: string): Promise<GetSubscribedCalendarResponse>;
|
|
514
|
+
/**
|
|
515
|
+
* 创建订阅日历
|
|
516
|
+
* @see https://developers.dingtalk.com/document/isvapp/create-subscription-calendar
|
|
517
|
+
*/
|
|
518
|
+
createSubscribedCalendar(userId: string, params: CreateSubscribedCalendarParams): Promise<CreateSubscribedCalendarResponse>;
|
|
519
|
+
/**
|
|
520
|
+
* 针对单个日程进行签退
|
|
521
|
+
* @see https://developers.dingtalk.com/document/isvapp/sign-off-for-a-single-schedule
|
|
522
|
+
*/
|
|
523
|
+
signOut(userId: string, calendarId: string, eventId: string): Promise<SignOutResponse>;
|
|
524
|
+
/**
|
|
525
|
+
* 查看单个日程的签退详情
|
|
526
|
+
* @see https://developers.dingtalk.com/document/isvapp/view-the-billing-details-of-a-single-schedule
|
|
527
|
+
*/
|
|
528
|
+
getSignOutList(userId: string, calendarId: string, eventId: string, query: GetSignOutListQuery): Promise<GetSignOutListResponse>;
|
|
529
|
+
/**
|
|
530
|
+
* 订阅公共日历
|
|
531
|
+
* @see https://developers.dingtalk.com/document/orgapp/subscribe-to-a-public-calendar
|
|
532
|
+
*/
|
|
533
|
+
subscribeCalendar(userId: string, calendarId: string): Promise<void>;
|
|
534
|
+
/**
|
|
535
|
+
* 获取日程参与者
|
|
536
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-schedule-participants
|
|
537
|
+
*/
|
|
538
|
+
listAttendees(userId: string, calendarId: string, eventId: string, query: ListAttendeesQuery): Promise<ListAttendeesResponse>;
|
|
539
|
+
/**
|
|
540
|
+
* 针对单个日程进行签到
|
|
541
|
+
* @see https://developers.dingtalk.com/document/orgapp-server/sign-in-for-a-single-schedule
|
|
542
|
+
*/
|
|
543
|
+
signIn(userId: string, calendarId: string, eventId: string): Promise<SignInResponse>;
|
|
544
|
+
/**
|
|
545
|
+
* 获取访问控制列表
|
|
546
|
+
* @see https://developers.dingtalk.com/document/personalapp/get-access-control-list
|
|
547
|
+
*/
|
|
548
|
+
listAcls(userId: string, calendarId: string): Promise<ListAclsResponse>;
|
|
549
|
+
/**
|
|
550
|
+
* 删除访问控制
|
|
551
|
+
* @see https://developers.dingtalk.com/document/personalapp/delete-access-control
|
|
552
|
+
*/
|
|
553
|
+
deleteAcl(userId: string, calendarId: string, aclId: string): Promise<void>;
|
|
554
|
+
/**
|
|
555
|
+
* 创建访问控制
|
|
556
|
+
* @see https://developers.dingtalk.com/document/personalapp/create-access-control
|
|
557
|
+
*/
|
|
558
|
+
createAcls(userId: string, calendarId: string, params: CreateAclsParams): Promise<CreateAclsResponse>;
|
|
559
|
+
/**
|
|
560
|
+
* 查看单个日程的签到详情
|
|
561
|
+
* @see https://developers.dingtalk.com/document/isvapp/view-the-check-in-details-of-a-single-schedule
|
|
562
|
+
*/
|
|
563
|
+
getSignInList(userId: string, calendarId: string, eventId: string, query: GetSignInListQuery): Promise<GetSignInListResponse>;
|
|
564
|
+
/**
|
|
565
|
+
* 查询日历
|
|
566
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-the-calendar
|
|
567
|
+
*/
|
|
568
|
+
listCalendars(userId: string): Promise<ListCalendarsResponse>;
|
|
569
|
+
/**
|
|
570
|
+
* 获取用户忙闲信息
|
|
571
|
+
* @see https://developers.dingtalk.com/document/isvapp/free-schedule
|
|
572
|
+
*/
|
|
573
|
+
getSchedule(userId: string, params: GetScheduleParams): Promise<GetScheduleResponse>;
|
|
574
|
+
/**
|
|
575
|
+
* 查询日程列表
|
|
576
|
+
* @see https://developers.dingtalk.com/document/personalapp/query-an-event-list-1
|
|
577
|
+
*/
|
|
578
|
+
listEvents(userId: string, calendarId: string, query: ListEventsQuery): Promise<ListEventsResponse>;
|
|
579
|
+
/**
|
|
580
|
+
* 查询日程列表
|
|
581
|
+
* @see https://developers.dingtalk.com/document/personalapp/query-a-single-schedule
|
|
582
|
+
*/
|
|
583
|
+
getEvent(userId: string, calendarId: string, eventId: string, query: GetEventQuery): Promise<GetEventResponse>;
|
|
584
|
+
/**
|
|
585
|
+
* 新增日程参与人
|
|
586
|
+
* @see https://developers.dingtalk.com/document/isvapp/add-schedule-participant
|
|
587
|
+
*/
|
|
588
|
+
addAttendee(userId: string, calendarId: string, eventId: string, params: AddAttendeeParams): Promise<void>;
|
|
589
|
+
/**
|
|
590
|
+
* 删除日程参与人
|
|
591
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-schedule-participant
|
|
592
|
+
*/
|
|
593
|
+
removeAttendee(userId: string, calendarId: string, eventId: string, params: RemoveAttendeeParams): Promise<void>;
|
|
594
|
+
/**
|
|
595
|
+
* 删除指定日程
|
|
596
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-schedule
|
|
597
|
+
*/
|
|
598
|
+
deleteEvent(userId: string, calendarId: string, eventId: string): Promise<void>;
|
|
599
|
+
/**
|
|
600
|
+
* 创建日程
|
|
601
|
+
* @see https://developers.dingtalk.com/document/personalapp/create-schedule
|
|
602
|
+
*/
|
|
603
|
+
createEvent(userId: string, calendarId: string, params: CreateEventParams): Promise<CreateEventResponse>;
|
|
604
|
+
/**
|
|
605
|
+
* 查询日程视图列表以查看闲忙,展开循环日程
|
|
606
|
+
* @see https://developers.dingtalk.com/document/personalapp/query-schedule-view-1
|
|
607
|
+
*/
|
|
608
|
+
listEventsView(userId: string, calendarId: string, query: ListEventsViewQuery): Promise<ListEventsViewResponse>;
|
|
609
|
+
/**
|
|
610
|
+
* 回复日程邀请
|
|
611
|
+
* @see https://developers.dingtalk.com/document/isvapp/participants-respond-to-schedule-invitations
|
|
612
|
+
*/
|
|
613
|
+
respondEvent(userId: string, calendarId: string, eventId: string, params: RespondEventParams): Promise<void>;
|
|
614
|
+
/**
|
|
615
|
+
* 修改日程
|
|
616
|
+
* @see https://developers.dingtalk.com/document/personalapp/modify-schedule
|
|
617
|
+
*/
|
|
618
|
+
patchEvent(userId: string, calendarId: string, eventId: string, params: PatchEventParams): Promise<PatchEventResponse>;
|
|
619
|
+
}
|
|
620
|
+
}
|