@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.
Files changed (53) hide show
  1. package/lib/api/alitrip.d.ts +396 -0
  2. package/lib/api/attendance.d.ts +62 -0
  3. package/lib/api/badge.d.ts +232 -0
  4. package/lib/api/blackboard.d.ts +16 -0
  5. package/lib/api/calendar.d.ts +620 -0
  6. package/lib/api/card.d.ts +184 -0
  7. package/lib/api/conference.d.ts +403 -0
  8. package/lib/api/connector.d.ts +78 -0
  9. package/lib/api/contact.d.ts +39 -0
  10. package/lib/api/convFile.d.ts +134 -0
  11. package/lib/api/crm.d.ts +661 -0
  12. package/lib/api/customerService.d.ts +127 -0
  13. package/lib/api/datacenter.d.ts +505 -0
  14. package/lib/api/devicemng.d.ts +160 -0
  15. package/lib/api/diot.d.ts +12 -0
  16. package/lib/api/doc.d.ts +140 -0
  17. package/lib/api/drive.d.ts +87 -0
  18. package/lib/api/edu.d.ts +22 -0
  19. package/lib/api/esign.d.ts +33 -0
  20. package/lib/api/exclusive.d.ts +303 -0
  21. package/lib/api/h3yun.d.ts +437 -0
  22. package/lib/api/hrm.d.ts +214 -0
  23. package/lib/api/im.d.ts +772 -0
  24. package/lib/api/industry.d.ts +117 -0
  25. package/lib/api/jzcrm.d.ts +254 -0
  26. package/lib/api/link.d.ts +72 -0
  27. package/lib/api/live.d.ts +131 -0
  28. package/lib/api/microApp.d.ts +239 -0
  29. package/lib/api/oapi.d.ts +3361 -0
  30. package/lib/api/oauth2.d.ts +114 -0
  31. package/lib/api/pedia.d.ts +185 -0
  32. package/lib/api/project.d.ts +1118 -0
  33. package/lib/api/resident.d.ts +106 -0
  34. package/lib/api/robot.d.ts +255 -0
  35. package/lib/api/rooms.d.ts +255 -0
  36. package/lib/api/serviceGroup.d.ts +175 -0
  37. package/lib/api/storage.d.ts +1240 -0
  38. package/lib/api/swform.d.ts +70 -0
  39. package/lib/api/todo.d.ts +168 -0
  40. package/lib/api/wiki.d.ts +194 -0
  41. package/lib/api/workbench.d.ts +45 -0
  42. package/lib/api/yida.d.ts +1837 -0
  43. package/lib/bot.d.ts +30 -0
  44. package/lib/http.d.ts +7 -0
  45. package/lib/index.d.ts +7 -0
  46. package/lib/index.js +1814 -0
  47. package/lib/index.js.map +7 -0
  48. package/lib/internal.d.ts +7 -0
  49. package/lib/message.d.ts +17 -0
  50. package/lib/types/index.d.ts +133 -0
  51. package/lib/utils.d.ts +4 -0
  52. package/lib/ws.d.ts +12 -0
  53. package/package.json +31 -0
