@gct-paas/api 6.0.0-dev.12 → 6.0.0-dev.13

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.
@@ -0,0 +1,148 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type {
3
+ MdmCategoryRequest,
4
+ ResponseEntity,
5
+ CategoryDragDTO,
6
+ MdmCategoryResponse,
7
+ } from '../entities';
8
+
9
+ export interface deleteQuery extends IObject {
10
+ /**
11
+ * 删除的分类id
12
+ */
13
+ id: string;
14
+ }
15
+ export interface putApproveTmplDisableQuery extends IObject {
16
+ /**
17
+ * 逗号拼接id
18
+ */
19
+ ids: string;
20
+ }
21
+ export interface putApproveTmplEnableQuery extends IObject {
22
+ /**
23
+ * 逗号拼接id
24
+ */
25
+ ids: string;
26
+ }
27
+ export interface getInfoQuery extends IObject {
28
+ /**
29
+ * id
30
+ */
31
+ id: string;
32
+ }
33
+ export interface getListQuery extends IObject {
34
+ /**
35
+ * 业务分类
36
+ */
37
+ bizType?: string;
38
+ }
39
+ export interface getPageListQuery extends IObject {
40
+ /**
41
+ * 业务分类
42
+ */
43
+ bizType?: string;
44
+ /**
45
+ * 页码
46
+ */
47
+ pageNo?: number;
48
+ /**
49
+ * 每页数据条数
50
+ */
51
+ pageSize?: number;
52
+ }
53
+ export interface getTreeQuery extends IObject {
54
+ /**
55
+ * 业务分类
56
+ */
57
+ bizType?: string;
58
+ /**
59
+ * 排序方式,默认升序,传 desc 为降序
60
+ */
61
+ sortType?: string;
62
+ }
63
+ export interface putIdPathParams {
64
+ id: string;
65
+ }
66
+ export interface postIdCreateProcessPathParams {
67
+ id: string;
68
+ }
69
+ export interface MdmCategoryService {
70
+ /**
71
+ * 保存
72
+ */
73
+ post(
74
+ data: MdmCategoryRequest,
75
+ config?: Partial<AxiosRequestConfig>,
76
+ ): Promise<string>;
77
+ /**
78
+ * 分类删除
79
+ */
80
+ delete(
81
+ query: deleteQuery,
82
+ config?: Partial<AxiosRequestConfig>,
83
+ ): Promise<string>;
84
+ /**
85
+ * 禁用
86
+ */
87
+ putApproveTmplDisable(
88
+ query: putApproveTmplDisableQuery,
89
+ config?: Partial<AxiosRequestConfig>,
90
+ ): Promise<ResponseEntity>;
91
+ /**
92
+ * 启用
93
+ */
94
+ putApproveTmplEnable(
95
+ query: putApproveTmplEnableQuery,
96
+ config?: Partial<AxiosRequestConfig>,
97
+ ): Promise<ResponseEntity>;
98
+ /**
99
+ * 拖拽
100
+ */
101
+ putDrag(
102
+ data: CategoryDragDTO,
103
+ config?: Partial<AxiosRequestConfig>,
104
+ ): Promise<ResponseEntity>;
105
+ /**
106
+ * 详情
107
+ */
108
+ getInfo(
109
+ query: getInfoQuery,
110
+ config?: Partial<AxiosRequestConfig>,
111
+ ): Promise<MdmCategoryResponse>;
112
+ /**
113
+ * 列表
114
+ */
115
+ getList(
116
+ query: getListQuery,
117
+ config?: Partial<AxiosRequestConfig>,
118
+ ): Promise<MdmCategoryResponse[]>;
119
+ /**
120
+ * 分页列表
121
+ */
122
+ getPageList(
123
+ query: getPageListQuery,
124
+ config?: Partial<AxiosRequestConfig>,
125
+ ): Promise<IPage<MdmCategoryResponse>>;
126
+ /**
127
+ * 分类树
128
+ */
129
+ getTree(
130
+ query: getTreeQuery,
131
+ config?: Partial<AxiosRequestConfig>,
132
+ ): Promise<MdmCategoryResponse[]>;
133
+ /**
134
+ * 修改
135
+ */
136
+ putId(
137
+ path: putIdPathParams,
138
+ data: MdmCategoryRequest,
139
+ config?: Partial<AxiosRequestConfig>,
140
+ ): Promise<string>;
141
+ /**
142
+ * 创建流程并返回流程id
143
+ */
144
+ postIdCreateProcess(
145
+ path: postIdCreateProcessPathParams,
146
+ config?: Partial<AxiosRequestConfig>,
147
+ ): Promise<string>;
148
+ }
@@ -19,6 +19,10 @@ export interface getListByModelKeyQuery extends IObject {
19
19
  modelKey: string;
20
20
  }
