@im-more/dsh-dingtalk 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/cordis.patch.yml +11 -0
- package/lib/index.js +2765 -0
- package/lib/index.js.map +1 -0
- package/lib/types/api/alitrip.d.ts +397 -0
- package/lib/types/api/alitrip.d.ts.map +1 -0
- package/lib/types/api/alitrip.js +21 -0
- package/lib/types/api/alitrip.js.map +1 -0
- package/lib/types/api/attendance.d.ts +63 -0
- package/lib/types/api/attendance.d.ts.map +1 -0
- package/lib/types/api/attendance.js +8 -0
- package/lib/types/api/attendance.js.map +1 -0
- package/lib/types/api/badge.d.ts +233 -0
- package/lib/types/api/badge.d.ts.map +1 -0
- package/lib/types/api/badge.js +19 -0
- package/lib/types/api/badge.js.map +1 -0
- package/lib/types/api/blackboard.d.ts +17 -0
- package/lib/types/api/blackboard.d.ts.map +1 -0
- package/lib/types/api/blackboard.js +6 -0
- package/lib/types/api/blackboard.js.map +1 -0
- package/lib/types/api/calendar.d.ts +621 -0
- package/lib/types/api/calendar.d.ts.map +1 -0
- package/lib/types/api/calendar.js +57 -0
- package/lib/types/api/calendar.js.map +1 -0
- package/lib/types/api/card.d.ts +185 -0
- package/lib/types/api/card.d.ts.map +1 -0
- package/lib/types/api/card.js +13 -0
- package/lib/types/api/card.js.map +1 -0
- package/lib/types/api/conference.d.ts +404 -0
- package/lib/types/api/conference.d.ts.map +1 -0
- package/lib/types/api/conference.js +60 -0
- package/lib/types/api/conference.js.map +1 -0
- package/lib/types/api/connector.d.ts +79 -0
- package/lib/types/api/connector.d.ts.map +1 -0
- package/lib/types/api/connector.js +8 -0
- package/lib/types/api/connector.js.map +1 -0
- package/lib/types/api/contact.d.ts +40 -0
- package/lib/types/api/contact.d.ts.map +1 -0
- package/lib/types/api/contact.js +9 -0
- package/lib/types/api/contact.js.map +1 -0
- package/lib/types/api/convFile.d.ts +135 -0
- package/lib/types/api/convFile.d.ts.map +1 -0
- package/lib/types/api/convFile.js +9 -0
- package/lib/types/api/convFile.js.map +1 -0
- package/lib/types/api/crm.d.ts +662 -0
- package/lib/types/api/crm.d.ts.map +1 -0
- package/lib/types/api/crm.js +59 -0
- package/lib/types/api/crm.js.map +1 -0
- package/lib/types/api/customerService.d.ts +128 -0
- package/lib/types/api/customerService.d.ts.map +1 -0
- package/lib/types/api/customerService.js +13 -0
- package/lib/types/api/customerService.js.map +1 -0
- package/lib/types/api/datacenter.d.ts +506 -0
- package/lib/types/api/datacenter.d.ts.map +1 -0
- package/lib/types/api/datacenter.js +61 -0
- package/lib/types/api/datacenter.js.map +1 -0
- package/lib/types/api/devicemng.d.ts +161 -0
- package/lib/types/api/devicemng.d.ts.map +1 -0
- package/lib/types/api/devicemng.js +20 -0
- package/lib/types/api/devicemng.js.map +1 -0
- package/lib/types/api/diot.d.ts +13 -0
- package/lib/types/api/diot.d.ts.map +1 -0
- package/lib/types/api/diot.js +4 -0
- package/lib/types/api/diot.js.map +1 -0
- package/lib/types/api/doc.d.ts +141 -0
- package/lib/types/api/doc.d.ts.map +1 -0
- package/lib/types/api/doc.js +27 -0
- package/lib/types/api/doc.js.map +1 -0
- package/lib/types/api/drive.d.ts +88 -0
- package/lib/types/api/drive.d.ts.map +1 -0
- package/lib/types/api/drive.js +11 -0
- package/lib/types/api/drive.js.map +1 -0
- package/lib/types/api/edu.d.ts +23 -0
- package/lib/types/api/edu.d.ts.map +1 -0
- package/lib/types/api/edu.js +4 -0
- package/lib/types/api/edu.js.map +1 -0
- package/lib/types/api/esign.d.ts +34 -0
- package/lib/types/api/esign.d.ts.map +1 -0
- package/lib/types/api/esign.js +7 -0
- package/lib/types/api/esign.js.map +1 -0
- package/lib/types/api/exclusive.d.ts +304 -0
- package/lib/types/api/exclusive.d.ts.map +1 -0
- package/lib/types/api/exclusive.js +27 -0
- package/lib/types/api/exclusive.js.map +1 -0
- package/lib/types/api/h3yun.d.ts +438 -0
- package/lib/types/api/h3yun.d.ts.map +1 -0
- package/lib/types/api/h3yun.js +33 -0
- package/lib/types/api/h3yun.js.map +1 -0
- package/lib/types/api/hrm.d.ts +215 -0
- package/lib/types/api/hrm.d.ts.map +1 -0
- package/lib/types/api/hrm.js +20 -0
- package/lib/types/api/hrm.js.map +1 -0
- package/lib/types/api/im.d.ts +773 -0
- package/lib/types/api/im.d.ts.map +1 -0
- package/lib/types/api/im.js +72 -0
- package/lib/types/api/im.js.map +1 -0
- package/lib/types/api/industry.d.ts +118 -0
- package/lib/types/api/industry.d.ts.map +1 -0
- package/lib/types/api/industry.js +14 -0
- package/lib/types/api/industry.js.map +1 -0
- package/lib/types/api/jzcrm.d.ts +255 -0
- package/lib/types/api/jzcrm.d.ts.map +1 -0
- package/lib/types/api/jzcrm.js +18 -0
- package/lib/types/api/jzcrm.js.map +1 -0
- package/lib/types/api/link.d.ts +73 -0
- package/lib/types/api/link.d.ts.map +1 -0
- package/lib/types/api/link.js +9 -0
- package/lib/types/api/link.js.map +1 -0
- package/lib/types/api/live.d.ts +132 -0
- package/lib/types/api/live.d.ts.map +1 -0
- package/lib/types/api/live.js +13 -0
- package/lib/types/api/live.js.map +1 -0
- package/lib/types/api/microApp.d.ts +240 -0
- package/lib/types/api/microApp.d.ts.map +1 -0
- package/lib/types/api/microApp.js +29 -0
- package/lib/types/api/microApp.js.map +1 -0
- package/lib/types/api/oapi.d.ts +3362 -0
- package/lib/types/api/oapi.d.ts.map +1 -0
- package/lib/types/api/oapi.js +247 -0
- package/lib/types/api/oapi.js.map +1 -0
- package/lib/types/api/oauth2.d.ts +115 -0
- package/lib/types/api/oauth2.d.ts.map +1 -0
- package/lib/types/api/oauth2.js +12 -0
- package/lib/types/api/oauth2.js.map +1 -0
- package/lib/types/api/pedia.d.ts +186 -0
- package/lib/types/api/pedia.d.ts.map +1 -0
- package/lib/types/api/pedia.js +13 -0
- package/lib/types/api/pedia.js.map +1 -0
- package/lib/types/api/project.d.ts +1119 -0
- package/lib/types/api/project.d.ts.map +1 -0
- package/lib/types/api/project.js +135 -0
- package/lib/types/api/project.js.map +1 -0
- package/lib/types/api/resident.d.ts +107 -0
- package/lib/types/api/resident.d.ts.map +1 -0
- package/lib/types/api/resident.js +10 -0
- package/lib/types/api/resident.js.map +1 -0
- package/lib/types/api/robot.d.ts +256 -0
- package/lib/types/api/robot.d.ts.map +1 -0
- package/lib/types/api/robot.js +21 -0
- package/lib/types/api/robot.js.map +1 -0
- package/lib/types/api/rooms.d.ts +256 -0
- package/lib/types/api/rooms.d.ts.map +1 -0
- package/lib/types/api/rooms.js +23 -0
- package/lib/types/api/rooms.js.map +1 -0
- package/lib/types/api/serviceGroup.d.ts +176 -0
- package/lib/types/api/serviceGroup.d.ts.map +1 -0
- package/lib/types/api/serviceGroup.js +15 -0
- package/lib/types/api/serviceGroup.js.map +1 -0
- package/lib/types/api/storage.d.ts +1241 -0
- package/lib/types/api/storage.d.ts.map +1 -0
- package/lib/types/api/storage.js +128 -0
- package/lib/types/api/storage.js.map +1 -0
- package/lib/types/api/swform.d.ts +71 -0
- package/lib/types/api/swform.d.ts.map +1 -0
- package/lib/types/api/swform.js +8 -0
- package/lib/types/api/swform.js.map +1 -0
- package/lib/types/api/todo.d.ts +169 -0
- package/lib/types/api/todo.d.ts.map +1 -0
- package/lib/types/api/todo.js +16 -0
- package/lib/types/api/todo.js.map +1 -0
- package/lib/types/api/wiki.d.ts +195 -0
- package/lib/types/api/wiki.d.ts.map +1 -0
- package/lib/types/api/wiki.js +11 -0
- package/lib/types/api/wiki.js.map +1 -0
- package/lib/types/api/workbench.d.ts +46 -0
- package/lib/types/api/workbench.d.ts.map +1 -0
- package/lib/types/api/workbench.js +14 -0
- package/lib/types/api/workbench.js.map +1 -0
- package/lib/types/api/yida.d.ts +1838 -0
- package/lib/types/api/yida.d.ts.map +1 -0
- package/lib/types/api/yida.js +103 -0
- package/lib/types/api/yida.js.map +1 -0
- package/lib/types/bot.d.ts +62 -0
- package/lib/types/bot.d.ts.map +1 -0
- package/lib/types/bot.js +134 -0
- package/lib/types/bot.js.map +1 -0
- package/lib/types/config.d.ts +47 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/config.js +53 -0
- package/lib/types/config.js.map +1 -0
- package/lib/types/decode.d.ts +36 -0
- package/lib/types/decode.d.ts.map +1 -0
- package/lib/types/decode.js +200 -0
- package/lib/types/decode.js.map +1 -0
- package/lib/types/errors.d.ts +77 -0
- package/lib/types/errors.d.ts.map +1 -0
- package/lib/types/errors.js +249 -0
- package/lib/types/errors.js.map +1 -0
- package/lib/types/index.d.ts +22 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +22 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/internal.d.ts +15 -0
- package/lib/types/internal.d.ts.map +1 -0
- package/lib/types/internal.js +57 -0
- package/lib/types/internal.js.map +1 -0
- package/lib/types/media.d.ts +57 -0
- package/lib/types/media.d.ts.map +1 -0
- package/lib/types/media.js +99 -0
- package/lib/types/media.js.map +1 -0
- package/lib/types/modes/markdown.d.ts +12 -0
- package/lib/types/modes/markdown.d.ts.map +1 -0
- package/lib/types/modes/markdown.js +148 -0
- package/lib/types/modes/markdown.js.map +1 -0
- package/lib/types/modes/shared.d.ts +183 -0
- package/lib/types/modes/shared.d.ts.map +1 -0
- package/lib/types/modes/shared.js +358 -0
- package/lib/types/modes/shared.js.map +1 -0
- package/lib/types/request.d.ts +63 -0
- package/lib/types/request.d.ts.map +1 -0
- package/lib/types/request.js +182 -0
- package/lib/types/request.js.map +1 -0
- package/lib/types/send.d.ts +38 -0
- package/lib/types/send.d.ts.map +1 -0
- package/lib/types/send.js +128 -0
- package/lib/types/send.js.map +1 -0
- package/lib/types/token.d.ts +32 -0
- package/lib/types/token.d.ts.map +1 -0
- package/lib/types/token.js +62 -0
- package/lib/types/token.js.map +1 -0
- package/lib/types/transport/stream.d.ts +89 -0
- package/lib/types/transport/stream.d.ts.map +1 -0
- package/lib/types/transport/stream.js +345 -0
- package/lib/types/transport/stream.js.map +1 -0
- package/lib/types/transport/webhook.d.ts +54 -0
- package/lib/types/transport/webhook.d.ts.map +1 -0
- package/lib/types/transport/webhook.js +159 -0
- package/lib/types/transport/webhook.js.map +1 -0
- package/lib/types/types/index.d.ts +150 -0
- package/lib/types/types/index.d.ts.map +1 -0
- package/lib/types/types/index.js +43 -0
- package/lib/types/types/index.js.map +1 -0
- package/package.json +61 -3
- package/src/api/.eslintrc.yml +2 -0
- package/src/api/alitrip.ts +467 -0
- package/src/api/attendance.ts +81 -0
- package/src/api/badge.ts +285 -0
- package/src/api/blackboard.ts +28 -0
- package/src/api/calendar.ts +817 -0
- package/src/api/card.ts +215 -0
- package/src/api/conference.ts +561 -0
- package/src/api/connector.ts +97 -0
- package/src/api/contact.ts +56 -0
- package/src/api/convFile.ts +166 -0
- package/src/api/crm.ts +830 -0
- package/src/api/customerService.ts +156 -0
- package/src/api/datacenter.ts +672 -0
- package/src/api/devicemng.ts +202 -0
- package/src/api/diot.ts +19 -0
- package/src/api/doc.ts +232 -0
- package/src/api/drive.ts +109 -0
- package/src/api/edu.ts +30 -0
- package/src/api/esign.ts +44 -0
- package/src/api/exclusive.ts +372 -0
- package/src/api/h3yun.ts +537 -0
- package/src/api/hrm.ts +272 -0
- package/src/api/im.ts +978 -0
- package/src/api/industry.ts +153 -0
- package/src/api/jzcrm.ts +304 -0
- package/src/api/link.ts +94 -0
- package/src/api/live.ts +162 -0
- package/src/api/microApp.ts +309 -0
- package/src/api/oapi.ts +4083 -0
- package/src/api/oauth2.ts +146 -0
- package/src/api/pedia.ts +222 -0
- package/src/api/project.ts +1519 -0
- package/src/api/resident.ts +133 -0
- package/src/api/robot.ts +326 -0
- package/src/api/rooms.ts +334 -0
- package/src/api/serviceGroup.ts +216 -0
- package/src/api/storage.ts +1701 -0
- package/src/api/swform.ts +94 -0
- package/src/api/todo.ts +220 -0
- package/src/api/wiki.ts +231 -0
- package/src/api/workbench.ts +73 -0
- package/src/api/yida.ts +2165 -0
- package/src/bot.ts +211 -0
- package/src/config.ts +88 -0
- package/src/decode.ts +250 -0
- package/src/errors.ts +282 -0
- package/src/index.ts +82 -0
- package/src/internal.ts +60 -0
- package/src/media.ts +149 -0
- package/src/modes/markdown.ts +173 -0
- package/src/modes/shared.ts +473 -0
- package/src/request.ts +262 -0
- package/src/send.ts +195 -0
- package/src/token.ts +72 -0
- package/src/transport/stream.ts +436 -0
- package/src/transport/webhook.ts +198 -0
- package/src/types/index.ts +165 -0
- package/README.md +0 -3
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { Internal } from '../internal.ts'
|
|
2
|
+
// GENERATED CONTENT
|
|
3
|
+
|
|
4
|
+
export interface RollbackInnerAppVersionParams {
|
|
5
|
+
/** 小程序版本id,用于唯一标识小程序版本信息。可通过调用服务端API-[获取企业内部小程序历史版本列表](https://open.dingtalk.com/document/orgapp/obtain-the-list-of-historical-versions-of-enterprise-internal-applets)接口,获取返回参数中`appVersionId`字段值。 */
|
|
6
|
+
appVersionId: number
|
|
7
|
+
/** 操作人的unionId。可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取`unionId`参数值。 */
|
|
8
|
+
opUnionId: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface RollbackInnerAppVersionResponse {
|
|
12
|
+
result?: unknown
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface PublishInnerAppVersionParams {
|
|
16
|
+
appVersionId: number
|
|
17
|
+
/** 操作人的unionId。 */
|
|
18
|
+
opUnionId: string
|
|
19
|
+
/** 小程序发布类型,取值: */
|
|
20
|
+
publishType?: string
|
|
21
|
+
/** 是否支持PC端打开小程序,取值: */
|
|
22
|
+
miniAppOnPc?: unknown
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface PublishInnerAppVersionResponse {
|
|
26
|
+
result?: unknown
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface PageInnerAppHistoryVersionQuery {
|
|
30
|
+
/** 当前页。 */
|
|
31
|
+
pageNumber: number
|
|
32
|
+
/** 本次读取的最大数据记录数量。 */
|
|
33
|
+
pageSize: number
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface PageInnerAppHistoryVersionResponse {
|
|
37
|
+
totalCount?: number
|
|
38
|
+
miniAppVersionList?: {
|
|
39
|
+
appVersionId: number
|
|
40
|
+
miniAppId?: string
|
|
41
|
+
appVersion: string
|
|
42
|
+
appVersionType: number
|
|
43
|
+
miniAppOnPc: number
|
|
44
|
+
createTime: string
|
|
45
|
+
modifyTime: string
|
|
46
|
+
}[]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface ListInnerAppVersionResponse {
|
|
50
|
+
appVersionList?: {
|
|
51
|
+
appVersionId: number
|
|
52
|
+
miniAppId: string
|
|
53
|
+
appVersion: string
|
|
54
|
+
appVersionType: number
|
|
55
|
+
miniAppOnPc?: number
|
|
56
|
+
createTime: string
|
|
57
|
+
modifyTime: string
|
|
58
|
+
entranceLink?: string
|
|
59
|
+
}[]
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface ListAllInnerAppsResponse {
|
|
63
|
+
appList?: {
|
|
64
|
+
agentId: number
|
|
65
|
+
name?: string
|
|
66
|
+
desc?: string
|
|
67
|
+
icon?: string
|
|
68
|
+
homepageLink?: string
|
|
69
|
+
pcHomepageLink?: string
|
|
70
|
+
ompLink?: string
|
|
71
|
+
appId: number
|
|
72
|
+
appStatus: number
|
|
73
|
+
developType: number
|
|
74
|
+
}[]
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface GetMicroAppScopeResponse {
|
|
78
|
+
result?: {
|
|
79
|
+
userIds: number
|
|
80
|
+
deptIds: number
|
|
81
|
+
roleIds: number
|
|
82
|
+
onlyAdminVisible: number
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface SetMicroAppScopeParams {
|
|
87
|
+
/** 增加的可使用用户userId列表,最大长度100。 */
|
|
88
|
+
addUserIds?: string[]
|
|
89
|
+
/** 删除的可使用用户userId列表,最大长度100。 */
|
|
90
|
+
delUserIds?: string[]
|
|
91
|
+
/** 增加的可使用部门ID列表,最大长度100。 */
|
|
92
|
+
addDeptIds?: number[]
|
|
93
|
+
/** 删除的可使用部门ID列表,最大长度100。 */
|
|
94
|
+
delDeptIds?: number[]
|
|
95
|
+
/** 用户角色ID, */
|
|
96
|
+
addRoleIds?: number[]
|
|
97
|
+
/** 删除的可使用角色列表,通过[获取角色列表](https://open.dingtalk.com/document/orgapp-server/obtains-a-list-of-enterprise-roles)接口获取,最大长度100。 */
|
|
98
|
+
delRoleIds?: number[]
|
|
99
|
+
/** 是否仅管理员可使用。 */
|
|
100
|
+
onlyAdminVisible?: unknown
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface SetMicroAppScopeResponse {
|
|
104
|
+
result?: unknown
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface ListUserVilebleAppResponse {
|
|
108
|
+
appList?: {
|
|
109
|
+
agentId: number
|
|
110
|
+
name?: string
|
|
111
|
+
desc?: string
|
|
112
|
+
icon?: string
|
|
113
|
+
homepageLink?: string
|
|
114
|
+
pcHomepageLink?: string
|
|
115
|
+
ompLink?: string
|
|
116
|
+
appId: number
|
|
117
|
+
appStatus: number
|
|
118
|
+
developType: number
|
|
119
|
+
}[]
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface ListAllAppResponse {
|
|
123
|
+
appList?: {
|
|
124
|
+
agentId: number
|
|
125
|
+
name?: string
|
|
126
|
+
desc?: string
|
|
127
|
+
icon?: string
|
|
128
|
+
homepageLink?: string
|
|
129
|
+
pcHomepageLink?: string
|
|
130
|
+
ompLink?: string
|
|
131
|
+
appId: number
|
|
132
|
+
appStatus: number
|
|
133
|
+
developType: number
|
|
134
|
+
}[]
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface DeleteInnerAppQuery {
|
|
138
|
+
/** 操作人的unionId,可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取unionid参数值。 */
|
|
139
|
+
opUnionId: string
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface DeleteInnerAppResponse {
|
|
143
|
+
result?: unknown
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface UpdateInnerAppParams {
|
|
147
|
+
/** 操作更新的员工unionId,可调用[查询用户信息](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取unionid参数值。 */
|
|
148
|
+
opUnionId: string
|
|
149
|
+
/** 应用名称,名称可以由中文、数字以及字母组成,长度范围要求2-20个字符。 */
|
|
150
|
+
name?: string
|
|
151
|
+
/** 应用描述,最大长度200个字符。 */
|
|
152
|
+
desc?: string
|
|
153
|
+
/** 应用图标,可调用[上传媒体文件](https://open.dingtalk.com/document/orgapp/upload-media-files)接口获取media_id参数值。 */
|
|
154
|
+
icon?: string
|
|
155
|
+
/** 应用首页地址,请输入http或https开头的网址链接。 */
|
|
156
|
+
homepageLink?: string
|
|
157
|
+
/** 应用PC端地址,请输入http或https开头的链接。 */
|
|
158
|
+
pcHomepageLink?: string
|
|
159
|
+
/** 应用管理后台地址,输入http或https开头的链接。 */
|
|
160
|
+
ompLink?: string
|
|
161
|
+
/** 服务器出口ip白名单,支持带一个*号通配符的IP格式。 */
|
|
162
|
+
ipWhiteList?: string[]
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface UpdateInnerAppResponse {
|
|
166
|
+
result?: unknown
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface CreateInnerAppParams {
|
|
170
|
+
/** 操作人的unionId,该用户必须是拥有**应用管理权限**的管理员,可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取unionid参数值。 */
|
|
171
|
+
opUnionId: string
|
|
172
|
+
/** 应用名称。 */
|
|
173
|
+
name: string
|
|
174
|
+
/** 应用描述。 */
|
|
175
|
+
desc: string
|
|
176
|
+
/** 应用图标media,调用[上传媒体文件](https://open.dingtalk.com/document/orgapp/upload-media-files)接口获取media_id参数值。 */
|
|
177
|
+
icon?: string
|
|
178
|
+
/** 应用首页地址。 */
|
|
179
|
+
homepageLink?: string
|
|
180
|
+
/** 应用PC端地址。 */
|
|
181
|
+
pcHomepageLink?: string
|
|
182
|
+
/** 应用管理后台地址。 */
|
|
183
|
+
ompLink?: string
|
|
184
|
+
/** 服务器出口IP白名单列表,最大值50。 */
|
|
185
|
+
ipWhiteList?: string[]
|
|
186
|
+
/** 权限类型,目前只支持BASE。 */
|
|
187
|
+
scopeType?: string
|
|
188
|
+
/** 创建的内部应用类型:【默认为0】 */
|
|
189
|
+
developType?: number
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface CreateInnerAppResponse {
|
|
193
|
+
agentId?: number
|
|
194
|
+
appKey?: string
|
|
195
|
+
appSecret?: string
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// funcName: isOldApi
|
|
199
|
+
Internal.define({
|
|
200
|
+
'/microApp/innerMiniApps/{agentId}/versions/rollback': {
|
|
201
|
+
POST: { rollbackInnerAppVersion: false },
|
|
202
|
+
},
|
|
203
|
+
'/microApp/innerMiniApps/{agentId}/versions/publish': {
|
|
204
|
+
POST: { publishInnerAppVersion: false },
|
|
205
|
+
},
|
|
206
|
+
'/microApp/innerMiniApps/{agentId}/historyVersions': {
|
|
207
|
+
GET: { pageInnerAppHistoryVersion: false },
|
|
208
|
+
},
|
|
209
|
+
'/microApp/innerMiniApps/{agentId}/versions': {
|
|
210
|
+
GET: { listInnerAppVersion: false },
|
|
211
|
+
},
|
|
212
|
+
'/microApp/allInnerApps': { GET: { listAllInnerApps: false } },
|
|
213
|
+
'/microApp/apps/{agentId}/scopes': {
|
|
214
|
+
GET: { getMicroAppScope: false },
|
|
215
|
+
POST: { setMicroAppScope: false },
|
|
216
|
+
},
|
|
217
|
+
'/microApp/users/{userId}/apps': { GET: { listUserVilebleApp: false } },
|
|
218
|
+
'/microApp/allApps': { GET: { listAllApp: false } },
|
|
219
|
+
'/microApp/apps/{agentId}': {
|
|
220
|
+
DELETE: { deleteInnerApp: false },
|
|
221
|
+
PUT: { updateInnerApp: false },
|
|
222
|
+
},
|
|
223
|
+
'/microApp/apps': { POST: { createInnerApp: false } },
|
|
224
|
+
})
|
|
225
|
+
|
|
226
|
+
declare module '../internal' {
|
|
227
|
+
interface Internal {
|
|
228
|
+
/**
|
|
229
|
+
* 回滚企业内部小程序版本
|
|
230
|
+
* @see https://open.dingtalk.com/document/app/rollback-of-enterprise-internal-applet-version
|
|
231
|
+
*/
|
|
232
|
+
rollbackInnerAppVersion(
|
|
233
|
+
agentId: number,
|
|
234
|
+
params: RollbackInnerAppVersionParams,
|
|
235
|
+
): Promise<RollbackInnerAppVersionResponse>
|
|
236
|
+
/**
|
|
237
|
+
* 发布企业内部小程序版本
|
|
238
|
+
* @see https://open.dingtalk.com/document/orgapp/release-internal-applet-version
|
|
239
|
+
*/
|
|
240
|
+
publishInnerAppVersion(
|
|
241
|
+
agentId: number,
|
|
242
|
+
params: PublishInnerAppVersionParams,
|
|
243
|
+
): Promise<PublishInnerAppVersionResponse>
|
|
244
|
+
/**
|
|
245
|
+
* 获取企业内部小程序历史版本列表
|
|
246
|
+
* @see https://open.dingtalk.com/document/orgapp/obtain-the-list-of-historical-versions-of-enterprise-internal-applets
|
|
247
|
+
*/
|
|
248
|
+
pageInnerAppHistoryVersion(
|
|
249
|
+
agentId: number,
|
|
250
|
+
query: PageInnerAppHistoryVersionQuery,
|
|
251
|
+
): Promise<PageInnerAppHistoryVersionResponse>
|
|
252
|
+
/**
|
|
253
|
+
* 获取企业内部小程序的版本列表
|
|
254
|
+
* @see https://open.dingtalk.com/document/orgapp/get-the-version-list-of-the-enterprise-internal-applet
|
|
255
|
+
*/
|
|
256
|
+
listInnerAppVersion(agentId: number): Promise<ListInnerAppVersionResponse>
|
|
257
|
+
/**
|
|
258
|
+
* 获取企业所有内部应用列表
|
|
259
|
+
* @see https://open.dingtalk.com/document/orgapp/get-a-list-of-all-applications-inside-the-enterprise
|
|
260
|
+
*/
|
|
261
|
+
listAllInnerApps(): Promise<ListAllInnerAppsResponse>
|
|
262
|
+
/**
|
|
263
|
+
* 获取企业内部应用微应用的可使用范围
|
|
264
|
+
* @see https://open.dingtalk.com/document/orgapp/obtains-the-application-visible-range
|
|
265
|
+
*/
|
|
266
|
+
getMicroAppScope(agentId: number): Promise<GetMicroAppScopeResponse>
|
|
267
|
+
/**
|
|
268
|
+
* 更新企业内部应用微应用的可使用范围
|
|
269
|
+
* @see https://open.dingtalk.com/document/orgapp/update-the-visible-range-of-micro-applications
|
|
270
|
+
*/
|
|
271
|
+
setMicroAppScope(
|
|
272
|
+
agentId: number,
|
|
273
|
+
params: SetMicroAppScopeParams,
|
|
274
|
+
): Promise<SetMicroAppScopeResponse>
|
|
275
|
+
/**
|
|
276
|
+
* 获取用户可见的企业应用列表
|
|
277
|
+
* @see https://open.dingtalk.com/document/orgapp/obtains-the-list-of-enterprise-applications-visible-to-a-user
|
|
278
|
+
*/
|
|
279
|
+
listUserVilebleApp(userId: string): Promise<ListUserVilebleAppResponse>
|
|
280
|
+
/**
|
|
281
|
+
* 获取企业所有应用列表
|
|
282
|
+
* @see https://open.dingtalk.com/document/orgapp/obtains-a-list-of-all-enterprise-applications
|
|
283
|
+
*/
|
|
284
|
+
listAllApp(): Promise<ListAllAppResponse>
|
|
285
|
+
/**
|
|
286
|
+
* 删除企业内部应用
|
|
287
|
+
* @see https://open.dingtalk.com/document/app/delete-an-internal-h5-application
|
|
288
|
+
*/
|
|
289
|
+
deleteInnerApp(
|
|
290
|
+
agentId: number,
|
|
291
|
+
query: DeleteInnerAppQuery,
|
|
292
|
+
): Promise<DeleteInnerAppResponse>
|
|
293
|
+
/**
|
|
294
|
+
* 更新企业内部应用
|
|
295
|
+
* @see https://open.dingtalk.com/document/app/update-internal-h5-applications
|
|
296
|
+
*/
|
|
297
|
+
updateInnerApp(
|
|
298
|
+
agentId: number,
|
|
299
|
+
params: UpdateInnerAppParams,
|
|
300
|
+
): Promise<UpdateInnerAppResponse>
|
|
301
|
+
/**
|
|
302
|
+
* 创建企业内部应用
|
|
303
|
+
* @see https://open.dingtalk.com/document/app/create-an-h5-application-for-your-enterprise
|
|
304
|
+
*/
|
|
305
|
+
createInnerApp(
|
|
306
|
+
params: CreateInnerAppParams,
|
|
307
|
+
): Promise<CreateInnerAppResponse>
|
|
308
|
+
}
|
|
309
|
+
}
|