@blueking/ai-ui-sdk 0.4.3-beta.13 → 0.4.3-beta.15
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.
- package/README.md +2258 -2258
- package/dist/assets/svg/lock.svg +43 -43
- package/dist/common/util.ts.js +103 -103
- package/dist/components/render-agent/agent-download.vue.css +2 -2
- package/dist/components/render-agent/agent-type.vue.css +9 -9
- package/dist/components/render-agent/agent-type.vue.js +1 -1
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +3 -6
- package/dist/components/render-auth/auth-dialog.vue.css +2 -2
- package/dist/components/render-auto-height-textarea/index.vue.css +26 -26
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +30 -30
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-card/agent/corner-badge.script.vue.js.js +50 -0
- package/dist/components/render-card/agent/corner-badge.vue.css +9 -0
- package/dist/components/render-card/agent/corner-badge.vue.d.ts +14 -0
- package/dist/components/render-card/agent/corner-badge.vue.js +5 -0
- package/dist/components/render-card/agent/index.script.vue.js.js +12 -1
- package/dist/components/render-card/agent/index.vue.d.ts +1 -1
- package/dist/components/render-card/agent/prefix-info-tool.vue.css +18 -18
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/base/collection-icon.script.vue.js.js +3 -16
- package/dist/components/render-card/base/collection-icon.vue.d.ts +0 -1
- package/dist/components/render-card/base.vue.css +30 -30
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/knowledge/index.vue.d.ts +1 -1
- package/dist/components/render-card/knowledgebase/index.vue.d.ts +1 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +12 -12
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.vue.css +3 -3
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/index.vue.d.ts +1 -1
- package/dist/components/render-card/llm/info.vue.css +8 -8
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +5 -5
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/index.script.vue.js.js +1 -1
- package/dist/components/render-card/mcp/index.vue.d.ts +1 -1
- package/dist/components/render-card/mcp/name-suffix.vue.css +7 -7
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/mcp/selected-tools-info.vue.d.ts +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +2 -2
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/prompt/index.script.vue.js.js +7 -2
- package/dist/components/render-card/prompt/index.vue.d.ts +2 -1
- package/dist/components/render-card/role/index.script.vue.js.js +7 -2
- package/dist/components/render-card/role/index.vue.d.ts +2 -1
- package/dist/components/render-card/skill/index.script.vue.js.js +1 -1
- package/dist/components/render-card/skill/scanner.vue.css +7 -7
- package/dist/components/render-card/skill/scanner.vue.js +1 -1
- package/dist/components/render-card/tool/index.script.vue.js.js +7 -2
- package/dist/components/render-card/tool/index.vue.d.ts +2 -1
- package/dist/components/render-checkbox/index.vue.css +41 -41
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +29 -29
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +6 -6
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-collection/content/index.vue.css +15 -15
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +9 -9
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +10 -10
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +8 -8
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +8 -8
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +6 -6
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +3 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.css +4 -4
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +21 -21
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +9 -9
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +9 -9
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/index.vue.css +4 -4
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-resource.vue.css +4 -4
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +31 -31
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.vue.css +18 -18
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.vue.css +12 -12
- package/dist/components/render-dialog/index.vue.js +1 -1
- package/dist/components/render-dropdown/index.vue.css +15 -15
- package/dist/components/render-file-card/index.vue.css +28 -28
- package/dist/components/render-file-card/index.vue.d.ts +1 -1
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +7 -7
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +12 -12
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +2 -2
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-markdown/edit.postcss.css +92 -92
- package/dist/components/render-markdown/katex.ts.js +8 -8
- package/dist/components/render-markdown/prism-atom-one-dark.postcss.css +192 -192
- package/dist/components/render-markdown/view.postcss.css +99 -99
- package/dist/components/render-permission-tag/index.vue.css +2 -2
- package/dist/components/render-prompt/content/index.vue.css +5 -5
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +4 -4
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-resource-version/index.vue.css +7 -7
- package/dist/components/render-resource-version/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +15 -15
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-search-empty/index.script.vue.js.js +2 -3
- package/dist/components/render-search-empty/index.vue.d.ts +1 -1
- package/dist/components/render-search-select/index.vue.d.ts +1 -1
- package/dist/components/render-select-plus-extension/index.vue.css +11 -11
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-t-table/index.script.vue.js +5 -8
- package/dist/components/render-t-table/index.vue.css +117 -117
- package/dist/components/render-t-table/index.vue.d.ts +1 -1
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +17 -17
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tags/index.vue.css +12 -12
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/components/render-tree/index.vue.css +12 -12
- package/dist/components/render-tree/index.vue.d.ts +1 -1
- package/dist/css/fonts/iconcool.svg +268 -268
- package/dist/css/g-utilities.css +40 -10
- package/dist/css/g-utilities.manifest.json +6 -0
- package/dist/css/style.css +259 -259
- package/dist/hooks/use-agent-http.d.ts +1 -0
- package/dist/hooks/use-agent-http.ts.js +9 -2
- package/dist/hooks/use-ellipsis-tooltip.ts.js +28 -28
- package/dist/hooks/use-loading-version.ts.js +4 -4
- package/dist/http/helper/agent.d.ts +7 -1
- package/dist/http/helper/agent.ts.js +60 -44
- package/dist/http/helper/collection.ts.js +13 -12
- package/dist/http/helper/common.ts.js +44 -44
- package/dist/http/helper/dataset.ts.js +76 -76
- package/dist/http/helper/knowledge.ts.js +45 -45
- package/dist/http/helper/mcp.ts.js +36 -36
- package/dist/http/helper/permission.ts.js +12 -12
- package/dist/http/helper/prompt.ts.js +13 -12
- package/dist/http/helper/skill.ts.js +24 -24
- package/dist/http/helper/space.ts.js +24 -24
- package/dist/http/helper/tool.ts.js +22 -20
- package/dist/types/agent.d.ts +18 -0
- package/dist/types/collection.d.ts +2 -0
- package/dist/types/prompt.d.ts +2 -0
- package/dist/types/tool.d.ts +2 -0
- package/package.json +112 -112
|
@@ -79,30 +79,30 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
79
79
|
}
|
|
80
80
|
import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi } from './common.ts.js';
|
|
81
81
|
import { transferResourcePermissionApi2ResourcePermission } from './permission.ts.js';
|
|
82
|
-
/**
|
|
83
|
-
* 接口转换为ui使用
|
|
84
|
-
* @param data ICreataDatasetDataResultApi
|
|
85
|
-
* @returns ICreataDatasetDataResult
|
|
82
|
+
/**
|
|
83
|
+
* 接口转换为ui使用
|
|
84
|
+
* @param data ICreataDatasetDataResultApi
|
|
85
|
+
* @returns ICreataDatasetDataResult
|
|
86
86
|
*/ export const transferCreateDatasetDataResultApi2CreateDatasetDataResult = (data)=>{
|
|
87
87
|
return {
|
|
88
88
|
createCount: data.create_count,
|
|
89
89
|
duplicateCount: data.duplicate_count
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
|
-
/**
|
|
93
|
-
* 接口转换为ui使用
|
|
94
|
-
* @param data ICompanyApi
|
|
95
|
-
* @returns ICompany
|
|
92
|
+
/**
|
|
93
|
+
* 接口转换为ui使用
|
|
94
|
+
* @param data ICompanyApi
|
|
95
|
+
* @returns ICompany
|
|
96
96
|
*/ export const transferCompanyApi2Company = (data)=>{
|
|
97
97
|
return {
|
|
98
98
|
id: data.id,
|
|
99
99
|
companyName: data.company_name
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
/**
|
|
103
|
-
* 接口转换为ui使用
|
|
104
|
-
* @param data IDatasetDataFileApi
|
|
105
|
-
* @returns IDatasetDataFile
|
|
102
|
+
/**
|
|
103
|
+
* 接口转换为ui使用
|
|
104
|
+
* @param data IDatasetDataFileApi
|
|
105
|
+
* @returns IDatasetDataFile
|
|
106
106
|
*/ export const transferDatasetDataFileApi2DatasetDataFile = (data)=>{
|
|
107
107
|
return {
|
|
108
108
|
fileName: data.file_name,
|
|
@@ -111,10 +111,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
111
111
|
id: data.id
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
|
-
/**
|
|
115
|
-
* ui转换为使用接口
|
|
116
|
-
* @param data IDatasetDataFileApi
|
|
117
|
-
* @returns IDatasetDataFile
|
|
114
|
+
/**
|
|
115
|
+
* ui转换为使用接口
|
|
116
|
+
* @param data IDatasetDataFileApi
|
|
117
|
+
* @returns IDatasetDataFile
|
|
118
118
|
*/ export const transferDatasetDataFile2DatasetDataFileApi = (data)=>{
|
|
119
119
|
return {
|
|
120
120
|
file_name: data.fileName,
|
|
@@ -123,10 +123,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
123
123
|
id: data.id
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
/**
|
|
127
|
-
* 接口转换为ui使用
|
|
128
|
-
* @param data IDatasetApi
|
|
129
|
-
* @returns IDataset
|
|
126
|
+
/**
|
|
127
|
+
* 接口转换为ui使用
|
|
128
|
+
* @param data IDatasetApi
|
|
129
|
+
* @returns IDataset
|
|
130
130
|
*/ export const transferDatasetApi2Dataset = (data)=>{
|
|
131
131
|
return {
|
|
132
132
|
componentIds: data.component_ids,
|
|
@@ -149,10 +149,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
149
149
|
permission: transferResourcePermissionApi2ResourcePermission(data.permission)
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
|
-
/**
|
|
153
|
-
* 接口转换为ui使用
|
|
154
|
-
* @param data IDatasetApiGuideApi
|
|
155
|
-
* @returns IDatasetApiGuide
|
|
152
|
+
/**
|
|
153
|
+
* 接口转换为ui使用
|
|
154
|
+
* @param data IDatasetApiGuideApi
|
|
155
|
+
* @returns IDatasetApiGuide
|
|
156
156
|
*/ export const transferDatasetApiGuideApi2DatasetApiGuide = (data)=>{
|
|
157
157
|
return {
|
|
158
158
|
apiEndpoint: data.api_endpoint,
|
|
@@ -164,10 +164,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
164
164
|
}))
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
|
-
/**
|
|
168
|
-
* ui转换为接口使用
|
|
169
|
-
* @param data IDatasetListParam
|
|
170
|
-
* @returns IDatasetListParamApi
|
|
167
|
+
/**
|
|
168
|
+
* ui转换为接口使用
|
|
169
|
+
* @param data IDatasetListParam
|
|
170
|
+
* @returns IDatasetListParamApi
|
|
171
171
|
*/ export const transferDatasetListParam2DatasetListParamApi = (data)=>{
|
|
172
172
|
return _object_spread_props(_object_spread({}, transferIPaginationParam2IPaginationParamApi(data), transferISortParam2ISortParamApi(data)), {
|
|
173
173
|
company_name: data === null || data === void 0 ? void 0 : data.companyName,
|
|
@@ -185,10 +185,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
185
185
|
updated_by: data === null || data === void 0 ? void 0 : data.updatedBy
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
|
-
/**
|
|
189
|
-
* ui转换为接口使用
|
|
190
|
-
* @param data IDatasetForm
|
|
191
|
-
* @returns IDatasetFormApi
|
|
188
|
+
/**
|
|
189
|
+
* ui转换为接口使用
|
|
190
|
+
* @param data IDatasetForm
|
|
191
|
+
* @returns IDatasetFormApi
|
|
192
192
|
*/ export const transferDatasetForm2DatasetFormApi = (data)=>{
|
|
193
193
|
return {
|
|
194
194
|
component_ids: data.componentIds,
|
|
@@ -200,10 +200,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
200
200
|
description: data.description
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
/**
|
|
204
|
-
* ui转换为接口使用
|
|
205
|
-
* @param data IDatasetDataParam
|
|
206
|
-
* @returns IDatasetDataParamApi
|
|
203
|
+
/**
|
|
204
|
+
* ui转换为接口使用
|
|
205
|
+
* @param data IDatasetDataParam
|
|
206
|
+
* @returns IDatasetDataParamApi
|
|
207
207
|
*/ export const transferDatasetDataParam2DatasetDataParamApi = (data)=>{
|
|
208
208
|
const { datasetId, createdBy, pageSize, ordering, page, sourceTypes, modelType, levels, isValid, statuses, reviewStatuses } = data, rest = _object_without_properties(data, [
|
|
209
209
|
"datasetId",
|
|
@@ -232,10 +232,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
232
232
|
page
|
|
233
233
|
});
|
|
234
234
|
};
|
|
235
|
-
/**
|
|
236
|
-
* ui转换为接口使用
|
|
237
|
-
* @param data IDatasetDataForm
|
|
238
|
-
* @returns IDatasetDataFormApi
|
|
235
|
+
/**
|
|
236
|
+
* ui转换为接口使用
|
|
237
|
+
* @param data IDatasetDataForm
|
|
238
|
+
* @returns IDatasetDataFormApi
|
|
239
239
|
*/ export const transferDatasetDataForm2DatasetDataFormApi = (data)=>{
|
|
240
240
|
return {
|
|
241
241
|
data: data.data,
|
|
@@ -244,10 +244,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
244
244
|
source_type: data.sourceType
|
|
245
245
|
};
|
|
246
246
|
};
|
|
247
|
-
/**
|
|
248
|
-
* 接口转换为ui使用
|
|
249
|
-
* @param data IDatasetApi
|
|
250
|
-
* @returns IDataset
|
|
247
|
+
/**
|
|
248
|
+
* 接口转换为ui使用
|
|
249
|
+
* @param data IDatasetApi
|
|
250
|
+
* @returns IDataset
|
|
251
251
|
*/ export const transferDatasetDataApi2DatasetData = (data)=>{
|
|
252
252
|
return {
|
|
253
253
|
data: data.data,
|
|
@@ -269,10 +269,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
269
269
|
isValid: data.is_valid
|
|
270
270
|
};
|
|
271
271
|
};
|
|
272
|
-
/**
|
|
273
|
-
* ui转换为接口使用
|
|
274
|
-
* @param data IUserInfo
|
|
275
|
-
* @returns IUserInfoApi
|
|
272
|
+
/**
|
|
273
|
+
* ui转换为接口使用
|
|
274
|
+
* @param data IUserInfo
|
|
275
|
+
* @returns IUserInfoApi
|
|
276
276
|
*/ export const transferUserInfoForm2UserInfoFormApi = (data)=>{
|
|
277
277
|
return {
|
|
278
278
|
name: data.name,
|
|
@@ -281,10 +281,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
281
281
|
email: data.email
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
|
-
/**
|
|
285
|
-
* 接口转换为ui使用
|
|
286
|
-
* @param data IUserInfoApi
|
|
287
|
-
* @returns IUserInfo
|
|
284
|
+
/**
|
|
285
|
+
* 接口转换为ui使用
|
|
286
|
+
* @param data IUserInfoApi
|
|
287
|
+
* @returns IUserInfo
|
|
288
288
|
*/ export const transferUserInfoApi2UserInfo = (data)=>{
|
|
289
289
|
var _data_extra_weixin, _data_extra, _data_extra_weixin1, _data_extra1, _data_extra_weixin2, _data_extra2, _data_extra_weixin3, _data_extra3, _data_extra4;
|
|
290
290
|
return {
|
|
@@ -306,10 +306,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
|
-
/**
|
|
310
|
-
* 接口转换为ui使用
|
|
311
|
-
* @param data IOperatRecordParam
|
|
312
|
-
* @returns IOperatRecordParamApi
|
|
309
|
+
/**
|
|
310
|
+
* 接口转换为ui使用
|
|
311
|
+
* @param data IOperatRecordParam
|
|
312
|
+
* @returns IOperatRecordParamApi
|
|
313
313
|
*/ export const transferOperatRecordParam2OperatRecordParamApi = (data)=>{
|
|
314
314
|
return _object_spread_props(_object_spread({}, transferIPaginationParam2IPaginationParamApi(data)), {
|
|
315
315
|
fuzzy: data.fuzzy,
|
|
@@ -324,10 +324,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
324
324
|
instance_data: data.instanceData
|
|
325
325
|
});
|
|
326
326
|
};
|
|
327
|
-
/**
|
|
328
|
-
* 接口转换为ui使用
|
|
329
|
-
* @param data I
|
|
330
|
-
* @returns IUserInfo
|
|
327
|
+
/**
|
|
328
|
+
* 接口转换为ui使用
|
|
329
|
+
* @param data I
|
|
330
|
+
* @returns IUserInfo
|
|
331
331
|
*/ export const transferOperatRecordApi2OperatRecord = (data)=>{
|
|
332
332
|
return {
|
|
333
333
|
id: data.id,
|
|
@@ -340,10 +340,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
340
340
|
endTime: data.end_time
|
|
341
341
|
};
|
|
342
342
|
};
|
|
343
|
-
/**
|
|
344
|
-
* 接口转换为ui使用
|
|
345
|
-
* @param data ICompanyParticipantApi[]
|
|
346
|
-
* @returns ICompanyParticipant[]
|
|
343
|
+
/**
|
|
344
|
+
* 接口转换为ui使用
|
|
345
|
+
* @param data ICompanyParticipantApi[]
|
|
346
|
+
* @returns ICompanyParticipant[]
|
|
347
347
|
*/ export const transferCompanyParticipantApi2CompanyParticipantList = (data)=>{
|
|
348
348
|
const countMap = {};
|
|
349
349
|
data.forEach((item)=>{
|
|
@@ -359,10 +359,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
359
359
|
rowspan: countMap[item.category]
|
|
360
360
|
}));
|
|
361
361
|
};
|
|
362
|
-
/**
|
|
363
|
-
* ui 转接口
|
|
364
|
-
* @param data IBatchReviewDatasetData
|
|
365
|
-
* @returns IBatchReviewDatasetDataApi
|
|
362
|
+
/**
|
|
363
|
+
* ui 转接口
|
|
364
|
+
* @param data IBatchReviewDatasetData
|
|
365
|
+
* @returns IBatchReviewDatasetDataApi
|
|
366
366
|
*/ export const transferBatchReviewDatasetData2BatchReviewDatasetDataApi = (data)=>{
|
|
367
367
|
return {
|
|
368
368
|
accept_ai: data.acceptAi,
|
|
@@ -374,10 +374,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
374
374
|
exclude_failed: data.excludeFailed
|
|
375
375
|
};
|
|
376
376
|
};
|
|
377
|
-
/**
|
|
378
|
-
* ui 转接卡
|
|
379
|
-
* @param d IBatchRetryReviewDatasetData
|
|
380
|
-
* @returns IBatchRetryReviewDatasetDataApi
|
|
377
|
+
/**
|
|
378
|
+
* ui 转接卡
|
|
379
|
+
* @param d IBatchRetryReviewDatasetData
|
|
380
|
+
* @returns IBatchRetryReviewDatasetDataApi
|
|
381
381
|
*/ export const transferBatchRetryReviewDatasetData2BatchRetryReviewDatasetDataApi = (d)=>{
|
|
382
382
|
return {
|
|
383
383
|
dataset_id: d.datasetId,
|
|
@@ -385,10 +385,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
385
385
|
is_retry_all: d.isRetryAll
|
|
386
386
|
};
|
|
387
387
|
};
|
|
388
|
-
/**
|
|
389
|
-
* ui 转接口
|
|
390
|
-
* @param data IBatchUpdateDatasetDataValidity
|
|
391
|
-
* @returns IBatchUpdateDatasetDataValidityApi
|
|
388
|
+
/**
|
|
389
|
+
* ui 转接口
|
|
390
|
+
* @param data IBatchUpdateDatasetDataValidity
|
|
391
|
+
* @returns IBatchUpdateDatasetDataValidityApi
|
|
392
392
|
*/ export const transferBatchUpdateDatasetDataValidity2BatchUpdateDatasetDataValidityApi = (data)=>{
|
|
393
393
|
return {
|
|
394
394
|
dataset_id: data.datasetId,
|
|
@@ -53,10 +53,10 @@ function _object_spread_props(target, source) {
|
|
|
53
53
|
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi } from './common.ts.js';
|
|
54
54
|
import { mergeStringWithoutLastSlash, mergeStringWithoutLeadingSlash } from '../../common/util.ts.js';
|
|
55
55
|
import { transferResourcePermissionApi2ResourcePermission } from './permission.ts.js';
|
|
56
|
-
/**
|
|
57
|
-
* 从路径中获取文件信息
|
|
58
|
-
* @param path 路径
|
|
59
|
-
* @returns 文件路径和文件名
|
|
56
|
+
/**
|
|
57
|
+
* 从路径中获取文件信息
|
|
58
|
+
* @param path 路径
|
|
59
|
+
* @returns 文件路径和文件名
|
|
60
60
|
*/ export const getFileInfoFromPath = (path)=>{
|
|
61
61
|
const match = /\/([^/]*)$/.exec(path);
|
|
62
62
|
const result = {
|
|
@@ -69,10 +69,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
69
69
|
}
|
|
70
70
|
return result;
|
|
71
71
|
};
|
|
72
|
-
/**
|
|
73
|
-
* ui 转换为接口使用
|
|
74
|
-
* @param data IKnowledge
|
|
75
|
-
* @returns IKnowledgeApi
|
|
72
|
+
/**
|
|
73
|
+
* ui 转换为接口使用
|
|
74
|
+
* @param data IKnowledge
|
|
75
|
+
* @returns IKnowledgeApi
|
|
76
76
|
*/ export const transferKnowledge = (data)=>({
|
|
77
77
|
id: data.id,
|
|
78
78
|
url: data.url,
|
|
@@ -151,10 +151,10 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
151
151
|
target: (_transferPipelineVersionHandleTypeApi2PipelineVersionHandleType1 = transferPipelineVersionHandleTypeApi2PipelineVersionHandleType(data.target)) !== null && _transferPipelineVersionHandleTypeApi2PipelineVersionHandleType1 !== void 0 ? _transferPipelineVersionHandleTypeApi2PipelineVersionHandleType1 : null
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
|
-
/**
|
|
155
|
-
* 接口转换为ui使用
|
|
156
|
-
* @param data IKnowledgeApi
|
|
157
|
-
* @returns IKnowledge
|
|
154
|
+
/**
|
|
155
|
+
* 接口转换为ui使用
|
|
156
|
+
* @param data IKnowledgeApi
|
|
157
|
+
* @returns IKnowledge
|
|
158
158
|
*/ export const transferKnowledgeApi = (data)=>{
|
|
159
159
|
var _data_config, _data_config1, _data_config2, _data_config3, _data_ingestion_stage_snapshots;
|
|
160
160
|
const { fileName = data.file_path, filePath = '' } = getFileInfoFromPath(data.file_path);
|
|
@@ -194,8 +194,8 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
194
194
|
pipelineVersionDiff: transferPipelineVersionDiffApi2PipelineVersionDiff(data.pipeline_version_diff)
|
|
195
195
|
};
|
|
196
196
|
};
|
|
197
|
-
/**
|
|
198
|
-
* 接口文件夹转换为knowledgbase
|
|
197
|
+
/**
|
|
198
|
+
* 接口文件夹转换为knowledgbase
|
|
199
199
|
*/ export const transferKnowledgeApi2Knowledgebase = (knowledge, knowledgebase)=>{
|
|
200
200
|
var _knowledge_config, _knowledge_children;
|
|
201
201
|
const { fileName = knowledge.file_path, filePath = '' } = getFileInfoFromPath(knowledge.file_path);
|
|
@@ -224,10 +224,10 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
224
224
|
children: (_knowledge_children = knowledge.children) === null || _knowledge_children === void 0 ? void 0 : _knowledge_children.map((child)=>transferKnowledgeApi2Knowledgebase(child, knowledgebase))
|
|
225
225
|
});
|
|
226
226
|
};
|
|
227
|
-
/**
|
|
228
|
-
* ui 转换为接口使用
|
|
229
|
-
* @param data IKnowledgebase
|
|
230
|
-
* @returns IKnowledgebaseApi
|
|
227
|
+
/**
|
|
228
|
+
* ui 转换为接口使用
|
|
229
|
+
* @param data IKnowledgebase
|
|
230
|
+
* @returns IKnowledgebaseApi
|
|
231
231
|
*/ export const transferKnowledgebase = (data)=>({
|
|
232
232
|
pipeline_codes: data.pipelineCodes,
|
|
233
233
|
id: data.id,
|
|
@@ -243,9 +243,9 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
243
243
|
status: data.status,
|
|
244
244
|
space_id: data.spaceId
|
|
245
245
|
});
|
|
246
|
-
/**
|
|
247
|
-
* 转换 ui 文件夹为 IKnowledgeApi,接口使用
|
|
248
|
-
* @param knowledgebase IKnowledgebase
|
|
246
|
+
/**
|
|
247
|
+
* 转换 ui 文件夹为 IKnowledgeApi,接口使用
|
|
248
|
+
* @param knowledgebase IKnowledgebase
|
|
249
249
|
*/ export const transferKnowledgebase2KnowledgeApi = (data)=>({
|
|
250
250
|
id: data.id,
|
|
251
251
|
config: {
|
|
@@ -259,10 +259,10 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
259
259
|
path_type: data.pathType,
|
|
260
260
|
anchor_path: mergeStringWithoutLastSlash(data.parentAnchorPath, data.name)
|
|
261
261
|
});
|
|
262
|
-
/**
|
|
263
|
-
* 接口转换为ui使用
|
|
264
|
-
* @param data IKnowledgebaseApi
|
|
265
|
-
* @returns IKnowledgebase
|
|
262
|
+
/**
|
|
263
|
+
* 接口转换为ui使用
|
|
264
|
+
* @param data IKnowledgebaseApi
|
|
265
|
+
* @returns IKnowledgebase
|
|
266
266
|
*/ export const transferKnowledgebaseApi = (data)=>{
|
|
267
267
|
var _data_children;
|
|
268
268
|
const knowledgebase = {
|
|
@@ -291,10 +291,10 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
291
291
|
children: (_data_children = data.children) === null || _data_children === void 0 ? void 0 : _data_children.map((child)=>transferKnowledgeApi2Knowledgebase(child, knowledgebase))
|
|
292
292
|
});
|
|
293
293
|
};
|
|
294
|
-
/**
|
|
295
|
-
* 接口转换为ui使用
|
|
296
|
-
* @param data IKnowledgePipelineApi
|
|
297
|
-
* @returns IKnowledgePipeline
|
|
294
|
+
/**
|
|
295
|
+
* 接口转换为ui使用
|
|
296
|
+
* @param data IKnowledgePipelineApi
|
|
297
|
+
* @returns IKnowledgePipeline
|
|
298
298
|
*/ export const transferKnowledgePipelineApi2KnowledgePipeline = (data)=>{
|
|
299
299
|
var _data_pipelines;
|
|
300
300
|
return {
|
|
@@ -306,10 +306,10 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
306
306
|
pipelines: (_data_pipelines = data.pipelines) === null || _data_pipelines === void 0 ? void 0 : _data_pipelines.map(transferKnowledgePipelineApi2KnowledgePipeline)
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
|
-
/**
|
|
310
|
-
* 接口转换为ui
|
|
311
|
-
* @param data IKnowledgeQuerySetting
|
|
312
|
-
* @returns IKnowledgeQuerySettingApi
|
|
309
|
+
/**
|
|
310
|
+
* 接口转换为ui
|
|
311
|
+
* @param data IKnowledgeQuerySetting
|
|
312
|
+
* @returns IKnowledgeQuerySettingApi
|
|
313
313
|
*/ export const transferKnowledgeQuerySetting = (data)=>({
|
|
314
314
|
recall_channels: data.recallChannels,
|
|
315
315
|
document_fragment_count: data.documentFragmentCount,
|
|
@@ -324,10 +324,10 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
324
324
|
is_response_when_no_knowledgebase_match: data.isResponseWhenNoKnowledgebaseMatch,
|
|
325
325
|
rejection_message: data.rejectionMessage
|
|
326
326
|
});
|
|
327
|
-
/**
|
|
328
|
-
* 接口转换为ui
|
|
329
|
-
* @param data IKnowledgeQuerySettingApi
|
|
330
|
-
* @returns IKnowledgeQuerySetting
|
|
327
|
+
/**
|
|
328
|
+
* 接口转换为ui
|
|
329
|
+
* @param data IKnowledgeQuerySettingApi
|
|
330
|
+
* @returns IKnowledgeQuerySetting
|
|
331
331
|
*/ export const transferKnowledgeQuerySettingApi = (data)=>({
|
|
332
332
|
recallChannels: data.recall_channels,
|
|
333
333
|
documentFragmentCount: data.document_fragment_count,
|
|
@@ -342,10 +342,10 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
342
342
|
isResponseWhenNoKnowledgebaseMatch: data.is_response_when_no_knowledgebase_match,
|
|
343
343
|
rejectionMessage: data.rejection_message
|
|
344
344
|
});
|
|
345
|
-
/**
|
|
346
|
-
* ui转换为接口使用
|
|
347
|
-
* @param data IKnowledgeListParam
|
|
348
|
-
* @returns IKnowledgeListParamApi
|
|
345
|
+
/**
|
|
346
|
+
* ui转换为接口使用
|
|
347
|
+
* @param data IKnowledgeListParam
|
|
348
|
+
* @returns IKnowledgeListParamApi
|
|
349
349
|
*/ export const transferKnowledgeListParam2KnowledgeListParamApi = (data)=>_object_spread({
|
|
350
350
|
searchbox: {
|
|
351
351
|
knowledge_name: data.searchbox.knowledgeName,
|
|
@@ -364,10 +364,10 @@ export const transferPipelineVersionDiffApi2PipelineVersionDiff = (data)=>{
|
|
|
364
364
|
with_private: data.withPrivate,
|
|
365
365
|
created_by: data.createdBy
|
|
366
366
|
}, transferIPaginationParam2IPaginationParamApi(data), transferISortParam2ISortParamApi(data), transferResourceCommonSearchParams2ResourceCommonSearchParamsApi(data));
|
|
367
|
-
/**
|
|
368
|
-
* ui转换为接口使用
|
|
369
|
-
* @param data IKnowledgebaseListParam
|
|
370
|
-
* @returns IKnowledgebaseListParamApi
|
|
367
|
+
/**
|
|
368
|
+
* ui转换为接口使用
|
|
369
|
+
* @param data IKnowledgebaseListParam
|
|
370
|
+
* @returns IKnowledgebaseListParamApi
|
|
371
371
|
*/ export const transferKnowledgebaseListParam2KnowledgebaseListParamApi = (data)=>_object_spread_props(_object_spread({}, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi(data), transferISortParam2ISortParamApi(data), transferIPaginationParam2IPaginationParamApi(data)), {
|
|
372
372
|
fuzzy: data.fuzzy,
|
|
373
373
|
anchor_paths: data.anchorPaths,
|
|
@@ -51,10 +51,10 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue2IApprovalSettingValueApi, transferIApprovalSettingValueApi2IApprovalSettingValue, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
|
-
/**
|
|
55
|
-
* ui转换为接口使用
|
|
56
|
-
* @param data IMcpListParam
|
|
57
|
-
* @returns IMcpListParamApi
|
|
54
|
+
/**
|
|
55
|
+
* ui转换为接口使用
|
|
56
|
+
* @param data IMcpListParam
|
|
57
|
+
* @returns IMcpListParamApi
|
|
58
58
|
*/ export const transferMcpParam2McpParamApi = (data)=>_object_spread_props(_object_spread({}, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi(data), transferISortParam2ISortParamApi(data), transferIPaginationParam2IPaginationParamApi(data)), {
|
|
59
59
|
created_by: data.createdBy,
|
|
60
60
|
updated_by: data.updatedBy,
|
|
@@ -71,8 +71,8 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
71
71
|
with_apigw_mcp: data.withApigwMcp,
|
|
72
72
|
description: data.description
|
|
73
73
|
});
|
|
74
|
-
/**
|
|
75
|
-
* 接口转换为ui使用(MCP工具输入参数)
|
|
74
|
+
/**
|
|
75
|
+
* 接口转换为ui使用(MCP工具输入参数)
|
|
76
76
|
*/ export const transferMcpToolInputParamApi2McpToolInputParam = (data)=>{
|
|
77
77
|
var _data_children;
|
|
78
78
|
return {
|
|
@@ -83,8 +83,8 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
83
83
|
children: (_data_children = data.children) === null || _data_children === void 0 ? void 0 : _data_children.map(transferMcpToolInputParamApi2McpToolInputParam)
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
-
/**
|
|
87
|
-
* 接口转换为ui使用(MCP工具输出参数)
|
|
86
|
+
/**
|
|
87
|
+
* 接口转换为ui使用(MCP工具输出参数)
|
|
88
88
|
*/ export const transferMcpToolOutputParamApi2McpToolOutputParam = (data)=>{
|
|
89
89
|
var _data_children;
|
|
90
90
|
return {
|
|
@@ -94,8 +94,8 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
94
94
|
children: (_data_children = data.children) === null || _data_children === void 0 ? void 0 : _data_children.map(transferMcpToolOutputParamApi2McpToolOutputParam)
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
-
/**
|
|
98
|
-
* API to UI (MCP Tool)
|
|
97
|
+
/**
|
|
98
|
+
* API to UI (MCP Tool)
|
|
99
99
|
*/ export const transferMcpToolApi2McpTool = (mcpTool)=>{
|
|
100
100
|
var _mcpTool_input_params, _mcpTool_output_params;
|
|
101
101
|
return _object_spread({
|
|
@@ -107,8 +107,8 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
107
107
|
arguments: mcpTool.arguments
|
|
108
108
|
}, transferIApprovalSettingValueApi2IApprovalSettingValue(mcpTool));
|
|
109
109
|
};
|
|
110
|
-
/**
|
|
111
|
-
* ui转换为接口使用(MCP工具输入参数)
|
|
110
|
+
/**
|
|
111
|
+
* ui转换为接口使用(MCP工具输入参数)
|
|
112
112
|
*/ export const transferMcpToolInputParam2McpToolInputParamApi = (data)=>{
|
|
113
113
|
var _data_children;
|
|
114
114
|
return {
|
|
@@ -119,8 +119,8 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
119
119
|
children: (_data_children = data.children) === null || _data_children === void 0 ? void 0 : _data_children.map(transferMcpToolInputParam2McpToolInputParamApi)
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
/**
|
|
123
|
-
* ui转换为接口使用(MCP工具输出参数)
|
|
122
|
+
/**
|
|
123
|
+
* ui转换为接口使用(MCP工具输出参数)
|
|
124
124
|
*/ export const transferMcpToolOutputParam2McpToolOutputParamApi = (data)=>{
|
|
125
125
|
var _data_children;
|
|
126
126
|
return {
|
|
@@ -130,8 +130,8 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
130
130
|
children: (_data_children = data.children) === null || _data_children === void 0 ? void 0 : _data_children.map(transferMcpToolOutputParam2McpToolOutputParamApi)
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
/**
|
|
134
|
-
* UI to API (MCP Tool)
|
|
133
|
+
/**
|
|
134
|
+
* UI to API (MCP Tool)
|
|
135
135
|
*/ export const transferMcpTool2McpToolApi = (mcpTool)=>{
|
|
136
136
|
var _mcpTool_inputParams, _mcpTool_outputParams;
|
|
137
137
|
return _object_spread({
|
|
@@ -143,10 +143,10 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
143
143
|
arguments: mcpTool.arguments
|
|
144
144
|
}, transferIApprovalSettingValue2IApprovalSettingValueApi(mcpTool));
|
|
145
145
|
};
|
|
146
|
-
/**
|
|
147
|
-
* 接口转换为ui使用(表单字段)
|
|
148
|
-
* @param data IMcpFormApi
|
|
149
|
-
* @returns IMcpForm
|
|
146
|
+
/**
|
|
147
|
+
* 接口转换为ui使用(表单字段)
|
|
148
|
+
* @param data IMcpFormApi
|
|
149
|
+
* @returns IMcpForm
|
|
150
150
|
*/ export const transferMcpFormApi2McpForm = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
|
|
151
151
|
mcpName: data.mcp_name,
|
|
152
152
|
mcpCode: data.mcp_code,
|
|
@@ -157,10 +157,10 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
157
157
|
icon: data.icon,
|
|
158
158
|
userGuide: data.user_guide
|
|
159
159
|
});
|
|
160
|
-
/**
|
|
161
|
-
* 接口转换为ui使用(完整资源)
|
|
162
|
-
* @param data IMcpApi
|
|
163
|
-
* @returns IMcp
|
|
160
|
+
/**
|
|
161
|
+
* 接口转换为ui使用(完整资源)
|
|
162
|
+
* @param data IMcpApi
|
|
163
|
+
* @returns IMcp
|
|
164
164
|
*/ export const transferMcpApi2Mcp = (data)=>{
|
|
165
165
|
var _data_mcp_tools, _data_selected_tools;
|
|
166
166
|
return _object_spread_props(_object_spread({}, transferMcpFormApi2McpForm(data), transferResourceCommonApi2ResourceCommon(data)), {
|
|
@@ -178,10 +178,10 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
178
178
|
favoriteCount: data.favorite_count
|
|
179
179
|
});
|
|
180
180
|
};
|
|
181
|
-
/**
|
|
182
|
-
* ui转换为接口使用(表单字段)
|
|
183
|
-
* @param data IMcpForm
|
|
184
|
-
* @returns IMcpFormApi
|
|
181
|
+
/**
|
|
182
|
+
* ui转换为接口使用(表单字段)
|
|
183
|
+
* @param data IMcpForm
|
|
184
|
+
* @returns IMcpFormApi
|
|
185
185
|
*/ export const transferMcpForm2McpFormApi = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommon2ResourceFormCommonApi(data)), {
|
|
186
186
|
mcp_name: data.mcpName,
|
|
187
187
|
mcp_code: data.mcpCode,
|
|
@@ -192,10 +192,10 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
192
192
|
icon: data.icon,
|
|
193
193
|
user_guide: data.userGuide
|
|
194
194
|
});
|
|
195
|
-
/**
|
|
196
|
-
* ui转换为接口使用(完整资源)
|
|
197
|
-
* @param data IMcp
|
|
198
|
-
* @returns IMcpApi
|
|
195
|
+
/**
|
|
196
|
+
* ui转换为接口使用(完整资源)
|
|
197
|
+
* @param data IMcp
|
|
198
|
+
* @returns IMcpApi
|
|
199
199
|
*/ export const transferMcp2McpApi = (data)=>{
|
|
200
200
|
var _data_mcpTools, _data_selectedTools;
|
|
201
201
|
return _object_spread_props(_object_spread({}, transferMcpForm2McpFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
@@ -212,10 +212,10 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
212
212
|
favorite_count: data.favoriteCount
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
|
-
/**
|
|
216
|
-
* ui转换为接口使用(注册MCP配置)
|
|
217
|
-
* @param data IRegisterMcpParam
|
|
218
|
-
* @returns IRegisterMcpParamApi
|
|
215
|
+
/**
|
|
216
|
+
* ui转换为接口使用(注册MCP配置)
|
|
217
|
+
* @param data IRegisterMcpParam
|
|
218
|
+
* @returns IRegisterMcpParamApi
|
|
219
219
|
*/ export const transferRegisterMcpParam2RegisterMcpParamApi = (data)=>({
|
|
220
220
|
mcps: data.mcps.map((item)=>({
|
|
221
221
|
mcp_type: item.mcpType,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 接口转换为ui
|
|
3
|
-
* @param data IResourcePermissionApi
|
|
4
|
-
* @returns IResourcePermission
|
|
1
|
+
/**
|
|
2
|
+
* 接口转换为ui
|
|
3
|
+
* @param data IResourcePermissionApi
|
|
4
|
+
* @returns IResourcePermission
|
|
5
5
|
*/ export const transferResourcePermissionApi2ResourcePermission = (data)=>data ? {
|
|
6
6
|
accessModel: data.access_model,
|
|
7
7
|
accessModelStrategy: data.access_model_strategy,
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
useMcp: data.use_mcp,
|
|
42
42
|
manageProject: data.manage_project
|
|
43
43
|
} : undefined;
|
|
44
|
-
/**
|
|
45
|
-
* ui转换为接口使用
|
|
46
|
-
* @param data IResourcePermission
|
|
47
|
-
* @returns IResourcePermissionApi
|
|
44
|
+
/**
|
|
45
|
+
* ui转换为接口使用
|
|
46
|
+
* @param data IResourcePermission
|
|
47
|
+
* @returns IResourcePermissionApi
|
|
48
48
|
*/ export const transferResourcePermission2ResourcePermissionApi = (data)=>data ? {
|
|
49
49
|
access_model: data.accessModel,
|
|
50
50
|
access_model_strategy: data.accessModelStrategy,
|
|
@@ -84,10 +84,10 @@
|
|
|
84
84
|
use_mcp: data.useMcp,
|
|
85
85
|
manage_project: data.manageProject
|
|
86
86
|
} : undefined;
|
|
87
|
-
/**
|
|
88
|
-
* 接口转换为ui
|
|
89
|
-
* @param data ICheckPermissionApi
|
|
90
|
-
* @returns ICheckPermission
|
|
87
|
+
/**
|
|
88
|
+
* 接口转换为ui
|
|
89
|
+
* @param data ICheckPermissionApi
|
|
90
|
+
* @returns ICheckPermission
|
|
91
91
|
*/ export const transferCheckPermissionApi2CheckPermission = (data)=>data.map((item)=>({
|
|
92
92
|
actionId: item.action_id,
|
|
93
93
|
isAllowed: item.is_allowed
|