@satorijs/adapter-dingtalk 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/api/alitrip.d.ts +396 -0
  2. package/lib/api/attendance.d.ts +62 -0
  3. package/lib/api/badge.d.ts +232 -0
  4. package/lib/api/blackboard.d.ts +16 -0
  5. package/lib/api/calendar.d.ts +620 -0
  6. package/lib/api/card.d.ts +184 -0
  7. package/lib/api/conference.d.ts +403 -0
  8. package/lib/api/connector.d.ts +78 -0
  9. package/lib/api/contact.d.ts +39 -0
  10. package/lib/api/convFile.d.ts +134 -0
  11. package/lib/api/crm.d.ts +661 -0
  12. package/lib/api/customerService.d.ts +127 -0
  13. package/lib/api/datacenter.d.ts +505 -0
  14. package/lib/api/devicemng.d.ts +160 -0
  15. package/lib/api/diot.d.ts +12 -0
  16. package/lib/api/doc.d.ts +140 -0
  17. package/lib/api/drive.d.ts +87 -0
  18. package/lib/api/edu.d.ts +22 -0
  19. package/lib/api/esign.d.ts +33 -0
  20. package/lib/api/exclusive.d.ts +303 -0
  21. package/lib/api/h3yun.d.ts +437 -0
  22. package/lib/api/hrm.d.ts +214 -0
  23. package/lib/api/im.d.ts +772 -0
  24. package/lib/api/industry.d.ts +117 -0
  25. package/lib/api/jzcrm.d.ts +254 -0
  26. package/lib/api/link.d.ts +72 -0
  27. package/lib/api/live.d.ts +131 -0
  28. package/lib/api/microApp.d.ts +239 -0
  29. package/lib/api/oapi.d.ts +3361 -0
  30. package/lib/api/oauth2.d.ts +114 -0
  31. package/lib/api/pedia.d.ts +185 -0
  32. package/lib/api/project.d.ts +1118 -0
  33. package/lib/api/resident.d.ts +106 -0
  34. package/lib/api/robot.d.ts +255 -0
  35. package/lib/api/rooms.d.ts +255 -0
  36. package/lib/api/serviceGroup.d.ts +175 -0
  37. package/lib/api/storage.d.ts +1240 -0
  38. package/lib/api/swform.d.ts +70 -0
  39. package/lib/api/todo.d.ts +168 -0
  40. package/lib/api/wiki.d.ts +194 -0
  41. package/lib/api/workbench.d.ts +45 -0
  42. package/lib/api/yida.d.ts +1837 -0
  43. package/lib/bot.d.ts +30 -0
  44. package/lib/http.d.ts +7 -0
  45. package/lib/index.d.ts +7 -0
  46. package/lib/index.js +1814 -0
  47. package/lib/index.js.map +7 -0
  48. package/lib/internal.d.ts +7 -0
  49. package/lib/message.d.ts +17 -0
  50. package/lib/types/index.d.ts +133 -0
  51. package/lib/utils.d.ts +4 -0
  52. package/lib/ws.d.ts +12 -0
  53. package/package.json +31 -0
