@satorijs/adapter-dingtalk 2.0.3 → 2.0.5

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.
Files changed (56) hide show
  1. package/lib/bot.d.ts +1 -1
  2. package/lib/http.d.ts +3 -2
  3. package/lib/index.js +35 -14
  4. package/lib/index.js.map +2 -3
  5. package/package.json +8 -4
  6. package/src/api/.eslintrc.yml +2 -0
  7. package/src/api/alitrip.ts +467 -0
  8. package/src/api/attendance.ts +81 -0
  9. package/src/api/badge.ts +285 -0
  10. package/src/api/blackboard.ts +28 -0
  11. package/src/api/calendar.ts +817 -0
  12. package/src/api/card.ts +215 -0
  13. package/src/api/conference.ts +561 -0
  14. package/src/api/connector.ts +97 -0
  15. package/src/api/contact.ts +56 -0
  16. package/src/api/convFile.ts +166 -0
  17. package/src/api/crm.ts +830 -0
  18. package/src/api/customerService.ts +156 -0
  19. package/src/api/datacenter.ts +672 -0
  20. package/src/api/devicemng.ts +202 -0
  21. package/src/api/diot.ts +19 -0
  22. package/src/api/doc.ts +232 -0
  23. package/src/api/drive.ts +109 -0
  24. package/src/api/edu.ts +30 -0
  25. package/src/api/esign.ts +44 -0
  26. package/src/api/exclusive.ts +372 -0
  27. package/src/api/h3yun.ts +537 -0
  28. package/src/api/hrm.ts +272 -0
  29. package/src/api/im.ts +978 -0
  30. package/src/api/industry.ts +153 -0
  31. package/src/api/jzcrm.ts +304 -0
  32. package/src/api/link.ts +94 -0
  33. package/src/api/live.ts +162 -0
  34. package/src/api/microApp.ts +309 -0
  35. package/src/api/oapi.ts +4083 -0
  36. package/src/api/oauth2.ts +146 -0
  37. package/src/api/pedia.ts +222 -0
  38. package/src/api/project.ts +1519 -0
  39. package/src/api/resident.ts +133 -0
  40. package/src/api/robot.ts +326 -0
  41. package/src/api/rooms.ts +334 -0
  42. package/src/api/serviceGroup.ts +216 -0
  43. package/src/api/storage.ts +1701 -0
  44. package/src/api/swform.ts +94 -0
  45. package/src/api/todo.ts +220 -0
  46. package/src/api/wiki.ts +231 -0
  47. package/src/api/workbench.ts +73 -0
  48. package/src/api/yida.ts +2165 -0
  49. package/src/bot.ts +129 -0
  50. package/src/http.ts +44 -0
  51. package/src/index.ts +9 -0
  52. package/src/internal.ts +47 -0
  53. package/src/message.ts +141 -0
  54. package/src/types/index.ts +140 -0
  55. package/src/utils.ts +53 -0
  56. package/src/ws.ts +55 -0