@@ -0,0 +1,39 @@
1
+ export interface GetOrgAuthInfoQuery {
2
+ /** 需要获取的企业认证信息的企业corpId。详情参见[基础概念-CorpId](https://open.dingtalk.com/document/org/basic-concepts)。 */
3
+ targetCorpId?: string;
4
+ }
5
+ export interface GetOrgAuthInfoResponse {
6
+ orgName: string;
7
+ licenseOrgName: string;
8
+ registrationNum?: string;
9
+ unifiedSocialCredit?: string;
10
+ organizationCode?: string;
11
+ legalPerson?: string;
12
+ licenseUrl?: string;
13
+ authLevel: number;
14
+ }
15
+ export interface BatchApproveUnionApplyParams {
16
+ /** 申请的合作伙伴组织CorpId,参考[基础概念-CorpId](https://open.dingtalk.com/document/org/basic-concepts)。 */
17
+ branchCorpId?: string;
18
+ /** 合作伙伴组织在上下游组织内的名称。 */
19
+ unionRootName?: string;
20
+ /** 合作伙伴组织在上下游组织内的位置。 */
21
+ linkDeptId?: number;
22
+ }
23
+ export interface BatchApproveUnionApplyResponse {
24
+ result?: unknown;
25
+ }
26
+ declare module '../internal' {
27
+ interface Internal {
28
+ /**
29
+ * 查询企业认证信息
30
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-enterprise-authentication-information
31
+ */
32
+ getOrgAuthInfo(query: GetOrgAuthInfoQuery): Promise<GetOrgAuthInfoResponse>;
33
+ /**
34
+ * 批量通过分支组织的关联申请
35
+ * @see https://developers.dingtalk.com/document/isvapp/apply-for-association-with-multiple-branches-in-batch-batch-through-the-application-of-partner-organizations-to-join-contact
36
+ */
37
+ batchApproveUnionApply(params: BatchApproveUnionApplyParams): Promise<BatchApproveUnionApplyResponse>;
38
+ }
39
+ }
@@ -0,0 +1,134 @@
1
+ export interface SendLinkParams {
2
+ /** 文件所在空间ID,调用[添加空间](https://open.dingtalk.com/document/orgapp-server/add-space)接口获取id参数值。 */
3
+ spaceId: string;
4
+ /** 文件ID,调用[获取文件或文件夹列表](https://open.dingtalk.com/document/orgapp-server/obtain-the-file-list-storage)接口获取id参数值。 */
5
+ dentryId: string;
6
+ /** 目标会话的openConversationId,调用[创建群会话](https://open.dingtalk.com/document/orgapp-server/create-group-session)接口获取openConversationId参数值。 */
7
+ openConversationId: string;
8
+ }
9
+ export interface SendLinkQuery {
10
+ /** 操作人的unionId,调用[查询用户详情](https://open.dingtalk.com/document/orgapp-server/query-user-details)接口获取unionid参数值。 */
11
+ unionId: string;
12
+ }
13
+ export interface SendLinkResponse {
14
+ file?: {
15
+ id?: string;
16
+ conversationId?: string;
17
+ spaceId?: string;
18
+ parentId?: string;
19
+ type?: string;
20
+ name?: string;
21
+ size?: number;
22
+ path?: string;
23
+ version?: number;
24
+ status?: string;
25
+ extension?: string;
26
+ creatorId?: string;
27
+ modifierId?: string;
28
+ createTime?: string;
29
+ modifiedTime?: string;
30
+ uuid?: string;
31
+ };
32
+ }
33
+ export interface SendParams {
34
+ /** 空间ID,调用[添加空间](https://open.dingtalk.com/document/orgapp-server/add-space)接口获取id参数值。 */
35
+ spaceId: string;
36
+ /** 文件ID,调用[获取文件或文件夹列表](https://open.dingtalk.com/document/orgapp-server/obtain-the-file-list-storage)接口获取id参数值。 */
37
+ dentryId: string;
38
+ /** 目标会话的openConversationId,调用[创建群会话](https://open.dingtalk.com/document/orgapp-server/create-group-session)接口获取openConversationId参数值。 */
39
+ openConversationId: string;
40
+ }
41
+ export interface SendQuery {
42
+ /** 操作人的unionId,调用[查询用户详情](https://open.dingtalk.com/document/orgapp-server/query-user-details)接口获取unionid参数值。 */
43
+ unionId: string;
44
+ }
45
+ export interface SendResponse {
46
+ file?: {
47
+ id?: string;
48
+ conversationId?: string;
49
+ spaceId?: string;
50
+ parentId?: string;
51
+ type?: string;
52
+ name?: string;
53
+ size?: number;
54
+ path?: string;
55
+ version?: number;
56
+ status?: string;
57
+ extension?: string;
58
+ creatorId?: string;
59
+ modifierId?: string;
60
+ createTime?: string;
61
+ modifiedTime?: string;
62
+ uuid?: string;
63
+ };
64
+ }
65
+ export interface ConvFileGetSpaceParams {
66
+ /** 会话openConversationId。 */
67
+ openConversationId: string;
68
+ }
69
+ export interface ConvFileGetSpaceQuery {
70
+ /** 操作人的unionId。 */
71
+ unionId: string;
72
+ }
73
+ export interface ConvFileGetSpaceResponse {
74
+ space?: {
75
+ spaceId?: string;
76
+ corpId?: string;
77
+ createTime?: string;
78
+ modifiedTime?: string;
79
+ };
80
+ }
81
+ export interface SendByAppParams {
82
+ /** 文件所在空间ID。 */
83
+ spaceId: string;
84
+ /** 文件ID。 */
85
+ dentryId: string;
86
+ }
87
+ export interface SendByAppQuery {
88
+ /** 接收文件的用户unionId。 */
89
+ unionId: string;
90
+ }
91
+ export interface SendByAppResponse {
92
+ file?: {
93
+ id?: string;
94
+ conversationId?: string;
95
+ spaceId?: string;
96
+ parentId?: string;
97
+ type?: string;
98
+ name?: string;
99
+ size?: number;
100
+ path?: string;
101
+ version?: number;
102
+ status?: string;
103
+ extension?: string;
104
+ creatorId?: string;
105
+ modifierId?: string;
106
+ createTime?: string;
107
+ modifiedTime?: string;
108
+ uuid?: string;
109
+ };
110
+ }
111
+ declare module '../internal' {
112
+ interface Internal {
113
+ /**
114
+ * 发送文件链接到指定会话
115
+ * @see https://developers.dingtalk.com/document/orgapp/send-a-file-link-to-the-specified-session
116
+ */
117
+ sendLink(query: SendLinkQuery, params: SendLinkParams): Promise<SendLinkResponse>;
118
+ /**
119
+ * 发送文件到指定会话
120
+ * @see https://developers.dingtalk.com/document/orgapp/send-file-to-specified-session
121
+ */
122
+ send(query: SendQuery, params: SendParams): Promise<SendResponse>;
123
+ /**
124
+ * 获取IM会话存储空间信息
125
+ * @see https://developers.dingtalk.com/document/orgapp/obtain-group-storage-space-information
126
+ */
127
+ convFileGetSpace(query: ConvFileGetSpaceQuery, params: ConvFileGetSpaceParams): Promise<ConvFileGetSpaceResponse>;
128
+ /**
129
+ * 以应用身份发送文件给自己
130
+ * @see https://developers.dingtalk.com/document/isvapp/sends-a-storage-file-to-a-specified-user
131
+ */
132
+ sendByApp(query: SendByAppQuery, params: SendByAppParams): Promise<SendByAppResponse>;
133
+ }
134
+ }