@gct-paas/api 0.1.6-dev.1 → 0.1.6-dev.11

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 (35) hide show
  1. package/dist/index.esm.min.js +1 -1
  2. package/es/apaas/service/api-config.mjs +103 -4
  3. package/es/apaas/service/apis/api.service.d.ts +2 -1
  4. package/es/apaas/service/apis/app-global-settings.service.d.ts +4 -0
  5. package/es/apaas/service/apis/app-org.service.d.ts +4 -0
  6. package/es/apaas/service/apis/category.service.d.ts +0 -8
  7. package/es/apaas/service/apis/chat.service.d.ts +2 -1
  8. package/es/apaas/service/apis/detail-page.service.d.ts +96 -0
  9. package/es/apaas/service/apis/edhr-instance.service.d.ts +4 -8
  10. package/es/apaas/service/apis/excel.service.d.ts +4 -2
  11. package/es/apaas/service/apis/medPro.service.d.ts +108 -0
  12. package/es/apaas/service/apis/online-form-instance.service.d.ts +4 -12
  13. package/es/apaas/service/apis/online-form-tmpl.service.d.ts +18 -1
  14. package/es/apaas/service/apis/ss.service.d.ts +9 -0
  15. package/es/apaas/service/apis/transaction.service.d.ts +157 -0
  16. package/es/apaas/service/apis/user.service.d.ts +31 -0
  17. package/es/apaas/service/entities.d.ts +24 -37
  18. package/es/platform/service/api-config.mjs +10 -4
  19. package/es/platform/service/apis/api.service.d.ts +10 -1
  20. package/es/platform/service/apis/app.service.d.ts +4 -0
  21. package/es/platform/service/apis/dashboard.service.d.ts +0 -4
  22. package/es/platform/service/apis/license.service.d.ts +12 -2
  23. package/es/platform/service/apis/org.service.d.ts +0 -4
  24. package/es/platform/service/apis/plugin.service.d.ts +2 -1
  25. package/es/platform/service/apis/tenant.service.d.ts +0 -4
  26. package/es/platform/service/entities.d.ts +0 -1
  27. package/es/service/index.mjs +0 -2
  28. package/es/types/index.d.ts +8 -0
  29. package/es/utils/index.d.ts +0 -1
  30. package/es/utils/index.mjs +0 -1
  31. package/package.json +4 -4
  32. package/es/service/request.client.d.ts +0 -6
  33. package/es/service/request.client.mjs +0 -35
  34. package/es/utils/native-http/native-http.d.ts +0 -6
  35. package/es/utils/native-http/native-http.mjs +0 -63
@@ -27,11 +27,89 @@ export const apiConfig = [
27
27
  path: "modelMeta/modelDataAssociation",
28
28
  hasQuery: true
29
29
  },
30
+ {
31
+ mode: "post",
32
+ method: "postApproveProcessApprove",
33
+ path: "approve/process/approve",
34
+ hasData: true
35
+ },
36
+ {
37
+ mode: "post",
38
+ method: "postApproveProcessInterfereReassign",
39
+ path: "approve/process/interfere/reassign",
40
+ hasData: true
41
+ },
42
+ {
43
+ mode: "post",
44
+ method: "postApproveProcessInterfereReturn",
45
+ path: "approve/process/interfere/return",
46
+ hasData: true
47
+ },
48
+ {
49
+ mode: "post",
50
+ method: "postApproveProcessJump",
51
+ path: "approve/process/jump",
52
+ hasData: true
53
+ },
54
+ {
55
+ mode: "post",
56
+ method: "postApproveProcessReassign",
57
+ path: "approve/process/reassign",
58
+ hasData: true
59
+ },
60
+ {
61
+ mode: "post",
62
+ method: "postApproveProcessReturn",
63
+ path: "approve/process/return",
64
+ hasData: true
65
+ },
30
66
  {
31
67
  mode: "get",
32
68
  method: "getEdhrAttachmentGetEdhrAttachment",
33
69
  path: "edhrAttachment/getEdhrAttachment",
34
70
  hasQuery: true
71
+ },
72
+ {
73
+ mode: "post",
74
+ method: "postFileUnzip",
75
+ path: "file/unzip",
76
+ hasQuery: true
77
+ },
78
+ {
79
+ mode: "post",
80
+ method: "postFormChangeProcessApprove",
81
+ path: "form/change/process/approve",
82
+ hasData: true
83
+ },
84
+ {
85
+ mode: "post",
86
+ method: "postFormChangeProcessInterfereReassign",
87
+ path: "form/change/process/interfere/reassign",
88
+ hasData: true
89
+ },
90
+ {
91
+ mode: "post",
92
+ method: "postFormChangeProcessInterfereReturn",
93
+ path: "form/change/process/interfere/return",
94
+ hasData: true
95
+ },
96
+ {
97
+ mode: "post",
98
+ method: "postFormChangeProcessJump",
99
+ path: "form/change/process/jump",
100
+ hasData: true
101
+ },
102
+ {
103
+ mode: "post",
104
+ method: "postFormChangeProcessReassign",
105
+ path: "form/change/process/reassign",
106
+ hasData: true
107
+ },
108
+ {
109
+ mode: "post",
110
+ method: "postFormChangeProcessReturn",
111
+ path: "form/change/process/return",
112
+ hasData: true
35
113
  }
