@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.
- package/lib/api/alitrip.d.ts +396 -0
- package/lib/api/attendance.d.ts +62 -0
- package/lib/api/badge.d.ts +232 -0
- package/lib/api/blackboard.d.ts +16 -0
- package/lib/api/calendar.d.ts +620 -0
- package/lib/api/card.d.ts +184 -0
- package/lib/api/conference.d.ts +403 -0
- package/lib/api/connector.d.ts +78 -0
- package/lib/api/contact.d.ts +39 -0
- package/lib/api/convFile.d.ts +134 -0
- package/lib/api/crm.d.ts +661 -0
- package/lib/api/customerService.d.ts +127 -0
- package/lib/api/datacenter.d.ts +505 -0
- package/lib/api/devicemng.d.ts +160 -0
- package/lib/api/diot.d.ts +12 -0
- package/lib/api/doc.d.ts +140 -0
- package/lib/api/drive.d.ts +87 -0
- package/lib/api/edu.d.ts +22 -0
- package/lib/api/esign.d.ts +33 -0
- package/lib/api/exclusive.d.ts +303 -0
- package/lib/api/h3yun.d.ts +437 -0
- package/lib/api/hrm.d.ts +214 -0
- package/lib/api/im.d.ts +772 -0
- package/lib/api/industry.d.ts +117 -0
- package/lib/api/jzcrm.d.ts +254 -0
- package/lib/api/link.d.ts +72 -0
- package/lib/api/live.d.ts +131 -0
- package/lib/api/microApp.d.ts +239 -0
- package/lib/api/oapi.d.ts +3361 -0
- package/lib/api/oauth2.d.ts +114 -0
- package/lib/api/pedia.d.ts +185 -0
- package/lib/api/project.d.ts +1118 -0
- package/lib/api/resident.d.ts +106 -0
- package/lib/api/robot.d.ts +255 -0
- package/lib/api/rooms.d.ts +255 -0
- package/lib/api/serviceGroup.d.ts +175 -0
- package/lib/api/storage.d.ts +1240 -0
- package/lib/api/swform.d.ts +70 -0
- package/lib/api/todo.d.ts +168 -0
- package/lib/api/wiki.d.ts +194 -0
- package/lib/api/workbench.d.ts +45 -0
- package/lib/api/yida.d.ts +1837 -0
- package/lib/bot.d.ts +30 -0
- package/lib/http.d.ts +7 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +1814 -0
- package/lib/index.js.map +7 -0
- package/lib/internal.d.ts +7 -0
- package/lib/message.d.ts +17 -0
- package/lib/types/index.d.ts +133 -0
- package/lib/utils.d.ts +4 -0
- package/lib/ws.d.ts +12 -0
- package/package.json +31 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export interface ListMaintainInfoParams {
|
|
2
|
+
/** 页码,从1开始。 */
|
|
3
|
+
pageNumber?: number;
|
|
4
|
+
/** 页面大小,最大值20。 */
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
/** 设备uuIi列表,最大值10。 */
|
|
7
|
+
deviceUuid?: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface ListMaintainInfoResponse {
|
|
10
|
+
totalCount?: number;
|
|
11
|
+
success?: unknown;
|
|
12
|
+
result?: {
|
|
13
|
+
gmtCreate?: string;
|
|
14
|
+
deviceCode?: string;
|
|
15
|
+
deviceName?: string;
|
|
16
|
+
remark?: string;
|
|
17
|
+
maintenanceStaff?: number;
|
|
18
|
+
processState?: number;
|
|
19
|
+
handleTime?: string;
|
|
20
|
+
}[];
|
|
21
|
+
}
|
|
22
|
+
export interface ListInspectInfoParams {
|
|
23
|
+
/** 当前页码,从1开始。 */
|
|
24
|
+
pageNumber?: number;
|
|
25
|
+
/** 当页大小,最大值20。 */
|
|
26
|
+
pageSize?: number;
|
|
27
|
+
/** 设备uuIi列表,最大值10。 */
|
|
28
|
+
deviceUuid?: string[];
|
|
29
|
+
/** 类型。 */
|
|
30
|
+
type?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ListInspectInfoResponse {
|
|
33
|
+
totalCount?: number;
|
|
34
|
+
success?: unknown;
|
|
35
|
+
result?: {
|
|
36
|
+
deviceName?: string;
|
|
37
|
+
deviceCode?: string;
|
|
38
|
+
type?: string;
|
|
39
|
+
status?: number;
|
|
40
|
+
repairStatus?: number;
|
|
41
|
+
maintenanceStaff?: number;
|
|
42
|
+
handleTime?: string;
|
|
43
|
+
remark?: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
gmtCreate?: string;
|
|
46
|
+
}[];
|
|
47
|
+
}
|
|
48
|
+
export interface ListActivateDevicesQuery {
|
|
49
|
+
/** 设备型号。 */
|
|
50
|
+
deviceTypeId?: string;
|
|
51
|
+
/** 当前页码,从1开始。 */
|
|
52
|
+
pageNumber?: number;
|
|
53
|
+
/** 分组标识。 */
|
|
54
|
+
groupId?: string;
|
|
55
|
+
/** 每页大小,最大值50。 */
|
|
56
|
+
pageSize?: number;
|
|
57
|
+
/** 设备编号。 */
|
|
58
|
+
deviceCode?: string;
|
|
59
|
+
/** 设备分类。 */
|
|
60
|
+
deviceCategory?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface ListActivateDevicesResponse {
|
|
63
|
+
totalCount?: number;
|
|
64
|
+
success?: unknown;
|
|
65
|
+
result?: {
|
|
66
|
+
bizExt?: string;
|
|
67
|
+
deviceCallbackUrl?: string;
|
|
68
|
+
deviceCode?: string;
|
|
69
|
+
deviceDetailUrl?: string;
|
|
70
|
+
deviceName?: string;
|
|
71
|
+
groupUuid?: string;
|
|
72
|
+
icon?: string;
|
|
73
|
+
introduction?: string;
|
|
74
|
+
typeUuid?: string;
|
|
75
|
+
uuid?: string;
|
|
76
|
+
deviceCategory?: number;
|
|
77
|
+
}[];
|
|
78
|
+
}
|
|
79
|
+
export interface RegisterAndActivateDeviceBatchParams {
|
|
80
|
+
/** 设备信息。 */
|
|
81
|
+
registerAndActivateVOS?: object[];
|
|
82
|
+
}
|
|
83
|
+
export interface RegisterAndActivateDeviceBatchResponse {
|
|
84
|
+
successItems?: {
|
|
85
|
+
errorCode?: string;
|
|
86
|
+
errorMsg?: string;
|
|
87
|
+
result?: number;
|
|
88
|
+
success?: number;
|
|
89
|
+
}[];
|
|
90
|
+
success?: unknown;
|
|
91
|
+
failItems?: {
|
|
92
|
+
errorCode?: string;
|
|
93
|
+
errorMsg?: string;
|
|
94
|
+
result?: number;
|
|
95
|
+
success?: number;
|
|
96
|
+
}[];
|
|
97
|
+
}
|
|
98
|
+
export interface RegisterAndActivateDeviceParams {
|
|
99
|
+
/** 设备号。 */
|
|
100
|
+
deviceCode: string;
|
|
101
|
+
/** 设备名称。 */
|
|
102
|
+
deviceName: string;
|
|
103
|
+
/** 设备的简介。 */
|
|
104
|
+
introduction?: string;
|
|
105
|
+
/** 设备型号。 */
|
|
106
|
+
typeUuid?: string;
|
|
107
|
+
/** 设备管理员的userId列表。 */
|
|
108
|
+
userIds?: string[];
|
|
109
|
+
/** 角色标识。 */
|
|
110
|
+
roleUuid?: string;
|
|
111
|
+
/** 设备详情链接,最大长度2048字符。 */
|
|
112
|
+
deviceDetailUrl?: string;
|
|
113
|
+
/** 设备回调链接,最大长度2048字符。 */
|
|
114
|
+
deviceCallbackUrl?: string;
|
|
115
|
+
/** 设备分类。 */
|
|
116
|
+
deviceCategory?: number;
|
|
117
|
+
}
|
|
118
|
+
export interface RegisterAndActivateDeviceResponse {
|
|
119
|
+
success?: unknown;
|
|
120
|
+
result: {
|
|
121
|
+
deviceCode: string;
|
|
122
|
+
deviceUuid: string;
|
|
123
|
+
deviceName: string;
|
|
124
|
+
introduction: string;
|
|
125
|
+
typeUuid: string;
|
|
126
|
+
roleUuid: string;
|
|
127
|
+
deviceDetailUrl: string;
|
|
128
|
+
userIds: number;
|
|
129
|
+
deviceCategory?: number;
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
declare module '../internal' {
|
|
133
|
+
interface Internal {
|
|
134
|
+
/**
|
|
135
|
+
* 获取报修信息
|
|
136
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-the-repair-report-record
|
|
137
|
+
*/
|
|
138
|
+
listMaintainInfo(params: ListMaintainInfoParams): Promise<ListMaintainInfoResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* 获取巡检、保养记录
|
|
141
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-inspection-and-maintenance-records
|
|
142
|
+
*/
|
|
143
|
+
listInspectInfo(params: ListInspectInfoParams): Promise<ListInspectInfoResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* 查询激活的设备信息
|
|
146
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-information-about-a-registered-device
|
|
147
|
+
*/
|
|
148
|
+
listActivateDevices(query: ListActivateDevicesQuery): Promise<ListActivateDevicesResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* 批量注册与激活设备
|
|
151
|
+
* @see https://developers.dingtalk.com/document/isvapp/register-and-activate-devices-in-batches
|
|
152
|
+
*/
|
|
153
|
+
registerAndActivateDeviceBatch(params: RegisterAndActivateDeviceBatchParams): Promise<RegisterAndActivateDeviceBatchResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* 注册与激活设备
|
|
156
|
+
* @see https://developers.dingtalk.com/document/isvapp/register-the-device-to-the-dingtalk
|
|
157
|
+
*/
|
|
158
|
+
registerAndActivateDevice(params: RegisterAndActivateDeviceParams): Promise<RegisterAndActivateDeviceResponse>;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface UpgradeDeviceResponse {
|
|
2
|
+
requestId?: string;
|
|
3
|
+
}
|
|
4
|
+
declare module '../internal' {
|
|
5
|
+
interface Internal {
|
|
6
|
+
/**
|
|
7
|
+
* 升级设备
|
|
8
|
+
* @see https://developers.dingtalk.com/document/app/upgrade-equipment
|
|
9
|
+
*/
|
|
10
|
+
upgradeDevice(): Promise<UpgradeDeviceResponse>;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/lib/api/doc.d.ts
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
export interface SetRowsVisibilityParams {
|
|
2
|
+
/** 可见性。 */
|
|
3
|
+
visibility: string;
|
|
4
|
+
/** 要显示或者隐藏的第一行的游标,从0开始。 */
|
|
5
|
+
row: number;
|
|
6
|
+
/** 要显示或隐藏的行的数量。 */
|
|
7
|
+
rowCount: number;
|
|
8
|
+
}
|
|
9
|
+
export interface SetRowsVisibilityQuery {
|
|
10
|
+
/** 操作人unionId。 */
|
|
11
|
+
operatorId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SetRowsVisibilityResponse {
|
|
14
|
+
id?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SetColumnsVisibilityParams {
|
|
17
|
+
/** 要显示或隐藏的第一列的游标,从0开始。 */
|
|
18
|
+
column: number;
|
|
19
|
+
/** 要显示或隐藏的列的数量。 */
|
|
20
|
+
columnCount: number;
|
|
21
|
+
/** 可见性。 */
|
|
22
|
+
visibility: string;
|
|
23
|
+
}
|
|
24
|
+
export interface SetColumnsVisibilityQuery {
|
|
25
|
+
/** 操作人unionId。 */
|
|
26
|
+
operatorId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface SetColumnsVisibilityResponse {
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface DeleteRowsParams {
|
|
32
|
+
/** 要删除的第一行的游标,从0开始。 */
|
|
33
|
+
row: number;
|
|
34
|
+
/** 要删除的行的数量。 */
|
|
35
|
+
rowCount: number;
|
|
36
|
+
}
|
|
37
|
+
export interface DeleteRowsQuery {
|
|
38
|
+
/** 操作人unionId。 */
|
|
39
|
+
operatorId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface DeleteRowsResponse {
|
|
42
|
+
id?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface DeleteColumnsParams {
|
|
45
|
+
/** 要删除的第一列的游标,从0开始。 */
|
|
46
|
+
column: number;
|
|
47
|
+
/** 要删除的列的数量。 */
|
|
48
|
+
columnCount: number;
|
|
49
|
+
}
|
|
50
|
+
export interface DeleteColumnsQuery {
|
|
51
|
+
/** 操作人unionId。 */
|
|
52
|
+
operatorId: string;
|
|
53
|
+
}
|
|
54
|
+
export interface DeleteColumnsResponse {
|
|
55
|
+
id?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface InsertRowsBeforeParams {
|
|
58
|
+
/** 指定行的游标,从0开始。 */
|
|
59
|
+
row: number;
|
|
60
|
+
/** 插入行的数量。 */
|
|
61
|
+
rowCount: number;
|
|
62
|
+
}
|
|
63
|
+
export interface InsertRowsBeforeQuery {
|
|
64
|
+
/** 操作人unionId。 */
|
|
65
|
+
operatorId: string;
|
|
66
|
+
}
|
|
67
|
+
export interface InsertRowsBeforeResponse {
|
|
68
|
+
id?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface InsertColumnsBeforeParams {
|
|
71
|
+
/** 指定列的游标,从0开始。 */
|
|
72
|
+
column: number;
|
|
73
|
+
/** 插入列的数量。 */
|
|
74
|
+
columnCount: number;
|
|
75
|
+
}
|
|
76
|
+
export interface InsertColumnsBeforeQuery {
|
|
77
|
+
/** 操作人unionId。 */
|
|
78
|
+
operatorId: string;
|
|
79
|
+
}
|
|
80
|
+
export interface InsertColumnsBeforeResponse {
|
|
81
|
+
id?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface ClearQuery {
|
|
84
|
+
/** 操作人unionId。 */
|
|
85
|
+
operatorId: string;
|
|
86
|
+
}
|
|
87
|
+
export interface ClearResponse {
|
|
88
|
+
a1Notation?: string;
|
|
89
|
+
}
|
|
90
|
+
export interface ClearDataQuery {
|
|
91
|
+
/** 操作人unionId。 */
|
|
92
|
+
operatorId: string;
|
|
93
|
+
}
|
|
94
|
+
export interface ClearDataResponse {
|
|
95
|
+
a1Notation?: string;
|
|
96
|
+
}
|
|
97
|
+
declare module '../internal' {
|
|
98
|
+
interface Internal {
|
|
99
|
+
/**
|
|
100
|
+
* 设置行隐藏或显示
|
|
101
|
+
* @see https://developers.dingtalk.com/document/app/set-row-visibility
|
|
102
|
+
*/
|
|
103
|
+
setRowsVisibility(workbookId: string, sheetId: string, query: SetRowsVisibilityQuery, params: SetRowsVisibilityParams): Promise<SetRowsVisibilityResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* 设置列隐藏或显示
|
|
106
|
+
* @see https://developers.dingtalk.com/document/app/set-column-visibility
|
|
107
|
+
*/
|
|
108
|
+
setColumnsVisibility(workbookId: string, sheetId: string, query: SetColumnsVisibilityQuery, params: SetColumnsVisibilityParams): Promise<SetColumnsVisibilityResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* 删除行
|
|
111
|
+
* @see https://developers.dingtalk.com/document/app/delete-row
|
|
112
|
+
*/
|
|
113
|
+
deleteRows(workbookId: string, sheetId: string, query: DeleteRowsQuery, params: DeleteRowsParams): Promise<DeleteRowsResponse>;
|
|
114
|
+
/**
|
|
115
|
+
* 删除列
|
|
116
|
+
* @see https://developers.dingtalk.com/document/app/delete-column
|
|
117
|
+
*/
|
|
118
|
+
deleteColumns(workbookId: string, sheetId: string, query: DeleteColumnsQuery, params: DeleteColumnsParams): Promise<DeleteColumnsResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* 指定行上方插入若干行
|
|
121
|
+
* @see https://developers.dingtalk.com/document/app/insert-rows-before-rows
|
|
122
|
+
*/
|
|
123
|
+
insertRowsBefore(workbookId: string, sheetId: string, query: InsertRowsBeforeQuery, params: InsertRowsBeforeParams): Promise<InsertRowsBeforeResponse>;
|
|
124
|
+
/**
|
|
125
|
+
* 指定列左侧插入若干列
|
|
126
|
+
* @see https://developers.dingtalk.com/document/app/insert-column-before-column
|
|
127
|
+
*/
|
|
128
|
+
insertColumnsBefore(workbookId: string, sheetId: string, query: InsertColumnsBeforeQuery, params: InsertColumnsBeforeParams): Promise<InsertColumnsBeforeResponse>;
|
|
129
|
+
/**
|
|
130
|
+
* 清除单元格区域内所有内容
|
|
131
|
+
* @see https://developers.dingtalk.com/document/app/clear-all
|
|
132
|
+
*/
|
|
133
|
+
clear(workbookId: string, sheetId: string, rangeAddress: string, query: ClearQuery): Promise<ClearResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* 清除单元格区域内数据
|
|
136
|
+
* @see https://developers.dingtalk.com/document/app/clear-cell-data
|
|
137
|
+
*/
|
|
138
|
+
clearData(workbookId: string, sheetId: string, rangeAddress: string, query: ClearDataQuery): Promise<ClearDataResponse>;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export interface AddCustomSpaceParams {
|
|
2
|
+
/** 自定义空间标识。任意小于10位的字符串即可。 */
|
|
3
|
+
identifier: string;
|
|
4
|
+
/** 业务类型。任意小于8位的字符串即可。 */
|
|
5
|
+
bizType: string;
|
|
6
|
+
/** 授权模式,取值: */
|
|
7
|
+
permissionMode: string;
|
|
8
|
+
/** 用户unionId,可通过以下两种方式获取: */
|
|
9
|
+
unionId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AddCustomSpaceResponse {
|
|
12
|
+
spaceId: string;
|
|
13
|
+
spaceName?: string;
|
|
14
|
+
spaceType: string;
|
|
15
|
+
quota?: number;
|
|
16
|
+
usedQuota: number;
|
|
17
|
+
permissionMode?: string;
|
|
18
|
+
createTime?: string;
|
|
19
|
+
modifyTime?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface DeleteSpaceQuery {
|
|
22
|
+
/** 用户unionId,可通过以下两种方式获取: */
|
|
23
|
+
unionId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface DriveAddSpaceParams {
|
|
26
|
+
/** 空间名称(不能为空)。 */
|
|
27
|
+
name: string;
|
|
28
|
+
/** 用户unionId,可通过以下两种方式获取: */
|
|
29
|
+
unionId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface DriveAddSpaceResponse {
|
|
32
|
+
spaceId: string;
|
|
33
|
+
spaceName?: string;
|
|
34
|
+
spaceType: string;
|
|
35
|
+
quota?: number;
|
|
36
|
+
usedQuota: number;
|
|
37
|
+
permissionMode?: string;
|
|
38
|
+
createTime?: string;
|
|
39
|
+
modifyTime?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ListSpacesQuery {
|
|
42
|
+
/** 用户unionId,可通过以下两种方式获取: */
|
|
43
|
+
unionId: string;
|
|
44
|
+
/** 空间类型。 */
|
|
45
|
+
spaceType: string;
|
|
46
|
+
/** 分页游标。 */
|
|
47
|
+
nextToken?: string;
|
|
48
|
+
/** 分页大小。 */
|
|
49
|
+
maxResults: number;
|
|
50
|
+
}
|
|
51
|
+
export interface ListSpacesResponse {
|
|
52
|
+
spaces: {
|
|
53
|
+
spaceId: string;
|
|
54
|
+
spaceName?: string;
|
|
55
|
+
spaceType: string;
|
|
56
|
+
quota?: number;
|
|
57
|
+
usedQuota: number;
|
|
58
|
+
permissionMode?: string;
|
|
59
|
+
createTime?: string;
|
|
60
|
+
modifyTime?: string;
|
|
61
|
+
}[];
|
|
62
|
+
nextToken?: string;
|
|
63
|
+
}
|
|
64
|
+
declare module '../internal' {
|
|
65
|
+
interface Internal {
|
|
66
|
+
/**
|
|
67
|
+
* 新建自定义空间
|
|
68
|
+
* @see https://developers.dingtalk.com/document/isvapp/new-custom-space
|
|
69
|
+
*/
|
|
70
|
+
addCustomSpace(params: AddCustomSpaceParams): Promise<AddCustomSpaceResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* 删除空间
|
|
73
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-a-space
|
|
74
|
+
*/
|
|
75
|
+
deleteSpace(spaceId: string, query: DeleteSpaceQuery): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* 新建空间
|
|
78
|
+
* @see https://developers.dingtalk.com/document/isvapp/new-space
|
|
79
|
+
*/
|
|
80
|
+
driveAddSpace(params: DriveAddSpaceParams): Promise<DriveAddSpaceResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* 获取空间列表
|
|
83
|
+
* @see https://developers.dingtalk.com/document/isvapp/queries-a-space-list
|
|
84
|
+
*/
|
|
85
|
+
listSpaces(query: ListSpacesQuery): Promise<ListSpacesResponse>;
|
|
86
|
+
}
|
|
87
|
+
}
|
package/lib/api/edu.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface MoveStudentParams {
|
|
2
|
+
/** 操作者的userid,可调用[通过免登码获取用户信息](https://developers.dingtalk.com/document/app/obtain-the-userid-of-a-user-by-using-the-log-free)接口获取。 */
|
|
3
|
+
operator: string;
|
|
4
|
+
/** 学生的userid,可调用[获取人员列表](https://developers.dingtalk.com/document/app/obtains-a-list-of-home-school-user-identities)接口获取。 */
|
|
5
|
+
userId: string;
|
|
6
|
+
/** 原班级ID,可调用[获取部门列表](https://developers.dingtalk.com/document/app/obtains-the-department-node-list)接口获取。 */
|
|
7
|
+
originClassId: number;
|
|
8
|
+
/** 目标班级ID,可调用[获取部门列表](https://developers.dingtalk.com/document/app/obtains-the-department-node-list)接口获取。 */
|
|
9
|
+
targetClassId: number;
|
|
10
|
+
}
|
|
11
|
+
export interface MoveStudentResponse {
|
|
12
|
+
success?: unknown;
|
|
13
|
+
}
|
|
14
|
+
declare module '../internal' {
|
|
15
|
+
interface Internal {
|
|
16
|
+
/**
|
|
17
|
+
* 学生调班
|
|
18
|
+
* @see https://developers.dingtalk.com/document/isvapp/shift-students
|
|
19
|
+
*/
|
|
20
|
+
moveStudent(params: MoveStudentParams): Promise<MoveStudentResponse>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface GetFlowDocsResponse {
|
|
2
|
+
data?: {
|
|
3
|
+
fileId?: string;
|
|
4
|
+
fileName?: string;
|
|
5
|
+
fileUrl?: string;
|
|
6
|
+
}[];
|
|
7
|
+
}
|
|
8
|
+
export interface ApprovalListResponse {
|
|
9
|
+
data?: {
|
|
10
|
+
approvalName?: string;
|
|
11
|
+
status?: string;
|
|
12
|
+
refuseReason?: string;
|
|
13
|
+
sponsorAccountName?: string;
|
|
14
|
+
startTime?: number;
|
|
15
|
+
endTime?: number;
|
|
16
|
+
sealIdImg?: string;
|
|
17
|
+
approvalNodes?: number;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
declare module '../internal' {
|
|
21
|
+
interface Internal {
|
|
22
|
+
/**
|
|
23
|
+
* 获取流程任务的所有合同列表
|
|
24
|
+
* @see https://developers.dingtalk.com/document/isvapp/get-a-list-of-all-contracts-for-the-process-task
|
|
25
|
+
*/
|
|
26
|
+
getFlowDocs(taskId: string): Promise<GetFlowDocsResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* 获取流程任务用印审批列表
|
|
29
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtains-the-print-approval-list-for-process-tasks
|
|
30
|
+
*/
|
|
31
|
+
approvalList(taskId: string): Promise<ApprovalListResponse>;
|
|
32
|
+
}
|
|
33
|
+
}
|