@bimatrix-aud-platform/aud_mcp_server 1.1.17 → 1.1.18
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.
|
@@ -40,7 +40,7 @@ export function generateDataSource(input) {
|
|
|
40
40
|
// Params 배열 (스키마: Name, Value 필수)
|
|
41
41
|
const params = paramNames.map((name) => ({
|
|
42
42
|
Name: name.startsWith(":") ? name : `:${name}`,
|
|
43
|
-
|
|
43
|
+
ParamType: "String",
|
|
44
44
|
}));
|
|
45
45
|
// Columns 배열 (스키마: Name, Type 필수)
|
|
46
46
|
const columns = (input.columns || []).map((col) => ({
|
package/dist/generators/fixer.js
CHANGED
|
@@ -39,6 +39,14 @@ export function fixMtsd(filePath) {
|
|
|
39
39
|
if (ds.Id && ds.Name) {
|
|
40
40
|
dsNameToId.set(ds.Name, ds.Id);
|
|
41
41
|
dsIdSet.add(ds.Id);
|
|
42
|
+
if (ds.Params) {
|
|
43
|
+
//파라미터 fix
|
|
44
|
+
for (let i = 0, i2 = ds.Params.length; i < i2; i++) {
|
|
45
|
+
if (!ds.Params[i].ParamType) {
|
|
46
|
+
ds.Params[i].ParamType = ds.Params[i].Name.toUpperCase().indexOf("VN_") ? "Numeric" : "String";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
42
50
|
}
|
|
43
51
|
}
|
|
44
52
|
// 3. 보정 규칙 적용
|
package/package.json
CHANGED
|
@@ -107,14 +107,14 @@ export interface IDataSource {
|
|
|
107
107
|
Id: string;
|
|
108
108
|
/** 데이터소스의 표시 이름 */
|
|
109
109
|
Name: string;
|
|
110
|
-
/** 메타 데이터소스 사용 여부
|
|
111
|
-
UseMeta:
|
|
112
|
-
/** 쿼리 결과 캐싱 사용 여부
|
|
113
|
-
UseCache:
|
|
110
|
+
/** 메타 데이터소스 사용 여부 */
|
|
111
|
+
UseMeta: boolean;
|
|
112
|
+
/** 쿼리 결과 캐싱 사용 여부 */
|
|
113
|
+
UseCache: boolean;
|
|
114
114
|
/** 연결된 DB 커넥션 코드 */
|
|
115
115
|
ConnectionCode: string;
|
|
116
|
-
/** SQL 쿼리 암호화 여부
|
|
117
|
-
Encrypted:
|
|
116
|
+
/** SQL 쿼리 암호화 여부 */
|
|
117
|
+
Encrypted: boolean;
|
|
118
118
|
/** 데이터소스 타입 (0: DataSource, 1: MetaData, 2: Template, 3: ServerDataSource) */
|
|
119
119
|
DSType: number;
|
|
120
120
|
/** 실행할 SQL 쿼리문 */
|
package/schemas/mtsd.schema.json
CHANGED
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"properties": {
|
|
99
99
|
"Id": { "type": "string", "description": "데이터소스의 고유 ID" },
|
|
100
100
|
"Name": { "type": "string", "description": "데이터소스의 표시 이름" },
|
|
101
|
-
"UseMeta": { "type": "
|
|
102
|
-
"UseCache": { "type": "
|
|
101
|
+
"UseMeta": { "type": "boolean", "description": "메타 데이터소스 사용 여부" },
|
|
102
|
+
"UseCache": { "type": "boolean", "description": "쿼리 결과 캐싱 사용 여부" },
|
|
103
103
|
"ConnectionCode": { "type": "string", "description": "연결된 DB 커넥션 코드" },
|
|
104
|
-
"Encrypted": { "type": "
|
|
104
|
+
"Encrypted": { "type": "boolean", "description": "SQL 쿼리 암호화 여부" },
|
|
105
105
|
"DSType": { "type": "integer", "enum": [0, 1, 2, 3], "description": "데이터소스 타입 (0:DataSource, 1:MetaData, 2:Template, 3:ServerDataSource)" },
|
|
106
106
|
"SQL": { "type": "string", "description": "실행할 SQL 쿼리문" },
|
|
107
107
|
"Params": {
|
|
@@ -117,11 +117,10 @@
|
|
|
117
117
|
"DataSourceParam": {
|
|
118
118
|
"type": "object",
|
|
119
119
|
"description": "데이터소스 파라미터",
|
|
120
|
-
"required": ["Name", "
|
|
120
|
+
"required": ["Name", "ParamType"],
|
|
121
121
|
"properties": {
|
|
122
|
-
"Name": { "type": "string" },
|
|
123
|
-
"
|
|
124
|
-
"Type": { "type": "string" }
|
|
122
|
+
"Name": { "type": "string" },
|
|
123
|
+
"ParamType": { "type": "string" }
|
|
125
124
|
}
|
|
126
125
|
},
|
|
127
126
|
"DataSourceColumn": {
|