@blueking/ai-ui-sdk 0.1.2-beta.10 → 0.1.2-beta.11
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/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- 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-choose-tag/index.vue.css +8 -8
- 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/edit-dataset-data/index.script.vue.js.js +159 -168
- 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.d.ts +3 -0
- 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 +85 -89
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.d.ts +6 -1
- 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 +1 -1
- 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 +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/index.script.vue.js.js +54 -65
- 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 +3 -0
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +8 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +1 -0
- 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.script.vue.js.js +6 -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.d.ts +1 -0
- 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 +42 -7
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
- package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
- package/dist/components/render-dataset/index.script.vue.js.js +18 -4
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +10 -36
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +1 -3
- package/dist/components/render-dataset-detail/index.script.vue.js.js +54 -15
- package/dist/components/render-dataset-detail/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +38 -14
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +2 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +254 -172
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +20 -4
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.d.ts +2 -0
- 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 +40 -14
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +404 -266
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/index.script.vue.js.js +5 -2
- package/dist/components/render-dataset-list/index.vue.d.ts +2 -0
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- 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.vue.css +5 -5
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/hooks/use-chat.d.ts +16 -0
- package/dist/hooks/use-permission-http.ts.js +2 -2
- package/dist/http/fetch/error-interceptor.ts.js +1 -6
- package/dist/http/helper/dataset.ts.js +7 -2
- package/dist/http/helper/permission.ts.js +3 -1
- package/dist/types/dataset.d.ts +7 -1
- package/dist/types/enum.d.ts +3 -1
- package/dist/types/enum.ts.js +2 -0
- package/dist/types/permission.d.ts +4 -1
- package/package.json +1 -1
@@ -1,9 +1,11 @@
|
|
1
1
|
import type { IDatasetListParam } from '@/types/dataset';
|
2
|
+
import { EnumCharacter } from '@/types/enum';
|
2
3
|
interface IProps {
|
3
4
|
apiPrefix: string;
|
4
5
|
isInternal?: boolean;
|
5
6
|
search: IDatasetListParam;
|
6
7
|
spaceId?: string;
|
8
|
+
tabId: EnumCharacter;
|
7
9
|
}
|
8
10
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
9
11
|
export default _default;
|
@@ -8,7 +8,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
8
8
|
spaceId: {},
|
9
9
|
isInternal: {
|
10
10
|
type: Boolean
|
11
|
-
}
|
11
|
+
},
|
12
|
+
tabId: {}
|
12
13
|
},
|
13
14
|
emits: [
|
14
15
|
"success-plus-dataset"
|
@@ -25,11 +26,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
25
26
|
"api-prefix": _ctx.apiPrefix,
|
26
27
|
"space-id": _ctx.spaceId,
|
27
28
|
"is-internal": _ctx.isInternal,
|
29
|
+
"tab-id": _ctx.tabId,
|
28
30
|
onSuccessPlusDataset: handleSuccessPlusDataset
|
29
31
|
}, null, 8 /* PROPS */ , [
|
30
32
|
"api-prefix",
|
31
33
|
"space-id",
|
32
|
-
"is-internal"
|
34
|
+
"is-internal",
|
35
|
+
"tab-id"
|
33
36
|
])
|
34
37
|
], 64 /* STABLE_FRAGMENT */ );
|
35
38
|
};
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import type { IDataset } from '@/types/dataset';
|
2
|
+
import { EnumCharacter } from '@/types/enum';
|
2
3
|
interface IProps {
|
3
4
|
apiPrefix: string;
|
4
5
|
spaceId?: string;
|
5
6
|
isInternal?: boolean;
|
7
|
+
tabId: EnumCharacter;
|
6
8
|
}
|
7
9
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
8
10
|
"success-plus-dataset": (data: IDataset) => any;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.expend-collapse-home[data-v-
|
2
|
+
.expend-collapse-home[data-v-9ltqdcsg] {
|
3
3
|
width: 16px;
|
4
4
|
height: 64px;
|
5
5
|
background: #DCDEE5;
|
@@ -15,9 +15,9 @@
|
|
15
15
|
cursor: pointer;
|
16
16
|
z-index: 1550;
|
17
17
|
}
|
18
|
-
.expend-collapse-home[data-v-
|
18
|
+
.expend-collapse-home[data-v-9ltqdcsg]:hover {
|
19
19
|
background: #979BA5;
|
20
20
|
}
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
21
|
+
.expend-collapse-home.is-close[data-v-9ltqdcsg] {
|
22
22
|
left: 0;
|
23
23
|
}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
|
2
|
-
.upload-file-home[data-v-
|
2
|
+
.upload-file-home[data-v-igmjhweh] {
|
3
3
|
position: relative;
|
4
4
|
background: #FFFFFF;
|
5
5
|
border: 1px solid #DCDEE5;
|
6
6
|
border-radius: 4px;
|
7
7
|
padding: 12px 12px 10px 12px;
|
8
8
|
}
|
9
|
-
.upload-file-home[data-v-
|
9
|
+
.upload-file-home[data-v-igmjhweh]:hover {
|
10
10
|
border: 1px solid #3A84FF;
|
11
11
|
}
|
12
|
-
.upload-file-home:hover .file-icons[data-v-
|
12
|
+
.upload-file-home:hover .file-icons[data-v-igmjhweh] {
|
13
13
|
display: flex;
|
14
14
|
}
|
15
|
-
.upload-file-home .file-icon[data-v-
|
15
|
+
.upload-file-home .file-icon[data-v-igmjhweh] {
|
16
16
|
font-size: 32px;
|
17
17
|
}
|
18
|
-
.upload-file-home .file-content[data-v-
|
18
|
+
.upload-file-home .file-content[data-v-igmjhweh] {
|
19
19
|
font-size: 12px;
|
20
20
|
flex: 1;
|
21
21
|
align-items: flex-start;
|
@@ -23,28 +23,28 @@
|
|
23
23
|
font-weight: normal;
|
24
24
|
width: 0;
|
25
25
|
}
|
26
|
-
.upload-file-home .file-content .file-name[data-v-
|
26
|
+
.upload-file-home .file-content .file-name[data-v-igmjhweh] {
|
27
27
|
width: 100%;
|
28
28
|
font-size: 14px;
|
29
29
|
line-height: 20px;
|
30
30
|
}
|
31
|
-
.upload-file-home .file-content .file-size[data-v-
|
31
|
+
.upload-file-home .file-content .file-size[data-v-igmjhweh] {
|
32
32
|
font-size: 12px;
|
33
33
|
color: #979BA5;
|
34
34
|
line-height: 20px;
|
35
35
|
}
|
36
|
-
.upload-file-home .file-icons[data-v-
|
36
|
+
.upload-file-home .file-icons[data-v-igmjhweh] {
|
37
37
|
display: none;
|
38
38
|
color: #979BA5;
|
39
39
|
}
|
40
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
40
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-igmjhweh] {
|
41
41
|
cursor: pointer;
|
42
42
|
margin-right: 15px;
|
43
43
|
font-size: 16px;
|
44
44
|
}
|
45
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
45
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-igmjhweh]:hover {
|
46
46
|
color: #3A84FF;
|
47
47
|
}
|
48
|
-
.upload-file-home .file-icons .bkaidev-delete[data-v-
|
48
|
+
.upload-file-home .file-icons .bkaidev-delete[data-v-igmjhweh] {
|
49
49
|
margin: 0;
|
50
50
|
}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-fjqjigr9] {
|
3
3
|
color: #EA3636;
|
4
4
|
}
|
5
|
-
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-
|
5
|
+
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-fjqjigr9], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-fjqjigr9], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-fjqjigr9] {
|
6
6
|
color: #3A84FF;
|
7
7
|
}
|
8
|
-
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-fjqjigr9] {
|
9
9
|
color: #C4C6CC;
|
10
10
|
}
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-fjqjigr9] {
|
12
12
|
color: #2DCB56;
|
13
13
|
}
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-fjqjigr9] {
|
15
15
|
color: #14A568;
|
16
16
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.header-home[data-v-
|
2
|
+
.header-home[data-v-o0coqno7] {
|
3
3
|
width: 100%;
|
4
4
|
height: 52px;
|
5
5
|
background: #FFFFFF;
|
@@ -7,14 +7,14 @@
|
|
7
7
|
position: relative;
|
8
8
|
z-index: 2;
|
9
9
|
}
|
10
|
-
.header-title[data-v-
|
10
|
+
.header-title[data-v-o0coqno7] {
|
11
11
|
position: absolute;
|
12
12
|
left: 24px;
|
13
13
|
top: 14px;
|
14
14
|
font-size: 16px;
|
15
15
|
color: #313238;
|
16
16
|
}
|
17
|
-
.header-main[data-v-
|
17
|
+
.header-main[data-v-o0coqno7] {
|
18
18
|
display: flex;
|
19
19
|
align-items: center;
|
20
20
|
justify-content: flex-end;
|
@@ -22,13 +22,13 @@
|
|
22
22
|
height: 100%;
|
23
23
|
margin: 0 auto;
|
24
24
|
}
|
25
|
-
.header-select[data-v-
|
25
|
+
.header-select[data-v-o0coqno7] {
|
26
26
|
width: 300px;
|
27
27
|
margin-right: 8px;
|
28
28
|
z-index: 9;
|
29
29
|
font-size: 12px;
|
30
30
|
}
|
31
|
-
.header-input[data-v-
|
31
|
+
.header-input[data-v-o0coqno7] {
|
32
32
|
width: 300px;
|
33
33
|
font-size: 12px;
|
34
34
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.router-tab[data-v-
|
2
|
+
.router-tab[data-v-vjkx1jjz] {
|
3
3
|
margin-top: 2px;
|
4
4
|
height: 42px;
|
5
5
|
background: #FFFFFF;
|
6
6
|
box-shadow: 0 2px 4px 0 #1919290d;
|
7
7
|
padding: 0 45px;
|
8
8
|
}
|
9
|
-
.router-tab a[data-v-
|
9
|
+
.router-tab a[data-v-vjkx1jjz] {
|
10
10
|
padding: 0 8px;
|
11
11
|
margin-right: 24px;
|
12
12
|
font-size: 14px;
|
@@ -15,7 +15,7 @@
|
|
15
15
|
color: #4D4F56;
|
16
16
|
box-sizing: border-box;
|
17
17
|
}
|
18
|
-
.router-tab a.router-link-exact-active[data-v-
|
18
|
+
.router-tab a.router-link-exact-active[data-v-vjkx1jjz] {
|
19
19
|
color: #3A84FF;
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
21
21
|
}
|
package/dist/hooks/use-chat.d.ts
CHANGED
@@ -109,6 +109,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
109
109
|
viewQueryTemplate?: boolean;
|
110
110
|
createQueryTemplate?: boolean;
|
111
111
|
manageQueryTemplate?: boolean;
|
112
|
+
viewDataset?: boolean;
|
113
|
+
manageDataset?: boolean;
|
112
114
|
};
|
113
115
|
}[];
|
114
116
|
anchorPathResources?: {
|
@@ -157,6 +159,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
157
159
|
viewQueryTemplate?: boolean;
|
158
160
|
createQueryTemplate?: boolean;
|
159
161
|
manageQueryTemplate?: boolean;
|
162
|
+
viewDataset?: boolean;
|
163
|
+
manageDataset?: boolean;
|
160
164
|
};
|
161
165
|
anchorPath?: string;
|
162
166
|
linkFiles?: {
|
@@ -331,6 +335,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
331
335
|
viewQueryTemplate?: boolean;
|
332
336
|
createQueryTemplate?: boolean;
|
333
337
|
manageQueryTemplate?: boolean;
|
338
|
+
viewDataset?: boolean;
|
339
|
+
manageDataset?: boolean;
|
334
340
|
};
|
335
341
|
children?: /*elided*/ any[];
|
336
342
|
}[];
|
@@ -409,6 +415,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
409
415
|
viewQueryTemplate?: boolean;
|
410
416
|
createQueryTemplate?: boolean;
|
411
417
|
manageQueryTemplate?: boolean;
|
418
|
+
viewDataset?: boolean;
|
419
|
+
manageDataset?: boolean;
|
412
420
|
};
|
413
421
|
children?: /*elided*/ any[];
|
414
422
|
}[];
|
@@ -516,6 +524,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
516
524
|
viewQueryTemplate?: boolean;
|
517
525
|
createQueryTemplate?: boolean;
|
518
526
|
manageQueryTemplate?: boolean;
|
527
|
+
viewDataset?: boolean;
|
528
|
+
manageDataset?: boolean;
|
519
529
|
};
|
520
530
|
}[];
|
521
531
|
anchorPathResources?: {
|
@@ -564,6 +574,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
564
574
|
viewQueryTemplate?: boolean;
|
565
575
|
createQueryTemplate?: boolean;
|
566
576
|
manageQueryTemplate?: boolean;
|
577
|
+
viewDataset?: boolean;
|
578
|
+
manageDataset?: boolean;
|
567
579
|
};
|
568
580
|
anchorPath?: string;
|
569
581
|
linkFiles?: {
|
@@ -738,6 +750,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
738
750
|
viewQueryTemplate?: boolean;
|
739
751
|
createQueryTemplate?: boolean;
|
740
752
|
manageQueryTemplate?: boolean;
|
753
|
+
viewDataset?: boolean;
|
754
|
+
manageDataset?: boolean;
|
741
755
|
};
|
742
756
|
children?: /*elided*/ any[];
|
743
757
|
}[];
|
@@ -816,6 +830,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
816
830
|
viewQueryTemplate?: boolean;
|
817
831
|
createQueryTemplate?: boolean;
|
818
832
|
manageQueryTemplate?: boolean;
|
833
|
+
viewDataset?: boolean;
|
834
|
+
manageDataset?: boolean;
|
819
835
|
};
|
820
836
|
children?: /*elided*/ any[];
|
821
837
|
}[];
|
@@ -2,7 +2,7 @@ import fetch from '../http/fetch/index.ts.js';
|
|
2
2
|
import { transferCheckPermissionApi } from '../http/helper/permission.ts.js';
|
3
3
|
export const usePermissionHttp = (apiPrefix, spaceId)=>{
|
4
4
|
// 检查是否有权限
|
5
|
-
const checkPermission = (action_ids, resources)=>fetch.post(`${apiPrefix}/
|
5
|
+
const checkPermission = (action_ids, resources)=>fetch.post(`${apiPrefix}/iam/v1/auth/is_allowed/`, {
|
6
6
|
action_ids,
|
7
7
|
resources
|
8
8
|
}, {
|
@@ -11,7 +11,7 @@ export const usePermissionHttp = (apiPrefix, spaceId)=>{
|
|
11
11
|
}
|
12
12
|
}).then((res)=>transferCheckPermissionApi(res));
|
13
13
|
// 获取权限数据
|
14
|
-
const getPermissionData = (action_ids, resource_id)=>fetch.post(`${apiPrefix}/
|
14
|
+
const getPermissionData = (action_ids, resource_id)=>fetch.post(`${apiPrefix}/iam/v1/auth/apply_data/`, {
|
15
15
|
action_ids,
|
16
16
|
resource_id
|
17
17
|
}, {
|
@@ -8,11 +8,6 @@ export default ((data, config)=>{
|
|
8
8
|
const code = (data === null || data === void 0 ? void 0 : (_data_error1 = data.error) === null || _data_error1 === void 0 ? void 0 : _data_error1.code) || (data === null || data === void 0 ? void 0 : data.code) || (data === null || data === void 0 ? void 0 : (_data_response1 = data.response) === null || _data_response1 === void 0 ? void 0 : _data_response1.code) || -1;
|
9
9
|
const item = (data === null || data === void 0 ? void 0 : (_data_error2 = data.error) === null || _data_error2 === void 0 ? void 0 : _data_error2.data) || (data === null || data === void 0 ? void 0 : data.data) || (data === null || data === void 0 ? void 0 : (_data_response2 = data.response) === null || _data_response2 === void 0 ? void 0 : _data_response2.data) || data;
|
10
10
|
// 异常情况下,先 emit event
|
11
|
-
emitEvent(EventType.Error,
|
12
|
-
code,
|
13
|
-
message,
|
14
|
-
data: item,
|
15
|
-
config
|
16
|
-
});
|
11
|
+
emitEvent(EventType.Error, code, message, item, config);
|
17
12
|
return Promise.reject(new RequestError(code, message, item));
|
18
13
|
});
|
@@ -77,6 +77,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
77
77
|
}
|
78
78
|
return target;
|
79
79
|
}
|
80
|
+
import { transferResourcePermission } from './permission.ts.js';
|
80
81
|
/**
|
81
82
|
* 接口转换为ui使用
|
82
83
|
* @param data ICreataDatasetDataResultApi
|
@@ -141,7 +142,8 @@ function _object_without_properties_loose(source, excluded) {
|
|
141
142
|
datasetName: data.dataset_name,
|
142
143
|
datasetCode: data.dataset_code,
|
143
144
|
type: data.type,
|
144
|
-
description: data.description
|
145
|
+
description: data.description,
|
146
|
+
permission: transferResourcePermission(data.permission)
|
145
147
|
};
|
146
148
|
};
|
147
149
|
/**
|
@@ -158,7 +160,10 @@ function _object_without_properties_loose(source, excluded) {
|
|
158
160
|
created_by: data === null || data === void 0 ? void 0 : data.createdBy,
|
159
161
|
fuzzy: data === null || data === void 0 ? void 0 : data.fuzzy,
|
160
162
|
description: data === null || data === void 0 ? void 0 : data.description,
|
161
|
-
tag_name: data === null || data === void 0 ? void 0 : data.tagName
|
163
|
+
tag_name: data === null || data === void 0 ? void 0 : data.tagName,
|
164
|
+
generate_type: data === null || data === void 0 ? void 0 : data.generateType,
|
165
|
+
page: data === null || data === void 0 ? void 0 : data.page,
|
166
|
+
limit: data === null || data === void 0 ? void 0 : data.limit
|
162
167
|
};
|
163
168
|
};
|
164
169
|
/**
|
@@ -24,7 +24,9 @@
|
|
24
24
|
manageKnowledgebase: data.manage_knowledgebase,
|
25
25
|
viewQueryTemplate: data.view_query_template,
|
26
26
|
createQueryTemplate: data.create_query_template,
|
27
|
-
manageQueryTemplate: data.manage_query_template
|
27
|
+
manageQueryTemplate: data.manage_query_template,
|
28
|
+
viewDataset: data.view_dataset,
|
29
|
+
manageDataset: data.manage_dataset
|
28
30
|
} : undefined;
|
29
31
|
/**
|
30
32
|
* 接口转换为ui
|
package/dist/types/dataset.d.ts
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
import type { IPage } from './common';
|
2
|
-
import type { DatasetDataOperatRecordActionId, DatasetDataOperatRecordResultCode, DatasetDataSourceType, DatasetType, UserStatus } from './enum';
|
2
|
+
import type { DatasetDataOperatRecordActionId, DatasetDataOperatRecordResultCode, DatasetDataSourceType, DatasetType, EnumCharacter, UserStatus } from './enum';
|
3
3
|
import type { IFileInfo, IFileInfoApi } from './file';
|
4
|
+
import type { IResourcePermission, IResourcePermissionApi } from './permission';
|
4
5
|
export interface IDatasetInfo {
|
5
6
|
all: number;
|
7
|
+
user: number;
|
6
8
|
}
|
7
9
|
export interface IDatasetFormApi {
|
8
10
|
component_ids: number[];
|
@@ -31,6 +33,7 @@ export interface IDatasetApi extends IDatasetFormApi {
|
|
31
33
|
created_at: string;
|
32
34
|
created_by: string;
|
33
35
|
id: number;
|
36
|
+
permission: IResourcePermissionApi;
|
34
37
|
}
|
35
38
|
export interface IDataset extends IDatasetForm {
|
36
39
|
componentNames: string[];
|
@@ -41,6 +44,7 @@ export interface IDataset extends IDatasetForm {
|
|
41
44
|
createdAt: string;
|
42
45
|
createdBy: string;
|
43
46
|
id: number;
|
47
|
+
permission: IResourcePermission;
|
44
48
|
}
|
45
49
|
export interface IDatasetListParam extends IPage {
|
46
50
|
componentIds?: string;
|
@@ -53,6 +57,7 @@ export interface IDatasetListParam extends IPage {
|
|
53
57
|
datasetCode?: string;
|
54
58
|
description?: string;
|
55
59
|
tagName?: string;
|
60
|
+
generateType?: EnumCharacter;
|
56
61
|
}
|
57
62
|
export interface IDatasetListParamApi extends IPage {
|
58
63
|
component_ids?: string;
|
@@ -65,6 +70,7 @@ export interface IDatasetListParamApi extends IPage {
|
|
65
70
|
dataset_code?: string;
|
66
71
|
description?: string;
|
67
72
|
tag_name?: string;
|
73
|
+
generate_type?: EnumCharacter;
|
68
74
|
}
|
69
75
|
export interface IDatasetDataFileApi extends IFileInfoApi {
|
70
76
|
id: string;
|
package/dist/types/enum.d.ts
CHANGED
@@ -157,7 +157,9 @@ export declare enum ResourcePermissionAction {
|
|
157
157
|
ManageKnowledgebase = "manage_knowledgebase",
|
158
158
|
ViewQueryTemplate = "view_query_template",
|
159
159
|
CreateQueryTemplate = "create_query_template",
|
160
|
-
ManageQueryTemplate = "manage_query_template"
|
160
|
+
ManageQueryTemplate = "manage_query_template",
|
161
|
+
ViewDataset = "view_dataset",
|
162
|
+
ManageDataset = "manage_dataset"
|
161
163
|
}
|
162
164
|
export declare enum PlatformPermissionAction {
|
163
165
|
AccessPlatform = "access_platform",
|
package/dist/types/enum.ts.js
CHANGED
@@ -178,6 +178,8 @@ export var ResourcePermissionAction;
|
|
178
178
|
ResourcePermissionAction["ViewQueryTemplate"] = "view_query_template";
|
179
179
|
ResourcePermissionAction["CreateQueryTemplate"] = "create_query_template";
|
180
180
|
ResourcePermissionAction["ManageQueryTemplate"] = "manage_query_template";
|
181
|
+
ResourcePermissionAction["ViewDataset"] = "view_dataset";
|
182
|
+
ResourcePermissionAction["ManageDataset"] = "manage_dataset";
|
181
183
|
})(ResourcePermissionAction || (ResourcePermissionAction = {}));
|
182
184
|
export var PlatformPermissionAction;
|
183
185
|
(function(PlatformPermissionAction) {
|
@@ -45,6 +45,8 @@ export interface IResourcePermissionApi {
|
|
45
45
|
view_query_template?: boolean;
|
46
46
|
create_query_template?: boolean;
|
47
47
|
manage_query_template?: boolean;
|
48
|
+
view_dataset?: boolean;
|
49
|
+
manage_dataset?: boolean;
|
48
50
|
}
|
49
51
|
export interface IResourcePermission {
|
50
52
|
accessModel?: boolean;
|
@@ -69,10 +71,11 @@ export interface IResourcePermission {
|
|
69
71
|
viewQueryTemplate?: boolean;
|
70
72
|
createQueryTemplate?: boolean;
|
71
73
|
manageQueryTemplate?: boolean;
|
74
|
+
viewDataset?: boolean;
|
75
|
+
manageDataset?: boolean;
|
72
76
|
}
|
73
77
|
export interface IPlatformPermission {
|
74
78
|
access_platform: boolean;
|
75
|
-
access_dataset: boolean;
|
76
79
|
manage_platform: boolean;
|
77
80
|
manage_model: boolean;
|
78
81
|
manage_authorization: boolean;
|