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