21
21
  export interface getPageListQuery extends IObject {
22
+ /**
23
+ * businessType
24
+ */
25
+ businessType?: string;
22
26
  /**
23
27
  * key
24
28
  */
@@ -1,7 +1,13 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
+ export interface postQuery extends IObject {
3
+ /**
4
+ * 模型精度
5
+ */
6
+ modelPrecision?: string;
7
+ }
2
8
  export interface OcrService {
3
9
  /**
4
10
  * 转发所有POST请求
5
11
  */
6
- post(config?: Partial<AxiosRequestConfig>): Promise<object>;
12
+ post(query: postQuery, config?: Partial<AxiosRequestConfig>): Promise<object>;
7
13
  }
@@ -1,8 +1,8 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
2
  import type {
3
3
  OnlineFormCategoryRequest,
4
- CategoryDragDTO,
5
4
  ResponseEntity,
5
+ CategoryDragDTO,
6
6
  OnlineFormCategoryResponse,
7
7
  } from '../entities';
8
8
 
@@ -12,6 +12,18 @@ export interface deleteQuery extends IObject {
12
12
  */
13
13
  id: string;
14
14
  }
15
+ export interface putApproveTmplDisableQuery extends IObject {
16
+ /**
17
+ * 逗号拼接id
18
+ */
19
+ ids: string;
20
+ }
21
+ export interface putApproveTmplEnableQuery extends IObject {
22
+ /**
23
+ * 逗号拼接id
24
+ */
25
+ ids: string;
26
+ }
15
27
  export interface getInfoQuery extends IObject {
16
28
  /**
17
29
  * id
@@ -46,6 +58,20 @@ export interface OnlineFormCategoryService {
46
58
  query: deleteQuery,
47
59
  config?: Partial<AxiosRequestConfig>,
48
60
  ): Promise<string>;
61
+ /**
62
+ * 禁用
63
+ */
64
+ putApproveTmplDisable(
65
+ query: putApproveTmplDisableQuery,
66
+ config?: Partial<AxiosRequestConfig>,
67
+ ): Promise<ResponseEntity>;
68
+ /**
69
+ * 启用
70
+ */
71
+ putApproveTmplEnable(
72
+ query: putApproveTmplEnableQuery,
73
+ config?: Partial<AxiosRequestConfig>,
74
+ ): Promise<ResponseEntity>;
49
75
  /**
50
76
  * 拖拽
51
77
  */
@@ -29,6 +29,10 @@ export interface getAppendixFormListQuery extends IObject {
29
29
  * 工单ID
30
30
  */
31
31
  mfgOrderId?: string;
32
+ /**
33
+ * 模块类型
34
+ */
35
+ module?: string;
32
36
  }
33
37
  export interface getDataIdsQuery extends IObject {
34
38
  /**
@@ -71,6 +75,10 @@ export interface getDhrFormListQuery extends IObject {
71
75
  * 工单ID
72
76
  */
73
77
  mfgOrderId?: string;
78
+ /**
79
+ * 模块类型
80
+ */
81
+ module?: string;
74
82
  /**
75
83
  * 类型(production/rework)
76
84
  */
@@ -85,6 +93,10 @@ export interface getFindByMaterialNoQuery extends IObject {
85
93
  * mfgOrderId
86
94
  */
87
95
  mfgOrderId?: string;
96
+ /**
97
+ * module
98
+ */
99
+ module?: string;
88
100
  }
89
101
  export interface getFindByMaterialNoAndDocOutlineIdQuery extends IObject {
90
102
  /**
@@ -31,6 +31,16 @@ export interface getGetBomByFormTmplIdQuery extends IObject {
31
31
  */
32
32
  id: string;
33
33
  }
34
+ export interface getGetBomByFormTmplIdAndObjectKeyQuery extends IObject {
35
+ /**
36
+ * id
37
+ */
38
+ id: string;
39
+ /**
40
+ * objectKey
41
+ */
42
+ objectKey: string;
43
+ }
34
44
  export interface getGetBomByFormTmplIdAndTableKeyQuery extends IObject {
35
45
  /**
36
46
  * id
@@ -83,6 +93,28 @@ export interface getListBaseAndProcessFormQuery extends IObject {
83
93
  */
84
94
  name?: string;
85
95
  }
96
+ export interface getListBaseAndProcessFormPageQuery extends IObject {
97
+ /**
98
+ * 分类id
99
+ */
100
+ categoryId?: string;
101
+ /**
102
+ * 表单类型
103
+ */
104
+ formType?: string;
105
+ /**
106
+ * 表单名称
107
+ */
108
+ name?: string;
109
+ /**
110
+ * 页码
111
+ */
112
+ pageNo?: number;
113
+ /**
114
+ * 每页数据条数
115
+ */
116
+ pageSize?: number;
117
+ }
86
118
  export interface getListOnlineFormModelsQuery extends IObject {
87
119
  /**
88
120
  * name
@@ -179,7 +211,14 @@ export interface OnlineFormTmplService {
179
211
  config?: Partial<AxiosRequestConfig>,
180
212
  ): Promise<IObject[]>;
181
213
  /**
182
- * 根据ID获取表单BOM
214
+ * 根据ID获取表单对象BOM
215
+ */
216
+ getGetBomByFormTmplIdAndObjectKey(
217
+ query: getGetBomByFormTmplIdAndObjectKeyQuery,
218
+ config?: Partial<AxiosRequestConfig>,
219
+ ): Promise<IObject>;
220
+ /**
221
+ * 根据ID获取表单子表BOM
183
222
  */
184
223
  getGetBomByFormTmplIdAndTableKey(
185
224
  query: getGetBomByFormTmplIdAndTableKeyQuery,
@@ -231,6 +270,13 @@ export interface OnlineFormTmplService {
231
270
  query: getListBaseAndProcessFormQuery,
232
271
  config?: Partial<AxiosRequestConfig>,
233
272
  ): Promise<OnlineFormTmplResponse[]>;
273
+ /**
274
+ * 分页获取所有基础表单和流程表单
275
+ */
276
+ getListBaseAndProcessFormPage(
277
+ query: getListBaseAndProcessFormPageQuery,
278
+ config?: Partial<AxiosRequestConfig>,
279
+ ): Promise<IPage<OnlineFormTmplResponse>>;
234
280
  /**
235
281
  * 获取所有基础表单和流程表单及其对应模型
236
282
  */