36
114
  ]
37
115
  },
@@ -917,7 +995,9 @@ export const apiConfig = [
917
995
  mode: "post",
918
996
  method: "postImportExcel",
919
997
  path: "importExcel",
920
- hasQuery: true
998
+ hasUpload: true,
999
+ hasQuery: true,
1000
+ hasData: true
921
1001
  }
922
1002
  ]
923
1003
  },
@@ -2536,7 +2616,9 @@ export const apiConfig = [
2536
2616
  mode: "post",
2537
2617
  method: "postDataImport",
2538
2618
  path: "data/import",
2539
- hasQuery: true
2619
+ hasUpload: true,
2620
+ hasQuery: true,
2621
+ hasData: true
2540
2622
  },
2541
2623
  {
2542
2624
  mode: "get",
@@ -2554,7 +2636,9 @@ export const apiConfig = [
2554
2636
  mode: "post",
2555
2637
  method: "postDataValidate",
2556
2638
  path: "data/validate",
2557
- hasQuery: true
2639
+ hasUpload: true,
2640
+ hasQuery: true,
2641
+ hasData: true
2558
2642
  }
2559
2643
  ]
2560
2644
  },
@@ -4740,6 +4824,12 @@ export const apiConfig = [
4740
4824
  path: "getCommunicationConfig",
4741
4825
  hasQuery: true
4742
4826
  },
4827
+ {
4828
+ mode: "get",
4829
+ method: "getGetFormTmplByInstIdAndTmplId",
4830
+ path: "getFormTmplByInstIdAndTmplId",
4831
+ hasQuery: true
4832
+ },
4743
4833
  {
4744
4834
  mode: "get",
4745
4835
  method: "getGetFormTmplUsedFieldMeta",
@@ -7243,6 +7333,13 @@ export const apiConfig = [
7243
7333
  hasUpload: true,
7244
7334
  hasQuery: true,
7245
7335
  hasData: true
7336
+ },
7337
+ {
7338
+ mode: "post",
7339
+ method: "postUploadZip",
7340
+ path: "upload/zip",
7341
+ hasUpload: true,
7342
+ hasData: true
7246
7343
  }
7247
7344
  ]
7248
7345
  },
@@ -8161,8 +8258,10 @@ export const apiConfig = [
8161
8258
  mode: "post",
8162
8259
  method: "postModelComprehensiveBizServiceModelCategoryModelKeyUpload",
8163
8260
  path: "model-comprehensive/biz-service/{modelCategory}/{modelKey}/upload",
8261
+ hasUpload: true,
8164
8262
  hasPathParams: true,
8165
- hasQuery: true
8263
+ hasQuery: true,
8264
+ hasData: true
8166
8265
  },
