@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,1118 @@
|
|
|
1
|
+
export interface CreateProjectCustomfieldStatusParams {
|
|
2
|
+
/** 自定义字段ID。 */
|
|
3
|
+
customFieldId?: string;
|
|
4
|
+
/** 自定义字段名称(如果提供自定义字段ID 则忽略)。 */
|
|
5
|
+
customFieldName?: string;
|
|
6
|
+
/** 自定义字段InstanceId(如果提供自定义字段ID 或者 自定义字段名称 则忽略)。 */
|
|
7
|
+
customFieldInstanceId?: string;
|
|
8
|
+
/** 字段值集合。 */
|
|
9
|
+
value: object[];
|
|
10
|
+
}
|
|
11
|
+
export interface CreateProjectCustomfieldStatusResponse {
|
|
12
|
+
result?: {
|
|
13
|
+
customFieldId?: string;
|
|
14
|
+
originalId?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
type?: string;
|
|
17
|
+
advancedCustomFieldObjectType?: string;
|
|
18
|
+
value?: number;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateTaskContentParams {
|
|
22
|
+
/** 任务标题。 */
|
|
23
|
+
content?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface UpdateTaskContentResponse {
|
|
26
|
+
result?: {
|
|
27
|
+
content?: string;
|
|
28
|
+
updated?: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface UpdateTaskNoteParams {
|
|
32
|
+
/** 任务备注。 */
|
|
33
|
+
note?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface UpdateTaskNoteResponse {
|
|
36
|
+
result?: {
|
|
37
|
+
note?: string;
|
|
38
|
+
updated?: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface UpdateTaskInvolvemembersParams {
|
|
42
|
+
/** 参与者用户userId。 */
|
|
43
|
+
involveMembers?: string[];
|
|
44
|
+
/** 参与者用户userId。 */
|
|
45
|
+
addInvolvers?: string[];
|
|
46
|
+
/** 参与者用户userId。 */
|
|
47
|
+
delInvolvers?: string[];
|
|
48
|
+
}
|
|
49
|
+
export interface UpdateTaskInvolvemembersResponse {
|
|
50
|
+
result?: {
|
|
51
|
+
involveMembers?: number;
|
|
52
|
+
updated?: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface UpdateTaskExecutorParams {
|
|
56
|
+
/** 执行者用户userId。 */
|
|
57
|
+
executorId?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface UpdateTaskExecutorResponse {
|
|
60
|
+
result?: {
|
|
61
|
+
executorId?: string;
|
|
62
|
+
updated?: string;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export interface UpdateTaskPriorityParams {
|
|
66
|
+
/** 优先级。 */
|
|
67
|
+
priority?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface UpdateTaskPriorityResponse {
|
|
70
|
+
result?: {
|
|
71
|
+
priority?: number;
|
|
72
|
+
updated?: string;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface UpdateTaskDueDateParams {
|
|
76
|
+
/** 截止时间,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */
|
|
77
|
+
dueDate?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface UpdateTaskDueDateResponse {
|
|
80
|
+
result?: {
|
|
81
|
+
dueDate?: string;
|
|
82
|
+
updated?: string;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export interface GetTaskByIdsQuery {
|
|
86
|
+
/** 任务ID集合,多个taskId,使用逗号分隔。 */
|
|
87
|
+
taskId?: string;
|
|
88
|
+
/** 父任务ID。 */
|
|
89
|
+
parentTaskId?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface GetTaskByIdsResponse {
|
|
92
|
+
result?: {
|
|
93
|
+
taskId?: string;
|
|
94
|
+
content?: string;
|
|
95
|
+
note?: string;
|
|
96
|
+
projectId?: string;
|
|
97
|
+
ancestorIds?: number;
|
|
98
|
+
parentTaskId?: string;
|
|
99
|
+
taskflowStatusId?: string;
|
|
100
|
+
taskListId?: string;
|
|
101
|
+
taskStageId?: string;
|
|
102
|
+
tagIds?: number;
|
|
103
|
+
creatorId?: string;
|
|
104
|
+
executorId?: string;
|
|
105
|
+
involveMembers?: number;
|
|
106
|
+
priority?: number;
|
|
107
|
+
storyPoint?: string;
|
|
108
|
+
recurrence?: number;
|
|
109
|
+
isDone?: number;
|
|
110
|
+
isArchived?: number;
|
|
111
|
+
visible?: string;
|
|
112
|
+
uniqueId?: string;
|
|
113
|
+
startDate?: string;
|
|
114
|
+
dueDate?: string;
|
|
115
|
+
accomplishTime?: string;
|
|
116
|
+
created?: string;
|
|
117
|
+
updated?: string;
|
|
118
|
+
scenarioFieldConfigId?: string;
|
|
119
|
+
sprintId?: string;
|
|
120
|
+
customFields?: number;
|
|
121
|
+
}[];
|
|
122
|
+
}
|
|
123
|
+
export interface ArchiveTaskResponse {
|
|
124
|
+
result?: {
|
|
125
|
+
updated?: string;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
export interface SearchUserTaskQuery {
|
|
129
|
+
/** 用户的任务角色。 */
|
|
130
|
+
roleTypes: string;
|
|
131
|
+
/** tql内容,详情参见[任务筛选TQL](https://open.dingtalk.com/document/orgapp/the-description-of-the-tql-task)使用说明。 */
|
|
132
|
+
tql?: string;
|
|
133
|
+
/** 分页标,从上一次请求结果中获取。 */
|
|
134
|
+
nextToken?: string;
|
|
135
|
+
/** 每页返回最大数量。 */
|
|
136
|
+
maxResults?: string;
|
|
137
|
+
}
|
|
138
|
+
export interface SearchUserTaskResponse {
|
|
139
|
+
result?: {
|
|
140
|
+
taskId?: string;
|
|
141
|
+
content?: string;
|
|
142
|
+
note?: string;
|
|
143
|
+
projectId?: string;
|
|
144
|
+
ancestorIds?: number;
|
|
145
|
+
parentTaskId?: string;
|
|
146
|
+
taskflowStatusId?: string;
|
|
147
|
+
taskListId?: string;
|
|
148
|
+
taskStageId?: string;
|
|
149
|
+
tagIds?: number;
|
|
150
|
+
creatorId?: string;
|
|
151
|
+
executorId?: string;
|
|
152
|
+
involveMembers?: number;
|
|
153
|
+
priority?: number;
|
|
154
|
+
storyPoint?: string;
|
|
155
|
+
recurrence?: number;
|
|
156
|
+
isDone?: number;
|
|
157
|
+
isArchived?: number;
|
|
158
|
+
visible?: string;
|
|
159
|
+
uniqueId?: string;
|
|
160
|
+
startDate?: string;
|
|
161
|
+
dueDate?: string;
|
|
162
|
+
accomplishTime?: string;
|
|
163
|
+
created?: string;
|
|
164
|
+
updated?: string;
|
|
165
|
+
scenarioFieldConfigId?: string;
|
|
166
|
+
sprintId?: string;
|
|
167
|
+
customFields?: number;
|
|
168
|
+
}[];
|
|
169
|
+
requestId?: string;
|
|
170
|
+
}
|
|
171
|
+
export interface SeachTaskStageQuery {
|
|
172
|
+
/** 任务分组ID: */
|
|
173
|
+
taskListId?: string;
|
|
174
|
+
/** 任务列表名字。 */
|
|
175
|
+
query?: string;
|
|
176
|
+
/** 每页返回最大数量。 */
|
|
177
|
+
maxResults?: number;
|
|
178
|
+
/** 分页标,从上一次请求结果中获取。 */
|
|
179
|
+
nextToken?: string;
|
|
180
|
+
/** 任务列表 ID 集合。 */
|
|
181
|
+
taskStageIds?: string;
|
|
182
|
+
}
|
|
183
|
+
export interface SeachTaskStageResponse {
|
|
184
|
+
result?: {
|
|
185
|
+
taskStageId?: string;
|
|
186
|
+
name?: string;
|
|
187
|
+
description?: string;
|
|
188
|
+
projectId?: string;
|
|
189
|
+
taskListId?: string;
|
|
190
|
+
creatorId?: string;
|
|
191
|
+
created?: string;
|
|
192
|
+
updated?: string;
|
|
193
|
+
}[];
|
|
194
|
+
nextToken?: string;
|
|
195
|
+
}
|
|
196
|
+
export interface SearchTaskListQuery {
|
|
197
|
+
/** 模糊任务分组名字。 */
|
|
198
|
+
query?: string;
|
|
199
|
+
/** 每页返回最大数量。 */
|
|
200
|
+
maxResults?: number;
|
|
201
|
+
/** 分页标,从上一次请求结果中获取。 */
|
|
202
|
+
nextToken?: string;
|
|
203
|
+
/** 任务分组ID集合,多个使用英文逗号隔开。 */
|
|
204
|
+
taskListIds?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface SearchTaskListResponse {
|
|
207
|
+
result?: {
|
|
208
|
+
taskListId?: string;
|
|
209
|
+
title?: string;
|
|
210
|
+
description?: string;
|
|
211
|
+
projectId?: string;
|
|
212
|
+
creatorId?: string;
|
|
213
|
+
created?: string;
|
|
214
|
+
updated?: string;
|
|
215
|
+
}[];
|
|
216
|
+
nextToken?: string;
|
|
217
|
+
}
|
|
218
|
+
export interface SearchTaskFlowQuery {
|
|
219
|
+
/** 模糊查询工作流名字。 */
|
|
220
|
+
query?: string;
|
|
221
|
+
/** 每页返回最大数量。 */
|
|
222
|
+
maxResults?: number;
|
|
223
|
+
/** 分页标,从上一次请求结果中获取。 */
|
|
224
|
+
nextToken?: string;
|
|
225
|
+
/** 工作流ID集合。 */
|
|
226
|
+
taskflowIds?: string;
|
|
227
|
+
}
|
|
228
|
+
export interface SearchTaskFlowResponse {
|
|
229
|
+
result?: {
|
|
230
|
+
taskflowId?: string;
|
|
231
|
+
name?: string;
|
|
232
|
+
boundToObjectId?: string;
|
|
233
|
+
boundToObjectType?: string;
|
|
234
|
+
creatorId?: string;
|
|
235
|
+
isDeleted?: number;
|
|
236
|
+
created?: string;
|
|
237
|
+
updated?: string;
|
|
238
|
+
}[];
|
|
239
|
+
}
|
|
240
|
+
export interface GetProjectStatusListResponse {
|
|
241
|
+
result?: {
|
|
242
|
+
projectId?: string;
|
|
243
|
+
name?: string;
|
|
244
|
+
content?: string;
|
|
245
|
+
degree?: string;
|
|
246
|
+
creatorId?: string;
|
|
247
|
+
created?: string;
|
|
248
|
+
}[];
|
|
249
|
+
}
|
|
250
|
+
export interface DeleteProjectMemberParams {
|
|
251
|
+
/** 用户userId。 */
|
|
252
|
+
userIds: string[];
|
|
253
|
+
}
|
|
254
|
+
export interface DeleteProjectMemberResponse {
|
|
255
|
+
result?: string[];
|
|
256
|
+
}
|
|
257
|
+
export interface GetProjectMemebersQuery {
|
|
258
|
+
/** 用户ID。 */
|
|
259
|
+
userIds?: string;
|
|
260
|
+
/** 项目角色ID。 */
|
|
261
|
+
projectRoleId?: string;
|
|
262
|
+
/** 每页返回最大数量。默认10,最大300。 */
|
|
263
|
+
maxResults?: number;
|
|
264
|
+
/** 跳过的数据数量。 */
|
|
265
|
+
skip?: number;
|
|
266
|
+
}
|
|
267
|
+
export interface GetProjectMemebersResponse {
|
|
268
|
+
result?: {
|
|
269
|
+
memberId?: string;
|
|
270
|
+
userId?: string;
|
|
271
|
+
role?: number;
|
|
272
|
+
roleIds?: number;
|
|
273
|
+
}[];
|
|
274
|
+
}
|
|
275
|
+
export interface QueryProjectQuery {
|
|
276
|
+
/** 项目ID集合: */
|
|
277
|
+
projectIds?: string;
|
|
278
|
+
/** 项目名字(模糊匹配)。 */
|
|
279
|
+
name?: string;
|
|
280
|
+
/** 分页大小。每页返回最大数量。 */
|
|
281
|
+
maxResults?: number;
|
|
282
|
+
/** 分页标。供分页使用,下一页token,从当前页结果中获取。 */
|
|
283
|
+
nextToken?: string;
|
|
284
|
+
/** 原始项目ID。 */
|
|
285
|
+
sourceId?: string;
|
|
286
|
+
}
|
|
287
|
+
export interface QueryProjectResponse {
|
|
288
|
+
result?: {
|
|
289
|
+
projectId?: string;
|
|
290
|
+
name?: string;
|
|
291
|
+
logo?: string;
|
|
292
|
+
description?: string;
|
|
293
|
+
organizationId?: string;
|
|
294
|
+
visibility?: string;
|
|
295
|
+
isTemplate?: number;
|
|
296
|
+
creatorId?: string;
|
|
297
|
+
isArchived?: number;
|
|
298
|
+
isSuspended?: number;
|
|
299
|
+
uniqueIdPrefix?: string;
|
|
300
|
+
created?: string;
|
|
301
|
+
updated?: string;
|
|
302
|
+
startDate?: string;
|
|
303
|
+
endDate?: string;
|
|
304
|
+
customFields?: number;
|
|
305
|
+
}[];
|
|
306
|
+
nextToken?: string;
|
|
307
|
+
requestId?: string;
|
|
308
|
+
}
|
|
309
|
+
export interface SearchTaskflowStatusQuery {
|
|
310
|
+
/** 模糊查询工作流状态名字。 */
|
|
311
|
+
query?: string;
|
|
312
|
+
/** 每页返回最大数量。 */
|
|
313
|
+
maxResults?: number;
|
|
314
|
+
/** 分页标,从上一次请求结果中获取。 */
|
|
315
|
+
nextToken?: string;
|
|
316
|
+
/** 工作流ID集合。 */
|
|
317
|
+
tfIds?: string;
|
|
318
|
+
/** 工作流状态ID集合。 */
|
|
319
|
+
tfsIds?: string;
|
|
320
|
+
}
|
|
321
|
+
export interface SearchTaskflowStatusResponse {
|
|
322
|
+
result?: {
|
|
323
|
+
taskflowStatusId?: string;
|
|
324
|
+
name?: string;
|
|
325
|
+
pos?: number;
|
|
326
|
+
taskflowId?: string;
|
|
327
|
+
rejectStatusIds?: number;
|
|
328
|
+
kind?: string;
|
|
329
|
+
creatorId?: string;
|
|
330
|
+
isDeleted?: number;
|
|
331
|
+
created?: string;
|
|
332
|
+
updated?: string;
|
|
333
|
+
isTaskflowstatusruleexector?: number;
|
|
334
|
+
}[];
|
|
335
|
+
}
|
|
336
|
+
export interface UpdateTaskTaskflowstatusParams {
|
|
337
|
+
/** 任务状态ID。 */
|
|
338
|
+
taskflowStatusId?: string;
|
|
339
|
+
taskflowStatusUpdateNote?: string;
|
|
340
|
+
}
|
|
341
|
+
export interface UpdateTaskTaskflowstatusResponse {
|
|
342
|
+
result?: {
|
|
343
|
+
updated?: string;
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
export interface UpdateTaskStartdateParams {
|
|
347
|
+
/** 任务开始时间,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */
|
|
348
|
+
startDate?: string;
|
|
349
|
+
}
|
|
350
|
+
export interface UpdateTaskStartdateResponse {
|
|
351
|
+
result?: {
|
|
352
|
+
startDate?: string;
|
|
353
|
+
updated?: string;
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
export interface CreateProjectParams {
|
|
357
|
+
/** 项目名称。 */
|
|
358
|
+
name?: string;
|
|
359
|
+
}
|
|
360
|
+
export interface CreateProjectResponse {
|
|
361
|
+
result?: {
|
|
362
|
+
projectId?: string;
|
|
363
|
+
name?: string;
|
|
364
|
+
creatorId?: string;
|
|
365
|
+
logo?: string;
|
|
366
|
+
visibility?: string;
|
|
367
|
+
uniqueIdPrefix?: string;
|
|
368
|
+
created?: string;
|
|
369
|
+
updated?: string;
|
|
370
|
+
isArchived?: number;
|
|
371
|
+
isSuspended?: number;
|
|
372
|
+
normalType?: string;
|
|
373
|
+
rootCollectionId?: string;
|
|
374
|
+
sourceId?: string;
|
|
375
|
+
defaultCollectionId?: string;
|
|
376
|
+
isTemplate?: number;
|
|
377
|
+
customFields?: number;
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
export interface GetUserJoinedProjectQuery {
|
|
381
|
+
/** 分页大小。 */
|
|
382
|
+
maxResults?: number;
|
|
383
|
+
/** 分页标。 */
|
|
384
|
+
nextToken?: string;
|
|
385
|
+
}
|
|
386
|
+
export interface GetUserJoinedProjectResponse {
|
|
387
|
+
result?: string[];
|
|
388
|
+
nextToken?: string;
|
|
389
|
+
}
|
|
390
|
+
export interface ArchiveProjectResponse {
|
|
391
|
+
result?: {
|
|
392
|
+
isArchived?: number;
|
|
393
|
+
updated?: string;
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
export interface UnSuspendProjectResponse {
|
|
397
|
+
result?: {
|
|
398
|
+
updated?: string;
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
export interface SuspendProjectResponse {
|
|
402
|
+
result?: {
|
|
403
|
+
updated?: string;
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
export interface QueryTaskOfProjectQuery {
|
|
407
|
+
/** 分页游标。 */
|
|
408
|
+
nextToken?: string;
|
|
409
|
+
/** 每页返回最大数量。默认10,最大500。 */
|
|
410
|
+
maxResults?: number;
|
|
411
|
+
/** 查询条件。 */
|
|
412
|
+
query?: string;
|
|
413
|
+
}
|
|
414
|
+
export interface QueryTaskOfProjectResponse {
|
|
415
|
+
totalCount: number;
|
|
416
|
+
nextToken: string;
|
|
417
|
+
result?: {
|
|
418
|
+
taskId?: string;
|
|
419
|
+
content?: string;
|
|
420
|
+
involveMembers?: number;
|
|
421
|
+
projectId?: string;
|
|
422
|
+
executorId?: string;
|
|
423
|
+
creatorId?: string;
|
|
424
|
+
isDeleted?: number;
|
|
425
|
+
labels?: number;
|
|
426
|
+
created?: string;
|
|
427
|
+
updated?: string;
|
|
428
|
+
scenariofieldconfigId?: string;
|
|
429
|
+
customfields?: number;
|
|
430
|
+
note?: string;
|
|
431
|
+
startDate?: string;
|
|
432
|
+
dueDate?: string;
|
|
433
|
+
priority?: number;
|
|
434
|
+
taskflowstatusId?: string;
|
|
435
|
+
isDone?: number;
|
|
436
|
+
isArchived?: number;
|
|
437
|
+
visible?: string;
|
|
438
|
+
tagIds?: number;
|
|
439
|
+
stageId?: string;
|
|
440
|
+
sprintId?: string;
|
|
441
|
+
accomplished?: string;
|
|
442
|
+
storyPoint?: number;
|
|
443
|
+
progress?: number;
|
|
444
|
+
ancestorIds?: number;
|
|
445
|
+
}[];
|
|
446
|
+
}
|
|
447
|
+
export interface CreateWorkTimeParams {
|
|
448
|
+
/** 任务执行者userId。 */
|
|
449
|
+
executorId: string;
|
|
450
|
+
/** 对象ID,传项目任务ID。 */
|
|
451
|
+
objectId: string;
|
|
452
|
+
/** 对象类型,固定值为task,表示项目任务。 */
|
|
453
|
+
objectType: string;
|
|
454
|
+
/** 工时提交人员的userId。 */
|
|
455
|
+
submitterId: string;
|
|
456
|
+
/** 当startDate和endDate指定的时间跨天时,添加的工时时长是否连续。 */
|
|
457
|
+
isDuration: unknown;
|
|
458
|
+
/** 添加实际工时的日期是否包含假期。 */
|
|
459
|
+
includesHolidays: unknown;
|
|
460
|
+
/** 添加实际工时的开始日期。 */
|
|
461
|
+
startDate: string;
|
|
462
|
+
/** 结束时间。 */
|
|
463
|
+
endDate: string;
|
|
464
|
+
/** 实际工时时长,单位毫秒,1小时即为3600000。 */
|
|
465
|
+
workTime: number;
|
|
466
|
+
}
|
|
467
|
+
export interface CreateWorkTimeQuery {
|
|
468
|
+
/** 接口校验类型,固定值:organization。 */
|
|
469
|
+
tenantType: string;
|
|
470
|
+
}
|
|
471
|
+
export interface CreateWorkTimeResponse {
|
|
472
|
+
result?: {
|
|
473
|
+
ok?: number;
|
|
474
|
+
message?: string;
|
|
475
|
+
body?: number;
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
export interface CreatePlanTimeParams {
|
|
479
|
+
/** 目标任务的执行者userId。 */
|
|
480
|
+
executorId: string;
|
|
481
|
+
/** 对象ID,传项目任务ID。 */
|
|
482
|
+
objectId: string;
|
|
483
|
+
/** 对象类型,固定值为task,表示项目任务。 */
|
|
484
|
+
objectType: string;
|
|
485
|
+
/** 当startDate和endDate指定的时间跨天时,添加的工时时长是否连续。 */
|
|
486
|
+
isDuration: unknown;
|
|
487
|
+
/** 添加计划工时的日期是否包含假期。 */
|
|
488
|
+
includesHolidays: unknown;
|
|
489
|
+
/** 工时提交人员的userId。 */
|
|
490
|
+
submitterId: string;
|
|
491
|
+
/** 开始时间。 */
|
|
492
|
+
startDate: string;
|
|
493
|
+
/** 结束时间。 */
|
|
494
|
+
endDate: string;
|
|
495
|
+
/** 计划工时时长,单位毫秒,1小时即为3600000。 */
|
|
496
|
+
planTime: number;
|
|
497
|
+
}
|
|
498
|
+
export interface CreatePlanTimeQuery {
|
|
499
|
+
/** 接口校验类型,目前为固定值:organization。 */
|
|
500
|
+
tenantType: string;
|
|
501
|
+
}
|
|
502
|
+
export interface CreatePlanTimeResponse {
|
|
503
|
+
result?: {
|
|
504
|
+
ok?: number;
|
|
505
|
+
message?: string;
|
|
506
|
+
body?: number;
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
export interface UpdateCustomfieldValueParams {
|
|
510
|
+
/** 自定义字段名。 */
|
|
511
|
+
customFieldName?: string;
|
|
512
|
+
/** 自定义对象值。 */
|
|
513
|
+
value: object[];
|
|
514
|
+
/** 自定义字段id。 */
|
|
515
|
+
customFieldId?: string;
|
|
516
|
+
}
|
|
517
|
+
export interface UpdateCustomfieldValueResponse {
|
|
518
|
+
result?: {
|
|
519
|
+
customFields?: number;
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
export interface GetTbUserIdByStaffIdQuery {
|
|
523
|
+
/** 操作者userId。 */
|
|
524
|
+
optUserId: string;
|
|
525
|
+
/** 需要被查询的用户userId。 */
|
|
526
|
+
userId: string;
|
|
527
|
+
}
|
|
528
|
+
export interface GetTbUserIdByStaffIdResponse {
|
|
529
|
+
result: {
|
|
530
|
+
tbUserId: string;
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
export interface GetTbOrgIdByDingOrgIdQuery {
|
|
534
|
+
/** 操作者userId。 */
|
|
535
|
+
optUserId: string;
|
|
536
|
+
}
|
|
537
|
+
export interface GetTbOrgIdByDingOrgIdResponse {
|
|
538
|
+
result: {
|
|
539
|
+
tbOrganizationId: string;
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
export interface UpdateProjectGroupParams {
|
|
543
|
+
/** 将项目添加到的目标项目分组Id列表,最大值5。 */
|
|
544
|
+
addProjectGroupIds?: string[];
|
|
545
|
+
/** 移除该项目的项目分组Id列表,最大值5。 */
|
|
546
|
+
delProjectGroupIds?: string[];
|
|
547
|
+
}
|
|
548
|
+
export interface UpdateProjectGroupResponse {
|
|
549
|
+
result?: {
|
|
550
|
+
ok?: number;
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
export interface AddProjectMemberParams {
|
|
554
|
+
/** 被添加的用户userId列表,建议一次不超过10个。 */
|
|
555
|
+
userIds: string[];
|
|
556
|
+
}
|
|
557
|
+
export interface AddProjectMemberResponse {
|
|
558
|
+
result?: {
|
|
559
|
+
nickname?: string;
|
|
560
|
+
joined?: string;
|
|
561
|
+
}[];
|
|
562
|
+
}
|
|
563
|
+
export interface CreateProjectByTemplateParams {
|
|
564
|
+
/** 项目名字。 */
|
|
565
|
+
name: string;
|
|
566
|
+
/** 模板Id。 */
|
|
567
|
+
templateId: string;
|
|
568
|
+
}
|
|
569
|
+
export interface CreateProjectByTemplateResponse {
|
|
570
|
+
result?: {
|
|
571
|
+
id?: string;
|
|
572
|
+
name?: string;
|
|
573
|
+
created?: string;
|
|
574
|
+
logo?: string;
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
export interface GetProjectGroupQuery {
|
|
578
|
+
/** 查看者userId,即查询该员工可见的项目分组。 */
|
|
579
|
+
viewerId?: string;
|
|
580
|
+
/** 分页大小。从1开始,默认值10,最大值1000。 */
|
|
581
|
+
pageSize?: number;
|
|
582
|
+
}
|
|
583
|
+
export interface GetProjectGroupResponse {
|
|
584
|
+
result?: {
|
|
585
|
+
id?: string;
|
|
586
|
+
visible?: string;
|
|
587
|
+
name?: string;
|
|
588
|
+
created?: string;
|
|
589
|
+
updated?: string;
|
|
590
|
+
}[];
|
|
591
|
+
}
|
|
592
|
+
export interface SearchProjectTemplateQuery {
|
|
593
|
+
/** 项目模板名称关键词。 */
|
|
594
|
+
keyword?: string;
|
|
595
|
+
}
|
|
596
|
+
export interface SearchProjectTemplateResponse {
|
|
597
|
+
result?: {
|
|
598
|
+
id?: string;
|
|
599
|
+
description?: string;
|
|
600
|
+
visible?: string;
|
|
601
|
+
isDemo?: number;
|
|
602
|
+
isDeleted?: number;
|
|
603
|
+
name?: string;
|
|
604
|
+
logo?: string;
|
|
605
|
+
created?: string;
|
|
606
|
+
updated?: string;
|
|
607
|
+
}[];
|
|
608
|
+
}
|
|
609
|
+
export interface CreateTaskObjectLinkParams {
|
|
610
|
+
/** 关联内容信息。 */
|
|
611
|
+
linkedData?: unknown;
|
|
612
|
+
}
|
|
613
|
+
export interface CreateTaskObjectLinkResponse {
|
|
614
|
+
result?: {
|
|
615
|
+
created?: string;
|
|
616
|
+
objectLinkId?: string;
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
export interface CreateTaskParams {
|
|
620
|
+
/** 项目id。 */
|
|
621
|
+
projectId: string;
|
|
622
|
+
/** 任务标题。 */
|
|
623
|
+
content: string;
|
|
624
|
+
/** 任务执行者userId。 */
|
|
625
|
+
executorId?: string;
|
|
626
|
+
/** 任务截止时间,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */
|
|
627
|
+
dueDate?: string;
|
|
628
|
+
/** 任务备注。 */
|
|
629
|
+
note?: string;
|
|
630
|
+
/** 任务优先级。 */
|
|
631
|
+
priority?: number;
|
|
632
|
+
/** 自定义业务字段。 */
|
|
633
|
+
customfields?: object[];
|
|
634
|
+
/** 任务列表ID。 */
|
|
635
|
+
stageId?: string;
|
|
636
|
+
/** 父任务id。 */
|
|
637
|
+
parentTaskId?: string;
|
|
638
|
+
/** 任务类型id,任务类型比如:缺陷、需求。 */
|
|
639
|
+
scenariofieldconfigId?: string;
|
|
640
|
+
/** 任务开始时间,iso8601格式,例如:2022-07-29T14:55Z。 */
|
|
641
|
+
startDate?: string;
|
|
642
|
+
/** 任务的可见性规则。 */
|
|
643
|
+
visible?: string;
|
|
644
|
+
}
|
|
645
|
+
export interface CreateTaskResponse {
|
|
646
|
+
result?: {
|
|
647
|
+
taskId?: string;
|
|
648
|
+
content?: string;
|
|
649
|
+
involveMembers?: number;
|
|
650
|
+
projectId?: string;
|
|
651
|
+
executorId?: string;
|
|
652
|
+
creatorId?: string;
|
|
653
|
+
created?: string;
|
|
654
|
+
updated?: string;
|
|
655
|
+
note?: string;
|
|
656
|
+
dueDate?: string;
|
|
657
|
+
priority?: number;
|
|
658
|
+
customfields?: number;
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
export interface GetOrganizatioTaskByIdsQuery {
|
|
662
|
+
/** 任务id列表,建议不超过20个,多个任务id之间使用`,`分开。 */
|
|
663
|
+
taskIds: string;
|
|
664
|
+
}
|
|
665
|
+
export interface GetOrganizatioTaskByIdsResponse {
|
|
666
|
+
result?: {
|
|
667
|
+
note?: string;
|
|
668
|
+
visible?: string;
|
|
669
|
+
executorId?: string;
|
|
670
|
+
created?: string;
|
|
671
|
+
dueDate?: string;
|
|
672
|
+
creatorId?: string;
|
|
673
|
+
involveMembers?: number;
|
|
674
|
+
priority?: number;
|
|
675
|
+
isDone?: number;
|
|
676
|
+
content?: string;
|
|
677
|
+
labels?: number;
|
|
678
|
+
isDeleted?: number;
|
|
679
|
+
ancestorIds?: number;
|
|
680
|
+
taskId?: string;
|
|
681
|
+
updated?: string;
|
|
682
|
+
startDate?: string;
|
|
683
|
+
}[];
|
|
684
|
+
}
|
|
685
|
+
export interface UpdateOrganizationTaskPriorityParams {
|
|
686
|
+
/** 自由任务优先级。 */
|
|
687
|
+
priority: number;
|
|
688
|
+
/** 是否禁止动态。 */
|
|
689
|
+
disableActivity?: unknown;
|
|
690
|
+
/** 是否禁止通知。 */
|
|
691
|
+
disableNotification?: unknown;
|
|
692
|
+
}
|
|
693
|
+
export interface UpdateOrganizationTaskPriorityResponse {
|
|
694
|
+
result?: {
|
|
695
|
+
priority?: number;
|
|
696
|
+
updated?: string;
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
export interface UpdateOrganizationTaskNoteParams {
|
|
700
|
+
/** 任务备注。 */
|
|
701
|
+
note: string;
|
|
702
|
+
/** 是否禁止动态。 */
|
|
703
|
+
disableActivity?: unknown;
|
|
704
|
+
/** 是否禁止通知。 */
|
|
705
|
+
disableNotification?: unknown;
|
|
706
|
+
}
|
|
707
|
+
export interface UpdateOrganizationTaskNoteResponse {
|
|
708
|
+
result?: {
|
|
709
|
+
note?: string;
|
|
710
|
+
updated?: string;
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
export interface UpdateOrganizationTaskInvolveMembersParams {
|
|
714
|
+
/** 所有参与者userId列表,建议参与者总人数不超过20个。 */
|
|
715
|
+
involveMembers?: string[];
|
|
716
|
+
/** 增加的参与者userId列表,建议参与者总人数不超过20个。 */
|
|
717
|
+
addInvolvers?: string[];
|
|
718
|
+
/** 删除的参与者userId列表。 */
|
|
719
|
+
delInvolvers?: string[];
|
|
720
|
+
/** 是否禁止动态。 */
|
|
721
|
+
disableActivity?: unknown;
|
|
722
|
+
/** 是否禁止通知。 */
|
|
723
|
+
disableNotification?: unknown;
|
|
724
|
+
}
|
|
725
|
+
export interface UpdateOrganizationTaskInvolveMembersResponse {
|
|
726
|
+
result?: {
|
|
727
|
+
involvers?: number;
|
|
728
|
+
updated?: string;
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
export interface UpdateOrganizationTaskExecutorParams {
|
|
732
|
+
/** 任务执行者userId。 */
|
|
733
|
+
executorId: string;
|
|
734
|
+
/** 是否禁止动态。 */
|
|
735
|
+
disableActivity?: unknown;
|
|
736
|
+
/** 是否禁止通知。 */
|
|
737
|
+
disableNotification?: unknown;
|
|
738
|
+
}
|
|
739
|
+
export interface UpdateOrganizationTaskExecutorResponse {
|
|
740
|
+
result?: {
|
|
741
|
+
executorId?: string;
|
|
742
|
+
updated?: string;
|
|
743
|
+
executor?: number;
|
|
744
|
+
involvers?: number;
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
export interface UpdateOrganizationTaskDueDateParams {
|
|
748
|
+
/** 任务截止时间,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */
|
|
749
|
+
dueDate: string;
|
|
750
|
+
/** 是否禁止动态。 */
|
|
751
|
+
disableActivity?: unknown;
|
|
752
|
+
/** 是否禁止通知。 */
|
|
753
|
+
disableNotification?: unknown;
|
|
754
|
+
}
|
|
755
|
+
export interface UpdateOrganizationTaskDueDateResponse {
|
|
756
|
+
result?: {
|
|
757
|
+
dueDate?: string;
|
|
758
|
+
updateTime?: string;
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
export interface UpdateOrganizationTaskContentParams {
|
|
762
|
+
/** 任务标题。 */
|
|
763
|
+
content: string;
|
|
764
|
+
/** 是否禁止动态。 */
|
|
765
|
+
disableActivity?: unknown;
|
|
766
|
+
/** 是否禁止通知。 */
|
|
767
|
+
disableNotification?: unknown;
|
|
768
|
+
}
|
|
769
|
+
export interface UpdateOrganizationTaskContentResponse {
|
|
770
|
+
result?: {
|
|
771
|
+
content?: string;
|
|
772
|
+
updated?: string;
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
export interface UpdateOrganizationTaskStatusParams {
|
|
776
|
+
/** 自由任务状态。 */
|
|
777
|
+
isDone: unknown;
|
|
778
|
+
/** 是否禁止动态。 */
|
|
779
|
+
disableActivity?: unknown;
|
|
780
|
+
/** 是否禁止通知。 */
|
|
781
|
+
disableNotification?: unknown;
|
|
782
|
+
}
|
|
783
|
+
export interface UpdateOrganizationTaskStatusResponse {
|
|
784
|
+
result?: {
|
|
785
|
+
isDone?: number;
|
|
786
|
+
updateTime?: string;
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
export interface GetOrganizationPriorityListResponse {
|
|
790
|
+
result?: {
|
|
791
|
+
color?: string;
|
|
792
|
+
name?: string;
|
|
793
|
+
priorityId?: string;
|
|
794
|
+
priority?: string;
|
|
795
|
+
}[];
|
|
796
|
+
}
|
|
797
|
+
export interface GetOrganizationTaskResponse {
|
|
798
|
+
result?: {
|
|
799
|
+
note?: string;
|
|
800
|
+
visible?: string;
|
|
801
|
+
executorId?: string;
|
|
802
|
+
created?: string;
|
|
803
|
+
dueDate?: string;
|
|
804
|
+
creatorId?: string;
|
|
805
|
+
involveMembers?: number;
|
|
806
|
+
priority?: number;
|
|
807
|
+
isDone?: number;
|
|
808
|
+
content?: string;
|
|
809
|
+
labels?: number;
|
|
810
|
+
isDeleted?: number;
|
|
811
|
+
ancestorIds?: number;
|
|
812
|
+
taskId?: string;
|
|
813
|
+
updated?: string;
|
|
814
|
+
startDate?: string;
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
export interface DeleteTaskResponse {
|
|
818
|
+
result?: unknown;
|
|
819
|
+
}
|
|
820
|
+
export interface CreateOrganizationTaskParams {
|
|
821
|
+
/** 任务标题。 */
|
|
822
|
+
content: string;
|
|
823
|
+
/** 任务备注。 */
|
|
824
|
+
note?: string;
|
|
825
|
+
/** 自由任务优先级,如下图所示。用户是否有自定义更新优先级,获取该参数方法不同。 */
|
|
826
|
+
priority: number;
|
|
827
|
+
/** 参与者userId列表,建议参与者总人数不超过20个。 */
|
|
828
|
+
involveMembers?: string[];
|
|
829
|
+
/** 执行者userId。 */
|
|
830
|
+
executorId?: string;
|
|
831
|
+
/** 任务截止日期,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */
|
|
832
|
+
dueDate?: string;
|
|
833
|
+
/** 任务创建日期,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */
|
|
834
|
+
createTime?: string;
|
|
835
|
+
/** 任务可见性。 */
|
|
836
|
+
visible: string;
|
|
837
|
+
/** 是否禁止通知。 */
|
|
838
|
+
disableNotification?: unknown;
|
|
839
|
+
/** 是否禁止动态。 */
|
|
840
|
+
disableActivity?: unknown;
|
|
841
|
+
}
|
|
842
|
+
export interface CreateOrganizationTaskResponse {
|
|
843
|
+
result?: {
|
|
844
|
+
dueDate?: string;
|
|
845
|
+
executor?: number;
|
|
846
|
+
id?: string;
|
|
847
|
+
visible?: string;
|
|
848
|
+
created?: string;
|
|
849
|
+
priority?: number;
|
|
850
|
+
involvers?: number;
|
|
851
|
+
updated?: string;
|
|
852
|
+
note?: string;
|
|
853
|
+
hasReminder?: number;
|
|
854
|
+
creatorId?: string;
|
|
855
|
+
content?: string;
|
|
856
|
+
attachmentsCount?: number;
|
|
857
|
+
isDeleted?: number;
|
|
858
|
+
ancestorIds?: number;
|
|
859
|
+
creator?: number;
|
|
860
|
+
executorId?: string;
|
|
861
|
+
involveMembers?: number;
|
|
862
|
+
isDone?: string;
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
declare module '../internal' {
|
|
866
|
+
interface Internal {
|
|
867
|
+
/**
|
|
868
|
+
* 创建或更新项目概览中自定义字段值
|
|
869
|
+
* @see https://developers.dingtalk.com/document/orgapp/create-project-custom-fields
|
|
870
|
+
*/
|
|
871
|
+
createProjectCustomfieldStatus(userId: string, projectId: string, params: CreateProjectCustomfieldStatusParams): Promise<CreateProjectCustomfieldStatusResponse>;
|
|
872
|
+
/**
|
|
873
|
+
* 更新任务标题
|
|
874
|
+
* @see https://developers.dingtalk.com/document/orgapp/update-task-content
|
|
875
|
+
*/
|
|
876
|
+
updateTaskContent(userId: string, taskId: string, params: UpdateTaskContentParams): Promise<UpdateTaskContentResponse>;
|
|
877
|
+
/**
|
|
878
|
+
* 更新任务备注
|
|
879
|
+
* @see https://developers.dingtalk.com/document/orgapp/update-task-notes
|
|
880
|
+
*/
|
|
881
|
+
updateTaskNote(userId: string, taskId: string, params: UpdateTaskNoteParams): Promise<UpdateTaskNoteResponse>;
|
|
882
|
+
/**
|
|
883
|
+
* 更新任务参与者
|
|
884
|
+
* @see https://developers.dingtalk.com/document/orgapp/update-task-participants
|
|
885
|
+
*/
|
|
886
|
+
updateTaskInvolvemembers(userId: string, taskId: string, params: UpdateTaskInvolvemembersParams): Promise<UpdateTaskInvolvemembersResponse>;
|
|
887
|
+
/**
|
|
888
|
+
* 更新任务执行者
|
|
889
|
+
* @see https://developers.dingtalk.com/document/orgapp/update-task-performer
|
|
890
|
+
*/
|
|
891
|
+
updateTaskExecutor(userId: string, taskId: string, params: UpdateTaskExecutorParams): Promise<UpdateTaskExecutorResponse>;
|
|
892
|
+
/**
|
|
893
|
+
* 更新任务优先级
|
|
894
|
+
* @see https://developers.dingtalk.com/document/orgapp/update-task-priority
|
|
895
|
+
*/
|
|
896
|
+
updateTaskPriority(userId: string, taskId: string, params: UpdateTaskPriorityParams): Promise<UpdateTaskPriorityResponse>;
|
|
897
|
+
/**
|
|
898
|
+
* 更新任务截止时间
|
|
899
|
+
* @see https://developers.dingtalk.com/document/orgapp/update-task-deadline
|
|
900
|
+
*/
|
|
901
|
+
updateTaskDueDate(userId: string, taskId: string, params: UpdateTaskDueDateParams): Promise<UpdateTaskDueDateResponse>;
|
|
902
|
+
/**
|
|
903
|
+
* 获取任务详情
|
|
904
|
+
* @see https://developers.dingtalk.com/document/orgapp/get-task-details
|
|
905
|
+
*/
|
|
906
|
+
getTaskByIds(userId: string, query: GetTaskByIdsQuery): Promise<GetTaskByIdsResponse>;
|
|
907
|
+
/**
|
|
908
|
+
* 任务迁移至回收站
|
|
909
|
+
* @see https://developers.dingtalk.com/document/orgapp/archive-tasks
|
|
910
|
+
*/
|
|
911
|
+
archiveTask(userId: string, taskId: string): Promise<ArchiveTaskResponse>;
|
|
912
|
+
/**
|
|
913
|
+
* 查询用户任务列表
|
|
914
|
+
* @see https://developers.dingtalk.com/document/orgapp/querying-user-tasks
|
|
915
|
+
*/
|
|
916
|
+
searchUserTask(userId: string, query: SearchUserTaskQuery): Promise<SearchUserTaskResponse>;
|
|
917
|
+
/**
|
|
918
|
+
* 获取任务列表
|
|
919
|
+
* @see https://developers.dingtalk.com/document/orgapp/get-task-list
|
|
920
|
+
*/
|
|
921
|
+
seachTaskStage(userId: string, projectId: string, query: SeachTaskStageQuery): Promise<SeachTaskStageResponse>;
|
|
922
|
+
/**
|
|
923
|
+
* 查询任务分组
|
|
924
|
+
* @see https://developers.dingtalk.com/document/orgapp/query-task-grouping
|
|
925
|
+
*/
|
|
926
|
+
searchTaskList(userId: string, projectId: string, query: SearchTaskListQuery): Promise<SearchTaskListResponse>;
|
|
927
|
+
/**
|
|
928
|
+
* 查询任务工作流
|
|
929
|
+
* @see https://developers.dingtalk.com/document/orgapp/query-task-workflow
|
|
930
|
+
*/
|
|
931
|
+
searchTaskFlow(userId: string, projectId: string, query: SearchTaskFlowQuery): Promise<SearchTaskFlowResponse>;
|
|
932
|
+
/**
|
|
933
|
+
* 查询项目状态
|
|
934
|
+
* @see https://developers.dingtalk.com/document/orgapp/query-project-status
|
|
935
|
+
*/
|
|
936
|
+
getProjectStatusList(userId: string, projectId: string): Promise<GetProjectStatusListResponse>;
|
|
937
|
+
/**
|
|
938
|
+
* 删除项目成员
|
|
939
|
+
* @see https://developers.dingtalk.com/document/orgapp/delete-project-members
|
|
940
|
+
*/
|
|
941
|
+
deleteProjectMember(userId: string, projectId: string, params: DeleteProjectMemberParams): Promise<DeleteProjectMemberResponse>;
|
|
942
|
+
/**
|
|
943
|
+
* 获取项目成员
|
|
944
|
+
* @see https://developers.dingtalk.com/document/orgapp/get-project-members
|
|
945
|
+
*/
|
|
946
|
+
getProjectMemebers(userId: string, projectId: string, query: GetProjectMemebersQuery): Promise<GetProjectMemebersResponse>;
|
|
947
|
+
/**
|
|
948
|
+
* 查询项目
|
|
949
|
+
* @see https://developers.dingtalk.com/document/orgapp/query-enterprise-all-projects
|
|
950
|
+
*/
|
|
951
|
+
queryProject(userId: string, query: QueryProjectQuery): Promise<QueryProjectResponse>;
|
|
952
|
+
/**
|
|
953
|
+
* 搜索任务工作流状态
|
|
954
|
+
* @see https://developers.dingtalk.com/document/isvapp/search-task-workflow-status
|
|
955
|
+
*/
|
|
956
|
+
searchTaskflowStatus(userId: string, projectId: string, query: SearchTaskflowStatusQuery): Promise<SearchTaskflowStatusResponse>;
|
|
957
|
+
/**
|
|
958
|
+
* 更新任务工作流状态
|
|
959
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-task-workflow-status
|
|
960
|
+
*/
|
|
961
|
+
updateTaskTaskflowstatus(userId: string, taskId: string, params: UpdateTaskTaskflowstatusParams): Promise<UpdateTaskTaskflowstatusResponse>;
|
|
962
|
+
/**
|
|
963
|
+
* 更新任务开始时间
|
|
964
|
+
* @see https://developers.dingtalk.com/document/orgapp/update-task-start-time
|
|
965
|
+
*/
|
|
966
|
+
updateTaskStartdate(userId: string, taskId: string, params: UpdateTaskStartdateParams): Promise<UpdateTaskStartdateResponse>;
|
|
967
|
+
/**
|
|
968
|
+
* 创建项目
|
|
969
|
+
* @see https://developers.dingtalk.com/document/orgapp/create-project
|
|
970
|
+
*/
|
|
971
|
+
createProject(userId: string, params: CreateProjectParams): Promise<CreateProjectResponse>;
|
|
972
|
+
/**
|
|
973
|
+
* 获取用户加入的项目
|
|
974
|
+
* @see https://developers.dingtalk.com/document/orgapp/get-projects-joined-by-users
|
|
975
|
+
*/
|
|
976
|
+
getUserJoinedProject(userId: string, query: GetUserJoinedProjectQuery): Promise<GetUserJoinedProjectResponse>;
|
|
977
|
+
/**
|
|
978
|
+
* 项目放入回收站
|
|
979
|
+
* @see https://developers.dingtalk.com/document/orgapp/items-in-recycle-bin
|
|
980
|
+
*/
|
|
981
|
+
archiveProject(userId: string, projectId: string): Promise<ArchiveProjectResponse>;
|
|
982
|
+
/**
|
|
983
|
+
* 恢复项目归档
|
|
984
|
+
* @see https://developers.dingtalk.com/document/orgapp/cancel-project-archiving
|
|
985
|
+
*/
|
|
986
|
+
unSuspendProject(projectId: string, userId: string): Promise<UnSuspendProjectResponse>;
|
|
987
|
+
/**
|
|
988
|
+
* 归档项目
|
|
989
|
+
* @see https://developers.dingtalk.com/document/orgapp/archiving-project
|
|
990
|
+
*/
|
|
991
|
+
suspendProject(projectId: string, userId: string): Promise<SuspendProjectResponse>;
|
|
992
|
+
/**
|
|
993
|
+
* 查询项目中的任务
|
|
994
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-tasks-in-a-project
|
|
995
|
+
*/
|
|
996
|
+
queryTaskOfProject(userId: string, projectId: string, query: QueryTaskOfProjectQuery): Promise<QueryTaskOfProjectResponse>;
|
|
997
|
+
/**
|
|
998
|
+
* 录入实际工时接口
|
|
999
|
+
* @see https://developers.dingtalk.com/document/isvapp/create-actual-work
|
|
1000
|
+
*/
|
|
1001
|
+
createWorkTime(userId: string, query: CreateWorkTimeQuery, params: CreateWorkTimeParams): Promise<CreateWorkTimeResponse>;
|
|
1002
|
+
/**
|
|
1003
|
+
* 录入计划工时
|
|
1004
|
+
* @see https://developers.dingtalk.com/document/isvapp/create-planned-work
|
|
1005
|
+
*/
|
|
1006
|
+
createPlanTime(userId: string, query: CreatePlanTimeQuery, params: CreatePlanTimeParams): Promise<CreatePlanTimeResponse>;
|
|
1007
|
+
/**
|
|
1008
|
+
* 更新任务自定义字段的值
|
|
1009
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-task-custom-field-value
|
|
1010
|
+
*/
|
|
1011
|
+
updateCustomfieldValue(userId: string, taskId: string, params: UpdateCustomfieldValueParams): Promise<UpdateCustomfieldValueResponse>;
|
|
1012
|
+
/**
|
|
1013
|
+
* 根据钉钉UserId获取Teambition用户Id
|
|
1014
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-dingtalk-teambition-user-id-based-on-userid
|
|
1015
|
+
*/
|
|
1016
|
+
getTbUserIdByStaffId(query: GetTbUserIdByStaffIdQuery): Promise<GetTbUserIdByStaffIdResponse>;
|
|
1017
|
+
/**
|
|
1018
|
+
* 获取Teambition企业Id
|
|
1019
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-the-teambition-enterprise-id
|
|
1020
|
+
*/
|
|
1021
|
+
getTbOrgIdByDingOrgId(query: GetTbOrgIdByDingOrgIdQuery): Promise<GetTbOrgIdByDingOrgIdResponse>;
|
|
1022
|
+
/**
|
|
1023
|
+
* 更新项目的分组
|
|
1024
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-project-grouping
|
|
1025
|
+
*/
|
|
1026
|
+
updateProjectGroup(userId: string, projectId: string, params: UpdateProjectGroupParams): Promise<UpdateProjectGroupResponse>;
|
|
1027
|
+
/**
|
|
1028
|
+
* 增加项目成员
|
|
1029
|
+
* @see https://developers.dingtalk.com/document/isvapp/add-project-members
|
|
1030
|
+
*/
|
|
1031
|
+
addProjectMember(userId: string, projectId: string, params: AddProjectMemberParams): Promise<AddProjectMemberResponse>;
|
|
1032
|
+
/**
|
|
1033
|
+
* 根据项目模板创建项目
|
|
1034
|
+
* @see https://developers.dingtalk.com/document/isvapp/create-a-project-from-a-project-template
|
|
1035
|
+
*/
|
|
1036
|
+
createProjectByTemplate(userId: string, params: CreateProjectByTemplateParams): Promise<CreateProjectByTemplateResponse>;
|
|
1037
|
+
/**
|
|
1038
|
+
* 查询可见的项目分组
|
|
1039
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-available-project-groups
|
|
1040
|
+
*/
|
|
1041
|
+
getProjectGroup(userId: string, query: GetProjectGroupQuery): Promise<GetProjectGroupResponse>;
|
|
1042
|
+
/**
|
|
1043
|
+
* 按项目模板名字搜索企业自定义模板
|
|
1044
|
+
* @see https://developers.dingtalk.com/document/isvapp/search-for-enterprise-custom-templates-by-project-template-name
|
|
1045
|
+
*/
|
|
1046
|
+
searchProjectTemplate(userId: string, query: SearchProjectTemplateQuery): Promise<SearchProjectTemplateResponse>;
|
|
1047
|
+
/**
|
|
1048
|
+
* 创建任务关联对象
|
|
1049
|
+
* @see https://developers.dingtalk.com/document/isvapp/create-a-linked-object-associated-with-a-task
|
|
1050
|
+
*/
|
|
1051
|
+
createTaskObjectLink(userId: string, taskId: string, params: CreateTaskObjectLinkParams): Promise<CreateTaskObjectLinkResponse>;
|
|
1052
|
+
/**
|
|
1053
|
+
* 创建项目任务
|
|
1054
|
+
* @see https://developers.dingtalk.com/document/isvapp/create-a-project-task
|
|
1055
|
+
*/
|
|
1056
|
+
createTask(userId: string, params: CreateTaskParams): Promise<CreateTaskResponse>;
|
|
1057
|
+
/**
|
|
1058
|
+
* 批量获取任务详情
|
|
1059
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtains-details-about-multiple-free-tasks-isv
|
|
1060
|
+
*/
|
|
1061
|
+
getOrganizatioTaskByIds(userId: string, query: GetOrganizatioTaskByIdsQuery): Promise<GetOrganizatioTaskByIdsResponse>;
|
|
1062
|
+
/**
|
|
1063
|
+
* 更新自由任务优先级
|
|
1064
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-the-priority-of-a-free-migration-job
|
|
1065
|
+
*/
|
|
1066
|
+
updateOrganizationTaskPriority(taskId: string, userId: string, params: UpdateOrganizationTaskPriorityParams): Promise<UpdateOrganizationTaskPriorityResponse>;
|
|
1067
|
+
/**
|
|
1068
|
+
* 更改自由任务备注
|
|
1069
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-free-task-notes-isv
|
|
1070
|
+
*/
|
|
1071
|
+
updateOrganizationTaskNote(taskId: string, userId: string, params: UpdateOrganizationTaskNoteParams): Promise<UpdateOrganizationTaskNoteResponse>;
|
|
1072
|
+
/**
|
|
1073
|
+
* 更新自由任务参与者
|
|
1074
|
+
* @see https://developers.dingtalk.com/document/isvapp/add-or-remove-participants-of-free-tasks
|
|
1075
|
+
*/
|
|
1076
|
+
updateOrganizationTaskInvolveMembers(taskId: string, userId: string, params: UpdateOrganizationTaskInvolveMembersParams): Promise<UpdateOrganizationTaskInvolveMembersResponse>;
|
|
1077
|
+
/**
|
|
1078
|
+
* 更改自由任务执行者
|
|
1079
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-free-task-executor
|
|
1080
|
+
*/
|
|
1081
|
+
updateOrganizationTaskExecutor(taskId: string, userId: string, params: UpdateOrganizationTaskExecutorParams): Promise<UpdateOrganizationTaskExecutorResponse>;
|
|
1082
|
+
/**
|
|
1083
|
+
* 更新自由任务截止时间
|
|
1084
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-free-task-deadline
|
|
1085
|
+
*/
|
|
1086
|
+
updateOrganizationTaskDueDate(taskId: string, userId: string, params: UpdateOrganizationTaskDueDateParams): Promise<UpdateOrganizationTaskDueDateResponse>;
|
|
1087
|
+
/**
|
|
1088
|
+
* 更改自由任务标题
|
|
1089
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-free-task-title
|
|
1090
|
+
*/
|
|
1091
|
+
updateOrganizationTaskContent(taskId: string, userId: string, params: UpdateOrganizationTaskContentParams): Promise<UpdateOrganizationTaskContentResponse>;
|
|
1092
|
+
/**
|
|
1093
|
+
* 更改自由任务状态
|
|
1094
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-free-task-status
|
|
1095
|
+
*/
|
|
1096
|
+
updateOrganizationTaskStatus(taskId: string, userId: string, params: UpdateOrganizationTaskStatusParams): Promise<UpdateOrganizationTaskStatusResponse>;
|
|
1097
|
+
/**
|
|
1098
|
+
* 获取企业优先级列表
|
|
1099
|
+
* @see https://developers.dingtalk.com/document/isvapp/query-a-priority-list-isv
|
|
1100
|
+
*/
|
|
1101
|
+
getOrganizationPriorityList(userId: string): Promise<GetOrganizationPriorityListResponse>;
|
|
1102
|
+
/**
|
|
1103
|
+
* 获取自由任务详情
|
|
1104
|
+
* @see https://developers.dingtalk.com/document/isvapp/queries-free-task-details-isv
|
|
1105
|
+
*/
|
|
1106
|
+
getOrganizationTask(taskId: string, userId: string): Promise<GetOrganizationTaskResponse>;
|
|
1107
|
+
/**
|
|
1108
|
+
* 删除任务
|
|
1109
|
+
* @see https://developers.dingtalk.com/document/orgapp/delete-task
|
|
1110
|
+
*/
|
|
1111
|
+
deleteTask(userId: string, taskId: string): Promise<DeleteTaskResponse>;
|
|
1112
|
+
/**
|
|
1113
|
+
* 创建自由任务
|
|
1114
|
+
* @see https://developers.dingtalk.com/document/isvapp/create-a-free-task-isv
|
|
1115
|
+
*/
|
|
1116
|
+
createOrganizationTask(userId: string, params: CreateOrganizationTaskParams): Promise<CreateOrganizationTaskResponse>;
|
|
1117
|
+
}
|
|
1118
|
+
}
|