@blueking/ai-ui-sdk 0.3.0-beta.2 → 0.3.0-beta.4
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 +290 -290
- package/dist/assets/svg/lock.svg +43 -0
- package/dist/common/util.ts.js +102 -102
- package/dist/components/render-agent/agent-download.vue.css +2 -2
- package/dist/components/render-agent/agent-search.script.vue.js.js +1 -1
- package/dist/components/render-agent/agent-share.script.vue.js.js +1 -1
- 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.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/actions.script.vue.js.js +9 -9
- package/dist/components/render-card/agent/index.script.vue.js.js +1 -1
- package/dist/components/render-card/agent/prefix-info-tool.script.vue.js.js +9 -9
- 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/agent-command/index.script.vue.js.js +1 -1
- package/dist/components/render-card/agent-command/info-tool.script.vue.js.js +8 -8
- package/dist/components/render-card/base/reference-icon.script.vue.js.js +1 -1
- package/dist/components/render-card/base/tag-suffix.script.vue.js.js +1 -1
- package/dist/components/render-card/base.script.vue.js +16 -16
- 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.script.vue.js.js +1 -1
- package/dist/components/render-card/knowledge/info-tool.script.vue.js.js +1 -1
- package/dist/components/render-card/knowledgebase/index.script.vue.js.js +1 -1
- package/dist/components/render-card/knowledgebase/info-tool.script.vue.js.js +1 -1
- package/dist/components/render-card/llm/actions.script.vue.js.js +1 -1
- package/dist/components/render-card/llm/corner-badge.script.vue.js +3 -3
- 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.script.vue.js.js +2 -2
- 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.script.vue.js.js +1 -1
- package/dist/components/render-card/llm/info.script.vue.js.js +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 +6 -6
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/actions.script.vue.js.js +2 -2
- package/dist/components/render-card/mcp/code-suffix.script.vue.js +2 -2
- package/dist/components/render-card/mcp/index.script.vue.js.js +1 -1
- package/dist/components/render-card/mcp/name-suffix.script.vue.js +2 -2
- 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/prefix-info-tool.script.vue.js.js +2 -2
- 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 +3 -3
- package/dist/components/render-card/role/index.script.vue.js.js +2 -2
- package/dist/components/render-card/skill/index.script.vue.js.js +1 -1
- package/dist/components/render-card/skill/tag-prefix.script.vue.js.js +2 -2
- package/dist/components/render-card/skill/tag-prefix.vue.css +7 -7
- package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/tool/actions.script.vue.js.js +3 -3
- package/dist/components/render-card/tool/index.script.vue.js.js +1 -1
- package/dist/components/render-card/tool/prefix-info-tool.script.vue.js.js +2 -2
- package/dist/components/render-checkbox/index.script.vue.js.js +2 -2
- 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.script.vue.js.js +3 -3
- 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/actions/index.script.vue.js.js +4 -4
- package/dist/components/render-collection/content/index.script.vue.js +5 -5
- 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-collection/search/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.script.vue.js +3 -3
- 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/batch-edit-valid-dataset-data/index.script.vue.js.js +5 -5
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +2 -2
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-level/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +3 -3
- package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +8 -8
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +2 -2
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +8 -8
- 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.script.vue.js +4 -4
- 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.script.vue.js.js +2 -2
- 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/dataset-footer.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +4 -4
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +4 -4
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.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/file.script.vue.js.js +2 -2
- 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 +3 -3
- 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.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.css +4 -4
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.script.vue.js.js +6 -6
- 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/components/header.script.vue.js.js +2 -2
- package/dist/components/render-dataset-detail/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +2 -2
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +7 -7
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.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.script.vue.js.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/components/table.script.vue.js +7 -7
- 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-footer.script.vue.js.js +3 -3
- package/dist/components/render-dialog/choose-resource.script.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.script.vue.js +3 -3
- 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.script.vue.js.js +8 -8
- package/dist/components/render-dialog/choose-space.vue.css +17 -17
- 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.script.vue.js.js +1 -1
- package/dist/components/render-file-card/index.vue.css +28 -28
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.script.vue.js.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-header/index.script.vue.js.js +4 -4
- package/dist/components/render-header/index.vue.css +7 -7
- package/dist/components/render-header/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-knowledge/search/index.script.vue.js.js +1 -1
- package/dist/components/render-knowledgebase/search/index.script.vue.js.js +1 -1
- package/dist/components/render-like/index.script.vue.js.js +8 -8
- package/dist/components/render-like/index.vue.css +10 -10
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-markdown/edit.postcss.css +92 -92
- package/dist/components/render-markdown/edit.ts.js +2 -2
- 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-markdown/view.ts.js +1 -1
- package/dist/components/render-mcp/search/index.script.vue.js.js +1 -1
- package/dist/components/render-permission-tag/index.script.vue.js +2 -2
- package/dist/components/render-permission-tag/index.vue.css +2 -2
- package/dist/components/render-prompt/actions/index.script.vue.js.js +4 -4
- package/dist/components/render-prompt/content/index.script.vue.js.js +1 -1
- 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-prompt/search/index.script.vue.js.js +1 -1
- package/dist/components/render-reference/index.script.vue.js +2 -2
- package/dist/components/render-reference/index.vue.css +4 -4
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-relate-agent/index.script.vue.js.js +3 -3
- package/dist/components/render-resource-info/index.script.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 +3 -3
- package/dist/components/render-search-select/index.script.vue.js.js +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-skill/actions/index.script.vue.js.js +2 -2
- package/dist/components/render-skill/icons/index.script.vue.js.js +1 -1
- package/dist/components/render-skill/search/index.script.vue.js.js +1 -1
- package/dist/components/render-t-table/index.script.vue.js +6 -6
- package/dist/components/render-t-table/index.vue.css +118 -118
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.script.vue.js.js +3 -3
- 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.script.vue.js +3 -3
- package/dist/components/render-tags/index.vue.css +12 -12
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/components/render-tool/search/index.script.vue.js.js +1 -1
- package/dist/components/render-tree/index.script.vue.js +1 -1
- package/dist/components/render-tree/index.vue.css +12 -12
- package/dist/css/fonts/iconcool.svg +163 -163
- package/dist/css/g-utilities.css +920 -0
- package/dist/css/g-utilities.manifest.json +163 -0
- package/dist/css/style.css +154 -154
- package/dist/hooks/use-chat.ts.js +6 -6
- package/dist/hooks/use-ellipsis-tooltip.ts.js +28 -28
- package/dist/hooks/use-loading-version.ts.js +4 -4
- package/dist/hooks/use-reference-doc.ts.js +137 -137
- package/dist/hooks/use-style.d.ts +1 -1
- package/dist/hooks/use-style.ts.js +1 -1
- package/dist/hooks/use-think.ts.js +67 -67
- package/dist/http/helper/agent.ts.js +36 -36
- package/dist/http/helper/collection.ts.js +12 -12
- package/dist/http/helper/common.ts.js +36 -36
- package/dist/http/helper/dataset.ts.js +76 -76
- package/dist/http/helper/knowledge.ts.js +41 -41
- 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 +12 -12
- package/dist/http/helper/session.ts.js +32 -32
- package/dist/http/helper/skill.ts.js +20 -20
- package/dist/http/helper/space.ts.js +12 -12
- package/dist/http/helper/tool.ts.js +20 -20
- package/package.json +115 -115
- package/dist/css/tailwind.css +0 -1115
|
@@ -51,10 +51,10 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { transferBaseCount2BaseCountApi, 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 { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
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 { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
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 { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
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 {
|
|
@@ -107,8 +107,8 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
107
107
|
arguments: mcpTool.arguments
|
|
108
108
|
};
|
|
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 { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
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 { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
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 {
|
|
@@ -143,10 +143,10 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
143
143
|
arguments: mcpTool.arguments
|
|
144
144
|
};
|
|
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 { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
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)), {
|
|
@@ -175,10 +175,10 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
175
175
|
refCount: data.ref_count
|
|
176
176
|
});
|
|
177
177
|
};
|
|
178
|
-
/**
|
|
179
|
-
* ui转换为接口使用(表单字段)
|
|
180
|
-
* @param data IMcpForm
|
|
181
|
-
* @returns IMcpFormApi
|
|
178
|
+
/**
|
|
179
|
+
* ui转换为接口使用(表单字段)
|
|
180
|
+
* @param data IMcpForm
|
|
181
|
+
* @returns IMcpFormApi
|
|
182
182
|
*/ export const transferMcpForm2McpFormApi = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommon2ResourceFormCommonApi(data)), {
|
|
183
183
|
mcp_name: data.mcpName,
|
|
184
184
|
mcp_code: data.mcpCode,
|
|
@@ -189,10 +189,10 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
189
189
|
icon: data.icon,
|
|
190
190
|
user_guide: data.userGuide
|
|
191
191
|
});
|
|
192
|
-
/**
|
|
193
|
-
* ui转换为接口使用(完整资源)
|
|
194
|
-
* @param data IMcp
|
|
195
|
-
* @returns IMcpApi
|
|
192
|
+
/**
|
|
193
|
+
* ui转换为接口使用(完整资源)
|
|
194
|
+
* @param data IMcp
|
|
195
|
+
* @returns IMcpApi
|
|
196
196
|
*/ export const transferMcp2McpApi = (data)=>{
|
|
197
197
|
var _data_mcpTools, _data_selectedTools;
|
|
198
198
|
return _object_spread_props(_object_spread({}, transferMcpForm2McpFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
@@ -206,10 +206,10 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
206
206
|
detail_url: data.detailUrl
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
|
-
/**
|
|
210
|
-
* ui转换为接口使用(注册MCP配置)
|
|
211
|
-
* @param data IRegisterMcpParam
|
|
212
|
-
* @returns IRegisterMcpParamApi
|
|
209
|
+
/**
|
|
210
|
+
* ui转换为接口使用(注册MCP配置)
|
|
211
|
+
* @param data IRegisterMcpParam
|
|
212
|
+
* @returns IRegisterMcpParamApi
|
|
213
213
|
*/ export const transferRegisterMcpParam2RegisterMcpParamApi = (data)=>({
|
|
214
214
|
mcps: data.mcps.map((item)=>({
|
|
215
215
|
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,
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
viewMcp: data.view_mcp,
|
|
41
41
|
useMcp: data.use_mcp
|
|
42
42
|
} : undefined;
|
|
43
|
-
/**
|
|
44
|
-
* ui转换为接口使用
|
|
45
|
-
* @param data IResourcePermission
|
|
46
|
-
* @returns IResourcePermissionApi
|
|
43
|
+
/**
|
|
44
|
+
* ui转换为接口使用
|
|
45
|
+
* @param data IResourcePermission
|
|
46
|
+
* @returns IResourcePermissionApi
|
|
47
47
|
*/ export const transferResourcePermission2ResourcePermissionApi = (data)=>data ? {
|
|
48
48
|
access_model: data.accessModel,
|
|
49
49
|
access_model_strategy: data.accessModelStrategy,
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
view_mcp: data.viewMcp,
|
|
83
83
|
use_mcp: data.useMcp
|
|
84
84
|
} : undefined;
|
|
85
|
-
/**
|
|
86
|
-
* 接口转换为ui
|
|
87
|
-
* @param data ICheckPermissionApi
|
|
88
|
-
* @returns ICheckPermission
|
|
85
|
+
/**
|
|
86
|
+
* 接口转换为ui
|
|
87
|
+
* @param data ICheckPermissionApi
|
|
88
|
+
* @returns ICheckPermission
|
|
89
89
|
*/ export const transferCheckPermissionApi2CheckPermission = (data)=>data.map((item)=>({
|
|
90
90
|
actionId: item.action_id,
|
|
91
91
|
isAllowed: item.is_allowed
|
|
@@ -51,20 +51,20 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationParamApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommonApi2ResourceFormCommon, transferVariableApi2Variable } from './common.ts.js';
|
|
54
|
-
/**
|
|
55
|
-
* 接口转换为ui使用(表单字段)
|
|
56
|
-
* @param data IPromptFormApi
|
|
57
|
-
* @returns IPromptForm
|
|
54
|
+
/**
|
|
55
|
+
* 接口转换为ui使用(表单字段)
|
|
56
|
+
* @param data IPromptFormApi
|
|
57
|
+
* @returns IPromptForm
|
|
58
58
|
*/ export const transferPromptFormApi2PromptForm = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
|
|
59
59
|
name: data.prompt_name,
|
|
60
60
|
code: data.prompt_code,
|
|
61
61
|
content: data.content,
|
|
62
62
|
variables: data.variables.map(transferVariableApi2Variable)
|
|
63
63
|
});
|
|
64
|
-
/**
|
|
65
|
-
* 接口转换为ui使用(完整资源)
|
|
66
|
-
* @param data IPromptApi
|
|
67
|
-
* @returns IPrompt
|
|
64
|
+
/**
|
|
65
|
+
* 接口转换为ui使用(完整资源)
|
|
66
|
+
* @param data IPromptApi
|
|
67
|
+
* @returns IPrompt
|
|
68
68
|
*/ export const transferPromptApi2Prompt = (data)=>{
|
|
69
69
|
var _data_prompt_id, _data_likes;
|
|
70
70
|
return _object_spread_props(_object_spread({}, transferPromptFormApi2PromptForm(data), transferResourceCommonApi2ResourceCommon(data)), {
|
|
@@ -74,10 +74,10 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
74
74
|
usedCount: data.used_count
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
|
-
/**
|
|
78
|
-
* ui转换为接口使用
|
|
79
|
-
* @param data IPromptsParams
|
|
80
|
-
* @returns IPromptsApiParams
|
|
77
|
+
/**
|
|
78
|
+
* ui转换为接口使用
|
|
79
|
+
* @param data IPromptsParams
|
|
80
|
+
* @returns IPromptsApiParams
|
|
81
81
|
*/ export const transferPromptParam2PromptParamApi = (data)=>{
|
|
82
82
|
return _object_spread_props(_object_spread({}, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi(data), transferIPaginationParam2IPaginationParamApi(data)), {
|
|
83
83
|
fuzzy: data.fuzzy,
|
|
@@ -53,10 +53,10 @@ function _object_spread_props(target, source) {
|
|
|
53
53
|
import { transferKnowledge, transferKnowledgeApi, transferKnowledgeApi2Knowledgebase, transferKnowledgebase, transferKnowledgebase2KnowledgeApi, transferKnowledgebaseApi } from './knowledge.ts.js';
|
|
54
54
|
import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
55
55
|
import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
56
|
-
/**
|
|
57
|
-
* 将 sessionContent 转换为 sessionPrompt
|
|
58
|
-
* @param sessionContent sessionContent
|
|
59
|
-
* @returns sessionPrompt
|
|
56
|
+
/**
|
|
57
|
+
* 将 sessionContent 转换为 sessionPrompt
|
|
58
|
+
* @param sessionContent sessionContent
|
|
59
|
+
* @returns sessionPrompt
|
|
60
60
|
*/ export const transferSessionContent2SessionPrompt = (sessionContent)=>{
|
|
61
61
|
const sessionRoleMap = {
|
|
62
62
|
[SessionContentRole.Ai]: SessionPromptRole.Assistant,
|
|
@@ -86,10 +86,10 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
86
86
|
role: sessionRoleMap[sessionContent.role]
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
-
/**
|
|
90
|
-
* 将前端使用的 session 提示数据转换为前端使用的 session 内容数据
|
|
91
|
-
* @param prompt 前端使用的 session 提示数据
|
|
92
|
-
* @returns 前端使用的 session 内容数据
|
|
89
|
+
/**
|
|
90
|
+
* 将前端使用的 session 提示数据转换为前端使用的 session 内容数据
|
|
91
|
+
* @param prompt 前端使用的 session 提示数据
|
|
92
|
+
* @returns 前端使用的 session 内容数据
|
|
93
93
|
*/ export const transferSessionPrompt2SessionContent = (prompt)=>{
|
|
94
94
|
const sessionRoleMap = {
|
|
95
95
|
[SessionPromptRole.Assistant]: SessionContentRole.Ai,
|
|
@@ -115,10 +115,10 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
115
115
|
role: sessionRoleMap[prompt.role]
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
|
-
/**
|
|
119
|
-
* 将 API 返回的 session 数据转换为前端使用的 session 数据
|
|
120
|
-
* @param data API 返回的 session 数据
|
|
121
|
-
* @returns 前端使用的 session 数据
|
|
118
|
+
/**
|
|
119
|
+
* 将 API 返回的 session 数据转换为前端使用的 session 数据
|
|
120
|
+
* @param data API 返回的 session 数据
|
|
121
|
+
* @returns 前端使用的 session 数据
|
|
122
122
|
*/ export const transferSessionApi2Session = (data)=>{
|
|
123
123
|
var _data_tools, _data_anchor_path_resources, _data_anchor_path_resources1, _data_anchor_path_resources2;
|
|
124
124
|
return {
|
|
@@ -146,10 +146,10 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
-
/**
|
|
150
|
-
* 将前端使用的 session 数据转换为 API 使用的 session 数据
|
|
151
|
-
* @param data 前端使用的 session 数据
|
|
152
|
-
* @returns API 使用的 session 数据
|
|
149
|
+
/**
|
|
150
|
+
* 将前端使用的 session 数据转换为 API 使用的 session 数据
|
|
151
|
+
* @param data 前端使用的 session 数据
|
|
152
|
+
* @returns API 使用的 session 数据
|
|
153
153
|
*/ export const transferSession2SessionApi = (data)=>{
|
|
154
154
|
var _data_sessionProperty, _data_sessionProperty1;
|
|
155
155
|
return {
|
|
@@ -171,10 +171,10 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
/**
|
|
175
|
-
* 将 API 返回的 session 内容数据转换为前端使用的 session 内容数据
|
|
176
|
-
* @param data API 返回的 session 内容数据
|
|
177
|
-
* @returns 前端使用的 session 内容数据
|
|
174
|
+
/**
|
|
175
|
+
* 将 API 返回的 session 内容数据转换为前端使用的 session 内容数据
|
|
176
|
+
* @param data API 返回的 session 内容数据
|
|
177
|
+
* @returns 前端使用的 session 内容数据
|
|
178
178
|
*/ export const transferSessionContentApi2SessionContent = (data)=>{
|
|
179
179
|
var _data_property_extra_tools, _data_property_extra, _data_property, _data_property_extra_anchor_path_resources_knowledges, _data_property_extra_anchor_path_resources, _data_property_extra1, _data_property1, _data_property_extra_anchor_path_resources_knowledgebases, _data_property_extra_anchor_path_resources1, _data_property_extra2, _data_property2, _data_property_extra_anchor_path_resources_knowledge_folders, _data_property_extra_anchor_path_resources2, _data_property_extra3, _data_property3, _data_property_extra4, _data_property4, _data_property_extra5, _data_property5;
|
|
180
180
|
return {
|
|
@@ -206,10 +206,10 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
/**
|
|
210
|
-
* 将前端使用的 session 内容数据转换为 API 使用的 session 内容数据
|
|
211
|
-
* @param data 前端使用的 session 内容数据
|
|
212
|
-
* @returns API 使用的 session 内容数据
|
|
209
|
+
/**
|
|
210
|
+
* 将前端使用的 session 内容数据转换为 API 使用的 session 内容数据
|
|
211
|
+
* @param data 前端使用的 session 内容数据
|
|
212
|
+
* @returns API 使用的 session 内容数据
|
|
213
213
|
*/ export const transferSessionContent2SessionContentApi = (data)=>{
|
|
214
214
|
var _data_property, _data_property_extra_tools, _data_property_extra, _data_property1, _data_property_extra_anchorPathResources_knowledges, _data_property_extra_anchorPathResources, _data_property_extra1, _data_property2, _data_property_extra_anchorPathResources_knowledgebases, _data_property_extra_anchorPathResources1, _data_property_extra2, _data_property3, _data_property_extra_anchorPathResources_knowledgeFolders, _data_property_extra_anchorPathResources2, _data_property_extra3, _data_property4;
|
|
215
215
|
return {
|
|
@@ -239,10 +239,10 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
241
|
};
|
|
242
|
-
/**
|
|
243
|
-
* 将前端使用的 session 反馈数据转换为 API 使用的 session 反馈数据
|
|
244
|
-
* @param data 前端使用的 session 反馈数据
|
|
245
|
-
* @returns API 使用的 session 反馈数据
|
|
242
|
+
/**
|
|
243
|
+
* 将前端使用的 session 反馈数据转换为 API 使用的 session 反馈数据
|
|
244
|
+
* @param data 前端使用的 session 反馈数据
|
|
245
|
+
* @returns API 使用的 session 反馈数据
|
|
246
246
|
*/ export const transferSessionFeedback2SessionFeedbackApi = (data)=>{
|
|
247
247
|
return {
|
|
248
248
|
session_code: data.sessionCode,
|
|
@@ -252,10 +252,10 @@ import { SessionContentRole, SessionPromptRole } from '../../types/enum.ts.js';
|
|
|
252
252
|
labels: data.labels
|
|
253
253
|
};
|
|
254
254
|
};
|
|
255
|
-
/**
|
|
256
|
-
* 将 API 返回的 session 反馈数据转换为前端使用的 session 反馈数据
|
|
257
|
-
* @param data API 返回的 session 反馈数据
|
|
258
|
-
* @returns 前端使用的 session 反馈数据
|
|
255
|
+
/**
|
|
256
|
+
* 将 API 返回的 session 反馈数据转换为前端使用的 session 反馈数据
|
|
257
|
+
* @param data API 返回的 session 反馈数据
|
|
258
|
+
* @returns 前端使用的 session 反馈数据
|
|
259
259
|
*/ export const transferSessionFeedbackApi2SessionFeedback = (data)=>{
|
|
260
260
|
return {
|
|
261
261
|
sessionCode: data.session_code,
|
|
@@ -51,10 +51,10 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
|
-
/**
|
|
55
|
-
* ui转换为接口使用(表单字段)
|
|
56
|
-
* @param data ISkillForm
|
|
57
|
-
* @returns ISkillFormApi
|
|
54
|
+
/**
|
|
55
|
+
* ui转换为接口使用(表单字段)
|
|
56
|
+
* @param data ISkillForm
|
|
57
|
+
* @returns ISkillFormApi
|
|
58
58
|
*/ export const transferSkillForm2SkillFormApi = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommon2ResourceFormCommonApi(data)), {
|
|
59
59
|
skill_name: data.skillName,
|
|
60
60
|
skill_code: data.skillCode,
|
|
@@ -65,10 +65,10 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
65
65
|
file_type: data.fileType,
|
|
66
66
|
version: data.version
|
|
67
67
|
});
|
|
68
|
-
/**
|
|
69
|
-
* 接口转换为ui使用(表单字段)
|
|
70
|
-
* @param data ISkillFormApi
|
|
71
|
-
* @returns ISkillForm
|
|
68
|
+
/**
|
|
69
|
+
* 接口转换为ui使用(表单字段)
|
|
70
|
+
* @param data ISkillFormApi
|
|
71
|
+
* @returns ISkillForm
|
|
72
72
|
*/ export const transferSkillFormApi2SkillForm = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
|
|
73
73
|
skillName: data.skill_name,
|
|
74
74
|
skillCode: data.skill_code,
|
|
@@ -79,10 +79,10 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
79
79
|
fileType: data.file_type,
|
|
80
80
|
version: data.version
|
|
81
81
|
});
|
|
82
|
-
/**
|
|
83
|
-
* 接口转换为ui使用(完整资源)
|
|
84
|
-
* @param data ISkillApi
|
|
85
|
-
* @returns ISkill
|
|
82
|
+
/**
|
|
83
|
+
* 接口转换为ui使用(完整资源)
|
|
84
|
+
* @param data ISkillApi
|
|
85
|
+
* @returns ISkill
|
|
86
86
|
*/ export const transferSkillApi2Skill = (data)=>_object_spread_props(_object_spread({}, transferSkillFormApi2SkillForm(data), transferResourceCommonApi2ResourceCommon(data)), {
|
|
87
87
|
skillMarkdown: data.skill_markdown,
|
|
88
88
|
downloadCount: data.download_count,
|
|
@@ -95,10 +95,10 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
95
95
|
reportContent: data.scanner.report_content
|
|
96
96
|
} : undefined
|
|
97
97
|
});
|
|
98
|
-
/**
|
|
99
|
-
* ui转换为接口使用(完整资源)
|
|
100
|
-
* @param data ISkill
|
|
101
|
-
* @returns ISkillApi
|
|
98
|
+
/**
|
|
99
|
+
* ui转换为接口使用(完整资源)
|
|
100
|
+
* @param data ISkill
|
|
101
|
+
* @returns ISkillApi
|
|
102
102
|
*/ export const transferSkill2SkillApi = (data)=>_object_spread_props(_object_spread({}, transferSkillForm2SkillFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
103
103
|
skill_markdown: data.skillMarkdown,
|
|
104
104
|
download_count: data.downloadCount,
|
|
@@ -119,10 +119,10 @@ export const transferSkillCount2SkillCountApi = (data)=>{
|
|
|
119
119
|
created_by: data.createdBy
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
/**
|
|
123
|
-
* ui转换为接口使用
|
|
124
|
-
* @param data ISkillListParam
|
|
125
|
-
* @returns ISkillListParamApi
|
|
122
|
+
/**
|
|
123
|
+
* ui转换为接口使用
|
|
124
|
+
* @param data ISkillListParam
|
|
125
|
+
* @returns ISkillListParamApi
|
|
126
126
|
*/ export const transferSkillParam2SkillParamApi = (data)=>_object_spread_props(_object_spread({}, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi(data), transferISortParam2ISortParamApi(data), transferIPaginationParam2IPaginationParamApi(data)), {
|
|
127
127
|
generate_type: data.generateType,
|
|
128
128
|
fuzzy: data.fuzzy,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ui转换为接口
|
|
3
|
-
* @param data IResourcesRemoveApplication
|
|
4
|
-
* @returns IResourcesRemoveApplicationApi
|
|
1
|
+
/**
|
|
2
|
+
* ui转换为接口
|
|
3
|
+
* @param data IResourcesRemoveApplication
|
|
4
|
+
* @returns IResourcesRemoveApplicationApi
|
|
5
5
|
*/ export const transferResourcesRemoveApplication2ResourcesRemoveApplicationApi = (n)=>({
|
|
6
6
|
resource_type: n.resourceType,
|
|
7
7
|
resource_id: n.resourceId
|
|
8
8
|
});
|
|
9
|
-
/**
|
|
10
|
-
* ui转换为接口
|
|
11
|
-
* @param data IUsableSpaceParam
|
|
12
|
-
* @returns IUsableSpaceParamApi
|
|
9
|
+
/**
|
|
10
|
+
* ui转换为接口
|
|
11
|
+
* @param data IUsableSpaceParam
|
|
12
|
+
* @returns IUsableSpaceParamApi
|
|
13
13
|
*/ export const transferUsableSpaceParam2UsableSpaceParamApi = (data)=>({
|
|
14
14
|
resource_type: data.resourceType,
|
|
15
15
|
can_apply: data.canApply,
|
|
16
16
|
space_name: data.spaceName
|
|
17
17
|
});
|
|
18
|
-
/**
|
|
19
|
-
* 接口转换为ui
|
|
20
|
-
* @param data IUsableSpaceApi
|
|
21
|
-
* @returns IUsableSpace
|
|
18
|
+
/**
|
|
19
|
+
* 接口转换为ui
|
|
20
|
+
* @param data IUsableSpaceApi
|
|
21
|
+
* @returns IUsableSpace
|
|
22
22
|
*/ export const transferUsableSpaceApi2UsableSpace = (data)=>({
|
|
23
23
|
spaceId: data.space_id,
|
|
24
24
|
spaceCode: data.space_code,
|
|
@@ -51,10 +51,10 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
|
-
/**
|
|
55
|
-
* ui转换为接口使用(表单字段)
|
|
56
|
-
* @param data IToolForm
|
|
57
|
-
* @returns IToolFormApi
|
|
54
|
+
/**
|
|
55
|
+
* ui转换为接口使用(表单字段)
|
|
56
|
+
* @param data IToolForm
|
|
57
|
+
* @returns IToolFormApi
|
|
58
58
|
*/ export const transferToolForm2ToolFormApi = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommon2ResourceFormCommonApi(data)), {
|
|
59
59
|
tool_name: data.toolName,
|
|
60
60
|
tool_code: data.toolCode,
|
|
@@ -70,10 +70,10 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
70
70
|
credential_id: data.credentialId,
|
|
71
71
|
credential_type: data.credentialType
|
|
72
72
|
});
|
|
73
|
-
/**
|
|
74
|
-
* 接口转换为ui使用(表单字段)
|
|
75
|
-
* @param data IToolFormApi
|
|
76
|
-
* @returns IToolForm
|
|
73
|
+
/**
|
|
74
|
+
* 接口转换为ui使用(表单字段)
|
|
75
|
+
* @param data IToolFormApi
|
|
76
|
+
* @returns IToolForm
|
|
77
77
|
*/ export const transferToolFormApi2ToolForm = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
|
|
78
78
|
toolName: data.tool_name,
|
|
79
79
|
toolCode: data.tool_code,
|
|
@@ -87,27 +87,27 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
87
87
|
credentialId: data.credential_id,
|
|
88
88
|
credentialType: data.credential_type
|
|
89
89
|
});
|
|
90
|
-
/**
|
|
91
|
-
* 接口转换为ui使用(完整资源)
|
|
92
|
-
* @param data IToolApi
|
|
93
|
-
* @returns ITool
|
|
90
|
+
/**
|
|
91
|
+
* 接口转换为ui使用(完整资源)
|
|
92
|
+
* @param data IToolApi
|
|
93
|
+
* @returns ITool
|
|
94
94
|
*/ export const transferToolApi2Tool = (data)=>_object_spread_props(_object_spread({}, transferToolFormApi2ToolForm(data), transferResourceCommonApi2ResourceCommon(_object_spread_props(_object_spread({}, data), {
|
|
95
95
|
id: data.tool_id
|
|
96
96
|
}))), {
|
|
97
97
|
id: data.tool_id,
|
|
98
98
|
refCount: data.ref_count
|
|
99
99
|
});
|
|
100
|
-
/**
|
|
101
|
-
* ui转换为接口使用(完整资源)
|
|
102
|
-
* @param data ITool
|
|
103
|
-
* @returns IToolApi
|
|
100
|
+
/**
|
|
101
|
+
* ui转换为接口使用(完整资源)
|
|
102
|
+
* @param data ITool
|
|
103
|
+
* @returns IToolApi
|
|
104
104
|
*/ export const transferTool2ToolApi = (data)=>_object_spread_props(_object_spread({}, transferToolForm2ToolFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
105
105
|
tool_id: data.id
|
|
106
106
|
});
|
|
107
|
-
/**
|
|
108
|
-
* ui转换为接口使用
|
|
109
|
-
* @param data IToolsParam
|
|
110
|
-
* @returns IToolsApiParam
|
|
107
|
+
/**
|
|
108
|
+
* ui转换为接口使用
|
|
109
|
+
* @param data IToolsParam
|
|
110
|
+
* @returns IToolsApiParam
|
|
111
111
|
*/ export const transferToolsParam2ToolsParamApi = (data)=>{
|
|
112
112
|
return _object_spread_props(_object_spread({}, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi(data), transferISortParam2ISortParamApi(data), transferIPaginationParam2IPaginationParamApi(data)), {
|
|
113
113
|
fuzzy: data.fuzzy,
|