@@ -0,0 +1,437 @@
1
+ export interface GetUploadUrlQuery {
2
+ /** 表单编码。 */
3
+ schemaCode: string;
4
+ /** 业务数据实例ID。 */
5
+ bizObjectId: string;
6
+ /** 文件上传至目标控件的字段名。 */
7
+ fieldName: string;
8
+ /** 是否覆盖,取值: */
9
+ isOverwrite: unknown;
10
+ }
11
+ export interface GetUploadUrlResponse {
12
+ code: string;
13
+ message: string;
14
+ data?: {
15
+ uploadUrl?: string;
16
+ };
17
+ }
18
+ export interface QueryAppFunctionNodesQuery {
19
+ /** 应用编码。 */
20
+ appCode: string;
21
+ }
22
+ export interface QueryAppFunctionNodesResponse {
23
+ code: string;
24
+ message: string;
25
+ data?: {
26
+ schemaCode?: string;
27
+ appCode?: string;
28
+ parentCode?: string;
29
+ displayName?: string;
30
+ nodeVisibleType?: string;
31
+ nodeType?: string;
32
+ state?: string;
33
+ sortKey?: number;
34
+ isSystem?: number;
35
+ }[];
36
+ }
37
+ export interface CreateProcessesInstanceParams {
38
+ /** 流程表单编码。 */
39
+ schemaCode: string;
40
+ /** 业务数据实例ID。 */
41
+ bizObjectId: string;
42
+ /** 操作者的ID。 */
43
+ opUserId: string;
44
+ }
45
+ export interface CreateProcessesInstanceResponse {
46
+ code: string;
47
+ message: string;
48
+ data?: {
49
+ processInstanceId?: string;
50
+ };
51
+ }
52
+ export interface DeleteProcessesInstanceQuery {
53
+ /** 流程实例ID。可以调用[查询流程实例](https://open.dingtalk.com/document/orgapp-server/query-flow-instances)接口获取。 */
54
+ processInstanceId: string;
55
+ /** 删除成功后,是否需要更新业务表单关联的流程实例ID。 */
56
+ isAutoUpdateBizObject: unknown;
57
+ }
58
+ export interface DeleteProcessesInstanceResponse {
59
+ code: string;
60
+ message: string;
61
+ }
62
+ export interface LoadBizFieldsQuery {
63
+ /** 表单编码。 */
64
+ schemaCode: string;
65
+ }
66
+ export interface LoadBizFieldsResponse {
67
+ code: string;
68
+ message: string;
69
+ data?: {
70
+ schemaCode?: string;
71
+ formName?: string;
72
+ fields?: number;
73
+ childForms?: number;
74
+ };
75
+ }
76
+ export interface QueryProcessesWorkItemsQuery {
77
+ /** 流程实例ID。 */
78
+ processInstanceId: string;
79
+ }
80
+ export interface QueryProcessesWorkItemsResponse {
81
+ code: string;
82
+ message: string;
83
+ data?: {
84
+ workItemId?: string;
85
+ workItemType?: string;
86
+ processInstanceId?: string;
87
+ appCode?: string;
88
+ schemaCode?: string;
89
+ bizObjectId?: string;
90
+ processVersion?: string;
91
+ activityCode?: string;
92
+ activityName?: string;
93
+ displayName?: string;
94
+ state?: string;
95
+ isFinish?: number;
96
+ receiveTimeGMT?: string;
97
+ startTimeGMT?: string;
98
+ finishTimeGMT?: string;
99
+ comment?: string;
100
+ isApproval?: number;
101
+ participant?: number;
102
+ finisher?: number;
103
+ receiptor?: number;
104
+ }[];
105
+ }
106
+ export interface BatchInsertBizObjectParams {
107
+ /** 表单编码。 */
108
+ schemaCode: string;
109
+ /** 操作用户ID。 */
110
+ opUserId: string;
111
+ /** 待新增的业对象json数组。JSON数组的key只可以调用[获取表单对象结构](https://open.dingtalk.com/document/orgapp-server/gets-the-form-object-structure)接口获取。 */
112
+ bizObjectJsonArray: string[];
113
+ /** 是否是草稿,取值: */
114
+ isDraft: unknown;
115
+ }
116
+ export interface BatchInsertBizObjectResponse {
117
+ code: string;
118
+ message: string;
119
+ data?: {
120
+ bizObjectIds?: number;
121
+ processIds?: number;
122
+ failedDatas?: number;
123
+ failedMessages?: number;
124
+ };
125
+ }
126
+ export interface DeleteBizObjectQuery {
127
+ /** 表单编码。 */
128
+ schemaCode: string;
129
+ /** 业务数据ID。 */
130
+ bizObjectId: string;
131
+ }
132
+ export interface DeleteBizObjectResponse {
133
+ code: string;
134
+ message: string;
135
+ }
136
+ export interface CancelProcessInstanceParams {
137
+ /** 流程实例ID。可以调用[查询流程实例](https://open.dingtalk.com/document/orgapp-server/query-flow-instances)接口获取。 */
138
+ processInstanceId: string;
139
+ }
140
+ export interface CancelProcessInstanceResponse {
141
+ code: string;
142
+ message: string;
143
+ }
144
+ export interface CreateBizObjectParams {
145
+ /** 表单编码。 */
146
+ schemaCode: string;
147
+ /** 操作用户ID。 */
148
+ opUserId: string;
149
+ /** json格式的业务数据。JSON数组的key只可以调用[获取表单对象结构](https://open.dingtalk.com/document/orgapp-server/gets-the-form-object-structure)接口获取。 */
150
+ bizObjectJson: string;
151
+ /** 是否是草稿,取值: */
152
+ isDraft: unknown;
153
+ }
154
+ export interface CreateBizObjectResponse {
155
+ code: string;
156
+ message: string;
157
+ data?: {
158
+ schemaCode?: string;
159
+ formUsageType?: string;
160
+ bizObjectId?: string;
161
+ processInstanceId?: string;
162
+ };
163
+ }
164
+ export interface QueryProcessesInstanceQuery {
165
+ /** 流程表单编码。 */
166
+ schemaCode: string;
167
+ /** 业务数据ID。 */
168
+ bizObjectId: string;
169
+ }
170
+ export interface QueryProcessesInstanceResponse {
171
+ code: string;
172
+ message: string;
173
+ data?: {
174
+ processInstanceId?: string;
175
+ dingTalkProcessId?: string;
176
+ processDisplayName?: string;
177
+ processVersion?: number;
178
+ schemaCode?: string;
179
+ bizObjectId?: string;
180
+ appCode?: string;
181
+ state?: string;
182
+ originator?: number;
183
+ createdTimeGMT?: string;
184
+ startTimeGMT?: string;
185
+ finishTimeGMT?: string;
186
+ }[];
187
+ }
188
+ export interface UpdateBizObjectParams {
189
+ /** 表单编码。 */
190
+ schemaCode: string;
191
+ /** 业务数据ID。 */
192
+ bizObjectId: string;
193
+ /** 待修改的json格式业务数据。 */
194
+ bizObjectJson: string;
195
+ }
196
+ export interface UpdateBizObjectResponse {
197
+ code: string;
198
+ message: string;
199
+ }
200
+ export interface LoadBizObjectQuery {
201
+ /** 表单编码或流程表单编码。 */
202
+ schemaCode: string;
203
+ /** 业务对象实例ID。 */
204
+ bizObjectId: string;
205
+ }
206
+ export interface LoadBizObjectResponse {
207
+ code: string;
208
+ message: string;
209
+ data?: unknown;
210
+ }
211
+ export interface LoadBizObjectsParams {
212
+ /** 表单编码。 */
213
+ schemaCode: string;
214
+ /** 分页页码。 */
215
+ pageNumber: number;
216
+ /** 分页页大小,最大值500。 */
217
+ pageSize: number;
218
+ /** 需要返回的字段名,仅支持传入主表的字段。 */
219
+ returnFields?: string[];
220
+ /** 排序字段结构列表。 */
221
+ sortByFields?: object[];
222
+ /** json格式的动态条件过滤器。 */
223
+ matcherJson?: string;
224
+ }
225
+ export interface LoadBizObjectsResponse {
226
+ code: string;
227
+ message: string;
228
+ data?: {
229
+ pageNumber?: number;
230
+ pageSize?: number;
231
+ totalCount?: number;
232
+ bizObjects?: number;
233
+ };
234
+ }
235
+ export interface GetAttachmentTemporaryUrlQuery {
236
+ /** 附件ID。 */
237
+ attachmentId: string;
238
+ }
239
+ export interface GetAttachmentTemporaryUrlResponse {
240
+ code: string;
241
+ message: string;
242
+ data?: {
243
+ attachmentUrl?: string;
244
+ };
245
+ }
246
+ export interface GetRoleUsersQuery {
247
+ /** 角色ID。 */
248
+ roleId: string;
249
+ }
250
+ export interface GetRoleUsersResponse {
251
+ code: string;
252
+ message: string;
253
+ data?: {
254
+ userId?: string;
255
+ name?: string;
256
+ code?: string;
257
+ sex?: string;
258
+ description?: string;
259
+ mobile?: string;
260
+ email?: string;
261
+ departmentId?: string;
262
+ departmentName?: string;
263
+ domainType?: string;
264
+ partDepartmentIds?: number;
265
+ sortKey?: number;
266
+ }[];
267
+ }
268
+ export interface GetRolesResponse {
269
+ code: string;
270
+ message: string;
271
+ data?: {
272
+ roleGroups?: number;
273
+ roles?: number;
274
+ };
275
+ }
276
+ export interface GetUsersQuery {
277
+ /** 部门ID。 */
278
+ departmentId: string;
279
+ /** 是否递归获取子级部门下的用户。 */
280
+ isRecursive?: unknown;
281
+ }
282
+ export interface GetUsersResponse {
283
+ code: string;
284
+ message: string;
285
+ data?: {
286
+ id?: string;
287
+ name?: string;
288
+ code?: string;
289
+ sex?: string;
290
+ description?: string;
291
+ mobile?: string;
292
+ email?: string;
293
+ departmentId?: string;
294
+ departmentName?: string;
295
+ domainType?: string;
296
+ partDepartmentIds?: number;
297
+ sortKey?: number;
298
+ }[];
299
+ }
300
+ export interface GetAppsParams {
301
+ /** 查询类型,取值: */
302
+ queryType: string;
303
+ /** 待查询条件数组。 */
304
+ values?: string[];
305
+ }
306
+ export interface GetAppsResponse {
307
+ code: string;
308
+ message: string;
309
+ data?: {
310
+ appCode?: string;
311
+ displayName?: string;
312
+ appSource?: string;
313
+ appState?: string;
314
+ solution?: string;
315
+ }[];
316
+ }
317
+ export interface GetOrganizationsQuery {
318
+ /** 部门ID。 */
319
+ departmentId?: string;
320
+ }
321
+ export interface GetOrganizationsResponse {
322
+ code: string;
323
+ message: string;
324
+ data?: {
325
+ id?: string;
326
+ parentId?: string;
327
+ name?: string;
328
+ code?: string;
329
+ unitType?: string;
330
+ sortKey?: number;
331
+ description?: string;
332
+ }[];
333
+ }
334
+ declare module '../internal' {
335
+ interface Internal {
336
+ /**
337
+ * 获取文件上传地址
338
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-the-upload-url-of-a-file-2
339
+ */
340
+ getUploadUrl(query: GetUploadUrlQuery): Promise<GetUploadUrlResponse>;
341
+ /**
342
+ * 获取应用功能节点
343
+ * @see https://developers.dingtalk.com/document/isvapp/queries-the-application-feature-nodes
344
+ */
345
+ queryAppFunctionNodes(query: QueryAppFunctionNodesQuery): Promise<QueryAppFunctionNodesResponse>;
346
+ /**
347
+ * 创建流程实例
348
+ * @see https://developers.dingtalk.com/document/isvapp/create-a-process-instance
349
+ */
350
+ createProcessesInstance(params: CreateProcessesInstanceParams): Promise<CreateProcessesInstanceResponse>;
351
+ /**
352
+ * 删除流程实例数据
353
+ * @see https://developers.dingtalk.com/document/isvapp/delete-process-instance-data
354
+ */
355
+ deleteProcessesInstance(query: DeleteProcessesInstanceQuery): Promise<DeleteProcessesInstanceResponse>;
356
+ /**
357
+ * 获取表单对象结构
358
+ * @see https://developers.dingtalk.com/document/isvapp/gets-the-form-object-structure
359
+ */
360
+ loadBizFields(query: LoadBizFieldsQuery): Promise<LoadBizFieldsResponse>;
361
+ /**
362
+ * 获取流程实例节点工作项
363
+ * @see https://developers.dingtalk.com/document/isvapp/query-flow-instance-node-work-items
364
+ */
365
+ queryProcessesWorkItems(query: QueryProcessesWorkItemsQuery): Promise<QueryProcessesWorkItemsResponse>;
366
+ /**
367
+ * 批量新增表单业务数据
368
+ * @see https://developers.dingtalk.com/document/isvapp/batch-add-form-business-data
369
+ */
370
+ batchInsertBizObject(params: BatchInsertBizObjectParams): Promise<BatchInsertBizObjectResponse>;
371
+ /**
372
+ * 删除业务对象
373
+ * @see https://developers.dingtalk.com/document/isvapp/delete-a-business-object
374
+ */
375
+ deleteBizObject(query: DeleteBizObjectQuery): Promise<DeleteBizObjectResponse>;
376
+ /**
377
+ * 取消流程实例
378
+ * @see https://developers.dingtalk.com/document/isvapp/cancel-a-process-instance
379
+ */
380
+ cancelProcessInstance(params: CancelProcessInstanceParams): Promise<CancelProcessInstanceResponse>;
381
+ /**
382
+ * 创建表单业务数据
383
+ * @see https://developers.dingtalk.com/document/isvapp/create-form-business-data
384
+ */
385
+ createBizObject(params: CreateBizObjectParams): Promise<CreateBizObjectResponse>;
386
+ /**
387
+ * 查询流程实例
388
+ * @see https://developers.dingtalk.com/document/isvapp/query-flow-instances
389
+ */
390
+ queryProcessesInstance(query: QueryProcessesInstanceQuery): Promise<QueryProcessesInstanceResponse>;
391
+ /**
392
+ * 修改表单业务对象数据
393
+ * @see https://developers.dingtalk.com/document/isvapp/modify-form-business-object-data
394
+ */
395
+ updateBizObject(params: UpdateBizObjectParams): Promise<UpdateBizObjectResponse>;
396
+ /**
397
+ * 获取业务实例信息
398
+ * @see https://developers.dingtalk.com/document/isvapp/queries-business-instance-information
399
+ */
400
+ loadBizObject(query: LoadBizObjectQuery): Promise<LoadBizObjectResponse>;
401
+ /**
402
+ * 查询表单业务数据列表
403
+ * @see https://developers.dingtalk.com/document/isvapp/querying-form-business-data
404
+ */
405
+ loadBizObjects(params: LoadBizObjectsParams): Promise<LoadBizObjectsResponse>;
406
+ /**
407
+ * 获取附件临时免登地址
408
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-the-temporary-attachment-free-address
409
+ */
410
+ getAttachmentTemporaryUrl(query: GetAttachmentTemporaryUrlQuery): Promise<GetAttachmentTemporaryUrlResponse>;
411
+ /**
412
+ * 获取角色用户数据
413
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-role-data-1
414
+ */
415
+ getRoleUsers(query: GetRoleUsersQuery): Promise<GetRoleUsersResponse>;
416
+ /**
417
+ * 获取角色数据
418
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-role-data
419
+ */
420
+ getRoles(): Promise<GetRolesResponse>;
421
+ /**
422
+ * 获取用户数据
423
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-user-data
424
+ */
425
+ getUsers(query: GetUsersQuery): Promise<GetUsersResponse>;
426
+ /**
427
+ * 获取应用列表
428
+ * @see https://developers.dingtalk.com/document/isvapp/queries-applications
429
+ */
430
+ getApps(params: GetAppsParams): Promise<GetAppsResponse>;
431
+ /**
432
+ * 获取组织数据
433
+ * @see https://developers.dingtalk.com/document/isvapp/queries-organization-data
434
+ */
435
+ getOrganizations(query: GetOrganizationsQuery): Promise<GetOrganizationsResponse>;
436
+ }
437
+ }
@@ -0,0 +1,214 @@
1
+ export interface HrmProcessUpdateTerminationInfoParams {
2
+ /** 已离职员工的userId,可调用[获取离职员工列表](https://open.dingtalk.com/document/orgapp/obtain-the-list-of-employees-who-have-left)接口获取离职员工userId。 */
3
+ userId: string;
4
+ /** 最后工作日,即离职日期,格式为毫秒值时间戳。 */
5
+ lastWorkDate: number;
6
+ /** 离职备注信息。 */
7
+ dismissionMemo: string;
8
+ }
9
+ export interface HrmProcessUpdateTerminationInfoResponse {
10
+ result: unknown;
11
+ }
12
+ export interface HrmProcessRegularParams {
13
+ /** 待转正用户userId。 */
14
+ userId: string;
15
+ /** 转正时间,unix时间戳,单位毫秒。 */
16
+ regularDate: number;
17
+ /** 备注信息。 */
18
+ remark?: string;
19
+ /** 操作用户userId。 */
20
+ operationId: string;
21
+ }
22
+ export interface HrmProcessRegularResponse {
23
+ result: unknown;
24
+ }
25
+ export interface QueryDismissionStaffIdListQuery {
26
+ /** 分页查询的游标。 */
27
+ nextToken?: number;
28
+ /** 每页条目数,默认值30,最大值50。 */
29
+ maxResults?: number;
30
+ }
31
+ export interface QueryDismissionStaffIdListResponse {
32
+ nextToken?: number;
33
+ hasMore?: unknown;
34
+ userIdList?: string[];
35
+ }
36
+ export interface RosterMetaFieldOptionsUpdateParams {
37
+ /** 花名册分组ID。 */
38
+ groupId: string;
39
+ /** 花名册字段标识。 */
40
+ fieldCode: string;
41
+ /** 需要修改的选项值列表,最大值20。 */
42
+ labels: string[];
43
+ /** 修改类型。 */
44
+ modifyType: string;
45
+ }
46
+ export interface RosterMetaFieldOptionsUpdateQuery {
47
+ /** 对应应用的agentId值。 */
48
+ appAgentId?: number;
49
+ }
50
+ export interface RosterMetaFieldOptionsUpdateResponse {
51
+ result?: unknown;
52
+ }
53
+ export interface HrmProcessTransferParams {
54
+ /** 被调岗员工userId。 */
55
+ userId: string;
56
+ /** 部门ID。 */
57
+ deptIdsAfterTransfer?: number[];
58
+ /** 员工调岗后的人事主部门ID。 */
59
+ mainDeptIdAfterTransfer?: number;
60
+ /** 员工调岗后的职位名称,长度最大124字符。 */
61
+ positionNameAfterTransfer?: string;
62
+ /** 员工调岗后的职级名称,长度不超过64字符。 */
63
+ positionLevelAfterTransfer?: string;
64
+ /** 员工调岗后的职务ID,调用[获取企业职务信息](https://open.dingtalk.com/document/orgapp-server/obtain-enterprise-title-information)接口获取jobId参数值。 */
65
+ jobIdAfterTransfer?: string;
66
+ /** 员工调岗后的职位ID。 */
67
+ positionIdAfterTransfer?: string;
68
+ /** 员工调岗后的职级ID。 */
69
+ rankIdAfterTransfer?: string;
70
+ /** 操作人userId。 */
71
+ operateUserId?: string;
72
+ }
73
+ export interface HrmProcessTransferResponse {
74
+ result?: unknown;
75
+ }
76
+ export interface QueryHrmEmployeeDismissionInfoQuery {
77
+ /** 员工userId列表, 最大长度50。 */
78
+ userIdList: string;
79
+ }
80
+ export interface QueryHrmEmployeeDismissionInfoResponse {
81
+ result?: {
82
+ userId?: string;
83
+ lastWorkDay?: number;
84
+ deptList?: number;
85
+ reasonMemo?: string;
86
+ preStatus?: number;
87
+ handoverUserId?: string;
88
+ status?: number;
89
+ mainDeptName?: string;
90
+ mainDeptId?: number;
91
+ voluntaryReason?: number;
92
+ passiveReason?: number;
93
+ }[];
94
+ }
95
+ export interface QueryJobsQuery {
96
+ /** 职务名称。 */
97
+ jobName?: string;
98
+ /** 分页游标。 */
99
+ nextToken: number;
100
+ /** 每页最大条目数,最大值100。 */
101
+ maxResults: number;
102
+ }
103
+ export interface QueryJobsResponse {
104
+ nextToken?: number;
105
+ hasMore?: unknown;
106
+ list?: {
107
+ jobId?: string;
108
+ jobName?: string;
109
+ jobDescription?: string;
110
+ }[];
111
+ }
112
+ export interface QueryJobRanksQuery {
113
+ /** 职级序列ID。 */
114
+ rankCategoryId?: string;
115
+ /** 职级编码。 */
116
+ rankCode?: string;
117
+ /** 职级名称。 */
118
+ rankName?: string;
119
+ /** 分页游标。 */
120
+ nextToken: number;
121
+ /** 每页最大条目数,最大值200。 */
122
+ maxResults: number;
123
+ }
124
+ export interface QueryJobRanksResponse {
125
+ nextToken?: number;
126
+ hasMore?: unknown;
127
+ list?: {
128
+ rankId?: string;
129
+ rankCategoryId?: string;
130
+ rankCode?: string;
131
+ rankName?: string;
132
+ minJobGrade?: number;
133
+ maxJobGrade?: number;
134
+ rankDescription?: string;
135
+ }[];
136
+ }
137
+ export interface QueryPositionsParams {
138
+ /** 职位名称。 */
139
+ positionName?: string;
140
+ /** 职位类别ID列表。 */
141
+ inCategoryIds?: string[];
142
+ /** 职位ID列表。 */
143
+ inPositionIds?: string[];
144
+ /** 部门ID。 */
145
+ deptId?: number;
146
+ }
147
+ export interface QueryPositionsQuery {
148
+ /** 分页游标。 */
149
+ nextToken: number;
150
+ /** 每页最大条目数,最大值200。 */
151
+ maxResults: number;
152
+ }
153
+ export interface QueryPositionsResponse {
154
+ nextToken?: number;
155
+ hasMore?: unknown;
156
+ list?: {
157
+ positionId?: string;
158
+ positionName?: string;
159
+ positionCategoryId?: string;
160
+ jobId?: string;
161
+ positionDes?: string;
162
+ rankIdList?: number;
163
+ status?: number;
164
+ }[];
165
+ }
166
+ declare module '../internal' {
167
+ interface Internal {
168
+ /**
169
+ * 修改员工最后一次离职信息
170
+ * @see https://developers.dingtalk.com/document/app/modify-resigned-employee-information
171
+ */
172
+ hrmProcessUpdateTerminationInfo(params: HrmProcessUpdateTerminationInfoParams): Promise<HrmProcessUpdateTerminationInfoResponse>;
173
+ /**
174
+ * 智能人事转正接口
175
+ * @see https://developers.dingtalk.com/document/orgapp/intelligent-personnel-staff-to-become-regular
176
+ */
177
+ hrmProcessRegular(params: HrmProcessRegularParams): Promise<HrmProcessRegularResponse>;
178
+ /**
179
+ * 获取离职员工列表
180
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-the-list-of-employees-who-have-left
181
+ */
182
+ queryDismissionStaffIdList(query: QueryDismissionStaffIdListQuery): Promise<QueryDismissionStaffIdListResponse>;
183
+ /**
184
+ * 新增或删除花名册选项类型字段的选项
185
+ * @see https://developers.dingtalk.com/document/orgapp/intelligent-personnel-roster-field-option-modification
186
+ */
187
+ rosterMetaFieldOptionsUpdate(query: RosterMetaFieldOptionsUpdateQuery, params: RosterMetaFieldOptionsUpdateParams): Promise<RosterMetaFieldOptionsUpdateResponse>;
188
+ /**
189
+ * 智能人事员工调岗
190
+ * @see https://developers.dingtalk.com/document/orgapp/intelligent-personnel-staff-transfer
191
+ */
192
+ hrmProcessTransfer(params: HrmProcessTransferParams): Promise<HrmProcessTransferResponse>;
193
+ /**
194
+ * 批量获取员工离职信息
195
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-multiple-employee-demission-information-1
196
+ */
197
+ queryHrmEmployeeDismissionInfo(query: QueryHrmEmployeeDismissionInfoQuery): Promise<QueryHrmEmployeeDismissionInfoResponse>;
198
+ /**
199
+ * 获取企业职务列表
200
+ * @see https://developers.dingtalk.com/document/isvapp/obtains-a-list-of-enterprise-jobs
201
+ */
202
+ queryJobs(query: QueryJobsQuery): Promise<QueryJobsResponse>;
203
+ /**
204
+ * 获取企业职级列表
205
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-a-list-of-enterprise-ranks
206
+ */
207
+ queryJobRanks(query: QueryJobRanksQuery): Promise<QueryJobRanksResponse>;
208
+ /**
209
+ * 获取企业职位列表
210
+ * @see https://developers.dingtalk.com/document/isvapp/obtain-a-list-of-enterprise-positions
211
+ */
212
+ queryPositions(query: QueryPositionsQuery, params: QueryPositionsParams): Promise<QueryPositionsResponse>;
213
+ }
214
+ }