@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,156 @@
1
+ import { Internal } from '../internal'
2
+ // GENERATED CONTENT
3
+
4
+ export interface ExecuteActivityParams {
5
+ /** 会员来源,取diamond配置的值。 */
6
+ sourceId: string
7
+ /** 会员ID。 */
8
+ foreignId: string
9
+ /** 会员名称。 */
10
+ foreignName: string
11
+ /** 动作编码。 */
12
+ activityCode: string
13
+ /** 实例ID。 */
14
+ openInstanceId?: string
15
+ /** 智能客服产品类型: */
16
+ productionType?: number
17
+ /** 工单表单。 */
18
+ properties?: object[]
19
+ }
20
+
21
+ export interface ExecuteActivityResponse {
22
+ taskId?: string
23
+ }
24
+
25
+ export interface PageListActionQuery {
26
+ /** 实例ID。 */
27
+ openInstanceId?: string
28
+ /** 智能客服产品类型: */
29
+ productionType?: number
30
+ /** 查询数据的起始位置,0表示从头开始。 */
31
+ nextToken: string
32
+ /** 查询单页查询的最大条目数,最大值为100。 */
33
+ maxResults: number
34
+ }
35
+
36
+ export interface PageListActionResponse {
37
+ nextCursor?: number
38
+ total?: number
39
+ list?: {
40
+ operatorId?: string
41
+ operator?: string
42
+ operatorRole?: string
43
+ actionCode?: string
44
+ actionContent?: number
45
+ }[]
46
+ }
47
+
48
+ export interface PageListTicketQuery {
49
+ /** 实例ID。 */
50
+ openInstanceId?: string
51
+ /** 智能客服产品类型: */
52
+ productionType?: number
53
+ /** 工单模板ID。 */
54
+ templateId: string
55
+ /** 工单ID。 */
56
+ ticketId?: string
57
+ /** 会员来源,取diamond配置的值。 */
58
+ sourceId?: string
59
+ /** 第三方用户userid。 */
60
+ foreignId?: string
61
+ /** 工单状态。 */
62
+ ticketStatus?: string
63
+ /** 开始时间,时间戳,单位毫秒。 */
64
+ startTime?: number
65
+ /** 结束时间,时间戳,单位毫秒。 */
66
+ endTime?: number
67
+ /** 查询数据的起始位置,0表示从头开始。 */
68
+ nextToken: string
69
+ /** 查询单页查询的最大条目数,最大值为100。 */
70
+ maxResults: number
71
+ }
72
+
73
+ export interface PageListTicketResponse {
74
+ nextCursor?: number
75
+ total?: number
76
+ list?: {
77
+ foreignId?: string
78
+ sourceId?: string
79
+ foreignName?: string
80
+ templateId?: string
81
+ title?: string
82
+ ticketId?: string
83
+ ticketStatus?: string
84
+ openInstanceId?: string
85
+ productionType?: number
86
+ gmtCreate?: string
87
+ gmtModified?: string
88
+ bizDataMap?: number
89
+ }[]
90
+ }
91
+
92
+ export interface CreateTicketParams {
93
+ /** 会员来源,取diamond配置的值。 */
94
+ sourceId: string
95
+ /** 第三方会员ID。 */
96
+ foreignId: string
97
+ /** 第三方会员名称。 */
98
+ foreignName: string
99
+ /** 实例ID。 */
100
+ openInstanceId?: string
101
+ /** 智能客服产品类型: */
102
+ productionType?: number
103
+ /** 自助单ID,钉钉智能客服自助单配置里的值。 */
104
+ templateId: string
105
+ /** 工单标题。 */
106
+ title: string
107
+ /** 表单信息。 */
108
+ properties?: object[]
109
+ }
110
+
111
+ export interface CreateTicketResponse {
112
+ ticketId?: string
113
+ }
114
+
115
+ // funcName: isOldApi
116
+ Internal.define({
117
+ '/customerService/tickets/{ticketId}': { PUT: { executeActivity: false } },
118
+ '/customerService/tickets/{ticketId}/actions': {
119
+ GET: { pageListAction: false },
120
+ },
121
+ '/customerService/tickets': {
122
+ GET: { pageListTicket: false },
123
+ POST: { createTicket: false },
124
+ },
125
+ })
126
+
127
+ declare module '../internal' {
128
+ interface Internal {
129
+ /**
130
+ * 执行工单活动
131
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-customer-service-execute-work-order-activities
132
+ */
133
+ executeActivity(
134
+ ticketId: string,
135
+ params: ExecuteActivityParams,
136
+ ): Promise<ExecuteActivityResponse>
137
+ /**
138
+ * 查询动作记录
139
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-customer-service-query-action-records
140
+ */
141
+ pageListAction(
142
+ ticketId: string,
143
+ query: PageListActionQuery,
144
+ ): Promise<PageListActionResponse>
145
+ /**
146
+ * 分页查询工单
147
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-customer-service-paging-query-work-order
148
+ */
149
+ pageListTicket(query: PageListTicketQuery): Promise<PageListTicketResponse>
150
+ /**
151
+ * 创建自助单
152
+ * @see https://open.dingtalk.com/document/isvapp/smart-customer-service-create-a-self-service-order
153
+ */
154
+ createTicket(params: CreateTicketParams): Promise<CreateTicketResponse>
155
+ }
156
+ }