@satorijs/adapter-dingtalk 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/lib/bot.d.ts +1 -1
  2. package/lib/http.d.ts +3 -2
  3. package/lib/index.js +35 -14
  4. package/lib/index.js.map +2 -3
  5. package/package.json +8 -4
  6. package/src/api/.eslintrc.yml +2 -0
  7. package/src/api/alitrip.ts +467 -0
  8. package/src/api/attendance.ts +81 -0
  9. package/src/api/badge.ts +285 -0
  10. package/src/api/blackboard.ts +28 -0
  11. package/src/api/calendar.ts +817 -0
  12. package/src/api/card.ts +215 -0
  13. package/src/api/conference.ts +561 -0
  14. package/src/api/connector.ts +97 -0
  15. package/src/api/contact.ts +56 -0
  16. package/src/api/convFile.ts +166 -0
  17. package/src/api/crm.ts +830 -0
  18. package/src/api/customerService.ts +156 -0
  19. package/src/api/datacenter.ts +672 -0
  20. package/src/api/devicemng.ts +202 -0
  21. package/src/api/diot.ts +19 -0
  22. package/src/api/doc.ts +232 -0
  23. package/src/api/drive.ts +109 -0
  24. package/src/api/edu.ts +30 -0
  25. package/src/api/esign.ts +44 -0
  26. package/src/api/exclusive.ts +372 -0
  27. package/src/api/h3yun.ts +537 -0
  28. package/src/api/hrm.ts +272 -0
  29. package/src/api/im.ts +978 -0
  30. package/src/api/industry.ts +153 -0
  31. package/src/api/jzcrm.ts +304 -0
  32. package/src/api/link.ts +94 -0
  33. package/src/api/live.ts +162 -0
  34. package/src/api/microApp.ts +309 -0
  35. package/src/api/oapi.ts +4083 -0
  36. package/src/api/oauth2.ts +146 -0
  37. package/src/api/pedia.ts +222 -0
  38. package/src/api/project.ts +1519 -0
  39. package/src/api/resident.ts +133 -0
  40. package/src/api/robot.ts +326 -0
  41. package/src/api/rooms.ts +334 -0
  42. package/src/api/serviceGroup.ts +216 -0
  43. package/src/api/storage.ts +1701 -0
  44. package/src/api/swform.ts +94 -0
  45. package/src/api/todo.ts +220 -0
  46. package/src/api/wiki.ts +231 -0
  47. package/src/api/workbench.ts +73 -0
  48. package/src/api/yida.ts +2165 -0
  49. package/src/bot.ts +129 -0
  50. package/src/http.ts +44 -0
  51. package/src/index.ts +9 -0
  52. package/src/internal.ts +47 -0
  53. package/src/message.ts +141 -0
  54. package/src/types/index.ts +140 -0
  55. package/src/utils.ts +53 -0
  56. package/src/ws.ts +55 -0