@@ -0,0 +1,817 @@
1
+ import { Internal } from '../internal'
2
+ // GENERATED CONTENT
3
+
4
+ export interface GetMeetingRoomsScheduleParams {
5
+ /** 待查询的会议室roomId列表,建议不超过5个。 */
6
+ roomIds: string[]
7
+ /** 查询开始时间,iso8601格式,例如:2022-07-29T14:55Z。 */
8
+ startTime: string
9
+ /** 查询结束时间,iso8601格式,例如:2022-07-29T14:55Z。 */
10
+ endTime: string
11
+ }
12
+
13
+ export interface GetMeetingRoomsScheduleResponse {
14
+ scheduleInformation?: {
15
+ roomId?: string
16
+ error?: string
17
+ scheduleItems?: number
18
+ }[]
19
+ }
20
+
21
+ export interface AddMeetingRoomsParams {
22
+ /** 需要预定的会议室roomId列表,一个日程最多添加5个会议室。 */
23
+ meetingRoomsToAdd: object[]
24
+ }
25
+
26
+ export interface AddMeetingRoomsResponse {
27
+ result?: unknown
28
+ }
29
+
30
+ export interface RemoveMeetingRoomsParams {
31
+ /** 需要取消预定的会议室信息。 */
32
+ meetingRoomsToRemove?: object[]
33
+ }
34
+
35
+ export interface RemoveMeetingRoomsResponse {
36
+ result?: unknown
37
+ }
38
+
39
+ export interface UnsubscribeCalendarResponse {
40
+ result?: unknown
41
+ }
42
+
43
+ export interface DeleteSubscribedCalendarResponse {
44
+ result?: unknown
45
+ }
46
+
47
+ export interface GetSubscribedCalendarResponse {
48
+ calendarId?: string
49
+ name?: string
50
+ description?: string
51
+ author?: string
52
+ managers?: string[]
53
+ subscribeScope?: {
54
+ unionIds?: number
55
+ openConversationIds?: number
56
+ corpIds?: number
57
+ }
58
+ }
59
+
60
+ export interface CreateSubscribedCalendarParams {
61
+ /** 订阅日历的名称。 */
62
+ name: string
63
+ /** 订阅日历的描述,最大长度1024字符。 */
64
+ description?: string
65
+ /** 订阅日历共同编辑人的unionId。 */
66
+ managers?: string[]
67
+ /** 可订阅该日历的对象。 */
68
+ subscribeScope: unknown
69
+ }
70
+
71
+ export interface CreateSubscribedCalendarResponse {
72
+ calendarId?: string
73
+ }
74
+
75
+ export interface SignOutResponse {
76
+ checkOutTime?: number
77
+ }
78
+
79
+ export interface GetSignOutListQuery {
80
+ /** 查询返回结果数,最大值500。 */
81
+ maxResults: number
82
+ /** 分页游标。 */
83
+ nextToken?: string
84
+ /** 签退信息类型。 */
85
+ type: string
86
+ }
87
+
88
+ export interface GetSignOutListResponse {
89
+ nextToken?: string
90
+ users?: {
91
+ userId?: string
92
+ displayName?: string
93
+ checkOutTime?: number
94
+ }[]
95
+ }
96
+
97
+ export interface ListAttendeesQuery {
98
+ /** 最大返回记录数,默认值100,最大值500。 */
99
+ maxResults?: number
100
+ /** 分页游标。 */
101
+ nextToken?: string
102
+ }
103
+
104
+ export interface ListAttendeesResponse {
105
+ nextToken?: string
106
+ attendees?: {
107
+ id?: string
108
+ displayName?: string
109
+ responseStatus?: string
110
+ self?: number
111
+ isOptional?: number
112
+ }[]
113
+ }
114
+
115
+ export interface SignInResponse {
116
+ checkInTime?: number
117
+ }
118
+
119
+ export interface ListAclsResponse {
120
+ acls?: {
121
+ privilege?: string
122
+ aclId?: string
123
+ scope?: number
124
+ }[]
125
+ }
126
+
127
+ export interface CreateAclsParams {
128
+ /** 权限信息,取值: */
129
+ privilege: string
130
+ /** 是否向授权人发消息。 */
131
+ sendMsg: unknown
132
+ /** 权限范围。 */
133
+ scope: unknown
134
+ }
135
+
136
+ export interface CreateAclsResponse {
137
+ privilege?: string
138
+ aclId?: string
139
+ scope?: {
140
+ scopeType?: string
141
+ userId?: string
142
+ }
143
+ }
144
+
145
+ export interface GetSignInListQuery {
146
+ /** 查询返回结果数,最大值500。 */
147
+ maxResults: number
148
+ /** 分页游标。 */
149
+ nextToken?: string
150
+ /** 签到信息类型,取值: */
151
+ type: string
152
+ }
153
+
154
+ export interface GetSignInListResponse {
155
+ nextToken?: string
156
+ users?: {
157
+ userId?: string
158
+ displayName?: string
159
+ checkInTime?: number
160
+ }[]
161
+ }
162
+
163
+ export interface ListCalendarsResponse {
164
+ response?: {
165
+ calendars: number
166
+ }
167
+ }
168
+
169
+ export interface GetScheduleParams {
170
+ /** 查询目标用户的unionId,可通过[根据userid获取用户详情](https://open.dingtalk.com/document/app/query-user-details)接口获取。 */
171
+ userIds: string[]
172
+ /** 查询的开始时间。 */
173
+ startTime: string
174
+ /** 查询的结束时间。 */
175
+ endTime: string
176
+ }
177
+
178
+ export interface GetScheduleResponse {
179
+ scheduleInformation?: {
180
+ userId?: string
181
+ error?: string
182
+ scheduleItems?: number
183
+ }[]
184
+ }
185
+
186
+ export interface ListEventsQuery {
187
+ /** 日程开始时间的最小值,格式为ISO-8601的date-time格式,可不填。 */
188
+ timeMin?: string
189
+ /** 日程开始时间的最大值,格式为ISO-8601的date-time格式,可不填。 */
190
+ timeMax?: string
191
+ /** 是否返回已取消/删除的日程。 */
192
+ showDeleted?: unknown
193
+ /** 最大返回记录数,最大值100,默认值100。 */
194
+ maxResults?: number
195
+ /** 每个日程的参与者查询个数,默认100,最大100。 */
196
+ maxAttendees?: number
197
+ /** 分页游标。 */
198
+ nextToken?: string
199
+ /** 同步token,用于增量数据同步场景,一个查询条件已经返回全部数据后(如果数据比较多会分页返回,调用方需要连续使用nextToken查询,直到所有分页都查完nextToken返回null之后),会返回一个syncToken,下次带着该token来查询会返回两次查询之间发生变更的增量数据。 */
200
+ syncToken?: string
201
+ }
202
+
203
+ export interface ListEventsResponse {
204
+ nextToken?: string
205
+ events?: {
206
+ id?: string
207
+ summary?: string
208
+ description?: string
209
+ start?: number
210
+ originStart?: number
211
+ end?: number
212
+ isAllDay?: number
213
+ recurrence?: number
214
+ attendees?: number
215
+ organizer?: number
216
+ location?: number
217
+ seriesMasterId?: string
218
+ createTime?: string
219
+ updateTime?: string
220
+ status?: string
221
+ onlineMeetingInfo?: number
222
+ reminders?: number
223
+ extendedProperties?: number
224
+ meetingRooms?: number
225
+ categories?: number
226
+ richTextDescription?: number
227
+ }[]
228
+ syncToken?: string
229
+ }
230
+
231
+ export interface GetEventQuery {
232
+ /** 最大参与人数,默认值100,最大值500。 */
233
+ maxAttendees?: number
234
+ }
235
+
236
+ export interface GetEventResponse {
237
+ id?: string
238
+ summary?: string
239
+ description?: string
240
+ status: string
241
+ start?: {
242
+ date?: string
243
+ dateTime?: string
244
+ timeZone?: string
245
+ }
246
+ originStart?: {
247
+ dateTime?: string
248
+ }
249
+ end?: {
250
+ date?: string
251
+ dateTime?: string
252
+ timeZone?: string
253
+ }
254
+ isAllDay?: unknown
255
+ recurrence?: {
256
+ pattern?: number
257
+ range?: number
258
+ }
259
+ attendees?: {
260
+ id?: string
261
+ displayName?: string
262
+ responseStatus?: string
263
+ self?: number
264
+ isOptional?: number
265
+ }[]
266
+ organizer?: {
267
+ id?: string
268
+ displayName?: string
269
+ responseStatus?: string
270
+ self?: number
271
+ }
272
+ location?: {
273
+ displayName?: string
274
+ meetingRooms?: number
275
+ }
276
+ seriesMasterId?: string
277
+ createTime?: string
278
+ updateTime?: string
279
+ reminders?: {
280
+ method?: string
281
+ minutes?: string
282
+ }[]
283
+ onlineMeetingInfo?: {
284
+ type?: string
285
+ conferenceId?: string
286
+ url?: string
287
+ extraInfo?: number
288
+ }
289
+ extendedProperties?: {
290
+ sharedProperties?: number
291
+ }
292
+ meetingRooms?: {
293
+ roomId?: string
294
+ responseStatus?: string
295
+ displayName?: string
296
+ }[]
297
+ categories?: {
298
+ displayName?: string
299
+ }[]
300
+ richTextDescription?: {
301
+ text?: string
302
+ }
303
+ }
304
+
305
+ export interface AddAttendeeParams {
306
+ /** 参与人信息。 */
307
+ attendeesToAdd: object[]
308
+ }
309
+
310
+ export interface RemoveAttendeeParams {
311
+ /** 日程参与人列表。 */
312
+ attendeesToRemove?: object[]
313
+ }
314
+
315
+ export interface CreateEventParams {
316
+ /** 日程标题,最大不超过2048个字符。 */
317
+ summary: string
318
+ /** 日程描述,最大不超过5000个字符。 */
319
+ description?: string
320
+ /** 日程开始时间。 */
321
+ start: unknown
322
+ /** 日程结束时间。 */
323
+ end?: unknown
324
+ /** 是否全天日程。 */
325
+ isAllDay?: unknown
326
+ /** 日程循环规则。 */
327
+ recurrence?: unknown
328
+ /** 日程参与人列表,最多支持500个参与人。 */
329
+ attendees?: object[]
330
+ /** 日程地点。 */
331
+ location?: unknown
332
+ /** 日程提醒,可以添加多个,如果不传默认提醒时间为: */
333
+ reminders?: object[]
334
+ /** 创建日程同时创建线上会议。 */
335
+ onlineMeetingInfo?: unknown
336
+ /** JSON格式的扩展能力开关,选填,具体属性定义如下: */
337
+ extra?: unknown
338
+ }
339
+
340
+ export interface CreateEventResponse {
341
+ id?: string
342
+ summary?: string
343
+ description?: string
344
+ start: {
345
+ date?: string
346
+ dateTime?: string
347
+ timeZone?: string
348
+ }
349
+ end?: {
350
+ date?: string
351
+ dateTime?: string
352
+ timeZone?: string
353
+ }
354
+ isAllDay?: unknown
355
+ recurrence?: {
356
+ pattern?: number
357
+ range?: number
358
+ }
359
+ attendees?: {
360
+ id?: string
361
+ displayName?: string
362
+ responseStatus?: string
363
+ self?: number
364
+ isOptional?: number
365
+ }[]
366
+ organizer?: {
367
+ id?: string
368
+ displayName?: string
369
+ responseStatus?: string
370
+ self?: number
371
+ }
372
+ location?: {
373
+ displayName?: string
374
+ }
375
+ reminders?: {
376
+ method?: string
377
+ minutes?: string
378
+ }[]
379
+ createTime?: string
380
+ updateTime?: string
381
+ onlineMeetingInfo?: {
382
+ type?: string
383
+ conferenceId?: string
384
+ url?: string
385
+ extraInfo?: number
386
+ }
387
+ uiConfigs?: {
388
+ uiName?: string
389
+ uiStatus?: string
390
+ }[]
391
+ richTextDescription?: {
392
+ text?: string
393
+ }
394
+ }
395
+
396
+ export interface ListEventsViewQuery {
397
+ /** 查询开始时间,格式为ISO-8601的date-time格式。 */
398
+ timeMin?: string
399
+ /** 查询截止时间,格式为ISO-8601的date-time格式。 */
400
+ timeMax?: string
401
+ /** 最大返回记录数,最大值100,默认值100。 */
402
+ maxResults?: number
403
+ /** 每个日程的参与者查询个数,默认100,最大100。如果参会人数超过100人,需要拉取全部参会人请使用 */
404
+ maxAttendees?: number
405
+ /** 分页游标。 */
406
+ nextToken?: string
407
+ }
408
+
409
+ export interface ListEventsViewResponse {
410
+ nextToken?: string
411
+ events?: {
412
+ id?: string
413
+ summary?: string
414
+ description?: string
415
+ start?: number
416
+ originStart?: number
417
+ end?: number
418
+ isAllDay?: number
419
+ recurrence?: number
420
+ attendees?: number
421
+ organizer?: number
422
+ location?: number
423
+ seriesMasterId?: string
424
+ createTime?: string
425
+ updateTime?: string
426
+ status?: string
427
+ extendedProperties?: number
428
+ onlineMeetingInfo?: number
429
+ categories?: number
430
+ richTextDescription?: number
431
+ meetingRooms?: number
432
+ }[]
433
+ }
434
+
435
+ export interface RespondEventParams {
436
+ /** 响应状态: */
437
+ responseStatus: string
438
+ }
439
+
440
+ export interface PatchEventParams {
441
+ /** 日程标题。 */
442
+ summary?: string
443
+ /** 日程ID。 */
444
+ id: string
445
+ /** 日程描述。 */
446
+ description?: string
447
+ /** 日程开始时间。 */
448
+ start?: unknown
449
+ /** 日程结束时间。 */
450
+ end?: unknown
451
+ /** 是否全天日程。 */
452
+ isAllDay?: unknown
453
+ /** 日程循环规则。 */
454
+ recurrence?: unknown
455
+ /** 参会人。 */
456
+ attendees?: object[]
457
+ /** 日程地点。 */
458
+ location?: unknown
459
+ /** JSON格式的扩展能力开关,选填,具体属性定义如下。 */
460
+ extra?: unknown
461
+ /** 单个日程提醒记录。 */
462
+ reminders?: object[]
463
+ /** 视频会议。 */
464
+ onlineMeetingInfo?: unknown
465
+ }
466
+
467
+ export interface PatchEventResponse {
468
+ id?: string
469
+ summary?: string
470
+ description?: string
471
+ start: {
472
+ date?: string
473
+ dateTime?: string
474
+ timeZone?: string
475
+ }
476
+ end?: {
477
+ date?: string
478
+ dateTime?: string
479
+ timeZone?: string
480
+ }
481
+ isAllDay?: unknown
482
+ recurrence?: {
483
+ pattern?: number
484
+ range?: number
485
+ }
486
+ attendees?: {
487
+ id?: string
488
+ displayName?: string
489
+ responseStatus?: string
490
+ self?: number
491
+ isOptional?: number
492
+ }[]
493
+ organizer?: {
494
+ id?: string
495
+ displayName?: string
496
+ responseStatus?: string
497
+ self?: number
498
+ }
499
+ location?: {
500
+ displayName?: string
501
+ meetingRooms?: number
502
+ }
503
+ reminders?: {
504
+ method?: string
505
+ minutes?: string
506
+ }[]
507
+ createTime?: string
508
+ updateTime?: string
509
+ onlineMeetingInfo?: {
510
+ type?: string
511
+ conferenceId?: string
512
+ url?: string
513
+ }
514
+ richTextDescription?: {
515
+ text?: string
516
+ }
517
+ uiConfigs?: {
518
+ uiName: string
519
+ uiStatus: string
520
+ }[]
521
+ }
522
+
523
+ // funcName: isOldApi
524
+ Internal.define({
525
+ '/calendar/users/{userId}/meetingRooms/schedules/query': {
526
+ POST: { getMeetingRoomsSchedule: false },
527
+ },
528
+ '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/meetingRooms':
529
+ { POST: { addMeetingRooms: false } },
530
+ '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/meetingRooms/batchRemove':
531
+ { POST: { removeMeetingRooms: false } },
532
+ '/calendar/users/{userId}/calendars/{calendarId}/unsubscribe': {
533
+ POST: { unsubscribeCalendar: false },
534
+ },
535
+ '/calendar/users/{userId}/subscribedCalendars/{calendarId}': {
536
+ DELETE: { deleteSubscribedCalendar: false },
537
+ GET: { getSubscribedCalendar: false },
538
+ },
539
+ '/calendar/users/{userId}/subscribedCalendars': {
540
+ POST: { createSubscribedCalendar: false },
541
+ },
542
+ '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/signOut': {
543
+ POST: { signOut: false },
544
+ GET: { getSignOutList: false },
545
+ },
546
+ '/calendar/users/{userId}/calendars/{calendarId}/subscribe': {
547
+ POST: { subscribeCalendar: false },
548
+ },
549
+ '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/attendees':
550
+ { GET: { listAttendees: false }, POST: { addAttendee: false } },
551
+ '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/signin': {
552
+ POST: { signIn: false },
553
+ GET: { getSignInList: false },
554
+ },
555
+ '/calendar/users/{userId}/calendars/{calendarId}/acls': {
556
+ GET: { listAcls: false },
557
+ POST: { createAcls: false },
558
+ },
559
+ '/calendar/users/{userId}/calendars/{calendarId}/acls/{aclId}': {
560
+ DELETE: { deleteAcl: false },
561
+ },
562
+ '/calendar/users/{userId}/calendars': { GET: { listCalendars: false } },
563
+ '/calendar/users/{userId}/querySchedule': { POST: { getSchedule: false } },
564
+ '/calendar/users/{userId}/calendars/{calendarId}/events': {
565
+ GET: { listEvents: false },
566
+ POST: { createEvent: false },
567
+ },
568
+ '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}': {
569
+ GET: { getEvent: false },
570
+ DELETE: { deleteEvent: false },
571
+ PUT: { patchEvent: false },
572
+ },
573
+ '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/attendees/batchRemove':
574
+ { POST: { removeAttendee: false } },
575
+ '/calendar/users/{userId}/calendars/{calendarId}/eventsview': {
576
+ GET: { listEventsView: false },
577
+ },
578
+ '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/respond': {
579
+ POST: { respondEvent: false },
580
+ },
581
+ })
582
+
583
+ declare module '../internal' {
584
+ interface Internal {
585
+ /**
586
+ * 查询会议室忙闲
587
+ * @see https://open.dingtalk.com/document/isvapp/queries-free-and-busy-meeting-room-information
588
+ */
589
+ getMeetingRoomsSchedule(
590
+ userId: string,
591
+ params: GetMeetingRoomsScheduleParams,
592
+ ): Promise<GetMeetingRoomsScheduleResponse>
593
+ /**
594
+ * 添加会议室
595
+ * @see https://open.dingtalk.com/document/app/add-a-meeting-room
596
+ */
597
+ addMeetingRooms(
598
+ userId: string,
599
+ calendarId: string,
600
+ eventId: string,
601
+ params: AddMeetingRoomsParams,
602
+ ): Promise<AddMeetingRoomsResponse>
603
+ /**
604
+ * 删除会议室
605
+ * @see https://open.dingtalk.com/document/isvapp/cancel-a-meeting-room-reservation
606
+ */
607
+ removeMeetingRooms(
608
+ userId: string,
609
+ calendarId: string,
610
+ eventId: string,
611
+ params: RemoveMeetingRoomsParams,
612
+ ): Promise<RemoveMeetingRoomsResponse>
613
+ /**
614
+ * 取消订阅公共日历
615
+ * @see https://open.dingtalk.com/document/orgapp/unsubscribe-from-a-public-calendar
616
+ */
617
+ unsubscribeCalendar(
618
+ userId: string,
619
+ calendarId: string,
620
+ ): Promise<UnsubscribeCalendarResponse>
621
+ /**
622
+ * 删除订阅日历
623
+ * @see https://open.dingtalk.com/document/isvapp/delete-subscription-calendar
624
+ */
625
+ deleteSubscribedCalendar(
626
+ userId: string,
627
+ calendarId: string,
628
+ ): Promise<DeleteSubscribedCalendarResponse>
629
+ /**
630
+ * 查询单个订阅日历详情
631
+ * @see https://open.dingtalk.com/document/isvapp/query-a-single-subscription-calendar
632
+ */
633
+ getSubscribedCalendar(
634
+ userId: string,
635
+ calendarId: string,
636
+ ): Promise<GetSubscribedCalendarResponse>
637
+ /**
638
+ * 创建订阅日历
639
+ * @see https://open.dingtalk.com/document/isvapp/create-subscription-calendar
640
+ */
641
+ createSubscribedCalendar(
642
+ userId: string,
643
+ params: CreateSubscribedCalendarParams,
644
+ ): Promise<CreateSubscribedCalendarResponse>
645
+ /**
646
+ * 针对单个日程进行签退
647
+ * @see https://open.dingtalk.com/document/isvapp/sign-off-for-a-single-schedule
648
+ */
649
+ signOut(
650
+ userId: string,
651
+ calendarId: string,
652
+ eventId: string,
653
+ ): Promise<SignOutResponse>
654
+ /**
655
+ * 查看单个日程的签退详情
656
+ * @see https://open.dingtalk.com/document/isvapp/view-the-billing-details-of-a-single-schedule
657
+ */
658
+ getSignOutList(
659
+ userId: string,
660
+ calendarId: string,
661
+ eventId: string,
662
+ query: GetSignOutListQuery,
663
+ ): Promise<GetSignOutListResponse>
664
+ /**
665
+ * 订阅公共日历
666
+ * @see https://open.dingtalk.com/document/orgapp/subscribe-to-a-public-calendar
667
+ */
668
+ subscribeCalendar(userId: string, calendarId: string): Promise<void>
669
+ /**
670
+ * 获取日程参与者
671
+ * @see https://open.dingtalk.com/document/isvapp/query-schedule-participants
672
+ */
673
+ listAttendees(
674
+ userId: string,
675
+ calendarId: string,
676
+ eventId: string,
677
+ query: ListAttendeesQuery,
678
+ ): Promise<ListAttendeesResponse>
679
+ /**
680
+ * 针对单个日程进行签到
681
+ * @see https://open.dingtalk.com/document/orgapp-server/sign-in-for-a-single-schedule
682
+ */
683
+ signIn(
684
+ userId: string,
685
+ calendarId: string,
686
+ eventId: string,
687
+ ): Promise<SignInResponse>
688
+ /**
689
+ * 获取访问控制列表
690
+ * @see https://open.dingtalk.com/document/personalapp/get-access-control-list
691
+ */
692
+ listAcls(userId: string, calendarId: string): Promise<ListAclsResponse>
693
+ /**
694
+ * 删除访问控制
695
+ * @see https://open.dingtalk.com/document/personalapp/delete-access-control
696
+ */
697
+ deleteAcl(userId: string, calendarId: string, aclId: string): Promise<void>
698
+ /**
699
+ * 创建访问控制
700
+ * @see https://open.dingtalk.com/document/personalapp/create-access-control
701
+ */
702
+ createAcls(
703
+ userId: string,
704
+ calendarId: string,
705
+ params: CreateAclsParams,
706
+ ): Promise<CreateAclsResponse>
707
+ /**
708
+ * 查看单个日程的签到详情
709
+ * @see https://open.dingtalk.com/document/isvapp/view-the-check-in-details-of-a-single-schedule
710
+ */
711
+ getSignInList(
712
+ userId: string,
713
+ calendarId: string,
714
+ eventId: string,
715
+ query: GetSignInListQuery,
716
+ ): Promise<GetSignInListResponse>
717
+ /**
718
+ * 查询日历
719
+ * @see https://open.dingtalk.com/document/isvapp/query-the-calendar
720
+ */
721
+ listCalendars(userId: string): Promise<ListCalendarsResponse>
722
+ /**
723
+ * 获取用户忙闲信息
724
+ * @see https://open.dingtalk.com/document/isvapp/free-schedule
725
+ */
726
+ getSchedule(
727
+ userId: string,
728
+ params: GetScheduleParams,
729
+ ): Promise<GetScheduleResponse>
730
+ /**
731
+ * 查询日程列表
732
+ * @see https://open.dingtalk.com/document/personalapp/query-an-event-list-1
733
+ */
734
+ listEvents(
735
+ userId: string,
736
+ calendarId: string,
737
+ query: ListEventsQuery,
738
+ ): Promise<ListEventsResponse>
739
+ /**
740
+ * 查询日程列表
741
+ * @see https://open.dingtalk.com/document/personalapp/query-a-single-schedule
742
+ */
743
+ getEvent(
744
+ userId: string,
745
+ calendarId: string,
746
+ eventId: string,
747
+ query: GetEventQuery,
748
+ ): Promise<GetEventResponse>
749
+ /**
750
+ * 新增日程参与人
751
+ * @see https://open.dingtalk.com/document/isvapp/add-schedule-participant
752
+ */
753
+ addAttendee(
754
+ userId: string,
755
+ calendarId: string,
756
+ eventId: string,
757
+ params: AddAttendeeParams,
758
+ ): Promise<void>
759
+ /**
760
+ * 删除日程参与人
761
+ * @see https://open.dingtalk.com/document/isvapp/delete-schedule-participant
762
+ */
763
+ removeAttendee(
764
+ userId: string,
765
+ calendarId: string,
766
+ eventId: string,
767
+ params: RemoveAttendeeParams,
768
+ ): Promise<void>
769
+ /**
770
+ * 删除指定日程
771
+ * @see https://open.dingtalk.com/document/isvapp/delete-schedule
772
+ */
773
+ deleteEvent(
774
+ userId: string,
775
+ calendarId: string,
776
+ eventId: string,
777
+ ): Promise<void>
778
+ /**
779
+ * 创建日程
780
+ * @see https://open.dingtalk.com/document/personalapp/create-schedule
781
+ */
782
+ createEvent(
783
+ userId: string,
784
+ calendarId: string,
785
+ params: CreateEventParams,
786
+ ): Promise<CreateEventResponse>
787
+ /**
788
+ * 查询日程视图列表以查看闲忙,展开循环日程
789
+ * @see https://open.dingtalk.com/document/personalapp/query-schedule-view-1
790
+ */
791
+ listEventsView(
792
+ userId: string,
793
+ calendarId: string,
794
+ query: ListEventsViewQuery,
795
+ ): Promise<ListEventsViewResponse>
796
+ /**
797
+ * 回复日程邀请
798
+ * @see https://open.dingtalk.com/document/isvapp/participants-respond-to-schedule-invitations
799
+ */
800
+ respondEvent(
801
+ userId: string,
802
+ calendarId: string,
803
+ eventId: string,
804
+ params: RespondEventParams,
805
+ ): Promise<void>
806
+ /**
807
+ * 修改日程
808
+ * @see https://open.dingtalk.com/document/personalapp/modify-schedule
809
+ */
810
+ patchEvent(
811
+ userId: string,
812
+ calendarId: string,
813
+ eventId: string,
814
+ params: PatchEventParams,
815
+ ): Promise<PatchEventResponse>
816
+ }
817
+ }