@gct-paas/api 0.1.6-dev.9 → 6.0.0-dev.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 (30) hide show
  1. package/dist/index.esm.min.js +1 -1
  2. package/es/apaas/service/api-config.mjs +283 -0
  3. package/es/apaas/service/apis/api.service.d.ts +0 -4
  4. package/es/apaas/service/apis/app-global-settings.service.d.ts +0 -4
  5. package/es/apaas/service/apis/category.service.d.ts +0 -8
  6. package/es/apaas/service/apis/designer-common.service.d.ts +16 -0
  7. package/es/apaas/service/apis/edhr-instance.service.d.ts +4 -16
  8. package/es/apaas/service/apis/excel-tmpl.service.d.ts +8 -0
  9. package/es/apaas/service/apis/excel.service.d.ts +2 -2
  10. package/es/apaas/service/apis/field-meta.service.d.ts +13 -0
  11. package/es/apaas/service/apis/medPro.service.d.ts +108 -0
  12. package/es/apaas/service/apis/message-tmpl.service.d.ts +4 -0
  13. package/es/apaas/service/apis/model-meta.service.d.ts +17 -0
  14. package/es/apaas/service/apis/online-form-instance.service.d.ts +4 -16
  15. package/es/apaas/service/apis/online-form-tmpl.service.d.ts +18 -1
  16. package/es/apaas/service/apis/print.service.d.ts +10 -1
  17. package/es/apaas/service/apis/process-approval-log.service.d.ts +1 -1
  18. package/es/apaas/service/apis/script.service.d.ts +26 -1
  19. package/es/apaas/service/apis/ss.service.d.ts +16 -0
  20. package/es/apaas/service/apis/trace-log-details.service.d.ts +12 -0
  21. package/es/apaas/service/entities.d.ts +860 -16
  22. package/es/apaas/service/index.d.ts +4 -0
  23. package/es/empty.d.ts +2 -0
  24. package/es/empty.mjs +1 -0
  25. package/es/platform/service/api-config.mjs +14 -4
  26. package/es/platform/service/apis/api.service.d.ts +35 -10
  27. package/es/platform/service/apis/app.service.d.ts +0 -4
  28. package/es/platform/service/apis/license.service.d.ts +1 -10
  29. package/es/platform/service/entities.d.ts +12 -0
  30. package/package.json +18 -10
@@ -146,6 +146,15 @@ export interface getTranslateModelFieldExpQuery extends IObject {
146
146
  */
147
147
  exp: string;
148
148
  }
