@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.
@@ -1214,7 +1214,8 @@ export const apiConfig = [
1214
1214
  {
1215
1215
  mode: "post",
1216
1216
  method: "post",
1217
- path: ""
1217
+ path: "",
1218
+ hasData: true
1218
1219
  },
1219
1220
  {
1220
1221
  mode: "delete",
@@ -1253,6 +1254,12 @@ export const apiConfig = [
1253
1254
  path: "list",
1254
1255
  hasQuery: true
1255
1256
  },
1257
+ {
1258
+ mode: "get",
1259
+ method: "getPageList",
1260
+ path: "page/list",
1261
+ hasQuery: true
1262
+ },
1256
1263
  {
1257
1264
  mode: "put",
1258
1265
  method: "putRebuildRefNum",
@@ -1269,7 +1276,8 @@ export const apiConfig = [
1269
1276
  mode: "put",
1270
1277
  method: "putId",
1271
1278
  path: "{id}",
1272
- hasPathParams: true
1279
+ hasPathParams: true,
1280
+ hasData: true
1273
1281
  }
1274
1282
  ]
1275
1283
  },
@@ -1277,6 +1285,12 @@ export const apiConfig = [
1277
1285
  name: "customObject",
1278
1286
  entityName: "custom-object",
1279
1287
  apis: [
1288
+ {
1289
+ mode: "post",
1290
+ method: "post",
1291
+ path: "",
1292
+ hasData: true
1293
+ },
1280
1294
  {
1281
1295
  mode: "delete",
1282
1296
  method: "delete",
@@ -1302,6 +1316,38 @@ export const apiConfig = [
1302
1316
  path: "info",
1303
1317
  hasQuery: true
1304
1318
  },
1319
+ {
1320
+ mode: "post",
1321
+ method: "postItem",
1322
+ path: "item",
1323
+ hasQuery: true,
1324
+ hasData: true
1325
+ },
1326
+ {
1327
+ mode: "delete",
1328
+ method: "deleteItem",
1329
+ path: "item",
1330
+ hasQuery: true
1331
+ },
1332
+ {
1333
+ mode: "get",
1334
+ method: "getItemInfo",
1335
+ path: "item/info",
1336
+ hasQuery: true
1337
+ },
1338
+ {
1339
+ mode: "get",
1340
+ method: "getItemList",
1341
+ path: "item/list",
1342
+ hasQuery: true
1343
+ },
1344
+ {
1345
+ mode: "put",
1346
+ method: "putItemId",
1347
+ path: "item/{id}",
1348
+ hasPathParams: true,
1349
+ hasData: true
1350
+ },
1305
1351
  {
1306
1352
  mode: "get",
1307
1353
  method: "getList",
@@ -1309,9 +1355,22 @@ export const apiConfig = [
1309
1355
  hasQuery: true
1310
1356
  },
1311
1357
  {
1312
- mode: "post",
1313
- method: "postSubmit",
1314
- path: "submit",
1358
+ mode: "get",
1359
+ method: "getPageList",
1360
+ path: "page/list",
1361
+ hasQuery: true
1362
+ },
1363
+ {
1364
+ mode: "put",
1365
+ method: "putSyncFields",
1366
+ path: "sync-fields",
1367
+ hasQuery: true
1368
+ },
1369
+ {
1370
+ mode: "put",
1371
+ method: "putId",
1372
+ path: "{id}",
1373
+ hasPathParams: true,
1315
1374
  hasData: true
1316
1375
  }
1317
1376
  ]
@@ -2197,6 +2256,18 @@ export const apiConfig = [
2197
2256
  path: "",
2198
2257
  hasQuery: true
2199
2258
  },
2259
+ {
2260
+ mode: "put",
2261
+ method: "putApproveTmplDisable",
2262
+ path: "approve/tmpl/disable",
2263
+ hasQuery: true
2264
+ },
2265
+ {
2266
+ mode: "put",
2267
+ method: "putApproveTmplEnable",
2268
+ path: "approve/tmpl/enable",
2269
+ hasQuery: true
2270
+ },
2200
2271
  {
2201
2272
  mode: "put",
2202
2273
  method: "putDrag",
@@ -2388,6 +2459,12 @@ export const apiConfig = [
2388
2459
  method: "getList",
2389
2460
  path: "list",
2390
2461
  hasQuery: true
2462
+ },
2463
+ {
2464
+ mode: "get",
2465
+ method: "getListByPage",
2466
+ path: "listByPage",
2467
+ hasQuery: true
2391
2468
  }
2392
2469
  ]
2393
2470
  },
@@ -3700,6 +3777,79 @@ export const apiConfig = [
3700
3777
  }
3701
3778
  ]
3702
3779
  },
3780
+ {
3781
+ name: "mdmCategory",
3782
+ entityName: "mdm-category",
3783
+ apis: [
3784
+ {
3785
+ mode: "post",
3786
+ method: "post",
3787
+ path: "",
3788
+ hasData: true
3789
+ },
3790
+ {
3791
+ mode: "delete",
3792
+ method: "delete",
3793
+ path: "",
3794
+ hasQuery: true
3795
+ },
3796
+ {
3797
+ mode: "put",
3798
+ method: "putApproveTmplDisable",
3799
+ path: "approve/tmpl/disable",
3800
+ hasQuery: true
3801
+ },
3802
+ {
3803
+ mode: "put",
3804
+ method: "putApproveTmplEnable",
3805
+ path: "approve/tmpl/enable",
3806
+ hasQuery: true
3807
+ },
3808
+ {
3809
+ mode: "put",
3810
+ method: "putDrag",
3811
+ path: "drag",
3812
+ hasData: true
3813
+ },
3814
+ {
3815
+ mode: "get",
3816
+ method: "getInfo",
3817
+ path: "info",
3818
+ hasQuery: true
3819
+ },
3820
+ {
3821
+ mode: "get",
3822
+ method: "getList",
3823
+ path: "list",
3824
+ hasQuery: true
3825
+ },
3826
+ {
3827
+ mode: "get",
3828
+ method: "getPageList",
3829
+ path: "page/list",
3830
+ hasQuery: true
3831
+ },
3832
+ {
3833
+ mode: "get",
3834
+ method: "getTree",
3835
+ path: "tree",
3836
+ hasQuery: true
3837
+ },
3838
+ {
3839
+ mode: "put",
3840
+ method: "putId",
3841
+ path: "{id}",
3842
+ hasPathParams: true,
3843
+ hasData: true
3844
+ },
3845
+ {
3846
+ mode: "post",
3847
+ method: "postIdCreateProcess",
3848
+ path: "{id}/createProcess",
3849
+ hasPathParams: true
3850
+ }
3851
+ ]
3852
+ },
3703
3853
  {
3704
3854
  name: "menuConfig",
3705
3855
  entityName: "menu-config",
@@ -4546,7 +4696,8 @@ export const apiConfig = [
4546
4696
  {
4547
4697
  mode: "post",
4548
4698
  method: "post",
4549
- path: "**"
4699
+ path: "**",
4700
+ hasQuery: true
4550
4701
  }
4551
4702
  ]
4552
4703
  },
@@ -4579,6 +4730,18 @@ export const apiConfig = [
4579
4730
  path: "",
4580
4731
  hasQuery: true
4581
4732
  },
4733
+ {
4734
+ mode: "put",
4735
+ method: "putApproveTmplDisable",
4736
+ path: "approve/tmpl/disable",
4737
+ hasQuery: true
4738
+ },
4739
+ {
4740
+ mode: "put",
4741
+ method: "putApproveTmplEnable",
4742
+ path: "approve/tmpl/enable",
4743
+ hasQuery: true
4744
+ },
4582
4745
  {
4583
4746
  mode: "put",
4584
4747
  method: "putDrag",
@@ -4981,6 +5144,12 @@ export const apiConfig = [
4981
5144
  path: "getBomByFormTmplId",
4982
5145
  hasQuery: true
4983
5146
  },
5147
+ {
5148
+ mode: "get",
5149
+ method: "getGetBomByFormTmplIdAndObjectKey",
5150
+ path: "getBomByFormTmplIdAndObjectKey",
5151
+ hasQuery: true
5152
+ },
4984
5153
  {
4985
5154
  mode: "get",
4986
5155
  method: "getGetBomByFormTmplIdAndTableKey",
@@ -5028,6 +5197,12 @@ export const apiConfig = [
5028
5197
  path: "listBaseAndProcessForm",
5029
5198
  hasQuery: true
5030
5199
  },
5200
+ {
5201
+ mode: "get",
5202
+ method: "getListBaseAndProcessFormPage",
5203
+ path: "listBaseAndProcessForm/page",
5204
+ hasQuery: true
5205
+ },
5031
5206
  {
5032
5207
  mode: "get",
5033
5208
  method: "getListOnlineFormModels",
@@ -71,10 +71,6 @@ export interface getUserPageListQuery extends IObject {
71
71
  * 排序方式:ASC/DESC, 不传默认 ASC
72
72
  */
73
73
  sortType?: string;
74
- /**
75
- * 参数来源,0企业后台管理、1租户后台管理
76
- */
77
- source?: number;
78
74
  /**
79
75
  * 创建开始时间
80
76
  */
@@ -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
  */
@@ -1,8 +1,8 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
2
  import type {
3
+ CustomFieldEntity,
3
4
  自定义字段导出请求,
4
5
  Resource,
5
- CustomFieldEntity,
6
6
  自定义字段导入结果,
7
7
  自定义字段引用表单模板,
8
8
  } from '../entities';
@@ -30,6 +30,28 @@ export interface getListQuery extends IObject {
30
30
  * 名称或字段key
31
31
  */
32
32
  keyword?: string;
33
+ /**
34
+ * 字段类型
35
+ */
36
+ traceEnabled?: number;
37
+ /**
38
+ * 字段类型
39
+ */
40
+ type?: string;
41
+ }
42
+ export interface getPageListQuery extends IObject {
43
+ /**
44
+ * 名称或字段key
45
+ */
46
+ keyword?: string;
47
+ /**
48
+ * 页码
49
+ */
50
+ pageNo?: number;
51
+ /**
52
+ * 每页数据条数
53
+ */
54
+ pageSize?: number;
33
55
  /**
34
56
  * 字段类型
35
57
  */
@@ -50,6 +72,14 @@ export interface getReferenceFormListQuery extends IObject {
50
72
  * 表单名称
51
73
  */
52
74
  keyword?: string;
75
+ /**
76
+ * 页码
77
+ */
78
+ pageNo?: number;
79
+ /**
80
+ * 每页数据条数
81
+ */
82
+ pageSize?: number;
53
83
  }
54
84
  export interface putIdPathParams {
55
85
  id: string;
@@ -58,7 +88,10 @@ export interface CustomFieldService {
58
88
  /**
59
89
  * 新增自定义字段
60
90
  */
61
- post(config?: Partial<AxiosRequestConfig>): Promise<string>;
91
+ post(
92
+ data: CustomFieldEntity,
93
+ config?: Partial<AxiosRequestConfig>,
94
+ ): Promise<string>;
62
95
  /**
63
96
  * 删除自定义字段
64
97
  */
@@ -101,6 +134,13 @@ export interface CustomFieldService {
101
134
  query: getListQuery,
102
135
  config?: Partial<AxiosRequestConfig>,
103
136
  ): Promise<CustomFieldEntity[]>;
137
+ /**
138
+ * 自定义字段分页列表
139
+ */
140
+ getPageList(
141
+ query: getPageListQuery,
142
+ config?: Partial<AxiosRequestConfig>,
143
+ ): Promise<IPage<CustomFieldEntity>>;
104
144
  /**
105
145
  * 按引用明细重算模板引用数量
106
146
  */
@@ -109,17 +149,18 @@ export interface CustomFieldService {
109
149
  config?: Partial<AxiosRequestConfig>,
110
150
  ): Promise<number>;
111
151
  /**
112
- * 查询自定义字段引用的表单模板列表
152
+ * 分页查询自定义字段引用的表单模板列表
113
153
  */
114
154
  getReferenceFormList(
115
155
  query: getReferenceFormListQuery,
116
156
  config?: Partial<AxiosRequestConfig>,
117
- ): Promise<自定义字段引用表单模板[]>;
157
+ ): Promise<IPage<自定义字段引用表单模板>>;
118
158
  /**
119
159
  * 修改自定义字段
120
160
  */
121
161
  putId(
122
162
  path: putIdPathParams,
163
+ data: CustomFieldEntity,
123
164
  config?: Partial<AxiosRequestConfig>,
124
165
  ): Promise<string>;
125
166
  }
@@ -1,10 +1,12 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
2
  import type {
3
+ 自定义对象主表保存请求,
3
4
  自定义对象导出请求,
4
5
  Resource,
5
6
  自定义对象导入结果,
6
7
  CustomObjectEntity,
7
- 自定义对象保存请求,
8
+ 自定义对象字段请求,
9
+ CustomObjectItemEntity,
8
10
  } from '../entities';
9
11
 
10
12
  export interface deleteQuery extends IObject {
@@ -19,13 +21,74 @@ export interface getInfoQuery extends IObject {
19
21
  */
20
22
  id: string;
21
23
  }
24
+ export interface postItemQuery extends IObject {
25
+ /**
26
+ * objectId
27
+ */
28
+ objectId: string;
29
+ }
30
+ export interface deleteItemQuery extends IObject {
31
+ /**
32
+ * id
33
+ */
34
+ id: string;
35
+ }
36
+ export interface getItemInfoQuery extends IObject {
37
+ /**
38
+ * id
39
+ */
40
+ id: string;
41
+ }
42
+ export interface getItemListQuery extends IObject {
43
+ /**
44
+ * objectId
45
+ */
46
+ objectId: string;
47
+ }
48
+ export interface putItemIdPathParams {
49
+ id: string;
50
+ }
22
51
  export interface getListQuery extends IObject {
23
52
  /**
24
53
  * 名称或对象key
25
54
  */
26
55
  keyword?: string;
27
56
  }
57
+ export interface getPageListQuery extends IObject {
58
+ /**
59
+ * 名称或对象key
60
+ */
61
+ keyword?: string;
62
+ /**
63
+ * 页码
64
+ */
65
+ pageNo?: number;
66
+ /**
67
+ * 每页数据条数
68
+ */
69
+ pageSize?: number;
70
+ }
71
+ export interface putSyncFieldsQuery extends IObject {
72
+ /**
73
+ * 自定义对象Key
74
+ */
75
+ key: string;
76
+ /**
77
+ * 指定的表单模型key
78
+ */
79
+ modelKey: string;
80
+ }
81
+ export interface putIdPathParams {
82
+ id: string;
83
+ }
28
84
  export interface CustomObjectService {
85
+ /**
86
+ * 新增自定义对象
87
+ */
88
+ post(
89
+ data: 自定义对象主表保存请求,
90
+ config?: Partial<AxiosRequestConfig>,
91
+ ): Promise<string>;
29
92
  /**
30
93
  * 删除自定义对象
31
94
  */
@@ -48,12 +111,49 @@ export interface CustomObjectService {
48
111
  config?: Partial<AxiosRequestConfig>,
49
112
  ): Promise<IHttpResponse<自定义对象导入结果>>;
50
113
  /**
51
- * 查询自定义对象详情
114
+ * 查询自定义对象主表详情
52
115
  */
53
116
  getInfo(
54
117
  query: getInfoQuery,
55
118
  config?: Partial<AxiosRequestConfig>,
56
119
  ): Promise<CustomObjectEntity>;
120
+ /**
121
+ * 新增自定义对象字段
122
+ */
123
+ postItem(
124
+ query: postItemQuery,
125
+ data: 自定义对象字段请求,
126
+ config?: Partial<AxiosRequestConfig>,
127
+ ): Promise<string>;
128
+ /**
129
+ * 删除自定义对象字段
130
+ */
131
+ deleteItem(
132
+ query: deleteItemQuery,
133
+ config?: Partial<AxiosRequestConfig>,
134
+ ): Promise<string>;
135
+ /**
136
+ * 查询自定义对象字段详情
137
+ */
138
+ getItemInfo(
139
+ query: getItemInfoQuery,
140
+ config?: Partial<AxiosRequestConfig>,
141
+ ): Promise<CustomObjectItemEntity>;
142
+ /**
143
+ * 查询自定义对象字段列表
144
+ */
145
+ getItemList(
146
+ query: getItemListQuery,
147
+ config?: Partial<AxiosRequestConfig>,
148
+ ): Promise<CustomObjectItemEntity[]>;
149
+ /**
150
+ * 修改自定义对象字段
151
+ */
152
+ putItemId(
153
+ path: putItemIdPathParams,
154
+ data: 自定义对象字段请求,
155
+ config?: Partial<AxiosRequestConfig>,
156
+ ): Promise<string>;
57
157
  /**
58
158
  * 查询自定义对象列表
59
159
  */
@@ -62,10 +162,25 @@ export interface CustomObjectService {
62
162
  config?: Partial<AxiosRequestConfig>,
63
163
  ): Promise<CustomObjectEntity[]>;
64
164
  /**
65
- * 新增或修改自定义对象
165
+ * 分页查询自定义对象列表
166
+ */
167
+ getPageList(
168
+ query: getPageListQuery,
169
+ config?: Partial<AxiosRequestConfig>,
170
+ ): Promise<IPage<CustomObjectEntity>>;
171
+ /**
172
+ * 同步对象新增字段到已放置的表单模型
173
+ */
174
+ putSyncFields(
175
+ query: putSyncFieldsQuery,
176
+ config?: Partial<AxiosRequestConfig>,
177
+ ): Promise<number>;
178
+ /**
179
+ * 修改自定义对象
66
180
  */
67
- postSubmit(
68
- data: 自定义对象保存请求,
181
+ putId(
182
+ path: putIdPathParams,
183
+ data: 自定义对象主表保存请求,
69
184
  config?: Partial<AxiosRequestConfig>,
70
185
  ): Promise<string>;
71
186
  }
@@ -1,8 +1,8 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
2
  import type {
3
3
  EdhrCategoryRequest,
4
- CategoryDragDTO,
5
4
  ResponseEntity,
5
+ CategoryDragDTO,
6
6
  EdhrCategoryResponse,
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 EdhrCategoryService {
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
  */
@@ -13,6 +13,20 @@ export interface getListQuery extends IObject {
13
13
  */
14
14
  materialNo?: string;
15
15
  }
16
+ export interface getListByPageQuery extends IObject {
17
+ /**
18
+ * 物料号
19
+ */
20
+ materialNo?: string;
21
+ /**
22
+ * pageNo
23
+ */
24
+ pageNo: number;
25
+ /**
26
+ * pageSize
27
+ */
28
+ pageSize: number;
29
+ }
16
30
  export interface EdhrInstanceSearchHistoryService {
17
31
  /**
18
32
  * 删除
@@ -28,4 +42,11 @@ export interface EdhrInstanceSearchHistoryService {
28
42
  query: getListQuery,
29
43
  config?: Partial<AxiosRequestConfig>,
30
44
  ): Promise<EdhrInstanceSearchHistoryResponse[]>;
45
+ /**
46
+ * 分页列表
47
+ */
48
+ getListByPage(
49
+ query: getListByPageQuery,
50
+ config?: Partial<AxiosRequestConfig>,
51
+ ): Promise<IPage<EdhrInstanceSearchHistoryResponse>>;
31
52
  }
@@ -27,6 +27,10 @@ export interface getFindMaterialNoQuery extends IObject {
27
27
  * 批次号
28
28
  */
29
29
  materialNo?: string;
30
+ /**
31
+ * 模块类型
32
+ */
33
+ module?: string;
30
34
  /**
31
35
  * 页码
32
36
  */
@@ -87,6 +91,10 @@ export interface getPageListQuery extends IObject {
87
91
  * 更新人id
88
92
  */
89
93
  modifyUserId?: string;
94
+ /**
95
+ * 模块类型
96
+ */
97
+ module?: string;
90
98
  /**
91
99
  * 操作人
92
100
  */
@@ -145,6 +153,10 @@ export interface getReversePageListQuery extends IObject {
145
153
  * 工单id
146
154
  */
147
155
  mfgOrderId?: string;
156
+ /**
157
+ * 模块类型
158
+ */
159
+ module?: string;
148
160
  /**
149
161
  * 操作人
150
162
  */
@@ -207,6 +219,10 @@ export interface getRunningPageQuery extends IObject {
207
219
  * 批次号
208
220
  */
209
221
  materialNo?: string;
222
+ /**
223
+ * 模块类型
224
+ */
225
+ module?: string;
210
226
  /**
211
227
  * 页码
212
228
  */