8167
8266
  {
8168
8267
  mode: "get",
@@ -678,8 +678,9 @@ export interface ApiService {
678
678
  postModelComprehensiveBizServiceModelCategoryModelKeyUpload(
679
679
  path: postModelComprehensiveBizServiceModelCategoryModelKeyUploadPathParams,
680
680
  query: postModelComprehensiveBizServiceModelCategoryModelKeyUploadQuery,
681
+ data: UploadFileData,
681
682
  config?: Partial<AxiosRequestConfig>,
682
- ): Promise<object>;
683
+ ): Promise<IHttpResponse<object>>;
683
684
  /**
684
685
  * 业务服务get请求接口
685
686
  */
@@ -29,6 +29,10 @@ export interface getListQuery extends IObject {
29
29
  * 查询全量信息时传 true,否则只查询简要信息
30
30
  */
31
31
  fullInfo?: boolean;
32
+ /**
33
+ * 来源
34
+ */
35
+ source?: string;
32
36
  /**
33
37
  * 类型
34
38
  */
@@ -71,6 +71,10 @@ export interface getUserPageListQuery extends IObject {
71
71
  * 排序方式:ASC/DESC, 不传默认 ASC
72
72
  */
73
73
  sortType?: string;
74
+ /**
75
+ * 参数来源,0企业后台管理、1租户后台管理
76
+ */
77
+ source?: number;
74
78
  /**
75
79
  * 创建开始时间
76
80
  */
@@ -34,10 +34,6 @@ export interface getListQuery extends IObject {
34
34
  * 结束时间
35
35
  */
36
36
  endTime?: string;
37
- /**
38
- * 所属模块(实体、枚举、web页面)
39
- */
40
- module?: string;
41
37
  /**
42
38
  * 应用名称
43
39
  */
@@ -216,10 +212,6 @@ export interface getPageListQuery extends IObject {
216
212
  * 结束时间
217
213
  */
218
214
  endTime?: string;
219
- /**
220
- * 所属模块(实体、枚举、web页面)
221
- */
222
- module?: string;
223
215
  /**
224
216
  * 应用名称
225
217
  */
@@ -15,6 +15,7 @@ export interface ChatService {
15
15
  */
16
16
  postImportExcel(
17
17
  query: postImportExcelQuery,
18
+ data: UploadFileData,
18
19
  config?: Partial<AxiosRequestConfig>,
19
- ): Promise<object>;
20
+ ): Promise<IHttpResponse<object>>;
20
21
  }
@@ -0,0 +1,96 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { DetailPageRequest, DetailPageResponse } from '../entities';
3
+
4
+ export interface deleteQuery extends IObject {
5
+ /**
6
+ * 删除的id,多个按','分割
7
+ */
8
+ ids: string;
9
+ }
10
+ export interface postCopyByIdIdPathParams {
11
+ id: string;
12
+ }
13
+ export interface getInfoQuery extends IObject {
14
+ /**
15
+ * id
16
+ */
17
+ id: string;
18
+ }
19
+ export interface getPageListQuery extends IObject {
20
+ /**
21
+ * 搜索条件
22
+ */
23
+ keyword?: string;
24
+ /**
25
+ * 页码
26
+ */
27
+ pageNo?: number;
28
+ /**
29
+ * 每页数据条数
30
+ */
31
+ pageSize?: number;
32
+ }
33
+ export interface putUpdateDesignerJsonIdPathParams {
34
+ id: string;
35
+ }
36
+ export interface putIdPathParams {
37
+ id: string;
38
+ }
39
+ export interface DetailPageService {
40
+ /**
41
+ * 保存
42
+ */
43
+ post(
44
+ data: DetailPageRequest,
45
+ config?: Partial<AxiosRequestConfig>,
46
+ ): Promise<string>;
47
+ /**
48
+ * 删除
49
+ */
50
+ delete(
51
+ query: deleteQuery,
52
+ config?: Partial<AxiosRequestConfig>,
53
+ ): Promise<string>;
54
+ /**
55
+ * 复制页面
56
+ */
57
+ postCopyByIdId(
58
+ path: postCopyByIdIdPathParams,
59
+ data: DetailPageRequest,
60
+ config?: Partial<AxiosRequestConfig>,
61
+ ): Promise<string>;
62
+ /**
63
+ * 详情
64
+ */
65
+ getInfo(
66
+ query: getInfoQuery,
67
+ config?: Partial<AxiosRequestConfig>,
68
+ ): Promise<DetailPageResponse>;
69
+ /**
70
+ * 列表
71
+ */
72
+ getList(config?: Partial<AxiosRequestConfig>): Promise<DetailPageResponse[]>;
73
+ /**
74
+ * 分页列表
75
+ */
76
+ getPageList(
77
+ query: getPageListQuery,
78
+ config?: Partial<AxiosRequestConfig>,
79
+ ): Promise<IPage<DetailPageResponse>>;
80
+ /**
81
+ * 修改webPage页面设计Json
82
+ */
83
+ putUpdateDesignerJsonId(
84
+ path: putUpdateDesignerJsonIdPathParams,
85
+ data: DetailPageRequest,
86
+ config?: Partial<AxiosRequestConfig>,
87
+ ): Promise<string>;
88
+ /**
89
+ * 修改
90
+ */
91
+ putId(
92
+ path: putIdPathParams,
93
+ data: DetailPageRequest,
94
+ config?: Partial<AxiosRequestConfig>,
95
+ ): Promise<string>;
96
+ }
@@ -27,10 +27,6 @@ export interface getFindMaterialNoQuery extends IObject {
27
27
  * 批次号
28
28
  */
29
29
  materialNo?: string;
30
- /**
31
- * 模块类型
32
- */
33
- module?: string;
34
30
  /**
35
31
  * 页码
36
32
  */
@@ -169,6 +165,10 @@ export interface getReversePageListQuery extends IObject {
169
165
  * 记录单号
170
166
  */
171
167
  recordNo?: string;
168
+ /**
169
+ * 关联批次
170
+ */
171
+ relatedLotNo?: string;
172
172
  /**
173
173
  * 排序字段
174
174
  */
@@ -191,10 +191,6 @@ export interface getRunningPageQuery extends IObject {
191
191
  * 批次号
192
192
  */
193
193
  materialNo?: string;
194
- /**
195
- * 模块类型
196
- */
197
- module?: string;
198
194
  /**
199
195
  * 页码
200
196
  */
@@ -122,8 +122,9 @@ export interface ExcelService {
122
122
  */
123
123
  postDataImport(
124
124
  query: postDataImportQuery,
125
+ data: UploadFileData,
125
126
  config?: Partial<AxiosRequestConfig>,
126
- ): Promise<object>;
127
+ ): Promise<IHttpResponse<object>>;
127
128
  /**
128
129
  * excel数据导入数据预览
129
130
  */
@@ -143,6 +144,7 @@ export interface ExcelService {
143
144
  */
144
145
  postDataValidate(
145
146
  query: postDataValidateQuery,
147
+ data: UploadFileData,
146
148
  config?: Partial<AxiosRequestConfig>,
147
- ): Promise<ExcelValidateResponse>;
149
+ ): Promise<IHttpResponse<ExcelValidateResponse>>;
148
150
  }
@@ -2,7 +2,18 @@ import type { AxiosRequestConfig } from 'axios';
2
2
  import type {
3
3
  modelDataAssociationRequest,
4
4
  ModelAssociationResponse,
5
+ ProcessApproveRequest,
6
+ ProcessReassign4InterfereRequest,
7
+ ProcessReturn4InterfereRequest,
8
+ DhrProcessJumpRequest,
9
+ ProcessReassignRequest,
10
+ ProcessReturnRequest,
5
11
  OnlineFormInstance,
12
+ DhrProcessApproveRequest,
13
+ DhrProcessReassign4InterfereRequest,
14
+ DhrProcessReturn4InterfereRequest,
15
+ DhrProcessReassignRequest,
16
+ DhrProcessReturnRequest,
6
17
  } from '../entities';
7
18
 
8
19
  export interface getModelMetaGetSysConfigQuery extends IObject {
@@ -37,6 +48,12 @@ export interface getEdhrAttachmentGetEdhrAttachmentQuery extends IObject {
37
48
  */
38
49
  materialNo: string;
39
50
  }
51
+ export interface postFileUnzipQuery extends IObject {
52
+ /**
53
+ * url
54
+ */
55
+ url: string;
56
+ }
40
57
  export interface MedProService {
41
58
  /**
42
59
  * 关联模型数据查询
@@ -66,6 +83,48 @@ export interface MedProService {
66
83
  query: getModelMetaModelDataAssociationQuery,
67
84
  config?: Partial<AxiosRequestConfig>,
68
85
  ): Promise<ModelAssociationResponse[]>;
86
+ /**
87
+ * 审核
88
+ */
89
+ postApproveProcessApprove(
90
+ data: ProcessApproveRequest,
91
+ config?: Partial<AxiosRequestConfig>,
92
+ ): Promise<string>;
93
+ /**
94
+ * 流程干预转办
95
+ */
96
+ postApproveProcessInterfereReassign(
97
+ data: ProcessReassign4InterfereRequest,
98
+ config?: Partial<AxiosRequestConfig>,
99
+ ): Promise<string>;
100
+ /**
101
+ * 流程干预退回
102
+ */
103
+ postApproveProcessInterfereReturn(
104
+ data: ProcessReturn4InterfereRequest,
105
+ config?: Partial<AxiosRequestConfig>,
106
+ ): Promise<string>;
107
+ /**
108
+ * 根据按钮key跳转流程节点
109
+ */
110
+ postApproveProcessJump(
111
+ data: DhrProcessJumpRequest,
112
+ config?: Partial<AxiosRequestConfig>,
113
+ ): Promise<string>;
114
+ /**
115
+ * 转办
116
+ */
117
+ postApproveProcessReassign(
118
+ data: ProcessReassignRequest,
119
+ config?: Partial<AxiosRequestConfig>,
120
+ ): Promise<string>;
121
+ /**
122
+ * 退回
123
+ */
124
+ postApproveProcessReturn(
125
+ data: ProcessReturnRequest,
126
+ config?: Partial<AxiosRequestConfig>,
127
+ ): Promise<string>;
69
128
  /**
70
129
  * 获取Edhr附录接口
71
130
  */
@@ -73,4 +132,53 @@ export interface MedProService {
73
132
  query: getEdhrAttachmentGetEdhrAttachmentQuery,
74
133
  config?: Partial<AxiosRequestConfig>,
75
134
  ): Promise<OnlineFormInstance[]>;
135
+ /**
136
+ * 解压出pdf
137
+ */
138
+ postFileUnzip(
139
+ query: postFileUnzipQuery,
140
+ config?: Partial<AxiosRequestConfig>,
141
+ ): Promise<string>;
142
+ /**
143
+ * 审核
144
+ */
145
+ postFormChangeProcessApprove(
146
+ data: DhrProcessApproveRequest,
147
+ config?: Partial<AxiosRequestConfig>,
148
+ ): Promise<string>;
149
+ /**
150
+ * 流程干预转办
151
+ */
152
+ postFormChangeProcessInterfereReassign(
153
+ data: DhrProcessReassign4InterfereRequest,
154
+ config?: Partial<AxiosRequestConfig>,
155
+ ): Promise<string>;
156
+ /**
157
+ * 流程干预退回
158
+ */
159
+ postFormChangeProcessInterfereReturn(
160
+ data: DhrProcessReturn4InterfereRequest,
161
+ config?: Partial<AxiosRequestConfig>,
162
+ ): Promise<string>;
163
+ /**
164
+ * 根据按钮key跳转流程节点
165
+ */
166
+ postFormChangeProcessJump(
167
+ data: DhrProcessJumpRequest,
168
+ config?: Partial<AxiosRequestConfig>,
169
+ ): Promise<string>;
170
+ /**
171
+ * 转办
172
+ */
173
+ postFormChangeProcessReassign(
174
+ data: DhrProcessReassignRequest,
175
+ config?: Partial<AxiosRequestConfig>,
176
+ ): Promise<string>;
177
+ /**
178
+ * 退回
179
+ */
180
+ postFormChangeProcessReturn(
181
+ data: DhrProcessReturnRequest,
182
+ config?: Partial<AxiosRequestConfig>,
183
+ ): Promise<string>;
76
184
  }
@@ -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
  /**
@@ -103,10 +99,6 @@ export interface getFindByMaterialNoQuery extends IObject {
103
99
  * mfgOrderId
104
100
  */
105
101
  mfgOrderId?: string;
106
- /**
107
- * module
108
- */
109
- module?: string;
110
102
  }
111
103
  export interface getFindByMaterialNoAndDocOutlineIdQuery extends IObject {
112
104
  /**
@@ -399,10 +391,6 @@ export interface getRelateFormPageListQuery extends IObject {
399
391
  * Lot/SN 编号
400
392
  */
401
393
  materialNo: string;
402
- /**
403
- * 模块类型
404
- */
405
- module?: string;
406
394
  /**
407
395
  * 页码
408
396
  */
@@ -463,6 +451,10 @@ export interface getReverseTracePageListQuery extends IObject {
463
451
  * 记录单号
464
452
  */
465
453
  recordNo?: string;
454
+ /**
455
+ * 关联批次
456
+ */
457
+ relatedLotNo?: string;
466
458
  /**
467
459
  * 排序字段
468
460
  */
@@ -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
  */
@@ -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,11 @@ export interface SsService {
23
25
  data: UploadFileData,
24
26
  config?: Partial<AxiosRequestConfig>,
25
27
  ): Promise<any>;
28
+ /**
29
+ * zip上传解析
30
+ */
31
+ postUploadZip(
32
+ data: UploadFileData,
33
+ config?: Partial<AxiosRequestConfig>,
34
+ ): Promise<IHttpResponse<ExcelValidateResponse>>;
26
35
  }