149
+ export interface putUniqueKeyQuery extends IObject {
150
+ /**
151
+ * 模型key
152
+ */
153
+ modelKey: string;
154
+ }
155
+ export interface putUniqueKeyPathParams {
156
+ key: string;
157
+ }
149
158
  export interface getUnrelatedListQuery extends IObject {
150
159
  /**
151
160
  * 模型key
@@ -331,6 +340,14 @@ export interface ModelMetaService {
331
340
  query: getTranslateModelFieldExpQuery,
332
341
  config?: Partial<AxiosRequestConfig>,
333
342
  ): Promise<string>;
343
+ /**
344
+ * 设置模型主字段
345
+ */
346
+ putUniqueKey(
347
+ path: putUniqueKeyPathParams,
348
+ query: putUniqueKeyQuery,
349
+ config?: Partial<AxiosRequestConfig>,
350
+ ): Promise<string>;
334
351
  /**
335
352
  * 查询模型列表过滤已添加过数据权限的模型
336
353
  */
@@ -33,10 +33,6 @@ export interface getAppendixFormListQuery extends IObject {
33
33
  * 工单ID
34
34
  */
35
35
  mfgOrderId?: string;
36
- /**
37
- * 模块类型
38
- */
39
- module?: string;
40
36
  }
41
37
  export interface getDataCollectionListAllQuery extends IObject {
42
38
  /**
@@ -85,10 +81,6 @@ export interface getDhrFormListQuery extends IObject {
85
81
  * 工单ID
86
82
  */
87
83
  mfgOrderId?: string;
88
- /**
89
- * 模块类型
90
- */
91
- module?: string;
92
84
  /**
93
85
  * 类型(production/rework)
94
86
  */
@@ -103,10 +95,6 @@ export interface getFindByMaterialNoQuery extends IObject {
103
95
  * mfgOrderId
104
96
  */
105
97
  mfgOrderId?: string;
106
- /**
107
- * module
108
- */
109
- module?: string;
110
98
  }
111
99
  export interface getFindByMaterialNoAndDocOutlineIdQuery extends IObject {
112
100
  /**
@@ -399,10 +387,6 @@ export interface getRelateFormPageListQuery extends IObject {
399
387
  * Lot/SN 编号
400
388
  */
401
389
  materialNo: string;
402
- /**
403
- * 模块类型
404
- */
405
- module?: string;
406
390
  /**
407
391
  * 页码
408
392
  */
@@ -427,6 +411,10 @@ export interface getReverseTracePageListQuery extends IObject {
427
411
  * 日期结束
428
412
  */
429
413
  endTraceDate?: string;
414
+ /**
415
+ * 外部参考号
416
+ */
417
+ externalReferenceNo?: string;
430
418
  /**
431
419
  * lot/sn
432
420
  */
@@ -2,8 +2,8 @@ import type { AxiosRequestConfig } from 'axios';
2
2
  import type {
3
3
  OnlineFormTmplRequest,
4
4
  ModelBriefInfo,
5
- ModelMetaDTO,
6
5
  OnlineFormTmplResponse,
6
+ ModelMetaDTO,
7
7
  DocumentInfo4Req,
8
8
  OnlineFormTmplModelResponse,
9
9
  SimpleOnlineFormDesignDTO,
@@ -47,6 +47,16 @@ export interface getGetCommunicationConfigQuery extends IObject {
47
47
  */
48
48
  id: string;
49
49
  }
50
+ export interface getGetFormTmplByInstIdAndTmplIdQuery extends IObject {
51
+ /**
52
+ * 表单实例id
53
+ */
54
+ instId?: string;
55
+ /**
56
+ * 表单模板id
57
+ */
58
+ tmplId?: string;
59
+ }
50
60
  export interface getGetFormTmplUsedFieldMetaQuery extends IObject {
51
61
  /**
52
62
  * formTmplId
@@ -182,6 +192,13 @@ export interface OnlineFormTmplService {
182
192
  query: getGetCommunicationConfigQuery,
183
193
  config?: Partial<AxiosRequestConfig>,
184
194
  ): Promise<string>;
195
+ /**
196
+ * 根据表单实例id或表单模板id查询表单模板
197
+ */
198
+ getGetFormTmplByInstIdAndTmplId(
199
+ query: getGetFormTmplByInstIdAndTmplIdQuery,
200
+ config?: Partial<AxiosRequestConfig>,
201
+ ): Promise<OnlineFormTmplResponse>;
185
202
  /**
186
203
  * 获取表单中使用的字段
187
204
  */
@@ -4,13 +4,15 @@ import type {
4
4
  FrontendPrintRequest,
5
5
  PrintCode,
6
6
  BackEndPrintRequest,
7
+ PreviewPrintRequest,
8
+ PrintPreviewResponse,
7
9
  PrintServiceTreeVO,
8
10
  PrintAdapterDTO,
9
11
  } from '../entities';
10
12
 
11
13
  export interface PrintService {
12
14
  /**
13
- * 打印客户端关联bartender模板目录树下拉
15
+ * btw模板树
14
16
  */
15
17
  getBtwFileTree(
16
18
  config?: Partial<AxiosRequestConfig>,
@@ -29,6 +31,13 @@ export interface PrintService {
29
31
  data: BackEndPrintRequest,
30
32
  config?: Partial<AxiosRequestConfig>,
31
33
  ): Promise<boolean>;
34
+ /**
35
+ * 预览
36
+ */
37
+ postPreview(
38
+ data: PreviewPrintRequest,
39
+ config?: Partial<AxiosRequestConfig>,
40
+ ): Promise<PrintPreviewResponse>;
32
41
  /**
33
42
  * 获取打印机下拉集合
34
43
  */
@@ -15,7 +15,7 @@ export interface getApproveHistoryQuery extends IObject {
15
15
  /**
16
16
  * id_
17
17
  */
18
- id: string;
18
+ id_: string;
19
19
  }
20
20
  export interface getInfoQuery extends IObject {
21
21
  /**
@@ -1,5 +1,12 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import type { AxiosRequestConfig } from 'axios';
2
- import type { ScriptRequest, ScriptResponse } from '../entities';
3
+ import type {
4
+ ScriptRequest,
5
+ ScriptImportDTO,
6
+ ScriptImportResultDTO,
7
+ ScriptMergePreviewDTO,
8
+ ScriptResponse,
9
+ } from '../entities';
3
10
 
4
11
  export interface deleteQuery extends IObject {
5
12
  /**
@@ -79,6 +86,24 @@ export interface ScriptService {
79
86
  query: deleteQuery,
80
87
  config?: Partial<AxiosRequestConfig>,
81
88
  ): Promise<string>;
89
+ /**
90
+ * 脚本导出
91
+ */
92
+ postExport(config?: Partial<AxiosRequestConfig>): Promise<any>;
93
+ /**
94
+ * 导入
95
+ */
96
+ postImport(
97
+ data: ScriptImportDTO,
98
+ config?: Partial<AxiosRequestConfig>,
99
+ ): Promise<ScriptImportResultDTO[]>;
100
+ /**
101
+ * 脚本导入预览
102
+ */
103
+ postImportPreview(
104
+ data: UploadFileData,
105
+ config?: Partial<AxiosRequestConfig>,
106
+ ): Promise<IHttpResponse<ScriptMergePreviewDTO[]>>;
82
107
  /**
83
108
  * 详情
84
109
  */
@@ -1,5 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import type { AxiosRequestConfig } from 'axios';
3
+ import type { ExcelValidateResponse } from '../entities';
4
+
3
5
  export interface postUploadExcelQuery extends IObject {
4
6
  /**
5
7
  * headerRowIndex
@@ -23,4 +25,18 @@ export interface SsService {
23
25
  data: UploadFileData,
24
26
  config?: Partial<AxiosRequestConfig>,
25
27
  ): Promise<any>;
28
+ /**
29
+ * 串行工作流导入
30
+ */
31
+ postUploadImportSerialWorkflow(
32
+ data: UploadFileData,
33
+ config?: Partial<AxiosRequestConfig>,
34
+ ): Promise<IHttpResponse<object>>;
35
+ /**
36
+ * zip上传解析
37
+ */
38
+ postUploadZip(
39
+ data: UploadFileData,
40
+ config?: Partial<AxiosRequestConfig>,
41
+ ): Promise<IHttpResponse<ExcelValidateResponse>>;
26
42
  }
@@ -18,6 +18,10 @@ export interface getInfoQuery extends IObject {
18
18
  id: string;
19
19
  }
20
20
  export interface getInfoTreeQuery extends IObject {
21
+ /**
22
+ * 模型KEY
23
+ */
24
+ modelKey: string;
21
25
  /**
22
26
  * traceLogId
23
27
  */
@@ -28,6 +32,10 @@ export interface getInfoTreeByIdQuery extends IObject {
28
32
  * id
29
33
  */
30
34
  id: string;
35
+ /**
36
+ * 模型KEY
37
+ */
38
+ modelKey: string;
31
39
  }
32
40
  export interface getPageListQuery extends IObject {
33
41
  /**
@@ -40,6 +48,10 @@ export interface getPageListQuery extends IObject {
40
48
  pageSize?: number;
41
49
  }
42
50
  export interface getPageListByRecodeIdQuery extends IObject {
51
+ /**
52
+ * 模型KEY
53
+ */
54
+ modelKey: string;
43
55
  /**
44
56
  * 页码
45
57
  */