@blueking/ai-ui-sdk 0.1.19-beta.4 → 0.1.19-beta.40
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/dist/common/util.d.ts +24 -0
- package/dist/common/util.ts.js +41 -0
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +27 -26
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +9 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +129 -92
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.d.ts +4 -0
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.script.vue.js +86 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +133 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +4 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +6 -8
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +176 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +4 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +5 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +36 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- 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 +174 -0
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.d.ts +5 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- 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-form.script.vue.js +39 -44
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +26 -8
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +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.script.vue.js.js +21 -29
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- 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/dataset.script.vue.js.js +4 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- 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/index.script.vue.js.js +8 -3
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +3 -2
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +21 -31
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +14 -0
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +61 -39
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +259 -388
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +3 -1
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +8 -7
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/header.script.vue.js.js +6 -3
- package/dist/components/render-dataset-list/components/header.vue.d.ts +4 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +38 -14
- package/dist/components/render-dataset-list/components/main.vue.css +4 -4
- package/dist/components/render-dataset-list/components/main.vue.d.ts +12 -5
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +405 -0
- package/dist/components/render-dataset-list/components/table.vue.d.ts +13 -2
- package/dist/components/render-dataset-list/components/table.vue.js +1 -1
- package/dist/components/render-dataset-list/index.script.vue.js.js +37 -16
- package/dist/components/render-dataset-list/index.vue.css +4 -1
- package/dist/components/render-dataset-list/index.vue.d.ts +2 -6
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dropdown/index.script.vue.js.js +171 -0
- package/dist/components/render-dropdown/index.vue.css +29 -0
- package/dist/components/render-dropdown/index.vue.d.ts +64 -0
- package/dist/components/render-dropdown/index.vue.js +4 -0
- package/dist/components/render-file-card/index.script.vue.js.js +5 -15
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.script.vue.js.js +11 -3
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.d.ts +1 -1
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.script.vue.js.js +3 -3
- package/dist/components/render-like/index.vue.css +14 -13
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +4 -4
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-search-empty/index.script.vue.js.js +61 -0
- package/dist/components/render-search-empty/index.vue.d.ts +20 -0
- package/dist/components/render-search-empty/index.vue.js +3 -0
- package/dist/components/render-search-select/index.script.vue.js.js +1 -0
- package/dist/components/render-t-table/index.script.vue.js +351 -0
- package/dist/components/render-t-table/index.vue.css +208 -0
- package/dist/components/render-t-table/index.vue.d.ts +59 -0
- package/dist/components/render-t-table/index.vue.js +5 -0
- package/dist/components/render-tag-tree/index.script.vue.js.js +112 -26
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.d.ts +7 -3
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tree/index.script.vue.js +17 -8
- package/dist/components/render-tree/index.vue.d.ts +4 -1
- package/dist/components.d.ts +4 -1
- package/dist/components.ts.js +4 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +5 -2
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +5 -2
- package/dist/css/tailwind.css +105 -11
- package/dist/hooks/use-chat.d.ts +14 -4
- package/dist/hooks/use-common-http.d.ts +5 -2
- package/dist/hooks/use-common-http.ts.js +8 -6
- package/dist/hooks/use-dataset-http.d.ts +6 -4
- package/dist/hooks/use-dataset-http.ts.js +17 -6
- package/dist/hooks/use-ellipsis-tooltip.d.ts +3 -0
- package/dist/hooks/use-ellipsis-tooltip.ts.js +86 -0
- package/dist/hooks/use-member-http.d.ts +8 -0
- package/dist/hooks/use-member-http.ts.js +30 -0
- package/dist/hooks/use-meta-http.d.ts +3 -3
- package/dist/hooks/use-meta-http.ts.js +9 -5
- package/dist/hooks/use-style.d.ts +1 -0
- package/dist/hooks/use-style.ts.js +1 -0
- package/dist/hooks/use-t-table.d.ts +39 -0
- package/dist/hooks/use-t-table.ts.js +82 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.ts.js +3 -0
- package/dist/http/fetch/index.ts.js +3 -2
- package/dist/http/helper/agent.d.ts +13 -1
- package/dist/http/helper/agent.ts.js +69 -24
- package/dist/http/helper/common.ts.js +4 -4
- package/dist/http/helper/dataset.d.ts +7 -1
- package/dist/http/helper/dataset.ts.js +20 -4
- package/dist/http/helper/knowledge.ts.js +9 -3
- package/dist/http/helper/tool.ts.js +7 -4
- package/dist/images/market.png +0 -0
- package/dist/transforms.d.ts +1 -0
- package/dist/transforms.ts.js +1 -0
- package/dist/types/agent.d.ts +41 -24
- package/dist/types/common.d.ts +28 -1
- package/dist/types/dataset.d.ts +16 -0
- package/dist/types/enum.d.ts +15 -2
- package/dist/types/enum.ts.js +16 -1
- package/dist/types/knowledge.d.ts +6 -0
- package/dist/types/model.d.ts +4 -4
- package/dist/types/tool.d.ts +5 -3
- package/dist/util.d.ts +1 -0
- package/dist/util.ts.js +1 -0
- package/package.json +11 -2
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +0 -226
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +0 -580
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
import { OrderMethod } from '../types/enum.ts.js';
|
|
3
|
+
export const useTTable = ()=>{
|
|
4
|
+
const isLoading = ref(false);
|
|
5
|
+
const isPagination = ref(false);
|
|
6
|
+
let callBack;
|
|
7
|
+
const sort = ref({});
|
|
8
|
+
const tableData = ref([]);
|
|
9
|
+
const pagination = ref({
|
|
10
|
+
current: 1,
|
|
11
|
+
limit: 20,
|
|
12
|
+
count: 0
|
|
13
|
+
});
|
|
14
|
+
// 更新数据
|
|
15
|
+
const triggerApi = ()=>{
|
|
16
|
+
isLoading.value = true;
|
|
17
|
+
return callBack({
|
|
18
|
+
page: pagination.value.current,
|
|
19
|
+
pageSize: pagination.value.limit,
|
|
20
|
+
orderBy: sort.value.sortKey,
|
|
21
|
+
orderMethod: sort.value.descending
|
|
22
|
+
}).then((apiResult)=>{
|
|
23
|
+
if (isPagination.value) {
|
|
24
|
+
tableData.value = apiResult.results;
|
|
25
|
+
pagination.value.count = apiResult.count;
|
|
26
|
+
} else {
|
|
27
|
+
tableData.value = apiResult;
|
|
28
|
+
}
|
|
29
|
+
}).finally(()=>{
|
|
30
|
+
isLoading.value = false;
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
const initHook = (callBackFn, isShowPagination)=>{
|
|
34
|
+
callBack = callBackFn;
|
|
35
|
+
isPagination.value = isShowPagination;
|
|
36
|
+
};
|
|
37
|
+
// sortKey 为必传
|
|
38
|
+
const handleSortChange = (config, { col })=>{
|
|
39
|
+
if (!config) {
|
|
40
|
+
sort.value = {};
|
|
41
|
+
return triggerApi();
|
|
42
|
+
}
|
|
43
|
+
const { descending } = config;
|
|
44
|
+
sort.value = {
|
|
45
|
+
sortKey: col.sortKey,
|
|
46
|
+
descending: descending ? OrderMethod.Desc : OrderMethod.Asc
|
|
47
|
+
};
|
|
48
|
+
triggerApi();
|
|
49
|
+
};
|
|
50
|
+
// 分页器 当前页变化处理
|
|
51
|
+
const handlePageChange = (current)=>{
|
|
52
|
+
if (pagination.value.current === current) return;
|
|
53
|
+
pagination.value.current = current;
|
|
54
|
+
triggerApi();
|
|
55
|
+
};
|
|
56
|
+
// 分页器 页码大小变化处理
|
|
57
|
+
const handlePageSizeChange = (pageSize)=>{
|
|
58
|
+
if (pagination.value.limit === pageSize) return;
|
|
59
|
+
pagination.value.limit = pageSize;
|
|
60
|
+
pagination.value.current = 1;
|
|
61
|
+
triggerApi();
|
|
62
|
+
};
|
|
63
|
+
const resetPagination = ()=>{
|
|
64
|
+
pagination.value = {
|
|
65
|
+
current: 1,
|
|
66
|
+
limit: 20,
|
|
67
|
+
count: 0
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
return {
|
|
71
|
+
isLoading,
|
|
72
|
+
initHook,
|
|
73
|
+
sort,
|
|
74
|
+
handleSortChange,
|
|
75
|
+
triggerApi,
|
|
76
|
+
pagination,
|
|
77
|
+
resetPagination,
|
|
78
|
+
tableData,
|
|
79
|
+
handlePageChange,
|
|
80
|
+
handlePageSizeChange
|
|
81
|
+
};
|
|
82
|
+
};
|
package/dist/hooks.d.ts
CHANGED
|
@@ -7,3 +7,6 @@ export * from './hooks/use-table';
|
|
|
7
7
|
export * from './hooks/use-permission';
|
|
8
8
|
export * from './hooks/use-think';
|
|
9
9
|
export * from './hooks/use-reference-doc';
|
|
10
|
+
export * from './hooks/use-member-http';
|
|
11
|
+
export * from './hooks/use-t-table';
|
|
12
|
+
export * from './hooks/use-ellipsis-tooltip';
|
package/dist/hooks.ts.js
CHANGED
|
@@ -7,3 +7,6 @@ export * from './hooks/use-table.ts.js';
|
|
|
7
7
|
export * from './hooks/use-permission.ts.js';
|
|
8
8
|
export * from './hooks/use-think.ts.js';
|
|
9
9
|
export * from './hooks/use-reference-doc.ts.js';
|
|
10
|
+
export * from './hooks/use-member-http.ts.js';
|
|
11
|
+
export * from './hooks/use-t-table.ts.js';
|
|
12
|
+
export * from './hooks/use-ellipsis-tooltip.ts.js';
|
|
@@ -82,7 +82,7 @@ function _object_spread_props(target, source) {
|
|
|
82
82
|
import errorInterceptor from './error-interceptor.ts.js';
|
|
83
83
|
import RequestError from './request-error.ts.js';
|
|
84
84
|
import successInterceptor from './success-interceptor.ts.js';
|
|
85
|
-
import { deepMerge, getCookies } from '../../common/util.ts.js';
|
|
85
|
+
import { deepMerge, getCookies, getTraceparent } from '../../common/util.ts.js';
|
|
86
86
|
// Content-Type
|
|
87
87
|
const contentTypeMap = {
|
|
88
88
|
json: 'application/json',
|
|
@@ -108,7 +108,8 @@ const allMethods = [
|
|
|
108
108
|
const getFetchConfig = (method, payload, config)=>{
|
|
109
109
|
const headers = {
|
|
110
110
|
'X-Requested-With': 'fetch',
|
|
111
|
-
'X-CSRFToken': getCookies('aidev_csrftoken') || ''
|
|
111
|
+
'X-CSRFToken': getCookies('aidev_csrftoken') || '',
|
|
112
|
+
traceparent: getTraceparent()
|
|
112
113
|
};
|
|
113
114
|
if (config.requestType !== 'formData') {
|
|
114
115
|
headers['Content-Type'] = contentTypeMap[config.requestType] || 'application/json';
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import type { IAgentInfo, IAgentInfoApi } from '@/types/agent';
|
|
1
|
+
import type { IAgentCommand, IAgentCommandApi, IAgentInfo, IAgentInfoApi } from '@/types/agent';
|
|
2
2
|
/**
|
|
3
3
|
* 转换agentapi为agent
|
|
4
4
|
* @param data IAgentInfoApi
|
|
5
5
|
* @returns IAgentInfo
|
|
6
6
|
*/
|
|
7
7
|
export declare const transferAgentInfoApi2AgentInfo: (data: IAgentInfoApi) => IAgentInfo;
|
|
8
|
+
/**
|
|
9
|
+
* 接口转换为ui使用
|
|
10
|
+
* @param data IAgentCommandApi
|
|
11
|
+
* @returns IAgentCommand
|
|
12
|
+
*/
|
|
13
|
+
export declare const transferAgentCommandApi2AgentCommand: (data: IAgentCommandApi) => IAgentCommand;
|
|
14
|
+
/**
|
|
15
|
+
* ui转换为接口使用
|
|
16
|
+
* @param data IAgentCommand
|
|
17
|
+
* @returns IAgentCommandApi
|
|
18
|
+
*/
|
|
19
|
+
export declare const transferAgentCommand2AgentCommandApi: (data: IAgentCommand) => IAgentCommandApi;
|
|
@@ -3,34 +3,14 @@
|
|
|
3
3
|
* @param data IAgentInfoApi
|
|
4
4
|
* @returns IAgentInfo
|
|
5
5
|
*/ export const transferAgentInfoApi2AgentInfo = (data)=>{
|
|
6
|
-
var _data_conversation_settings, _data_conversation_settings1, _data_conversation_settings_commands, _data_conversation_settings2, _data_conversation_settings3, _data_prompt_setting;
|
|
6
|
+
var _data_conversation_settings, _data_conversation_settings1, _data_conversation_settings_commands, _data_conversation_settings2, _data_conversation_settings3, _data_conversation_settings4, _data_prompt_setting;
|
|
7
7
|
return {
|
|
8
8
|
conversationSettings: {
|
|
9
9
|
openingRemark: data === null || data === void 0 ? void 0 : (_data_conversation_settings = data.conversation_settings) === null || _data_conversation_settings === void 0 ? void 0 : _data_conversation_settings.opening_remark,
|
|
10
10
|
predefinedQuestions: data === null || data === void 0 ? void 0 : (_data_conversation_settings1 = data.conversation_settings) === null || _data_conversation_settings1 === void 0 ? void 0 : _data_conversation_settings1.predefined_questions,
|
|
11
|
-
commands:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
icon: command.icon,
|
|
15
|
-
components: command.components.map((component)=>({
|
|
16
|
-
type: component.type,
|
|
17
|
-
name: component.name,
|
|
18
|
-
key: component.key,
|
|
19
|
-
placeholder: component.placeholder,
|
|
20
|
-
default: component.default,
|
|
21
|
-
required: component.required,
|
|
22
|
-
fillBack: component.fill_back,
|
|
23
|
-
fillRegx: component.fill_regx,
|
|
24
|
-
rows: component.rows,
|
|
25
|
-
min: component.min,
|
|
26
|
-
max: component.max,
|
|
27
|
-
options: component.options
|
|
28
|
-
})),
|
|
29
|
-
content: command.content,
|
|
30
|
-
agentId: command.agent_id,
|
|
31
|
-
status: command.status
|
|
32
|
-
})),
|
|
33
|
-
enableChatSession: data === null || data === void 0 ? void 0 : (_data_conversation_settings3 = data.conversation_settings) === null || _data_conversation_settings3 === void 0 ? void 0 : _data_conversation_settings3.enable_chat_session
|
|
11
|
+
commands: ((_data_conversation_settings2 = data.conversation_settings) === null || _data_conversation_settings2 === void 0 ? void 0 : (_data_conversation_settings_commands = _data_conversation_settings2.commands) === null || _data_conversation_settings_commands === void 0 ? void 0 : _data_conversation_settings_commands.map(transferAgentCommandApi2AgentCommand)) || [],
|
|
12
|
+
enableChatSession: data === null || data === void 0 ? void 0 : (_data_conversation_settings3 = data.conversation_settings) === null || _data_conversation_settings3 === void 0 ? void 0 : _data_conversation_settings3.enable_chat_session,
|
|
13
|
+
enableWordSelectionPopup: data === null || data === void 0 ? void 0 : (_data_conversation_settings4 = data.conversation_settings) === null || _data_conversation_settings4 === void 0 ? void 0 : _data_conversation_settings4.enable_word_selection_popup
|
|
34
14
|
},
|
|
35
15
|
promptSetting: {
|
|
36
16
|
content: data === null || data === void 0 ? void 0 : (_data_prompt_setting = data.prompt_setting) === null || _data_prompt_setting === void 0 ? void 0 : _data_prompt_setting.content
|
|
@@ -44,3 +24,68 @@
|
|
|
44
24
|
saasUrl: data === null || data === void 0 ? void 0 : data.saas_url
|
|
45
25
|
};
|
|
46
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* 接口转换为ui使用
|
|
29
|
+
* @param data IAgentCommandApi
|
|
30
|
+
* @returns IAgentCommand
|
|
31
|
+
*/ export const transferAgentCommandApi2AgentCommand = (data)=>{
|
|
32
|
+
return {
|
|
33
|
+
id: data.id,
|
|
34
|
+
name: data.name,
|
|
35
|
+
icon: data.icon,
|
|
36
|
+
agentId: data.agent_id,
|
|
37
|
+
agentName: data.agent_name,
|
|
38
|
+
content: data.content,
|
|
39
|
+
status: data.status,
|
|
40
|
+
enableFillBack: data.enable_fill_back,
|
|
41
|
+
fillBackComponentKey: data.fill_back_component_key,
|
|
42
|
+
fillRegx: data.fill_regx,
|
|
43
|
+
alias: data.alias,
|
|
44
|
+
components: data.components.map((component)=>({
|
|
45
|
+
type: component.type,
|
|
46
|
+
name: component.name,
|
|
47
|
+
key: component.key,
|
|
48
|
+
placeholder: component.placeholder,
|
|
49
|
+
default: component.default,
|
|
50
|
+
required: component.required,
|
|
51
|
+
rows: component.rows,
|
|
52
|
+
options: component.options,
|
|
53
|
+
min: component.min,
|
|
54
|
+
max: component.max,
|
|
55
|
+
multiple: component.multiple
|
|
56
|
+
}))
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* ui转换为接口使用
|
|
61
|
+
* @param data IAgentCommand
|
|
62
|
+
* @returns IAgentCommandApi
|
|
63
|
+
*/ export const transferAgentCommand2AgentCommandApi = (data)=>{
|
|
64
|
+
const result = {
|
|
65
|
+
id: data.id,
|
|
66
|
+
name: data.name,
|
|
67
|
+
icon: data.icon,
|
|
68
|
+
agent_id: data.agentId,
|
|
69
|
+
agent_name: data.agentName,
|
|
70
|
+
content: data.content,
|
|
71
|
+
status: data.status,
|
|
72
|
+
enable_fill_back: data.enableFillBack,
|
|
73
|
+
fill_back_component_key: data.fillBackComponentKey,
|
|
74
|
+
fill_regx: data.fillRegx,
|
|
75
|
+
alias: data.alias,
|
|
76
|
+
components: data.components.map((component)=>({
|
|
77
|
+
type: component.type,
|
|
78
|
+
name: component.name,
|
|
79
|
+
key: component.key,
|
|
80
|
+
placeholder: component.placeholder,
|
|
81
|
+
default: component.default,
|
|
82
|
+
required: component.required,
|
|
83
|
+
rows: component.rows,
|
|
84
|
+
options: component.options,
|
|
85
|
+
min: component.min,
|
|
86
|
+
max: component.max,
|
|
87
|
+
multiple: component.multiple
|
|
88
|
+
}))
|
|
89
|
+
};
|
|
90
|
+
return result;
|
|
91
|
+
};
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
* @returns IPaginationParamApi
|
|
30
30
|
*/ export const transferIPaginationParamToIPaginationParamApi = (data)=>{
|
|
31
31
|
return {
|
|
32
|
-
page: data.page,
|
|
33
|
-
page_size: data.pageSize
|
|
32
|
+
page: data === null || data === void 0 ? void 0 : data.page,
|
|
33
|
+
page_size: data === null || data === void 0 ? void 0 : data.pageSize
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* @returns ISortParamApi
|
|
40
40
|
*/ export const transferISortParamToISortParamApi = (data)=>{
|
|
41
41
|
return {
|
|
42
|
-
order_by: data.orderBy,
|
|
43
|
-
order_method: data.orderMethod
|
|
42
|
+
order_by: data === null || data === void 0 ? void 0 : data.orderBy,
|
|
43
|
+
order_method: data === null || data === void 0 ? void 0 : data.orderMethod
|
|
44
44
|
};
|
|
45
45
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IBatchRetryReviewDatasetData, IBatchReviewDatasetData, ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, ICreataDatasetDataResultApi, IDataset, IDatasetApi, IDatasetApiGuide, IDatasetApiGuideApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
|
|
1
|
+
import type { IBatchRetryReviewDatasetData, IBatchReviewDatasetData, IBatchUpdateDatasetDataValidity, IBatchUpdateDatasetDataValidityApi, ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, ICreataDatasetDataResultApi, IDataset, IDatasetApi, IDatasetApiGuide, IDatasetApiGuideApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
|
|
2
2
|
/**
|
|
3
3
|
* 接口转换为ui使用
|
|
4
4
|
* @param data ICreataDatasetDataResultApi
|
|
@@ -122,3 +122,9 @@ export declare const transferBatchRetryReviewDatasetData2BatchRetryReviewDataset
|
|
|
122
122
|
dataset_item_ids: number[];
|
|
123
123
|
is_retry_all: boolean;
|
|
124
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* ui 转接口
|
|
127
|
+
* @param data IBatchUpdateDatasetDataValidity
|
|
128
|
+
* @returns IBatchUpdateDatasetDataValidityApi
|
|
129
|
+
*/
|
|
130
|
+
export declare const transferBatchUpdateDatasetDataValidity2BatchUpdateDatasetDataValidityApi: (data: IBatchUpdateDatasetDataValidity) => IBatchUpdateDatasetDataValidityApi;
|
|
@@ -172,6 +172,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
172
172
|
return _object_spread_props(_object_spread({}, transferIPaginationParamToIPaginationParamApi(data), transferISortParamToISortParamApi(data)), {
|
|
173
173
|
company_name: data === null || data === void 0 ? void 0 : data.companyName,
|
|
174
174
|
dataset_name: data === null || data === void 0 ? void 0 : data.datasetName,
|
|
175
|
+
dataset_code: data === null || data === void 0 ? void 0 : data.datasetCode,
|
|
175
176
|
type: data === null || data === void 0 ? void 0 : data.type,
|
|
176
177
|
component_ids: data === null || data === void 0 ? void 0 : data.componentIds,
|
|
177
178
|
created_by: data === null || data === void 0 ? void 0 : data.createdBy,
|
|
@@ -180,7 +181,8 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
180
181
|
tag_name: data === null || data === void 0 ? void 0 : data.tagName,
|
|
181
182
|
group_type: data === null || data === void 0 ? void 0 : data.groupType,
|
|
182
183
|
tag_id: data === null || data === void 0 ? void 0 : data.tagId,
|
|
183
|
-
source_type: data === null || data === void 0 ? void 0 : data.sourceType
|
|
184
|
+
source_type: data === null || data === void 0 ? void 0 : data.sourceType,
|
|
185
|
+
updated_by: data === null || data === void 0 ? void 0 : data.updatedBy
|
|
184
186
|
});
|
|
185
187
|
};
|
|
186
188
|
/**
|
|
@@ -203,7 +205,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
203
205
|
* @param data IDatasetDataParam
|
|
204
206
|
* @returns IDatasetDataParamApi
|
|
205
207
|
*/ export const transferDatasetDataParam2DatasetDataParamApi = (data)=>{
|
|
206
|
-
const { datasetId, createdBy, pageSize, ordering, page, sourceTypes, modelType, levels, statuses, reviewStatuses } = data, rest = _object_without_properties(data, [
|
|
208
|
+
const { datasetId, createdBy, pageSize, ordering, page, sourceTypes, modelType, levels, isValid, statuses, reviewStatuses } = data, rest = _object_without_properties(data, [
|
|
207
209
|
"datasetId",
|
|
208
210
|
"createdBy",
|
|
209
211
|
"pageSize",
|
|
@@ -212,15 +214,17 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
212
214
|
"sourceTypes",
|
|
213
215
|
"modelType",
|
|
214
216
|
"levels",
|
|
217
|
+
"isValid",
|
|
215
218
|
"statuses",
|
|
216
219
|
"reviewStatuses"
|
|
217
220
|
]);
|
|
218
|
-
return _object_spread_props(_object_spread({}, rest), {
|
|
221
|
+
return _object_spread_props(_object_spread({}, rest, transferIPaginationParamToIPaginationParamApi(data), transferISortParamToISortParamApi(data)), {
|
|
219
222
|
dataset_id: datasetId,
|
|
220
223
|
created_by: createdBy,
|
|
221
224
|
source_types: sourceTypes,
|
|
222
225
|
model_type: modelType,
|
|
223
226
|
review_statuses: reviewStatuses,
|
|
227
|
+
is_valid: isValid,
|
|
224
228
|
levels,
|
|
225
229
|
statuses,
|
|
226
230
|
page_size: pageSize,
|
|
@@ -261,7 +265,8 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
261
265
|
reviewStatusName: data.review_status_name,
|
|
262
266
|
reviewSource: data.review_source,
|
|
263
267
|
reviewReason: data.review_reason,
|
|
264
|
-
reviewLevel: data.review_level
|
|
268
|
+
reviewLevel: data.review_level,
|
|
269
|
+
isValid: data.is_valid
|
|
265
270
|
};
|
|
266
271
|
};
|
|
267
272
|
/**
|
|
@@ -379,3 +384,14 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
379
384
|
is_retry_all: d.isRetryAll
|
|
380
385
|
};
|
|
381
386
|
};
|
|
387
|
+
/**
|
|
388
|
+
* ui 转接口
|
|
389
|
+
* @param data IBatchUpdateDatasetDataValidity
|
|
390
|
+
* @returns IBatchUpdateDatasetDataValidityApi
|
|
391
|
+
*/ export const transferBatchUpdateDatasetDataValidity2BatchUpdateDatasetDataValidityApi = (data)=>{
|
|
392
|
+
return {
|
|
393
|
+
dataset_id: data.datasetId,
|
|
394
|
+
dataset_item_ids: data.datasetItemIds,
|
|
395
|
+
is_valid: data.isValid
|
|
396
|
+
};
|
|
397
|
+
};
|
|
@@ -97,7 +97,9 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
97
97
|
anchor_path: mergeStringWithoutLastSlash(data.parentAnchorPath, data.fileName),
|
|
98
98
|
index_config: data.indexConfig,
|
|
99
99
|
credential_id: data.credentialId,
|
|
100
|
-
space_id: data.spaceId
|
|
100
|
+
space_id: data.spaceId,
|
|
101
|
+
approvers: data.approvers,
|
|
102
|
+
ticket_url: data.ticketUrl
|
|
101
103
|
});
|
|
102
104
|
/**
|
|
103
105
|
* 接口转换为ui使用
|
|
@@ -136,7 +138,9 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
136
138
|
updatedAt: data.updated_at,
|
|
137
139
|
updatedBy: data.updated_by,
|
|
138
140
|
indexConfig: data.index_config,
|
|
139
|
-
credentialId: data.credential_id
|
|
141
|
+
credentialId: data.credential_id,
|
|
142
|
+
approvers: data.approvers,
|
|
143
|
+
ticketUrl: data.ticket_url
|
|
140
144
|
};
|
|
141
145
|
};
|
|
142
146
|
/**
|
|
@@ -188,7 +192,8 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
188
192
|
knowledge_count: data.number,
|
|
189
193
|
anchor_path: data.anchorPath,
|
|
190
194
|
index_config: data.indexConfig,
|
|
191
|
-
status: data.status
|
|
195
|
+
status: data.status,
|
|
196
|
+
space_id: data.spaceId
|
|
192
197
|
});
|
|
193
198
|
/**
|
|
194
199
|
* 转换 ui 文件夹为 IKnowledgeApi,接口使用
|
|
@@ -229,6 +234,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
229
234
|
number: data.knowledge_count,
|
|
230
235
|
folderNumber: data.folder_num,
|
|
231
236
|
updatedBy: data.updated_by,
|
|
237
|
+
updatedAt: data.updated_at,
|
|
232
238
|
anchorPath: data.anchor_path,
|
|
233
239
|
description: data.description,
|
|
234
240
|
indexConfig: data.index_config,
|
|
@@ -10,10 +10,11 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
10
10
|
path: data.property.path,
|
|
11
11
|
creator: data.created_by,
|
|
12
12
|
createTime: data.created_at,
|
|
13
|
-
|
|
13
|
+
updatedBy: data.updated_by,
|
|
14
|
+
updatedAt: data.updated_at,
|
|
14
15
|
toolCode: data.tool_code,
|
|
15
16
|
toolName: data.tool_name,
|
|
16
|
-
|
|
17
|
+
tagNames: data.tag_names,
|
|
17
18
|
description: data.description,
|
|
18
19
|
method: data.method,
|
|
19
20
|
url: data.url,
|
|
@@ -36,10 +37,11 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
36
37
|
*/ export const transferTool = (data)=>({
|
|
37
38
|
created_by: data.creator,
|
|
38
39
|
created_at: data.createTime,
|
|
39
|
-
|
|
40
|
+
updated_by: data.updatedBy,
|
|
41
|
+
updated_at: data.updatedAt,
|
|
40
42
|
tool_code: data.toolCode,
|
|
41
43
|
tool_name: data.toolName,
|
|
42
|
-
|
|
44
|
+
tag_names: data.tagNames,
|
|
43
45
|
description: data.description,
|
|
44
46
|
method: data.method,
|
|
45
47
|
url: data.url,
|
|
@@ -47,6 +49,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
47
49
|
is_public: data.isPublic,
|
|
48
50
|
tool_id: data.id,
|
|
49
51
|
status: data.status,
|
|
52
|
+
space_id: data.spaceId,
|
|
50
53
|
is_sensitive: data.isSensitive,
|
|
51
54
|
credential_id: data.credentialId,
|
|
52
55
|
credential_type: data.credentialType,
|
|
Binary file
|
package/dist/transforms.d.ts
CHANGED
package/dist/transforms.ts.js
CHANGED
package/dist/types/agent.d.ts
CHANGED
|
@@ -1,27 +1,35 @@
|
|
|
1
|
+
import { AgentCommandType, ResourceStatus } from './enum';
|
|
1
2
|
import type { ISessionPrompt } from '@/types/session';
|
|
2
3
|
export interface IAgentCommandComponentApi {
|
|
3
|
-
type:
|
|
4
|
+
type: AgentCommandType;
|
|
4
5
|
name: string;
|
|
5
6
|
key: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
default?: string | number | string[] | number[];
|
|
10
|
+
required?: boolean;
|
|
11
|
+
rows?: number;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
options?: Array<{
|
|
15
|
+
label: string;
|
|
16
|
+
value: string | number;
|
|
17
|
+
}>;
|
|
15
18
|
}
|
|
16
19
|
export interface IAgentCommandApi {
|
|
17
20
|
id: string;
|
|
18
21
|
name: string;
|
|
19
22
|
icon: string;
|
|
23
|
+
enable_fill_back?: boolean;
|
|
24
|
+
fill_back_component_key?: string;
|
|
25
|
+
fill_regx?: string;
|
|
20
26
|
components: IAgentCommandComponentApi[];
|
|
21
27
|
content: string | null;
|
|
22
28
|
agent_id: number;
|
|
23
|
-
|
|
29
|
+
agent_name: string;
|
|
30
|
+
status?: ResourceStatus;
|
|
24
31
|
selectedText?: string | null;
|
|
32
|
+
alias?: string;
|
|
25
33
|
}
|
|
26
34
|
export interface IAgentInfoApi {
|
|
27
35
|
conversation_settings?: {
|
|
@@ -29,6 +37,7 @@ export interface IAgentInfoApi {
|
|
|
29
37
|
predefined_questions?: string[];
|
|
30
38
|
commands?: IAgentCommandApi[];
|
|
31
39
|
enable_chat_session?: boolean;
|
|
40
|
+
enable_word_selection_popup?: boolean;
|
|
32
41
|
};
|
|
33
42
|
prompt_setting?: {
|
|
34
43
|
content?: ISessionPrompt[];
|
|
@@ -42,30 +51,37 @@ export interface IAgentInfoApi {
|
|
|
42
51
|
saas_url?: string;
|
|
43
52
|
}
|
|
44
53
|
export interface IAgentCommandComponent {
|
|
45
|
-
type: string;
|
|
46
|
-
name: string;
|
|
47
|
-
key: string;
|
|
48
|
-
placeholder?: string | null;
|
|
49
|
-
default?: string | null;
|
|
50
|
-
required?: boolean;
|
|
51
|
-
fillBack?: boolean;
|
|
52
|
-
fillRegx?: string | null;
|
|
53
|
-
rows?: number | null;
|
|
54
|
-
min?: number | null;
|
|
55
|
-
max?: number | null;
|
|
56
|
-
options?: any;
|
|
57
54
|
hide?: boolean;
|
|
58
55
|
selectedText?: string | null;
|
|
59
56
|
showSendButton?: boolean;
|
|
57
|
+
type: AgentCommandType;
|
|
58
|
+
name?: string;
|
|
59
|
+
key: string;
|
|
60
|
+
multiple?: boolean;
|
|
61
|
+
placeholder?: string | null;
|
|
62
|
+
default?: string | number | string[] | number[];
|
|
63
|
+
required?: boolean;
|
|
64
|
+
rows?: number;
|
|
65
|
+
min?: number;
|
|
66
|
+
max?: number;
|
|
67
|
+
options?: Array<{
|
|
68
|
+
label: string;
|
|
69
|
+
value: string | number;
|
|
70
|
+
}>;
|
|
60
71
|
}
|
|
61
72
|
export interface IAgentCommand {
|
|
62
73
|
id: string;
|
|
63
74
|
name: string;
|
|
64
75
|
icon?: string;
|
|
76
|
+
enableFillBack?: boolean;
|
|
77
|
+
fillBackComponentKey?: string;
|
|
78
|
+
fillRegx?: string;
|
|
65
79
|
components: IAgentCommandComponent[];
|
|
66
80
|
content: string | null;
|
|
67
81
|
agentId: number;
|
|
68
|
-
|
|
82
|
+
agentName: string;
|
|
83
|
+
status?: ResourceStatus;
|
|
84
|
+
alias?: string;
|
|
69
85
|
}
|
|
70
86
|
export interface IAgentInfo {
|
|
71
87
|
conversationSettings?: {
|
|
@@ -73,6 +89,7 @@ export interface IAgentInfo {
|
|
|
73
89
|
predefinedQuestions?: string[];
|
|
74
90
|
commands?: IAgentCommand[];
|
|
75
91
|
enableChatSession?: boolean;
|
|
92
|
+
enableWordSelectionPopup?: boolean;
|
|
76
93
|
};
|
|
77
94
|
promptSetting?: {
|
|
78
95
|
content?: ISessionPrompt[];
|
package/dist/types/common.d.ts
CHANGED
|
@@ -1,10 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PrimaryTableCol, TableColumnFilter } from 'tdesign-vue-next';
|
|
2
|
+
import { OrderMethod, TTableFilterType } from './enum';
|
|
2
3
|
export interface ITab {
|
|
3
4
|
id?: string | number;
|
|
4
5
|
name: string;
|
|
5
6
|
number?: number;
|
|
6
7
|
children?: ITab[];
|
|
7
8
|
}
|
|
9
|
+
export interface IPagination {
|
|
10
|
+
current: number;
|
|
11
|
+
limit: number;
|
|
12
|
+
count: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ITTableSort {
|
|
15
|
+
descending?: OrderMethod;
|
|
16
|
+
sortKey?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ITTableColEllipsis {
|
|
19
|
+
theme?: string;
|
|
20
|
+
placement?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ITTableColFilter extends Omit<TableColumnFilter, 'type'> {
|
|
24
|
+
type?: TTableFilterType;
|
|
25
|
+
}
|
|
26
|
+
export interface ITTableCol<T> extends Omit<PrimaryTableCol<T>, 'type' | 'align' | 'fixed' | 'sortKey' | 'ellipsis' | 'filter'> {
|
|
27
|
+
defaultShow?: boolean;
|
|
28
|
+
sortKey?: string;
|
|
29
|
+
type?: string;
|
|
30
|
+
fixed?: string;
|
|
31
|
+
align?: string;
|
|
32
|
+
ellipsis?: boolean | ITTableColEllipsis;
|
|
33
|
+
filter?: ITTableColFilter;
|
|
34
|
+
}
|
|
8
35
|
export interface IPaginationParam {
|
|
9
36
|
page?: number;
|
|
10
37
|
pageSize?: number;
|
package/dist/types/dataset.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export interface IDatasetListParam extends IPaginationParam, ISortParam {
|
|
|
64
64
|
groupType?: GroupType;
|
|
65
65
|
tagId?: number;
|
|
66
66
|
sourceType?: DatasetDataSourceType;
|
|
67
|
+
updatedBy?: string;
|
|
67
68
|
}
|
|
68
69
|
export interface IDatasetListParamApi extends IPaginationParamApi, ISortParamApi {
|
|
69
70
|
component_ids?: string;
|
|
@@ -79,6 +80,7 @@ export interface IDatasetListParamApi extends IPaginationParamApi, ISortParamApi
|
|
|
79
80
|
group_type?: GroupType;
|
|
80
81
|
tag_id?: number;
|
|
81
82
|
source_type?: DatasetDataSourceType;
|
|
83
|
+
updated_by?: string;
|
|
82
84
|
}
|
|
83
85
|
export interface IDatasetApiGuideApi {
|
|
84
86
|
api_endpoint: string;
|
|
@@ -129,6 +131,7 @@ export interface IDatasetDataApi extends IDatasetDataFormApi {
|
|
|
129
131
|
review_source: string;
|
|
130
132
|
review_reason: string;
|
|
131
133
|
review_level: DatasetDataReviewLevel;
|
|
134
|
+
is_valid: boolean;
|
|
132
135
|
id: number;
|
|
133
136
|
}
|
|
134
137
|
export interface IDatasetData extends IDatasetDataForm {
|
|
@@ -144,6 +147,7 @@ export interface IDatasetData extends IDatasetDataForm {
|
|
|
144
147
|
reviewSource: string;
|
|
145
148
|
reviewReason: string;
|
|
146
149
|
reviewLevel: DatasetDataReviewLevel;
|
|
150
|
+
isValid: boolean;
|
|
147
151
|
id: number;
|
|
148
152
|
}
|
|
149
153
|
export interface IDatasetDataParam extends IPaginationParam, ISortParam {
|
|
@@ -154,6 +158,7 @@ export interface IDatasetDataParam extends IPaginationParam, ISortParam {
|
|
|
154
158
|
sourceTypes?: DatasetDataSourceType[];
|
|
155
159
|
levels?: DatasetDataReviewLevel[];
|
|
156
160
|
statuses?: DatasetDataStatus[];
|
|
161
|
+
isValid?: boolean;
|
|
157
162
|
reviewStatuses?: DatasetDataReviewStatus[];
|
|
158
163
|
}
|
|
159
164
|
export interface IDatasetDataParamApi extends IPaginationParamApi, ISortParamApi {
|
|
@@ -164,6 +169,7 @@ export interface IDatasetDataParamApi extends IPaginationParamApi, ISortParamApi
|
|
|
164
169
|
source_types?: DatasetDataSourceType[];
|
|
165
170
|
levels?: DatasetDataReviewLevel[];
|
|
166
171
|
statuses?: DatasetDataStatus[];
|
|
172
|
+
is_valid?: boolean;
|
|
167
173
|
review_statuses?: DatasetDataReviewStatus[];
|
|
168
174
|
}
|
|
169
175
|
export type IDatasetStatusInfo = Record<DatasetDataReviewLevel & DatasetDataStatus, number>;
|
|
@@ -324,3 +330,13 @@ export interface IBatchRetryReviewDatasetDataApi {
|
|
|
324
330
|
dataset_item_ids?: number[];
|
|
325
331
|
is_retry_all?: boolean;
|
|
326
332
|
}
|
|
333
|
+
export interface IBatchUpdateDatasetDataValidity {
|
|
334
|
+
datasetId: number;
|
|
335
|
+
datasetItemIds: number[];
|
|
336
|
+
isValid: boolean;
|
|
337
|
+
}
|
|
338
|
+
export interface IBatchUpdateDatasetDataValidityApi {
|
|
339
|
+
dataset_id: number;
|
|
340
|
+
dataset_item_ids: number[];
|
|
341
|
+
is_valid: boolean;
|
|
342
|
+
}
|