@@ -0,0 +1,2165 @@
1
+ import { Internal } from '../internal'
2
+ // GENERATED CONTENT
3
+
4
+ export interface GetFormListInAppQuery {
5
+ /** 应用编码。 */
6
+ appType: string
7
+ /** 应用秘钥,在应用数据中获取。 */
8
+ systemToken: string
9
+ /** 表单类型。 */
10
+ formTypes?: string
11
+ /** 每页条目数,默认值100,最大值100。 */
12
+ pageSize?: number
13
+ /** 页码,不传默认为1。 */
14
+ pageNumber?: number
15
+ /** 操作人userId。 */
16
+ userId: string
17
+ }
18
+
19
+ export interface GetFormListInAppResponse {
20
+ success?: unknown
21
+ result?: {
22
+ data?: number
23
+ totalCount?: number
24
+ currentPage?: number
25
+ }
26
+ }
27
+
28
+ export interface GetFieldDefByUuidQuery {
29
+ /** 应用编码。 */
30
+ appType: string
31
+ /** 应用秘钥,在应用数据中获取。 */
32
+ systemToken: string
33
+ /** 表单唯一标识。 */
34
+ formUuid: string
35
+ /** 操作人userId。 */
36
+ userId: string
37
+ }
38
+
39
+ export interface GetFieldDefByUuidResponse {
40
+ success?: unknown
41
+ result?: {
42
+ componentName?: string
43
+ fieldId?: string
44
+ behavior?: string
45
+ label?: number
46
+ props?: number
47
+ children?: string
48
+ }[]
49
+ }
50
+
51
+ export interface ExecuteBatchTaskParams {
52
+ /** 审批动作,目前支持的审批动作如下: */
53
+ outResult: string
54
+ /** 宜搭应用编码。 */
55
+ appType: string
56
+ /** 宜搭应用密钥。 */
57
+ systemToken: string
58
+ /** 审批意见。 */
59
+ remark?: string
60
+ /** 操作人userId。 */
61
+ userId: string
62
+ /** 批量执行的审批任务列表,数组对象格式,每个元素值包含taskId和formInstId两个子属性。 */
63
+ taskInformationList: string
64
+ }
65
+
66
+ export interface ExecuteBatchTaskResponse {
67
+ failNumber: number
68
+ successNumber: number
69
+ total: number
70
+ }
71
+
72
+ export interface ListOperationLogsParams {
73
+ /** 表单编码。 */
74
+ formUuid: string
75
+ /** 宜搭应用编码。 */
76
+ appType: string
77
+ /** 宜搭应用密钥。 */
78
+ systemToken: string
79
+ /** 宜搭表单实例Id。 */
80
+ formInstanceIdList?: string[]
81
+ /** 用户userId。 */
82
+ userId: string
83
+ }
84
+
85
+ export interface ListOperationLogsResponse {
86
+ operationLogMap: unknown
87
+ }
88
+
89
+ export interface ListFormRemarksParams {
90
+ /** 表单编码。 */
91
+ formUuid: string
92
+ /** 宜搭应用编码。 */
93
+ appType: string
94
+ /** 宜搭应用密钥。 */
95
+ systemToken: string
96
+ /** 宜搭表单实例Id。 */
97
+ formInstanceIdList?: string[]
98
+ /** 操作者userId。 */
99
+ userId: string
100
+ }
101
+
102
+ export interface ListFormRemarksResponse {
103
+ formRemarkVoMap?: unknown
104
+ }
105
+
106
+ export interface QueryServiceRecordQuery {
107
+ /** 操作人的userId。 */
108
+ userId: string
109
+ /** 服务类型,目前只有HTTP服务调用。 */
110
+ hookType?: string
111
+ /** 宜搭应用密钥。 */
112
+ systemToken: string
113
+ /** 本次服务调用的唯一ID,自定义参数。 */
114
+ hookUuid?: string
115
+ /** 被重试的服务调用唯一ID。 */
116
+ sourceUuid?: string
117
+ /** 服务调用地址中包含的部分字符串,用于模糊查询。 */
118
+ requestUrl?: string
119
+ /** 服务调用是否成功。 */
120
+ success?: unknown
121
+ /** 当前页码,从1开始。 */
122
+ pageNumber?: number
123
+ /** 宜搭表单实例Id。 */
124
+ instanceId: string
125
+ /** 查询调用服务的开始时间。 */
126
+ invokeAfterDateGMT?: string
127
+ /** 每页最大条目数,最大值100。 */
128
+ pageSize?: number
129
+ /** 服务调用状态,可选值: */
130
+ invokeStatus?: string
131
+ /** 宜搭应用编码。 */
132
+ appType: string
133
+ /** 查询调用服务的结束时间。 */
134
+ invokeBeforeDateGMT?: string
135
+ /** 宜搭表单编码。 */
136
+ formUuid: string
137
+ }
138
+
139
+ export interface QueryServiceRecordResponse {
140
+ totalCount?: number
141
+ values?: {
142
+ serviceContent?: string
143
+ formUuid?: string
144
+ sourceUuid?: string
145
+ invokeStatus?: string
146
+ invokeUrl?: string
147
+ invokeResult?: string
148
+ invokeParameter?: string
149
+ hookUuid?: string
150
+ formInstanceId?: string
151
+ serviceParameter?: string
152
+ serviceName?: string
153
+ hookType?: string
154
+ invokeSuccess?: string
155
+ }[]
156
+ }
157
+
158
+ export interface BatchRemovalByFormInstanceIdListParams {
159
+ /** 表单编码。 */
160
+ formUuid: string
161
+ /** 宜搭应用编码。 */
162
+ appType: string
163
+ /** 是否需要宜搭服务端异步执行该任务。 */
164
+ asynchronousExecution?: unknown
165
+ /** 宜搭应用密钥。 */
166
+ systemToken: string
167
+ /** 宜搭表单实例Id。 */
168
+ formInstanceIdList: string[]
169
+ /** 员工userId。 */
170
+ userId: string
171
+ /** 是否需要触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */
172
+ executeExpression?: unknown
173
+ }
174
+
175
+ export interface BatchUpdateFormDataByInstanceIdParams {
176
+ /** 是否不触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */
177
+ noExecuteExpression?: unknown
178
+ /** 表单编码。 */
179
+ formUuid: string
180
+ /** 用于更新表单实例的数据。 */
181
+ updateFormDataJson: string
182
+ /** 宜搭应用编码。 */
183
+ appType: string
184
+ /** 是否忽略空值。 */
185
+ ignoreEmpty?: unknown
186
+ /** 宜搭应用密钥。 */
187
+ systemToken: string
188
+ /** 是否使用最新的表单schema版本。 */
189
+ useLatestFormSchemaVersion?: unknown
190
+ /** 是否需要宜搭服务端异步执行该任务。 */
191
+ asynchronousExecution?: unknown
192
+ /** 表单实例Id。 */
193
+ formInstanceIdList: string[]
194
+ /** 用户userId。 */
195
+ userId: string
196
+ }
197
+
198
+ export interface BatchUpdateFormDataByInstanceIdResponse {
199
+ result?: string[]
200
+ }
201
+
202
+ export interface BatchUpdateFormDataByInstanceMapParams {
203
+ /** 是否不触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */
204
+ noExecuteExpression?: unknown
205
+ /** 表单编码。 */
206
+ formUuid: string
207
+ /** 该任务是否需要服务端异步执行。 */
208
+ asynchronousExecution?: unknown
209
+ /** 宜搭应用编码。 */
210
+ appType: string
211
+ /** 宜搭应用密钥。 */
212
+ systemToken: string
213
+ /** 是否忽略空值。 */
214
+ ignoreEmpty?: unknown
215
+ updateFormDataJsonMap: unknown
216
+ /** 是否使用最新的表单schema版本。 */
217
+ useLatestFormSchemaVersion?: unknown
218
+ /** 用户userId。 */
219
+ userId: string
220
+ }
221
+
222
+ export interface BatchUpdateFormDataByInstanceMapResponse {
223
+ result?: string[]
224
+ }
225
+
226
+ export interface ListApplicationQuery {
227
+ /** 应用过滤条件。 */
228
+ appFilter?: string
229
+ /** 页码数,从1开始。 */
230
+ pageNumber?: number
231
+ /** 钉钉企业的corpId值。 */
232
+ corpId: string
233
+ /** 每页最大条目数,最大值100。 */
234
+ pageSize?: number
235
+ /** 根据应用名称检索时的关键词。 */
236
+ appNameSearchKeyword?: string
237
+ /** 操作人userId。 */
238
+ userId: string
239
+ /** 根据corpId、userId和CorpToken使用md5加密计算生成的字符串。 */
240
+ token: string
241
+ }
242
+
243
+ export interface ListApplicationResponse {
244
+ pageNumber?: number
245
+ totalCount?: number
246
+ data?: {
247
+ creatorUserId?: string
248
+ corpId?: string
249
+ icon?: string
250
+ description?: string
251
+ applicationStatus?: string
252
+ appConfig?: string
253
+ inexistence?: string
254
+ subCorpId?: string
255
+ appType?: string
256
+ name?: string
257
+ }[]
258
+ }
259
+
260
+ export interface BatchSaveFormDataParams {
261
+ /** 是否不触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */
262
+ noExecuteExpression?: unknown
263
+ /** 表单编码。 */
264
+ formUuid: string
265
+ /** 宜搭应用编码。 */
266
+ appType: string
267
+ /** 是否需要宜搭服务端异步执行该任务。 */
268
+ asynchronousExecution?: unknown
269
+ /** 宜搭应用密钥。 */
270
+ systemToken: string
271
+ /** 批量保存多条表单实例数据发生异常时是否跳过异常的表单实例并继续保存下一个表单实例数据。 */
272
+ keepRunningAfterException?: unknown
273
+ /** 用户userId。 */
274
+ userId: string
275
+ /** 表单实例数据。 */
276
+ formDataJsonList: string[]
277
+ }
278
+
279
+ export interface BatchSaveFormDataResponse {
280
+ result?: string[]
281
+ }
282
+
283
+ export interface SearchFormDataSecondGenerationNoTableFieldParams {
284
+ /** 当前页码,从1开始。 */
285
+ pageNumber?: number
286
+ /** 表单编码。 */
287
+ formUuid: string
288
+ /** 用于检索表单实例数据的检索条件。 */
289
+ searchCondition?: string
290
+ /** 表单实例修改截止时间。 */
291
+ modifiedToTimeGMT?: string
292
+ /** 宜搭应用密钥。 */
293
+ systemToken: string
294
+ /** 表单实例修改开始时间。 */
295
+ modifiedFromTimeGMT?: string
296
+ /** 每页条目数,最大值100。 */
297
+ pageSize?: number
298
+ /** 用户userId。 */
299
+ userId: string
300
+ /** 宜搭应用编码。 */
301
+ appType: string
302
+ /** 排序规则 */
303
+ orderConfigJson?: string
304
+ /** 表单实例提交人的userId。 */
305
+ originatorId?: string
306
+ /** 表单实例创建截止时间。 */
307
+ createToTimeGMT?: string
308
+ /** 表单实例创建开始时间。 */
309
+ createFromTimeGMT?: string
310
+ }
311
+
312
+ export interface SearchFormDataSecondGenerationNoTableFieldResponse {
313
+ pageNumber?: number
314
+ data?: {
315
+ createTimeGMT?: string
316
+ modifyUser?: number
317
+ sequence?: string
318
+ creatorUserId?: string
319
+ formUuid?: string
320
+ serialNumber?: string
321
+ modifiedTimeGMT?: string
322
+ modifier?: string
323
+ formData?: number
324
+ originator?: number
325
+ formInstanceId?: string
326
+ id?: number
327
+ title?: string
328
+ version?: number
329
+ instanceValue?: string
330
+ }[]
331
+ totalCount?: number
332
+ }
333
+
334
+ export interface CreateOrUpdateFormDataParams {
335
+ /** 是否不要触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */
336
+ noExecuteExpression?: unknown
337
+ /** 表单编码。 */
338
+ formUuid: string
339
+ /** 用于检索表单实例数据的检索条件。 */
340
+ searchCondition: string
341
+ /** 宜搭应用编码。 */
342
+ appType: string
343
+ /** 用于更新或新增表单实例的数据。 */
344
+ formDataJson: string
345
+ /** 宜搭应用密钥。 */
346
+ systemToken: string
347
+ /** 用户userId。 */
348
+ userId: string
349
+ }
350
+
351
+ export interface CreateOrUpdateFormDataResponse {
352
+ result?: string[]
353
+ }
354
+
355
+ export interface SearchFormDataSecondGenerationParams {
356
+ /** 当前的页码数,从1开始。 */
357
+ pageNumber?: number
358
+ /** 表单编码。 */
359
+ formUuid: string
360
+ /** 用于检索表单实例数据的检索条件。 */
361
+ searchCondition?: string
362
+ /** 修改的截止时间,格式yyyy-MM-dd HH:mm:ss。 */
363
+ modifiedToTimeGMT?: string
364
+ /** 宜搭应用密钥。 */
365
+ systemToken: string
366
+ /** 修改开始时间,格式yyyy-MM-dd HH:mm:ss。 */
367
+ modifiedFromTimeGMT?: string
368
+ /** 每页最大条目数,最大值100。 */
369
+ pageSize?: number
370
+ /** 用户userId。 */
371
+ userId: string
372
+ /** 宜搭应用编码。 */
373
+ appType: string
374
+ /** 排序规则。 */
375
+ orderConfigJson?: string
376
+ /** 表单提交人的userId。 */
377
+ originatorId?: string
378
+ /** 创建的开始时间,格式yyyy-MM-dd HH:mm:ss。 */
379
+ createToTimeGMT?: string
380
+ /** 创建的开始时间,格式yyyy-MM-dd HH:mm:ss。 */
381
+ createFromTimeGMT?: string
382
+ }
383
+
384
+ export interface SearchFormDataSecondGenerationResponse {
385
+ pageNumber?: number
386
+ data?: {
387
+ createTimeGMT?: string
388
+ modifyUser?: number
389
+ sequence?: string
390
+ creatorUserId?: string
391
+ formUuid?: string
392
+ serialNumber?: string
393
+ modifiedTimeGMT?: string
394
+ modifier?: string
395
+ formData?: number
396
+ originator?: number
397
+ formInstanceId?: string
398
+ id?: number
399
+ title?: string
400
+ version?: number
401
+ instanceValue?: string
402
+ }[]
403
+ totalCount?: number
404
+ }
405
+
406
+ export interface BatchGetFormDataByIdListParams {
407
+ /** 宜搭表单编码。 */
408
+ formUuid: string
409
+ /** 宜搭应用编码。 */
410
+ appType: string
411
+ /** 宜搭应用密钥。 */
412
+ systemToken: string
413
+ /** 宜搭表单实例Id。 */
414
+ formInstanceIdList: string[]
415
+ /** 是否需要宜搭表单组件格式的实例数据。 */
416
+ needFormInstanceValue?: unknown
417
+ /** 用户userId。 */
418
+ userId: string
419
+ }
420
+
421
+ export interface BatchGetFormDataByIdListResponse {
422
+ result?: {
423
+ createTimeGMT?: string
424
+ modifyUser?: number
425
+ sequence?: string
426
+ creatorUserId?: string
427
+ formUuid?: string
428
+ serialNumber?: string
429
+ modifiedTimeGMT?: string
430
+ modifier?: string
431
+ formData?: number
432
+ originator?: number
433
+ formInstanceId?: string
434
+ id?: number
435
+ title?: string
436
+ version?: number
437
+ instanceValue?: string
438
+ }[]
439
+ }
440
+
441
+ export interface GetTaskCopiesQuery {
442
+ /** 应用ID。 */
443
+ appType: string
444
+ /** 应用秘钥,在应用数据中获取。 */
445
+ systemToken: string
446
+ /** 分页大小。 */
447
+ pageSize?: number
448
+ /** 语言,取值: */
449
+ language?: string
450
+ /** 分页页码。 */
451
+ pageNumber?: number
452
+ /** 表单中组件数据模糊搜索。 */
453
+ keyword?: string
454
+ /** 用户userid。 */
455
+ userId: string
456
+ /** 流程code列表。 */
457
+ processCodes?: string
458
+ /** 创建时间起始值。 */
459
+ createFromTimeGMT?: number
460
+ /** 创建时间终止值。 */
461
+ createToTimeGMT?: number
462
+ }
463
+
464
+ export interface GetTaskCopiesResponse {
465
+ pageNumber?: number
466
+ totalCount?: number
467
+ data?: {
468
+ actionExecutorId?: number
469
+ processInstanceId?: string
470
+ formUuid?: string
471
+ serialNumber?: string
472
+ processInstanceStatus?: string
473
+ originatorDisplayName?: string
474
+ modifiedTimeGMT?: string
475
+ carbonActivityId?: string
476
+ dataType?: string
477
+ actionExecutorName?: number
478
+ originatorAvatar?: string
479
+ processInstanceStatusText?: string
480
+ processApprovedResultText?: string
481
+ formInstanceId?: string
482
+ title?: string
483
+ version?: number
484
+ instanceValue?: string
485
+ createTimeGMT?: string
486
+ processApprovedResult?: string
487
+ processId?: number
488
+ processName?: string
489
+ processCode?: string
490
+ appType?: string
491
+ dataMap?: number
492
+ currentActivityInstances?: number
493
+ finishTimeGMT?: string
494
+ originatorId?: string
495
+ }[]
496
+ }
497
+
498
+ export interface SearchFormDataIdListParams {
499
+ /** 修改时间终止值。 */
500
+ modifiedToTimeGMT?: string
501
+ /** 应用秘钥。 */
502
+ systemToken: string
503
+ /** 修改时间起始值。 */
504
+ modifiedFromTimeGMT?: string
505
+ /** 语言,取值: */
506
+ language?: string
507
+ /** 根据表单内组件值查询。 */
508
+ searchFieldJson?: string
509
+ /** 用户userid。 */
510
+ userId: string
511
+ /** 根据流程发起人工号查询。 */
512
+ originatorId?: string
513
+ /** 创建时间终止值。 */
514
+ createToTimeGMT?: string
515
+ /** 创建时间起始值。 */
516
+ createFromTimeGMT?: string
517
+ }
518
+
519
+ export interface SearchFormDataIdListQuery {
520
+ /** 分页页吗。 */
521
+ pageNumber?: number
522
+ /** 分页大小。 */
523
+ pageSize?: number
524
+ }
525
+
526
+ export interface SearchFormDataIdListResponse {
527
+ totalCount?: number
528
+ pageNumber?: number
529
+ data?: string[]
530
+ }
531
+
532
+ export interface ListTableDataByFormInstanceIdTableIdQuery {
533
+ /** 表单ID。 */
534
+ formUuid: string
535
+ /** 宜搭应用的唯一编码。 */
536
+ appType: string
537
+ /** 需要查找的子表单组件ID。 */
538
+ tableFieldId: string
539
+ /** 分页页码。 */
540
+ pageNumber?: number
541
+ /** 分页大小。 */
542
+ pageSize?: number
543
+ /** 应用秘钥,在应用数据中获取。 */
544
+ systemToken: string
545
+ /** 用户的userid。 */
546
+ userId: string
547
+ }
548
+
549
+ export interface ListTableDataByFormInstanceIdTableIdResponse {
550
+ totalCount?: number
551
+ pageNumber?: number
552
+ data?: object[]
553
+ }
554
+
555
+ export interface GetCorpAccomplishmentTasksQuery {
556
+ /** 分页大小。 */
557
+ pageSize?: number
558
+ /** 语言,取值: */
559
+ language?: string
560
+ /** 分页页码。 */
561
+ pageNumber?: number
562
+ /** 表单中组件数据模糊搜索。 */
563
+ keyword?: string
564
+ /** 应用标识。 */
565
+ appTypes?: string
566
+ /** 流程code。 */
567
+ processCodes?: string
568
+ /** 创建时间起始值。 */
569
+ createFromTimeGMT?: number
570
+ /** 创建时间终止值。 */
571
+ createToTimeGMT?: number
572
+ /** 验权token。 */
573
+ token: string
574
+ }
575
+
576
+ export interface GetCorpAccomplishmentTasksResponse {
577
+ totalCount?: number
578
+ pageNumber?: number
579
+ data?: {
580
+ originatorNickName?: string
581
+ processInstanceId?: string
582
+ originatorName?: string
583
+ finishTimeGMT?: string
584
+ activeTimeGMT?: string
585
+ actualActionerId?: string
586
+ originatorEmail?: string
587
+ title?: string
588
+ outResultName?: string
589
+ outResult?: string
590
+ originatorPhoto?: string
591
+ taskType?: string
592
+ originatorNickNameInEnglish?: string
593
+ createTimeGMT?: string
594
+ titleInEnglish?: string
595
+ appType?: string
596
+ originatorNameInEnglish?: string
597
+ originatorId?: string
598
+ taskId?: string
599
+ status?: string
600
+ }[]
601
+ }
602
+
603
+ export interface GetFormComponentDefinitionListQuery {
604
+ /** 应用秘钥。 */
605
+ systemToken: string
606
+ /** 用户的userid。 */
607
+ userId: string
608
+ /** 语言,取值: */
609
+ language?: string
610
+ /** 版本。 */
611
+ version?: number
612
+ }
613
+
614
+ export interface GetFormComponentDefinitionListResponse {
615
+ result?: {
616
+ label?: string
617
+ componentName?: string
618
+ fieldId?: string
619
+ parentId?: string
620
+ }[]
621
+ }
622
+
623
+ export interface GetInstanceIdListParams {
624
+ /** 表单ID。 */
625
+ formUuid: string
626
+ /** 修改时间终止值。 */
627
+ modifiedToTimeGMT?: string
628
+ /** 应用秘钥。 */
629
+ systemToken: string
630
+ /** 修改时间起始值。 */
631
+ modifiedFromTimeGMT?: string
632
+ /** 语言,取值: */
633
+ language?: string
634
+ /** 根据表单内组件值查询。 */
635
+ searchFieldJson?: string
636
+ /** 用户userid。 */
637
+ userId: string
638
+ /** 实例状态。 */
639
+ instanceStatus?: string
640
+ /** 流程审批结果。 */
641
+ approvedResult?: string
642
+ /** 应用编码。 */
643
+ appType: string
644
+ /** 根据流程发起人工号查询。 */
645
+ originatorId?: string
646
+ /** 创建时间终止值。 */
647
+ createToTimeGMT?: string
648
+ /** 任务ID。 */
649
+ taskId?: string
650
+ /** 创建时间起始值。 */
651
+ createFromTimeGMT?: string
652
+ }
653
+
654
+ export interface GetInstanceIdListQuery {
655
+ /** 分页大小。 */
656
+ pageSize?: number
657
+ /** 分页页码。 */
658
+ pageNumber?: number
659
+ }
660
+
661
+ export interface GetInstanceIdListResponse {
662
+ totalCount?: number
663
+ pageNumber?: number
664
+ data?: string[]
665
+ }
666
+
667
+ export interface GetInstancesByIdListQuery {
668
+ /** 应用ID。 */
669
+ appType: string
670
+ /** 应用秘钥,在应用数据中获取。 */
671
+ systemToken: string
672
+ /** 用户的userid。 */
673
+ userId: string
674
+ /** 语言,取值: */
675
+ language?: string
676
+ /** 流程实例ID列表,多个流程实例ID之间使用英文逗号分隔。 */
677
+ processInstanceIds: string
678
+ }
679
+
680
+ export interface GetInstancesByIdListResponse {
681
+ result?: {
682
+ actionExecutor?: number
683
+ processInstanceId?: string
684
+ formUuid?: string
685
+ processCode?: string
686
+ title?: string
687
+ instanceStatus?: string
688
+ approvedResult?: string
689
+ originator?: number
690
+ data?: number
691
+ }[]
692
+ }
693
+
694
+ export interface GetMeCorpSubmissionQuery {
695
+ /** 组织的corpId。 */
696
+ corpId: string
697
+ /** 分页大小。 */
698
+ pageSize?: number
699
+ /** 语言,取值: */
700
+ language?: string
701
+ /** 分页页码。 */
702
+ pageNumber?: number
703
+ /** 表单中组件数据模糊搜索。 */
704
+ keyword?: string
705
+ /** 应用标识。 */
706
+ appTypes?: string
707
+ /** 流程code。 */
708
+ processCodes?: string
709
+ /** 创建时间起始值。 */
710
+ createFromTimeGMT?: number
711
+ /** 创建时间终止值。 */
712
+ createToTimeGMT?: number
713
+ /** 验权token。 */
714
+ token: string
715
+ }
716
+
717
+ export interface GetMeCorpSubmissionResponse {
718
+ totalCount?: number
719
+ pageNumber?: number
720
+ data?: {
721
+ actionerName?: number
722
+ processInstanceId?: string
723
+ modifiedTimeGMT?: string
724
+ finishTimeGMT?: string
725
+ formUuid?: string
726
+ processInstanceStatus?: string
727
+ originatorDisplayName?: string
728
+ dataType?: string
729
+ originatorAvatar?: string
730
+ processInstanceStatusText?: string
731
+ actioner?: number
732
+ processApprovedResultText?: string
733
+ formInstanceId?: string
734
+ title?: string
735
+ version?: number
736
+ instanceValue?: string
737
+ processApprovedResult?: string
738
+ createTimeGMT?: string
739
+ processId?: number
740
+ processName?: string
741
+ processCode?: string
742
+ appType?: string
743
+ actionerId?: number
744
+ dataMap?: number
745
+ currentActivityInstances?: number
746
+ originatorId?: string
747
+ }[]
748
+ }
749
+
750
+ export interface GetProcessDefinitionQuery {
751
+ /** 组织的corpId。 */
752
+ corpId?: string
753
+ /** 组ID。 */
754
+ groupId?: string
755
+ /** 应用ID。 */
756
+ appType?: string
757
+ /** 订单号。 */
758
+ orderNumber?: string
759
+ /** 应用的秘钥。 */
760
+ systemType?: string
761
+ /** 应用秘钥,在应用数据中获取。 */
762
+ systemToken?: string
763
+ /** 名称空间。 */
764
+ nameSpace?: string
765
+ /** 语言,取值: */
766
+ language?: string
767
+ /** 用户的userid。 */
768
+ userId?: string
769
+ }
770
+
771
+ export interface GetProcessDefinitionResponse {
772
+ outResult?: string
773
+ processInstanceId?: string
774
+ variables?: unknown
775
+ formUuid?: string
776
+ processId?: string
777
+ owners?: {
778
+ userInfo?: string
779
+ tbWang?: string
780
+ orderNumber?: string
781
+ departmentDescription?: string
782
+ displayName?: string
783
+ masterDataDepartments?: number
784
+ displayEnName?: string
785
+ userId?: string
786
+ personalPhoto?: string
787
+ status?: string
788
+ }[]
789
+ originator?: {
790
+ userInfo?: string
791
+ tbWang?: string
792
+ orderNumber?: string
793
+ departmentDescription?: string
794
+ displayName?: string
795
+ masterDataDepartments?: number
796
+ displayEnName?: string
797
+ userId?: string
798
+ personalPhoto?: string
799
+ status?: string
800
+ }
801
+ title?: string
802
+ tasks?: {
803
+ actionerId?: string
804
+ activity?: number
805
+ taskId?: number
806
+ status?: string
807
+ }[]
808
+ status?: string
809
+ }
810
+
811
+ export interface GetCorpTasksQuery {
812
+ /** 组织corpId。 */
813
+ corpId: string
814
+ /** 分页大小。 */
815
+ pageSize?: number
816
+ /** 语言,取值: */
817
+ language?: string
818
+ /** 分页页码。 */
819
+ pageNumber?: number
820
+ /** 表单中组件数据模糊搜索。 */
821
+ keyword?: string
822
+ /** 应用标识列表。 */
823
+ appTypes?: string
824
+ /** 流程code列表。 */
825
+ processCodes?: string
826
+ /** 创建时间起始值。 */
827
+ createFromTimeGMT?: number
828
+ /** 创建时间终止值。 */
829
+ createToTimeGMT?: number
830
+ /** 用户的userid。 */
831
+ userId: string
832
+ /** 验权token。 */
833
+ token: string
834
+ }
835
+
836
+ export interface GetCorpTasksResponse {
837
+ totalCount?: number
838
+ pageNumber?: number
839
+ data?: {
840
+ originatorNickName?: string
841
+ processInstanceId?: string
842
+ originatorName?: string
843
+ finishTimeGMT?: string
844
+ activeTimeGMT?: string
845
+ actualActionerId?: string
846
+ originatorEmail?: string
847
+ title?: string
848
+ outResultName?: string
849
+ outResult?: string
850
+ originatorPhoto?: string
851
+ taskType?: string
852
+ originatorNickNameEn?: string
853
+ createTimeGMT?: string
854
+ titleInEnglish?: string
855
+ appType?: string
856
+ originatorNameInEnglish?: string
857
+ originatorId?: string
858
+ taskId?: string
859
+ status?: string
860
+ }[]
861
+ }
862
+
863
+ export interface GetNotifyMeQuery {
864
+ /** 组织的corpId。 */
865
+ corpId: string
866
+ /** 验权token。 */
867
+ token: string
868
+ /** 分页页码。 */
869
+ pageNumber?: number
870
+ /** 分页大小。 */
871
+ pageSize?: number
872
+ /** 语言,取值: */
873
+ language?: string
874
+ /** 表单中组件数据模糊搜索。 */
875
+ keyword?: string
876
+ /** 应用标识列表。 */
877
+ appTypes?: string
878
+ /** 流程code列表。 */
879
+ processCodes?: string
880
+ /** 流程创建时间起始值。 */
881
+ instanceCreateFromTimeGMT?: number
882
+ /** 流程创建时间终止值。 */
883
+ instanceCreateToTimeGMT?: number
884
+ /** 创建时间起始值。 */
885
+ createFromTimeGMT?: number
886
+ /** 创建时间终止值。 */
887
+ createToTimeGMT?: number
888
+ }
889
+
890
+ export interface GetNotifyMeResponse {
891
+ totalCount?: number
892
+ pageNumber?: number
893
+ data?: {
894
+ createTimeGMT?: string
895
+ activityId?: string
896
+ creatorUserId?: string
897
+ corpId?: string
898
+ titleInEnglish?: string
899
+ modifiedTimeGMT?: string
900
+ appType?: string
901
+ processCode?: string
902
+ mobileUrl?: string
903
+ formInstanceId?: string
904
+ instStatus?: string
905
+ title?: string
906
+ url?: string
907
+ }[]
908
+ }
909
+
910
+ export interface GetActivityButtonListQuery {
911
+ /** 应用秘钥。 */
912
+ systemToken: string
913
+ /** 用户的userid。 */
914
+ userId: string
915
+ /** 语言,取值: */
916
+ language?: string
917
+ }
918
+
919
+ export interface GetActivityButtonListResponse {
920
+ result?: {
921
+ aliasInEnglish?: string
922
+ aliasInChinese?: string
923
+ }[]
924
+ }
925
+
926
+ export interface GetApplicationAuthorizationServicePlatformResourceQuery {
927
+ /** 实例ID。 */
928
+ instanceId?: string
929
+ /** 访问秘钥。 */
930
+ accessKey?: string
931
+ /** 调用者的unionId。 */
932
+ callerUid?: string
933
+ }
934
+
935
+ export interface GetApplicationAuthorizationServicePlatformResourceResponse {
936
+ appTotalAmount?: number
937
+ instanceId?: string
938
+ instanceTotalAmount?: number
939
+ instanceUsageAmount?: number
940
+ accountUsageAmount?: number
941
+ accountTotalAmount?: number
942
+ pluginUsageAmount?: number
943
+ attachmentTotalAmount?: number
944
+ attachmentUsageAmount?: number
945
+ }
946
+
947
+ export interface UpdateInstanceParams {
948
+ /** 流程实例ID。 */
949
+ processInstanceId: string
950
+ /** 应用ID。 */
951
+ appType: string
952
+ /** 更新的表单数据。 */
953
+ updateFormDataJson: string
954
+ /** 应用秘钥。 */
955
+ systemToken: string
956
+ /** 语言,取值: */
957
+ language?: string
958
+ /** 用户的userid。 */
959
+ userId: string
960
+ }
961
+
962
+ export interface DeleteInstanceQuery {
963
+ /** 应用标识。 */
964
+ appType: string
965
+ /** 应用秘钥,在应用数据中获取。 */
966
+ systemToken: string
967
+ /** 用户的userid。 */
968
+ userId: string
969
+ /** 语言,取值: */
970
+ language?: string
971
+ /** 流程实例ID。 */
972
+ processInstanceId: string
973
+ }
974
+
975
+ export interface GetOperationRecordsQuery {
976
+ /** 应用ID。 */
977
+ appType: string
978
+ /** 应用秘钥。 */
979
+ systemToken: string
980
+ /** 用户的userid。 */
981
+ userId: string
982
+ /** 语言,取值: */
983
+ language?: string
984
+ /** 流程实例ID。 */
985
+ processInstanceId: string
986
+ }
987
+
988
+ export interface GetOperationRecordsResponse {
989
+ result?: {
990
+ processInstanceId?: string
991
+ showName?: string
992
+ operatorNickName?: string
993
+ activeTimeGMT?: string
994
+ operateTimeGMT?: string
995
+ operateType?: string
996
+ operatorStatus?: string
997
+ remark?: string
998
+ taskHoldTimeGMT?: number
999
+ type?: string
1000
+ operatorName?: string
1001
+ operatorUserId?: string
1002
+ activityId?: string
1003
+ taskType?: string
1004
+ taskExecuteType?: string
1005
+ size?: number
1006
+ operatorDisplayName?: string
1007
+ files?: string
1008
+ action?: string
1009
+ actionExit?: string
1010
+ dataId?: number
1011
+ taskId?: string
1012
+ digitalSign?: string
1013
+ operatorPhotoUrl?: string
1014
+ }[]
1015
+ }
1016
+
1017
+ export interface TerminateInstanceQuery {
1018
+ /** 应用ID。 */
1019
+ appType: string
1020
+ /** 应用秘钥。 */
1021
+ systemToken: string
1022
+ /** 用户的userid。 */
1023
+ userId: string
1024
+ /** 语言,取值: */
1025
+ language?: string
1026
+ /** 流程实例ID。 */
1027
+ processInstanceId: string
1028
+ }
1029
+
1030
+ export interface ExecuteTaskParams {
1031
+ /** 审批结果。 */
1032
+ outResult: string
1033
+ /** 是否不执行校验和关联操作,取值: */
1034
+ noExecuteExpressions?: string
1035
+ /** 应用ID。 */
1036
+ appType: string
1037
+ /** 更新的表单值。 */
1038
+ formDataJson?: string
1039
+ /** 应用秘钥。 */
1040
+ systemToken: string
1041
+ /** 语言,取值: */
1042
+ language?: string
1043
+ /** 审批意见。 */
1044
+ remark: string
1045
+ /** 实例ID。 */
1046
+ processInstanceId: string
1047
+ /** 用户的userid。 */
1048
+ userId: string
1049
+ /** 任务ID。 */
1050
+ taskId: number
1051
+ /** 电子签名地址。 */
1052
+ digitalSignUrl?: string
1053
+ }
1054
+
1055
+ export interface ExecutePlatformTaskParams {
1056
+ /** 审批结果,取值: */
1057
+ outResult: string
1058
+ /** 是否不执行校验和关联操作,取值: */
1059
+ noExecuteExpressions?: string
1060
+ /** 应用ID。 */
1061
+ appType: string
1062
+ /** 更新的表单数据。 */
1063
+ formDataJson?: string
1064
+ /** 应用秘钥。 */
1065
+ systemToken: string
1066
+ /** 语言,取值: */
1067
+ language?: string
1068
+ /** 审批意见。 */
1069
+ remark: string
1070
+ /** 流程实例ID。 */
1071
+ processInstanceId: string
1072
+ /** 用户的userid。 */
1073
+ userId: string
1074
+ }
1075
+
1076
+ export interface RedirectTaskParams {
1077
+ /** 流程实例ID。 */
1078
+ processInstanceId: string
1079
+ /** 是否应用管理员进行转交,取值: */
1080
+ byManager?: string
1081
+ /** 应用ID。 */
1082
+ appType: string
1083
+ /** 应用秘钥,在应用数据中获取。 */
1084
+ systemToken: string
1085
+ /** 语言,取值: */
1086
+ language?: string
1087
+ /** 审批意见。 */
1088
+ remark: string
1089
+ /** 新的任务处理人工号。 */
1090
+ nowActionExecutorId: string
1091
+ /** 处理人的userid。 */
1092
+ userId: string
1093
+ /** 任务ID。 */
1094
+ taskId: number
1095
+ }
1096
+
1097
+ export interface GetOpenUrlQuery {
1098
+ /** 应用秘钥,在应用数据中获取。 */
1099
+ systemToken: string
1100
+ /** 用户的userid。 */
1101
+ userId: string
1102
+ /** 语言,取值: */
1103
+ language?: string
1104
+ /** 宜搭附件地址。 */
1105
+ fileUrl: string
1106
+ /** 临时地址失效时间,单位毫秒。 */
1107
+ timeout?: number
1108
+ }
1109
+
1110
+ export interface GetOpenUrlResponse {
1111
+ result?: string
1112
+ }
1113
+
1114
+ export interface SaveFormRemarkParams {
1115
+ /** 应用ID。 */
1116
+ appType: string
1117
+ /** 应用秘钥。 */
1118
+ systemToken: string
1119
+ /** 对评论进行回复。 */
1120
+ replyId?: number
1121
+ /** 语言,取值: */
1122
+ language?: string
1123
+ /** 实例ID。 */
1124
+ formInstanceId: string
1125
+ /** 评论人的的useid。 */
1126
+ userId: string
1127
+ /** 被@的用户userid,将评论内容通过钉钉发给指定用户。 */
1128
+ atUserId?: string
1129
+ /** 评论内容。 */
1130
+ content: string
1131
+ }
1132
+
1133
+ export interface SaveFormRemarkResponse {
1134
+ result?: number
1135
+ }
1136
+
1137
+ export interface ListNavigationByFormTypeQuery {
1138
+ /** 应用ID。 */
1139
+ appType: string
1140
+ /** 应用秘钥。 */
1141
+ systemToken: string
1142
+ /** 评论人的userid。 */
1143
+ userId: string
1144
+ /** 语言,取值: */
1145
+ language?: string
1146
+ /** 页面类型,取值: */
1147
+ formType: string
1148
+ }
1149
+
1150
+ export interface ListNavigationByFormTypeResponse {
1151
+ result?: {
1152
+ title?: number
1153
+ processCode?: string
1154
+ formUuid?: string
1155
+ }[]
1156
+ }
1157
+
1158
+ export interface ValidateOrderBuyQuery {
1159
+ /** 访问秘钥。 */
1160
+ accessKey?: string
1161
+ /** 调用者unionId。 */
1162
+ callerUid?: string
1163
+ }
1164
+
1165
+ export interface ValidateOrderBuyResponse {
1166
+ message?: string
1167
+ status?: number
1168
+ }
1169
+
1170
+ export interface GetRunningTasksQuery {
1171
+ /** 流程实例ID。 */
1172
+ processInstanceId?: string
1173
+ /** 应用ID。 */
1174
+ appType?: string
1175
+ /** 应用秘钥,在应用数据中获取。 */
1176
+ systemToken?: string
1177
+ /** 语言,取值: */
1178
+ language?: string
1179
+ /** 用户的userid。 */
1180
+ userId?: string
1181
+ }
1182
+
1183
+ export interface GetRunningTasksResponse {
1184
+ result?: {
1185
+ createTimeGMT?: string
1186
+ activityId?: string
1187
+ processInstanceId?: string
1188
+ taskType?: string
1189
+ titleInEnglish?: string
1190
+ activeTimeGMT?: string
1191
+ actualActionerId?: string
1192
+ originatorId?: string
1193
+ finishTimeGMT?: string
1194
+ title?: string
1195
+ taskId?: string
1196
+ status?: string
1197
+ }[]
1198
+ }
1199
+
1200
+ export interface GetActivityListQuery {
1201
+ /** 流程编码。 */
1202
+ processCode?: string
1203
+ /** 应用ID。 */
1204
+ appType?: string
1205
+ /** 应用的秘钥。 */
1206
+ systemToken?: string
1207
+ /** 语言,取值: */
1208
+ language?: string
1209
+ /** 用户userid。 */
1210
+ userId?: string
1211
+ }
1212
+
1213
+ export interface GetActivityListResponse {
1214
+ result?: {
1215
+ activityName?: string
1216
+ activityNameInEnglish?: string
1217
+ activityId?: string
1218
+ }[]
1219
+ }
1220
+
1221
+ export interface ExecuteCustomApiQuery {
1222
+ /** 数据。 */
1223
+ data: string
1224
+ /** 应用ID。 */
1225
+ appType: string
1226
+ /** 应用秘钥。 */
1227
+ systemToken: string
1228
+ /** 语言,取值: */
1229
+ language?: string
1230
+ /** 服务ID。 */
1231
+ serviceId: string
1232
+ /** 用户的userid。 */
1233
+ userId: string
1234
+ }
1235
+
1236
+ export interface ExecuteCustomApiResponse {
1237
+ result?: string
1238
+ }
1239
+
1240
+ export interface SearchActivationCodeQuery {
1241
+ /** 访问秘钥。 */
1242
+ accessKey?: string
1243
+ /** 调用者unionId。 */
1244
+ callerUid: string
1245
+ }
1246
+
1247
+ export interface SearchActivationCodeResponse {
1248
+ instanceId?: string
1249
+ activationCode?: string
1250
+ authType?: string
1251
+ expireTimeGMT?: string
1252
+ status?: number
1253
+ }
1254
+
1255
+ export interface GetSaleUserInfoByUserIdQuery {
1256
+ /** 组织ID。 */
1257
+ corpId: string
1258
+ /** 名称空间。 */
1259
+ namespace: string
1260
+ /** 用户的userid。 */
1261
+ userId: string
1262
+ }
1263
+
1264
+ export interface GetSaleUserInfoByUserIdResponse {
1265
+ userName?: string
1266
+ userId?: string
1267
+ accountId?: number
1268
+ corpList?: {
1269
+ namespace?: string
1270
+ corpId?: string
1271
+ corpName?: string
1272
+ }[]
1273
+ }
1274
+
1275
+ export interface GetCorpLevelByAccountIdQuery {
1276
+ /** 账户ID。 */
1277
+ accountId?: string
1278
+ }
1279
+
1280
+ export interface GetCorpLevelByAccountIdResponse {
1281
+ result?: string
1282
+ }
1283
+
1284
+ export interface UpdateStatusParams {
1285
+ /** 导入序列。 */
1286
+ importSequence?: string
1287
+ /** 错误行列表。 */
1288
+ errorLines?: number[]
1289
+ /** 应用ID。 */
1290
+ appType?: string
1291
+ /** 应用秘钥。 */
1292
+ systemToken?: string
1293
+ /** 语言,取值: */
1294
+ language?: string
1295
+ /** 用户的userid。 */
1296
+ userId?: string
1297
+ /** 状态。 */
1298
+ status?: string
1299
+ }
1300
+
1301
+ export interface ValidateOrderUpgradeQuery {
1302
+ /** 实例ID。 */
1303
+ instanceId?: string
1304
+ /** 访问秘钥。 */
1305
+ accessKey?: string
1306
+ /** 调用者的unionId。 */
1307
+ callerUid?: string
1308
+ }
1309
+
1310
+ export interface ValidateOrderUpgradeResponse {
1311
+ message?: string
1312
+ status?: number
1313
+ }
1314
+
1315
+ export interface ReleaseCommodityQuery {
1316
+ /** 实例ID。 */
1317
+ instanceId?: string
1318
+ /** 访问秘钥。 */
1319
+ accessKey?: string
1320
+ /** 调用者的unionId。 */
1321
+ callerUid?: string
1322
+ }
1323
+
1324
+ export interface ReleaseCommodityResponse {
1325
+ message?: string
1326
+ success?: unknown
1327
+ }
1328
+
1329
+ export interface ExpireCommodityQuery {
1330
+ /** 实例ID。 */
1331
+ instanceId?: string
1332
+ /** 访问秘钥。 */
1333
+ accessKey?: string
1334
+ /** 调用者的unionId。 */
1335
+ callerUid?: string
1336
+ }
1337
+
1338
+ export interface ExpireCommodityResponse {
1339
+ message?: string
1340
+ success?: unknown
1341
+ }
1342
+
1343
+ export interface RefundCommodityQuery {
1344
+ /** 实例ID。 */
1345
+ instanceId?: string
1346
+ /** 访问秘钥。 */
1347
+ accessKey?: string
1348
+ /** 调用者的unionId。 */
1349
+ callerUid?: string
1350
+ }
1351
+
1352
+ export interface RefundCommodityResponse {
1353
+ message?: string
1354
+ success?: unknown
1355
+ }
1356
+
1357
+ export interface SearchEmployeeFieldValuesParams {
1358
+ /** 目标组件ID列表,JSON字符串。 */
1359
+ targetFieldJson?: string
1360
+ /** 表单ID。 */
1361
+ formUuid?: string
1362
+ /** 应用ID。 */
1363
+ appType?: string
1364
+ /** 修改时间终止值。 */
1365
+ modifiedToTimeGMT?: string
1366
+ /** 应用秘钥。 */
1367
+ systemToken?: string
1368
+ /** 修改时间起始值。 */
1369
+ modifiedFromTimeGMT?: string
1370
+ /** 语言,取值: */
1371
+ language?: string
1372
+ /** 根据表单内组件值查询。 */
1373
+ searchFieldJson?: string
1374
+ /** 根据流程发起人工号查询。 */
1375
+ originatorId?: string
1376
+ /** 用户的userid。 */
1377
+ userId?: string
1378
+ /** 创建时间终止值。 */
1379
+ createToTimeGMT?: string
1380
+ /** 创建时间起始值。 */
1381
+ createFromTimeGMT?: string
1382
+ }
1383
+
1384
+ export interface SearchEmployeeFieldValuesResponse {
1385
+ result?: string
1386
+ }
1387
+
1388
+ export interface DeleteSequenceQuery {
1389
+ /** 用户的userid。 */
1390
+ userId?: string
1391
+ /** 序列。 */
1392
+ sequence?: string
1393
+ /** 应用秘钥。 */
1394
+ systemToken?: string
1395
+ /** 语言,取值: */
1396
+ language?: string
1397
+ /** 应用ID。 */
1398
+ appType?: string
1399
+ }
1400
+
1401
+ export interface SaveFormDataParams {
1402
+ /** 应用编码。 */
1403
+ appType: string
1404
+ /** 应用秘钥。 */
1405
+ systemToken: string
1406
+ /** 用户的userid。 */
1407
+ userId: string
1408
+ /** 语言,取值: */
1409
+ language?: string
1410
+ /** 表单ID。 */
1411
+ formUuid: string
1412
+ /** 表单数据,示例:```"{\"textField_jcpm6agt\": \"单行\",\"employeeField_jcos0sar\": [\"workno\"]}"``` */
1413
+ formDataJson: string
1414
+ }
1415
+
1416
+ export interface SaveFormDataResponse {
1417
+ result?: string
1418
+ }
1419
+
1420
+ export interface UpdateFormDataParams {
1421
+ /** 应用ID。 */
1422
+ appType?: string
1423
+ /** 应用秘钥。 */
1424
+ systemToken: string
1425
+ /** 用户的userid。 */
1426
+ userId: string
1427
+ /** 语言,取值: */
1428
+ language?: string
1429
+ /** 流程实例ID。 */
1430
+ formInstanceId: string
1431
+ /** 使用最新的表单版本进行更新 */
1432
+ useLatestVersion?: unknown
1433
+ /** 更新的表单数据,示例:```"{\"textField_jcpm6agt\": \"单行\",\"employeeField_jcos0sar\": [\"workno\"]}"``` */
1434
+ updateFormDataJson: string
1435
+ }
1436
+
1437
+ export interface SearchFormDatasParams {
1438
+ /** 应用编码。 */
1439
+ appType: string
1440
+ /** 应用秘钥。在应用数据中获取。 */
1441
+ systemToken: string
1442
+ /** 用户userid。 */
1443
+ userId: string
1444
+ /** 语言。取值: */
1445
+ language?: string
1446
+ /** 表单ID。 */
1447
+ formUuid: string
1448
+ /** 根据表单内组件值查询,示例值如下: */
1449
+ searchFieldJson?: string
1450
+ /** 分页参数,当前页。 */
1451
+ currentPage?: number
1452
+ /** 分页参数,每页显示条数。 */
1453
+ pageSize?: number
1454
+ /** 根据数据提交人工号查询。 */
1455
+ originatorId?: string
1456
+ /** 查询创建数据列表的开始时间,格式:`yyyy-MM-dd`。 */
1457
+ createFromTimeGMT?: string
1458
+ /** 查询创建数据列表的结束时间,格式:`yyyy-MM-dd`。 */
1459
+ createToTimeGMT?: string
1460
+ /** 查询修改数据列表的开始时间,格式:`yyyy-MM-dd`。 */
1461
+ modifiedFromTimeGMT?: string
1462
+ /** 查询修改数据列表的结束时间,格式:`yyyy-MM-dd`。 */
1463
+ modifiedToTimeGMT?: string
1464
+ /** 指定排序字段。 */
1465
+ dynamicOrder?: string
1466
+ }
1467
+
1468
+ export interface SearchFormDatasResponse {
1469
+ currentPage?: number
1470
+ totalCount?: number
1471
+ data?: {
1472
+ dataId?: number
1473
+ formInstanceId?: string
1474
+ createdTimeGMT?: string
1475
+ modifiedTimeGMT?: string
1476
+ formUuid?: string
1477
+ modelUuid?: string
1478
+ originator?: number
1479
+ modifyUser?: number
1480
+ formData?: number
1481
+ title?: string
1482
+ serialNo?: string
1483
+ instanceValue?: string
1484
+ version?: number
1485
+ creatorUserId?: string
1486
+ modifierUserId?: string
1487
+ sequence?: string
1488
+ }[]
1489
+ }
1490
+
1491
+ export interface GetInstancesParams {
1492
+ /** 应用ID。 */
1493
+ appType: string
1494
+ /** 应用密钥。 */
1495
+ systemToken: string
1496
+ /** 用户的userid。 */
1497
+ userId: string
1498
+ /** 语言,取值: */
1499
+ language?: string
1500
+ /** 表单ID。 */
1501
+ formUuid: string
1502
+ /**
1503
+ * 查询过滤条件,支持2种模式的过滤规则。
1504
+ * - 模式1:根据组件值模糊匹配,示例:{"textField_jcr0069m":"danhang","selectField_jcr0069q":"K"}
1505
+ * - 模式2: 采用数据管理的查询过滤条件,匹配功能更强大,示例:[{"key":"currentNodeName","value":"步凡","type":"TEXT","operator":"like","componentName":"TextField”}],详情参考
1506
+ */
1507
+ searchFieldJson?: string
1508
+ /** 根据流程发起人工号查询。 */
1509
+ originatorId?: string
1510
+ /** 创建时间起始值。 */
1511
+ createFromTimeGMT?: string
1512
+ /** 创建时间终止值。 */
1513
+ createToTimeGMT?: string
1514
+ /** 修改时间起始值。 */
1515
+ modifiedFromTimeGMT?: string
1516
+ /** 修改时间终止值。 */
1517
+ modifiedToTimeGMT?: string
1518
+ /** 任务ID。 */
1519
+ taskId?: string
1520
+ /** 实例状态。 */
1521
+ instanceStatus?: string
1522
+ /** 流程审批结果。 */
1523
+ approvedResult?: string
1524
+ /** 排序规则,参数值参考[宜搭使用手册](https://www.yuque.com/yida/support/agb8im#CQro8)。 */
1525
+ orderConfigJson?: string
1526
+ }
1527
+
1528
+ export interface GetInstancesQuery {
1529
+ /** 分页页码。 */
1530
+ pageNumber?: number
1531
+ /** 分页大小。 */
1532
+ pageSize?: number
1533
+ }
1534
+
1535
+ export interface GetInstancesResponse {
1536
+ totalCount?: number
1537
+ pageNumber?: number
1538
+ data?: {
1539
+ createTimeGMT?: string
1540
+ processInstanceId?: string
1541
+ actionExecutor?: number
1542
+ approvedResult?: string
1543
+ formUuid?: string
1544
+ data?: number
1545
+ processCode?: string
1546
+ modifiedTimeGMT?: string
1547
+ originator?: number
1548
+ title?: string
1549
+ instanceStatus?: string
1550
+ version?: number
1551
+ }[]
1552
+ }
1553
+
1554
+ export interface DeleteFormDataQuery {
1555
+ /** 应用编码。 */
1556
+ appType: string
1557
+ /** 应用秘钥,在应用数据中获取。 */
1558
+ systemToken: string
1559
+ /** 用户的userid。 */
1560
+ userId: string
1561
+ /** 语言,取值: */
1562
+ language?: string
1563
+ /** 表单实例ID。 */
1564
+ formInstanceId: string
1565
+ }
1566
+
1567
+ export interface GetInstanceByIdQuery {
1568
+ /** 应用ID。 */
1569
+ appType: string
1570
+ /** 应用秘钥,在应用数据中获取。 */
1571
+ systemToken: string
1572
+ /** 用户userid。 */
1573
+ userId: string
1574
+ /** 语言,取值: */
1575
+ language?: string
1576
+ }
1577
+
1578
+ export interface GetInstanceByIdResponse {
1579
+ createTimeGMT?: string
1580
+ processInstanceId?: string
1581
+ actionExecutor?: {
1582
+ name?: number
1583
+ deptName?: string
1584
+ userId?: string
1585
+ email?: string
1586
+ }[]
1587
+ approvedResult?: string
1588
+ formUuid?: string
1589
+ data?: unknown
1590
+ modifiedTimeGMT?: string
1591
+ processCode?: string
1592
+ originator?: {
1593
+ name?: number
1594
+ deptName?: string
1595
+ userId?: string
1596
+ email?: string
1597
+ }
1598
+ title?: string
1599
+ instanceStatus?: string
1600
+ version?: number
1601
+ }
1602
+
1603
+ export interface StartInstanceParams {
1604
+ /** 应用编码。 */
1605
+ appType: string
1606
+ /** 应用秘钥。在应用数据中获取。 */
1607
+ systemToken: string
1608
+ /** 用户的userid。 */
1609
+ userId: string
1610
+ /** 语言,取值: */
1611
+ language?: string
1612
+ /** 表单唯一编码。 */
1613
+ formUuid: string
1614
+ /** 表单数据,示例: */
1615
+ formDataJson: string
1616
+ /** 流程编码。 */
1617
+ processCode?: string
1618
+ /** 发起人所在部门ID。 */
1619
+ departmentId?: string
1620
+ }
1621
+
1622
+ export interface StartInstanceResponse {
1623
+ result?: string
1624
+ }
1625
+
1626
+ export interface GetFormDataByIDQuery {
1627
+ /** 应用编码。 */
1628
+ appType?: string
1629
+ /** 应用秘钥。 */
1630
+ systemToken?: string
1631
+ /** 用户的userid。 */
1632
+ userId?: string
1633
+ /** 语言,取值: */
1634
+ language?: string
1635
+ }
1636
+
1637
+ export interface GetFormDataByIDResponse {
1638
+ originator?: {
1639
+ userId?: string
1640
+ name?: number
1641
+ departmentName?: string
1642
+ email?: string
1643
+ }
1644
+ modifiedTimeGMT?: string
1645
+ formInstId?: string
1646
+ formData?: unknown
1647
+ }
1648
+
1649
+ // funcName: isOldApi
1650
+ Internal.define({
1651
+ '/yida/forms': { GET: { getFormListInApp: false } },
1652
+ '/yida/forms/formFields': { GET: { getFieldDefByUuid: false } },
1653
+ '/yida/tasks/batches/execute': { POST: { executeBatchTask: false } },
1654
+ '/yida/forms/operationsLogs/query': { POST: { listOperationLogs: false } },
1655
+ '/yida/forms/remarks/query': { POST: { listFormRemarks: false } },
1656
+ '/yida/services/invocationRecords': { GET: { queryServiceRecord: false } },
1657
+ '/yida/forms/instances/batchRemove': {
1658
+ POST: { batchRemovalByFormInstanceIdList: false },
1659
+ },
1660
+ '/yida/forms/instances/components': {
1661
+ PUT: { batchUpdateFormDataByInstanceId: false },
1662
+ },
1663
+ '/yida/forms/instances/datas': {
1664
+ PUT: { batchUpdateFormDataByInstanceMap: false },
1665
+ },
1666
+ '/yida/organizations/applications': { GET: { listApplication: false } },
1667
+ '/yida/forms/instances/batchSave': { POST: { batchSaveFormData: false } },
1668
+ '/yida/forms/instances/advances/query': {
1669
+ POST: { searchFormDataSecondGenerationNoTableField: false },
1670
+ },
1671
+ '/yida/forms/instances/insertOrUpdate': {
1672
+ POST: { createOrUpdateFormData: false },
1673
+ },
1674
+ '/yida/forms/instances/advances/queryAll': {
1675
+ POST: { searchFormDataSecondGeneration: false },
1676
+ },
1677
+ '/yida/forms/instances/ids/query': {
1678
+ POST: { batchGetFormDataByIdList: false },
1679
+ },
1680
+ '/yida/tasks/taskCopies': { GET: { getTaskCopies: false } },
1681
+ '/yida/forms/instances/ids/{appType}/{formUuid}': {
1682
+ POST: { searchFormDataIdList: false },
1683
+ },
1684
+ '/yida/forms/innerTables/{formInstanceId}': {
1685
+ GET: { listTableDataByFormInstanceIdTableId: false },
1686
+ },
1687
+ '/yida/tasks/completedTasks/{corpId}/{userId}': {
1688
+ GET: { getCorpAccomplishmentTasks: false },
1689
+ },
1690
+ '/yida/forms/definitions/{appType}/{formUuid}': {
1691
+ GET: { getFormComponentDefinitionList: false },
1692
+ },
1693
+ '/yida/processes/instanceIds': { POST: { getInstanceIdList: false } },
1694
+ '/yida/processes/instances/searchWithIds': {
1695
+ GET: { getInstancesByIdList: false },
1696
+ },
1697
+ '/yida/tasks/myCorpSubmission/{userId}': {
1698
+ GET: { getMeCorpSubmission: false },
1699
+ },
1700
+ '/yida/processes/definitions/{processInstanceId}': {
1701
+ GET: { getProcessDefinition: false },
1702
+ },
1703
+ '/yida/corpTasks': { GET: { getCorpTasks: false } },
1704
+ '/yida/corpNotifications/{userId}': { GET: { getNotifyMe: false } },
1705
+ '/yida/processDefinitions/buttons/{appType}/{processCode}/{activityId}': {
1706
+ GET: { getActivityButtonList: false },
1707
+ },
1708
+ '/yida/authorization/platformResources': {
1709
+ GET: { getApplicationAuthorizationServicePlatformResource: false },
1710
+ },
1711
+ '/yida/processes/instances': {
1712
+ PUT: { updateInstance: false },
1713
+ DELETE: { deleteInstance: false },
1714
+ POST: { getInstances: false },
1715
+ },
1716
+ '/yida/processes/operationRecords': { GET: { getOperationRecords: false } },
1717
+ '/yida/processes/instances/terminate': { PUT: { terminateInstance: false } },
1718
+ '/yida/tasks/execute': { POST: { executeTask: false } },
1719
+ '/yida/tasks/platformTasks/execute': { POST: { executePlatformTask: false } },
1720
+ '/yida/tasks/redirect': { POST: { redirectTask: false } },
1721
+ '/yida/apps/temporaryUrls/{appType}': { GET: { getOpenUrl: false } },
1722
+ '/yida/forms/remarks': { POST: { saveFormRemark: false } },
1723
+ '/yida/apps/navigations': { GET: { listNavigationByFormType: false } },
1724
+ '/yida/apps/orderBuy/validate': { GET: { validateOrderBuy: false } },
1725
+ '/yida/processes/tasks/getRunningTasks': { GET: { getRunningTasks: false } },
1726
+ '/yida/processes/activities': { GET: { getActivityList: false } },
1727
+ '/yida/apps/customApi/execute': { POST: { executeCustomApi: false } },
1728
+ '/yida/apps/activationCode/information': {
1729
+ GET: { searchActivationCode: false },
1730
+ },
1731
+ '/yida/apps/saleUserInfo': { GET: { getSaleUserInfoByUserId: false } },
1732
+ '/yida/apps/corpLevel': { GET: { getCorpLevelByAccountId: false } },
1733
+ '/yida/forms/status': { PUT: { updateStatus: false } },
1734
+ '/yida/apps/orderUpgrade/validate': { GET: { validateOrderUpgrade: false } },
1735
+ '/yida/appAuth/commodities/release': { DELETE: { releaseCommodity: false } },
1736
+ '/yida/appAuth/commodities/expire': { PUT: { expireCommodity: false } },
1737
+ '/yida/appAuth/commodities/refund': { POST: { refundCommodity: false } },
1738
+ '/yida/forms/employeeFields': { POST: { searchEmployeeFieldValues: false } },
1739
+ '/yida/forms/deleteSequence': { DELETE: { deleteSequence: false } },
1740
+ '/yida/forms/instances': {
1741
+ POST: { saveFormData: false },
1742
+ PUT: { updateFormData: false },
1743
+ DELETE: { deleteFormData: false },
1744
+ },
1745
+ '/yida/forms/instances/search': { POST: { searchFormDatas: false } },
1746
+ '/yida/processes/instancesInfos/{id}': { GET: { getInstanceById: false } },
1747
+ '/yida/processes/instances/start': { POST: { startInstance: false } },
1748
+ '/yida/forms/instances/{id}': { GET: { getFormDataByID: false } },
1749
+ })
1750
+
1751
+ declare module '../internal' {
1752
+ interface Internal {
1753
+ /**
1754
+ * 获取应用内表单列表信息
1755
+ * @see https://open.dingtalk.com/document/app/depending-on-the-application-id-to-get-the-form-list
1756
+ */
1757
+ getFormListInApp(
1758
+ query: GetFormListInAppQuery,
1759
+ ): Promise<GetFormListInAppResponse>
1760
+ /**
1761
+ * 根据表单ID获取字段信息
1762
+ * @see https://open.dingtalk.com/document/isvapp/get-form-field-information-based-on-form-uuid
1763
+ */
1764
+ getFieldDefByUuid(
1765
+ query: GetFieldDefByUuidQuery,
1766
+ ): Promise<GetFieldDefByUuidResponse>
1767
+ /**
1768
+ * 批量审批
1769
+ * @see https://open.dingtalk.com/document/app/bulk-approval
1770
+ */
1771
+ executeBatchTask(
1772
+ params: ExecuteBatchTaskParams,
1773
+ ): Promise<ExecuteBatchTaskResponse>
1774
+ /**
1775
+ * 查询表单的变更记录
1776
+ * @see https://open.dingtalk.com/document/app/query-the-operation-records-of-a-form
1777
+ */
1778
+ listOperationLogs(
1779
+ params: ListOperationLogsParams,
1780
+ ): Promise<ListOperationLogsResponse>
1781
+ /**
1782
+ * 查询表单实例评论列表
1783
+ * @see https://open.dingtalk.com/document/isvapp/batch-query-of-comments-appropriate-for-form-instances
1784
+ */
1785
+ listFormRemarks(
1786
+ params: ListFormRemarksParams,
1787
+ ): Promise<ListFormRemarksResponse>
1788
+ /**
1789
+ * 查询服务调用记录
1790
+ * @see https://open.dingtalk.com/document/isvapp/execution-records-of-form-service-calls
1791
+ */
1792
+ queryServiceRecord(
1793
+ query: QueryServiceRecordQuery,
1794
+ ): Promise<QueryServiceRecordResponse>
1795
+ /**
1796
+ * 批量删除指定的表单实例
1797
+ * @see https://open.dingtalk.com/document/isvapp/delete-multiple-form-instances
1798
+ */
1799
+ batchRemovalByFormInstanceIdList(
1800
+ params: BatchRemovalByFormInstanceIdListParams,
1801
+ ): Promise<void>
1802
+ /**
1803
+ * 将多条表单实例的指定表单组件更新成指定值
1804
+ * @see https://open.dingtalk.com/document/isvapp/batch-update-of-component-values-in-form-instances
1805
+ */
1806
+ batchUpdateFormDataByInstanceId(
1807
+ params: BatchUpdateFormDataByInstanceIdParams,
1808
+ ): Promise<BatchUpdateFormDataByInstanceIdResponse>
1809
+ /**
1810
+ * 通过表单实例数据批量更新表单实例
1811
+ * @see https://open.dingtalk.com/document/isvapp/batch-update-of-form-instances-through-form-component-data
1812
+ */
1813
+ batchUpdateFormDataByInstanceMap(
1814
+ params: BatchUpdateFormDataByInstanceMapParams,
1815
+ ): Promise<BatchUpdateFormDataByInstanceMapResponse>
1816
+ /**
1817
+ * 获取组织下的宜搭应用列表
1818
+ * @see https://open.dingtalk.com/document/isvapp/query-the-application-list
1819
+ */
1820
+ listApplication(
1821
+ query: ListApplicationQuery,
1822
+ ): Promise<ListApplicationResponse>
1823
+ /**
1824
+ * 批量保存表单实例数据
1825
+ * @see https://open.dingtalk.com/document/isvapp/create-multiple-form-instances
1826
+ */
1827
+ batchSaveFormData(
1828
+ params: BatchSaveFormDataParams,
1829
+ ): Promise<BatchSaveFormDataResponse>
1830
+ /**
1831
+ * 通过高级查询条件查询表单实例数据(不返回子表单组件数据)
1832
+ * @see https://open.dingtalk.com/document/isvapp/obtain-form-instance-data-using-advanced-query-conditions-excluding-subform
1833
+ */
1834
+ searchFormDataSecondGenerationNoTableField(
1835
+ params: SearchFormDataSecondGenerationNoTableFieldParams,
1836
+ ): Promise<SearchFormDataSecondGenerationNoTableFieldResponse>
1837
+ /**
1838
+ * 新增或更新表单实例
1839
+ * @see https://open.dingtalk.com/document/isvapp/add-or-update-form-instances
1840
+ */
1841
+ createOrUpdateFormData(
1842
+ params: CreateOrUpdateFormDataParams,
1843
+ ): Promise<CreateOrUpdateFormDataResponse>
1844
+ /**
1845
+ * 通过高级检索条件查询表单实例
1846
+ * @see https://open.dingtalk.com/document/isvapp/query-form-instances-using-advanced-search-conditions
1847
+ */
1848
+ searchFormDataSecondGeneration(
1849
+ params: SearchFormDataSecondGenerationParams,
1850
+ ): Promise<SearchFormDataSecondGenerationResponse>
1851
+ /**
1852
+ * 批量获取指定表单实例ID列表对应的表单实例数据
1853
+ * @see https://open.dingtalk.com/document/isvapp/obtain-multiple-form-instance-data
1854
+ */
1855
+ batchGetFormDataByIdList(
1856
+ params: BatchGetFormDataByIdListParams,
1857
+ ): Promise<BatchGetFormDataByIdListResponse>
1858
+ /**
1859
+ * 查询抄送我的任务列表(应用维度)
1860
+ * @see https://open.dingtalk.com/document/app/query-copied-my-task-list-application-dimension
1861
+ */
1862
+ getTaskCopies(query: GetTaskCopiesQuery): Promise<GetTaskCopiesResponse>
1863
+ /**
1864
+ * 根据条件搜索表单实例 ID 列表
1865
+ * @see https://open.dingtalk.com/document/app/obtain-the-ids-of-multiple-form-instances
1866
+ */
1867
+ searchFormDataIdList(
1868
+ appType: string,
1869
+ formUuid: string,
1870
+ query: SearchFormDataIdListQuery,
1871
+ params: SearchFormDataIdListParams,
1872
+ ): Promise<SearchFormDataIdListResponse>
1873
+ /**
1874
+ * 获取子表单数据
1875
+ * @see https://open.dingtalk.com/document/app/obtain-child-table-component-data
1876
+ */
1877
+ listTableDataByFormInstanceIdTableId(
1878
+ formInstanceId: string,
1879
+ query: ListTableDataByFormInstanceIdTableIdQuery,
1880
+ ): Promise<ListTableDataByFormInstanceIdTableIdResponse>
1881
+ /**
1882
+ * 查询已完成任务列表
1883
+ * @see https://open.dingtalk.com/document/app/obtains-the-completed-approval-tasks-in-an-organization
1884
+ */
1885
+ getCorpAccomplishmentTasks(
1886
+ corpId: string,
1887
+ userId: string,
1888
+ query: GetCorpAccomplishmentTasksQuery,
1889
+ ): Promise<GetCorpAccomplishmentTasksResponse>
1890
+ /**
1891
+ * 获取表单定义
1892
+ * @see https://open.dingtalk.com/document/app/get-a-list-of-form-component-definitions
1893
+ */
1894
+ getFormComponentDefinitionList(
1895
+ appType: string,
1896
+ formUuid: string,
1897
+ query: GetFormComponentDefinitionListQuery,
1898
+ ): Promise<GetFormComponentDefinitionListResponse>
1899
+ /**
1900
+ * 根据条件搜索流程实例 ID
1901
+ * @see https://open.dingtalk.com/document/app/obtains-a-list-of-instance-ids
1902
+ */
1903
+ getInstanceIdList(
1904
+ query: GetInstanceIdListQuery,
1905
+ params: GetInstanceIdListParams,
1906
+ ): Promise<GetInstanceIdListResponse>
1907
+ /**
1908
+ * 根据实例 ID 列表批量获取流程实例详情
1909
+ * @see https://open.dingtalk.com/document/app/queries-multiple-process-instances
1910
+ */
1911
+ getInstancesByIdList(
1912
+ query: GetInstancesByIdListQuery,
1913
+ ): Promise<GetInstancesByIdListResponse>
1914
+ /**
1915
+ * 获取组织内某人提交的任务
1916
+ * @see https://open.dingtalk.com/document/app/obtains-the-tasks-submitted-by-someone-in-an-organization
1917
+ */
1918
+ getMeCorpSubmission(
1919
+ userId: string,
1920
+ query: GetMeCorpSubmissionQuery,
1921
+ ): Promise<GetMeCorpSubmissionResponse>
1922
+ /**
1923
+ * 获取流程定义
1924
+ * @see https://open.dingtalk.com/document/isvapp-server/obtain-process-definition
1925
+ */
1926
+ getProcessDefinition(
1927
+ processInstanceId: string,
1928
+ query: GetProcessDefinitionQuery,
1929
+ ): Promise<GetProcessDefinitionResponse>
1930
+ /**
1931
+ * 查询待办任务列表
1932
+ * @see https://open.dingtalk.com/document/app/query-tasks-from-the-organization-dimension
1933
+ */
1934
+ getCorpTasks(query: GetCorpTasksQuery): Promise<GetCorpTasksResponse>
1935
+ /**
1936
+ * 查询抄送我的任务列表(企业维度)
1937
+ * @see https://open.dingtalk.com/document/app/get-notifications-sent-to-users
1938
+ */
1939
+ getNotifyMe(
1940
+ userId: string,
1941
+ query: GetNotifyMeQuery,
1942
+ ): Promise<GetNotifyMeResponse>
1943
+ /**
1944
+ * 获取流程节点按钮列表
1945
+ * @see https://open.dingtalk.com/document/isvapp-server/obtain-a-list-of-process-node-buttons-1
1946
+ */
1947
+ getActivityButtonList(
1948
+ appType: string,
1949
+ processCode: string,
1950
+ activityId: string,
1951
+ query: GetActivityButtonListQuery,
1952
+ ): Promise<GetActivityButtonListResponse>
1953
+ /**
1954
+ * 获取平台服务资源
1955
+ * @see https://open.dingtalk.com/document/isvapp-server/obtain-platform-service-resources
1956
+ */
1957
+ getApplicationAuthorizationServicePlatformResource(
1958
+ query: GetApplicationAuthorizationServicePlatformResourceQuery,
1959
+ ): Promise<GetApplicationAuthorizationServicePlatformResourceResponse>
1960
+ /**
1961
+ * 更新流程实例
1962
+ * @see https://open.dingtalk.com/document/isvapp-server/update-process-instance-1
1963
+ */
1964
+ updateInstance(params: UpdateInstanceParams): Promise<void>
1965
+ /**
1966
+ * 删除流程实例
1967
+ * @see https://open.dingtalk.com/document/app/delete-process-instance
1968
+ */
1969
+ deleteInstance(query: DeleteInstanceQuery): Promise<void>
1970
+ /**
1971
+ * 获取审批记录
1972
+ * @see https://open.dingtalk.com/document/app/queries-an-approval-record
1973
+ */
1974
+ getOperationRecords(
1975
+ query: GetOperationRecordsQuery,
1976
+ ): Promise<GetOperationRecordsResponse>
1977
+ /**
1978
+ * 终止流程实例
1979
+ * @see https://open.dingtalk.com/document/app/terminate-a-process-instance
1980
+ */
1981
+ terminateInstance(query: TerminateInstanceQuery): Promise<void>
1982
+ /**
1983
+ * 执行审批任务
1984
+ * @see https://open.dingtalk.com/document/app/execute-approval-tasks
1985
+ */
1986
+ executeTask(params: ExecuteTaskParams): Promise<void>
1987
+ /**
1988
+ * 执行宜搭平台的审批任务
1989
+ * @see https://open.dingtalk.com/document/isvapp-server/execute-appropriate-approval-tasks
1990
+ */
1991
+ executePlatformTask(params: ExecutePlatformTaskParams): Promise<void>
1992
+ /**
1993
+ * 执行转交任务
1994
+ * @see https://open.dingtalk.com/document/app/transfer-tasks
1995
+ */
1996
+ redirectTask(params: RedirectTaskParams): Promise<void>
1997
+ /**
1998
+ * 附件地址转临时免登地址
1999
+ * @see https://open.dingtalk.com/document/isvapp/obtain-the-temporary-free-access-address-of-yixian-accessories
2000
+ */
2001
+ getOpenUrl(
2002
+ appType: string,
2003
+ query: GetOpenUrlQuery,
2004
+ ): Promise<GetOpenUrlResponse>
2005
+ /**
2006
+ * 提交表单/流程实例下的评论
2007
+ * @see https://open.dingtalk.com/document/app/submit-comment
2008
+ */
2009
+ saveFormRemark(
2010
+ params: SaveFormRemarkParams,
2011
+ ): Promise<SaveFormRemarkResponse>
2012
+ /**
2013
+ * 获取应用下的页面列表
2014
+ * @see https://open.dingtalk.com/document/isvapp-server/obtains-the-page-list-under-an-application
2015
+ */
2016
+ listNavigationByFormType(
2017
+ query: ListNavigationByFormTypeQuery,
2018
+ ): Promise<ListNavigationByFormTypeResponse>
2019
+ /**
2020
+ * 多渠道新购校验
2021
+ * @see https://open.dingtalk.com/document/isvapp-server/multi-channel-new-purchase-verification
2022
+ */
2023
+ validateOrderBuy(
2024
+ query: ValidateOrderBuyQuery,
2025
+ ): Promise<ValidateOrderBuyResponse>
2026
+ /**
2027
+ * 查询流程运行任务(vpc)
2028
+ * @see https://open.dingtalk.com/document/app/query-process-running-tasks-vpc
2029
+ */
2030
+ getRunningTasks(
2031
+ query: GetRunningTasksQuery,
2032
+ ): Promise<GetRunningTasksResponse>
2033
+ /**
2034
+ * 获取流程设计的节点信息
2035
+ * @see https://open.dingtalk.com/document/isvapp-server/obtain-the-information-about-the-nodes-in-process-design-1
2036
+ */
2037
+ getActivityList(
2038
+ query: GetActivityListQuery,
2039
+ ): Promise<GetActivityListResponse>
2040
+ /**
2041
+ * 执行自定义API
2042
+ * @see https://open.dingtalk.com/document/isvapp-server/run-custom-api
2043
+ */
2044
+ executeCustomApi(
2045
+ query: ExecuteCustomApiQuery,
2046
+ ): Promise<ExecuteCustomApiResponse>
2047
+ /**
2048
+ * 查询激活码
2049
+ * @see https://open.dingtalk.com/document/isvapp-server/query-activation-code
2050
+ */
2051
+ searchActivationCode(
2052
+ query: SearchActivationCodeQuery,
2053
+ ): Promise<SearchActivationCodeResponse>
2054
+ /**
2055
+ * 查询销售用户信息
2056
+ * @see https://open.dingtalk.com/document/isvapp-server/query-sales-user-information
2057
+ */
2058
+ getSaleUserInfoByUserId(
2059
+ query: GetSaleUserInfoByUserIdQuery,
2060
+ ): Promise<GetSaleUserInfoByUserIdResponse>
2061
+ /**
2062
+ * 查询企业级别
2063
+ * @see https://open.dingtalk.com/document/isvapp-server/query-enterprise-level
2064
+ */
2065
+ getCorpLevelByAccountId(
2066
+ query: GetCorpLevelByAccountIdQuery,
2067
+ ): Promise<GetCorpLevelByAccountIdResponse>
2068
+ /**
2069
+ * 更新状态
2070
+ * @see https://open.dingtalk.com/document/isvapp-server/update-status
2071
+ */
2072
+ updateStatus(params: UpdateStatusParams): Promise<void>
2073
+ /**
2074
+ * 校验订单的升级
2075
+ * @see https://open.dingtalk.com/document/isvapp-server/verification-order-upgrade
2076
+ */
2077
+ validateOrderUpgrade(
2078
+ query: ValidateOrderUpgradeQuery,
2079
+ ): Promise<ValidateOrderUpgradeResponse>
2080
+ /**
2081
+ * 发布商品
2082
+ * @see https://open.dingtalk.com/document/isvapp-server/release-products
2083
+ */
2084
+ releaseCommodity(
2085
+ query: ReleaseCommodityQuery,
2086
+ ): Promise<ReleaseCommodityResponse>
2087
+ /**
2088
+ * 使商品过期
2089
+ * @see https://open.dingtalk.com/document/isvapp-server/make-goods-expire
2090
+ */
2091
+ expireCommodity(
2092
+ query: ExpireCommodityQuery,
2093
+ ): Promise<ExpireCommodityResponse>
2094
+ /**
2095
+ * 退还商品
2096
+ * @see https://open.dingtalk.com/document/isvapp-server/refund-of-goods
2097
+ */
2098
+ refundCommodity(
2099
+ query: RefundCommodityQuery,
2100
+ ): Promise<RefundCommodityResponse>
2101
+ /**
2102
+ * 搜索表单中指定人员组件的值
2103
+ * @see https://open.dingtalk.com/document/app/gets-the-value-of-the-employee-component
2104
+ */
2105
+ searchEmployeeFieldValues(
2106
+ params: SearchEmployeeFieldValuesParams,
2107
+ ): Promise<SearchEmployeeFieldValuesResponse>
2108
+ /**
2109
+ * 删除序列
2110
+ * @see https://open.dingtalk.com/document/isvapp-server/delete-sequence
2111
+ */
2112
+ deleteSequence(query: DeleteSequenceQuery): Promise<void>
2113
+ /**
2114
+ * 新增表单实例
2115
+ * @see https://open.dingtalk.com/document/app/save-form-data
2116
+ */
2117
+ saveFormData(params: SaveFormDataParams): Promise<SaveFormDataResponse>
2118
+ /**
2119
+ * 更新表单实例
2120
+ * @see https://open.dingtalk.com/document/orgapp/update-form-data
2121
+ */
2122
+ updateFormData(params: UpdateFormDataParams): Promise<void>
2123
+ /**
2124
+ * 根据条件搜索表单实例详情列表,对应原searchFormDatas
2125
+ * @see https://open.dingtalk.com/document/app/querying-form-instance-data
2126
+ */
2127
+ searchFormDatas(
2128
+ params: SearchFormDatasParams,
2129
+ ): Promise<SearchFormDatasResponse>
2130
+ /**
2131
+ * 根据搜索条件获取流程表单实例详情
2132
+ * @see https://open.dingtalk.com/document/app/obtain-process-instance
2133
+ */
2134
+ getInstances(
2135
+ query: GetInstancesQuery,
2136
+ params: GetInstancesParams,
2137
+ ): Promise<GetInstancesResponse>
2138
+ /**
2139
+ * 删除表单实例
2140
+ * @see https://open.dingtalk.com/document/app/delete-form-data
2141
+ */
2142
+ deleteFormData(query: DeleteFormDataQuery): Promise<void>
2143
+ /**
2144
+ * 根据实例 ID 获取流程实例详情
2145
+ * @see https://open.dingtalk.com/document/app/queries-a-process-instance-based-on-its-id
2146
+ */
2147
+ getInstanceById(
2148
+ id: string,
2149
+ query: GetInstanceByIdQuery,
2150
+ ): Promise<GetInstanceByIdResponse>
2151
+ /**
2152
+ * 发起新的流程实例
2153
+ * @see https://open.dingtalk.com/document/app/initiate-the-approval-process
2154
+ */
2155
+ startInstance(params: StartInstanceParams): Promise<StartInstanceResponse>
2156
+ /**
2157
+ * 根据表单 ID 查询实例详情
2158
+ * @see https://open.dingtalk.com/document/app/query-form-data
2159
+ */
2160
+ getFormDataByID(
2161
+ id: string,
2162
+ query: GetFormDataByIDQuery,
2163
+ ): Promise<GetFormDataByIDResponse>
2164
+ }
2165
+ }