@satorijs/adapter-dingtalk 2.0.2 → 2.0.4

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 (55) hide show
  1. package/lib/http.d.ts +4 -2
  2. package/lib/index.js +11 -8
  3. package/lib/index.js.map +1 -2
  4. package/package.json +8 -4
  5. package/src/api/.eslintrc.yml +2 -0
  6. package/src/api/alitrip.ts +467 -0
  7. package/src/api/attendance.ts +81 -0
  8. package/src/api/badge.ts +285 -0
  9. package/src/api/blackboard.ts +28 -0
  10. package/src/api/calendar.ts +817 -0
  11. package/src/api/card.ts +215 -0
  12. package/src/api/conference.ts +561 -0
  13. package/src/api/connector.ts +97 -0
  14. package/src/api/contact.ts +56 -0
  15. package/src/api/convFile.ts +166 -0
  16. package/src/api/crm.ts +830 -0
  17. package/src/api/customerService.ts +156 -0
  18. package/src/api/datacenter.ts +672 -0
  19. package/src/api/devicemng.ts +202 -0
  20. package/src/api/diot.ts +19 -0
  21. package/src/api/doc.ts +232 -0
  22. package/src/api/drive.ts +109 -0
  23. package/src/api/edu.ts +30 -0
  24. package/src/api/esign.ts +44 -0
  25. package/src/api/exclusive.ts +372 -0
  26. package/src/api/h3yun.ts +537 -0
  27. package/src/api/hrm.ts +272 -0
  28. package/src/api/im.ts +978 -0
  29. package/src/api/industry.ts +153 -0
  30. package/src/api/jzcrm.ts +304 -0
  31. package/src/api/link.ts +94 -0
  32. package/src/api/live.ts +162 -0
  33. package/src/api/microApp.ts +309 -0
  34. package/src/api/oapi.ts +4083 -0
  35. package/src/api/oauth2.ts +146 -0
  36. package/src/api/pedia.ts +222 -0
  37. package/src/api/project.ts +1519 -0
  38. package/src/api/resident.ts +133 -0
  39. package/src/api/robot.ts +326 -0
  40. package/src/api/rooms.ts +334 -0
  41. package/src/api/serviceGroup.ts +216 -0
  42. package/src/api/storage.ts +1701 -0
  43. package/src/api/swform.ts +94 -0
  44. package/src/api/todo.ts +220 -0
  45. package/src/api/wiki.ts +231 -0
  46. package/src/api/workbench.ts +73 -0
  47. package/src/api/yida.ts +2165 -0
  48. package/src/bot.ts +111 -0
  49. package/src/http.ts +44 -0
  50. package/src/index.ts +9 -0
  51. package/src/internal.ts +47 -0
  52. package/src/message.ts +141 -0
  53. package/src/types/index.ts +140 -0
  54. package/src/utils.ts +51 -0
  55. package/src/ws.ts +55 -0
