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

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.
@@ -1207,6 +1207,115 @@ export const apiConfig = [
1207
1207
  }
1208
1208
  ]
1209
1209
  },
1210
+ {
1211
+ name: "customField",
1212
+ entityName: "custom-field",
1213
+ apis: [
1214
+ {
1215
+ mode: "post",
1216
+ method: "post",
1217
+ path: ""
1218
+ },
1219
+ {
1220
+ mode: "delete",
1221
+ method: "delete",
1222
+ path: "",
1223
+ hasQuery: true
1224
+ },
1225
+ {
1226
+ mode: "post",
1227
+ method: "postExport",
1228
+ path: "export",
1229
+ hasData: true
1230
+ },
1231
+ {
1232
+ mode: "get",
1233
+ method: "getFindByKey",
1234
+ path: "findByKey",
1235
+ hasQuery: true
1236
+ },
1237
+ {
1238
+ mode: "post",
1239
+ method: "postImport",
1240
+ path: "import",
1241
+ hasUpload: true,
1242
+ hasData: true
1243
+ },
1244
+ {
1245
+ mode: "get",
1246
+ method: "getInfo",
1247
+ path: "info",
1248
+ hasQuery: true
1249
+ },
1250
+ {
1251
+ mode: "get",
1252
+ method: "getList",
1253
+ path: "list",
1254
+ hasQuery: true
1255
+ },
1256
+ {
1257
+ mode: "put",
1258
+ method: "putRebuildRefNum",
1259
+ path: "rebuild-ref-num",
1260
+ hasQuery: true
1261
+ },
1262
+ {
1263
+ mode: "get",
1264
+ method: "getReferenceFormList",
1265
+ path: "reference-form/list",
1266
+ hasQuery: true
1267
+ },
1268
+ {
1269
+ mode: "put",
1270
+ method: "putId",
1271
+ path: "{id}",
1272
+ hasPathParams: true
1273
+ }
1274
+ ]
1275
+ },
1276
+ {
1277
+ name: "customObject",
1278
+ entityName: "custom-object",
1279
+ apis: [
1280
+ {
1281
+ mode: "delete",
1282
+ method: "delete",
1283
+ path: "",
1284
+ hasQuery: true
1285
+ },
1286
+ {
1287
+ mode: "post",
1288
+ method: "postExport",
1289
+ path: "export",
1290
+ hasData: true
1291
+ },
1292
+ {
1293
+ mode: "post",
1294
+ method: "postImport",
1295
+ path: "import",
1296
+ hasUpload: true,
1297
+ hasData: true
1298
+ },
1299
+ {
1300
+ mode: "get",
1301
+ method: "getInfo",
1302
+ path: "info",
1303
+ hasQuery: true
1304
+ },
1305
+ {
1306
+ mode: "get",
1307
+ method: "getList",
1308
+ path: "list",
1309
+ hasQuery: true
1310
+ },
1311
+ {
1312
+ mode: "post",
1313
+ method: "postSubmit",
1314
+ path: "submit",
1315
+ hasData: true
1316
+ }
1317
+ ]
1318
+ },
1210
1319
  {
1211
1320
  name: "customerComplaint",
1212
1321
  entityName: "customer-complaint",
@@ -4259,6 +4368,17 @@ export const apiConfig = [
4259
4368
  path: "permission/relation",
4260
4369
  hasQuery: true
4261
4370
  },
4371
+ {
4372
+ mode: "post",
4373
+ method: "postRelationExport",
4374
+ path: "relation/export"
4375
+ },
4376
+ {
4377
+ mode: "get",
4378
+ method: "getRelationModelKey",
4379
+ path: "relation/{modelKey}",
4380
+ hasPathParams: true
4381
+ },
4262
4382
  {
4263
4383
  mode: "post",
4264
4384
  method: "postSave",
@@ -7859,6 +7979,13 @@ export const apiConfig = [
7859
7979
  path: "saveVersion",
7860
7980
  hasData: true
7861
7981
  },
7982
+ {
7983
+ mode: "put",
7984
+ method: "putUpdateDesignerJsonId",
7985
+ path: "updateDesignerJson/{id}",
7986
+ hasPathParams: true,
7987
+ hasData: true
7988
+ },
7862
7989
  {
7863
7990
  mode: "put",
7864
7991
  method: "putUpdateVersionByIdId",
@@ -239,10 +239,6 @@ export interface getAppModelMetaListQuery extends IObject {
239
239
  * env
240
240
  */
241
241
  env: string;
242
- /**
243
- * module
244
- */
245
- module: string;
246
242
  }
247
243
  export interface getAppPublishLogInfoQuery extends IObject {
248
244
  /**
@@ -29,10 +29,6 @@ export interface getListQuery extends IObject {
29
29
  * 查询全量信息时传 true,否则只查询简要信息
30
30
  */
31
31
  fullInfo?: boolean;
32
- /**
33
- * 来源
34
- */
35
- source?: string;
36
32
  /**
37
33
  * 所属模块
38
34
  */
@@ -108,10 +108,6 @@ export interface getListCompleteQuery extends IObject {
108
108
  *
109
109
  */
110
110
  modifyUserName?: string;
111
- /**
112
- * 所属模块(实体、枚举、web页面 、view_model_module/视图模型模块 、data_model/数据模型模块、document_module/单据、pad_module/pad页面设计)
113
- */
114
- module?: string;
115
111
  /**
116
112
  *
117
113
  */
@@ -182,10 +178,6 @@ export interface getPageQuery extends IObject {
182
178
  *
183
179
  */
184
180
  modifyUserName?: string;
185
- /**
186
- * 所属模块(实体、枚举、web页面 、view_model_module/视图模型模块 、data_model/数据模型模块、document_module/单据、pad_module/pad页面设计)
187
- */
188
- module?: string;
189
181
  /**
190
182
  *
191
183
  */
@@ -0,0 +1,125 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type {
3
+ 自定义字段导出请求,
4
+ Resource,
5
+ CustomFieldEntity,
6
+ 自定义字段导入结果,
7
+ 自定义字段引用表单模板,
8
+ } from '../entities';
9
+
10
+ export interface deleteQuery extends IObject {
11
+ /**
12
+ * id
13
+ */
14
+ id: string;
15
+ }
16
+ export interface getFindByKeyQuery extends IObject {
17
+ /**
18
+ * key
19
+ */
20
+ key: string;
21
+ }
22
+ export interface getInfoQuery extends IObject {
23
+ /**
24
+ * id
25
+ */
26
+ id: string;
27
+ }
28
+ export interface getListQuery extends IObject {
29
+ /**
30
+ * 名称或字段key
31
+ */
32
+ keyword?: string;
33
+ /**
34
+ * 字段类型
35
+ */
36
+ type?: string;
37
+ }
38
+ export interface putRebuildRefNumQuery extends IObject {
39
+ /**
40
+ * id
41
+ */
42
+ id: string;
43
+ }
44
+ export interface getReferenceFormListQuery extends IObject {
45
+ /**
46
+ * 自定义字段id
47
+ */
48
+ id: string;
49
+ /**
50
+ * 表单名称
51
+ */
52
+ keyword?: string;
53
+ }
54
+ export interface putIdPathParams {
55
+ id: string;
56
+ }
57
+ export interface CustomFieldService {
58
+ /**
59
+ * 新增自定义字段
60
+ */
61
+ post(config?: Partial<AxiosRequestConfig>): Promise<string>;
62
+ /**
63
+ * 删除自定义字段
64
+ */
65
+ delete(
66
+ query: deleteQuery,
67
+ config?: Partial<AxiosRequestConfig>,
68
+ ): Promise<string>;
69
+ /**
70
+ * 导出自定义字段
71
+ */
72
+ postExport(
73
+ data: 自定义字段导出请求,
74
+ config?: Partial<AxiosRequestConfig>,
75
+ ): Promise<Resource>;
76
+ /**
77
+ * 根据key查询字段
78
+ */
79
+ getFindByKey(
80
+ query: getFindByKeyQuery,
81
+ config?: Partial<AxiosRequestConfig>,
82
+ ): Promise<CustomFieldEntity>;
83
+ /**
84
+ * 导入自定义字段
85
+ */
86
+ postImport(
87
+ data: UploadFileData,
88
+ config?: Partial<AxiosRequestConfig>,
89
+ ): Promise<IHttpResponse<自定义字段导入结果>>;
90
+ /**
91
+ * 自定义字段详情
92
+ */
93
+ getInfo(
94
+ query: getInfoQuery,
95
+ config?: Partial<AxiosRequestConfig>,
96
+ ): Promise<CustomFieldEntity>;
97
+ /**
98
+ * 自定义字段列表
99
+ */
100
+ getList(
101
+ query: getListQuery,
102
+ config?: Partial<AxiosRequestConfig>,
103
+ ): Promise<CustomFieldEntity[]>;
104
+ /**
105
+ * 按引用明细重算模板引用数量
106
+ */
107
+ putRebuildRefNum(
108
+ query: putRebuildRefNumQuery,
109
+ config?: Partial<AxiosRequestConfig>,
110
+ ): Promise<number>;
111
+ /**
112
+ * 查询自定义字段引用的表单模板列表
113
+ */
114
+ getReferenceFormList(
115
+ query: getReferenceFormListQuery,
116
+ config?: Partial<AxiosRequestConfig>,
117
+ ): Promise<自定义字段引用表单模板[]>;
118
+ /**
119
+ * 修改自定义字段
120
+ */
121
+ putId(
122
+ path: putIdPathParams,
123
+ config?: Partial<AxiosRequestConfig>,
124
+ ): Promise<string>;
125
+ }
@@ -0,0 +1,71 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type {
3
+ 自定义对象导出请求,
4
+ Resource,
5
+ 自定义对象导入结果,
6
+ CustomObjectEntity,
7
+ 自定义对象保存请求,
8
+ } from '../entities';
9
+
10
+ export interface deleteQuery extends IObject {
11
+ /**
12
+ * id
13
+ */
14
+ id: string;
15
+ }
16
+ export interface getInfoQuery extends IObject {
17
+ /**
18
+ * id
19
+ */
20
+ id: string;
21
+ }
22
+ export interface getListQuery extends IObject {
23
+ /**
24
+ * 名称或对象key
25
+ */
26
+ keyword?: string;
27
+ }
28
+ export interface CustomObjectService {
29
+ /**
30
+ * 删除自定义对象
31
+ */
32
+ delete(
33
+ query: deleteQuery,
34
+ config?: Partial<AxiosRequestConfig>,
35
+ ): Promise<string>;
36
+ /**
37
+ * 导出自定义对象
38
+ */
39
+ postExport(
40
+ data: 自定义对象导出请求,
41
+ config?: Partial<AxiosRequestConfig>,
42
+ ): Promise<Resource>;
43
+ /**
44
+ * 导入自定义对象
45
+ */
46
+ postImport(
47
+ data: UploadFileData,
48
+ config?: Partial<AxiosRequestConfig>,
49
+ ): Promise<IHttpResponse<自定义对象导入结果>>;
50
+ /**
51
+ * 查询自定义对象详情
52
+ */
53
+ getInfo(
54
+ query: getInfoQuery,
55
+ config?: Partial<AxiosRequestConfig>,
56
+ ): Promise<CustomObjectEntity>;
57
+ /**
58
+ * 查询自定义对象列表
59
+ */
60
+ getList(
61
+ query: getListQuery,
62
+ config?: Partial<AxiosRequestConfig>,
63
+ ): Promise<CustomObjectEntity[]>;
64
+ /**
65
+ * 新增或修改自定义对象
66
+ */
67
+ postSubmit(
68
+ data: 自定义对象保存请求,
69
+ config?: Partial<AxiosRequestConfig>,
70
+ ): Promise<string>;
71
+ }
@@ -87,10 +87,6 @@ export interface getPageListQuery extends IObject {
87
87
  * 更新人id
88
88
  */
89
89
  modifyUserId?: string;
90
- /**
91
- * 模块类型
92
- */
93
- module?: string;
94
90
  /**
95
91
  * 操作人
96
92
  */
@@ -125,6 +121,10 @@ export interface getPageListQuery extends IObject {
125
121
  startTime?: string;
126
122
  }
127
123
  export interface getReversePageListQuery extends IObject {
124
+ /**
125
+ * 自定义字段查询条件
126
+ */
127
+ customFieldQuery?: IObject;
128
128
  /**
129
129
  * 设备
130
130
  */
@@ -145,10 +145,6 @@ export interface getReversePageListQuery extends IObject {
145
145
  * 工单id
146
146
  */
147
147
  mfgOrderId?: string;
148
- /**
149
- * 模块类型
150
- */
151
- module?: string;
152
148
  /**
153
149
  * 操作人
154
150
  */
@@ -85,22 +85,10 @@ export interface postDataValidateQuery extends IObject {
85
85
  * 标题行号
86
86
  */
87
87
  headerRowNo?: number;
88
- /**
89
- * 导入类型 1:普通导入,2:主子同时导
90
- */
91
- importType?: number;
92
88
  /**
93
89
  * 模型key
94
90
  */
95
91
  modelKey: string;
96
- /**
97
- * 数据起始行号
98
- */
99
- startRowNo?: number;
100
- /**
101
- * 模板key
102
- */
103
- tmplKey: string;
104
92
  }
105
93
  export interface ExcelService {
106
94
  /**
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import type { AxiosRequestConfig } from 'axios';
2
3
  import type {
3
4
  ModelMetaResponse,
@@ -7,6 +8,7 @@ import type {
7
8
  TableMetaER,
8
9
  ModelField,
9
10
  ModelBriefInfo,
11
+ ModelRelationInfo,
10
12
  ModelMetaVO,
11
13
  } from '../entities';
12
14
 
@@ -136,6 +138,9 @@ export interface getPermissionRelationQuery extends IObject {
136
138
  */
137
139
  keyword?: string;
138
140
  }
141
+ export interface getRelationModelKeyPathParams {
142
+ modelKey: string;
143
+ }
139
144
  export interface putSupportMessageModelKeyEnabledPathParams {
140
145
  modelKey: string;
141
146
  enabled: string;
@@ -313,6 +318,17 @@ export interface ModelMetaService {
313
318
  query: getPermissionRelationQuery,
314
319
  config?: Partial<AxiosRequestConfig>,
315
320
  ): Promise<ModelBriefInfo[]>;
321
+ /**
322
+ * 导出模型关联数据
323
+ */
324
+ postRelationExport(config?: Partial<AxiosRequestConfig>): Promise<any>;
325
+ /**
326
+ * 查询导出模型关联数据
327
+ */
328
+ getRelationModelKey(
329
+ path: getRelationModelKeyPathParams,
330
+ config?: Partial<AxiosRequestConfig>,
331
+ ): Promise<ModelRelationInfo>;
316
332
  /**
317
333
  * 实体模型保存
318
334
  */
@@ -71,10 +71,6 @@ export interface getDhrFormListQuery extends IObject {
71
71
  * 工单ID
72
72
  */
73
73
  mfgOrderId?: string;
74
- /**
75
- * 模块类型
76
- */
77
- module?: string;
78
74
  /**
79
75
  * 类型(production/rework)
80
76
  */
@@ -381,10 +377,6 @@ export interface getRelateFormPageListQuery extends IObject {
381
377
  * Lot/SN 编号
382
378
  */
383
379
  materialNo: string;
384
- /**
385
- * 模块类型
386
- */
387
- module?: string;
388
380
  /**
389
381
  * 页码
390
382
  */
@@ -401,6 +393,14 @@ export interface deleteRelatedInstRemoveQuery extends IObject {
401
393
  instId: string;
402
394
  }
403
395
  export interface getReverseTracePageListQuery extends IObject {
396
+ /**
397
+ * 所有批次,包含关联批次
398
+ */
399
+ allMaterialNo?: string;
400
+ /**
401
+ * 自定义字段查询条件
402
+ */
403
+ customFieldQuery?: IObject;
404
404
  /**
405
405
  * 设备名称
406
406
  */
@@ -7,7 +7,7 @@ import type {
7
7
  DocumentInfo4Req,
8
8
  OnlineFormTmplModelResponse,
9
9
  SimpleOnlineFormDesignDTO,
10
- OnlineFormFieldMetaVO,
10
+ 在线表单字段创建请求,
11
11
  OnlineFormTmplOperationConfig,
12
12
  OnlineFormDesignDTO,
13
13
  OperatingStateRequest,
@@ -285,7 +285,7 @@ export interface OnlineFormTmplService {
285
285
  * 新建字段
286
286
  */
287
287
  postSaveField(
288
- data: OnlineFormFieldMetaVO,
288
+ data: 在线表单字段创建请求,
289
289
  config?: Partial<AxiosRequestConfig>,
290
290
  ): Promise<string>;
291
291
  /**
@@ -56,6 +56,9 @@ export interface deleteRemoveVersionByIdQuery extends IObject {
56
56
  */
57
57
  id: string;
58
58
  }
59
+ export interface putUpdateDesignerJsonIdPathParams {
60
+ id: string;
61
+ }
59
62
  export interface putUpdateVersionByIdIdPathParams {
60
63
  id: string;
61
64
  }
@@ -138,6 +141,14 @@ export interface TransactionService {
138
141
  data: TransactionRequest,
139
142
  config?: Partial<AxiosRequestConfig>,
140
143
  ): Promise<string>;
144
+ /**
145
+ * 修改页面设计Json
146
+ */
147
+ putUpdateDesignerJsonId(
148
+ path: putUpdateDesignerJsonIdPathParams,
149
+ data: TransactionRequest,
150
+ config?: Partial<AxiosRequestConfig>,
151
+ ): Promise<string>;
141
152
  /**
142
153
  * 修改版本
143
154
  */