package/src/api/crm.ts ADDED
@@ -0,0 +1,830 @@
1
+ import { Internal } from '../internal'
2
+ // GENERATED CONTENT
3
+
4
+ export interface QueryGlobalInfoQuery {
5
+ /** 用户 userId */
6
+ userId: string
7
+ }
8
+
9
+ export interface QueryGlobalInfoResponse {
10
+ result?: {
11
+ oemEnable?: number
12
+ }
13
+ }
14
+
15
+ export interface BatchUpdateFollowRecordsParams {
16
+ /** 操作人userId。 */
17
+ operatorUserId: string
18
+ /** 更新的跟进记录数据信息。 */
19
+ instanceList: object[]
20
+ }
21
+
22
+ export interface BatchUpdateFollowRecordsResponse {
23
+ results?: {
24
+ success?: number
25
+ errorCode?: string
26
+ errorMsg?: string
27
+ instanceId?: string
28
+ }[]
29
+ }
30
+
31
+ export interface BatchAddFollowRecordsParams {
32
+ /** 操作人userId。 */
33
+ operatorUserId: string
34
+ /** 跟进记录数据字段列表,最大值40。 */
35
+ instanceList: object[]
36
+ }
37
+
38
+ export interface BatchAddFollowRecordsResponse {
39
+ results?: {
40
+ success?: number
41
+ errorCode?: string
42
+ errorMsg?: string
43
+ instanceId?: string
44
+ }[]
45
+ }
46
+
47
+ export interface BatchRemoveFollowRecordsParams {
48
+ /** 操作人userId。 */
49
+ operatorUserId: string
50
+ /** 跟进记录ID。 */
51
+ instanceIds: string[]
52
+ }
53
+
54
+ export interface BatchRemoveFollowRecordsResponse {
55
+ results?: {
56
+ success?: number
57
+ errorCode?: string
58
+ errorMsg?: string
59
+ instanceId?: string
60
+ }[]
61
+ }
62
+
63
+ export interface DeleteCrmCustomObjectDataQuery {
64
+ /** 自定义对象表单code。 */
65
+ formCode: string
66
+ }
67
+
68
+ export interface DeleteCrmCustomObjectDataResponse {
69
+ instanceId: string
70
+ }
71
+
72
+ export interface BatchUpdateContactsParams {
73
+ /** 操作人userId。 */
74
+ operatorUserId: string
75
+ /** 联系人数据列表,最大值10。 */
76
+ relationList: object[]
77
+ }
78
+
79
+ export interface BatchUpdateContactsResponse {
80
+ results?: {
81
+ success?: number
82
+ errorCode?: string
83
+ errorMsg?: string
84
+ relationId?: string
85
+ }[]
86
+ }
87
+
88
+ export interface BatchAddContactsParams {
89
+ /** 操作人userId。 */
90
+ operatorUserId: string
91
+ /** 联系人数据列表,最大值10。 */
92
+ relationList: object[]
93
+ }
94
+
95
+ export interface BatchAddContactsResponse {
96
+ results?: {
97
+ success?: number
98
+ errorCode?: string
99
+ errorMsg?: string
100
+ relationId?: string
101
+ }[]
102
+ }
103
+
104
+ export interface BatchAddRelationDatasParams {
105
+ /** 客户类型。 */
106
+ relationType: string
107
+ /** 操作人userId。 */
108
+ operatorUserId: string
109
+ /** 是否跳过查重,默认不跳过。 */
110
+ skipDuplicateCheck?: unknown
111
+ /** 新增客户关系列表,最大值10。 */
112
+ relationList: object[]
113
+ }
114
+
115
+ export interface BatchAddRelationDatasResponse {
116
+ results?: {
117
+ success?: number
118
+ errorCode?: string
119
+ errorMsg?: string
120
+ relationId?: string
121
+ duplicatedRelationIds?: number
122
+ }[]
123
+ }
124
+
125
+ export interface BatchUpdateRelationDatasParams {
126
+ /** 客户类型。 */
127
+ relationType: string
128
+ /** 操作人userId。 */
129
+ operatorUserId: string
130
+ /** 是否跳过查重,默认不跳过。 */
131
+ skipDuplicateCheck?: unknown
132
+ /** 更新的客户数据列表,最大值10。 */
133
+ relationList: object[]
134
+ }
135
+
136
+ export interface BatchUpdateRelationDatasResponse {
137
+ results?: {
138
+ success?: number
139
+ errorCode?: string
140
+ errorMsg?: string
141
+ relationId?: string
142
+ duplicatedRelationIds?: number
143
+ }[]
144
+ }
145
+
146
+ export interface GetRelationUkSettingQuery {
147
+ /** 客户类型。 */
148
+ relationType: string
149
+ }
150
+
151
+ export interface GetRelationUkSettingResponse {
152
+ result?: {
153
+ fieldId: string
154
+ bizAlias?: string
155
+ }[]
156
+ }
157
+
158
+ export interface CrmCreateGroupParams {
159
+ /** 群名称。 */
160
+ groupName: string
161
+ /** 群主userId。 */
162
+ ownerUserId: string
163
+ /** 群成员userId。 */
164
+ memberUserIds?: string
165
+ /** 关系类型。 */
166
+ relationType: string
167
+ }
168
+
169
+ export interface CrmCreateGroupResponse {
170
+ openConversationId: string
171
+ }
172
+
173
+ export interface GetCrmGroupChatMultiParams {
174
+ /** 客户群openConversationId。 */
175
+ openConversationIds?: string[]
176
+ }
177
+
178
+ export interface GetCrmGroupChatMultiResponse {
179
+ result?: {
180
+ openConversationId?: string
181
+ openGroupSetId?: string
182
+ ownerUserId?: string
183
+ ownerUserName?: string
184
+ name?: string
185
+ memberCount?: number
186
+ gmtCreate?: number
187
+ iconUrl?: string
188
+ }[]
189
+ }
190
+
191
+ export interface GetCrmGroupChatSingleQuery {
192
+ /** 客户群openConversationId。 */
193
+ openConversationId: string
194
+ }
195
+
196
+ export interface GetCrmGroupChatSingleResponse {
197
+ openConversationId?: string
198
+ openGroupSetId?: string
199
+ ownerUserId?: string
200
+ ownerUserName?: string
201
+ name?: string
202
+ memberCount?: number
203
+ gmtCreate?: number
204
+ iconUrl?: string
205
+ }
206
+
207
+ export interface QueryRelationDatasByTargetIdQuery {
208
+ /** 关系类型。 */
209
+ relationType: string
210
+ }
211
+
212
+ export interface QueryRelationDatasByTargetIdResponse {
213
+ relations: {
214
+ relationId: string
215
+ relationType: string
216
+ bizDataList: number
217
+ openConversationIds: number
218
+ }[]
219
+ }
220
+
221
+ export interface QueryCrmGroupChatsQuery {
222
+ /** 关系类型。 */
223
+ relationType: string
224
+ /** 分页游标。 */
225
+ nextToken?: string
226
+ /** 每页最大条目数,最大值100。 */
227
+ maxResults: number
228
+ /** 查询DSL语法。 */
229
+ queryDsl?: string
230
+ }
231
+
232
+ export interface QueryCrmGroupChatsResponse {
233
+ resultList?: {
234
+ openConversationId: string
235
+ openGroupSetId?: string
236
+ ownerUserId: string
237
+ ownerUserName: string
238
+ name: string
239
+ memberCount: number
240
+ gmtCreate: number
241
+ }[]
242
+ hasMore: unknown
243
+ nextToken?: string
244
+ totalCount?: number
245
+ }
246
+
247
+ export interface CrmUpdateGroupSetParams {
248
+ /** 群组openGroupSetId,调用[查询客户群组列表](https://open.dingtalk.com/document/orgapp-server/query-groups)接口获取。 */
249
+ openGroupSetId: string
250
+ /** 群组名。 */
251
+ name?: string
252
+ /** 单个群的人数上限。 */
253
+ memberQuota?: number
254
+ /** 群主userId。 */
255
+ ownerUserId?: string
256
+ /** 群管理员userId列表,多个用逗号隔开,裂变出的新群会自动设置这些userId为群管理员。 */
257
+ managerUserIds?: string
258
+ /** 群公告文本。 */
259
+ notice?: string
260
+ /** 群公告是否置顶。 */
261
+ noticeToped?: number
262
+ /** 群模板Id。 */
263
+ templateId?: string
264
+ /** 新成员入群后收到的欢迎语。 */
265
+ welcome?: string
266
+ }
267
+
268
+ export interface ListGroupSetQuery {
269
+ /** 分页游标。 */
270
+ nextToken?: string
271
+ /** 每页条目数,最大值10。 */
272
+ maxResults?: number
273
+ /** 查询DSL。 */
274
+ queryDsl?: string
275
+ /** 关系类型。 */
276
+ relationType: string
277
+ }
278
+
279
+ export interface ListGroupSetResponse {
280
+ hasMore?: unknown
281
+ nextToken?: string
282
+ resultList: {
283
+ name?: string
284
+ openGroupSetId?: string
285
+ relationType?: string
286
+ memberQuota?: number
287
+ memberCount?: number
288
+ templateId?: string
289
+ ownerUserId?: string
290
+ managerUserIds?: string
291
+ notice?: string
292
+ noticeToped?: number
293
+ owner: number
294
+ manager: number
295
+ lastOpenConversationId: string
296
+ gmtCreate?: string
297
+ gmtModified?: string
298
+ groupChatCount?: number
299
+ }[]
300
+ totalCount?: number
301
+ }
302
+
303
+ export interface CreateGroupSetParams {
304
+ /** 群组名。 */
305
+ name: string
306
+ /** 群主userId。 */
307
+ ownerUserId: string
308
+ /** 创建人userId。 */
309
+ creatorUserId: string
310
+ /** 群模板Id。 */
311
+ templateId?: string
312
+ /** 单个群的人数上限,最大值900。 */
313
+ memberQuota?: number
314
+ /** 群管理员userId列表,多个用逗号隔开。 */
315
+ managerUserIds?: string
316
+ /** 群公告文本。 */
317
+ notice?: string
318
+ /** 群公告是否置顶。 */
319
+ noticeToped?: number
320
+ /** 关系类型。 */
321
+ relationType: string
322
+ /** 新成员入群后收到的欢迎语。 */
323
+ welcome?: string
324
+ }
325
+
326
+ export interface CreateGroupSetResponse {
327
+ name?: string
328
+ openGroupSetId?: string
329
+ relationType?: string
330
+ memberQuota?: number
331
+ memberCount?: number
332
+ templateId?: string
333
+ ownerUserId?: string
334
+ managerUserIds?: string
335
+ notice?: string
336
+ noticeToped?: number
337
+ owner: {
338
+ name?: string
339
+ userId?: string
340
+ }
341
+ manager: {
342
+ name?: string
343
+ userId?: string
344
+ }[]
345
+ lastOpenConversationId: string
346
+ gmtCreate?: string
347
+ gmtModified?: string
348
+ inviteLink?: string
349
+ }
350
+
351
+ export interface GetGroupSetQuery {
352
+ /** 群组openGroupSetId。 */
353
+ openGroupSetId: string
354
+ }
355
+
356
+ export interface GetGroupSetResponse {
357
+ name?: string
358
+ openGroupSetId?: string
359
+ relationType?: string
360
+ memberQuota?: number
361
+ memberCount?: number
362
+ templateId?: string
363
+ ownerUserId?: string
364
+ managerUserIds?: string
365
+ notice?: string
366
+ noticeToped?: number
367
+ owner: {
368
+ name?: string
369
+ userId?: string
370
+ }
371
+ manager: {
372
+ name?: string
373
+ userId?: string
374
+ }[]
375
+ lastOpenConversationId?: string
376
+ gmtCreate?: string
377
+ gmtModified?: string
378
+ groupChatCount?: number
379
+ inviteLink?: string
380
+ }
381
+
382
+ export interface UpdateCrmPersonalCustomerParams {
383
+ /** 客户数据ID。 */
384
+ instanceId: string
385
+ /** 操作人的用户userId。 */
386
+ modifierUserId: string
387
+ /** 操作人的用户昵称。 */
388
+ modifierNick?: string
389
+ /** 客户数据内容,JSON格式字符串。 */
390
+ data: unknown
391
+ /** 扩展数据。 */
392
+ extendData?: unknown
393
+ /** 权限。 */
394
+ permission?: unknown
395
+ /** 关系类型。 */
396
+ relationType?: string
397
+ /** 是否跳过查重字段。 */
398
+ skipDuplicateCheck?: unknown
399
+ /** 取值。 */
400
+ action?: string
401
+ }
402
+
403
+ export interface UpdateCrmPersonalCustomerResponse {
404
+ instanceId: string
405
+ }
406
+
407
+ export interface AddCrmPersonalCustomerParams {
408
+ /** 记录创建人的用户userId。 */
409
+ creatorUserId: string
410
+ /** 记录创建人的昵称。 */
411
+ creatorNick?: string
412
+ /** 客户数据内容,JSON格式字符串。 */
413
+ data: unknown
414
+ /** 扩展数据内容。 */
415
+ extendData?: unknown
416
+ /** 权限。 */
417
+ permission?: unknown
418
+ /** 关系类型。 */
419
+ relationType?: string
420
+ /** 是否跳过查重字段,取值: */
421
+ skipDuplicateCheck?: unknown
422
+ /** 取值: */
423
+ action?: string
424
+ }
425
+
426
+ export interface AddCrmPersonalCustomerResponse {
427
+ instanceId: string
428
+ }
429
+
430
+ export interface DeleteCrmPersonalCustomerQuery {
431
+ /** 关系类型。 */
432
+ relationType?: string
433
+ /** 操作人用户userId。 */
434
+ currentOperatorUserId: string
435
+ }
436
+
437
+ export interface DeleteCrmPersonalCustomerResponse {
438
+ instanceId: string
439
+ }
440
+
441
+ export interface DescribeCrmPersonalCustomerObjectMetaQuery {
442
+ /** 关系类型。 */
443
+ relationType?: string
444
+ }
445
+
446
+ export interface DescribeCrmPersonalCustomerObjectMetaResponse {
447
+ name?: string
448
+ customized?: unknown
449
+ fields?: {
450
+ name?: string
451
+ customized?: number
452
+ label?: string
453
+ type?: string
454
+ nillable?: number
455
+ format?: string
456
+ unit?: string
457
+ selectOptions?: number
458
+ quote?: number
459
+ referenceTo?: string
460
+ referenceFields?: number
461
+ rollUpSummaryFields?: number
462
+ }[]
463
+ status?: string
464
+ code?: string
465
+ }
466
+
467
+ export interface ListCrmPersonalCustomersQuery {
468
+ /** 操作人的用户userId。 */
469
+ currentOperatorUserId?: string
470
+ /** 关系类型。 */
471
+ relationType?: string
472
+ }
473
+
474
+ export interface ListCrmPersonalCustomersResponse {
475
+ result: {
476
+ instanceId: string
477
+ objectType: string
478
+ creatorUserId: string
479
+ creatorNick: string
480
+ data: number
481
+ extendData: number
482
+ permission: number
483
+ appUuid: string
484
+ formCode: string
485
+ procOutResult: string
486
+ procInstStatus: string
487
+ gmtCreate: string
488
+ gmtModified: string
489
+ }[]
490
+ }
491
+
492
+ export interface QueryCrmPersonalCustomerQuery {
493
+ /** 用户userid。 */
494
+ currentOperatorUserId?: string
495
+ /** 关系类型。 */
496
+ relationType?: string
497
+ /** 分页游标,获取下一页时传入上一页返回的nextToken。 */
498
+ nextToken?: string
499
+ /** 每页条数,最大值100。 */
500
+ maxResults: number
501
+ /** 查询条件。 */
502
+ queryDsl?: string
503
+ }
504
+
505
+ export interface QueryCrmPersonalCustomerResponse {
506
+ values?: {
507
+ instanceId: string
508
+ objectType: string
509
+ creatorUserId: string
510
+ creatorNick: string
511
+ data: number
512
+ extendData: number
513
+ permission: number
514
+ procOutResult: string
515
+ procInstStatus: string
516
+ gmtCreate: string
517
+ gmtModified: string
518
+ }[]
519
+ hasMore?: unknown
520
+ nextToken?: string
521
+ maxResults?: number
522
+ totalCount?: number
523
+ }
524
+
525
+ export interface QueryAllCustomerParams {
526
+ /** 操作人员的userId。 */
527
+ operatorUserId?: string
528
+ /** 每页条目数,取值范围1~100。 */
529
+ maxResults?: number
530
+ /** 分页游标。 */
531
+ nextToken?: string
532
+ /** 数据类型,不传或者传null时,默认值为**crm_customer**,具体参数如下。 */
533
+ objectType?: string
534
+ }
535
+
536
+ export interface QueryAllCustomerResponse {
537
+ result?: {
538
+ nextToken?: string
539
+ values?: number
540
+ maxResults?: number
541
+ }
542
+ }
543
+
544
+ export interface SendOfficialAccountOTOMessageParams {
545
+ /** 消息详情。 */
546
+ detail: unknown
547
+ /** 可选参数,API调用方标识,仅用于定制调用方场景。 */
548
+ bizId?: string
549
+ /** 服务窗账号id,默认不需要传此参数。 */
550
+ accountId?: string
551
+ }
552
+
553
+ export interface SendOfficialAccountOTOMessageResponse {
554
+ requestId?: string
555
+ result: {
556
+ openPushId: string
557
+ }
558
+ }
559
+
560
+ export interface BatchSendOfficialAccountOTOMessageParams {
561
+ /** 消息详情。 */
562
+ detail: unknown
563
+ /** 服务窗授权的调用方标识,可以为空。 */
564
+ bizId?: string
565
+ /** 账单id。 */
566
+ accountId?: string
567
+ }
568
+
569
+ export interface BatchSendOfficialAccountOTOMessageResponse {
570
+ result?: {
571
+ openPushId: string
572
+ }
573
+ requestId?: string
574
+ }
575
+
576
+ // funcName: isOldApi
577
+ Internal.define({
578
+ '/crm/globalInfos': { GET: { queryGlobalInfo: false } },
579
+ '/crm/followRecords/batch': {
580
+ PUT: { batchUpdateFollowRecords: false },
581
+ POST: { batchAddFollowRecords: false },
582
+ },
583
+ '/crm/followRecords/batchRemove': {
584
+ POST: { batchRemoveFollowRecords: false },
585
+ },
586
+ '/crm/customObjectDatas/instances/{instanceId}': {
587
+ DELETE: { deleteCrmCustomObjectData: false },
588
+ },
589
+ '/crm/contacts/batch': {
590
+ PUT: { batchUpdateContacts: false },
591
+ POST: { batchAddContacts: false },
592
+ },
593
+ '/crm/relationDatas/batch': {
594
+ POST: { batchAddRelationDatas: false },
595
+ PUT: { batchUpdateRelationDatas: false },
596
+ },
597
+ '/crm/relationUkSettings': { GET: { getRelationUkSetting: false } },
598
+ '/crm/groups': { POST: { crmCreateGroup: false } },
599
+ '/crm/crmGroupChats/batchQuery': { POST: { getCrmGroupChatMulti: false } },
600
+ '/crm/crmGroupChats/query': { POST: { getCrmGroupChatSingle: false } },
601
+ '/crm/relations/datas/targets/{targetId}': {
602
+ GET: { queryRelationDatasByTargetId: false },
603
+ },
604
+ '/crm/crmGroupChats': { GET: { queryCrmGroupChats: false } },
605
+ '/crm/groupSets/set': { PUT: { crmUpdateGroupSet: false } },
606
+ '/crm/groupSets/lists': { GET: { listGroupSet: false } },
607
+ '/crm/groupSets': {
608
+ POST: { createGroupSet: false },
609
+ GET: { getGroupSet: false },
610
+ },
611
+ '/crm/personalCustomers': {
612
+ PUT: { updateCrmPersonalCustomer: false },
613
+ POST: { addCrmPersonalCustomer: false },
614
+ GET: { queryCrmPersonalCustomer: false },
615
+ },
616
+ '/crm/personalCustomers/{dataId}': {
617
+ DELETE: { deleteCrmPersonalCustomer: false },
618
+ },
619
+ '/crm/personalCustomers/objectMeta': {
620
+ GET: { describeCrmPersonalCustomerObjectMeta: false },
621
+ },
622
+ '/crm/personalCustomers/batchQuery': {
623
+ POST: { listCrmPersonalCustomers: false },
624
+ },
625
+ '/crm/customerInstances': { POST: { queryAllCustomer: false } },
626
+ '/crm/officialAccounts/oToMessages/send': {
627
+ POST: { sendOfficialAccountOTOMessage: false },
628
+ },
629
+ '/crm/officialAccounts/oToMessages/batchSend': {
630
+ POST: { batchSendOfficialAccountOTOMessage: false },
631
+ },
632
+ })
633
+
634
+ declare module '../internal' {
635
+ interface Internal {
636
+ /**
637
+ * 营销服融合三方全局信息
638
+ * @see https://open.dingtalk.com/document/isvapp/get-customer-management-global-information
639
+ */
640
+ queryGlobalInfo(
641
+ query: QueryGlobalInfoQuery,
642
+ ): Promise<QueryGlobalInfoResponse>
643
+ /**
644
+ * 批量修改跟进记录
645
+ * @see https://open.dingtalk.com/document/orgapp/batch-update-follow-up-record-data
646
+ */
647
+ batchUpdateFollowRecords(
648
+ params: BatchUpdateFollowRecordsParams,
649
+ ): Promise<BatchUpdateFollowRecordsResponse>
650
+ /**
651
+ * 批量新增跟进记录
652
+ * @see https://open.dingtalk.com/document/orgapp/batch-add-follow-up-record-data
653
+ */
654
+ batchAddFollowRecords(
655
+ params: BatchAddFollowRecordsParams,
656
+ ): Promise<BatchAddFollowRecordsResponse>
657
+ /**
658
+ * 批量删除跟进记录
659
+ * @see https://open.dingtalk.com/document/orgapp/batch-delete-follow-up-record-data
660
+ */
661
+ batchRemoveFollowRecords(
662
+ params: BatchRemoveFollowRecordsParams,
663
+ ): Promise<BatchRemoveFollowRecordsResponse>
664
+ /**
665
+ * 删除CRM自定义对象数据
666
+ * @see https://open.dingtalk.com/document/orgapp/delete-crm-custom-object-data
667
+ */
668
+ deleteCrmCustomObjectData(
669
+ instanceId: string,
670
+ query: DeleteCrmCustomObjectDataQuery,
671
+ ): Promise<DeleteCrmCustomObjectDataResponse>
672
+ /**
673
+ * 批量修改联系人
674
+ * @see https://open.dingtalk.com/document/orgapp/modify-contact-data-in-batches
675
+ */
676
+ batchUpdateContacts(
677
+ params: BatchUpdateContactsParams,
678
+ ): Promise<BatchUpdateContactsResponse>
679
+ /**
680
+ * 批量新增联系人
681
+ * @see https://open.dingtalk.com/document/orgapp/add-contact-data-in-batches
682
+ */
683
+ batchAddContacts(
684
+ params: BatchAddContactsParams,
685
+ ): Promise<BatchAddContactsResponse>
686
+ /**
687
+ * 批量新增关系数据
688
+ * @see https://open.dingtalk.com/document/orgapp/add-multiple-relationship-data-in-batches
689
+ */
690
+ batchAddRelationDatas(
691
+ params: BatchAddRelationDatasParams,
692
+ ): Promise<BatchAddRelationDatasResponse>
693
+ /**
694
+ * 批量修改关系数据
695
+ * @see https://open.dingtalk.com/document/orgapp/update-multiple-relational-data-tables-at-a-time
696
+ */
697
+ batchUpdateRelationDatas(
698
+ params: BatchUpdateRelationDatasParams,
699
+ ): Promise<BatchUpdateRelationDatasResponse>
700
+ /**
701
+ * 获取个人客户或企业客户查重字段
702
+ * @see https://open.dingtalk.com/document/isvapp/obtain-duplicate-check-fields
703
+ */
704
+ getRelationUkSetting(
705
+ query: GetRelationUkSettingQuery,
706
+ ): Promise<GetRelationUkSettingResponse>
707
+ /**
708
+ * 创建客户群
709
+ * @see https://open.dingtalk.com/document/isvapp/create-a-customer-group
710
+ */
711
+ crmCreateGroup(
712
+ params: CrmCreateGroupParams,
713
+ ): Promise<CrmCreateGroupResponse>
714
+ /**
715
+ * 批量查询客户群
716
+ * @see https://open.dingtalk.com/document/isvapp/query-customer-groups-in-batches
717
+ */
718
+ getCrmGroupChatMulti(
719
+ params: GetCrmGroupChatMultiParams,
720
+ ): Promise<GetCrmGroupChatMultiResponse>
721
+ /**
722
+ * 获取单个客户群详情
723
+ * @see https://open.dingtalk.com/document/isvapp/obtain-a-single-customer-group
724
+ */
725
+ getCrmGroupChatSingle(
726
+ query: GetCrmGroupChatSingleQuery,
727
+ ): Promise<GetCrmGroupChatSingleResponse>
728
+ /**
729
+ * 查询客户数据
730
+ * @see https://open.dingtalk.com/document/isvapp/querying-customer-data
731
+ */
732
+ queryRelationDatasByTargetId(
733
+ targetId: string,
734
+ query: QueryRelationDatasByTargetIdQuery,
735
+ ): Promise<QueryRelationDatasByTargetIdResponse>
736
+ /**
737
+ * 查询客户群列表
738
+ * @see https://open.dingtalk.com/document/isvapp/query-a-list-of-customer-groups
739
+ */
740
+ queryCrmGroupChats(
741
+ query: QueryCrmGroupChatsQuery,
742
+ ): Promise<QueryCrmGroupChatsResponse>
743
+ /**
744
+ * 更新客户群组
745
+ * @see https://open.dingtalk.com/document/orgapp/crm-update-group
746
+ */
747
+ crmUpdateGroupSet(params: CrmUpdateGroupSetParams): Promise<void>
748
+ /**
749
+ * 查询客户群组列表
750
+ * @see https://open.dingtalk.com/document/isvapp/query-the-list-of-customer-groups-set
751
+ */
752
+ listGroupSet(query: ListGroupSetQuery): Promise<ListGroupSetResponse>
753
+ /**
754
+ * 创建群组
755
+ * @see https://open.dingtalk.com/document/isvapp/create-a-customer-group-set
756
+ */
757
+ createGroupSet(
758
+ params: CreateGroupSetParams,
759
+ ): Promise<CreateGroupSetResponse>
760
+ /**
761
+ * 获取单个客户群组详情
762
+ * @see https://open.dingtalk.com/document/isvapp/queries-the-details-of-a-single-customer-group
763
+ */
764
+ getGroupSet(query: GetGroupSetQuery): Promise<GetGroupSetResponse>
765
+ /**
766
+ * 更新crm个人客户(或企业客户)
767
+ * @see https://open.dingtalk.com/document/isvapp/update-crm-personal-customers
768
+ */
769
+ updateCrmPersonalCustomer(
770
+ params: UpdateCrmPersonalCustomerParams,
771
+ ): Promise<UpdateCrmPersonalCustomerResponse>
772
+ /**
773
+ * 添加crm个人客户(或企业客户)
774
+ * @see https://open.dingtalk.com/document/orgapp/add-crm-personal-customers
775
+ */
776
+ addCrmPersonalCustomer(
777
+ params: AddCrmPersonalCustomerParams,
778
+ ): Promise<AddCrmPersonalCustomerResponse>
779
+ /**
780
+ * 删除crm个人客户(或企业客户)
781
+ * @see https://open.dingtalk.com/document/orgapp/delete-crm-personal-customer
782
+ */
783
+ deleteCrmPersonalCustomer(
784
+ dataId: string,
785
+ query: DeleteCrmPersonalCustomerQuery,
786
+ ): Promise<DeleteCrmPersonalCustomerResponse>
787
+ /**
788
+ * 获取CRM客户对象的元数据描述
789
+ * @see https://open.dingtalk.com/document/isvapp/get-metadata-description-of-crm-customer-object-1
790
+ */
791
+ describeCrmPersonalCustomerObjectMeta(
792
+ query: DescribeCrmPersonalCustomerObjectMetaQuery,
793
+ ): Promise<DescribeCrmPersonalCustomerObjectMetaResponse>
794
+ /**
795
+ * 批量获取crm个人客户
796
+ * @see https://open.dingtalk.com/document/isvapp/acquire-crm-individual-customers-in-batches
797
+ */
798
+ listCrmPersonalCustomers(
799
+ query: ListCrmPersonalCustomersQuery,
800
+ ): Promise<ListCrmPersonalCustomersResponse>
801
+ /**
802
+ * 根据指定查询条件批量获取客户数据
803
+ * @see https://open.dingtalk.com/document/isvapp/obtains-crm-individual-customers-in-batches-based-on-specified-query
804
+ */
805
+ queryCrmPersonalCustomer(
806
+ query: QueryCrmPersonalCustomerQuery,
807
+ ): Promise<QueryCrmPersonalCustomerResponse>
808
+ /**
809
+ * 获取全量个人或企业客户数据
810
+ * @see https://open.dingtalk.com/document/orgapp/crm-obtains-all-private-sea-customer-data
811
+ */
812
+ queryAllCustomer(
813
+ params: QueryAllCustomerParams,
814
+ ): Promise<QueryAllCustomerResponse>
815
+ /**
816
+ * 服务窗单发接口,指定消息接收人发送
817
+ * @see https://open.dingtalk.com/document/isvapp/sends-a-single-message-from-the-service-window
818
+ */
819
+ sendOfficialAccountOTOMessage(
820
+ params: SendOfficialAccountOTOMessageParams,
821
+ ): Promise<SendOfficialAccountOTOMessageResponse>
822
+ /**
823
+ * 服务窗消息群发
824
+ * @see https://open.dingtalk.com/document/isvapp/batch-sending-of-service-window-messages
825
+ */
826
+ batchSendOfficialAccountOTOMessage(
827
+ params: BatchSendOfficialAccountOTOMessageParams,
828
+ ): Promise<BatchSendOfficialAccountOTOMessageResponse>
829
+ }
830
+ }